@gperezmz/bb-plugin-thread-glance 0.1.3 → 0.2.0

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.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/dist/app.css +1 -1
  3. package/dist/app.js +32 -32
  4. package/dist/app.meta.json +1 -1
  5. package/dist/server.js +8 -8
  6. package/dist/server.js.map +3 -3
  7. package/dist/server.meta.json +1 -1
  8. package/features/thread-list/components/FoldRows.tsx +14 -13
  9. package/features/thread-list/components/GroupSection.tsx +118 -69
  10. package/features/thread-list/components/Rails.tsx +2 -3
  11. package/features/thread-list/components/ThreadList.tsx +21 -16
  12. package/features/thread-list/components/ThreadRowView.tsx +12 -9
  13. package/features/thread-list/components/Toolbar.tsx +129 -187
  14. package/features/thread-list/components/controller.ts +1 -2
  15. package/features/thread-list/components/glyphs.tsx +1 -1
  16. package/features/thread-list/data/useClientPreferences.ts +1 -1
  17. package/features/thread-list/data/useNeedsYouHold.ts +19 -0
  18. package/features/thread-list/model/counters.ts +13 -19
  19. package/features/thread-list/model/details.ts +2 -2
  20. package/features/thread-list/model/expansion.ts +10 -10
  21. package/features/thread-list/model/families.ts +48 -48
  22. package/features/thread-list/model/labels.ts +2 -1
  23. package/features/thread-list/model/layout.ts +6 -11
  24. package/features/thread-list/model/needs-you.ts +112 -0
  25. package/features/thread-list/model/notes.ts +1 -1
  26. package/features/thread-list/model/settings.ts +54 -0
  27. package/features/thread-list/model/share.ts +7 -1
  28. package/features/thread-list/model/sort.ts +14 -6
  29. package/features/thread-list/model/state.ts +11 -11
  30. package/features/thread-list/model/time.ts +1 -1
  31. package/features/thread-list/model/toggles.ts +2 -7
  32. package/features/thread-list/model/view.ts +138 -143
  33. package/features/thread-list/testing/fixtures.ts +19 -10
  34. package/package.json +1 -1
  35. package/server/cli.ts +2 -2
  36. package/shared/preferences.ts +10 -23
  37. package/skills/thread-glance/SKILL.md +9 -10
  38. package/features/thread-list/model/attention.ts +0 -89
package/dist/app.js CHANGED
@@ -1,51 +1,51 @@
1
- var ey=Object.defineProperty;var _=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var $t=(e,t)=>{for(var n in t)ey(e,n,{get:t[n],enumerable:!0})};var du,wm=_(()=>{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 Sg(e){if(xm!==e){xm=e;for(let t of Im)t()}}function pu(){return xm}function Pg(e){return Im.add(e),()=>{Im.delete(e)}}function Ki(e){return J_.get(e)}function _m(e){return xg.add(e),()=>{xg.delete(e)}}function qi(e){return Y_.get(e)}function Sm(e){return Ig.add(e),()=>{Ig.delete(e)}}var _g,xm,Im,J_,xg,Y_,Ig,Pm=_(()=>{"use strict";_g=["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"],xm=null,Im=new Set;J_=new Map,xg=new Set;Y_=new Map,Ig=new Set});var Lg,Mg=_(()=>{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 Rg,Tg=_(()=>{Rg=[["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 $g,Ag=_(()=>{$g=[["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 Eg,Dg=_(()=>{Eg=[["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 Ng,Og=_(()=>{Ng=[["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 zg,Zg=_(()=>{zg=[["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 jg,Wg=_(()=>{jg=[["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 Vg,Hg=_(()=>{Vg=[["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,Bg=_(()=>{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 Ug,Gg=_(()=>{Ug=[["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 Kg,qg=_(()=>{Kg=[["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 Jg,Yg=_(()=>{Jg=[["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 Xg,Qg=_(()=>{Xg=[["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 e7,t7=_(()=>{e7=[["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 n7,r7=_(()=>{n7=[["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 o7,i7=_(()=>{o7=[["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 s7,a7=_(()=>{s7=[["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 c7,u7=_(()=>{c7=[["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 l7,d7=_(()=>{l7=[["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 p7,f7=_(()=>{p7=[["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 m7,h7=_(()=>{m7=[["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 Lm,g7=_(()=>{Lm=[["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 C7,k7=_(()=>{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:"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 y7,b7=_(()=>{y7=[["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 v7,w7=_(()=>{v7=[["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 x7,I7=_(()=>{x7=[["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 _7,S7=_(()=>{_7=[["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 P7,L7=_(()=>{P7=[["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 M7,R7=_(()=>{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 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 T7,$7=_(()=>{T7=[["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 A7,E7=_(()=>{A7=[["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,N7=_(()=>{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 O7,z7=_(()=>{O7=[["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,j7=_(()=>{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 W7,V7=_(()=>{W7=[["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 H7,F7=_(()=>{H7=[["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 B7,U7=_(()=>{B7=[["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 G7,K7=_(()=>{G7=[["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 q7,J7=_(()=>{q7=[["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 Y7,X7=_(()=>{Y7=[["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 Q7,e3=_(()=>{Q7=[["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 t3,n3=_(()=>{t3=[["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 r3,o3=_(()=>{r3=[["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 i3,s3=_(()=>{i3=[["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 a3,c3=_(()=>{a3=[["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 u3,l3=_(()=>{u3=[["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 d3,p3=_(()=>{d3=[["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 f3,m3=_(()=>{f3=[["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 h3,g3=_(()=>{h3=[["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 C3,k3=_(()=>{C3=[["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 y3,b3=_(()=>{y3=[["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,Mm=_(()=>{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 v3,w3=_(()=>{v3=[["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 x3,I3=_(()=>{x3=[["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 _3,S3=_(()=>{_3=[["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 P3,L3=_(()=>{P3=[["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 M3,R3=_(()=>{M3=[["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 T3,$3=_(()=>{T3=[["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 A3,E3=_(()=>{A3=[["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,N3=_(()=>{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 O3,z3=_(()=>{O3=[["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,j3=_(()=>{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 W3,V3=_(()=>{W3=[["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 H3,F3=_(()=>{H3=[["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 B3,U3=_(()=>{B3=[["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 G3,K3=_(()=>{G3=[["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 q3,J3=_(()=>{q3=[["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 Y3,X3=_(()=>{Y3=[["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 Q3,e6=_(()=>{Q3=[["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 t6,n6=_(()=>{t6=[["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 r6,o6=_(()=>{r6=[["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 i6,s6=_(()=>{i6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var a6,c6=_(()=>{a6=[["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 u6,l6=_(()=>{u6=[["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 d6,p6=_(()=>{d6=[["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 f6,m6=_(()=>{f6=[["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 h6,g6=_(()=>{h6=[["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 C6,k6=_(()=>{C6=[["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 y6,b6=_(()=>{y6=[["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 v6,w6=_(()=>{v6=[["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 x6,I6=_(()=>{x6=[["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 _6,S6=_(()=>{_6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var P6,L6=_(()=>{P6=[["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 M6,R6=_(()=>{M6=[["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 T6,$6=_(()=>{T6=[["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 A6,E6=_(()=>{A6=[["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,N6=_(()=>{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 O6,z6=_(()=>{O6=[["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,j6=_(()=>{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 W6,V6=_(()=>{W6=[["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 H6,F6=_(()=>{H6=[["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 B6,U6=_(()=>{B6=[["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 G6,K6=_(()=>{G6=[["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 q6,J6=_(()=>{q6=[["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 Y6,X6=_(()=>{Y6=[["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 Q6,eC=_(()=>{Q6=[["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 tC,nC=_(()=>{tC=[["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 rC,oC=_(()=>{rC=[["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 iC,sC=_(()=>{iC=[["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 aC,cC=_(()=>{aC=[["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 uC,lC=_(()=>{uC=[["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 dC,pC=_(()=>{dC=[["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 fC,mC=_(()=>{fC=[["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 hC,gC=_(()=>{hC=[["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 CC,kC=_(()=>{CC=[["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 yC,bC=_(()=>{yC=[["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 vC,wC=_(()=>{vC=[["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 IC={};$t(IC,{EXTENDED_ICON_MAP:()=>xC});var X_,Q_,eS,xC,_C=_(()=>{"use strict";Mg();Tg();Ag();Dg();Og();Zg();Wg();Hg();Bg();Gg();qg();Yg();Qg();t7();r7();i7();a7();u7();d7();f7();h7();g7();k7();b7();w7();I7();S7();L7();R7();$7();E7();N7();z7();j7();V7();F7();U7();K7();J7();X7();e3();n3();o3();s3();c3();l3();wm();p3();m3();g3();k3();b3();Mm();w3();I3();Mm();S3();L3();R3();$3();E3();N3();z3();j3();V3();F3();U3();K3();J3();X3();e6();n6();o6();s6();c6();l6();p6();m6();g6();k6();b6();w6();I6();S6();L6();R6();$6();E6();N6();z6();j6();V6();F6();U6();K6();J6();X6();eC();nC();oC();sC();cC();lC();pC();mC();gC();kC();bC();wC();Pm();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"}]],xC={AiBrain01:Lg,AiBrowser:Rg,AiContentGenerator01:$g,AlignLeft:Q3,AppWindow:Lm,ArchiveRestore:dC,ArrowDown:Eg,ArrowLeft:zg,ArrowRight:Ug,ArrowReloadHorizontal:Fg,ArrowUp:e7,ArrowUpDown:o7,ArrowTurnBackward:Kg,ArrowTurnForward:Jg,ArrowUpRight:s7,Beaker:iC,BellDot:l7,Browser:Lm,Brain:m7,Calendar:C7,CalendarCheckOut02:y7,ChartColumn:v7,ChevronUp:Xg,ChevronsDown:Ng,ChevronsUp:n7,CircleArrowShrink:x7,Clean:_7,Clock:P7,ClockArrowUp:T7,ClockArrowDown:M7,Cloud:A7,CloudOff:D7,Coffee:O7,Columns2:D3,CornerDownLeft:jg,CornerDownRight:Vg,Discord:B7,DiscordLogo:Q_,DateTime:H7,Github:_3,GithubLogo:eS,DragDropHorizontal:G7,DragDropVertical:q7,EditFile:Y7,ElectricPlugs:Q7,Eye:hC,EyeOff:CC,Explore:p7,ExternalLink:W3,FileDiff:x6,File:a3,FileAttachment:i3,FileQuestion:u3,FileText:r3,FolderOpen:du,FolderEdit:d3,FolderMinus:f3,Fork:C3,GitBranch:h3,GitMerge:y3,GitPullRequest:fu,GitPullRequestArrow:fu,GitPullRequestClosed:v3,GitPullRequestDraft:x3,Globe:M3,GridView:P3,Laptop:T3,Layers:A3,Limitation:Z3,ListEnd:H3,ListView:B3,Lock:G3,Mail:q3,MailOpen:Y3,Maximize2:t3,Mic:r6,Minus:i6,Minimize2:Z7,MoveTo:a6,NewTab:W7,News01:u6,PackageReceive:d6,Palette:X_,PanelBottom:O6,PanelRight:Z6,Paperclip:c7,Pause:f6,Pin:h6,PinOff:C6,Play:y6,Plug02:v6,Plus:_6,Puzzle:P6,Repeat:T6,SecurityCheck:A6,RotateCcw:M6,Rows2:O3,Sent:D6,SideChat:t6,Smartphone:W6,Sort:H6,SortingAZ02:B6,SortingZA01:Y6,SortingOneNine:q6,SortingNineOne:G6,Square:Q6,SquareUnlock02:tC,Star:rC,TextWrap:aC,TimeSchedule:uC,UserRound:fC,ZoomIn:yC,ZoomOut:vC};Sg(xC)});var Au=globalThis.__bbPluginRuntime;if(Au==null||Au.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 us=Au.pluginSdkApp,fP="default"in us?us.default:us,{Markdown:mP,ThreadChat:hP,ThreadTitle:gP,UrlLink:CP,definePluginApp:mh,experimental_BranchPicker:kP,experimental_Diff:yP,experimental_FileLink:bP,experimental_Icon:F,experimental_NewThreadComposer:vP,experimental_PermissionModePicker:wP,experimental_ProviderIcon:ls,experimental_ProviderModelPicker:xP,experimental_SourceCode:IP,experimental_useAppPanel:_P,experimental_useBranches:SP,experimental_useCheckoutState:PP,experimental_useCodeTheme:LP,experimental_useFixedTabTarget:MP,experimental_useProviders:hh,experimental_useSidebarThreadActions:gh,experimental_useSidebarThreadPullRequest:ds,experimental_useSidebarThreadSplit:Ch,experimental_useSidebarThreads:kh,useBbContext:RP,useBbNavigate:TP,useComposer:$P,useComposerView:AP,useEnvironmentProviders:yh,useRealtime:hn,useRealtimeConnectionState:gn,useRpc:Cn,useSdk:bh,useSettings:EP,useSidebarSplitLayout:vh,useSidebarThreadDraft:wh,useSidebarThreadDraftIds:xh,useSidebarThreadRowStatus:Ih,useSidebarThreadRowStatuses:DP,useSidebarThreadShortcut:_h}=us;var Ge={};$t(Ge,{Activity:()=>ty,Children:()=>fs,Component:()=>Du,Fragment:()=>yr,Profiler:()=>ny,PureComponent:()=>ry,StrictMode:()=>oy,Suspense:()=>iy,act:()=>sy,cache:()=>ay,cacheSignal:()=>cy,captureOwnerStack:()=>uy,cloneElement:()=>br,createContext:()=>xe,createElement:()=>Lo,createRef:()=>ly,default:()=>Ue,forwardRef:()=>W,isValidElement:()=>vr,lazy:()=>dy,memo:()=>bt,startTransition:()=>py,unstable_useCacheRefresh:()=>fy,use:()=>my,useActionState:()=>hy,useCallback:()=>Z,useContext:()=>Ie,useDebugValue:()=>gy,useDeferredValue:()=>Cy,useEffect:()=>z,useEffectEvent:()=>ky,useId:()=>kn,useImperativeHandle:()=>yy,useInsertionEffect:()=>by,useLayoutEffect:()=>nt,useMemo:()=>q,useOptimistic:()=>vy,useReducer:()=>Nu,useRef:()=>$,useState:()=>E,useSyncExternalStore:()=>Jt,useTransition:()=>wy,version:()=>xy});var Eu=globalThis.__bbPluginRuntime;if(Eu==null||Eu.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 ps=Eu.react,Ue="default"in ps?ps.default:ps,{Activity:ty,Children:fs,Component:Du,Fragment:yr,Profiler:ny,PureComponent:ry,StrictMode:oy,Suspense:iy,act:sy,cache:ay,cacheSignal:cy,captureOwnerStack:uy,cloneElement:br,createContext:xe,createElement:Lo,createRef:ly,forwardRef:W,isValidElement:vr,lazy:dy,memo:bt,startTransition:py,unstable_useCacheRefresh:fy,use:my,useActionState:hy,useCallback:Z,useContext:Ie,useDebugValue:gy,useDeferredValue:Cy,useEffect:z,useEffectEvent:ky,useId:kn,useImperativeHandle:yy,useInsertionEffect:by,useLayoutEffect:nt,useMemo:q,useOptimistic:vy,useReducer:Nu,useRef:$,useState:E,useSyncExternalStore:Jt,useTransition:wy,version:xy}=ps;var Ou=globalThis.__bbPluginRuntime;if(Ou==null||Ou.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 ms=Ou.reactDom,OP="default"in ms?ms.default:ms,{createPortal:hs,flushSync:zP,preconnect:ZP,prefetchDNS:jP,preinit:WP,preinitModule:VP,preload:HP,preloadModule:FP,requestFormReset:BP,unstable_batchedUpdates:Mo,useFormState:UP,useFormStatus:GP,version:KP}=ms;var Ro=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function gs(e){return"nodeType"in e}function Ke(e){var t,n;return e?jn(e)?e:gs(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Cs(e){let{Document:t}=Ke(e);return e instanceof t}function wr(e){return jn(e)?!1:e instanceof Ke(e).HTMLElement}function Zu(e){return e instanceof Ke(e).SVGElement}function Wn(e){return e?jn(e)?e.document:gs(e)?Cs(e)?e:wr(e)||Zu(e)?e.ownerDocument:document:document:document}var Yt=Ro?nt:z;function ks(e){let t=$(e);return Yt(()=>{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 xr(e,t){t===void 0&&(t=[e]);let n=$(e);return Yt(()=>{n.current!==e&&(n.current=e)},t),n}function Ir(e,t){let n=$();return q(()=>{let r=e(n.current);return n.current=r,r},[...t])}function To(e){let t=ks(e),n=$(null),r=Z(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function ys(e){let t=$();return z(()=>{t.current=e},[e]),t.current}var zu={};function $o(e,t){return q(()=>{if(t)return t;let n=zu[e]==null?0:zu[e]+1;return zu[e]=n,e+"-"+n},[e,t])}function Lh(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 Vn=Lh(1),Ao=Lh(-1);function Iy(e){return"clientX"in e&&"clientY"in e}function ju(e){if(!e)return!1;let{KeyboardEvent:t}=Ke(e.target);return t&&e instanceof t}function _y(e){if(!e)return!1;let{TouchEvent:t}=Ke(e.target);return t&&e instanceof t}function bs(e){if(_y(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 Iy(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 Sy={display:"none"};function Rh(e){let{id:t,value:n}=e;return Ue.createElement("div",{id:t,style:Sy},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 Ue.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 Hh=xe(null);function Py(e){let t=Ie(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 My={draggable:`
1
+ var Kk=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 St=(e,t)=>{for(var n in t)Kk(e,n,{get:t[n],enumerable:!0})};var uu,Im=L(()=>{uu=[["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 vg(e){if(_m!==e){_m=e;for(let t of Sm)t()}}function lu(){return _m}function wg(e){return Sm.add(e),()=>{Sm.delete(e)}}function Ui(e){return G_.get(e)}function Lm(e){return kg.add(e),()=>{kg.delete(e)}}function Gi(e){return K_.get(e)}function Pm(e){return yg.add(e),()=>{yg.delete(e)}}var bg,_m,Sm,G_,kg,K_,yg,Mm=L(()=>{"use strict";bg=["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"],_m=null,Sm=new Set;G_=new Map,kg=new Set;K_=new Map,yg=new Set});var xg,Ig=L(()=>{xg=[["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 _g,Sg=L(()=>{_g=[["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 Lg,Pg=L(()=>{Lg=[["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 Mg,Rg=L(()=>{Mg=[["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 Tg,$g=L(()=>{Tg=[["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 Ag,Dg=L(()=>{Ag=[["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 Eg,Ng=L(()=>{Eg=[["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 Og,zg=L(()=>{Og=[["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 Zg,jg=L(()=>{Zg=[["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 Wg,Vg=L(()=>{Wg=[["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 Fg,Hg=L(()=>{Fg=[["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 Bg,Ug=L(()=>{Bg=[["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 Gg,Kg=L(()=>{Gg=[["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,Yg=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 Jg,Xg=L(()=>{Jg=[["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 Qg,e7=L(()=>{Qg=[["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 t7,n7=L(()=>{t7=[["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 r7,o7=L(()=>{r7=[["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 i7,s7=L(()=>{i7=[["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 a7,c7=L(()=>{a7=[["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 u7,l7=L(()=>{u7=[["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 Rm,d7=L(()=>{Rm=[["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 p7,f7=L(()=>{p7=[["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 m7,h7=L(()=>{m7=[["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 g7,C7=L(()=>{g7=[["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 k7,y7=L(()=>{k7=[["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 b7,v7=L(()=>{b7=[["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 w7,x7=L(()=>{w7=[["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 I7,_7=L(()=>{I7=[["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 S7,L7=L(()=>{S7=[["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 P7,M7=L(()=>{P7=[["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 R7,T7=L(()=>{R7=[["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 $7,A7=L(()=>{$7=[["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 D7,E7=L(()=>{D7=[["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 N7,O7=L(()=>{N7=[["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 z7,Z7=L(()=>{z7=[["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 j7,W7=L(()=>{j7=[["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 V7,F7=L(()=>{V7=[["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 H7,B7=L(()=>{H7=[["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 U7,G7=L(()=>{U7=[["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 K7,q7=L(()=>{K7=[["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 Y7,J7=L(()=>{Y7=[["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 X7,Q7=L(()=>{X7=[["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 e3,t3=L(()=>{e3=[["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 n3,r3=L(()=>{n3=[["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 o3,i3=L(()=>{o3=[["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 s3,a3=L(()=>{s3=[["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 c3,u3=L(()=>{c3=[["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 l3,d3=L(()=>{l3=[["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 p3,f3=L(()=>{p3=[["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 m3,h3=L(()=>{m3=[["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 du,Tm=L(()=>{du=[["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 g3,C3=L(()=>{g3=[["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 k3,y3=L(()=>{k3=[["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 b3,v3=L(()=>{b3=[["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 w3,x3=L(()=>{w3=[["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 I3,_3=L(()=>{I3=[["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 S3,L3=L(()=>{S3=[["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 P3,M3=L(()=>{P3=[["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 R3,T3=L(()=>{R3=[["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 $3,A3=L(()=>{$3=[["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 D3,E3=L(()=>{D3=[["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 N3,O3=L(()=>{N3=[["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 z3,Z3=L(()=>{z3=[["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 j3,W3=L(()=>{j3=[["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 V3,F3=L(()=>{V3=[["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 H3,B3=L(()=>{H3=[["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 U3,G3=L(()=>{U3=[["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 K3,q3=L(()=>{K3=[["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 Y3,J3=L(()=>{Y3=[["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 X3,Q3=L(()=>{X3=[["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 e6,t6=L(()=>{e6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var n6,r6=L(()=>{n6=[["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 o6,i6=L(()=>{o6=[["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 s6,a6=L(()=>{s6=[["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 c6,u6=L(()=>{c6=[["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 l6,d6=L(()=>{l6=[["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 p6,f6=L(()=>{p6=[["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 m6,h6=L(()=>{m6=[["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 g6,C6=L(()=>{g6=[["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 k6,y6=L(()=>{k6=[["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 b6,v6=L(()=>{b6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var w6,x6=L(()=>{w6=[["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 I6,_6=L(()=>{I6=[["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 S6,L6=L(()=>{S6=[["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 P6,M6=L(()=>{P6=[["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 R6,T6=L(()=>{R6=[["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 $6,A6=L(()=>{$6=[["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 D6,E6=L(()=>{D6=[["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 N6,O6=L(()=>{N6=[["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 z6,Z6=L(()=>{z6=[["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 j6,W6=L(()=>{j6=[["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 V6,F6=L(()=>{V6=[["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 H6,B6=L(()=>{H6=[["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 U6,G6=L(()=>{U6=[["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 K6,q6=L(()=>{K6=[["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 Y6,J6=L(()=>{Y6=[["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 X6,Q6=L(()=>{X6=[["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 eC,tC=L(()=>{eC=[["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 nC,rC=L(()=>{nC=[["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 oC,iC=L(()=>{oC=[["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 sC,aC=L(()=>{sC=[["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 cC,uC=L(()=>{cC=[["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 lC,dC=L(()=>{lC=[["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 pC,fC=L(()=>{pC=[["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 mC,hC=L(()=>{mC=[["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 gC,CC=L(()=>{gC=[["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 yC={};St(yC,{EXTENDED_ICON_MAP:()=>kC});var q_,Y_,J_,kC,bC=L(()=>{"use strict";Ig();Sg();Pg();Rg();$g();Dg();Ng();zg();jg();Vg();Hg();Ug();Kg();Yg();Xg();e7();n7();o7();s7();c7();l7();d7();f7();h7();C7();y7();v7();x7();_7();L7();M7();T7();A7();E7();O7();Z7();W7();F7();B7();G7();q7();J7();Q7();t3();r3();i3();Im();a3();u3();d3();f3();h3();Tm();C3();y3();Tm();v3();x3();_3();L3();M3();T3();A3();E3();O3();Z3();W3();F3();B3();G3();q3();J3();Q3();t6();r6();i6();a6();u6();d6();f6();h6();C6();y6();v6();x6();_6();L6();M6();T6();A6();E6();O6();Z6();W6();F6();B6();G6();q6();J6();Q6();tC();rC();iC();aC();uC();dC();fC();hC();CC();Mm();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"}]],Y_=[["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"}]],J_=[["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"}]],kC={AiBrain01:xg,AiBrowser:_g,AiContentGenerator01:Lg,AlignLeft:K3,AppWindow:Rm,ArchiveRestore:sC,ArrowDown:Mg,ArrowLeft:Ag,ArrowRight:Wg,ArrowReloadHorizontal:Zg,ArrowUp:qg,ArrowUpDown:Qg,ArrowTurnBackward:Fg,ArrowTurnForward:Bg,ArrowUpRight:t7,Beaker:eC,BellDot:i7,Browser:Rm,Brain:u7,Calendar:p7,CalendarCheckOut02:m7,ChartColumn:g7,ChevronUp:Gg,ChevronsDown:Tg,ChevronsUp:Jg,CircleArrowShrink:k7,Clean:b7,Clock:w7,ClockArrowUp:S7,ClockArrowDown:I7,Cloud:P7,CloudOff:R7,Coffee:$7,Columns2:R3,CornerDownLeft:Eg,CornerDownRight:Og,Discord:j7,DiscordLogo:Y_,DateTime:z7,Github:b3,GithubLogo:J_,DragDropHorizontal:V7,DragDropVertical:H7,EditFile:U7,ElectricPlugs:K7,Eye:lC,EyeOff:pC,Explore:a7,ExternalLink:N3,FileDiff:k6,File:n3,FileAttachment:e3,FileQuestion:o3,FileText:X7,FolderOpen:uu,FolderEdit:s3,FolderMinus:c3,Fork:p3,GitBranch:l3,GitMerge:m3,GitPullRequest:du,GitPullRequestArrow:du,GitPullRequestClosed:g3,GitPullRequestDraft:k3,Globe:I3,GridView:w3,Laptop:S3,Layers:P3,Limitation:D3,ListEnd:z3,ListView:j3,Lock:V3,Mail:H3,MailOpen:U3,Maximize2:Y7,Mic:X3,Minus:e6,Minimize2:D7,MoveTo:n6,NewTab:N7,News01:o6,PackageReceive:s6,Palette:q_,PanelBottom:$6,PanelRight:D6,Paperclip:r7,Pause:c6,Pin:l6,PinOff:p6,Play:m6,Plug02:g6,Plus:b6,Puzzle:w6,Repeat:S6,SecurityCheck:P6,RotateCcw:I6,Rows2:$3,Sent:R6,SideChat:Y3,Smartphone:N6,Sort:z6,SortingAZ02:j6,SortingZA01:U6,SortingOneNine:H6,SortingNineOne:V6,Square:K6,SquareUnlock02:Y6,Star:X6,TextWrap:nC,TimeSchedule:oC,UserRound:cC,ZoomIn:mC,ZoomOut:gC};vg(kC)});var Au=globalThis.__bbPluginRuntime;if(Au==null||Au.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 as=Au.pluginSdkApp,lL="default"in as?as.default:as,{Markdown:dL,ThreadChat:pL,ThreadTitle:fL,UrlLink:mL,definePluginApp:ph,experimental_BranchPicker:hL,experimental_Diff:gL,experimental_FileLink:CL,experimental_Icon:B,experimental_NewThreadComposer:kL,experimental_PermissionModePicker:yL,experimental_ProviderIcon:cs,experimental_ProviderModelPicker:bL,experimental_SourceCode:vL,experimental_useAppPanel:wL,experimental_useBranches:xL,experimental_useCheckoutState:IL,experimental_useCodeTheme:_L,experimental_useFixedTabTarget:SL,experimental_useProviders:fh,experimental_useSidebarThreadActions:mh,experimental_useSidebarThreadPullRequest:us,experimental_useSidebarThreadSplit:hh,experimental_useSidebarThreads:gh,useBbContext:LL,useBbNavigate:PL,useComposer:ML,useComposerView:RL,useEnvironmentProviders:Ch,useRealtime:fn,useRealtimeConnectionState:mn,useRpc:hn,useSdk:kh,useSettings:TL,useSidebarSplitLayout:yh,useSidebarThreadDraft:bh,useSidebarThreadDraftIds:vh,useSidebarThreadRowStatus:wh,useSidebarThreadRowStatuses:$L,useSidebarThreadShortcut:xh}=as;var ot={};St(ot,{Activity:()=>qk,Children:()=>ds,Component:()=>Eu,Fragment:()=>hr,Profiler:()=>Yk,PureComponent:()=>Jk,StrictMode:()=>Xk,Suspense:()=>Qk,act:()=>ey,cache:()=>ty,cacheSignal:()=>ny,captureOwnerStack:()=>ry,cloneElement:()=>gr,createContext:()=>we,createElement:()=>So,createRef:()=>oy,default:()=>qe,forwardRef:()=>F,isValidElement:()=>Cr,lazy:()=>iy,memo:()=>pt,startTransition:()=>sy,unstable_useCacheRefresh:()=>ay,use:()=>cy,useActionState:()=>uy,useCallback:()=>Z,useContext:()=>xe,useDebugValue:()=>ly,useDeferredValue:()=>dy,useEffect:()=>z,useEffectEvent:()=>py,useId:()=>gn,useImperativeHandle:()=>fy,useInsertionEffect:()=>my,useLayoutEffect:()=>rt,useMemo:()=>q,useOptimistic:()=>hy,useReducer:()=>Nu,useRef:()=>A,useState:()=>E,useSyncExternalStore:()=>Kt,useTransition:()=>gy,version:()=>Cy});var Du=globalThis.__bbPluginRuntime;if(Du==null||Du.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 ls=Du.react,qe="default"in ls?ls.default:ls,{Activity:qk,Children:ds,Component:Eu,Fragment:hr,Profiler:Yk,PureComponent:Jk,StrictMode:Xk,Suspense:Qk,act:ey,cache:ty,cacheSignal:ny,captureOwnerStack:ry,cloneElement:gr,createContext:we,createElement:So,createRef:oy,forwardRef:F,isValidElement:Cr,lazy:iy,memo:pt,startTransition:sy,unstable_useCacheRefresh:ay,use:cy,useActionState:uy,useCallback:Z,useContext:xe,useDebugValue:ly,useDeferredValue:dy,useEffect:z,useEffectEvent:py,useId:gn,useImperativeHandle:fy,useInsertionEffect:my,useLayoutEffect:rt,useMemo:q,useOptimistic:hy,useReducer:Nu,useRef:A,useState:E,useSyncExternalStore:Kt,useTransition:gy,version:Cy}=ls;var Ou=globalThis.__bbPluginRuntime;if(Ou==null||Ou.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 ps=Ou.reactDom,DL="default"in ps?ps.default:ps,{createPortal:fs,flushSync:EL,preconnect:NL,prefetchDNS:OL,preinit:zL,preinitModule:ZL,preload:jL,preloadModule:WL,requestFormReset:VL,unstable_batchedUpdates:Lo,useFormState:FL,useFormStatus:HL,version:BL}=ps;var Po=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 ms(e){return"nodeType"in e}function Ye(e){var t,n;return e?Zn(e)?e:ms(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function hs(e){let{Document:t}=Ye(e);return e instanceof t}function kr(e){return Zn(e)?!1:e instanceof Ye(e).HTMLElement}function Zu(e){return e instanceof Ye(e).SVGElement}function jn(e){return e?Zn(e)?e.document:ms(e)?hs(e)?e:kr(e)||Zu(e)?e.ownerDocument:document:document:document}var qt=Po?rt:z;function gs(e){let t=A(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 _h(){let e=A(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 yr(e,t){t===void 0&&(t=[e]);let n=A(e);return qt(()=>{n.current!==e&&(n.current=e)},t),n}function br(e,t){let n=A();return q(()=>{let r=e(n.current);return n.current=r,r},[...t])}function Mo(e){let t=gs(e),n=A(null),r=Z(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Cs(e){let t=A();return z(()=>{t.current=e},[e]),t.current}var zu={};function Ro(e,t){return q(()=>{if(t)return t;let n=zu[e]==null?0:zu[e]+1;return zu[e]=n,e+"-"+n},[e,t])}function Sh(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=Sh(1),To=Sh(-1);function ky(e){return"clientX"in e&&"clientY"in e}function ju(e){if(!e)return!1;let{KeyboardEvent:t}=Ye(e.target);return t&&e instanceof t}function yy(e){if(!e)return!1;let{TouchEvent:t}=Ye(e.target);return t&&e instanceof t}function ks(e){if(yy(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 ky(e)?{x:e.clientX,y:e.clientY}:null}var Ih="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Lh(e){return e.matches(Ih)?e:e.querySelector(Ih)}var by={display:"none"};function Ph(e){let{id:t,value:n}=e;return qe.createElement("div",{id:t,style:by},n)}function Mh(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 Rh(){let[e,t]=E("");return{announce:Z(r=>{r!=null&&t(r)},[]),announcement:e}}var Wh=we(null);function vy(e){let t=xe(Wh);z(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wy(){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 xy={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
- `},Ry={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 Ty(e){let{announcements:t=Ry,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=My}=e,{announce:i,announcement:s}=$h(),a=$o("DndLiveRegion"),[c,u]=E(!1);if(z(()=>{u(!0)},[]),Py(q(()=>({onDragStart(p){let{active:f}=p;i(t.onDragStart({active:f}))},onDragMove(p){let{active:f,over:m}=p;t.onDragMove&&i(t.onDragMove({active:f,over:m}))},onDragOver(p){let{active:f,over:m}=p;i(t.onDragOver({active:f,over:m}))},onDragEnd(p){let{active:f,over:m}=p;i(t.onDragEnd({active:f,over:m}))},onDragCancel(p){let{active:f,over:m}=p;i(t.onDragCancel({active:f,over:m}))}}),[i,t])),!c)return null;let l=Ue.createElement(Ue.Fragment,null,Ue.createElement(Rh,{id:r,value:o.draggable}),Ue.createElement(Th,{id:a,announcement:s}));return n?hs(l,n):l}var Te;(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"})(Te||(Te={}));function ws(){}function _s(e,t){return q(()=>({sensor:e,options:t??{}}),[e,t])}function Fh(){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 At=Object.freeze({x:0,y:0});function $y(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ay(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Ey(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 Ny(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Oy(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,p=l/(c+u-l);return Number(p.toFixed(4))}return 0}var zy=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=Oy(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(Ey)};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 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&&Zy(r,a)){let u=Dy(a).reduce((p,f)=>p+$y(r,f),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Ay)};function jy(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}:At}function Wy(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 Vy=Wy(1);function Hy(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=Hy(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,p=i?e.height/i:e.height;return{width:l,height:p,top:u,right:c+l,bottom:u+p,left:c}}var By={ignoreTransform:!1};function jo(e,t){t===void 0&&(t=By);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Ke(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 jo(e,{ignoreTransform:!0})}function Uy(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Gy(e,t){return t===void 0&&(t=Ke(e).getComputedStyle(e)),t.position==="fixed"}function Ky(e,t){t===void 0&&(t=Ke(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 Gu(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Cs(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!wr(o)||Zu(o)||n.includes(o))return n;let i=Ke(e).getComputedStyle(o);return o!==e&&Ky(o,i)&&n.push(o),Gy(o,i)?n:r(o.parentNode)}return e?r(e):n}function Gh(e){let[t]=Gu(e,1);return t??null}function Wu(e){return!Ro||!e?null:jn(e)?e:gs(e)?Cs(e)||e===Wn(e).scrollingElement?window:wr(e)?e:null:null}function Kh(e){return jn(e)?e.scrollX:e.scrollLeft}function qh(e){return jn(e)?e.scrollY:e.scrollTop}function Fu(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!Ro||!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 qy={x:.2,y:.2};function Jy(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=qy);let{isTop:u,isBottom:l,isLeft:p,isRight:f}=Yh(e),m={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?(m.y=De.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(m.y=De.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!f&&a>=t.right-g.width?(m.x=De.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!p&&s<=t.left+g.width&&(m.x=De.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:m,speed:h}}function Yy(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)=>Vn(t,Fu(n)),At)}function Xy(e){return e.reduce((t,n)=>t+Kh(n),0)}function Qy(e){return e.reduce((t,n)=>t+qh(n),0)}function eb(e,t){if(t===void 0&&(t=jo),!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 tb=[["x",["left","right"],Xy],["y",["top","bottom"],Qy]],Do=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=Gu(n),o=Xh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of tb)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})}},Hn=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 nb(e){let{EventTarget:t}=Ke(e);return e instanceof t?e:Wn(e)}function Vu(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 vt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(vt||(vt={}));function Eh(e){e.preventDefault()}function rb(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]},ob=(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}}},_r=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 Hn(Wn(n)),this.windowListeners=new Hn(Ke(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(vt.Resize,this.handleCancel),this.windowListeners.add(vt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(vt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&eb(r),n(At)}handleKeyDown(t){if(ju(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Qh,coordinateGetter:s=ob,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}:At;this.referenceCoordinates||(this.referenceCoordinates=l);let p=s(t,{active:n,context:r.current,currentCoordinates:l});if(p){let f=Ao(p,l),m={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let C=t.code,{isTop:w,isRight:k,isLeft:b,isBottom:R,maxScroll:L,minScroll:T}=Yh(g),O=Yy(g),B={x:Math.min(C===fe.Right?O.right-O.width/2:O.right,Math.max(C===fe.Right?O.left:O.left+O.width/2,p.x)),y:Math.min(C===fe.Down?O.bottom-O.height/2:O.bottom,Math.max(C===fe.Down?O.top:O.top+O.height/2,p.y))},de=C===fe.Right&&!k||C===fe.Left&&!b,ne=C===fe.Down&&!R||C===fe.Up&&!w;if(de&&B.x!==p.x){let se=g.scrollLeft+f.x,H=C===fe.Right&&se<=L.x||C===fe.Left&&se>=T.x;if(H&&!f.y){g.scrollTo({left:se,behavior:a});return}H?m.x=g.scrollLeft-se:m.x=C===fe.Right?g.scrollLeft-L.x:g.scrollLeft-T.x,m.x&&g.scrollBy({left:-m.x,behavior:a});break}else if(ne&&B.y!==p.y){let se=g.scrollTop+f.y,H=C===fe.Down&&se<=L.y||C===fe.Up&&se>=T.y;if(H&&!f.x){g.scrollTo({top:se,behavior:a});return}H?m.y=g.scrollTop-se:m.y=C===fe.Down?g.scrollTop-L.y:g.scrollTop-T.y,m.y&&g.scrollBy({top:-m.y,behavior:a});break}}this.handleMove(t,Vn(Ao(p,this.referenceCoordinates),m))}}}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()}};_r.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 Dh(e){return!!(e&&"distance"in e)}function Nh(e){return!!(e&&"delay"in e)}var No=class{constructor(t,n,r){var o;r===void 0&&(r=nb(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=Wn(s),this.documentListeners=new Hn(this.document),this.listeners=new Hn(r),this.windowListeners=new Hn(Ke(s)),this.initialCoordinates=(o=bs(i))!=null?o:At,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(vt.Resize,this.handleCancel),this.windowListeners.add(vt.DragStart,Eh),this.windowListeners.add(vt.VisibilityChange,this.handleCancel),this.windowListeners.add(vt.ContextMenu,Eh),this.documentListeners.add(vt.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(Dh(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(vt.Click,rb,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(vt.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=bs(t))!=null?n:At,u=Ao(o,c);if(!r&&a){if(Dh(a)){if(a.tolerance!=null&&Vu(u,a.tolerance))return this.handleCancel();if(Vu(u,a.distance))return this.handleStart()}if(Nh(a)&&Vu(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()}},ib={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},xs=class extends No{constructor(t){let{event:n}=t,r=Wn(n.target);super(t,ib,r)}};xs.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 sb={move:{name:"mousemove"},end:{name:"mouseup"}},Bu;(function(e){e[e.RightClick=2]="RightClick"})(Bu||(Bu={}));var Oo=class extends No{constructor(t){super(t,sb,Wn(t.event.target))}};Oo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Bu.RightClick?!1:(r?.({event:n}),!0)}}];var Hu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},zo=class extends No{constructor(t){super(t,Hu)}static setup(){return window.addEventListener(Hu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Hu.move.name,t)};function t(){}}};zo.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 Eo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Eo||(Eo={}));var Is;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Is||(Is={}));function ab(e){let{acceleration:t,activator:n=Eo.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=Is.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:p,threshold:f}=e,m=ub({delta:p,disabled:!i}),[h,g]=Ph(),C=$({x:0,y:0}),w=$({x:0,y:0}),k=q(()=>{switch(n){case Eo.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Eo.DraggableRect:return o}},[n,o,c]),b=$(null),R=Z(()=>{let T=b.current;if(!T)return;let O=C.current.x*w.current.x,B=C.current.y*w.current.y;T.scrollBy(O,B)},[]),L=q(()=>a===Is.TreeOrder?[...u].reverse():u,[a,u]);z(()=>{if(!i||!u.length||!k){g();return}for(let T of L){if(r?.(T)===!1)continue;let O=u.indexOf(T),B=l[O];if(!B)continue;let{direction:de,speed:ne}=Jy(T,B,k,t,f);for(let se of["x","y"])m[se][de[se]]||(ne[se]=0,de[se]=0);if(ne.x>0||ne.y>0){g(),b.current=T,h(R,s),C.current=ne,w.current=de;return}}C.current={x:0,y:0},w.current={x:0,y:0},g()},[t,R,r,g,i,s,JSON.stringify(k),JSON.stringify(m),h,u,L,l,JSON.stringify(f)])}var cb={x:{[De.Backward]:!1,[De.Forward]:!1},y:{[De.Backward]:!1,[De.Forward]:!1}};function ub(e){let{delta:t,disabled:n}=e,r=ys(t);return Ir(o=>{if(n||!r||!o)return cb;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 lb(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Ir(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function db(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 Zo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Zo||(Zo={}));var Uu;(function(e){e.Optimized="optimized"})(Uu||(Uu={}));var Oh=new Map;function pb(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=E(null),{frequency:a,measure:c,strategy:u}=o,l=$(e),p=C(),f=xr(p),m=Z(function(w){w===void 0&&(w=[]),!f.current&&s(k=>k===null?w:k.concat(w.filter(b=>!k.includes(b))))},[f]),h=$(null),g=Ir(w=>{if(p&&!n)return Oh;if(!w||w===Oh||l.current!==e||i!=null){let k=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){k.set(b.id,b.rect.current);continue}let R=b.node.current,L=R?new Do(c(R),R):null;b.rect.current=L,L&&k.set(b.id,L)}return k}return w},[e,i,n,p,c]);return z(()=>{l.current=e},[e]),z(()=>{p||m()},[n,p]),z(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),z(()=>{p||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},a))},[a,p,m,...r]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:i!=null};function C(){switch(u){case Zo.Always:return!1;case Zo.BeforeDragging:return n;default:return!n}}}function e5(e,t){return Ir(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function fb(e,t){return e5(e,t)}function mb(e){let{callback:t,disabled:n}=e,r=ks(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 Ss(e){let{callback:t,disabled:n}=e,r=ks(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 hb(e){return new Do(jo(e),e)}function zh(e,t,n){t===void 0&&(t=hb);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=mb({callback(c){if(e)for(let u of c){let{type:l,target:p}=u;if(l==="childList"&&p instanceof HTMLElement&&p.contains(e)){i();break}}}}),a=Ss({callback:i});return Yt(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function gb(e){let t=e5(e);return Uh(e,t)}var Zh=[];function Cb(e){let t=$(e),n=Ir(r=>e?r&&r!==Zh&&e&&t.current&&e.parentNode===t.current.parentNode?r:Gu(e):Zh,[e]);return z(()=>{t.current=e},[e]),n}function kb(e){let[t,n]=E(null),r=$(e),o=Z(i=>{let s=Wu(i.target);s&&n(a=>a?(a.set(s,Fu(s)),new Map(a)):null)},[]);return z(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Wu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Fu(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=Wu(c);u?.removeEventListener("scroll",o)})}},[o,e]),q(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Vn(i,s),At):Xh(e):At,[e,t])}function jh(e,t){t===void 0&&(t=[]);let n=$(null);return z(()=>{n.current=null},t),z(()=>{let r=e!==At;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ao(e,n.current):At}function yb(e){z(()=>{if(!Ro)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 bb(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?Uy(e):null,[e])}var Wh=[];function vb(e,t){t===void 0&&(t=jo);let[n]=e,r=t5(n?Ke(n):null),[o,i]=E(Wh);function s(){i(()=>e.length?e.map(c=>Jh(c)?r:new Do(t(c),c)):Wh)}let a=Ss({callback:s});return Yt(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function wb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return wr(t)?t:e}function xb(e){let{measure:t}=e,[n,r]=E(null),o=Z(u=>{for(let{target:l}of u)if(wr(l)){r(p=>{let f=t(l);return p?{...p,width:f.width,height:f.height}:f});break}},[t]),i=Ss({callback:o}),s=Z(u=>{let l=wb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=To(s);return q(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var Ib=[{sensor:xs,options:{}},{sensor:_r,options:{}}],_b={current:{}},vs={draggable:{measure:Ah},droppable:{measure:Ah,strategy:Zo.WhileDragging,frequency:Uu.Optimized},dragOverlay:{measure:jo}},Fn=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}},Sb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ws},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:vs,measureDroppableContainers:ws,windowRect:null,measuringScheduled:!1},Pb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ws,draggableNodes:new Map,over:null,measureDroppableContainers:ws},Ps=xe(Pb),Lb=xe(Sb);function Mb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fn}}}function Rb(e,t){switch(t.type){case Te.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Te.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 Te.DragEnd:case Te.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Te.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Fn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Te.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 Fn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Te.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Fn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Tb(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=Ie(Ps),i=ys(r),s=ys(n?.id);return z(()=>{if(!t&&!r&&i&&s!=null){if(!ju(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 p=Mh(l);if(p){p.focus();break}}})}},[r,t,o,s,i]),null}function $b(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Ab(e){return q(()=>({draggable:{...vs.draggable,...e?.draggable},droppable:{...vs.droppable,...e?.droppable},dragOverlay:{...vs.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Eb(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;Yt(()=>{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),p=Uh(l,r);if(s||(p.x=0),a||(p.y=0),i.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){let f=Gh(u);f&&f.scrollBy({top:p.y,left:p.x})}},[t,s,a,r,n])}var n5=xe({...At,scaleX:1,scaleY:1}),yn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(yn||(yn={}));var r5=bt(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=Ib,collisionDetection:p=zy,measuring:f,modifiers:m,...h}=t,g=Nu(Rb,void 0,Mb),[C,w]=g,[k,b]=Ly(),[R,L]=E(yn.Uninitialized),T=R===yn.Initialized,{draggable:{active:O,nodes:B,translate:de},droppable:{containers:ne}}=C,se=O!=null?B.get(O):null,H=$({initial:null,translated:null}),Q=q(()=>{var Ce;return O!=null?{id:O,data:(Ce=se?.data)!=null?Ce:_b,rect:H}:null},[O,se]),ie=$(null),[_e,gt]=E(null),[tt,zn]=E(null),ut=xr(h,Object.values(h)),Ct=$o("DndDescribedBy",s),lt=q(()=>ne.getEnabled(),[ne]),dt=Ab(f),{droppableRects:Me,measureDroppableContainers:kt,measuringScheduled:Wt}=pb(lt,{dragging:T,dependencies:[de.x,de.y],config:dt.droppable}),Ee=lb(B,O),cn=q(()=>tt?bs(tt):null,[tt]),un=Tt(),ln=fb(Ee,dt.draggable.measure);Eb({activeNode:O!=null?B.get(O):null,config:un.layoutShiftCompensation,initialRect:ln,measure:dt.draggable.measure});let We=zh(Ee,dt.draggable.measure,ln),pt=zh(Ee?Ee.parentElement:null),Re=$({activatorEvent:null,active:null,activeNode:Ee,collisionRect:null,collisions:null,droppableRects:Me,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:ne,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),he=ne.getNodeFor((n=Re.current.over)==null?void 0:n.id),yt=xb({measure:dt.dragOverlay.measure}),ge=(r=yt.nodeRef.current)!=null?r:Ee,St=T?(o=yt.rect)!=null?o:We:null,te=!!(yt.nodeRef.current&&yt.rect),dn=gb(te?null:We),pn=t5(ge?Ke(ge):null),Fe=Cb(T?he??Ee:null),ft=vb(Fe),Pt=$b(m,{transform:{x:de.x-dn.x,y:de.y-dn.y,scaleX:1,scaleY:1},activatorEvent:tt,active:Q,activeNodeRect:We,containerNodeRect:pt,draggingNodeRect:St,over:Re.current.over,overlayNodeRect:yt.rect,scrollableAncestors:Fe,scrollableAncestorRects:ft,windowRect:pn}),j=cn?Vn(cn,de):null,me=kb(Fe),os=jh(me),is=jh(me,[We]),Lt=Vn(Pt,os),Mt=St?Vy(St,Pt):null,Zn=Q&&Mt?p({active:Q,collisionRect:Mt,droppableRects:Me,droppableContainers:lt,pointerCoordinates:j}):null,Io=Ny(Zn,"id"),[Rt,Cr]=E(null),Mu=te?Pt:Vn(Pt,is),kr=jy(Mu,(i=Rt?.rect)!=null?i:null,We),fn=$(null),ss=Z((Ce,we)=>{let{sensor:v,options:S}=we;if(ie.current==null)return;let P=B.get(ie.current);if(!P)return;let U=Ce.nativeEvent,Y=new v({active:ie.current,activeNode:P,event:U,options:S,context:Re,onAbort(re){if(!B.get(re))return;let{onDragAbort:Se}=ut.current,qt={id:re};Se?.(qt),k({type:"onDragAbort",event:qt})},onPending(re,Be,Se,qt){if(!B.get(re))return;let{onDragPending:So}=ut.current,mn={id:re,constraint:Be,initialCoordinates:Se,offset:qt};So?.(mn),k({type:"onDragPending",event:mn})},onStart(re){let Be=ie.current;if(Be==null)return;let Se=B.get(Be);if(!Se)return;let{onDragStart:qt}=ut.current,_o={activatorEvent:U,active:{id:Be,data:Se.data,rect:H}};Mo(()=>{qt?.(_o),L(yn.Initializing),w({type:Te.DragStart,initialCoordinates:re,active:Be}),k({type:"onDragStart",event:_o}),gt(fn.current),zn(U)})},onMove(re){w({type:Te.DragMove,coordinates:re})},onEnd:ye(Te.DragEnd),onCancel:ye(Te.DragCancel)});fn.current=Y;function ye(re){return async function(){let{active:Se,collisions:qt,over:_o,scrollAdjustedTranslate:So}=Re.current,mn=null;if(Se&&So){let{cancelDrop:Po}=ut.current;mn={activatorEvent:U,active:Se,collisions:qt,delta:So,over:_o},re===Te.DragEnd&&typeof Po=="function"&&await Promise.resolve(Po(mn))&&(re=Te.DragCancel)}ie.current=null,Mo(()=>{w({type:re}),L(yn.Uninitialized),Cr(null),gt(null),zn(null),fn.current=null;let Po=re===Te.DragEnd?"onDragEnd":"onDragCancel";if(mn){let $u=ut.current[Po];$u?.(mn),k({type:Po,event:mn})}})}}},[B]),as=Z((Ce,we)=>(v,S)=>{let P=v.nativeEvent,U=B.get(S);if(ie.current!==null||!U||P.dndKit||P.defaultPrevented)return;let Y={active:U};Ce(v,we.options,Y)===!0&&(P.dndKit={capturedBy:we.sensor},ie.current=S,ss(v,we))},[B,ss]),cs=db(l,as);yb(l),Yt(()=>{We&&R===yn.Initializing&&L(yn.Initialized)},[We,R]),z(()=>{let{onDragMove:Ce}=ut.current,{active:we,activatorEvent:v,collisions:S,over:P}=Re.current;if(!we||!v)return;let U={active:we,activatorEvent:v,collisions:S,delta:{x:Lt.x,y:Lt.y},over:P};Mo(()=>{Ce?.(U),k({type:"onDragMove",event:U})})},[Lt.x,Lt.y]),z(()=>{let{active:Ce,activatorEvent:we,collisions:v,droppableContainers:S,scrollAdjustedTranslate:P}=Re.current;if(!Ce||ie.current==null||!we||!P)return;let{onDragOver:U}=ut.current,Y=S.get(Io),ye=Y&&Y.rect.current?{id:Y.id,rect:Y.rect.current,data:Y.data,disabled:Y.disabled}:null,re={active:Ce,activatorEvent:we,collisions:v,delta:{x:P.x,y:P.y},over:ye};Mo(()=>{Cr(ye),U?.(re),k({type:"onDragOver",event:re})})},[Io]),Yt(()=>{Re.current={activatorEvent:tt,active:Q,activeNode:Ee,collisionRect:Mt,collisions:Zn,droppableRects:Me,draggableNodes:B,draggingNode:ge,draggingNodeRect:St,droppableContainers:ne,over:Rt,scrollableAncestors:Fe,scrollAdjustedTranslate:Lt},H.current={initial:St,translated:Mt}},[Q,Ee,Zn,Mt,B,ge,St,Me,ne,Rt,Fe,Lt]),ab({...un,delta:de,draggingRect:Mt,pointerCoordinates:j,scrollableAncestors:Fe,scrollableAncestorRects:ft});let Ru=q(()=>({active:Q,activeNode:Ee,activeNodeRect:We,activatorEvent:tt,collisions:Zn,containerNodeRect:pt,dragOverlay:yt,draggableNodes:B,droppableContainers:ne,droppableRects:Me,over:Rt,measureDroppableContainers:kt,scrollableAncestors:Fe,scrollableAncestorRects:ft,measuringConfiguration:dt,measuringScheduled:Wt,windowRect:pn}),[Q,Ee,We,tt,Zn,pt,yt,B,ne,Me,Rt,kt,Fe,ft,dt,Wt,pn]),Tu=q(()=>({activatorEvent:tt,activators:cs,active:Q,activeNodeRect:We,ariaDescribedById:{draggable:Ct},dispatch:w,draggableNodes:B,over:Rt,measureDroppableContainers:kt}),[tt,cs,Q,We,w,Ct,B,Rt,kt]);return Ue.createElement(Hh.Provider,{value:b},Ue.createElement(Ps.Provider,{value:Tu},Ue.createElement(Lb.Provider,{value:Ru},Ue.createElement(n5.Provider,{value:kr},u)),Ue.createElement(Tb,{disabled:a?.restoreFocus===!1})),Ue.createElement(Ty,{...a,hiddenTextDescribedById:Ct}));function Tt(){let Ce=_e?.autoScrollEnabled===!1,we=typeof c=="object"?c.enabled===!1:c===!1,v=T&&!Ce&&!we;return typeof c=="object"?{...c,enabled:v}:{enabled:v}}}),Db=xe(null),Vh="button",Nb="Draggable";function Ls(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=$o(Nb),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:p,over:f}=Ie(Ps),{role:m=Vh,roleDescription:h="draggable",tabIndex:g=0}=o??{},C=c?.id===t,w=Ie(C?n5:Db),[k,b]=To(),[R,L]=To(),T=bb(s,t),O=xr(n);Yt(()=>(p.set(t,{id:t,key:i,node:k,activatorNode:R,data:O}),()=>{let de=p.get(t);de&&de.key===i&&p.delete(t)}),[p,t]);let B=q(()=>({role:m,tabIndex:g,"aria-disabled":r,"aria-pressed":C&&m===Vh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,m,g,C,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:B,isDragging:C,listeners:r?void 0:T,node:k,over:f,setNodeRef:b,setActivatorNodeRef:L,transform:w}}var Ob="Droppable",zb={timeout:25};function Ms(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=$o(Ob),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=Ie(Ps),l=$({disabled:n}),p=$(!1),f=$(null),m=$(null),{disabled:h,updateMeasurementsFor:g,timeout:C}={...zb,...o},w=xr(g??r),k=Z(()=>{if(!p.current){p.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(w.current)?w.current:[w.current]),m.current=null},C)},[C]),b=Ss({callback:k,disabled:h||!s}),R=Z((B,de)=>{b&&(de&&(b.unobserve(de),p.current=!1),B&&b.observe(B))},[b]),[L,T]=To(R),O=xr(t);return z(()=>{!b||!L.current||(b.disconnect(),p.current=!1,b.observe(L.current))},[L,b]),z(()=>(a({type:Te.RegisterDroppable,element:{id:r,key:i,disabled:n,node:L,rect:f,data:O}}),()=>a({type:Te.UnregisterDroppable,key:i,id:r})),[r]),z(()=>{n!==l.current.disabled&&(a({type:Te.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:f,isOver:c?.id===r,node:L,over:c,setNodeRef:T}}var Ku=globalThis.__bbPluginRuntime;if(Ku==null||Ku.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 Rs=Ku.sonner,sL="default"in Rs?Rs.default:Rs,{Toaster:aL,toast:rt,useSonner:cL}=Rs;var Zb=Object.defineProperty,Ju=(e,t)=>Zb(e,"name",{value:t,configurable:!0});function qu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ju(qu,"setRef");function o5(...e){return t=>{let n=!1,r=e.map(o=>{let i=qu(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():qu(e[o],null)}}}}Ju(o5,"composeRefs");function Yu(...e){return Z(o5(...e),e)}Ju(Yu,"useComposedRefs");var jb=Object.defineProperty,Et=(e,t)=>jb(e,"name",{value:t,configurable:!0});function i5(e){let t=W((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];Xu(o)&&typeof Ts=="function"&&(o=Ts(o._payload)),fs.forEach(o,f=>{if(u5(f)){a=!0;let m=f,h="child"in m.props?m.props.child:m.props.children;Xu(h)&&typeof Ts=="function"&&(h=Ts(h._payload)),s=Vb(m,h),c.push(s?.props?.children)}else c.push(f)}),s?s=br(s,void 0,c):!a&&fs.count(o)===1&&vr(o)&&(s=o);let u=s?c5(s):void 0,l=Yu(r,u);if(!s){if(o||o===0)throw new Error(a?Bb(e):Fb(e));return o}let p=a5(i,s.props??{});return s.type!==yr&&(p.ref=r?l:u),br(s,p)});return t.displayName=`${e}.Slot`,t}Et(i5,"createSlot");var bn=i5("Slot"),s5=Symbol.for("radix.slottable");function Wb(e){let t=Et(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=s5,t}Et(Wb,"createSlottable");var Vb=Et((e,t)=>{if("child"in e.props){let n=e.props.child;return vr(n)?br(n,void 0,e.props.children(n.props.children)):null}return vr(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}}Et(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)}Et(c5,"getElementRef");function u5(e){return vr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s5}Et(u5,"isSlottable");var Hb=Symbol.for("react.lazy");function Xu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hb&&"_payload"in e&&l5(e._payload)}Et(Xu,"isLazyComponent");function l5(e){return typeof e=="object"&&e!==null&&"then"in e}Et(l5,"isPromiseLike");var Fb=Et(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Bb=Et(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ts=Ge[" use ".trim().toString()];var Qu=globalThis.__bbPluginRuntime;if(Qu==null||Qu.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 $s=Qu.classVarianceAuthority,fL="default"in $s?$s.default:$s,{cva:d5,cx:mL}=$s;var el=globalThis.__bbPluginRuntime;if(el==null||el.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 As=el.clsx,gL="default"in As?As.default:As,{clsx:p5}=As;var tl=globalThis.__bbPluginRuntime;if(tl==null||tl.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 Es=tl.tailwindMerge,kL="default"in Es?Es.default:Es,{createTailwindMerge:yL,extendTailwindMerge:bL,fromTheme:vL,getDefaultConfig:wL,mergeConfigs:xL,twJoin:IL,twMerge:f5,validators:_L}=Es;function I(...e){return f5(p5(e))}var Ds="transition-colors duration-150 hover:duration-0",Vt="transition-none";var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.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 Ns=nl.jsxRuntime,TL="default"in Ns?Ns.default:Ns,{Fragment:qe,jsx:d,jsxs:x}=Ns;var Os=d5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${Ds} 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"}}),Ve=W(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>d(r?bn:"button",{className:I(Os({variant:t,size:n,className:e})),ref:i,...o}));Ve.displayName="Button";var rl=globalThis.__bbPluginRuntime;if(rl==null||rl.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 zs=rl.radixPopover,ZL="default"in zs?zs.default:zs,{Anchor:m5,Arrow:jL,Close:WL,Content:h5,Popover:VL,PopoverAnchor:HL,PopoverArrow:FL,PopoverClose:BL,PopoverContent:UL,PopoverPortal:GL,PopoverTrigger:KL,Portal:g5,Root:C5,Trigger:k5,createPopoverScope:qL}=zs;function Pe(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var Gb="select-none",Kb=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),vn=e=>I(Gb,e);function qb(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!Kb.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function Wo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!qb(t)||e!==null&&!e.contains(t)||t.blur()}function wn(){Wo(null)}function y5(){Wo(null)}function Xt(e){e.preventDefault()}var ol="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{ol="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{ol="pointer"},{capture:!0}));function Zs(){return ol==="keyboard"}var js=new Map;function Jb(e){if(typeof window>"u"||!window.matchMedia)return null;let t=js.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),js.delete(e))}}},js.set(e,t),t}function Yb(e,t){return Jb(e)?.subscribe(t)??(()=>{})}function Xb(e){return typeof window>"u"||!window.matchMedia?!1:js.get(e)?.mql.matches??window.matchMedia(e).matches}function Ws(e){return Jt(t=>Yb(e,t),()=>Xb(e),()=>!1)}var Qb="(max-width: 767px)",ev=xe(null);function b5(){let e=Ie(ev),t=Ws(Qb);return e!==null?e:t}var tv="(pointer: coarse)";function Vs(){return Ws(tv)}var nv=120,Bs={width:"auto",minWidth:"auto",maxWidth:"none"},il="--bb-drawer-keyboard-inset",rv=80;function Fs(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(il))}function ov({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=rv?r:0}function iv(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){Fs(n);return}let a=ov({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(il);return}n.style.bottom=`${a}px`,n.style.setProperty(il,`${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),Fs(n)}},[t,e])}function sv(){let e=b5()?"drawer":"floating",t=Vs();return{presentation:e,supportsHover:e==="floating"&&!t}}function Sr(e,t,n=!1){let{presentation:r}=sv(),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 Bn=W(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=vn(s),l=f=>{o?.(f),f.defaultPrevented||(t||wn(),n(!t))},p={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?d(bn,{ref:c,onClick:l,onMouseDown:Xt,className:u,...p,...a,children:i}):d("button",{ref:c,type:"button",onClick:l,onMouseDown:Xt,className:u,...p,...a,children:i})});Bn.displayName="MobileTrigger";var av=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],cv=new Set(av);function Pr(e){let t={};for(let n of Object.keys(e))cv.has(n)||(t[n]=e[n]);return t}function uv({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,nv);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function Lr({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=uv({open:e});return!e&&!l?null:d(kv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:d("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var v5="cubic-bezier(0.32, 0.72, 0, 1)",lv=.25,dv=450,pv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Hs=new WeakMap;function fv(e){return Array.from(e.querySelectorAll(pv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function mv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function hv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&mv(n,t))return;let r=fv(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 gv(e,t){let n=Hs.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"&&hv(i,a))};n={entries:r,handleKeyDown:o},Hs.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=Hs.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),Hs.delete(e))}}function Cv({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=$(null);nt(()=>{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=gv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=$(n);nt(()=>{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 kv({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 p=$(null),f=$(null),m=$(null),h=$(null),g=kn(),C=Pe(),w=`transform ${c}ms ${v5}`,k=`opacity ${c}ms ${v5}`,b=$(t);nt(()=>{b.current=t},[t]);let R=Z(()=>{Wo(p.current),Fs(p.current),b.current(!1)},[]),L=Z(()=>{Wo(p.current),Fs(p.current)},[]);Cv({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:L,open:e,panelRef:p,requestClose:R}),iv(p,e);let T=Z(H=>{h.current!==H&&(h.current=H,u?.(H))},[u]);z(()=>{h.current=null;let H=window.setTimeout(()=>T(e),c+50);return()=>window.clearTimeout(H)},[c,e,T]);let O=Z((H,Q,ie)=>{let _e=p.current,gt=f.current;_e===null||gt===null||(_e.style.transition=ie?w:"none",_e.style.transform=`translate3d(0, ${H}px, 0)`,gt.style.transition=ie?k:"none",gt.style.opacity=String(Math.max(0,Math.min(1,1-H/Q))))},[k,w]),B=Z(H=>{if(!e||H.button!==0)return;H.currentTarget.setPointerCapture(H.pointerId);let Q=Date.now(),ie=Math.max(p.current?.clientHeight??0,1);m.current={pointerId:H.pointerId,startY:H.clientY,lastY:H.clientY,lastTimeMs:Q,velocityY:0,height:ie},O(0,ie,!1),H.preventDefault()},[e,O]),de=Z(H=>{let Q=m.current;if(Q===null||Q.pointerId!==H.pointerId)return;let ie=Date.now(),_e=ie-Q.lastTimeMs;_e>0&&(Q.velocityY=(H.clientY-Q.lastY)/_e*1e3,Q.lastY=H.clientY,Q.lastTimeMs=ie),O(Math.max(0,H.clientY-Q.startY),Q.height,!1),H.preventDefault()},[O]),ne=Z((H,Q)=>{let ie=m.current;if(ie===null||ie.pointerId!==H.pointerId)return;m.current=null;let _e=Math.max(0,H.clientY-ie.startY);!Q&&(_e>=ie.height*lv||ie.velocityY>=dv)?(O(ie.height,ie.height,!0),R()):O(0,ie.height,!0),H.preventDefault()},[R,O]),se=typeof document>"u"?null:document.body;return se===null?null:hs(x(qe,{children:[d("div",{ref:f,...C,"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:k},onClick:r?R:void 0,onTouchMove:H=>H.preventDefault()}),x("div",{ref:p,...C,"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:w,willChange:e?"transform":void 0},onTransitionEnd:H=>{H.currentTarget===H.target&&H.propertyName==="transform"&&T(e)},children:[d("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:B,onPointerMove:de,onPointerUp:H=>ne(H,!1),onPointerCancel:H=>ne(H,!0),children:d("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:d("h2",{id:g,className:"sr-only",children:o}),l]})]}),se)}var sl=xe({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function al(){return Ie(sl)}function Us({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=Sr(t,n,r);return i.isCompactViewport?d(sl.Provider,{value:i,children:e}):d(C5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:d(sl.Provider,{value:i,children:e})})}var Vo=W(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=al();return i?d(Bn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):d(k5,{ref:o,asChild:e,className:vn(n),onMouseDown:c=>{s||wn(),Xt(c)},...r,children:t})});Vo.displayName="PopoverTrigger";var Ho=W(({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,...p},f)=>{let{isCompactViewport:m,open:h,onOpenChange:g}=al(),C=Vs(),w=Pe();if(z(()=>{if(!h||m||C||!l)return;let k=window.requestAnimationFrame(()=>{let b=l.current;b?.focus(),b instanceof HTMLInputElement&&b.select()});return()=>window.cancelAnimationFrame(k)},[l,m,C,h]),m){let{style:k,...b}=Pr(p);return d(Lr,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:d("div",{ref:f,className:I("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...b,style:{...k,...Bs},children:r})})}return d(g5,{children:d(h5,{ref:f,...w,align:t,sideOffset:n,onOpenAutoFocus:k=>{(C||l)&&k.preventDefault(),C||u?.(k)},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),...p,onInteractOutside:k=>{o||k.preventDefault(),i?.(k)},children:r})})});Ho.displayName="PopoverContent";var yv=W(({children:e,...t},n)=>{let{isCompactViewport:r}=al();return r?d(qe,{children:e}):d(m5,{ref:n,...t,children:e})});yv.displayName="PopoverAnchor";var bv=new Set(["needs-you","unread-failed","queue-failed","offline","unread"]),vv=new Set(["working","background","queued","scheduled"]);function wv(e){return!vv.has(e.state.kind)}function xv(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 w5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!wv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=xv(e,t)}function x5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)bv.has(r)&&n.add(r);return n}return e.has("needs-you")&&n.add("needs-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 I5(e,t){return e.has("needs-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}function _5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.attention.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),I5(o.attention,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,attention:r}}function S5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.attention)e?.attention.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 P5(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 L5(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 M5(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=_5(e,t),p=S5(n.current,l);n.current=l,r.current=e,o.current=t,c=P5(i,p),c!==i&&(a.current=c,s(c))}let u=Z(l=>{let p=L5(a.current,l);p!==a.current&&(a.current=p,s(p))},[]);return{targets:c,prune:u}}var oe={};$t(oe,{$brand:()=>wl,$input:()=>G1,$output:()=>U1,INVALID:()=>Xe,NEVER:()=>vl,TimePrecision:()=>op,ZodAny:()=>Uf,ZodArray:()=>Jf,ZodBase64:()=>Hc,ZodBase64URL:()=>Fc,ZodBigInt:()=>lo,ZodBigIntFormat:()=>Gc,ZodBoolean:()=>uo,ZodCIDRv4:()=>Wc,ZodCIDRv6:()=>Vc,ZodCUID:()=>Ec,ZodCUID2:()=>Dc,ZodCatch:()=>C2,ZodCodec:()=>Ni,ZodCompileAsyncError:()=>Nt,ZodCompileUnsupportedError:()=>ee,ZodCreditCard:()=>zf,ZodCustom:()=>Oi,ZodCustomStringFormat:()=>ur,ZodDate:()=>Ri,ZodDefault:()=>d2,ZodDiscriminatedUnion:()=>Xf,ZodE164:()=>Bc,ZodEmail:()=>Rc,ZodEmoji:()=>$c,ZodEnum:()=>so,ZodError:()=>AI,ZodExactOptional:()=>Yc,ZodFile:()=>a2,ZodFirstPartyTypeKind:()=>T2,ZodFunction:()=>P2,ZodGUID:()=>Tc,ZodIBAN:()=>Zf,ZodIPv4:()=>Zc,ZodIPv6:()=>jc,ZodISODate:()=>$n,ZodISODateTime:()=>Tn,ZodISODuration:()=>En,ZodISOTime:()=>An,ZodInstanceOf:()=>R2,ZodIntersection:()=>Qf,ZodIssueCode:()=>NI,ZodJWT:()=>Uc,ZodKSUID:()=>zc,ZodLazy:()=>I2,ZodLiteral:()=>s2,ZodMAC:()=>Of,ZodMap:()=>o2,ZodNaN:()=>y2,ZodNanoID:()=>Ac,ZodNever:()=>Kf,ZodNonOptional:()=>Xc,ZodNull:()=>Ff,ZodNullable:()=>l2,ZodNumber:()=>co,ZodNumberFormat:()=>lr,ZodObject:()=>$i,ZodOptional:()=>Ei,ZodPipe:()=>Di,ZodPrefault:()=>f2,ZodPreprocess:()=>b2,ZodPromise:()=>S2,ZodReadonly:()=>v2,ZodRealError:()=>ct,ZodRecord:()=>io,ZodSet:()=>i2,ZodString:()=>ao,ZodStringFormat:()=>le,ZodSuccess:()=>g2,ZodSymbol:()=>Vf,ZodTemplateLiteral:()=>x2,ZodTransform:()=>c2,ZodTuple:()=>t2,ZodType:()=>J,ZodULID:()=>Nc,ZodURL:()=>Mi,ZodUUID:()=>Ut,ZodUndefined:()=>Hf,ZodUnion:()=>Ai,ZodUnknown:()=>Gf,ZodVoid:()=>qf,ZodXID:()=>Oc,ZodXor:()=>Yf,_ZodString:()=>Mc,_default:()=>p2,_function:()=>Q9,any:()=>R9,array:()=>Ti,base64:()=>l9,base64url:()=>d9,bigint:()=>_9,boolean:()=>Wf,catch:()=>k2,check:()=>e4,cidrv4:()=>c9,cidrv6:()=>u9,clone:()=>ae,codec:()=>q9,coerce:()=>A2,compile:()=>Y1,config:()=>ve,core:()=>rn,creditCard:()=>f9,cuid:()=>e9,cuid2:()=>t9,currencyCode:()=>y9,custom:()=>t4,date:()=>$9,decode:()=>Rf,decodeAsync:()=>$f,deepPartial:()=>m4,describe:()=>n4,discriminatedUnion:()=>z9,e164:()=>p9,email:()=>F0,emoji:()=>X0,encode:()=>Mf,encodeAsync:()=>Tf,endsWith:()=>Kr,enum:()=>qc,exactOptional:()=>u2,file:()=>B9,flattenError:()=>Qo,float32:()=>v9,float64:()=>w9,formatError:()=>ei,fromJSONSchema:()=>p4,function:()=>Q9,getDiscriminatedOption:()=>b1,getErrorMap:()=>zI,globalRegistry:()=>je,gt:()=>Ft,gte:()=>ht,guid:()=>B0,hash:()=>b9,hex:()=>k9,hostname:()=>C9,httpUrl:()=>Y0,iban:()=>m9,includes:()=>Ur,input:()=>g4,instanceof:()=>o4,int:()=>Pc,int32:()=>x9,int64:()=>S9,intersection:()=>e2,invertCodec:()=>J9,ipv4:()=>i9,ipv6:()=>a9,iso:()=>zi,json:()=>s4,jwt:()=>h9,keyof:()=>A9,ksuid:()=>o9,lazy:()=>_2,length:()=>or,literal:()=>F9,locales:()=>yi,looseObject:()=>N9,looseRecord:()=>j9,lowercase:()=>Fr,lt:()=>Ht,lte:()=>mt,mac:()=>s9,map:()=>W9,maxLength:()=>rr,maxSize:()=>Pn,memoizer:()=>ki,meta:()=>r4,mime:()=>Jr,minLength:()=>nn,minSize:()=>Bt,multipleOf:()=>Sn,nan:()=>K9,nanoid:()=>Q0,nativeEnum:()=>H9,negative:()=>gc,never:()=>Kc,nonnegative:()=>kc,nonoptional:()=>h2,nonpositive:()=>Cc,normalize:()=>Yr,null:()=>Bf,nullable:()=>Li,nullish:()=>U9,number:()=>jf,object:()=>E9,optional:()=>ar,output:()=>C4,overwrite:()=>Ot,parse:()=>_f,parseAsync:()=>Sf,partialRecord:()=>Z9,pipe:()=>Lc,positive:()=>hc,prefault:()=>m2,preprocess:()=>a4,prettifyError:()=>Pl,promise:()=>X9,properties:()=>qr,property:()=>yc,readonly:()=>w2,record:()=>r2,refine:()=>L2,regex:()=>Hr,regexes:()=>It,registry:()=>Fa,safeDecode:()=>Ef,safeDecodeAsync:()=>Nf,safeEncode:()=>Af,safeEncodeAsync:()=>Df,safeParse:()=>Pf,safeParseAsync:()=>Lf,set:()=>V9,setErrorMap:()=>OI,size:()=>nr,slugify:()=>to,startsWith:()=>Gr,strictObject:()=>D9,string:()=>Pi,stringFormat:()=>g9,stringbool:()=>i4,success:()=>G9,superRefine:()=>M2,symbol:()=>L9,templateLiteral:()=>Y9,toJSONSchema:()=>xc,toLowerCase:()=>Qr,toUpperCase:()=>eo,toZod:()=>Fo,transform:()=>Jc,treeifyError:()=>Sl,trim:()=>Xr,tuple:()=>n2,uint32:()=>I9,uint64:()=>P9,ulid:()=>n9,undefined:()=>M9,union:()=>po,unknown:()=>sr,uppercase:()=>Br,url:()=>J0,util:()=>N,uuid:()=>U0,uuidv4:()=>G0,uuidv6:()=>K0,uuidv7:()=>q0,validate:()=>ti,validateAsync:()=>ni,void:()=>T9,withParser:()=>Ba,xid:()=>r9,xor:()=>O9});var rn={};$t(rn,{$ZodAny:()=>p1,$ZodArray:()=>C1,$ZodAsyncError:()=>st,$ZodBase64:()=>e1,$ZodBase64URL:()=>t1,$ZodBigInt:()=>$a,$ZodBigIntFormat:()=>c1,$ZodBoolean:()=>pi,$ZodCIDRv4:()=>Xd,$ZodCIDRv6:()=>Qd,$ZodCUID:()=>jd,$ZodCUID2:()=>Wd,$ZodCatch:()=>N1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>fd,$ZodCheckEndsWith:()=>_d,$ZodCheckGreaterThan:()=>ga,$ZodCheckIncludes:()=>xd,$ZodCheckLengthEquals:()=>yd,$ZodCheckLessThan:()=>ha,$ZodCheckLowerCase:()=>vd,$ZodCheckMaxLength:()=>Cd,$ZodCheckMaxSize:()=>md,$ZodCheckMimeType:()=>Ld,$ZodCheckMinLength:()=>kd,$ZodCheckMinSize:()=>hd,$ZodCheckMultipleOf:()=>dd,$ZodCheckNumberFormat:()=>pd,$ZodCheckOverwrite:()=>Md,$ZodCheckProperties:()=>Pd,$ZodCheckProperty:()=>Sd,$ZodCheckRegex:()=>bd,$ZodCheckSizeEquals:()=>gd,$ZodCheckStartsWith:()=>Id,$ZodCheckStringFormat:()=>Zr,$ZodCheckUpperCase:()=>wd,$ZodCodec:()=>mi,$ZodCreditCard:()=>r1,$ZodCustom:()=>H1,$ZodCustomStringFormat:()=>s1,$ZodCyclicError:()=>Za,$ZodDate:()=>g1,$ZodDefault:()=>$1,$ZodDiscriminatedUnion:()=>v1,$ZodE164:()=>n1,$ZodEmail:()=>Ed,$ZodEmoji:()=>zd,$ZodEncodeError:()=>_n,$ZodEnum:()=>S1,$ZodError:()=>_l,$ZodExactOptional:()=>R1,$ZodFile:()=>L1,$ZodFunction:()=>W1,$ZodGUID:()=>$d,$ZodIBAN:()=>o1,$ZodIPv4:()=>qd,$ZodIPv6:()=>Jd,$ZodISODate:()=>Ud,$ZodISODateTime:()=>Bd,$ZodISODuration:()=>Kd,$ZodISOTime:()=>Gd,$ZodIntersection:()=>w1,$ZodJWT:()=>i1,$ZodKSUID:()=>Fd,$ZodLazy:()=>hi,$ZodLiteral:()=>P1,$ZodMAC:()=>Yd,$ZodMap:()=>I1,$ZodNaN:()=>O1,$ZodNanoID:()=>Zd,$ZodNever:()=>m1,$ZodNonOptional:()=>E1,$ZodNull:()=>d1,$ZodNullable:()=>T1,$ZodNumber:()=>Ta,$ZodNumberFormat:()=>a1,$ZodObject:()=>l0,$ZodObjectJIT:()=>k1,$ZodOptional:()=>Ea,$ZodPipe:()=>Da,$ZodPrefault:()=>A1,$ZodPreprocess:()=>z1,$ZodPromise:()=>V1,$ZodReadonly:()=>Z1,$ZodRealError:()=>at,$ZodRecord:()=>x1,$ZodRegistry:()=>Ha,$ZodSet:()=>_1,$ZodString:()=>Yn,$ZodStringFormat:()=>ce,$ZodSuccess:()=>D1,$ZodSymbol:()=>u1,$ZodTemplateLiteral:()=>j1,$ZodTransform:()=>M1,$ZodTuple:()=>Aa,$ZodType:()=>K,$ZodULID:()=>Vd,$ZodURL:()=>Od,$ZodUUID:()=>Ad,$ZodUndefined:()=>l1,$ZodUnion:()=>fi,$ZodUnknown:()=>f1,$ZodVoid:()=>h1,$ZodXID:()=>Hd,$ZodXor:()=>y1,$brand:()=>wl,$constructor:()=>y,$input:()=>G1,$output:()=>U1,Doc:()=>Jn,INVALID:()=>Xe,JSONSchema:()=>W0,JSONSchemaGenerator:()=>Ic,NEVER:()=>vl,TimePrecision:()=>op,URL_BAD_FORMAT:()=>Dd,URL_UNPARSEABLE:()=>ai,ZodCompileAsyncError:()=>Nt,ZodCompileUnsupportedError:()=>ee,_any:()=>vp,_array:()=>Lp,_base64:()=>dc,_base64url:()=>pc,_bigint:()=>mp,_boolean:()=>pp,_catch:()=>vI,_check:()=>_0,_cidrv4:()=>uc,_cidrv6:()=>lc,_coercedBigint:()=>hp,_coercedBoolean:()=>fp,_coercedDate:()=>Sp,_coercedNumber:()=>sp,_coercedString:()=>ep,_creditCard:()=>np,_cuid:()=>nc,_cuid2:()=>rc,_custom:()=>Rp,_date:()=>_p,_decode:()=>oa,_decodeAsync:()=>sa,_default:()=>kI,_discriminatedUnion:()=>sI,_e164:()=>fc,_email:()=>Ka,_emoji:()=>ec,_encode:()=>ra,_encodeAsync:()=>ia,_endsWith:()=>Kr,_enum:()=>pI,_file:()=>Mp,_float32:()=>cp,_float64:()=>up,_gt:()=>Ft,_gte:()=>ht,_guid:()=>qa,_iban:()=>rp,_includes:()=>Ur,_int:()=>ap,_int32:()=>lp,_int64:()=>gp,_intersection:()=>aI,_ipv4:()=>ac,_ipv6:()=>cc,_isoDate:()=>wi,_isoDateTime:()=>vi,_isoDuration:()=>Ii,_isoTime:()=>xi,_jwt:()=>mc,_ksuid:()=>sc,_lazy:()=>_I,_length:()=>or,_literal:()=>mI,_lowercase:()=>Fr,_lt:()=>Ht,_lte:()=>mt,_mac:()=>tp,_map:()=>lI,_max:()=>mt,_maxLength:()=>rr,_maxSize:()=>Pn,_mime:()=>Jr,_min:()=>ht,_minLength:()=>nn,_minSize:()=>Bt,_multipleOf:()=>Sn,_nan:()=>Pp,_nanoid:()=>tc,_nativeEnum:()=>fI,_negative:()=>gc,_never:()=>xp,_nonnegative:()=>kc,_nonoptional:()=>yI,_nonpositive:()=>Cc,_normalize:()=>Yr,_null:()=>bp,_nullable:()=>CI,_number:()=>ip,_optional:()=>gI,_overwrite:()=>Ot,_parse:()=>Dr,_parseAsync:()=>Nr,_pipe:()=>wI,_positive:()=>hc,_promise:()=>SI,_properties:()=>qr,_property:()=>yc,_readonly:()=>xI,_record:()=>uI,_refine:()=>Tp,_regex:()=>Hr,_safeDecode:()=>ca,_safeDecodeAsync:()=>la,_safeEncode:()=>aa,_safeEncodeAsync:()=>ua,_safeParse:()=>Or,_safeParseAsync:()=>zr,_set:()=>dI,_size:()=>nr,_slugify:()=>to,_startsWith:()=>Gr,_string:()=>Q1,_stringFormat:()=>ir,_stringbool:()=>Dp,_success:()=>bI,_superRefine:()=>$p,_symbol:()=>kp,_templateLiteral:()=>II,_toLowerCase:()=>Qr,_toUpperCase:()=>eo,_transform:()=>hI,_trim:()=>Xr,_tuple:()=>cI,_uint32:()=>dp,_uint64:()=>Cp,_ulid:()=>oc,_undefined:()=>yp,_union:()=>oI,_unknown:()=>wp,_uppercase:()=>Br,_url:()=>bi,_uuid:()=>Ja,_uuidv4:()=>Ya,_uuidv6:()=>Xa,_uuidv7:()=>Qa,_void:()=>Ip,_xid:()=>ic,_xor:()=>iI,base64Charset:()=>Sa,base64urlCharset:()=>di,canParseURL:()=>Nd,clone:()=>ae,compile:()=>Y1,compileFn:()=>Ua,config:()=>ve,createStandardJSONSchemaMethod:()=>no,createToJSONSchemaMethod:()=>Op,decode:()=>mw,decodeAsync:()=>gw,describe:()=>Ap,encode:()=>fw,encodeAsync:()=>hw,extractDefs:()=>Mn,finalize:()=>Rn,flattenError:()=>Qo,formatError:()=>ei,getDiscriminatedOption:()=>b1,globalConfig:()=>Ne,globalRegistry:()=>je,handleUnrepresentable:()=>$e,initializeContext:()=>Ln,isBackEdge:()=>Wa,isRecursiveSchema:()=>ja,isValidBase64:()=>li,isValidBase64URL:()=>Pa,isValidCIDRv6:()=>_a,isValidCreditCard:()=>La,isValidIBAN:()=>Ma,isValidIPv6:()=>ui,isValidJWT:()=>Ra,locales:()=>yi,memoizer:()=>ki,mergeValues:()=>jr,meta:()=>Ep,parse:()=>ta,parseAsync:()=>na,parseURLObject:()=>a0,prettifyError:()=>Pl,process:()=>ue,processSchema:()=>ue,regexes:()=>It,registry:()=>Fa,safeDecode:()=>kw,safeDecodeAsync:()=>bw,safeEncode:()=>Cw,safeEncodeAsync:()=>yw,safeParse:()=>cw,safeParseAsync:()=>uw,standardProps:()=>va,stripTabAndNewline:()=>ci,toDotPath:()=>j5,toJSONSchema:()=>xc,toZod:()=>Fo,treeifyError:()=>Sl,urlHostnameOk:()=>xa,urlProtocolOk:()=>Ia,util:()=>N,validate:()=>ti,validateAsync:()=>ni,validateURL:()=>wa,version:()=>Rd,withParser:()=>Ba});var N={};$t(N,{BIGINT_FORMAT_RANGES:()=>qo,CONSTANT_CATCH:()=>Qs,Class:()=>ll,NUMBER_FORMAT_RANGES:()=>Ko,aborted:()=>Ye,allowsEval:()=>fl,assert:()=>Lv,assertEqual:()=>Iv,assertIs:()=>Sv,assertNever:()=>Pv,assertNotEqual:()=>_v,assignProp:()=>Ze,attachSchema:()=>Xs,base64ToUint8Array:()=>E5,base64urlToUint8Array:()=>Gv,cached:()=>$r,captureStackTrace:()=>qs,cleanEnum:()=>Uv,cleanRegex:()=>en,clone:()=>ae,cloneDef:()=>Tv,codePointLength:()=>Kn,constantCatch:()=>yl,createTransparentProxy:()=>Ov,defineLazy:()=>dl,defineLazyInternal:()=>X,derived:()=>Yv,esc:()=>Je,escapeRegex:()=>xt,explicitlyAborted:()=>gl,extend:()=>jv,finalizeIssue:()=>it,floatSafeRemainder:()=>Bo,getElementAtPath:()=>$v,getEnumValues:()=>Rr,getLengthableOrigin:()=>Yo,getParsedType:()=>Nv,getSizableOrigin:()=>Jo,hexToUint8Array:()=>qv,hide:()=>Xo,installLazyProp:()=>tw,isObject:()=>Gn,isPlainObject:()=>wt,issue:()=>Er,joinValues:()=>Gs,jsonStringifyReplacer:()=>Tr,members:()=>kl,merge:()=>Vv,mergeDefs:()=>Dt,normalizeParams:()=>M,nullish:()=>Ks,numKeys:()=>Dv,objectClone:()=>Mv,omit:()=>Zv,optionalKeys:()=>hl,own:()=>In,parsedType:()=>Cl,partial:()=>Hv,pick:()=>zv,prefixIssues:()=>ot,primitiveTypes:()=>ml,promiseAllObject:()=>Av,propertyKeyTypes:()=>Go,randomString:()=>Ev,rawShape:()=>Ar,required:()=>Fv,safeExtend:()=>Wv,shallowClone:()=>Uo,slugify:()=>pl,stringifyPrimitive:()=>Js,toZod:()=>Fo,uint8ArrayToBase64:()=>D5,uint8ArrayToBase64url:()=>Kv,uint8ArrayToHex:()=>Jv,unwrapMessage:()=>Mr});function Iv(e){return e}function _v(e){return e}function Fo(){return e=>e}function Sv(e){}function Pv(e){throw new Error("Unexpected value in exhaustive check")}function Lv(e){}function Rr(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 Gs(e,t="|"){return e.map(n=>Js(n)).join(t)}function Tr(e,t){return typeof t=="bigint"?t.toString():t}var ul=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 $r(e){return new ul(e)}function Ks(e){return e==null}function en(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Bo(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 R5=Symbol("evaluating");function dl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==R5)return r===void 0&&(r=R5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Mv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ze(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ar(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Qt(e){return Ar(e._zod.def)??e._zod.def.shape}function T5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return Ze(this,t,r),r},enumerable:!0,configurable:!0})}function $5(e,t,n){t in e?Ze(e,t,n):e[t]=n}function Un(e,t,n,r){let o=Qt(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?T5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):$5(e,i,r?r(s.value,i):s.value))}}function Rv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?T5(e,n,()=>t[n]):$5(e,n,r.value))}}function Dt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Tv(e){return Dt(e._zod.def)}function $v(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Av(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 Ev(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Je(e){return JSON.stringify(e)}function pl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var qs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var fl=$r(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function wt(e){if(Gn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Gn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Uo(e){return wt(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 Nv=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}`)}},Go=new Set(["string","number","symbol"]),ml=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ae(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(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 Ov(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 Js(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function hl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Ko={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]},qo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function zv(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 Un(i,e,Ys(e,t)),ae(e,Dt(n,{shape:i,checks:[]}))}function Ys(e,t){let n=Qt(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(Ys(e,t)),s={};return Un(s,e,Reflect.ownKeys(Qt(e)).filter(a=>!i.has(a))),ae(e,Dt(n,{shape:s,checks:[]}))}function jv(e,t){if(!wt(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=Qt(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 ae(e,Dt(e._zod.def,{shape:A5(e,t)}))}function A5(e,t){let n={};return Un(n,e,Reflect.ownKeys(Qt(e))),Rv(n,t),n}function Wv(e,t){if(!wt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ae(e,Dt(e._zod.def,{shape:A5(e,t)}))}function Vv(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={};Un(n,e,Reflect.ownKeys(Qt(e))),Un(n,t,Reflect.ownKeys(Qt(t)));let r=Dt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ae(e,r)}function Hv(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(Ys(t,n)):void 0,c={};return Un(c,t,Reflect.ownKeys(Qt(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),ae(t,Dt(t._zod.def,{shape:c,checks:[]}))}function Fv(e,t,n){let r=n?new Set(Ys(t,n)):void 0,o={};return Un(o,t,Reflect.ownKeys(Qt(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),ae(t,Dt(t._zod.def,{shape:o}))}function Ye(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 gl(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 ot(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Mr(e){return typeof e=="string"?e:e?.message}function Xs(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function it(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:Mr(e.inst?._zod.def?.error?.(e))??Mr(i?.(e))??Mr(t?.error?.(e))??Mr(n.customError?.(e))??Mr(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 Jo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Bv=/[\uD800-\uDBFF]/;function Kn(e){let t=e.length;if(!Bv.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 Yo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Cl(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 Er(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Uv(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function E5(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 D5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Gv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return E5(t+n)}function Kv(e){return D5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function qv(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 Jv(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var ll=class{constructor(...t){}};function kl(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Xv(e,n,r.value)}}function In(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Xo(e,t,n){return In(e,t,n,!1)}function Yv(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return In(this,n,r(this))},set(o){In(this,n,o)}})}return t}function Xv(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:In(this,t,n.bind(this))},set(r){In(this,t,r)}})}function Qv(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var cl,xn=!1,ew={configurable:!0,get(){xn=!0}};function X(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&cl!==e._zod){cl=void 0;return}cl=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,ew);let o=xn;xn=!1;try{let i=n(this);return xn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),xn=xn||o,i}catch(i){throw delete this[t],xn=xn||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function tw(e,t,n,r){let o=Qv(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 Qs="~constantCatch";function yl(e){let t=()=>e;return t[Qs]=!0,t}var N5,vl=Object.freeze({status:"aborted"}),bl={value:void 0,enumerable:!1},O5="captureStackTrace"in Error?Error:null;function nw(e){let t=O5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return O5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function y(e,t,n,r){let o={};function i(f){this.def=f,this.constr=p,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(f,m){if(f._zod){if(f._zod.traits.has(e))return}else{bl.value=new i(m);try{Object.defineProperty(f,"_zod",bl)}finally{bl.value=void 0}}if(f._zod.traits.add(e),t(f,m),a){let g=Object.getPrototypeOf(f),C=f._zod.constr.prototype,w=g;for(;w&&w!==C;)w=Object.getPrototypeOf(w);let k=w??g;a.has(k)||(a.add(k),kl(k,s))}let h=p.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in f||(f[g]=h[g].bind(f)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function p(f){let m=r?.Parent?nw(l):this;c(m,f);let h=m._zod.deferred;if(h){for(let C of h)C();m._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(m),m}return Object.defineProperty(p,"init",{value:c}),Object.defineProperty(p,Symbol.hasInstance,{value:f=>r?.Parent&&f instanceof r.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(p,"name",{value:e}),p}var wl=Symbol("zod_brand"),st=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},_n=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(N5=globalThis).__zod_globalConfig??(N5.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ve(e){return e&&Object.assign(Ne,e),Ne}function rw(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Tr,2)),e.message}function ow(e){this._zod.message=e}var iw={get:rw,set:ow,enumerable:!0,configurable:!0},Il={value:void 0,enumerable:!1},z5=new WeakSet([Object.prototype,Error.prototype]),Z5=(e,t)=>{e.name="$ZodError",Il.value=t,Object.defineProperty(e,"issues",Il),Il.value=void 0,Object.defineProperty(e,"message",iw);let n=Object.getPrototypeOf(e);z5.has(n)||(z5.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})}}))},_l=y("$ZodError",Z5),at=y("$ZodError",Z5,void 0,{Parent:Error});function sw(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 Qo(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?sw(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function ei(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],p=u===a.length-1;if(l==="_errors"){p&&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 f=c[l];p&&f._errors.push(t(s)),c=f,u++}}}};return r(e),n}function Sl(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 p=c[l],f=l===c.length-1;typeof p=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,p)||Object.defineProperty(u.properties,p,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[p]):(u.items??(u.items=[]),(s=u.items)[p]??(s[p]={errors:[]}),u=u.items[p]),f&&u.errors.push(t(a)),l++}}};return r(e),n}function j5(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 Pl(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 ${j5(r.path)}`);return t.join(`
6
- `)}function ea(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Dr=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 st;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>it(u,s,ve())));throw qs(c,i?.callee??t),c}return a.value};return t},ta=Dr(at),Nr=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=>it(u,s,ve())));throw qs(c,i?.callee??t),c}return a.value};return t},na=Nr(at),Or=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 st;return i.issues.length?W5(e,i.issues,o):{success:!0,data:i.value}},cw=Or(at);function W5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>it(o,n,ve()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var zr=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?W5(e,i.issues,o):{success:!0,data:i.value}},uw=zr(at),lw=Symbol.for("zod.compile.invalid"),dw=Symbol.for("zod.compile.fallback"),ti=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==lw)return!0;if(r.definite===!0&&n===void 0)return!1}return pw(e,t,n)});function pw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[dw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new st;return i.issues.length===0}var ni=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},ra=e=>{let t=Dr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,ea(n,s))};return n},fw=ra(at),oa=e=>{let t=Dr(e),n=(r,o,i,s)=>t(r,o,i,ea(n,s));return n},mw=oa(at),ia=e=>{let t=Nr(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,ea(n,s))};return n},hw=ia(at),sa=e=>{let t=Nr(e),n=async(r,o,i,s)=>await t(r,o,i,ea(n,s));return n},gw=sa(at),aa=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Or(e)(t,n,o)},Cw=aa(at),ca=e=>(t,n,r)=>Or(e)(t,n,r),kw=ca(at),ua=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return zr(e)(t,n,o)},yw=ua(at),la=e=>async(t,n,r)=>zr(e)(t,n,r),bw=la(at);var It={};$t(It,{anyString:()=>ed,base64:()=>Bl,base64url:()=>Ul,bigint:()=>nd,boolean:()=>rd,browserEmail:()=>Lw,cidrv4:()=>Hl,cidrv6:()=>Fl,creditCard:()=>da,cuid:()=>Ml,cuid2:()=>Rl,currencyCode:()=>Jl,date:()=>Yl,datetime:()=>Ql,domain:()=>Kl,duration:()=>Nl,e164:()=>ql,email:()=>zl,emoji:()=>Zl,extendedDuration:()=>vw,guid:()=>Ol,hex:()=>cd,hostname:()=>Gl,html5Email:()=>_w,httpProtocol:()=>ri,iban:()=>pa,idnEmail:()=>Pw,integer:()=>oi,ipv4:()=>jl,ipv6:()=>Wl,ksuid:()=>Al,lowercase:()=>sd,mac:()=>Vl,md5_base64:()=>$w,md5_base64url:()=>Aw,md5_hex:()=>Tw,nanoid:()=>El,nanoidOfLength:()=>Dl,null:()=>od,number:()=>tn,rfc5322Email:()=>Sw,sha1_base64:()=>Dw,sha1_base64url:()=>Nw,sha1_hex:()=>Ew,sha256_base64:()=>zw,sha256_base64url:()=>Zw,sha256_hex:()=>Ow,sha384_base64:()=>Ww,sha384_base64url:()=>Vw,sha384_hex:()=>jw,sha512_base64:()=>Fw,sha512_base64url:()=>Bw,sha512_hex:()=>Hw,string:()=>td,time:()=>Xl,ulid:()=>Tl,undefined:()=>id,unicodeEmail:()=>V5,uppercase:()=>ad,uuid:()=>qn,uuid4:()=>ww,uuid6:()=>xw,uuid7:()=>Iw,xid:()=>$l});var Ml=/^[cC][0-9a-z]{6,}$/,Rl=/^[0-9a-z]+$/,Tl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,$l=/^[0-9a-vA-V]{20}$/,Al=/^[A-Za-z0-9]{27}$/,El=/^[a-zA-Z0-9_-]{21}$/;function Dl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Nl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vw=/^[-+]?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)?)??$/,Ol=/^([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})$/,qn=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)$/,ww=qn(4),xw=qn(6),Iw=qn(7),zl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_w=/^[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])?)*$/,Sw=/^(([^<>()\[\]\\.,;:\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,}))$/,V5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Pw=V5,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])?)*$/,Mw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Zl(){return new RegExp(Mw,"u")}var jl=/^(?:(?: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])$/,Wl=/^(([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}|:))$/,Vl=e=>{let t=xt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fl=/^(([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])$/,Bl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ul=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Gl=/^(?=.{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])?)*\.?$/,Kl=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ri=/^https?$/,ql=/^\+[1-9]\d{6,14}$/,da=/^\d(?:[ -]?\d){11,18}$/,Jl=/^(?: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)$/,pa=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,H5="(?:(?:\\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 Rw(e){return new RegExp(`^${e}$`)}var Yl=Rw(H5);function Ll(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 Xl(e){return new RegExp(`^${Ll(e)}$`)}function Ql(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Ll({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Ll({precision:e.precision})}`:n;return new RegExp(`^${H5}T(?:${r})$`)}var ed=/^[\s\S]{0,}$/,td=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},nd=/^-?\d+n?$/,oi=/^-?\d+$/,tn=/^-?\d+(?:\.\d+)?$/,rd=/^(?:true|false)$/i,od=/^null$/i;var id=/^undefined$/i;var sd=/^[^A-Z]*$/,ad=/^[^a-z]*$/,cd=/^[0-9a-fA-F]*$/;function ii(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function si(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Tw=/^[0-9a-fA-F]{32}$/,$w=ii(22,"=="),Aw=si(22),Ew=/^[0-9a-fA-F]{40}$/,Dw=ii(27,"="),Nw=si(27),Ow=/^[0-9a-fA-F]{64}$/,zw=ii(43,"="),Zw=si(43),jw=/^[0-9a-fA-F]{96}$/,Ww=ii(64,""),Vw=si(64),Hw=/^[0-9a-fA-F]{128}$/,Fw=ii(86,"=="),Bw=si(86);var pe=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ud=e=>{let t=e.value;return!Ks(t)&&t.size!==void 0},ld=e=>{let t=e.value;return!Ks(t)&&t.length!==void 0},fa={number:"number",bigint:"bigint",object:"date"},ha=y("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=fa[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:fa[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})}}),ga=y("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=fa[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:fa[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})}}),dd=y("$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):Bo(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})}}),pd=y("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Ko[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})}}),fd=y("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=qo[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})}}),md=y("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ud),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Jo(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),hd=y("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ud),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Jo(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),gd=y("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ud),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:Jo(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})}}),Cd=y("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Kn(o):i)<=t.maximum)return;let a=Yo(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),kd=y("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Kn(o):i)>=t.minimum)return;let a=Yo(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),yd=y("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Kn(o):i;if(s===t.length)return;let a=Yo(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})}}),Zr=y("$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=()=>{})}),bd=y("$ZodCheckRegex",(e,t)=>{Zr.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})}}),vd=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=sd),Zr.init(e,t)}),wd=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ad),Zr.init(e,t)}),xd=y("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=xt(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})}}),Id=y("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${xt(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})}}),_d=y("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${xt(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 ma(e,t,n){e.issues.length&&t.issues.push(...ot(n,e.issues))}var Sd=y("$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=>ma(o,n,t.property));ma(r,n,t.property)}}),Pd=y("$ZodCheckProperties",(e,t)=>{pe.init(e,t),Xo(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=>ma(u,r,s)))):ma(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),Ld=y("$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})}}),Md=y("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Jn=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
+ `},Iy={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 _y(e){let{announcements:t=Iy,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=xy}=e,{announce:i,announcement:s}=Rh(),a=Ro("DndLiveRegion"),[c,u]=E(!1);if(z(()=>{u(!0)},[]),vy(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(Ph,{id:r,value:o.draggable}),qe.createElement(Mh,{id:a,announcement:s}));return n?fs(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 bs(){}function xs(e,t){return q(()=>({sensor:e,options:t??{}}),[e,t])}function Vh(){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 Lt=Object.freeze({x:0,y:0});function Sy(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ly(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Py(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function My(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 Ry(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ty(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 $y=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=Ty(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(Py)};function Ay(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 Fh=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&&Ay(r,a)){let u=My(a).reduce((d,m)=>d+Sy(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Ly)};function Dy(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Hh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Lt}function Ey(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 Ny=Ey(1);function Oy(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 zy(e,t,n){let r=Oy(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 Zy={ignoreTransform:!1};function zo(e,t){t===void 0&&(t=Zy);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Ye(e).getComputedStyle(e);u&&(n=zy(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 Th(e){return zo(e,{ignoreTransform:!0})}function jy(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Wy(e,t){return t===void 0&&(t=Ye(e).getComputedStyle(e)),t.position==="fixed"}function Vy(e,t){t===void 0&&(t=Ye(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 Gu(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(hs(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!kr(o)||Zu(o)||n.includes(o))return n;let i=Ye(e).getComputedStyle(o);return o!==e&&Vy(o,i)&&n.push(o),Wy(o,i)?n:r(o.parentNode)}return e?r(e):n}function Bh(e){let[t]=Gu(e,1);return t??null}function Wu(e){return!Po||!e?null:Zn(e)?e:ms(e)?hs(e)||e===jn(e).scrollingElement?window:kr(e)?e:null:null}function Uh(e){return Zn(e)?e.scrollX:e.scrollLeft}function Gh(e){return Zn(e)?e.scrollY:e.scrollTop}function Hu(e){return{x:Uh(e),y:Gh(e)}}var De;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(De||(De={}));function Kh(e){return!Po||!e?!1:e===document.scrollingElement}function qh(e){let t={x:0,y:0},n=Kh(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 Fy={x:.2,y:.2};function Hy(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=Fy);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=qh(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 By(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 Yh(e){return e.reduce((t,n)=>Wn(t,Hu(n)),Lt)}function Uy(e){return e.reduce((t,n)=>t+Uh(n),0)}function Gy(e){return e.reduce((t,n)=>t+Gh(n),0)}function Ky(e,t){if(t===void 0&&(t=zo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Bh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var qy=[["x",["left","right"],Uy],["y",["top","bottom"],Gy]],Ao=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=Gu(n),o=Yh(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})}},Vn=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 Yy(e){let{EventTarget:t}=Ye(e);return e instanceof t?e:jn(e)}function Vu(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 $h(e){e.preventDefault()}function Jy(e){e.stopPropagation()}var me;(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"})(me||(me={}));var Jh={start:[me.Space,me.Enter],cancel:[me.Esc],end:[me.Space,me.Enter,me.Tab]},Xy=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case me.Right:return{...n,x:n.x+25};case me.Left:return{...n,x:n.x-25};case me.Down:return{...n,y:n.y+25};case me.Up:return{...n,y:n.y-25}}},vr=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 Vn(jn(n)),this.windowListeners=new Vn(Ye(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&&Ky(r),n(Lt)}handleKeyDown(t){if(ju(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Jh,coordinateGetter:s=Xy,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}:Lt;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=To(d,l),f={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let k=t.code,{isTop:I,isRight:y,isLeft:b,isBottom:$,maxScroll:v,minScroll:R}=qh(g),T=By(g),H={x:Math.min(k===me.Right?T.right-T.width/2:T.right,Math.max(k===me.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(k===me.Down?T.bottom-T.height/2:T.bottom,Math.max(k===me.Down?T.top:T.top+T.height/2,d.y))},Y=k===me.Right&&!y||k===me.Left&&!b,te=k===me.Down&&!$||k===me.Up&&!I;if(Y&&H.x!==d.x){let se=g.scrollLeft+m.x,W=k===me.Right&&se<=v.x||k===me.Left&&se>=R.x;if(W&&!m.y){g.scrollTo({left:se,behavior:a});return}W?f.x=g.scrollLeft-se:f.x=k===me.Right?g.scrollLeft-v.x:g.scrollLeft-R.x,f.x&&g.scrollBy({left:-f.x,behavior:a});break}else if(te&&H.y!==d.y){let se=g.scrollTop+m.y,W=k===me.Down&&se<=v.y||k===me.Up&&se>=R.y;if(W&&!m.x){g.scrollTo({top:se,behavior:a});return}W?f.y=g.scrollTop-se:f.y=k===me.Down?g.scrollTop-v.y:g.scrollTop-R.y,f.y&&g.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Wn(To(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()}};vr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Jh,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 Ah(e){return!!(e&&"distance"in e)}function Dh(e){return!!(e&&"delay"in e)}var Do=class{constructor(t,n,r){var o;r===void 0&&(r=Yy(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 Vn(this.document),this.listeners=new Vn(r),this.windowListeners=new Vn(Ye(s)),this.initialCoordinates=(o=ks(i))!=null?o:Lt,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,$h),this.windowListeners.add(Ct.VisibilityChange,this.handleCancel),this.windowListeners.add(Ct.ContextMenu,$h),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(Dh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ah(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,Jy,{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=ks(t))!=null?n:Lt,u=To(o,c);if(!r&&a){if(Ah(a)){if(a.tolerance!=null&&Vu(u,a.tolerance))return this.handleCancel();if(Vu(u,a.distance))return this.handleStart()}if(Dh(a)&&Vu(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===me.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},Qy={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},vs=class extends Do{constructor(t){let{event:n}=t,r=jn(n.target);super(t,Qy,r)}};vs.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 eb={move:{name:"mousemove"},end:{name:"mouseup"}},Bu;(function(e){e[e.RightClick=2]="RightClick"})(Bu||(Bu={}));var Eo=class extends Do{constructor(t){super(t,eb,jn(t.event.target))}};Eo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Bu.RightClick?!1:(r?.({event:n}),!0)}}];var Fu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},No=class extends Do{constructor(t){super(t,Fu)}static setup(){return window.addEventListener(Fu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Fu.move.name,t)};function t(){}}};No.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 $o;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})($o||($o={}));var ws;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ws||(ws={}));function tb(e){let{acceleration:t,activator:n=$o.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=ws.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,f=rb({delta:d,disabled:!i}),[h,g]=_h(),k=A({x:0,y:0}),I=A({x:0,y:0}),y=q(()=>{switch(n){case $o.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case $o.DraggableRect:return o}},[n,o,c]),b=A(null),$=Z(()=>{let R=b.current;if(!R)return;let T=k.current.x*I.current.x,H=k.current.y*I.current.y;R.scrollBy(T,H)},[]),v=q(()=>a===ws.TreeOrder?[...u].reverse():u,[a,u]);z(()=>{if(!i||!u.length||!y){g();return}for(let R of v){if(r?.(R)===!1)continue;let T=u.indexOf(R),H=l[T];if(!H)continue;let{direction:Y,speed:te}=Hy(R,H,y,t,m);for(let se of["x","y"])f[se][Y[se]]||(te[se]=0,Y[se]=0);if(te.x>0||te.y>0){g(),b.current=R,h($,s),k.current=te,I.current=Y;return}}k.current={x:0,y:0},I.current={x:0,y:0},g()},[t,$,r,g,i,s,JSON.stringify(y),JSON.stringify(f),h,u,v,l,JSON.stringify(m)])}var nb={x:{[De.Backward]:!1,[De.Forward]:!1},y:{[De.Backward]:!1,[De.Forward]:!1}};function rb(e){let{delta:t,disabled:n}=e,r=Cs(t);return br(o=>{if(n||!r||!o)return nb;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 ob(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return br(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function ib(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 Oo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Oo||(Oo={}));var Uu;(function(e){e.Optimized="optimized"})(Uu||(Uu={}));var Eh=new Map;function sb(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=E(null),{frequency:a,measure:c,strategy:u}=o,l=A(e),d=k(),m=yr(d),f=Z(function(I){I===void 0&&(I=[]),!m.current&&s(y=>y===null?I:y.concat(I.filter(b=>!y.includes(b))))},[m]),h=A(null),g=br(I=>{if(d&&!n)return Eh;if(!I||I===Eh||l.current!==e||i!=null){let y=new Map;for(let b of e){if(!b)continue;if(i&&i.length>0&&!i.includes(b.id)&&b.rect.current){y.set(b.id,b.rect.current);continue}let $=b.node.current,v=$?new Ao(c($),$):null;b.rect.current=v,v&&y.set(b.id,v)}return y}return I},[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 Oo.Always:return!1;case Oo.BeforeDragging:return n;default:return!n}}}function Xh(e,t){return br(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function ab(e,t){return Xh(e,t)}function cb(e){let{callback:t,disabled:n}=e,r=gs(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 Is(e){let{callback:t,disabled:n}=e,r=gs(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 ub(e){return new Ao(zo(e),e)}function Nh(e,t,n){t===void 0&&(t=ub);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=cb({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=Is({callback:i});return qt(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function lb(e){let t=Xh(e);return Hh(e,t)}var Oh=[];function db(e){let t=A(e),n=br(r=>e?r&&r!==Oh&&e&&t.current&&e.parentNode===t.current.parentNode?r:Gu(e):Oh,[e]);return z(()=>{t.current=e},[e]),n}function pb(e){let[t,n]=E(null),r=A(e),o=Z(i=>{let s=Wu(i.target);s&&n(a=>a?(a.set(s,Hu(s)),new Map(a)):null)},[]);return z(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Wu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Hu(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=Wu(c);u?.removeEventListener("scroll",o)})}},[o,e]),q(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Wn(i,s),Lt):Yh(e):Lt,[e,t])}function zh(e,t){t===void 0&&(t=[]);let n=A(null);return z(()=>{n.current=null},t),z(()=>{let r=e!==Lt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?To(e,n.current):Lt}function fb(e){z(()=>{if(!Po)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 mb(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 Qh(e){return q(()=>e?jy(e):null,[e])}var Zh=[];function hb(e,t){t===void 0&&(t=zo);let[n]=e,r=Qh(n?Ye(n):null),[o,i]=E(Zh);function s(){i(()=>e.length?e.map(c=>Kh(c)?r:new Ao(t(c),c)):Zh)}let a=Is({callback:s});return qt(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function gb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return kr(t)?t:e}function Cb(e){let{measure:t}=e,[n,r]=E(null),o=Z(u=>{for(let{target:l}of u)if(kr(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=Is({callback:o}),s=Z(u=>{let l=gb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=Mo(s);return q(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var kb=[{sensor:vs,options:{}},{sensor:vr,options:{}}],yb={current:{}},ys={draggable:{measure:Th},droppable:{measure:Th,strategy:Oo.WhileDragging,frequency:Uu.Optimized},dragOverlay:{measure:zo}},Fn=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}},bb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:bs},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ys,measureDroppableContainers:bs,windowRect:null,measuringScheduled:!1},vb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:bs,draggableNodes:new Map,over:null,measureDroppableContainers:bs},_s=we(vb),wb=we(bb);function xb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fn}}}function Ib(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 Fn(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 Fn(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 Fn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function _b(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=xe(_s),i=Cs(r),s=Cs(n?.id);return z(()=>{if(!t&&!r&&i&&s!=null){if(!ju(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=Lh(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Sb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Lb(e){return q(()=>({draggable:{...ys.draggable,...e?.draggable},droppable:{...ys.droppable,...e?.droppable},dragOverlay:{...ys.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Pb(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=A(!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=Hh(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=Bh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var e5=we({...Lt,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 t5=pt(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=kb,collisionDetection:d=$y,measuring:m,modifiers:f,...h}=t,g=Nu(Ib,void 0,xb),[k,I]=g,[y,b]=wy(),[$,v]=E(Cn.Uninitialized),R=$===Cn.Initialized,{draggable:{active:T,nodes:H,translate:Y},droppable:{containers:te}}=k,se=T!=null?H.get(T):null,W=A({initial:null,translated:null}),ae=q(()=>{var he;return T!=null?{id:T,data:(he=se?.data)!=null?he:yb,rect:W}:null},[T,se]),re=A(null),[ze,wt]=E(null),[Ge,Nn]=E(null),ht=yr(h,Object.values(h)),Fe=Ro("DndDescribedBy",s),Dt=q(()=>te.getEnabled(),[te]),Te=Lb(m),{droppableRects:Ze,measureDroppableContainers:Et,measuringScheduled:Nt}=sb(Dt,{dragging:R,dependencies:[Y.x,Y.y],config:Te.droppable}),$e=ob(H,T),cn=q(()=>Ge?ks(Ge):null,[Ge]),un=Tu(),On=ab($e,Te.draggable.measure);Pb({activeNode:T!=null?H.get(T):null,config:un.layoutShiftCompensation,initialRect:On,measure:Te.draggable.measure});let He=Nh($e,Te.draggable.measure,On),Be=Nh($e?$e.parentElement:null),Ae=A({activatorEvent:null,active:null,activeNode:$e,collisionRect:null,collisions:null,droppableRects:Ze,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:te,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=te.getNodeFor((n=Ae.current.over)==null?void 0:n.id),fe=Cb({measure:Te.dragOverlay.measure}),Ut=(r=fe.nodeRef.current)!=null?r:$e,dt=R?(o=fe.rect)!=null?o:He:null,ln=!!(fe.nodeRef.current&&fe.rect),ne=lb(ln?null:He),Ot=Qh(Ut?Ye(Ut):null),Ke=db(R?Ce??$e:null),zt=hb(Ke),j=Sb(f,{transform:{x:Y.x-ne.x,y:Y.y-ne.y,scaleX:1,scaleY:1},activatorEvent:Ge,active:ae,activeNodeRect:He,containerNodeRect:Be,draggingNodeRect:dt,over:Ae.current.over,overlayNodeRect:fe.rect,scrollableAncestors:Ke,scrollableAncestorRects:zt,windowRect:Ot}),Se=cn?Wn(cn,Y):null,yo=pb(Ke),gt=zh(yo),is=zh(yo,[He]),Gt=Wn(j,gt),xt=dt?Ny(dt,j):null,It=ae&&xt?d({active:ae,collisionRect:xt,droppableRects:Ze,droppableContainers:Dt,pointerCoordinates:Se}):null,ss=Ry(It,"id"),[_t,bo]=E(null),vo=ln?j:Wn(j,is),Lu=Dy(vo,(i=_t?.rect)!=null?i:null,He),dn=A(null),zn=Z((he,be)=>{let{sensor:ve,options:w}=be;if(re.current==null)return;let _=H.get(re.current);if(!_)return;let P=he.nativeEvent,G=new ve({active:re.current,activeNode:_,event:P,options:w,context:Ae,onAbort(oe){if(!H.get(oe))return;let{onDragAbort:je}=ht.current,Le={id:oe};je?.(Le),y({type:"onDragAbort",event:Le})},onPending(oe,ge,je,Le){if(!H.get(oe))return;let{onDragPending:Io}=ht.current,pn={id:oe,constraint:ge,initialCoordinates:je,offset:Le};Io?.(pn),y({type:"onDragPending",event:pn})},onStart(oe){let ge=re.current;if(ge==null)return;let je=H.get(ge);if(!je)return;let{onDragStart:Le}=ht.current,xo={activatorEvent:P,active:{id:ge,data:je.data,rect:W}};Lo(()=>{Le?.(xo),v(Cn.Initializing),I({type:Pe.DragStart,initialCoordinates:oe,active:ge}),y({type:"onDragStart",event:xo}),wt(dn.current),Nn(P)})},onMove(oe){I({type:Pe.DragMove,coordinates:oe})},onEnd:ee(Pe.DragEnd),onCancel:ee(Pe.DragCancel)});dn.current=G;function ee(oe){return async function(){let{active:je,collisions:Le,over:xo,scrollAdjustedTranslate:Io}=Ae.current,pn=null;if(je&&Io){let{cancelDrop:_o}=ht.current;pn={activatorEvent:P,active:je,collisions:Le,delta:Io,over:xo},oe===Pe.DragEnd&&typeof _o=="function"&&await Promise.resolve(_o(pn))&&(oe=Pe.DragCancel)}re.current=null,Lo(()=>{I({type:oe}),v(Cn.Uninitialized),bo(null),wt(null),Nn(null),dn.current=null;let _o=oe===Pe.DragEnd?"onDragEnd":"onDragCancel";if(pn){let $u=ht.current[_o];$u?.(pn),y({type:_o,event:pn})}})}}},[H]),Pu=Z((he,be)=>(ve,w)=>{let _=ve.nativeEvent,P=H.get(w);if(re.current!==null||!P||_.dndKit||_.defaultPrevented)return;let G={active:P};he(ve,be.options,G)===!0&&(_.dndKit={capturedBy:be.sensor},re.current=w,zn(ve,be))},[H,zn]),wo=ib(l,Pu);fb(l),qt(()=>{He&&$===Cn.Initializing&&v(Cn.Initialized)},[He,$]),z(()=>{let{onDragMove:he}=ht.current,{active:be,activatorEvent:ve,collisions:w,over:_}=Ae.current;if(!be||!ve)return;let P={active:be,activatorEvent:ve,collisions:w,delta:{x:Gt.x,y:Gt.y},over:_};Lo(()=>{he?.(P),y({type:"onDragMove",event:P})})},[Gt.x,Gt.y]),z(()=>{let{active:he,activatorEvent:be,collisions:ve,droppableContainers:w,scrollAdjustedTranslate:_}=Ae.current;if(!he||re.current==null||!be||!_)return;let{onDragOver:P}=ht.current,G=w.get(ss),ee=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:ee};Lo(()=>{bo(ee),P?.(oe),y({type:"onDragOver",event:oe})})},[ss]),qt(()=>{Ae.current={activatorEvent:Ge,active:ae,activeNode:$e,collisionRect:xt,collisions:It,droppableRects:Ze,draggableNodes:H,draggingNode:Ut,draggingNodeRect:dt,droppableContainers:te,over:_t,scrollableAncestors:Ke,scrollAdjustedTranslate:Gt},W.current={initial:dt,translated:xt}},[ae,$e,It,xt,H,Ut,dt,Ze,te,_t,Ke,Gt]),tb({...un,delta:Y,draggingRect:xt,pointerCoordinates:Se,scrollableAncestors:Ke,scrollableAncestorRects:zt});let Mu=q(()=>({active:ae,activeNode:$e,activeNodeRect:He,activatorEvent:Ge,collisions:It,containerNodeRect:Be,dragOverlay:fe,draggableNodes:H,droppableContainers:te,droppableRects:Ze,over:_t,measureDroppableContainers:Et,scrollableAncestors:Ke,scrollableAncestorRects:zt,measuringConfiguration:Te,measuringScheduled:Nt,windowRect:Ot}),[ae,$e,He,Ge,It,Be,fe,H,te,Ze,_t,Et,Ke,zt,Te,Nt,Ot]),Ru=q(()=>({activatorEvent:Ge,activators:wo,active:ae,activeNodeRect:He,ariaDescribedById:{draggable:Fe},dispatch:I,draggableNodes:H,over:_t,measureDroppableContainers:Et}),[Ge,wo,ae,He,I,Fe,H,_t,Et]);return qe.createElement(Wh.Provider,{value:b},qe.createElement(_s.Provider,{value:Ru},qe.createElement(wb.Provider,{value:Mu},qe.createElement(e5.Provider,{value:Lu},u)),qe.createElement(_b,{disabled:a?.restoreFocus===!1})),qe.createElement(_y,{...a,hiddenTextDescribedById:Fe}));function Tu(){let he=ze?.autoScrollEnabled===!1,be=typeof c=="object"?c.enabled===!1:c===!1,ve=R&&!he&&!be;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),Mb=we(null),jh="button",Rb="Draggable";function Ss(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=Ro(Rb),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=xe(_s),{role:f=jh,roleDescription:h="draggable",tabIndex:g=0}=o??{},k=c?.id===t,I=xe(k?e5:Mb),[y,b]=Mo(),[$,v]=Mo(),R=mb(s,t),T=yr(n);qt(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:$,data:T}),()=>{let Y=d.get(t);Y&&Y.key===i&&d.delete(t)}),[d,t]);let H=q(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":k&&f===jh?!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:H,isDragging:k,listeners:r?void 0:R,node:y,over:m,setNodeRef:b,setActivatorNodeRef:v,transform:I}}var Tb="Droppable",$b={timeout:25};function Ls(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=Ro(Tb),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=xe(_s),l=A({disabled:n}),d=A(!1),m=A(null),f=A(null),{disabled:h,updateMeasurementsFor:g,timeout:k}={...$b,...o},I=yr(g??r),y=Z(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(I.current)?I.current:[I.current]),f.current=null},k)},[k]),b=Is({callback:y,disabled:h||!s}),$=Z((H,Y)=>{b&&(Y&&(b.unobserve(Y),d.current=!1),H&&b.observe(H))},[b]),[v,R]=Mo($),T=yr(t);return z(()=>{!b||!v.current||(b.disconnect(),d.current=!1,b.observe(v.current))},[v,b]),z(()=>(a({type:Pe.RegisterDroppable,element:{id:r,key:i,disabled:n,node:v,rect:m,data:T}}),()=>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:v,over:c,setNodeRef:R}}var Ku=globalThis.__bbPluginRuntime;if(Ku==null||Ku.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 Ps=Ku.sonner,rP="default"in Ps?Ps.default:Ps,{Toaster:oP,toast:it,useSonner:iP}=Ps;var Ab=Object.defineProperty,Yu=(e,t)=>Ab(e,"name",{value:t,configurable:!0});function qu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Yu(qu,"setRef");function n5(...e){return t=>{let n=!1,r=e.map(o=>{let i=qu(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():qu(e[o],null)}}}}Yu(n5,"composeRefs");function Ju(...e){return Z(n5(...e),e)}Yu(Ju,"useComposedRefs");var Db=Object.defineProperty,Pt=(e,t)=>Db(e,"name",{value:t,configurable:!0});function r5(e){let t=F((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];Xu(o)&&typeof Ms=="function"&&(o=Ms(o._payload)),ds.forEach(o,m=>{if(a5(m)){a=!0;let f=m,h="child"in f.props?f.props.child:f.props.children;Xu(h)&&typeof Ms=="function"&&(h=Ms(h._payload)),s=Nb(f,h),c.push(s?.props?.children)}else c.push(m)}),s?s=gr(s,void 0,c):!a&&ds.count(o)===1&&Cr(o)&&(s=o);let u=s?s5(s):void 0,l=Ju(r,u);if(!s){if(o||o===0)throw new Error(a?Zb(e):zb(e));return o}let d=i5(i,s.props??{});return s.type!==hr&&(d.ref=r?l:u),gr(s,d)});return t.displayName=`${e}.Slot`,t}Pt(r5,"createSlot");var kn=r5("Slot"),o5=Symbol.for("radix.slottable");function Eb(e){let t=Pt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=o5,t}Pt(Eb,"createSlottable");var Nb=Pt((e,t)=>{if("child"in e.props){let n=e.props.child;return Cr(n)?gr(n,void 0,e.props.children(n.props.children)):null}return Cr(t)?t:null},"getSlottableElementFromSlottable");function i5(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}}Pt(i5,"mergeProps");function s5(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)}Pt(s5,"getElementRef");function a5(e){return Cr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===o5}Pt(a5,"isSlottable");var Ob=Symbol.for("react.lazy");function Xu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ob&&"_payload"in e&&c5(e._payload)}Pt(Xu,"isLazyComponent");function c5(e){return typeof e=="object"&&e!==null&&"then"in e}Pt(c5,"isPromiseLike");var zb=Pt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Zb=Pt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ms=ot[" use ".trim().toString()];var Qu=globalThis.__bbPluginRuntime;if(Qu==null||Qu.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 Rs=Qu.classVarianceAuthority,lP="default"in Rs?Rs.default:Rs,{cva:u5,cx:dP}=Rs;var el=globalThis.__bbPluginRuntime;if(el==null||el.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 Ts=el.clsx,fP="default"in Ts?Ts.default:Ts,{clsx:l5}=Ts;var tl=globalThis.__bbPluginRuntime;if(tl==null||tl.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 $s=tl.tailwindMerge,hP="default"in $s?$s.default:$s,{createTailwindMerge:gP,extendTailwindMerge:CP,fromTheme:kP,getDefaultConfig:yP,mergeConfigs:bP,twJoin:vP,twMerge:d5,validators:wP}=$s;function S(...e){return d5(l5(e))}var As="transition-colors duration-150 hover:duration-0",Zt="transition-none";var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.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 Ds=nl.jsxRuntime,PP="default"in Ds?Ds.default:Ds,{Fragment:jt,jsx:p,jsxs:x}=Ds;var Es=u5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${As} 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"}}),Je=F(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>p(r?kn:"button",{className:S(Es({variant:t,size:n,className:e})),ref:i,...o}));Je.displayName="Button";var rl=globalThis.__bbPluginRuntime;if(rl==null||rl.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 Ns=rl.radixPopover,NP="default"in Ns?Ns.default:Ns,{Anchor:p5,Arrow:OP,Close:zP,Content:f5,Popover:ZP,PopoverAnchor:jP,PopoverArrow:WP,PopoverClose:VP,PopoverContent:FP,PopoverPortal:HP,PopoverTrigger:BP,Portal:m5,Root:h5,Trigger:g5,createPopoverScope:UP}=Ns;function Ee(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var Wb="select-none",Vb=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),yn=e=>S(Wb,e);function Fb(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!Vb.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||!Fb(t)||e!==null&&!e.contains(t)||t.blur()}function bn(){Zo(null)}function C5(){Zo(null)}function Yt(e){e.preventDefault()}var ol="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{ol="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{ol="pointer"},{capture:!0}));function k5(){return ol==="keyboard"}var Os=new Map;function Hb(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Os.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),Os.delete(e))}}},Os.set(e,t),t}function Bb(e,t){return Hb(e)?.subscribe(t)??(()=>{})}function Ub(e){return typeof window>"u"||!window.matchMedia?!1:Os.get(e)?.mql.matches??window.matchMedia(e).matches}function zs(e){return Kt(t=>Bb(e,t),()=>Ub(e),()=>!1)}var Gb="(max-width: 767px)",Kb=we(null);function y5(){let e=xe(Kb),t=zs(Gb);return e!==null?e:t}var qb="(pointer: coarse)";function Zs(){return zs(qb)}var Yb=120,Vs={width:"auto",minWidth:"auto",maxWidth:"none"},il="--bb-drawer-keyboard-inset",Jb=80;function Ws(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(il))}function Xb({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=Jb?r:0}function Qb(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){Ws(n);return}let a=Xb({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(il);return}n.style.bottom=`${a}px`,n.style.setProperty(il,`${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),Ws(n)}},[t,e])}function ev(){let e=y5()?"drawer":"floating",t=Zs();return{presentation:e,supportsHover:e==="floating"&&!t}}function wr(e,t,n=!1){let{presentation:r}=ev(),o=r==="drawer",[i,s]=E(n),a=e!==void 0,c=a?e:i,u=Z(l=>{c&&!l&&o&&C5(),a||s(l),t?.(l)},[o,a,t,c]);return q(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var Hn=F(({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:Yt,className:u,...d,...a,children:i}):p("button",{ref:c,type:"button",onClick:l,onMouseDown:Yt,className:u,...d,...a,children:i})});Hn.displayName="MobileTrigger";var tv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],nv=new Set(tv);function xr(e){let t={};for(let n of Object.keys(e))nv.has(n)||(t[n]=e[n]);return t}function rv({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,Yb);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function Ir({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=rv({open:e});return!e&&!l?null:p(pv,{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 b5="cubic-bezier(0.32, 0.72, 0, 1)",ov=.25,iv=450,sv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),js=new WeakMap;function av(e){return Array.from(e.querySelectorAll(sv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function cv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function uv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&cv(n,t))return;let r=av(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 lv(e,t){let n=js.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"&&uv(i,a))};n={entries:r,handleKeyDown:o},js.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=js.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),js.delete(e))}}function dv({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=A(null);rt(()=>{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=lv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=A(n);rt(()=>{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 pv({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=A(null),m=A(null),f=A(null),h=A(null),g=gn(),k=Ee(),I=`transform ${c}ms ${b5}`,y=`opacity ${c}ms ${b5}`,b=A(t);rt(()=>{b.current=t},[t]);let $=Z(()=>{Zo(d.current),Ws(d.current),b.current(!1)},[]),v=Z(()=>{Zo(d.current),Ws(d.current)},[]);dv({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:v,open:e,panelRef:d,requestClose:$}),Qb(d,e);let R=Z(W=>{h.current!==W&&(h.current=W,u?.(W))},[u]);z(()=>{h.current=null;let W=window.setTimeout(()=>R(e),c+50);return()=>window.clearTimeout(W)},[c,e,R]);let T=Z((W,ae,re)=>{let ze=d.current,wt=m.current;ze===null||wt===null||(ze.style.transition=re?I:"none",ze.style.transform=`translate3d(0, ${W}px, 0)`,wt.style.transition=re?y:"none",wt.style.opacity=String(Math.max(0,Math.min(1,1-W/ae))))},[y,I]),H=Z(W=>{if(!e||W.button!==0)return;W.currentTarget.setPointerCapture(W.pointerId);let ae=Date.now(),re=Math.max(d.current?.clientHeight??0,1);f.current={pointerId:W.pointerId,startY:W.clientY,lastY:W.clientY,lastTimeMs:ae,velocityY:0,height:re},T(0,re,!1),W.preventDefault()},[e,T]),Y=Z(W=>{let ae=f.current;if(ae===null||ae.pointerId!==W.pointerId)return;let re=Date.now(),ze=re-ae.lastTimeMs;ze>0&&(ae.velocityY=(W.clientY-ae.lastY)/ze*1e3,ae.lastY=W.clientY,ae.lastTimeMs=re),T(Math.max(0,W.clientY-ae.startY),ae.height,!1),W.preventDefault()},[T]),te=Z((W,ae)=>{let re=f.current;if(re===null||re.pointerId!==W.pointerId)return;f.current=null;let ze=Math.max(0,W.clientY-re.startY);!ae&&(ze>=re.height*ov||re.velocityY>=iv)?(T(re.height,re.height,!0),$()):T(0,re.height,!0),W.preventDefault()},[$,T]),se=typeof document>"u"?null:document.body;return se===null?null:fs(x(jt,{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?$:void 0,onTouchMove:W=>W.preventDefault()}),x("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:S("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:I,willChange:e?"transform":void 0},onTransitionEnd:W=>{W.currentTarget===W.target&&W.propertyName==="transform"&&R(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:H,onPointerMove:Y,onPointerUp:W=>te(W,!1),onPointerCancel:W=>te(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]})]}),se)}var sl=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function al(){return xe(sl)}function Fs({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=wr(t,n,r);return i.isCompactViewport?p(sl.Provider,{value:i,children:e}):p(h5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(sl.Provider,{value:i,children:e})})}var jo=F(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=al();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(g5,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});jo.displayName="PopoverTrigger";var Wo=F(({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}=al(),k=Zs(),I=Ee();if(z(()=>{if(!h||f||k||!l)return;let y=window.requestAnimationFrame(()=>{let b=l.current;b?.focus(),b instanceof HTMLInputElement&&b.select()});return()=>window.cancelAnimationFrame(y)},[l,f,k,h]),f){let{style:y,...b}=xr(d);return p(Ir,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:p("div",{ref:m,className:S("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...b,style:{...y,...Vs},children:r})})}return p(m5,{children:p(f5,{ref:m,...I,align:t,sideOffset:n,onOpenAutoFocus:y=>{(k||l)&&y.preventDefault(),k||u?.(y)},className:S("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})})});Wo.displayName="PopoverContent";var fv=F(({children:e,...t},n)=>{let{isCompactViewport:r}=al();return r?p(jt,{children:e}):p(p5,{ref:n,...t,children:e})});fv.displayName="PopoverAnchor";var mv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),hv=new Set(["working","background","queued","scheduled"]);function gv(e){return!hv.has(e.state.kind)}function Cv(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 v5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!gv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=Cv(e,t)}function w5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)mv.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 x5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}function cl(e,t){return e.needsYouFlags.size>0||e.root.thread.id===t}function I5(e,t){return t===void 0?null:cl(t,e)?t.root.thread.id:null}function _5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.needsYou.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),x5(o.needsYou,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,needsYou:r}}function S5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.needsYou)e?.needsYou.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 L5(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 P5(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 M5(e,t){let n=A(null),r=A(null),o=A(void 0),[i,s]=E(()=>new Map),a=A(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=_5(e,t),d=S5(n.current,l);n.current=l,r.current=e,o.current=t,c=L5(i,d),c!==i&&(a.current=c,s(c))}let u=Z(l=>{let d=P5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var ie={};St(ie,{$brand:()=>xl,$input:()=>K1,$output:()=>G1,INVALID:()=>et,NEVER:()=>wl,TimePrecision:()=>ip,ZodAny:()=>Gf,ZodArray:()=>Jf,ZodBase64:()=>jc,ZodBase64URL:()=>Wc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Hc,ZodBoolean:()=>io,ZodCIDRv4:()=>zc,ZodCIDRv6:()=>Zc,ZodCUID:()=>Tc,ZodCUID2:()=>$c,ZodCatch:()=>k2,ZodCodec:()=>Di,ZodCompileAsyncError:()=>Rt,ZodCompileUnsupportedError:()=>Q,ZodCreditCard:()=>Zf,ZodCustom:()=>Ei,ZodCustomStringFormat:()=>cr,ZodDate:()=>Pi,ZodDefault:()=>p2,ZodDiscriminatedUnion:()=>Qf,ZodE164:()=>Vc,ZodEmail:()=>Lc,ZodEmoji:()=>Mc,ZodEnum:()=>no,ZodError:()=>LI,ZodExactOptional:()=>Kc,ZodFile:()=>c2,ZodFirstPartyTypeKind:()=>$2,ZodFunction:()=>P2,ZodGUID:()=>Pc,ZodIBAN:()=>jf,ZodIPv4:()=>Nc,ZodIPv6:()=>Oc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>T2,ZodIntersection:()=>e2,ZodIssueCode:()=>RI,ZodJWT:()=>Fc,ZodKSUID:()=>Ec,ZodLazy:()=>_2,ZodLiteral:()=>a2,ZodMAC:()=>zf,ZodMap:()=>i2,ZodNaN:()=>b2,ZodNanoID:()=>Rc,ZodNever:()=>qf,ZodNonOptional:()=>qc,ZodNull:()=>Bf,ZodNullable:()=>d2,ZodNumber:()=>oo,ZodNumberFormat:()=>ur,ZodObject:()=>Ri,ZodOptional:()=>$i,ZodPipe:()=>Ai,ZodPrefault:()=>m2,ZodPreprocess:()=>v2,ZodPromise:()=>L2,ZodReadonly:()=>w2,ZodRealError:()=>lt,ZodRecord:()=>to,ZodSet:()=>s2,ZodString:()=>ro,ZodStringFormat:()=>de,ZodSuccess:()=>C2,ZodSymbol:()=>Ff,ZodTemplateLiteral:()=>I2,ZodTransform:()=>u2,ZodTuple:()=>n2,ZodType:()=>J,ZodULID:()=>Ac,ZodURL:()=>Li,ZodUUID:()=>Ht,ZodUndefined:()=>Hf,ZodUnion:()=>Ti,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>Dc,ZodXor:()=>Xf,_ZodString:()=>Sc,_default:()=>f2,_function:()=>Q9,any:()=>R9,array:()=>Mi,base64:()=>l9,base64url:()=>d9,bigint:()=>_9,boolean:()=>Vf,catch:()=>y2,check:()=>e4,cidrv4:()=>c9,cidrv6:()=>u9,clone:()=>ce,codec:()=>q9,coerce:()=>D2,compile:()=>X1,config:()=>ye,core:()=>tn,creditCard:()=>f9,cuid:()=>e9,cuid2:()=>t9,currencyCode:()=>y9,custom:()=>t4,date:()=>$9,decode:()=>Tf,decodeAsync:()=>Af,deepPartial:()=>m4,describe:()=>n4,discriminatedUnion:()=>z9,e164:()=>p9,email:()=>H0,emoji:()=>X0,encode:()=>Rf,encodeAsync:()=>$f,endsWith:()=>Hr,enum:()=>Uc,exactOptional:()=>l2,file:()=>B9,flattenError:()=>Jo,float32:()=>v9,float64:()=>w9,formatError:()=>Xo,fromJSONSchema:()=>p4,function:()=>Q9,getDiscriminatedOption:()=>v1,getErrorMap:()=>$I,globalRegistry:()=>Ve,gt:()=>Vt,gte:()=>mt,guid:()=>B0,hash:()=>b9,hex:()=>k9,hostname:()=>C9,httpUrl:()=>J0,iban:()=>m9,includes:()=>Vr,input:()=>g4,instanceof:()=>o4,int:()=>Ic,int32:()=>x9,int64:()=>S9,intersection:()=>t2,invertCodec:()=>Y9,ipv4:()=>i9,ipv6:()=>a9,iso:()=>Ni,json:()=>s4,jwt:()=>h9,keyof:()=>A9,ksuid:()=>o9,lazy:()=>S2,length:()=>rr,literal:()=>H9,locales:()=>Ci,looseObject:()=>N9,looseRecord:()=>j9,lowercase:()=>jr,lt:()=>Wt,lte:()=>ft,mac:()=>s9,map:()=>W9,maxLength:()=>nr,maxSize:()=>_n,memoizer:()=>gi,meta:()=>r4,mime:()=>Ur,minLength:()=>en,minSize:()=>Ft,multipleOf:()=>In,nan:()=>K9,nanoid:()=>Q0,nativeEnum:()=>F9,negative:()=>fc,never:()=>Bc,nonnegative:()=>hc,nonoptional:()=>g2,nonpositive:()=>mc,normalize:()=>Gr,null:()=>Uf,nullable:()=>Si,nullish:()=>U9,number:()=>Wf,object:()=>D9,optional:()=>sr,output:()=>C4,overwrite:()=>Tt,parse:()=>Sf,parseAsync:()=>Lf,partialRecord:()=>Z9,pipe:()=>_c,positive:()=>pc,prefault:()=>h2,preprocess:()=>a4,prettifyError:()=>Pl,promise:()=>X9,properties:()=>Br,property:()=>gc,readonly:()=>x2,record:()=>o2,refine:()=>M2,regex:()=>Zr,regexes:()=>bt,registry:()=>Wa,safeDecode:()=>Ef,safeDecodeAsync:()=>Of,safeEncode:()=>Df,safeEncodeAsync:()=>Nf,safeParse:()=>Pf,safeParseAsync:()=>Mf,set:()=>V9,setErrorMap:()=>TI,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,strictObject:()=>E9,string:()=>_i,stringFormat:()=>g9,stringbool:()=>i4,success:()=>G9,superRefine:()=>R2,symbol:()=>P9,templateLiteral:()=>J9,toJSONSchema:()=>bc,toLowerCase:()=>qr,toUpperCase:()=>Yr,toZod:()=>Vo,transform:()=>Gc,treeifyError:()=>Ll,trim:()=>Kr,tuple:()=>r2,uint32:()=>I9,uint64:()=>L9,ulid:()=>n9,undefined:()=>M9,union:()=>ao,unknown:()=>ir,uppercase:()=>Wr,url:()=>Y0,util:()=>O,uuid:()=>U0,uuidv4:()=>G0,uuidv6:()=>K0,uuidv7:()=>q0,validate:()=>Qo,validateAsync:()=>ei,void:()=>T9,withParser:()=>Va,xid:()=>r9,xor:()=>O9});var tn={};St(tn,{$ZodAny:()=>f1,$ZodArray:()=>k1,$ZodAsyncError:()=>ct,$ZodBase64:()=>t1,$ZodBase64URL:()=>n1,$ZodBigInt:()=>Ma,$ZodBigIntFormat:()=>u1,$ZodBoolean:()=>li,$ZodCIDRv4:()=>Qd,$ZodCIDRv6:()=>e1,$ZodCUID:()=>Wd,$ZodCUID2:()=>Vd,$ZodCatch:()=>O1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>md,$ZodCheckEndsWith:()=>Sd,$ZodCheckGreaterThan:()=>fa,$ZodCheckIncludes:()=>Id,$ZodCheckLengthEquals:()=>bd,$ZodCheckLessThan:()=>pa,$ZodCheckLowerCase:()=>wd,$ZodCheckMaxLength:()=>kd,$ZodCheckMaxSize:()=>hd,$ZodCheckMimeType:()=>Md,$ZodCheckMinLength:()=>yd,$ZodCheckMinSize:()=>gd,$ZodCheckMultipleOf:()=>pd,$ZodCheckNumberFormat:()=>fd,$ZodCheckOverwrite:()=>Rd,$ZodCheckProperties:()=>Pd,$ZodCheckProperty:()=>Ld,$ZodCheckRegex:()=>vd,$ZodCheckSizeEquals:()=>Cd,$ZodCheckStartsWith:()=>_d,$ZodCheckStringFormat:()=>Er,$ZodCheckUpperCase:()=>xd,$ZodCodec:()=>pi,$ZodCreditCard:()=>o1,$ZodCustom:()=>H1,$ZodCustomStringFormat:()=>a1,$ZodCyclicError:()=>Na,$ZodDate:()=>C1,$ZodDefault:()=>A1,$ZodDiscriminatedUnion:()=>w1,$ZodE164:()=>r1,$ZodEmail:()=>Ed,$ZodEmoji:()=>Zd,$ZodEncodeError:()=>xn,$ZodEnum:()=>L1,$ZodError:()=>Sl,$ZodExactOptional:()=>T1,$ZodFile:()=>M1,$ZodFunction:()=>V1,$ZodGUID:()=>Ad,$ZodIBAN:()=>i1,$ZodIPv4:()=>Yd,$ZodIPv6:()=>Jd,$ZodISODate:()=>Gd,$ZodISODateTime:()=>Ud,$ZodISODuration:()=>qd,$ZodISOTime:()=>Kd,$ZodIntersection:()=>x1,$ZodJWT:()=>s1,$ZodKSUID:()=>Bd,$ZodLazy:()=>fi,$ZodLiteral:()=>P1,$ZodMAC:()=>Xd,$ZodMap:()=>_1,$ZodNaN:()=>z1,$ZodNanoID:()=>jd,$ZodNever:()=>h1,$ZodNonOptional:()=>E1,$ZodNull:()=>p1,$ZodNullable:()=>$1,$ZodNumber:()=>Pa,$ZodNumberFormat:()=>c1,$ZodObject:()=>l0,$ZodObjectJIT:()=>y1,$ZodOptional:()=>Ta,$ZodPipe:()=>$a,$ZodPrefault:()=>D1,$ZodPreprocess:()=>Z1,$ZodPromise:()=>F1,$ZodReadonly:()=>j1,$ZodRealError:()=>ut,$ZodRecord:()=>I1,$ZodRegistry:()=>ja,$ZodSet:()=>S1,$ZodString:()=>Yn,$ZodStringFormat:()=>ue,$ZodSuccess:()=>N1,$ZodSymbol:()=>l1,$ZodTemplateLiteral:()=>W1,$ZodTransform:()=>R1,$ZodTuple:()=>Ra,$ZodType:()=>K,$ZodULID:()=>Fd,$ZodURL:()=>zd,$ZodUUID:()=>Dd,$ZodUndefined:()=>d1,$ZodUnion:()=>di,$ZodUnknown:()=>m1,$ZodVoid:()=>g1,$ZodXID:()=>Hd,$ZodXor:()=>b1,$brand:()=>xl,$constructor:()=>C,$input:()=>K1,$output:()=>G1,Doc:()=>qn,INVALID:()=>et,JSONSchema:()=>W0,JSONSchemaGenerator:()=>vc,NEVER:()=>wl,TimePrecision:()=>ip,URL_BAD_FORMAT:()=>Nd,URL_UNPARSEABLE:()=>ii,ZodCompileAsyncError:()=>Rt,ZodCompileUnsupportedError:()=>Q,_any:()=>wp,_array:()=>Mp,_base64:()=>cc,_base64url:()=>uc,_bigint:()=>hp,_boolean:()=>fp,_catch:()=>hI,_check:()=>_0,_cidrv4:()=>sc,_cidrv6:()=>ac,_coercedBigint:()=>gp,_coercedBoolean:()=>mp,_coercedDate:()=>Lp,_coercedNumber:()=>ap,_coercedString:()=>tp,_creditCard:()=>rp,_cuid:()=>Qa,_cuid2:()=>ec,_custom:()=>Tp,_date:()=>Sp,_decode:()=>ta,_decodeAsync:()=>ra,_default:()=>pI,_discriminatedUnion:()=>eI,_e164:()=>lc,_email:()=>Ba,_emoji:()=>Ja,_encode:()=>ea,_encodeAsync:()=>na,_endsWith:()=>Hr,_enum:()=>sI,_file:()=>Rp,_float32:()=>up,_float64:()=>lp,_gt:()=>Vt,_gte:()=>mt,_guid:()=>Ua,_iban:()=>op,_includes:()=>Vr,_int:()=>cp,_int32:()=>dp,_int64:()=>Cp,_intersection:()=>tI,_ipv4:()=>oc,_ipv6:()=>ic,_isoDate:()=>bi,_isoDateTime:()=>yi,_isoDuration:()=>wi,_isoTime:()=>vi,_jwt:()=>dc,_ksuid:()=>rc,_lazy:()=>yI,_length:()=>rr,_literal:()=>cI,_lowercase:()=>jr,_lt:()=>Wt,_lte:()=>ft,_mac:()=>np,_map:()=>oI,_max:()=>ft,_maxLength:()=>nr,_maxSize:()=>_n,_mime:()=>Ur,_min:()=>mt,_minLength:()=>en,_minSize:()=>Ft,_multipleOf:()=>In,_nan:()=>Pp,_nanoid:()=>Xa,_nativeEnum:()=>aI,_negative:()=>fc,_never:()=>Ip,_nonnegative:()=>hc,_nonoptional:()=>fI,_nonpositive:()=>mc,_normalize:()=>Gr,_null:()=>vp,_nullable:()=>dI,_number:()=>sp,_optional:()=>lI,_overwrite:()=>Tt,_parse:()=>Tr,_parseAsync:()=>$r,_pipe:()=>gI,_positive:()=>pc,_promise:()=>bI,_properties:()=>Br,_property:()=>gc,_readonly:()=>CI,_record:()=>rI,_refine:()=>$p,_regex:()=>Zr,_safeDecode:()=>ia,_safeDecodeAsync:()=>aa,_safeEncode:()=>oa,_safeEncodeAsync:()=>sa,_safeParse:()=>Ar,_safeParseAsync:()=>Dr,_set:()=>iI,_size:()=>tr,_slugify:()=>Jr,_startsWith:()=>Fr,_string:()=>ep,_stringFormat:()=>or,_stringbool:()=>Np,_success:()=>mI,_superRefine:()=>Ap,_symbol:()=>yp,_templateLiteral:()=>kI,_toLowerCase:()=>qr,_toUpperCase:()=>Yr,_transform:()=>uI,_trim:()=>Kr,_tuple:()=>nI,_uint32:()=>pp,_uint64:()=>kp,_ulid:()=>tc,_undefined:()=>bp,_union:()=>Xx,_unknown:()=>xp,_uppercase:()=>Wr,_url:()=>ki,_uuid:()=>Ga,_uuidv4:()=>Ka,_uuidv6:()=>qa,_uuidv7:()=>Ya,_void:()=>_p,_xid:()=>nc,_xor:()=>Qx,base64Charset:()=>xa,base64urlCharset:()=>ui,canParseURL:()=>Od,clone:()=>ce,compile:()=>X1,compileFn:()=>Fa,config:()=>ye,createStandardJSONSchemaMethod:()=>Xr,createToJSONSchemaMethod:()=>zp,decode:()=>cw,decodeAsync:()=>lw,describe:()=>Dp,encode:()=>aw,encodeAsync:()=>uw,extractDefs:()=>Ln,finalize:()=>Pn,flattenError:()=>Jo,formatError:()=>Xo,getDiscriminatedOption:()=>v1,globalConfig:()=>Ne,globalRegistry:()=>Ve,handleUnrepresentable:()=>Me,initializeContext:()=>Sn,isBackEdge:()=>za,isRecursiveSchema:()=>Oa,isValidBase64:()=>ci,isValidBase64URL:()=>Ia,isValidCIDRv6:()=>wa,isValidCreditCard:()=>_a,isValidIBAN:()=>Sa,isValidIPv6:()=>ai,isValidJWT:()=>La,locales:()=>Ci,memoizer:()=>gi,mergeValues:()=>Nr,meta:()=>Ep,parse:()=>Xs,parseAsync:()=>Qs,parseURLObject:()=>a0,prettifyError:()=>Pl,process:()=>le,processSchema:()=>le,regexes:()=>bt,registry:()=>Wa,safeDecode:()=>pw,safeDecodeAsync:()=>mw,safeEncode:()=>dw,safeEncodeAsync:()=>fw,safeParse:()=>nw,safeParseAsync:()=>rw,standardProps:()=>ka,stripTabAndNewline:()=>si,toDotPath:()=>j5,toJSONSchema:()=>bc,toZod:()=>Vo,treeifyError:()=>Ll,urlHostnameOk:()=>ba,urlProtocolOk:()=>va,util:()=>O,validate:()=>Qo,validateAsync:()=>ei,validateURL:()=>ya,version:()=>Td,withParser:()=>Va});var O={};St(O,{BIGINT_FORMAT_RANGES:()=>Go,CONSTANT_CATCH:()=>Ys,Class:()=>dl,NUMBER_FORMAT_RANGES:()=>Uo,aborted:()=>Qe,allowsEval:()=>ml,assert:()=>wv,assertEqual:()=>kv,assertIs:()=>bv,assertNever:()=>vv,assertNotEqual:()=>yv,assignProp:()=>We,attachSchema:()=>qs,base64ToUint8Array:()=>D5,base64urlToUint8Array:()=>Wv,cached:()=>Pr,captureStackTrace:()=>Us,cleanEnum:()=>jv,cleanRegex:()=>Xt,clone:()=>ce,cloneDef:()=>_v,codePointLength:()=>Gn,constantCatch:()=>bl,createTransparentProxy:()=>Tv,defineLazy:()=>pl,defineLazyInternal:()=>X,derived:()=>Bv,esc:()=>Xe,escapeRegex:()=>yt,explicitlyAborted:()=>Cl,extend:()=>Dv,finalizeIssue:()=>at,floatSafeRemainder:()=>Fo,getElementAtPath:()=>Sv,getEnumValues:()=>Sr,getLengthableOrigin:()=>qo,getParsedType:()=>Rv,getSizableOrigin:()=>Ko,hexToUint8Array:()=>Fv,hide:()=>Yo,installLazyProp:()=>qv,isObject:()=>Un,isPlainObject:()=>kt,issue:()=>Rr,joinValues:()=>Hs,jsonStringifyReplacer:()=>Lr,members:()=>yl,merge:()=>Nv,mergeDefs:()=>Mt,normalizeParams:()=>M,nullish:()=>Bs,numKeys:()=>Mv,objectClone:()=>xv,omit:()=>Av,optionalKeys:()=>gl,own:()=>wn,parsedType:()=>kl,partial:()=>Ov,pick:()=>$v,prefixIssues:()=>st,primitiveTypes:()=>hl,promiseAllObject:()=>Lv,propertyKeyTypes:()=>Bo,randomString:()=>Pv,rawShape:()=>Mr,required:()=>zv,safeExtend:()=>Ev,shallowClone:()=>Ho,slugify:()=>fl,stringifyPrimitive:()=>Gs,toZod:()=>Vo,uint8ArrayToBase64:()=>E5,uint8ArrayToBase64url:()=>Vv,uint8ArrayToHex:()=>Hv,unwrapMessage:()=>_r});function kv(e){return e}function yv(e){return e}function Vo(){return e=>e}function bv(e){}function vv(e){throw new Error("Unexpected value in exhaustive check")}function wv(e){}function Sr(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 Hs(e,t="|"){return e.map(n=>Gs(n)).join(t)}function Lr(e,t){return typeof t=="bigint"?t.toString():t}var ll=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 Pr(e){return new ll(e)}function Bs(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 R5=Symbol("evaluating");function pl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==R5)return r===void 0&&(r=R5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function xv(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 Mr(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Jt(e){return Mr(e._zod.def)??e._zod.def.shape}function T5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return We(this,t,r),r},enumerable:!0,configurable:!0})}function $5(e,t,n){t in e?We(e,t,n):e[t]=n}function Bn(e,t,n,r){let o=Jt(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?T5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):$5(e,i,r?r(s.value,i):s.value))}}function Iv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?T5(e,n,()=>t[n]):$5(e,n,r.value))}}function Mt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function _v(e){return Mt(e._zod.def)}function Sv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Lv(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 Pv(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 fl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Us="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Un(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ml=Pr(()=>{if(Ne.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function kt(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 Ho(e){return kt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Mv(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Rv=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}`)}},Bo=new Set(["string","number","symbol"]),hl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function yt(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 M(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 Tv(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 Gs(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function gl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Uo={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]},Go={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $v(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,Ks(e,t)),ce(e,Mt(n,{shape:i,checks:[]}))}function Ks(e,t){let n=Jt(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 Av(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(Ks(e,t)),s={};return Bn(s,e,Reflect.ownKeys(Jt(e)).filter(a=>!i.has(a))),ce(e,Mt(n,{shape:s,checks:[]}))}function Dv(e,t){if(!kt(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=Jt(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,Mt(e._zod.def,{shape:A5(e,t)}))}function A5(e,t){let n={};return Bn(n,e,Reflect.ownKeys(Jt(e))),Iv(n,t),n}function Ev(e,t){if(!kt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ce(e,Mt(e._zod.def,{shape:A5(e,t)}))}function Nv(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(Jt(e))),Bn(n,t,Reflect.ownKeys(Jt(t)));let r=Mt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ce(e,r)}function Ov(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(Ks(t,n)):void 0,c={};return Bn(c,t,Reflect.ownKeys(Jt(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),ce(t,Mt(t._zod.def,{shape:c,checks:[]}))}function zv(e,t,n){let r=n?new Set(Ks(t,n)):void 0,o={};return Bn(o,t,Reflect.ownKeys(Jt(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),ce(t,Mt(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 Cl(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 st(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function _r(e){return typeof e=="string"?e:e?.message}function qs(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function at(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:_r(e.inst?._zod.def?.error?.(e))??_r(i?.(e))??_r(t?.error?.(e))??_r(n.customError?.(e))??_r(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 Ko(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Zv=/[\uD800-\uDBFF]/;function Gn(e){let t=e.length;if(!Zv.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 qo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function kl(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 Rr(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function jv(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function D5(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 E5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Wv(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return D5(t+n)}function Vv(e){return E5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Fv(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 Hv(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var dl=class{constructor(...t){}};function yl(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Uv(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 Yo(e,t,n){return wn(e,t,n,!1)}function Bv(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 Uv(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 Gv(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var ul,vn=!1,Kv={configurable:!0,get(){vn=!0}};function X(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&ul!==e._zod){ul=void 0;return}ul=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Kv);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=Gv(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 Ys="~constantCatch";function bl(e){let t=()=>e;return t[Ys]=!0,t}var N5,wl=Object.freeze({status:"aborted"}),vl={value:void 0,enumerable:!1},O5="captureStackTrace"in Error?Error:null;function Yv(e){let t=O5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return O5=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{vl.value=new i(f);try{Object.defineProperty(m,"_zod",vl)}finally{vl.value=void 0}}if(m._zod.traits.add(e),t(m,f),a){let g=Object.getPrototypeOf(m),k=m._zod.constr.prototype,I=g;for(;I&&I!==k;)I=Object.getPrototypeOf(I);let y=I??g;a.has(y)||(a.add(y),yl(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?Yv(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 xl=Symbol("zod_brand"),ct=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"}};(N5=globalThis).__zod_globalConfig??(N5.__zod_globalConfig={});var Ne=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(Ne,e),Ne}function Jv(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Lr,2)),e.message}function Xv(e){this._zod.message=e}var Qv={get:Jv,set:Xv,enumerable:!0,configurable:!0},_l={value:void 0,enumerable:!1},z5=new WeakSet([Object.prototype,Error.prototype]),Z5=(e,t)=>{e.name="$ZodError",_l.value=t,Object.defineProperty(e,"issues",_l),_l.value=void 0,Object.defineProperty(e,"message",Qv);let n=Object.getPrototypeOf(e);z5.has(n)||(z5.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})}}))},Sl=C("$ZodError",Z5),ut=C("$ZodError",Z5,void 0,{Parent:Error});function ew(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?ew(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Xo(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 Ll(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 j5(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 Pl(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 ${j5(r.path)}`);return t.join(`
6
+ `)}function Js(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Tr=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 ct;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>at(u,s,ye())));throw Us(c,i?.callee??t),c}return a.value};return t},Xs=Tr(ut),$r=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=>at(u,s,ye())));throw Us(c,i?.callee??t),c}return a.value};return t},Qs=$r(ut),Ar=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 ct;return i.issues.length?W5(e,i.issues,o):{success:!0,data:i.value}},nw=Ar(ut);function W5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>at(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Dr=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?W5(e,i.issues,o):{success:!0,data:i.value}},rw=Dr(ut),ow=Symbol.for("zod.compile.invalid"),iw=Symbol.for("zod.compile.fallback"),Qo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==ow)return!0;if(r.definite===!0&&n===void 0)return!1}return sw(e,t,n)});function sw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[iw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new ct;return i.issues.length===0}var ei=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},ea=e=>{let t=Tr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,Js(n,s))};return n},aw=ea(ut),ta=e=>{let t=Tr(e),n=(r,o,i,s)=>t(r,o,i,Js(n,s));return n},cw=ta(ut),na=e=>{let t=$r(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,Js(n,s))};return n},uw=na(ut),ra=e=>{let t=$r(e),n=async(r,o,i,s)=>await t(r,o,i,Js(n,s));return n},lw=ra(ut),oa=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Ar(e)(t,n,o)},dw=oa(ut),ia=e=>(t,n,r)=>Ar(e)(t,n,r),pw=ia(ut),sa=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Dr(e)(t,n,o)},fw=sa(ut),aa=e=>async(t,n,r)=>Dr(e)(t,n,r),mw=aa(ut);var bt={};St(bt,{anyString:()=>td,base64:()=>Ul,base64url:()=>Gl,bigint:()=>rd,boolean:()=>od,browserEmail:()=>ww,cidrv4:()=>Hl,cidrv6:()=>Bl,creditCard:()=>ca,cuid:()=>Rl,cuid2:()=>Tl,currencyCode:()=>Jl,date:()=>Xl,datetime:()=>ed,domain:()=>ql,duration:()=>Ol,e164:()=>Yl,email:()=>Zl,emoji:()=>jl,extendedDuration:()=>hw,guid:()=>zl,hex:()=>ud,hostname:()=>Kl,html5Email:()=>yw,httpProtocol:()=>ti,iban:()=>ua,idnEmail:()=>vw,integer:()=>ni,ipv4:()=>Wl,ipv6:()=>Vl,ksuid:()=>Dl,lowercase:()=>ad,mac:()=>Fl,md5_base64:()=>Sw,md5_base64url:()=>Lw,md5_hex:()=>_w,nanoid:()=>El,nanoidOfLength:()=>Nl,null:()=>id,number:()=>Qt,rfc5322Email:()=>bw,sha1_base64:()=>Mw,sha1_base64url:()=>Rw,sha1_hex:()=>Pw,sha256_base64:()=>$w,sha256_base64url:()=>Aw,sha256_hex:()=>Tw,sha384_base64:()=>Ew,sha384_base64url:()=>Nw,sha384_hex:()=>Dw,sha512_base64:()=>zw,sha512_base64url:()=>Zw,sha512_hex:()=>Ow,string:()=>nd,time:()=>Ql,ulid:()=>$l,undefined:()=>sd,unicodeEmail:()=>V5,uppercase:()=>cd,uuid:()=>Kn,uuid4:()=>gw,uuid6:()=>Cw,uuid7:()=>kw,xid:()=>Al});var Rl=/^[cC][0-9a-z]{6,}$/,Tl=/^[0-9a-z]+$/,$l=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Al=/^[0-9a-vA-V]{20}$/,Dl=/^[A-Za-z0-9]{27}$/,El=/^[a-zA-Z0-9_-]{21}$/;function Nl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Ol=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hw=/^[-+]?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)?)??$/,zl=/^([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)$/,gw=Kn(4),Cw=Kn(6),kw=Kn(7),Zl=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,yw=/^[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])?)*$/,bw=/^(([^<>()\[\]\\.,;:\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,}))$/,V5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,vw=V5,ww=/^[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])?)*$/,xw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function jl(){return new RegExp(xw,"u")}var Wl=/^(?:(?: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])$/,Vl=/^(([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}|:))$/,Fl=e=>{let t=yt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},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])\/([0-9]|[1-2][0-9]|3[0-2])$/,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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ul=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Kl=/^(?=.{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])?)*\.?$/,ql=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ti=/^https?$/,Yl=/^\+[1-9]\d{6,14}$/,ca=/^\d(?:[ -]?\d){11,18}$/,Jl=/^(?: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)$/,ua=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,F5="(?:(?:\\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 Iw(e){return new RegExp(`^${e}$`)}var Xl=Iw(F5);function Ml(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 Ql(e){return new RegExp(`^${Ml(e)}$`)}function ed(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Ml({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Ml({precision:e.precision})}`:n;return new RegExp(`^${F5}T(?:${r})$`)}var td=/^[\s\S]{0,}$/,nd=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rd=/^-?\d+n?$/,ni=/^-?\d+$/,Qt=/^-?\d+(?:\.\d+)?$/,od=/^(?:true|false)$/i,id=/^null$/i;var sd=/^undefined$/i;var ad=/^[^A-Z]*$/,cd=/^[^a-z]*$/,ud=/^[0-9a-fA-F]*$/;function ri(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function oi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var _w=/^[0-9a-fA-F]{32}$/,Sw=ri(22,"=="),Lw=oi(22),Pw=/^[0-9a-fA-F]{40}$/,Mw=ri(27,"="),Rw=oi(27),Tw=/^[0-9a-fA-F]{64}$/,$w=ri(43,"="),Aw=oi(43),Dw=/^[0-9a-fA-F]{96}$/,Ew=ri(64,""),Nw=oi(64),Ow=/^[0-9a-fA-F]{128}$/,zw=ri(86,"=="),Zw=oi(86);var pe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ld=e=>{let t=e.value;return!Bs(t)&&t.size!==void 0},dd=e=>{let t=e.value;return!Bs(t)&&t.length!==void 0},la={number:"number",bigint:"bigint",object:"date"},pa=C("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=la[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:la[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})}}),fa=C("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=la[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:la[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})}}),pd=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})}}),fd=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]=Uo[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})}}),md=C("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=Go[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})}}),hd=C("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Ko(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),gd=C("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Ko(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cd=C("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=ld),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:Ko(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})}}),kd=C("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),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=qo(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),yd=C("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),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=qo(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),bd=C("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=dd),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=qo(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})}}),Er=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=()=>{})}),vd=C("$ZodCheckRegex",(e,t)=>{Er.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})}}),wd=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ad),Er.init(e,t)}),xd=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cd),Er.init(e,t)}),Id=C("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=yt(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})}}),_d=C("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${yt(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})}}),Sd=C("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${yt(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 da(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues))}var Ld=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=>da(o,n,t.property));da(r,n,t.property)}}),Pd=C("$ZodCheckProperties",(e,t)=>{pe.init(e,t),Yo(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=>da(u,r,s)))):da(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),Md=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})}}),Rd=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 Rd={major:4,minor:6,patch:5};var K=y("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rd;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=Ye(a),p;for(let f of c){if(f._zod.def.when){if(gl(a)||!f._zod.def.when(a))continue}else if(l)continue;let m=a.issues.length,h=f._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new st;if(p||h instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await h,a.issues.length!==m&&(Xs(a.issues,m,e),l||(l=Ye(a,m)))});else{if(a.issues.length===m)continue;Xs(a.issues,m,e),l||(l=Ye(a,m))}}return p?p.then(()=>a):a},s=(a,c,u)=>{if(Ye(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new st;return l.then(p=>e._zod.parse(p,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(p=>s(p,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new st;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return Xo(this,"~standard",va(this))},set"~standard"(e){In(this,"~standard",e)}}),s0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>it(n,t,ve()))}:{value:e.value};async function Uw(e,t){let n={async:!0};return s0(await e._zod.run({value:t,issues:[]},n),n)}function va(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return s0(r,n)}catch{}return Uw(e,t)},vendor:"zod",version:1}}var Yn=y("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??ed,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}}),ce=y("$ZodStringFormat",(e,t)=>{Zr.init(e,t),Yn.init(e,t)}),$d=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ol),ce.init(e,t)}),Ad=y("$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=qn(r))}else t.pattern??(t.pattern=qn());ce.init(e,t)}),Ed=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=zl),ce.init(e,t)}),Dd=1,ai=2;function Nd(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function wa(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Nd(e)||ai:a0(e,t)}function a0(e,t){if(!t.normalize&&t.protocol?.source===ri.source&&!/^https?:\/\//i.test(e))return Dd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??ai}return new URL(e)}catch{return ai}}var Gw=/[\t\n\r]/g;function ci(e){return e.replace(Gw,"")}function xa(e,t){return t.lastIndex=0,t.test(e.hostname)}function Ia(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Od=y("$ZodURL",(e,t)=>{ce.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=wa(r,t);if(o===Dd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===ai){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=ci(r);return}t.hostname&&!xa(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&&!Ia(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:ci(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),zd=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Zl()),ce.init(e,t)}),Zd=y("$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?El:Dl(t.length)),ce.init(e,t)}),jd=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ml),ce.init(e,t)}),Wd=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rl),ce.init(e,t)}),Vd=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Tl),ce.init(e,t)}),Hd=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$l),ce.init(e,t)}),Fd=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Al),ce.init(e,t)}),Bd=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ql(t)),ce.init(e,t)}),Ud=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Yl),ce.init(e,t)}),Gd=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Xl(t)),ce.init(e,t)}),Kd=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Nl),ce.init(e,t)}),qd=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=jl),ce.init(e,t)}),Kw=/^[0-9a-fA-F:.]+$/;function ui(e){return Kw.test(e)?Nd(`http://[${e}]`):!1}var Jd=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Wl),ce.init(e,t),e._zod.check=n=>{ui(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),Yd=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Vl(t.delimiter)),ce.init(e,t)}),Xd=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hl),ce.init(e,t)});function _a(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:ui(n)}var Qd=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Fl),ce.init(e,t),e._zod.check=n=>{_a(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function li(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Sa=/^[0-9a-zA-Z+/]*={0,2}$/,e1=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sa),ce.init(e,t),e._zod.check=n=>{li(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),di=/^[A-Za-z0-9_-]*$/;function Pa(e){if(!di.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return li(n)}var t1=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=di),ce.init(e,t),e._zod.check=n=>{Pa(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),n1=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ql),ce.init(e,t)}),qw=/[- ]/g;function Jw(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 La(e){return da.test(e)?Jw(e.replace(qw,"")):!1}var r1=y("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=da),ce.init(e,t),e._zod.check=n=>{La(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Yw(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 Ma(e){return pa.test(e)?Yw(e):!1}var o1=y("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=pa),ce.init(e,t),e._zod.check=n=>{Ma(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function Ra(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 i1=y("$ZodJWT",(e,t)=>{ce.init(e,t),e._zod.check=n=>{Ra(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),s1=y("$ZodCustomStringFormat",(e,t)=>{ce.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})}}),Ta=y("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=tn,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}}),a1=y("$ZodNumberFormat",(e,t)=>{pd.init(e,t),Ta.init(e,t)}),pi=y("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=rd,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}}),$a=y("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=nd,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}}),c1=y("$ZodBigIntFormat",(e,t)=>{fd.init(e,t),$a.init(e,t)}),u1=y("$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}}),l1=y("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=id,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}}),d1=y("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=od,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}}),p1=y("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),f1=y("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),m1=y("$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)}),h1=y("$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}}),g1=y("$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 B5(e,t,n){e.issues.length&&t.issues.push(...ot(n,e.issues)),t.value[n]=e.value}var C1=y("$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(p=>B5(p,r,c)));else if(B5(l,r,c),a&&l.issues.length!==0&&Ye(l))break}return s.length?Promise.all(s).then(()=>r):r}});function ba(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(...ot(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 Xw=[];function c0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Xw,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=hl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function u0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,p=u.optin,f=u.optout,m=0;for(let h in t){if(s&&n.issues.length!==m){if(Ye(n,m))break;m=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(C=>ba(C,n,h,t,p,f))):ba(g,n,h,t,p,f)}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 l0=y("$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=$r(()=>c0(t));X(e,"propValues",u=>{let l=u.def.shape,p={};for(let f in l){let m=l[f]._zod;if(m.values){Object.prototype.hasOwnProperty.call(p,f)||Ze(p,f,new Set);for(let h of m.values)p[f].add(h);m.optin!==void 0&&p[f].add(void 0)}}return p});let i=Gn,s=t.catchall,a,c=Ne.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let p=u.value;if(!i(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let f=[],m=a.shape,h=l?.abortEarly,g=u.issues.length;for(let C of a.allKeys){if(h&&u.issues.length!==g){if(Ye(u,g))break;g=u.issues.length}if(C==="__proto__")continue;let w=m[C],k=w._zod.optin,b=w._zod.optout,R=w._zod.run({value:p[C],issues:[]},l);R instanceof Promise?f.push(R.then(L=>ba(L,u,C,p,k,b))):ba(R,u,C,p,k,b)}return s?u0(f,p,u,l,o.value,e,h===!0):f.length?Promise.all(f).then(()=>u):u}}),k1=y("$ZodObjectJIT",(e,t)=>{l0.init(e,t);let n=e._zod.parse,r=$r(()=>c0(t)),o=Ne.memoizer,i=m=>{let h=r.value,g=h.symbolKeys,C=new Jn(["payload","ctx"],{shape:m,inst:e,memo:o,syms:g}),w=L=>`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`,k=(L,T)=>`
11
- let ${L}_ab = false;
12
- for (let i = 0; i < ${L}.issues.length; i++) {
13
- const iss = ${L}.issues[i];
14
- iss.path = iss.path ? [${T}, ...iss.path] : [${T}];
10
+ };`)(...Object.values(this.closed))}};var Td={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=Td;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(Cl(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 ct;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==f&&(qs(a.issues,f,e),l||(l=Qe(a,f)))});else{if(a.issues.length===f)continue;qs(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 ct;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 ct;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return Yo(this,"~standard",ka(this))},set"~standard"(e){wn(this,"~standard",e)}}),s0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>at(n,t,ye()))}:{value:e.value};async function jw(e,t){let n={async:!0};return s0(await e._zod.run({value:t,issues:[]},n),n)}function ka(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return s0(r,n)}catch{}return jw(e,t)},vendor:"zod",version:1}}var Yn=C("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??td,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)=>{Er.init(e,t),Yn.init(e,t)}),Ad=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zl),ue.init(e,t)}),Dd=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)}),Ed=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Zl),ue.init(e,t)}),Nd=1,ii=2;function Od(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function ya(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Od(e)||ii:a0(e,t)}function a0(e,t){if(!t.normalize&&t.protocol?.source===ti.source&&!/^https?:\/\//i.test(e))return Nd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??ii}return new URL(e)}catch{return ii}}var Ww=/[\t\n\r]/g;function si(e){return e.replace(Ww,"")}function ba(e,t){return t.lastIndex=0,t.test(e.hostname)}function va(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var zd=C("$ZodURL",(e,t)=>{ue.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=ya(r,t);if(o===Nd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===ii){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=si(r);return}t.hostname&&!ba(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&&!va(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:si(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Zd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jl()),ue.init(e,t)}),jd=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?El:Nl(t.length)),ue.init(e,t)}),Wd=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Rl),ue.init(e,t)}),Vd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Tl),ue.init(e,t)}),Fd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$l),ue.init(e,t)}),Hd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Al),ue.init(e,t)}),Bd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Dl),ue.init(e,t)}),Ud=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ed(t)),ue.init(e,t)}),Gd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Xl),ue.init(e,t)}),Kd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ql(t)),ue.init(e,t)}),qd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ol),ue.init(e,t)}),Yd=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Wl),ue.init(e,t)}),Vw=/^[0-9a-fA-F:.]+$/;function ai(e){return Vw.test(e)?Od(`http://[${e}]`):!1}var Jd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Vl),ue.init(e,t),e._zod.check=n=>{ai(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),Xd=C("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Fl(t.delimiter)),ue.init(e,t)}),Qd=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hl),ue.init(e,t)});function wa(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:ai(n)}var e1=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bl),ue.init(e,t),e._zod.check=n=>{wa(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function ci(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var xa=/^[0-9a-zA-Z+/]*={0,2}$/,t1=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=xa),ue.init(e,t),e._zod.check=n=>{ci(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),ui=/^[A-Za-z0-9_-]*$/;function Ia(e){if(!ui.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ci(n)}var n1=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ui),ue.init(e,t),e._zod.check=n=>{Ia(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),r1=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Yl),ue.init(e,t)}),Fw=/[- ]/g;function Hw(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 _a(e){return ca.test(e)?Hw(e.replace(Fw,"")):!1}var o1=C("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=ca),ue.init(e,t),e._zod.check=n=>{_a(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Bw(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 Sa(e){return ua.test(e)?Bw(e):!1}var i1=C("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=ua),ue.init(e,t),e._zod.check=n=>{Sa(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function La(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 s1=C("$ZodJWT",(e,t)=>{ue.init(e,t),e._zod.check=n=>{La(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),a1=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})}}),Pa=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}}),c1=C("$ZodNumberFormat",(e,t)=>{fd.init(e,t),Pa.init(e,t)}),li=C("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=od,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}}),Ma=C("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=rd,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}}),u1=C("$ZodBigIntFormat",(e,t)=>{md.init(e,t),Ma.init(e,t)}),l1=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}}),d1=C("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=sd,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}}),p1=C("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=id,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}}),f1=C("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),m1=C("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),h1=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)}),g1=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}}),C1=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 B5(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}var k1=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=>B5(d,r,c)));else if(B5(l,r,c),a&&l.issues.length!==0&&Qe(l))break}return s.length?Promise.all(s).then(()=>r):r}});function Ca(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(...st(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 Uw=[];function c0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Uw,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=gl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function u0(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=>Ca(k,n,h,t,d,m))):Ca(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 l0=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=Pr(()=>c0(t));X(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 I=f[k],y=I._zod.optin,b=I._zod.optout,$=I._zod.run({value:d[k],issues:[]},l);$ instanceof Promise?m.push($.then(v=>Ca(v,u,k,d,y,b))):Ca($,u,k,d,y,b)}return s?u0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),y1=C("$ZodObjectJIT",(e,t)=>{l0.init(e,t);let n=e._zod.parse,r=Pr(()=>c0(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}),I=v=>`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`,y=(v,R)=>`
11
+ let ${v}_ab = false;
12
+ for (let i = 0; i < ${v}.issues.length; i++) {
13
+ const iss = ${v}.issues[i];
14
+ iss.path = iss.path ? [${R}, ...iss.path] : [${R}];
15
15
  payload.issues.push(iss);
16
- if (iss.continue !== true) ${L}_ab = true;
16
+ if (iss.continue !== true) ${v}_ab = true;
17
17
  }
18
- if (${L}_ab && ctx && ctx.abortEarly) {
18
+ if (${v}_ab && ctx && ctx.abortEarly) {
19
19
  payload.value = newResult;
20
20
  return payload;
21
- }`;C.write("const input = payload.value;");let b=Object.create(null),R=0;for(let L of h.allKeys)b[L]=`key_${R++}`;C.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let L of h.allKeys){if(L==="__proto__")continue;let T=b[L],O=typeof L=="symbol"?`syms[${g.indexOf(L)}]`:Je(L),B=`${O} in input`,de=m[L],ne=de?._zod?.optin,se=ne!==void 0,H=de?._zod?.optout==="optional";if(C.write(`const ${T} = ${w(O)};`),se&&H){let Q=ne==="optional"?`${T}_present`:`${T}.value !== undefined || ${T}_present`;C.write(`
22
- const ${T}_present = ${B};
23
- if (!${T}.issues.length || ${T}_present) {
24
- if (${T}.issues.length) {${k(T,O)}
21
+ }`;k.write("const input = payload.value;");let b=Object.create(null),$=0;for(let v of h.allKeys)b[v]=`key_${$++}`;k.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let v of h.allKeys){if(v==="__proto__")continue;let R=b[v],T=typeof v=="symbol"?`syms[${g.indexOf(v)}]`:Xe(v),H=`${T} in input`,Y=f[v],te=Y?._zod?.optin,se=te!==void 0,W=Y?._zod?.optout==="optional";if(k.write(`const ${R} = ${I(T)};`),se&&W){let ae=te==="optional"?`${R}_present`:`${R}.value !== undefined || ${R}_present`;k.write(`
22
+ const ${R}_present = ${H};
23
+ if (!${R}.issues.length || ${R}_present) {
24
+ if (${R}.issues.length) {${y(R,T)}
25
25
  }
26
26
 
27
- if (${Q}) {
28
- newResult[${O}] = ${T}.value;
27
+ if (${ae}) {
28
+ newResult[${T}] = ${R}.value;
29
29
  }
30
30
  }
31
31
 
32
- `)}else se?(C.write(`
33
- if (${T}.issues.length) {${k(T,O)}
32
+ `)}else se?(k.write(`
33
+ if (${R}.issues.length) {${y(R,T)}
34
34
  }
35
- `),ne==="defaulted"?C.write(`newResult[${O}] = ${T}.value;`):C.write(`
36
- if (${T}.value !== undefined || ${B}) {
37
- newResult[${O}] = ${T}.value;
35
+ `),te==="defaulted"?k.write(`newResult[${T}] = ${R}.value;`):k.write(`
36
+ if (${R}.value !== undefined || ${H}) {
37
+ newResult[${T}] = ${R}.value;
38
38
  }
39
- `)):C.write(`
40
- const ${T}_present = ${B};
41
- if (${T}.issues.length) {${k(T,O)}
39
+ `)):k.write(`
40
+ const ${R}_present = ${H};
41
+ if (${R}.issues.length) {${y(R,T)}
42
42
  }
43
- if (!${T}_present && !${T}.issues.length) {
43
+ if (!${R}_present && !${R}.issues.length) {
44
44
  payload.issues.push({
45
45
  code: "invalid_type",
46
46
  expected: "nonoptional",
47
47
  input: undefined,
48
- path: [${O}]
48
+ path: [${T}]
49
49
  });
50
50
  if (ctx && ctx.abortEarly) {
51
51
  payload.value = newResult;
@@ -53,14 +53,14 @@ ${n.join(`
53
53
  }
54
54
  }
55
55
 
56
- if (${T}_present) {
57
- newResult[${O}] = ${T}.value;
56
+ if (${R}_present) {
57
+ newResult[${T}] = ${R}.value;
58
58
  }
59
59
 
60
- `)}return C.write("payload.value = newResult;"),C.write("return payload;"),C.compile()},s,a=Gn,c=!Ne.jitless,l=c&&fl.value,p=t.catchall,f;e._zod.parse=(m,h)=>{f??(f=r.value);let g=m.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),m=s(m,h),p?u0([],g,m,h,f,e,h?.abortEarly===!0):m):n(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function U5(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=>!Ye(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=>it(s,r,ve())))}),t)}var fi=y("$ZodUnion",(e,t)=>{K.init(e,t),X(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),X(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),X(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)))}),X(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=>en(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=>U5(a,r,e,o)):U5(s,r,e,o)}});function G5(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=>it(s,r,ve())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var y1=y("$ZodXor",(e,t)=>{fi.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=>G5(a,r,e,o)):G5(s,r,e,o)}});function b1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=d0(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 d0(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 v1=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,fi.init(e,t);let n=e._zod.parse;X(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)||Ze(i,u,new Set);for(let p of l)i[u].add(p)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Ar(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=$r(()=>d0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Gn(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)}}),w1=y("$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])=>K5(n,c,u)):K5(n,i,s)}});function jr(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(wt(e)&&wt(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=jr(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=jr(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 K5(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let p;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),p=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let f=String(u.path[0]);i.has(f)||i.set(f,u),p=[f]}else return!1;for(let f of p)r.has(f)||r.set(f,{}),r.get(f)[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=jr(t.value,n.value);if(!c.valid){if(Ye(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Aa=y("$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),p=t.rest?i?.abortEarly:void 0,f=!1;for(let m=0;m<n.length;m++){let h=n[m]._zod.run({value:s[m],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[m]=g})):(l[m]=h,p&&!f&&h.issues.length&&(f=Ye(h)))}if(t.rest&&!f){let m=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let C of h){if(p&&o.issues.length!==g){if(Ye(o,g))break;g=o.issues.length}m++;let w=t.rest._zod.run({value:C,issues:[]},i);w instanceof Promise?a.push(w.then(k=>J5(k,o,m))):J5(w,o,m)}}return a.length?Promise.all(a).then(()=>Y5(l,o,n,s,u)):Y5(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 J5(e,t,n){e.issues.length&&t.issues.push(...ot(n,e.issues)),t.value[n]=e.value}function Y5(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(...ot(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 x1=y("$ZodRecord",(e,t)=>{K.init(e,t);let n=Ne.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!wt(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 p=t.keyType._zod.run({value:l,issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(h=>it(h,o,ve())),input:l,path:[l],inst:e});continue}let f=p.value;if(f==="__proto__")continue;let m=t.valueType._zod.run({value:i[l],issues:[]},o);m instanceof Promise?s.push(m.then(h=>{h.issues.length&&r.issues.push(...ot(l,h.issues)),r.value[f]=h.value})):(m.issues.length&&r.issues.push(...ot(l,m.issues)),r.value[f]=m.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"&&tn.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=>it(h,o,ve())),input:u,path:[u],inst:e});continue}let f=l.value;if(f==="__proto__")continue;let m=t.valueType._zod.run({value:i[u],issues:[]},o);m instanceof Promise?s.push(m.then(h=>{h.issues.length&&r.issues.push(...ot(u,h.issues)),r.value[f]=h.value})):(m.issues.length&&r.issues.push(...ot(u,m.issues)),r.value[f]=m.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}}),I1=y("$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(Ye(r,c))break;c=r.issues.length}let p=t.keyType._zod.run({value:u,issues:[]},o),f=t.valueType._zod.run({value:l,issues:[]},o);p instanceof Promise||f instanceof Promise?s.push(Promise.all([p,f]).then(([m,h])=>{X5(m,h,r,u,i,e,o)})):X5(p,f,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function X5(e,t,n,r,o,i,s){e.issues.length&&(Go.has(typeof r)?n.issues.push(...ot(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>it(a,s,ve()))})),t.issues.length&&(Go.has(typeof r)?n.issues.push(...ot(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>it(a,s,ve()))})),n.value.set(e.value,t.value)}var _1=y("$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(Ye(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(p=>Q5(p,r))):Q5(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function Q5(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var S1=y("$ZodEnum",(e,t)=>{K.init(e,t);let n=Rr(t.entries),r=new Set(n);e._zod.values=r,X(e,"pattern",o=>{let i=Rr(o.def.entries).filter(s=>Go.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>xt(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}}),P1=y("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,X(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?xt(i):i?xt(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}}),L1=y("$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}}),M1=y("$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 _n(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 st;return n.value=o,n}});function e0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ea=y("$ZodOptional",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${en(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=>e0(n,i)):e0(n,o)}return t.innerType._zod.run(n,r)}}),R1=y("$ZodExactOptional",(e,t)=>{Ea.init(e,t),X(e,"values",n=>n.def.innerType._zod.values),X(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),T1=y("$ZodNullable",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${en(r.source)}|null)$`):void 0}),X(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)}),$1=y("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(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=>t0(i,t)):t0(o,t)}});function t0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var A1=y("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(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))}),E1=y("$ZodNonOptional",(e,t)=>{K.init(e,t),X(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=>n0(i,e)):n0(o,e)}});function n0(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 D1=y("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _n("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 r0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>it(o,r,ve()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var N1=y("$ZodCatch",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),X(e,"optout",n=>n.def.innerType._zod.optout),X(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=>r0(n,i,t,r)):r0(n,o,t,r)}}),O1=y("$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)}),Da=y("$ZodPipe",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(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=>Ca(s,t.in,r)):Ca(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>Ca(i,t.out,r)):Ca(o,t.out,r)}});function Ca(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 mi=y("$ZodCodec",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(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=>ka(s,t,r)):ka(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ka(s,t,r)):ka(i,t,r)}}});function ka(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=>ya(e,i,t.out,n)):ya(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>ya(e,i,t.in,n)):ya(e,o,t.in,n)}}function ya(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var z1=y("$ZodPreprocess",(e,t)=>{Da.init(e,t)}),Z1=y("$ZodReadonly",(e,t)=>{K.init(e,t),X(e,"propValues",n=>n.def.innerType._zod.propValues),X(e,"values",n=>n.def.innerType._zod.values),X(e,"optin",n=>n.def.innerType?._zod?.optin),X(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(o0):o0(o)}});function o0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Qw(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 td({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===tn?oi:s)?.source}function Td(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=Td(r);return n&&o&&i&&i!==o?n.replace(en(o),()=>en(i)):n}if(t.options){let o=t.options.map(Td);if(o.every(Boolean))return`^(${o.map(i=>en(i)).join("|")})$`}return Qw(e)}var j1=y("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=Td(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(en(o))}else if(r===null||ml.has(typeof r))n.push(xt(`${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)}),W1=y("$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?ta(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?ta(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 na(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await na(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 Aa({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)),V1=y("$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))}),hi=y("$ZodLazy",(e,t)=>{K.init(e,t),dl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),X(e,"pattern",n=>n.innerType?._zod?.pattern),X(e,"propValues",n=>n.innerType?._zod?.propValues),X(e,"optin",n=>n.innerType?._zod?.optin??void 0),X(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),H1=y("$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=>i0(i,n,r,e));i0(o,n,r,e)}});function i0(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(Er(o))}}var Za=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},B1="~memo",f0=[];function m0(e){return e!==null&&typeof e=="object"}function F1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var h0=new WeakMap,Wr=0,za=1,gi=2;function Ci(e,t,n){let r=h0.get(e);if(r!==void 0)return r?gi:Wr;if(t.has(e))return gi;t.add(e);let o=Wr,i=l=>{if(o!==gi&&l?._zod){let p=Ci(l,t,n);p>o&&(o=p)}},s=(l,p)=>{let f=Wr;for(let m of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,m);if(p&&!h.enumerable)continue;let g=h.get?za:h.value?._zod?Ci(h.value,t,n):Wr;g>f&&(f=g)}return f},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Ar(c);a(l?s(l,!0):za),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?Ci(l,t,!1):za);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 p=Object.getOwnPropertyDescriptor(c,l);if(!p||p.get)continue;let f=p.value;if(!(!f||typeof f!="object")){if(f._zod)i(f);else if(Array.isArray(f))for(let m of f)i(m)}}}return t.delete(e),ex(e,o)}function ex(e,t){return t!==za&&h0.set(e,t===gi),t}function ja(e){return Ci(e,new Set,!0)!==Wr}function tx(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Na,Oa=[],nx={alloc(e,t,n){let r=Na;if(!r)return n;Na=void 0;let o={value:n,issues:null};return r.set(t.value,o),Oa.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"&&Wa(i,o.value))throw new Za;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 w=Ci(e,new Set,!1);if(w===Wr)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);w===gi||r?n=!0:r=!0}let l=c.value;if(!m0(l))return s(c,u);let p=u[B1];p||(p={buckets:new WeakMap,backEdges:void 0},u[B1]=p);let f;o===u?f=i:(f=tx(p,e),o=u,i=f);let m=f.get(l);if(m)return c.value=m.value,m.issues?m.issues.length&&c.issues.push(...F1(m.issues)):(c.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.backEdges.add(m.value)),c;Na=f;let h=Oa.length,g=s(c,u);Na=void 0;let C=Oa.length>h?Oa.pop():void 0;return g instanceof Promise?g.then(w=>(C&&(C.issues=w.issues.length?F1(w.issues):f0),w)):(C&&(C.issues=g.issues.length?F1(g.issues):f0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function ki(){return nx}function Wa(e,t){let n=e[B1]?.backEdges;return n!==void 0&&m0(t)&&n.has(t)}var yi={};$t(yi,{en:()=>Va});var rx=()=>{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=Cl(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 ${Js(i.values[0])}`:`Invalid option: expected one of ${Gs(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":""}: ${Gs(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 Va(){return{localeError:rx()}}var g0,U1=Symbol("ZodOutput"),G1=Symbol("ZodInput"),Ha=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 Fa(){return new Ha}(g0=globalThis).__zod_globalRegistry??(g0.__zod_globalRegistry=Fa());var je=globalThis.__zod_globalRegistry;var Xe=Symbol.for("zod.compile.invalid"),C0=Symbol.for("zod.compile.fallback"),Nt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},ee=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 ix(e,t){try{return Ua(e,{assertOnly:!0})}catch{return t}}function Y1(e,t){try{let n=Ua(e),r=Ba(e,n);return r._zod.bag.validator=ix(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Ba(e,t){if(ja(e))throw new ee("a schema whose subtree contains a reference cycle");let n=ae(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[C0]||a&&Wa(a,s.value))return o(s,a);let c=t(s.value);return c!==Xe?(s.value=c,s):(a&&(a[C0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||sx(n,e,t),n}function sx(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!==Xe?{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!==Xe?c:i(s,a)}}}function Ua(e,t){let n=!0;try{n=ja(e)}catch{}if(n)throw new ee("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new Jn(["input"]),i=ke(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[Xe,...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&&ml.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?u0([],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 U5(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=>at(s,r,ye())))}),t)}var di=C("$ZodUnion",(e,t)=>{K.init(e,t),X(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),X(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),X(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)))}),X(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=>U5(a,r,e,o)):U5(s,r,e,o)}});function G5(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=>at(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var b1=C("$ZodXor",(e,t)=>{di.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=>G5(a,r,e,o)):G5(s,r,e,o)}});function v1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=d0(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 d0(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 w1=C("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,di.init(e,t);let n=e._zod.parse;X(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=Mr(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Pr(()=>d0(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)}}),x1=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])=>K5(n,c,u)):K5(n,i,s)}});function Nr(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(kt(e)&&kt(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=Nr(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=Nr(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 K5(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=Nr(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 Ra=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 I=t.rest._zod.run({value:k,issues:[]},i);I instanceof Promise?a.push(I.then(y=>Y5(y,o,f))):Y5(I,o,f)}}return a.length?Promise.all(a).then(()=>J5(l,o,n,s,u)):J5(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 Y5(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}function J5(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(...st(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 I1=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(!kt(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=>at(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(...st(l,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...st(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=>at(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(...st(u,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...st(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}}),_1=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])=>{X5(f,h,r,u,i,e,o)})):X5(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function X5(e,t,n,r,o,i,s){e.issues.length&&(Bo.has(typeof r)?n.issues.push(...st(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>at(a,s,ye()))})),t.issues.length&&(Bo.has(typeof r)?n.issues.push(...st(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>at(a,s,ye()))})),n.value.set(e.value,t.value)}var S1=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=>Q5(d,r))):Q5(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function Q5(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var L1=C("$ZodEnum",(e,t)=>{K.init(e,t);let n=Sr(t.entries),r=new Set(n);e._zod.values=r,X(e,"pattern",o=>{let i=Sr(o.def.entries).filter(s=>Bo.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>yt(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}}),P1=C("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,X(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?yt(i):i?yt(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}}),M1=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}}),R1=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 ct;return n.value=o,n}});function e0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ta=C("$ZodOptional",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),X(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=>e0(n,i)):e0(n,o)}return t.innerType._zod.run(n,r)}}),T1=C("$ZodExactOptional",(e,t)=>{Ta.init(e,t),X(e,"values",n=>n.def.innerType._zod.values),X(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),$1=C("$ZodNullable",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Xt(r.source)}|null)$`):void 0}),X(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)}),A1=C("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(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=>t0(i,t)):t0(o,t)}});function t0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var D1=C("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(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))}),E1=C("$ZodNonOptional",(e,t)=>{K.init(e,t),X(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=>n0(i,e)):n0(o,e)}});function n0(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 N1=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 r0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>at(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var O1=C("$ZodCatch",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),X(e,"optout",n=>n.def.innerType._zod.optout),X(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=>r0(n,i,t,r)):r0(n,o,t,r)}}),z1=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)}),$a=C("$ZodPipe",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(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=>ma(s,t.in,r)):ma(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>ma(i,t.out,r)):ma(o,t.out,r)}});function ma(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 pi=C("$ZodCodec",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(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=>ha(s,t,r)):ha(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ha(s,t,r)):ha(i,t,r)}}});function ha(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=>ga(e,i,t.out,n)):ga(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>ga(e,i,t.in,n)):ga(e,o,t.in,n)}}function ga(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var Z1=C("$ZodPreprocess",(e,t)=>{$a.init(e,t)}),j1=C("$ZodReadonly",(e,t)=>{K.init(e,t),X(e,"propValues",n=>n.def.innerType._zod.propValues),X(e,"values",n=>n.def.innerType._zod.values),X(e,"optin",n=>n.def.innerType?._zod?.optin),X(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(o0):o0(o)}});function o0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Gw(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 nd({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===Qt?ni:s)?.source}function $d(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=$d(r);return n&&o&&i&&i!==o?n.replace(Xt(o),()=>Xt(i)):n}if(t.options){let o=t.options.map($d);if(o.every(Boolean))return`^(${o.map(i=>Xt(i)).join("|")})$`}return Gw(e)}var W1=C("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=$d(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||hl.has(typeof r))n.push(yt(`${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)}),V1=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?Xs(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?Xs(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 Qs(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await Qs(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 Ra({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)),F1=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))}),fi=C("$ZodLazy",(e,t)=>{K.init(e,t),pl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),X(e,"pattern",n=>n.innerType?._zod?.pattern),X(e,"propValues",n=>n.innerType?._zod?.propValues),X(e,"optin",n=>n.innerType?._zod?.optin??void 0),X(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),H1=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=>i0(i,n,r,e));i0(o,n,r,e)}});function i0(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(Rr(o))}}var Na=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},U1="~memo",f0=[];function m0(e){return e!==null&&typeof e=="object"}function B1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var h0=new WeakMap,Or=0,Ea=1,mi=2;function hi(e,t,n){let r=h0.get(e);if(r!==void 0)return r?mi:Or;if(t.has(e))return mi;t.add(e);let o=Or,i=l=>{if(o!==mi&&l?._zod){let d=hi(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Or;for(let f of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,f);if(d&&!h.enumerable)continue;let g=h.get?Ea:h.value?._zod?hi(h.value,t,n):Or;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=Mr(c);a(l?s(l,!0):Ea),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?hi(l,t,!1):Ea);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),Kw(e,o)}function Kw(e,t){return t!==Ea&&h0.set(e,t===mi),t}function Oa(e){return hi(e,new Set,!0)!==Or}function qw(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Aa,Da=[],Yw={alloc(e,t,n){let r=Aa;if(!r)return n;Aa=void 0;let o={value:n,issues:null};return r.set(t.value,o),Da.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"&&za(i,o.value))throw new Na;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 I=hi(e,new Set,!1);if(I===Or)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);I===mi||r?n=!0:r=!0}let l=c.value;if(!m0(l))return s(c,u);let d=u[U1];d||(d={buckets:new WeakMap,backEdges:void 0},u[U1]=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(...B1(f.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),c;Aa=m;let h=Da.length,g=s(c,u);Aa=void 0;let k=Da.length>h?Da.pop():void 0;return g instanceof Promise?g.then(I=>(k&&(k.issues=I.issues.length?B1(I.issues):f0),I)):(k&&(k.issues=g.issues.length?B1(g.issues):f0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function gi(){return Yw}function za(e,t){let n=e[U1]?.backEdges;return n!==void 0&&m0(t)&&n.has(t)}var Ci={};St(Ci,{en:()=>Za});var Jw=()=>{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=kl(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 ${Gs(i.values[0])}`:`Invalid option: expected one of ${Hs(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":""}: ${Hs(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 Za(){return{localeError:Jw()}}var g0,G1=Symbol("ZodOutput"),K1=Symbol("ZodInput"),ja=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 Wa(){return new ja}(g0=globalThis).__zod_globalRegistry??(g0.__zod_globalRegistry=Wa());var Ve=globalThis.__zod_globalRegistry;var et=Symbol.for("zod.compile.invalid"),C0=Symbol.for("zod.compile.fallback"),Rt=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 Qw(e,t){try{return Fa(e,{assertOnly:!0})}catch{return t}}function X1(e,t){try{let n=Fa(e),r=Va(e,n);return r._zod.bag.validator=Qw(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Va(e,t){if(Oa(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?.[C0]||a&&za(a,s.value))return o(s,a);let c=t(s.value);return c!==et?(s.value=c,s):(a&&(a[C0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||ex(n,e,t),n}function ex(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 Fa(e,t){let n=!0;try{n=Oa(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
- ${c}`:c:"",l=Function,p=`return (input) => {
62
+ ${c}`:c:"",l=Function,d=`return (input) => {
63
63
  ${c}
64
- }`,f;try{f=new l(...s,p)(...a)}catch(m){throw new ee(`this schema (generated code failed to evaluate: ${m.message})`)}return t?.debug&&(f.code=u),f.definite=r.definite,f}function G(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 er(e,t){return e.definite=!1,G(e,t)}function V(e){return`v${e.varCounter++}`}function ax(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return Xe;let r=n;return r.issues.length===0?r.value:Xe}function He(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 ee)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let p of l)t.constants.delete(p)}return t.constantCounter=a,t.varCounter=c,cx(e,t,n,r)}}function cx(e,t,n,r){t.definite=!1;let o=G(t,n),i=G(t,ax),s=V(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var ux=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function lx(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&&!ux.has(a.check))throw new ee('check with a custom "when" condition');switch(a.check){case"greater_than":dx(e,t,a,i);break;case"less_than":px(e,t,a,i);break;case"multiple_of":fx(e,t,a,i);break;case"number_format":x0(e,a,i);break;case"min_length":{let c=Xn(a.minimum,"min_length"),u=K1(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=Xn(a.maximum,"max_length"),u=K1(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=Xn(a.length,"length_equals"),u=K1(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 < ${Xn(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${Xn(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${Xn(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=I0(e,t,a,i);break;case"custom":i=yx(e,t,s,i);break;case"bigint_format":mx(e,a,i);break;case"mime_type":hx(e,t,a,i);break;case"property":Cx(e,t,a,i);break;case"properties":gx(e,t,a,i);break;case"overwrite":{let c=V(t);kx(e,t,s,i,c),i=c;break}default:throw new ee(`check type ${a.check}`)}}return i}function K1(e,t,n,r){let o=G(t,Kn),i=V(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function Xn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new ee(`${t} bound of type ${typeof e}`);return`${e}`}function w0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new ee("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new ee("comparison check with Invalid Date bound");return G(e,t)}throw new ee(`comparison check bound of type ${typeof t}`)}function dx(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${w0(t,n.value)}) return INVALID;`)}function px(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${w0(t,n.value)}) return INVALID;`)}function fx(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new ee("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=G(t,Bo);e.write(`if (${o}(${r}, ${Xn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function x0(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 ee(`number format ${r}`)}}function mx(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 ee(`bigint format ${r}`)}}function hx(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=G(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function gx(e,t,n,r){if(n.when)throw new ee('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"?G(t,i):Je(i),a=V(t);e.write(`const ${a} = ${r}[${s}];`),He(e,t,o[i],a,!1)}}function Cx(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ke(e,t,n.schema,o)}function kx(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new ee("overwrite check without a transform function");if(tr(i))throw new Nt("z.compile: async overwrite transforms are not supported");let s=G(t,i);e.write(`const ${o} = ${s}(${r});`)}function q1(){throw new st}function X1(e){this.issues.push(e)}function yx(e,t,n,r){let o=n._zod.def;if(o.fn){if(tr(o.fn))throw new Nt("z.compile: async .refine() predicates are not supported");let i=er(t,o.fn),s=G(t,q1),a=V(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(tr(n._zod.check))throw new Nt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=er(t,u=>{let l={value:u,issues:[],addIssue:X1};return i(l)instanceof Promise&&q1(),l.issues.length===0?l.value:Xe}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new ee("custom check without a predicate or check function")}var bx=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 I0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=G(t,li);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=G(t,Pa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=G(t,Ra),l=G(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=G(t,ui);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=G(t,_a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=G(t,La);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=G(t,Ma);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=G(t,wa),l=G(t,n),p=V(t),f=V(t);if(e.write(`const ${p} = ${r}.trim();`),e.write(`const ${f} = ${u}(${p}, ${l});`),e.write(`if (typeof ${f} === "number") return INVALID;`),s.hostname!==void 0){let g=G(t,xa);e.write(`if (!${g}(${f}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=G(t,Ia);e.write(`if (!${g}(${f}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let m=V(t),h=s.normalize?`${f}.href`:`${G(t,ci)}(${p})`;return e.write(`const ${m} = ${h};`),m}let a=n.fn;if(a){if(tr(a))throw new ee(`async string format ${i}`);let u=G(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(bx.has(i)&&n.pattern){let u=G(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 ee("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(${Je(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${Je(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${Je(u)}) return INVALID;`);break}default:throw new ee(`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 ee(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=vx(e,t,n,r,a);break;case"number":c=wx(e,n,r);break;case"boolean":c=xx(e,r);break;case"bigint":c=Ix(e,n,r);break;case"symbol":c=_x(e,r);break;case"undefined":c=Sx(e,r);break;case"null":c=Px(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=Mx(e,r);break;case"date":c=Rx(e,r);break;case"object":c=Tx(e,t,n,r,a);break;case"optional":c=$x(e,t,n,r,a);break;case"nullable":c=Dx(e,t,n,r,a);break;case"array":c=Nx(e,t,n,r,a);break;case"literal":c=Ox(e,t,n,r);break;case"enum":c=zx(e,t,n,r);break;case"readonly":{let u=y0(e,t,n,r),l=V(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":y0(e,t,n,r),c="true";break;case"default":case"prefault":c=Zx(e,t,n,r);break;case"nonoptional":c=jx(e,t,n,r);break;case"tuple":c=Wx(e,t,n,r);break;case"union":c=Vx(e,t,n,r);break;case"intersection":c=Bx(e,t,n,r);break;case"record":c=Ux(e,t,n,r);break;case"map":c=Kx(e,t,n,r);break;case"set":c=qx(e,t,n,r);break;case"file":c=Jx(e,r);break;case"template_literal":c=Yx(e,t,n,r);break;case"lazy":c=Xx(e,t,n,r);break;case"pipe":c=Qx(e,t,n,r);break;case"custom":c=eI(e,t,n,r);break;case"transform":c=rI(e,t,n,r);break;case"catch":c=nI(e,t,n,r);break;default:throw new ee(`schema type ${s}`)}return c===null?null:lx(e,t,n,c)}function vx(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:I0(e,t,i,r,o)}function wx(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&&x0(e,{format:r.format},n),n}function xx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function Ix(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 _x(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function Sx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Px(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 Mx(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Rx(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function Tx(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=k=>typeof k=="symbol"?G(t,k):Je(k),p=k=>typeof k=="symbol"?`[${l(k)}]`:Je(k),f=s;if(a.includes("__proto__"))throw new ee('object shape key "__proto__"');let m=new Map;for(let k of u){let b=f[k],R=l(k),L=V(t);if(e.write(`const ${L} = ${r}[${R}];`),b._zod.optin!==void 0){let T=V(t);e.write(`let ${T} = (() => {`),e.indented(O=>{let B=He(O,t,b,L);O.write(`return ${B};`)}),e.write("})();"),b._zod.optout==="optional"?(e.write(`if (${T} === INVALID) {`),e.indented(O=>{O.write(`if (${R} in ${r}) return INVALID;`),O.write(`${T} = undefined;`)}),e.write("}")):e.write(`if (${T} === INVALID) return INVALID;`),m.set(k,T)}else{Ex(b)&&e.write(`if (!(${R} in ${r})) return INVALID;`);let T=He(e,t,b,L,o);T!==null&&m.set(k,T)}}let h=i.catchall,g="none";if(h){let k=h._zod.def.type;if(k==="never"){let b=a.map(R=>`k !== ${Je(R)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented(R=>{R.write(`if (${b}) return INVALID;`)}),e.write("}")}else(k==="unknown"||k==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let C=V(t),w=u.some(k=>k0(f[k])||J1(f[k]));if(!o){if(g==="schema"){let k=a.length>0?G(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(b=>{b.write('if (k === "__proto__") continue;'),k&&b.write(`if (${k}.has(k)) continue;`);let R=V(t);b.write(`const ${R} = ${r}[k];`),He(b,t,h,R,!1)}),e.write("}")}return null}if(w){e.write(`const ${C} = {};`);for(let k of u){let b=l(k),R=m.get(k);J1(f[k])?e.write(`if (${b} in ${r}) ${C}[${b}] = ${R};`):k0(f[k])?e.write(`if (${R} !== undefined || ${b} in ${r}) ${C}[${b}] = ${R};`):e.write(`${C}[${b}] = ${R};`)}}else{let k=u.map(b=>`${p(b)}: ${m.get(b)}`).join(", ");e.write(`const ${C} = { ${k} };`)}if(g!=="none"){let k=a.length>0?G(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(b=>{if(b.write('if (k === "__proto__") continue;'),k&&b.write(`if (${k}.has(k)) continue;`),g==="passthrough")b.write(`${C}[k] = ${r}[k];`);else{let R=V(t);b.write(`const ${R} = ${r}[k];`);let L=He(b,t,h,R);b.write(`${C}[k] = ${L};`)}}),e.write("}")}return C}function $x(e,t,n,r,o=!0){let i=n._zod.def;if(Ax(n))return ke(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=V(t),c=V(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let p=ke(l,t,i.innerType,r);l.write(`return ${p};`)}),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?V(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 Ax(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Ex(e){return e._zod.optin===void 0&&Qn(e)}function Qn(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?Qn(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?Qn(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Qn):!0;case"intersection":return!t.left||!t.right?!0:Qn(t.left)&&Qn(t.right);case"pipe":return t.in?Qn(t.in):!0;default:return!0}}function J1(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function k0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Vr(e)}function Vr(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?Vr(t.innerType):!0;case"union":return t.options?t.options.some(Vr):!0;case"intersection":return!t.left||!t.right||Vr(t.left)||Vr(t.right);case"pipe":return t.out?Vr(t.out):!0;default:return!0}}function Dx(e,t,n,r,o=!0){let i=n._zod.def,s=o?V(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 Nx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?V(t):null,a=V(t),c=V(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=He(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function Ox(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=G(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=G(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${Je(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 ee(`literal type ${typeof s}`);return r}function zx(e,t,n,r){let o=n._zod.values;if(!o)throw new ee("enum schema without enumerated values");let i=G(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function y0(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=G(t,s),u=V(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ke(e,t,o.innerType,u)}let a=V(t);if(s){let c=G(t,s),u=G(t,Uo);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let p=ke(l,t,o.innerType,r);l.write(`${a} = ${p} === undefined ? ${u}(${c}()) : ${p};`)}),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 jx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.innerType,r),s=V(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function Wx(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=b0(i,"optin"),c=b0(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=V(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let p=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(f=>{f.write(`if (${l} < ${r}.length) {`),f.indented(m=>{let h=V(t);m.write(`const ${h} = ${r}[${l}];`);let g=He(m,t,p,h);m.write(`${u}[${l}] = ${g};`)}),f.write("} else {"),f.indented(m=>{if(J1(p)){m.write(`${u}.length = ${l};`);return}let h=V(t),g=V(t);m.write(`const ${h} = undefined;`),m.write(`const ${g} = (() => {`),m.indented(C=>{let w=He(C,t,p,h);C.write(`return ${w};`)}),m.write("})();"),m.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),m.write(`else ${u}[${l}] = ${g};`)}),f.write("}")}),e.write("}");else{let f=V(t);e.write(`const ${f} = ${r}[${l}];`);let m=He(e,t,p,f);e.write(`${u}[${l}] = ${m};`)}}if(s){let l=V(t),p=V(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(f=>{f.write(`const ${p} = ${r}[${l}];`);let m=He(f,t,s,p);f.write(`${u}[${l}] = ${m};`)}),e.write("}")}return u}function b0(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 Vx(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return Hx(e,t,o,r);if(o.inclusive===!1)throw new ee("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=G(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=V(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 p=ke(l,t,u,r);l.write(`return ${p};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function Hx(e,t,n,r){if(n.unionFallback)throw new ee("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=V(t),i=V(t);e.write(`const ${o} = ${r}?.[${Je(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 ee("discriminated union option without static discriminator values");for(let f of u){if(a.has(f))throw new ee(`duplicate discriminator value ${String(f)}`);a.add(f)}let l=Array.from(u,f=>Fx(t,o,f)),p=s?"if":"else if";e.write(`${p} (${l.join(" || ")}) {`),e.indented(f=>{let m=ke(f,t,c,r);f.write(`${i} = ${m};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function Fx(e,t,n){if(typeof n=="string")return`${t} === ${Je(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=G(e,n);return`${t} === ${r}`}throw new ee(`literal discriminator value ${String(n)}`)}function Bx(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=He(e,t,o.left,r),s=He(e,t,o.right,r),a=G(t,jr),c=V(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function Ux(e,t,n,r){let o=n._zod.def,i=G(t,wt);e.write(`if (!${i}(${r})) return INVALID;`);let s=V(t),a=V(t),c=V(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let m=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new ee(`record key value ${String(g)}`);let C=typeof g=="number"?g.toString():g;if(C==="__proto__")throw new ee('record key "__proto__"');m.push(C);let w=G(t,g),k=ke(e,t,o.keyType,w),b=V(t);e.write(`const ${b} = ${r}[${Gx(t,C)}];`);let R=He(e,t,o.valueType,b);e.write(`${s}[${k}] = ${R};`)}let h=G(t,new Set(m));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 p=o.keyType._zod.def;if(!(p.type==="string"&&p.format===void 0&&!p.coerce&&(p.checks?.length??0)===0)){let m=o.mode==="loose",h=Ua(o.keyType);h.definite===!1&&(t.definite=!1);let g=G(t,h),C=G(t,tn),w=V(t);return v0(e,t,r,a,k=>{k.write(`let ${w} = ${g}(${a});`),k.write(`if (${w} === INVALID && typeof ${a} === "string" && ${C}.test(${a})) ${w} = ${g}(Number(${a}));`),m?k.write(`if (${w} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):k.write(`if (${w} === INVALID) return INVALID;`),k.write(`if (${w} === "__proto__") continue;`);let b=V(t);k.write(`const ${b} = ${r}[${a}];`);let R=He(k,t,o.valueType,b);k.write(`${s}[${w}] = ${R};`)}),s}return v0(e,t,r,a,m=>{m.write(`const ${c} = ${r}[${a}];`);let h=He(m,t,o.valueType,c);m.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function v0(e,t,n,r,o,i){let s=G(t,Object.prototype.propertyIsEnumerable),a=V(t),c=V(t),u=V(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 Gx(e,t){return typeof t=="string"?Je(t):G(e,t)}function Kx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=V(t),s=V(t),a=V(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 qx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=V(t),s=V(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 Jx(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Yx(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=G(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function Xx(e,t,n,r){let o=n._zod.def,i=er(t,o.getter),s=G(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=V(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function Qx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.in,r);if(o.transform){if(tr(o.transform))throw new Nt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=er(t,l=>{let p={value:l,issues:[],addIssue:X1},f=s(l,p);return f instanceof Promise?Xe:p.issues.length===0?f:Xe}),u=V(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 tr(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function eI(e,t,n,r){let o=n._zod.def;if(o.fn){if(tr(o.fn))throw new Nt("z.compile: async custom predicates are not supported");let i=er(t,o.fn),s=G(t,q1),a=V(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new ee("custom schema without a predicate function");return r}function tI(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return Xe;let o=r;return o.issues.length===0?o.value:t()}function nI(e,t,n,r){let o=n._zod.def;if(!o.catchValue[Qs])throw new ee("catch with a callback (only a constant catch value compiles)",!1);let i=V(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=He(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=G(t,o.innerType),a=er(t,o.catchValue),c=G(t,tI);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 rI(e,t,n,r){let o=n._zod.def;if(o.transform){if(tr(o.transform))throw new Nt("z.compile: async transforms are not supported");let i=o.transform,a=er(t,u=>{let l={value:u,issues:[],addIssue:X1},p=i(u,l);return p instanceof Promise?Xe:l.issues.length===0?p:Xe}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Ga(e){return e.checks&&(e.checks=[...e.checks]),e}function Q1(e,t){return new e(Ga({type:"string",...M(t)}))}function ep(e,t){return new e(Ga({type:"string",coerce:!0,...M(t)}))}function Ka(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function qa(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function Ja(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function Ya(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function Xa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function Qa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function bi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function ec(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function tc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function nc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function rc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function oc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function ic(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function sc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function ac(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function cc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function tp(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function uc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function lc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function dc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function pc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function fc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function np(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...M(t)})}function rp(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...M(t)})}function mc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var op={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function vi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function wi(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function xi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function Ii(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function ip(e,t){return new e(Ga({type:"number",checks:[],...M(t)}))}function sp(e,t){return new e(Ga({type:"number",coerce:!0,checks:[],...M(t)}))}function ap(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function cp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function up(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function pp(e,t){return new e({type:"boolean",...M(t)})}function fp(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function mp(e,t){return new e({type:"bigint",...M(t)})}function hp(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function gp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function Cp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function kp(e,t){return new e({type:"symbol",...M(t)})}function yp(e,t){return new e({type:"undefined",...M(t)})}function bp(e,t){return new e({type:"null",...M(t)})}function vp(e){return new e({type:"any"})}function wp(e){return new e({type:"unknown"})}function xp(e,t){return new e({type:"never",...M(t)})}function Ip(e,t){return new e({type:"void",...M(t)})}function _p(e,t){return new e({type:"date",...M(t)})}function Sp(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Pp(e,t){return new e({type:"nan",...M(t)})}function Ht(e,t){return new ha({check:"less_than",...M(t),value:e,inclusive:!1})}function mt(e,t){return new ha({check:"less_than",...M(t),value:e,inclusive:!0})}function Ft(e,t){return new ga({check:"greater_than",...M(t),value:e,inclusive:!1})}function ht(e,t){return new ga({check:"greater_than",...M(t),value:e,inclusive:!0})}function hc(e){return Ft(0,e)}function gc(e){return Ht(0,e)}function Cc(e){return mt(0,e)}function kc(e){return ht(0,e)}function Sn(e,t){return new dd({check:"multiple_of",...M(t),value:e})}function Pn(e,t){return new md({check:"max_size",...M(t),maximum:e})}function Bt(e,t){return new hd({check:"min_size",...M(t),minimum:e})}function nr(e,t){return new gd({check:"size_equals",...M(t),size:e})}function rr(e,t){return new Cd({check:"max_length",...M(t),maximum:e})}function nn(e,t){return new kd({check:"min_length",...M(t),minimum:e})}function or(e,t){return new yd({check:"length_equals",...M(t),length:e})}function Hr(e,t){return new bd({check:"string_format",format:"regex",...M(t),pattern:e})}function Fr(e){return new vd({check:"string_format",format:"lowercase",...M(e)})}function Br(e){return new wd({check:"string_format",format:"uppercase",...M(e)})}function Ur(e,t){return new xd({check:"string_format",format:"includes",...M(t),includes:e})}function Gr(e,t){return new Id({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Kr(e,t){return new _d({check:"string_format",format:"ends_with",...M(t),suffix:e})}function yc(e,t,n){return new Sd({check:"property",property:e,schema:t,...M(n)})}function qr(e,t){return new Pd({check:"properties",shape:e,...M(t)})}function Jr(e,t){return new Ld({check:"mime_type",mime:e,...M(t)})}function Ot(e){return new Md({check:"overwrite",tx:e})}function Yr(e){return Ot(t=>t.normalize(e))}function Xr(){return Ot(e=>e.trim())}function Qr(){return Ot(e=>e.toLowerCase())}function eo(){return Ot(e=>e.toUpperCase())}function to(){return Ot(e=>pl(e))}function Lp(e,t,n){return new e({type:"array",element:t,...M(n)})}function oI(e,t,n){return new e({type:"union",options:t,...M(n)})}function iI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function sI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...M(r)})}function aI(e,t,n){return new e({type:"intersection",left:t,right:n})}function cI(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,...M(i)})}function uI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...M(r)})}function lI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...M(r)})}function dI(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function pI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...M(n)})}function fI(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function mI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function Mp(e,t){return new e({type:"file",...M(t)})}function hI(e,t){return new e({type:"transform",transform:t})}function gI(e,t){return new e({type:"optional",innerType:t})}function CI(e,t){return new e({type:"nullable",innerType:t})}function kI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Uo(n)}})}function yI(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function bI(e,t){return new e({type:"success",innerType:t})}function vI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:yl(n)})}function wI(e,t,n){return new e({type:"pipe",in:t,out:n})}function xI(e,t){return new e({type:"readonly",innerType:t})}function II(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function _I(e,t){return new e({type:"lazy",getter:t})}function SI(e,t){return new e({type:"promise",innerType:t})}function Rp(e,t,n){let r=M(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function Tp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function $p(e,t){let n=_0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Er(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(Er(i))}},e(r.value,r)),t);return n}function _0(e,t){let n=new pe({check:"custom",...M(t)});return n._zod.check=e,n}function Ap(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=je.get(n)??{};je.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Ep(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=je.get(n)??{};je.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Dp(e,t){let n=M(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(m=>typeof m=="string"?m.toLowerCase():m),o=o.map(m=>typeof m=="string"?m.toLowerCase():m));let i=new Set(r),s=new Set(o),a=e.Codec??mi,c=e.Boolean??pi,u=e.String??Yn,l=new u({type:"string",error:n.error}),p=new c({type:"boolean",error:n.error}),f=new a({type:"pipe",in:l,out:p,transform:((m,h)=>{let g=m;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:f,continue:!1}),{})}),reverseTransform:((m,h)=>m===!0?r[0]||"true":o[0]||"false"),error:n.error});return f._zod.bag.truthy=r,f._zod.bag.falsy=o,f._zod.bag.case=n.case??"insensitive",f}function ir(e,t,n,r={}){let o=M(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 _i(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Ze(e,r,n[r]);return e}function Ln(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??je,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 $e(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 ue(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 f=s.schema,m=t.processors[o.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);m(e,t,f,l)}let p=e._zod.parent;p&&(s.ref||(s.ref=p),ue(p,t,l),t.seen.get(p).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&_i(s.schema,c),t.io==="input"&&Qe(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 S0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Mn(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 p=e.external.registry.get(s[0])?.id,f=e.external.uri??(h=>h);if(p)return{ref:f(p)};let m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${f("__shared")}#/${a}/${S0(m)}`}}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+S0(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 p in l)delete l[p];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 V(e){return`v${e.varCounter++}`}function tx(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,nx(e,t,n,r)}}function nx(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,tx),s=V(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var rx=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function ox(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&&!rx.has(a.check))throw new Q('check with a custom "when" condition');switch(a.check){case"greater_than":ix(e,t,a,i);break;case"less_than":sx(e,t,a,i);break;case"multiple_of":ax(e,t,a,i);break;case"number_format":x0(e,a,i);break;case"min_length":{let c=Jn(a.minimum,"min_length"),u=q1(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=Jn(a.maximum,"max_length"),u=q1(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=Jn(a.length,"length_equals"),u=q1(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 < ${Jn(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${Jn(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${Jn(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=I0(e,t,a,i);break;case"custom":i=fx(e,t,s,i);break;case"bigint_format":cx(e,a,i);break;case"mime_type":ux(e,t,a,i);break;case"property":dx(e,t,a,i);break;case"properties":lx(e,t,a,i);break;case"overwrite":{let c=V(t);px(e,t,s,i,c),i=c;break}default:throw new Q(`check type ${a.check}`)}}return i}function q1(e,t,n,r){let o=U(t,Gn),i=V(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function Jn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Q(`${t} bound of type ${typeof e}`);return`${e}`}function w0(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 ix(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${w0(t,n.value)}) return INVALID;`)}function sx(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${w0(t,n.value)}) return INVALID;`)}function ax(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}, ${Jn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function x0(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 cx(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 ux(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 lx(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=V(t);e.write(`const ${a} = ${r}[${s}];`),Ue(e,t,o[i],a,!1)}}function dx(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ke(e,t,n.schema,o)}function px(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 Rt("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function Y1(){throw new ct}function Q1(e){this.issues.push(e)}function fx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Rt("z.compile: async .refine() predicates are not supported");let i=Qn(t,o.fn),s=U(t,Y1),a=V(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 Rt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:Q1};return i(l)instanceof Promise&&Y1(),l.issues.length===0?l.value:et}),c=V(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 mx=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 I0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,ci);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,Ia);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,La),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,ai);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,wa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,_a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,Sa);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,ya),l=U(t,n),d=V(t),m=V(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,ba);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,va);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let f=V(t),h=s.normalize?`${m}.href`:`${U(t,si)}(${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(mx.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=hx(e,t,n,r,a);break;case"number":c=gx(e,n,r);break;case"boolean":c=Cx(e,r);break;case"bigint":c=kx(e,n,r);break;case"symbol":c=yx(e,r);break;case"undefined":c=bx(e,r);break;case"null":c=vx(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=wx(e,r);break;case"nan":c=xx(e,r);break;case"date":c=Ix(e,r);break;case"object":c=_x(e,t,n,r,a);break;case"optional":c=Sx(e,t,n,r,a);break;case"nullable":c=Mx(e,t,n,r,a);break;case"array":c=Rx(e,t,n,r,a);break;case"literal":c=Tx(e,t,n,r);break;case"enum":c=$x(e,t,n,r);break;case"readonly":{let u=y0(e,t,n,r),l=V(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":y0(e,t,n,r),c="true";break;case"default":case"prefault":c=Ax(e,t,n,r);break;case"nonoptional":c=Dx(e,t,n,r);break;case"tuple":c=Ex(e,t,n,r);break;case"union":c=Nx(e,t,n,r);break;case"intersection":c=Zx(e,t,n,r);break;case"record":c=jx(e,t,n,r);break;case"map":c=Vx(e,t,n,r);break;case"set":c=Fx(e,t,n,r);break;case"file":c=Hx(e,r);break;case"template_literal":c=Bx(e,t,n,r);break;case"lazy":c=Ux(e,t,n,r);break;case"pipe":c=Gx(e,t,n,r);break;case"custom":c=Kx(e,t,n,r);break;case"transform":c=Jx(e,t,n,r);break;case"catch":c=Yx(e,t,n,r);break;default:throw new Q(`schema type ${s}`)}return c===null?null:ox(e,t,n,c)}function hx(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:I0(e,t,i,r,o)}function gx(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&&x0(e,{format:r.format},n),n}function Cx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function kx(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 yx(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function bx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function vx(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function wx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function xx(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Ix(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function _x(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 b=m[y],$=l(y),v=V(t);if(e.write(`const ${v} = ${r}[${$}];`),b._zod.optin!==void 0){let R=V(t);e.write(`let ${R} = (() => {`),e.indented(T=>{let H=Ue(T,t,b,v);T.write(`return ${H};`)}),e.write("})();"),b._zod.optout==="optional"?(e.write(`if (${R} === INVALID) {`),e.indented(T=>{T.write(`if (${$} in ${r}) return INVALID;`),T.write(`${R} = undefined;`)}),e.write("}")):e.write(`if (${R} === INVALID) return INVALID;`),f.set(y,R)}else{Px(b)&&e.write(`if (!(${$} in ${r})) return INVALID;`);let R=Ue(e,t,b,v,o);R!==null&&f.set(y,R)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let b=a.map($=>`k !== ${Xe($)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented($=>{$.write(`if (${b}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let k=V(t),I=u.some(y=>k0(m[y])||J1(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(b=>{b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`);let $=V(t);b.write(`const ${$} = ${r}[k];`),Ue(b,t,h,$,!1)}),e.write("}")}return null}if(I){e.write(`const ${k} = {};`);for(let y of u){let b=l(y),$=f.get(y);J1(m[y])?e.write(`if (${b} in ${r}) ${k}[${b}] = ${$};`):k0(m[y])?e.write(`if (${$} !== undefined || ${b} in ${r}) ${k}[${b}] = ${$};`):e.write(`${k}[${b}] = ${$};`)}}else{let y=u.map(b=>`${d(b)}: ${f.get(b)}`).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(b=>{if(b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`),g==="passthrough")b.write(`${k}[k] = ${r}[k];`);else{let $=V(t);b.write(`const ${$} = ${r}[k];`);let v=Ue(b,t,h,$);b.write(`${k}[k] = ${v};`)}}),e.write("}")}return k}function Sx(e,t,n,r,o=!0){let i=n._zod.def;if(Lx(n))return ke(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=V(t),c=V(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?V(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 Lx(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Px(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 J1(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function k0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&zr(e)}function zr(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?zr(t.innerType):!0;case"union":return t.options?t.options.some(zr):!0;case"intersection":return!t.left||!t.right||zr(t.left)||zr(t.right);case"pipe":return t.out?zr(t.out):!0;default:return!0}}function Mx(e,t,n,r,o=!0){let i=n._zod.def,s=o?V(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 Rx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?V(t):null,a=V(t),c=V(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 Tx(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 $x(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 y0(e,t,n,r){let o=n._zod.def;return ke(e,t,o.innerType,r)}function Ax(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=V(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ke(e,t,o.innerType,u)}let a=V(t);if(s){let c=U(t,s),u=U(t,Ho);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 Dx(e,t,n,r){let o=n._zod.def,i=ke(e,t,o.innerType,r),s=V(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function Ex(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=b0(i,"optin"),c=b0(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=V(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=V(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(J1(d)){f.write(`${u}.length = ${l};`);return}let h=V(t),g=V(t);f.write(`const ${h} = undefined;`),f.write(`const ${g} = (() => {`),f.indented(k=>{let I=Ue(k,t,d,h);k.write(`return ${I};`)}),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=V(t);e.write(`const ${m} = ${r}[${l}];`);let f=Ue(e,t,d,m);e.write(`${u}[${l}] = ${f};`)}}if(s){let l=V(t),d=V(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 b0(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 Nx(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return Ox(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=V(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 Ox(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=V(t),i=V(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=>zx(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 zx(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 Zx(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,Nr),c=V(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function jx(e,t,n,r){let o=n._zod.def,i=U(t,kt);e.write(`if (!${i}(${r})) return INVALID;`);let s=V(t),a=V(t),c=V(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 I=U(t,g),y=ke(e,t,o.keyType,I),b=V(t);e.write(`const ${b} = ${r}[${Wx(t,k)}];`);let $=Ue(e,t,o.valueType,b);e.write(`${s}[${y}] = ${$};`)}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=Fa(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),k=U(t,Qt),I=V(t);return v0(e,t,r,a,y=>{y.write(`let ${I} = ${g}(${a});`),y.write(`if (${I} === INVALID && typeof ${a} === "string" && ${k}.test(${a})) ${I} = ${g}(Number(${a}));`),f?y.write(`if (${I} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${I} === INVALID) return INVALID;`),y.write(`if (${I} === "__proto__") continue;`);let b=V(t);y.write(`const ${b} = ${r}[${a}];`);let $=Ue(y,t,o.valueType,b);y.write(`${s}[${I}] = ${$};`)}),s}return v0(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 v0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=V(t),c=V(t),u=V(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 Wx(e,t){return typeof t=="string"?Xe(t):U(e,t)}function Vx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=V(t),s=V(t),a=V(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 Fx(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=V(t),s=V(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 Hx(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Bx(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 Ux(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=V(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function Gx(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 Rt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=Qn(t,l=>{let d={value:l,issues:[],addIssue:Q1},m=s(l,d);return m instanceof Promise?et:d.issues.length===0?m:et}),u=V(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 Kx(e,t,n,r){let o=n._zod.def;if(o.fn){if(er(o.fn))throw new Rt("z.compile: async custom predicates are not supported");let i=Qn(t,o.fn),s=U(t,Y1),a=V(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 Yx(e,t,n,r){let o=n._zod.def;if(!o.catchValue[Ys])throw new Q("catch with a callback (only a constant catch value compiles)",!1);let i=V(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 Jx(e,t,n,r){let o=n._zod.def;if(o.transform){if(er(o.transform))throw new Rt("z.compile: async transforms are not supported");let i=o.transform,a=Qn(t,u=>{let l={value:u,issues:[],addIssue:Q1},d=i(u,l);return d instanceof Promise?et:l.issues.length===0?d:et}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Ha(e){return e.checks&&(e.checks=[...e.checks]),e}function ep(e,t){return new e(Ha({type:"string",...M(t)}))}function tp(e,t){return new e(Ha({type:"string",coerce:!0,...M(t)}))}function Ba(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function Ua(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function Ga(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function Ka(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function qa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function Ya(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function ki(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function Ja(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function Xa(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function Qa(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function ec(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function tc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function nc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function rc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function oc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function ic(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function np(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function sc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function ac(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function cc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function uc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function lc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function rp(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...M(t)})}function op(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...M(t)})}function dc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var ip={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function yi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function bi(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function vi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function wi(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function sp(e,t){return new e(Ha({type:"number",checks:[],...M(t)}))}function ap(e,t){return new e(Ha({type:"number",coerce:!0,checks:[],...M(t)}))}function cp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function up(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function dp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function pp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function fp(e,t){return new e({type:"boolean",...M(t)})}function mp(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function hp(e,t){return new e({type:"bigint",...M(t)})}function gp(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function Cp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function kp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function yp(e,t){return new e({type:"symbol",...M(t)})}function bp(e,t){return new e({type:"undefined",...M(t)})}function vp(e,t){return new e({type:"null",...M(t)})}function wp(e){return new e({type:"any"})}function xp(e){return new e({type:"unknown"})}function Ip(e,t){return new e({type:"never",...M(t)})}function _p(e,t){return new e({type:"void",...M(t)})}function Sp(e,t){return new e({type:"date",...M(t)})}function Lp(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Pp(e,t){return new e({type:"nan",...M(t)})}function Wt(e,t){return new pa({check:"less_than",...M(t),value:e,inclusive:!1})}function ft(e,t){return new pa({check:"less_than",...M(t),value:e,inclusive:!0})}function Vt(e,t){return new fa({check:"greater_than",...M(t),value:e,inclusive:!1})}function mt(e,t){return new fa({check:"greater_than",...M(t),value:e,inclusive:!0})}function pc(e){return Vt(0,e)}function fc(e){return Wt(0,e)}function mc(e){return ft(0,e)}function hc(e){return mt(0,e)}function In(e,t){return new pd({check:"multiple_of",...M(t),value:e})}function _n(e,t){return new hd({check:"max_size",...M(t),maximum:e})}function Ft(e,t){return new gd({check:"min_size",...M(t),minimum:e})}function tr(e,t){return new Cd({check:"size_equals",...M(t),size:e})}function nr(e,t){return new kd({check:"max_length",...M(t),maximum:e})}function en(e,t){return new yd({check:"min_length",...M(t),minimum:e})}function rr(e,t){return new bd({check:"length_equals",...M(t),length:e})}function Zr(e,t){return new vd({check:"string_format",format:"regex",...M(t),pattern:e})}function jr(e){return new wd({check:"string_format",format:"lowercase",...M(e)})}function Wr(e){return new xd({check:"string_format",format:"uppercase",...M(e)})}function Vr(e,t){return new Id({check:"string_format",format:"includes",...M(t),includes:e})}function Fr(e,t){return new _d({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Hr(e,t){return new Sd({check:"string_format",format:"ends_with",...M(t),suffix:e})}function gc(e,t,n){return new Ld({check:"property",property:e,schema:t,...M(n)})}function Br(e,t){return new Pd({check:"properties",shape:e,...M(t)})}function Ur(e,t){return new Md({check:"mime_type",mime:e,...M(t)})}function Tt(e){return new Rd({check:"overwrite",tx:e})}function Gr(e){return Tt(t=>t.normalize(e))}function Kr(){return Tt(e=>e.trim())}function qr(){return Tt(e=>e.toLowerCase())}function Yr(){return Tt(e=>e.toUpperCase())}function Jr(){return Tt(e=>fl(e))}function Mp(e,t,n){return new e({type:"array",element:t,...M(n)})}function Xx(e,t,n){return new e({type:"union",options:t,...M(n)})}function Qx(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function eI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...M(r)})}function tI(e,t,n){return new e({type:"intersection",left:t,right:n})}function nI(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,...M(i)})}function rI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...M(r)})}function oI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...M(r)})}function iI(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function sI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...M(n)})}function aI(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function cI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function Rp(e,t){return new e({type:"file",...M(t)})}function uI(e,t){return new e({type:"transform",transform:t})}function lI(e,t){return new e({type:"optional",innerType:t})}function dI(e,t){return new e({type:"nullable",innerType:t})}function pI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Ho(n)}})}function fI(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function mI(e,t){return new e({type:"success",innerType:t})}function hI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:bl(n)})}function gI(e,t,n){return new e({type:"pipe",in:t,out:n})}function CI(e,t){return new e({type:"readonly",innerType:t})}function kI(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function yI(e,t){return new e({type:"lazy",getter:t})}function bI(e,t){return new e({type:"promise",innerType:t})}function Tp(e,t,n){let r=M(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function $p(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Ap(e,t){let n=_0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Rr(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(Rr(i))}},e(r.value,r)),t);return n}function _0(e,t){let n=new pe({check:"custom",...M(t)});return n._zod.check=e,n}function Dp(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=Ve.get(n)??{};Ve.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Ep(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=Ve.get(n)??{};Ve.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Np(e,t){let n=M(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??pi,c=e.Boolean??li,u=e.String??Yn,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=M(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 xi(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??Ve,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&&xi(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 S0(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}/${S0(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+S0(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 M0(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;M0(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 R0=new Set(["type","properties","required","additionalProperties"]),P0=["oneOf","anyOf"];function L0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Np(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!R0.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]??L0(u);l!=null&&(a.some(p=>JSON.stringify(p)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Np(a)??{allOf:a};Ze(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=L0(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 PI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of R0)if(o in e)return;let n=t.filter(o=>P0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Np(t);else{let o=n[0],i=P0.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=>Np([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,_i(e,r))}function Rn(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},p=c.ref;if(c.ref=null,p){r(p);let m=e.seen.get(p),h=m.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)):_i(u,h),_i(u,l),a._zod.parent===p)for(let C in u)C==="$ref"||C==="allOf"||C in l||delete u[C];if(h.$ref&&m.def)for(let C in u)C==="$ref"||C==="allOf"||C in m.def&&JSON.stringify(u[C])===JSON.stringify(m.def[C])&&delete u[C]}let f=a._zod.parent;if(f&&f!==p){r(f);let m=e.seen.get(f);if(m?.schema.$ref&&(u.$ref=m.schema.$ref,m.def))for(let h in u)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(u[h])===JSON.stringify(m.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())M0(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 p=a.get(l);p?p.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])PI(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)}_i(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,Ze(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:no(t,"input",e.processors),output:no(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Qe(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 Qe(r.element,n);if(r.type==="set")return Qe(r.valueType,n);if(r.type==="lazy")return Qe(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 Qe(r.innerType,n);if(r.type==="intersection")return Qe(r.left,n)||Qe(r.right,n);if(r.type==="record"||r.type==="map")return Qe(r.keyType,n)||Qe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Qe(r.in,n)||Qe(r.out,n);if(r.type==="object"){for(let o in r.shape)if(Qe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(Qe(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(Qe(o,n))return!0;return!!(r.rest&&Qe(r.rest,n))}return!1}var Op=(e,t={})=>n=>{let r=Ln({...n,processors:t});return ue(e,r),Mn(r,e),Rn(r,e)},no=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Ln({...o??{},target:i,io:t,processors:n});return ue(e,s),Mn(s,e),Rn(s,e)};var ro=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},oo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},T0=(e,t)=>{ro(e,"minimum",t),oo(e,"maximum",t)},D0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},N0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},O0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},z0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},$0=(e,t)=>ro(e,"minimum",t.minimum),A0=(e,t)=>oo(e,"maximum",t.maximum),E0=e=>(t,n)=>{z0(t,n.format);let[r,o]=e[n.format];ro(t,"minimum",r),oo(t,"maximum",o)},LI={greater_than:(e,t)=>ro(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>oo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>D0(e,t.value),number_format:E0(Ko),bigint_format:E0(qo),min_length:$0,max_length:A0,length_equals:(e,t)=>T0(e,t.length),min_size:$0,max_size:A0,size_equals:(e,t)=>T0(e,t.size),string_format:(e,t)=>{z0(e,t.format),t.pattern&&N0(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)=>O0(e,t.mime)};function Ae(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&&ro(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&ro(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&oo(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&oo(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&D0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&O0(t,o.mime);for(let i of o.patterns??[])N0(t,i);return t}var MI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},RI=new Map([[Sa,Bl],[di,Ul]]),Z0=e=>RI.get(e)??e,jp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Ae(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=MI[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let p=[...c].map(Z0);p.length===1?o.pattern=p[0].source:p.length>1&&(o.allOf=[...p.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},Wp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Ae(e);o.type=l?"integer":"number";let p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";if(p?m?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),f?m?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let w of a)Number.isFinite(w)&&w!==0?h.add(Math.abs(w)):$e(e,t,o,r,`A multipleOf divisor of ${w} cannot be represented in JSON Schema`);let[g,...C]=h;g!==void 0&&(o.multipleOf=g),C.length&&(o.allOf=[...o.allOf??[],...C.map(w=>({multipleOf:w}))])}},Vp=(e,t,n,r)=>{n.type="boolean"},Hp=(e,t,n,r)=>{$e(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Fp=(e,t,n,r)=>{$e(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Bp=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Up=(e,t,n,r)=>{$e(e,t,n,r,"Undefined cannot be represented in JSON Schema")},Gp=(e,t,n,r)=>{$e(e,t,n,r,"Void cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{n.not={}},qp=(e,t,n,r)=>{},Jp=(e,t,n,r)=>{},Yp=(e,t,n,r)=>{$e(e,t,n,r,"Date cannot be represented in JSON Schema")},Xp=(e,t,n,r)=>{let o=e._zod.def,i=Rr(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},Qp=(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($e(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if($e(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},ef=(e,t,n,r)=>{$e(e,t,n,r,"NaN cannot be represented in JSON Schema")},tf=(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},nf=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Ae(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})))},rf=(e,t,n,r)=>{n.type="boolean"},of=(e,t,n,r)=>{$e(e,t,n,r,"Custom types cannot be represented in JSON Schema")},sf=(e,t,n,r)=>{$e(e,t,n,r,"Function types cannot be represented in JSON Schema")},af=(e,t,n,r)=>{$e(e,t,n,r,"Transforms cannot be represented in JSON Schema")},cf=(e,t,n,r)=>{$e(e,t,n,r,"Map cannot be represented in JSON Schema")},uf=(e,t,n,r)=>{$e(e,t,n,r,"Set cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Ae(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=ue(i.element,t,{...r,path:[...r.path,"items"]})};function Si(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Si(t.out):t.type==="catch"?Si(t.innerType):e._zod.optin}var df=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&$e(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)Ze(o.properties,u,ue(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"?Si(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=ue(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},vc=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>ue(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},pf=(e,t,n,r)=>{let o=e._zod.def,i=ue(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=ue(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)},ff=(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,C)=>ue(g,t,{...r,path:[...r.path,s,C]})),u=i.rest?ue(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"?Si(g)!==void 0:g._zod.optout==="optional"))break;l--}let p=i.items.length,f=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,f?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),f&&(o.maxItems=p)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),f&&(o.maxItems=p)):(o.items=c,f?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),f&&(o.maxItems=p));let{minimum:m,maximum:h}=Ae(e);typeof m=="number"&&(o.minItems=m),typeof h=="number"&&(o.maxItems=h)};function zp(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=zp(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let C=g.map(w=>zp(e,w,n));C.some((w,k)=>w!==g[k])&&(t={...t,[h]:C})}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:p,id:f,...m}=t;return m.enum?m.enum=m.enum.map(h=>typeof h=="number"?String(h):h):typeof m.const=="number"&&(m.const=String(m.const)),o&&(m.type="string",i||(m.pattern=(r.includes("number")?tn:oi).source)),m}var Zp=new WeakMap;function TI(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 Zp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=zp(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 mf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Ae(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=ue(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let p of a)Ze(o.patternProperties,Z0(p).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=ue(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=Zp.get(t);l||(l=[],Zp.set(t,l),t.deferred.push(()=>TI(t))),l.push(e)}o.additionalProperties=ue(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&Si(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(p=>typeof p=="string"||typeof p=="number");l.length>0&&(o.required=l.map(String))}},hf=(e,t,n,r)=>{let o=e._zod.def,i=ue(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"}]},gf=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Cf=Symbol();function j0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?($e(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Cf):JSON.parse(s)}var kf=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=j0(o.defaultValue,e,t,n,r);s!==Cf&&(n.default=s)},yf=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=j0(o.defaultValue,e,t,n,r);s!==Cf&&(n._prefault=s)},bf=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{$e(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},vf=(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;ue(s,t,r);let a=t.seen.get(e);a.ref=s},wf=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},xf=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},wc=(e,t,n,r)=>{let o=e._zod.def;ue(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},If=(e,t,n,r)=>{let o=e._zod.innerType;ue(o,t,r);let i=t.seen.get(e);i.ref=o},bc={string:jp,number:Wp,boolean:Vp,bigint:Hp,symbol:Fp,null:Bp,undefined:Up,void:Gp,never:Kp,any:qp,unknown:Jp,date:Yp,enum:Xp,literal:Qp,nan:ef,template_literal:tf,file:nf,success:rf,custom:of,function:sf,transform:af,map:cf,set:uf,array:lf,object:df,union:vc,intersection:pf,tuple:ff,record:mf,nullable:hf,nonoptional:gf,default:kf,prefault:yf,catch:bf,pipe:vf,readonly:wf,promise:xf,optional:wc,lazy:If};function xc(e,t){if("_idmap"in e){let r=e,o=Ln({...t,processors:bc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;ue(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;Mn(o,l),Ze(s,u,Rn(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=Ln({...t,processors:bc});return ue(e,n),Mn(n,e),Rn(n,e)}var Ic=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=Ln({processors:bc,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 ue(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,Mn(this.ctx,t);let r=Rn(this.ctx,t),{"~standard":o,...i}=r;return i}};var W0={};var fo={};$t(fo,{ZodAny:()=>Uf,ZodArray:()=>Jf,ZodBase64:()=>Hc,ZodBase64URL:()=>Fc,ZodBigInt:()=>lo,ZodBigIntFormat:()=>Gc,ZodBoolean:()=>uo,ZodCIDRv4:()=>Wc,ZodCIDRv6:()=>Vc,ZodCUID:()=>Ec,ZodCUID2:()=>Dc,ZodCatch:()=>C2,ZodCodec:()=>Ni,ZodCreditCard:()=>zf,ZodCustom:()=>Oi,ZodCustomStringFormat:()=>ur,ZodDate:()=>Ri,ZodDefault:()=>d2,ZodDiscriminatedUnion:()=>Xf,ZodE164:()=>Bc,ZodEmail:()=>Rc,ZodEmoji:()=>$c,ZodEnum:()=>so,ZodExactOptional:()=>Yc,ZodFile:()=>a2,ZodFunction:()=>P2,ZodGUID:()=>Tc,ZodIBAN:()=>Zf,ZodIPv4:()=>Zc,ZodIPv6:()=>jc,ZodISODate:()=>$n,ZodISODateTime:()=>Tn,ZodISODuration:()=>En,ZodISOTime:()=>An,ZodInstanceOf:()=>R2,ZodIntersection:()=>Qf,ZodJWT:()=>Uc,ZodKSUID:()=>zc,ZodLazy:()=>I2,ZodLiteral:()=>s2,ZodMAC:()=>Of,ZodMap:()=>o2,ZodNaN:()=>y2,ZodNanoID:()=>Ac,ZodNever:()=>Kf,ZodNonOptional:()=>Xc,ZodNull:()=>Ff,ZodNullable:()=>l2,ZodNumber:()=>co,ZodNumberFormat:()=>lr,ZodObject:()=>$i,ZodOptional:()=>Ei,ZodPipe:()=>Di,ZodPrefault:()=>f2,ZodPreprocess:()=>b2,ZodPromise:()=>S2,ZodReadonly:()=>v2,ZodRecord:()=>io,ZodSet:()=>i2,ZodString:()=>ao,ZodStringFormat:()=>le,ZodSuccess:()=>g2,ZodSymbol:()=>Vf,ZodTemplateLiteral:()=>x2,ZodTransform:()=>c2,ZodTuple:()=>t2,ZodType:()=>J,ZodULID:()=>Nc,ZodURL:()=>Mi,ZodUUID:()=>Ut,ZodUndefined:()=>Hf,ZodUnion:()=>Ai,ZodUnknown:()=>Gf,ZodVoid:()=>qf,ZodXID:()=>Oc,ZodXor:()=>Yf,_ZodString:()=>Mc,_default:()=>p2,_function:()=>Q9,any:()=>R9,array:()=>Ti,base64:()=>l9,base64url:()=>d9,bigint:()=>_9,boolean:()=>Wf,catch:()=>k2,check:()=>e4,cidrv4:()=>c9,cidrv6:()=>u9,codec:()=>q9,creditCard:()=>f9,cuid:()=>e9,cuid2:()=>t9,currencyCode:()=>y9,custom:()=>t4,date:()=>$9,describe:()=>n4,discriminatedUnion:()=>z9,e164:()=>p9,email:()=>F0,emoji:()=>X0,enum:()=>qc,exactOptional:()=>u2,file:()=>B9,float32:()=>v9,float64:()=>w9,function:()=>Q9,guid:()=>B0,hash:()=>b9,hex:()=>k9,hostname:()=>C9,httpUrl:()=>Y0,iban:()=>m9,instanceof:()=>o4,int:()=>Pc,int32:()=>x9,int64:()=>S9,intersection:()=>e2,invertCodec:()=>J9,ipv4:()=>i9,ipv6:()=>a9,json:()=>s4,jwt:()=>h9,keyof:()=>A9,ksuid:()=>o9,lazy:()=>_2,literal:()=>F9,looseObject:()=>N9,looseRecord:()=>j9,mac:()=>s9,map:()=>W9,meta:()=>r4,nan:()=>K9,nanoid:()=>Q0,nativeEnum:()=>H9,never:()=>Kc,nonoptional:()=>h2,null:()=>Bf,nullable:()=>Li,nullish:()=>U9,number:()=>jf,object:()=>E9,optional:()=>ar,partialRecord:()=>Z9,pipe:()=>Lc,prefault:()=>m2,preprocess:()=>a4,promise:()=>X9,readonly:()=>w2,record:()=>r2,refine:()=>L2,set:()=>V9,strictObject:()=>D9,string:()=>Pi,stringFormat:()=>g9,stringbool:()=>i4,success:()=>G9,superRefine:()=>M2,symbol:()=>L9,templateLiteral:()=>Y9,transform:()=>Jc,tuple:()=>n2,uint32:()=>I9,uint64:()=>P9,ulid:()=>n9,undefined:()=>M9,union:()=>po,unknown:()=>sr,url:()=>J0,uuid:()=>U0,uuidv4:()=>G0,uuidv6:()=>K0,uuidv7:()=>q0,void:()=>T9,xid:()=>r9,xor:()=>O9});var _c={};$t(_c,{endsWith:()=>Kr,gt:()=>Ft,gte:()=>ht,includes:()=>Ur,length:()=>or,lowercase:()=>Fr,lt:()=>Ht,lte:()=>mt,maxLength:()=>rr,maxSize:()=>Pn,mime:()=>Jr,minLength:()=>nn,minSize:()=>Bt,multipleOf:()=>Sn,negative:()=>gc,nonnegative:()=>kc,nonpositive:()=>Cc,normalize:()=>Yr,overwrite:()=>Ot,positive:()=>hc,properties:()=>qr,property:()=>yc,regex:()=>Hr,size:()=>nr,slugify:()=>to,startsWith:()=>Gr,toLowerCase:()=>Qr,toUpperCase:()=>eo,trim:()=>Xr,uppercase:()=>Br});var V0=new WeakSet([Object.prototype,Error.prototype]);function Sc(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 H0=(e,t)=>{_l.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);V0.has(n)||(V0.add(n),Sc(n,"format",r=>o=>ei(r,o)),Sc(n,"flatten",r=>o=>Qo(r,o)),Sc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Tr,2)}),Sc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Tr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},AI=y("ZodError",H0),ct=y("ZodError",H0,void 0,{Parent:Error});var _f=Dr(ct),Sf=Nr(ct),Pf=Or(ct),Lf=zr(ct),Mf=ra(ct),Rf=oa(ct),Tf=ia(ct),$f=sa(ct),Af=aa(ct),Ef=ca(ct),Df=ua(ct),Nf=la(ct);function DI(){Ne.localeError||ve(Va())}function cr(){Ne.memoizer||ve({memoizer:ki()})}var J=y("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(N.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 ae(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(L2(e,t))},superRefine(e,t){return this.check(M2(e,t))},overwrite(e){return this.check(Ot(e))},optional(){return ar(this)},exactOptional(){return u2(this)},nullable(){return Li(this)},nullish(){return ar(Li(this))},nonoptional(e){return h2(this,e)},array(){return Ti(this)},or(e){return po([this,e])},and(e){return e2(this,e)},transform(e){return Lc(this,Jc(e))},default(e){return p2(this,e)},prefault(e){return m2(this,e)},catch(e){return k2(this,e)},pipe(e){return Lc(this,e)},readonly(){return w2(this)},describe(e){let t=this.clone();return je.add(t,{description:e}),t},meta(...e){if(e.length===0)return je.get(this);let t=this.clone();return je.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 N.hide(this,"~standard",{...va(this),jsonSchema:{input:no(this,"input"),output:no(this,"output")}})},set"~standard"(e){N.own(this,"~standard",e)},parse:function e(t,n){return _f(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Sf(this,t,n,{callee:e})},safeParse(e,t){return Pf(this,e,t)},async safeParseAsync(e,t){return Lf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){N.own(this,"spa",e)},validate(e,t){return ti(this,e,t)},validateAsync(e,t){return ni(this,e,t)},encode:function e(t,n){return Mf(this,t,n,{callee:e})},decode:function e(t,n){return Rf(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Tf(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await $f(this,t,n,{callee:e})},safeEncode(e,t){return Af(this,e,t)},safeDecode(e,t){return Ef(this,e,t)},async safeEncodeAsync(e,t){return Df(this,e,t)},async safeDecodeAsync(e,t){return Nf(this,e,t)},toJSONSchema(e){return Op(this,{})(e)},get description(){return je.get(this)?.description},get _def(){return this._zod.def}}),Mc=y("_ZodString",(e,t)=>{Yn.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jp(e,n,r,o)},N.derived({format:e=>Ae(e).format??null,minLength:e=>Ae(e).minimum??null,maxLength:e=>Ae(e).maximum??null},{regex(...e){return this.check(Hr(...e))},includes(...e){return this.check(Ur(...e))},startsWith(...e){return this.check(Gr(...e))},endsWith(...e){return this.check(Kr(...e))},min(...e){return this.check(nn(...e))},max(...e){return this.check(rr(...e))},length(...e){return this.check(or(...e))},nonempty(...e){return this.check(nn(1,...e))},lowercase(e){return this.check(Fr(e))},uppercase(e){return this.check(Br(e))},trim(){return this.check(Xr())},normalize(...e){return this.check(Yr(...e))},toLowerCase(){return this.check(Qr())},toUpperCase(){return this.check(eo())},slugify(){return this.check(to())}})),ao=y("ZodString",(e,t)=>{Yn.init(e,t),Mc.init(e,t)},{email(e){return this.check(Ka(Rc,e))},url(e){return this.check(bi(Mi,e))},jwt(e){return this.check(mc(Uc,e))},emoji(e){return this.check(ec($c,e))},guid(e){return this.check(qa(Tc,e))},uuid(e){return this.check(Ja(Ut,e))},uuidv4(e){return this.check(Ya(Ut,e))},uuidv6(e){return this.check(Xa(Ut,e))},uuidv7(e){return this.check(Qa(Ut,e))},nanoid(e){return this.check(tc(Ac,e))},cuid(e){return this.check(nc(Ec,e))},cuid2(e){return this.check(rc(Dc,e))},ulid(e){return this.check(oc(Nc,e))},base64(e){return this.check(dc(Hc,e))},base64url(e){return this.check(pc(Fc,e))},xid(e){return this.check(ic(Oc,e))},ksuid(e){return this.check(sc(zc,e))},ipv4(e){return this.check(ac(Zc,e))},ipv6(e){return this.check(cc(jc,e))},cidrv4(e){return this.check(uc(Wc,e))},cidrv6(e){return this.check(lc(Vc,e))},e164(e){return this.check(fc(Bc,e))},datetime(e){return this.check(vi(Tn,e))},date(e){return this.check(wi($n,e))},time(e){return this.check(xi(An,e))},duration(e){return this.check(Ii(En,e))}});function Pi(e){return Q1(ao,e)}var le=y("ZodStringFormat",(e,t)=>{ce.init(e,t),Mc.init(e,t)}),Tn=y("ZodISODateTime",(e,t)=>{Bd.init(e,t),le.init(e,t)}),$n=y("ZodISODate",(e,t)=>{Ud.init(e,t),le.init(e,t)}),An=y("ZodISOTime",(e,t)=>{Gd.init(e,t),le.init(e,t)}),En=y("ZodISODuration",(e,t)=>{Kd.init(e,t),le.init(e,t)}),Rc=y("ZodEmail",(e,t)=>{Ed.init(e,t),le.init(e,t)});function F0(e){return Ka(Rc,e)}var Tc=y("ZodGUID",(e,t)=>{$d.init(e,t),le.init(e,t)});function B0(e){return qa(Tc,e)}var Ut=y("ZodUUID",(e,t)=>{Ad.init(e,t),le.init(e,t)});function U0(e){return Ja(Ut,e)}function G0(e){return Ya(Ut,e)}function K0(e){return Xa(Ut,e)}function q0(e){return Qa(Ut,e)}var Mi=y("ZodURL",(e,t)=>{Od.init(e,t),le.init(e,t)});function J0(e){return bi(Mi,e)}function Y0(e){return bi(Mi,{protocol:ri,hostname:Kl,...N.normalizeParams(e)})}var $c=y("ZodEmoji",(e,t)=>{zd.init(e,t),le.init(e,t)});function X0(e){return ec($c,e)}var Ac=y("ZodNanoID",(e,t)=>{Zd.init(e,t),le.init(e,t)});function Q0(e){return tc(Ac,e)}var Ec=y("ZodCUID",(e,t)=>{jd.init(e,t),le.init(e,t)});function e9(e){return nc(Ec,e)}var Dc=y("ZodCUID2",(e,t)=>{Wd.init(e,t),le.init(e,t)});function t9(e){return rc(Dc,e)}var Nc=y("ZodULID",(e,t)=>{Vd.init(e,t),le.init(e,t)});function n9(e){return oc(Nc,e)}var Oc=y("ZodXID",(e,t)=>{Hd.init(e,t),le.init(e,t)});function r9(e){return ic(Oc,e)}var zc=y("ZodKSUID",(e,t)=>{Fd.init(e,t),le.init(e,t)});function o9(e){return sc(zc,e)}var Zc=y("ZodIPv4",(e,t)=>{qd.init(e,t),le.init(e,t)});function i9(e){return ac(Zc,e)}var Of=y("ZodMAC",(e,t)=>{Yd.init(e,t),le.init(e,t)});function s9(e){return tp(Of,e)}var jc=y("ZodIPv6",(e,t)=>{Jd.init(e,t),le.init(e,t)});function a9(e){return cc(jc,e)}var Wc=y("ZodCIDRv4",(e,t)=>{Xd.init(e,t),le.init(e,t)});function c9(e){return uc(Wc,e)}var Vc=y("ZodCIDRv6",(e,t)=>{Qd.init(e,t),le.init(e,t)});function u9(e){return lc(Vc,e)}var Hc=y("ZodBase64",(e,t)=>{e1.init(e,t),le.init(e,t)});function l9(e){return dc(Hc,e)}var Fc=y("ZodBase64URL",(e,t)=>{t1.init(e,t),le.init(e,t)});function d9(e){return pc(Fc,e)}var Bc=y("ZodE164",(e,t)=>{n1.init(e,t),le.init(e,t)});function p9(e){return fc(Bc,e)}var zf=y("ZodCreditCard",(e,t)=>{r1.init(e,t),le.init(e,t)});function f9(e){return np(zf,e)}var Zf=y("ZodIBAN",(e,t)=>{o1.init(e,t),le.init(e,t)});function m9(e){return rp(Zf,e)}var Uc=y("ZodJWT",(e,t)=>{i1.init(e,t),le.init(e,t)});function h9(e){return mc(Uc,e)}var ur=y("ZodCustomStringFormat",(e,t)=>{s1.init(e,t),le.init(e,t)});function g9(e,t,n={}){return ir(ur,e,t,n)}function C9(e){return ir(ur,"hostname",Gl,e)}function k9(e){return ir(ur,"hex",cd,e)}function y9(e){return ir(ur,"currency_code",Jl,e)}function b9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=It[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return ir(ur,r,o,t)}var co=y("ZodNumber",(e,t)=>{Ta.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(e,n,r,o),e.isFinite=!0},N.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Ae(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Ae(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Ae(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Ae(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(Ht(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(Pc(e))},safe(e){return this.check(Pc(e))},positive(e){return this.check(Ft(0,e))},nonnegative(e){return this.check(ht(0,e))},negative(e){return this.check(Ht(0,e))},nonpositive(e){return this.check(mt(0,e))},multipleOf(e,t){return this.check(Sn(e,t))},step(e,t){return this.check(Sn(e,t))},finite(){return this}}));function jf(e){return ip(co,e)}var lr=y("ZodNumberFormat",(e,t)=>{a1.init(e,t),co.init(e,t)});function Pc(e){return ap(lr,e)}function v9(e){return cp(lr,e)}function w9(e){return up(lr,e)}function x9(e){return lp(lr,e)}function I9(e){return dp(lr,e)}var uo=y("ZodBoolean",(e,t)=>{pi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r,o)});function Wf(e){return pp(uo,e)}var lo=y("ZodBigInt",(e,t)=>{$a.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o)},N.derived({minValue:e=>Ae(e).minimum??null,maxValue:e=>Ae(e).maximum??null,format:e=>Ae(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(Ht(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(Ht(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(Sn(e,t))}}));function _9(e){return mp(lo,e)}var Gc=y("ZodBigIntFormat",(e,t)=>{c1.init(e,t),lo.init(e,t)});function S9(e){return gp(Gc,e)}function P9(e){return Cp(Gc,e)}var Vf=y("ZodSymbol",(e,t)=>{u1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fp(e,n,r,o)});function L9(e){return kp(Vf,e)}var Hf=y("ZodUndefined",(e,t)=>{l1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o)});function M9(e){return yp(Hf,e)}var Ff=y("ZodNull",(e,t)=>{d1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n,r,o)});function Bf(e){return bp(Ff,e)}var Uf=y("ZodAny",(e,t)=>{p1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o)});function R9(){return vp(Uf)}var Gf=y("ZodUnknown",(e,t)=>{f1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)});function sr(){return wp(Gf)}var Kf=y("ZodNever",(e,t)=>{m1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)});function Kc(e){return xp(Kf,e)}var qf=y("ZodVoid",(e,t)=>{h1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)});function T9(e){return Ip(qf,e)}var Ri=y("ZodDate",(e,t)=>{g1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o),e.min=(n,r)=>e.check(ht(n,r)),e.max=(n,r)=>e.check(mt(n,r))},N.derived({minDate:e=>{let{minimum:t}=Ae(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Ae(e);return t?new Date(t):null}},{}));function $9(e){return _p(Ri,e)}var Jf=y("ZodArray",(e,t)=>{cr(),C1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o),e.element=t.element},{min(e,t){return this.check(nn(e,t))},nonempty(e){return this.check(nn(1,e))},max(e,t){return this.check(rr(e,t))},length(e,t){return this.check(or(e,t))},unwrap(){return this.element}});function Ti(e,t){return Lp(Jf,e,t)}function A9(e){let t=e._zod.def.shape;return qc(Object.keys(t))}var $i=y("ZodObject",(e,t)=>{cr(),k1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),N.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return qc(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(N.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(N.mergeDefs(this._zod.def,{catchall:sr()}))},loose(){return this.clone(N.mergeDefs(this._zod.def,{catchall:sr()}))},strict(){return this.clone(N.mergeDefs(this._zod.def,{catchall:Kc()}))},strip(){return this.clone(N.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return N.extend(this,e)},safeExtend(e){return N.safeExtend(this,e)},merge(e){return N.merge(this,e)},pick(e){return N.pick(this,e)},omit(e){return N.omit(this,e)},partial(...e){return N.partial(Ei,this,e[0])},exactPartial(...e){return N.partial(Yc,this,e[0],"exactPartial")},required(...e){return N.required(Xc,this,e[0])}});function E9(e,t){let n={type:"object",shape:e??{},...N.normalizeParams(t)};return new $i(n)}function D9(e,t){return new $i({type:"object",shape:e,catchall:Kc(),...N.normalizeParams(t)})}function N9(e,t){return new $i({type:"object",shape:e,catchall:sr(),...N.normalizeParams(t)})}var Ai=y("ZodUnion",(e,t)=>{fi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vc(e,n,r,o),e.options=t.options});function po(e,t){return new Ai({type:"union",options:e,...N.normalizeParams(t)})}var Yf=y("ZodXor",(e,t)=>{Ai.init(e,t),y1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vc(e,n,r,o),e.options=t.options});function O9(e,t){return new Yf({type:"union",options:e,inclusive:!1,...N.normalizeParams(t)})}var Xf=y("ZodDiscriminatedUnion",(e,t)=>{Ai.init(e,t),v1.init(e,t)});function z9(e,t,n){return new Xf({type:"union",options:t,discriminator:e,...N.normalizeParams(n)})}var Qf=y("ZodIntersection",(e,t)=>{w1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o)});function e2(e,t){return new Qf({type:"intersection",left:e,right:t})}var t2=y("ZodTuple",(e,t)=>{cr(),Aa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(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 Ei({type:"optional",innerType:t}))})}});function n2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new t2({type:"tuple",items:e,rest:i,...N.normalizeParams(o)})}var io=y("ZodRecord",(e,t)=>{cr(),x1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function r2(e,t,n){return!t||!t._zod?new io({type:"record",keyType:Pi(),valueType:e,...N.normalizeParams(t)}):new io({type:"record",keyType:e,valueType:t,...N.normalizeParams(n)})}function Z9(e,t,n){return new io({type:"record",keyType:e,valueType:t,...N.normalizeParams(n),partial:!0})}function j9(e,t,n){return new io({type:"record",keyType:e,valueType:t,mode:"loose",...N.normalizeParams(n)})}var o2=y("ZodMap",(e,t)=>{cr(),I1.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,e.min=(...n)=>e.check(Bt(...n)),e.nonempty=n=>e.check(Bt(1,n)),e.max=(...n)=>e.check(Pn(...n)),e.size=(...n)=>e.check(nr(...n))});function W9(e,t,n){return new o2({type:"map",keyType:e,valueType:t,...N.normalizeParams(n)})}var i2=y("ZodSet",(e,t)=>{cr(),_1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o),e.min=(...n)=>e.check(Bt(...n)),e.nonempty=n=>e.check(Bt(1,n)),e.max=(...n)=>e.check(Pn(...n)),e.size=(...n)=>e.check(nr(...n))});function V9(e,t){return new i2({type:"set",valueType:e,...N.normalizeParams(t)})}var so=y("ZodEnum",(e,t)=>{S1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Xp(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 so({...t,checks:[],...N.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 so({...t,checks:[],...N.normalizeParams(o),entries:i})}});function qc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new so({type:"enum",entries:n,...N.normalizeParams(t)})}function H9(e,t){return new so({type:"enum",entries:e,...N.normalizeParams(t)})}var s2=y("ZodLiteral",(e,t)=>{P1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(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 F9(e,t){return new s2({type:"literal",values:Array.isArray(e)?e:[e],...N.normalizeParams(t)})}var a2=y("ZodFile",(e,t)=>{L1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o),e.min=(n,r)=>e.check(Bt(n,r)),e.max=(n,r)=>e.check(Pn(n,r)),e.mime=(n,r)=>e.check(Jr(Array.isArray(n)?n:[n],r))});function B9(e){return Mp(a2,e)}var c2=y("ZodTransform",(e,t)=>{cr(),M1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _n(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(N.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(N.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 Jc(e){return new c2({type:"transform",transform:e})}var Ei=y("ZodOptional",(e,t)=>{Ea.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ar(e){return new Ei({type:"optional",innerType:e})}var Yc=y("ZodExactOptional",(e,t)=>{R1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function u2(e){return new Yc({type:"optional",innerType:e})}var l2=y("ZodNullable",(e,t)=>{T1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Li(e){return new l2({type:"nullable",innerType:e})}function U9(e){return ar(Li(e))}var d2=y("ZodDefault",(e,t)=>{$1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function p2(e,t){return new d2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}var f2=y("ZodPrefault",(e,t)=>{A1.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 m2(e,t){return new f2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}var Xc=y("ZodNonOptional",(e,t)=>{E1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function h2(e,t){return new Xc({type:"nonoptional",innerType:e,...N.normalizeParams(t)})}var g2=y("ZodSuccess",(e,t)=>{D1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function G9(e){return new g2({type:"success",innerType:e})}var C2=y("ZodCatch",(e,t)=>{N1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function k2(e,t){return new C2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:N.constantCatch(t)})}var y2=y("ZodNaN",(e,t)=>{O1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o)});function K9(e){return Pp(y2,e)}var Di=y("ZodPipe",(e,t)=>{Da.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vf(e,n,r,o),e.in=t.in,e.out=t.out});function Lc(e,t){return new Di({type:"pipe",in:e,out:t})}var Ni=y("ZodCodec",(e,t)=>{Di.init(e,t),mi.init(e,t)});function q9(e,t,n){return new Ni({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function J9(e){let t=e._zod.def;return new Ni({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var b2=y("ZodPreprocess",(e,t)=>{Di.init(e,t),z1.init(e,t)}),v2=y("ZodReadonly",(e,t)=>{Z1.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 w2(e){return new v2({type:"readonly",innerType:e})}var x2=y("ZodTemplateLiteral",(e,t)=>{j1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o)});function Y9(e,t){return new x2({type:"template_literal",parts:e,...N.normalizeParams(t)})}var I2=y("ZodLazy",(e,t)=>{hi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function _2(e){return new I2({type:"lazy",getter:e})}var S2=y("ZodPromise",(e,t)=>{V1.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 X9(e){return new S2({type:"promise",innerType:e})}var P2=y("ZodFunction",(e,t)=>{W1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o)});function Q9(e){return new P2({type:"function",input:Array.isArray(e?.input)?n2(e?.input):e?.input??Ti(sr()),output:e?.output??sr()})}var Oi=y("ZodCustom",(e,t)=>{H1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o)});function e4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function t4(e,t){return Rp(Oi,e??(()=>!0),t)}function L2(e,t={}){return Tp(Oi,e,t)}function M2(e,t){return $p(e,t)}var n4=Ap,r4=Ep,R2=y("ZodInstanceOf",(e,t)=>{Oi.init(e,t)},{properties(e,t){return this.check(qr(e,t))}});function o4(e,t={}){let n=new R2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...N.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 i4=(...e)=>Dp({Codec:Ni,Boolean:uo,String:ao},...e);function s4(e){let t=_2(()=>po([Pi(e),jf(),Wf(),Bf(),Ti(t),r2(Pi(),t)]));return t}function a4(e,t){return new b2({type:"pipe",in:Jc(e),out:t})}var NI={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 OI(e){ve({customError:e})}function zI(){return ve().customError}var T2;T2||(T2={});var zi={};$t(zi,{ZodISODate:()=>$n,ZodISODateTime:()=>Tn,ZodISODuration:()=>En,ZodISOTime:()=>An,date:()=>jI,datetime:()=>ZI,duration:()=>VI,time:()=>WI});function ZI(e){return vi(Tn,e)}function jI(e){return wi($n,e)}function WI(e){return xi(An,e)}function VI(e){return Ii(En,e)}var A={...fo,..._c,iso:zi},HI=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 c4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function BI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function UI(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:BI(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 GI(e,t){return A.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 $2(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=$2(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=$2(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 KI=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),qI=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Zi(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Zi):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>KI.has(t)?Zi(n):!qI.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Zi))}function u4(e){return e===1?"element":"elements"}function JI(e,t){return A.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=$2(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 ${u4(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 ${u4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function l4(e,t){if(e!==!1)return e===void 0||e===!0?A.any():et(e,t)}var YI=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function d4(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return A.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 A.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=UI(o,t),s=et(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 A.null();if(o.length===0)return A.never();if(o.length===1)return A.literal(o[0]);if(o.every(s=>typeof s=="string"))return A.enum(o);let i=o.map(s=>A.literal(s));return i.length<2?i[0]:A.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return A.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return d4(s,t)});return o.length===0?A.never():o.length===1?o[0]:A.union(o)}if(!n)return A.any();let r;switch(n){case"string":{let o=A.string();if(e.format){let i=e.format;i==="email"?o=o.check(A.email()):i==="uri"||i==="uri-reference"?o=o.check(A.url()):i==="uuid"||i==="guid"?o=o.check(A.uuid()):i==="date-time"?o=o.check(A.iso.datetime({offset:!0})):i==="date"?o=o.check(A.iso.date()):i==="time"?o=o.check(A.regex(YI)):i==="duration"?o=o.check(A.iso.duration()):i==="hostname"?o=o.check(A.hostname()):i==="ipv4"?o=o.check(A.ipv4()):i==="ipv6"?o=o.check(A.ipv6()):i==="mac"?o=o.check(A.mac()):i==="cidr"?o=o.check(A.cidrv4()):i==="cidr-v6"?o=o.check(A.cidrv6()):i==="base64"?o=o.check(A.base64()):i==="base64url"?o=o.check(A.base64url()):i==="e164"?o=o.check(A.e164()):i==="credit_card"?o=o.check(A.creditCard()):i==="iban"?o=o.check(A.iban()):i==="jwt"?o=o.check(A.jwt()):i==="emoji"?o=o.check(A.emoji()):i==="nanoid"?o=o.check(A.nanoid()):i==="cuid"?o=o.check(A.cuid()):i==="cuid2"?o=o.check(A.cuid2()):i==="ulid"?o=o.check(A.ulid()):i==="xid"?o=o.check(A.xid()):i==="ksuid"&&(o=o.check(A.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"?A.number().int():A.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=A.boolean();break}case"null":{r=A.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?et(e.additionalProperties,t):void 0;for(let[p,f]of Object.entries(i)){let m=et(f,t);Ze(o,p,s.has(p)?m:m.optional())}if(e.patternProperties){let p=e.patternProperties,f=Object.keys(p),m=[];for(let g of f){let C=et(p[g],t),w=A.string().regex(new RegExp(g));m.push(A.looseRecord(w,C))}let h=[];if(Object.keys(o).length>0&&h.push(A.object(o).passthrough()),h.push(...m),h.length===0)r=A.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=A.intersection(h[0],h[1]);for(let C=2;C<h.length;C++)g=A.intersection(g,h[C]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),C=f.map(k=>new RegExp(k)),w=r;r=r.check(k=>{if(!wt(k.value))return;let b=[];for(let R of Object.keys(k.value))g.includes(R)||C.some(L=>L.test(R))||b.push(R);b.length&&k.issues.push({code:"unrecognized_keys",keys:b,input:k.value,inst:w})})}}else{let p=A.object(o);e.additionalProperties===!1?r=p.strict():a?r=p.catchall(a):r=p.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 p;if(c){let f=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;p=et(f,t)}r=GI(r,{keySchema:p,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(p=>et(p,t)),c=c4(a,s),u=Array.isArray(i)?void 0:l4(i,t),l=A.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(A.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(A.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(p=>et(p,t)),c=c4(a,s),u=l4(e.additionalItems,t),l=A.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(A.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(A.maxLength(e.maxItems)))}else if(i!==void 0){let s=et(i,t),a=A.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=A.array(A.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=JI(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?et(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 et(e,t){if(typeof e=="boolean")return e?A.any():A.never();let n=d4(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=>et(u,t)),c=A.union(a);n=r?A.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>et(u,t)),c=A.xor(a);n=r?A.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:A.any();else{let a=r?n:et(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=A.intersection(a,et(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=A.nullable(n)),e.readOnly===!0&&(n=A.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&&!Zi(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&&!Zi(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))HI.has(a)||Ze(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function p4(e,t){if(typeof e=="boolean")return e?A.any():A.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??je};return et(n,i)}var f4=Symbol("z.visit/resolving");function ji(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===f4)return new hi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,f4);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),p=!1,f={};for(let h of l){let g=o(u[h]);g!==u[h]&&(p=!0),f[h]=g}let m=a.catchall;return a.catchall&&(m=o(a.catchall),m!==a.catchall&&(p=!0)),p?ae(s,{...a,shape:f,catchall:m}):s}case"array":{let u=o(a.element);return u===a.element?s:ae(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,p=[];for(let m of u){let h=o(m);h!==m&&(l=!0),p.push(h)}let f=a.rest;return a.rest&&(f=o(a.rest),f!==a.rest&&(l=!0)),l?ae(s,{...a,items:p,rest:f}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:ae(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:ae(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,p=[];for(let f of u){let m=o(f);m!==f&&(l=!0),p.push(m)}return l?ae(s,{...a,options:p}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:ae(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:ae(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:ae(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:ae(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...p}=a;return ae(s,{...p,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 m4(e){return ji(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:po(n.options)}})}function XI(e,t){if(!t?.length)return e;let n=e._zod.def;return ae(e,Dt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function h4(e){return XI(e.out,e.checks)}function QI(e){return e.in._zod.traits.has("$ZodTransform")?h4(e):e.in}function g4(e){return ji(e,{pipe:t=>QI(t._zod.def),default:(t,n)=>n?ar(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function C4(e){return ji(e,{pipe:t=>h4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var A2={};$t(A2,{bigint:()=>r_,boolean:()=>n_,date:()=>o_,number:()=>t_,string:()=>e_});function e_(e){return ep(ao,e)}function t_(e){return sp(co,e)}function n_(e){return fp(uo,e)}function r_(e){return hp(lo,e)}function o_(e){return Sp(Ri,e)}var E2=1e4,k4=oe.string().min(1).max(1024),Gt=oe.array(k4).max(E2),i_=oe.enum(["project","chronological","machine"]),s_=oe.enum(["updated","created","alpha","none"]),a_=oe.enum(["default","ascending","descending"]),c_=oe.enum(["folded","tree"]),u_=oe.enum(["active","archived"]),l_=oe.enum(["muted","colour","hidden"]),d_=oe.enum(["blocked","everything"]),p_=oe.array(oe.union([oe.literal("threads"),k4.regex(/^(project|section|machine):\S+$/)])).max(E2).transform(e=>[...new Set(e)]);function be(e,t,n){return{schema:e,defaultValue:t,description:n}}var Qc={threadLifecycles:be(oe.array(u_).min(1).max(2).refine(e=>new Set(e).size===e.length,"Lifecycles must be unique"),["active"],"Thread lifecycles shown: active, archived, or both. At least one is required."),organizationMode:be(i_,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:be(oe.boolean(),!1,"Whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:be(s_,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:be(a_,"default","Sort direction; default keeps the field's natural direction."),sectionOrder:be(Gt,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:be(Gt,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:be(Gt,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:be(p_,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:be(oe.array(oe.enum(["pinned","threads"])).max(E2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:be(Gt,[],"Project ids whose group is collapsed."),collapsedThreadSections:be(Gt,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:be(Gt,[],"Machine ids whose group is collapsed."),collapsedEnvironments:be(Gt,[],"Environment ids whose folder row is collapsed."),nesting:be(c_,"folded","Child thread nesting: folded (one flat level behind a chip) or tree (bb's tree)."),foldOlder:be(oe.boolean(),!0,"Whether quiet roots past the 5 most recent fold behind an N older row."),workingFirst:be(oe.boolean(),!1,"Whether working threads sort first under Updated, as bb's list does."),expandedOlder:be(Gt,[],"Group ids and parent thread ids whose N older fold the user opened."),expandedChildren:be(Gt,[],"Parent thread ids the user expanded (folded nesting)."),collapsedChildren:be(Gt,[],"Parent thread ids the user collapsed (tree nesting)."),showPullRequests:be(oe.boolean(),!0,"Whether rows show a pull request badge."),childAttention:be(d_,"blocked","Which child threads count under Needs attention, in badges and counters, and stay out of a family's fold along with running children: blocked (waiting on you, offline, or an orphaned failure) or everything (also every failed and unread child)."),harnessIcon:be(l_,"muted","How rows draw the harness logo: muted (monochrome), colour (the provider's tint) or hidden.")},y4=Object.keys(Qc);function D2(e){return Object.hasOwn(Qc,e)}function f_(e){return structuredClone(Qc[e].defaultValue)}function m_(){return Object.fromEntries(y4.map(e=>[e,f_(e)]))}function N2(e,t){let n=Qc[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function O2(e){let t=m_();if(e===null||typeof e!="object")return t;let n=e;for(let r of y4){if(!(r in n))continue;let o=N2(r,n[r]);o.success&&(t[r]=o.value)}return t}var h_=oe.object({filter:oe.enum(["all","attention"]).catch("all"),density:oe.enum(["compact","comfortable"]).catch("compact")}),z2="bb.thread-glance.client.v1",Wi="bb.thread-glance.preferences.v1",b4="bb.thread-list.preferences.v1";function v4(e){let t=h_.safeParse(e??{});return t.success?t.data:{filter:"all",density:"compact"}}function Vi(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function mo(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}function w4(){let[e,t]=E(()=>v4(Vi(z2))),n=Z(r=>{t(o=>{let i={...o,...r};return mo(z2,i),i})},[]);return[e,n]}function x4(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 eu=oe.record(oe.string(),oe.number()),aT=oe.object({startedAt:eu,finishedAt:eu,pendingAt:eu,seenAt:eu}),g_=140,Z2=oe.object({kind:oe.enum(["question","approval","plan","input","failed","done"]),text:oe.string().max(g_),at:oe.number()}),I4=oe.object({pending:Z2.optional(),failed:Z2.optional(),done:Z2.optional()}),Dn={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var C_=150;function _4(){let e=Cn(),[t,n]=E(()=>O2(Vi(Wi))),[r,o]=E(!1),i=$(new Map),s=$(null),a=gn(),c=$(!1),u=Z(async()=>{try{let{preferences:f}=await e.call("listPreferences",null),m=O2(f);for(let[h,g]of i.current)m[h]=g;n(m),mo(Wi,m)}finally{o(!0)}},[e]);z(()=>{let f=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:Vi(b4)})}catch{}f||await u().catch(()=>{})})(),()=>{f=!0}},[e,u]),z(()=>{a==="connected"&&(c.current&&u().catch(()=>{}),c.current=!0)},[a,u]),hn(Dn.preferences,f=>{let m=f;if(!D2(m?.key)||i.current.has(m.key))return;let h=N2(m.key,m.value);h.success&&n(g=>{let C={...g,[m.key]:h.value};return mo(Wi,C),C})});let l=Z(()=>{let f=[...i.current];i.current.clear();for(let[m,h]of f)e.call("setPreference",{key:m,value:h}).catch(g=>{rt.error(`Couldn't save the ${m} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);z(()=>()=>{s.current!==null&&clearTimeout(s.current),l()},[l]);let p=Z(f=>{n(m=>{let h={...m,...f};return mo(Wi,h),h});for(let[m,h]of Object.entries(f))D2(m)&&i.current.set(m,h);s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,l()},C_)},[l]);return{prefs:t,hydrated:r,update:p}}var j2={};function S4(){let e=Cn(),[t,n]=E(j2),r=gn(),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:j2)},()=>{}),()=>{a=!0}},[e,i]),z(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),hn(Dn.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:j2)}),t}var P4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},k_=new Set(Object.keys(P4));function L4(){let e=Cn(),[t,n]=E(P4),r=gn(),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=>{!k_.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let p={...l[u.kind]};for(let f of u.threadIds)u.value===null?delete p[f]:p[f]=u.value;return{...l,[u.kind]:p}})},[]);hn(Dn.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 W2(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 M4(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 V2(e,t,n){if(t.kind==="group")return M4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return W2(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 M4(e,n.groupOfThread(t.threadId),n)}var y_=["needs-you","unread-failed","queue-failed","offline","working","unread"],R4={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"}},T4=new Set(["pending","starting","active","stopping","idle","error"]),H2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),b_=new Set([...T4,...H2,"waiting-for-host"]);function dr(e){return T4.has(e.status)?e.status:"idle"}function F2(e){return b_.has(e.runtimeStatus)?e.runtimeStatus:dr(e)}function tu(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function v_(e){return H2.has(F2(e))}function w_(e){return F2(e)==="waiting-for-host"}function $4(e,t){let n=dr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:Hi(e,t)}function Hi(e,t){if(e.parentThreadId===null||dr(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 x_=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function Le(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function I_(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function A4(e,t){let n=dr(e),r=F2(e),o=tu(e),i={sendAt:null};if(e.hasPendingInteraction){let s=R4[t.needsKind??"input"]??R4.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"needs-you",label:s.label,glyph:Le(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:Le("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:Le("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:Le("CloudOff","attention"),...i};if(H2.has(r)){let s=I_(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:Le("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:Le("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:Le("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:Le("Loading","working",!0),...i}}for(let[s,a,c]of x_)if(e.activity[s]>0)return{kind:"background",label:c,glyph:Le(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:Le("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:Le("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:Le("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:Le("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:Le(null,"none"),...i}}function E4(e,t){return!(t===null||e.kind==="needs-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function D4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("needs-you"),dr(e)==="error"&&t&&n.add("unread-failed"),tu(e)==="failed"&&n.add("queue-failed"),w_(e)&&n.add("offline"),v_(e)&&n.add("working"),t&&n.add("unread"),n}function N4(e){let t=new Set;return e.has("needs-you")&&t.add("needs-you"),e.has("unread-failed")&&t.add("unread-failed"),t}function nu(e){return y_.find(t=>e.has(t))??null}function B2(e){switch(e){case"needs-you":return"attention";case"unread-failed":case"queue-failed":return"destructive";case"working":return"working";default:return"neutral"}}var ru={"needs-you":{...Le("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{...Le("CircleX","destructive"),label:"failed"},"queue-failed":{...Le("AlertTriangle","destructive"),label:"queued message failed"},offline:{...Le("CloudOff","attention"),label:"machine offline"},working:{...Le("Loading","working",!0),label:"working"},unread:{...Le("dot","none"),label:"unread"}};function Fi(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function O4(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 __(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function S_(e,t){let n=t.familyAttention-e.familyAttention;return n!==0?n:O4(e,t)}function U2(e){return e==="none"?"updated":e}function z4(e){let t=U2(e.field),n=t==="alpha"?"ascending":"descending",r=e.direction==="default"||e.direction===n?1:-1,o=t==="alpha"?__:t==="created"?O4:S_;return(i,s)=>{if(t==="updated"&&e.workingFirst){let a=i.thread.status==="active",c=s.thread.status==="active";if(a!==c)return a?-1:1}return r*o(i,s)}}function Z4(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 j4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var P_={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function G2(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function W4(e,t){if(e.hasPendingInteraction){let n=G2(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:P_[n],text:r,tone:"attention"}}if(dr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return tu(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function V4(e){return e?.done??null}var L_=new Set(["working","background"]);function H4(e){return e.pinnedAt!==null||e.isPinned}function M_(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,H4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&H4(e)&&!i?null:o}function F4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let p=$4(l,e),f=A4(l,{unread:p,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:G2(e.notes?.[l.id])}),m=D4(l,p),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:f,unread:p,flags:l.isHidden?N4(m):m,attention:new Set,quiet:Fi(f,p,h),settled:!1,isActive:h,parentId:M_(l,t),note:W4(l,e.notes?.[l.id])})}let r=e.childAttention??"blocked";for(let l of n.values()){let p=l.parentId===null?void 0:n.get(l.parentId);l.attention=x5(l.flags,{isRoot:p===void 0,mode:r,orphaned:p!==void 0&&w5(l.thread,l.flags,{...p,finishedAt:e.finishedAt[p.thread.id]})}),l.settled=p===void 0||r==="everything"?Fi(l.state,l.unread,!1):l.thread.isArchived||!L_.has(l.state.kind)&&l.attention.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 p=o.get(l.parentId)??[];p.push(l.thread.id),o.set(l.parentId,p)}for(let l of o.values())l.sort((p,f)=>j4(t.get(p),t.get(f)));let s=new Map,a=(l,p)=>{let f=s.get(l);if(f!==void 0)return f;let m=[],h=new Set,g=0,C=!0;p.add(l);for(let k of o.get(l)??[]){if(p.has(k))continue;let b=n.get(k),R=a(k,p);if(m.push(b,...R.descendants),!b.thread.isArchived){for(let L of b.attention)h.add(L);b.flags.has("working")&&h.add("working")}for(let L of R.flags)h.add(L);(b.thread.isHidden?b.attention.size>0:!b.settled)&&(C=!1),b.thread.isHidden||(g+=1),g+=R.visibleCount,R.settled||(C=!1)}p.delete(l);let w={descendants:m,flags:h,visibleCount:g,settled:C};return s.set(l,w),w};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:p,flags:f,visibleCount:m}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,C=Fi(l.state,l.unread,!1),w=l.isActive,k=new Set;for(let L of p){if(!L.thread.isArchived)for(let T of L.attention)k.add(T);h=Math.max(h,L.thread.latestAttentionAt),L.isActive&&(w=!0),L.thread.isHidden?L.attention.size>0&&(g=C=!1):(L.quiet||(g=!1),Fi(L.state,L.unread,!1)||(C=!1))}let b=new Set(f);if(!l.thread.isArchived){for(let L of l.attention)b.add(L),k.add(L);l.flags.has("working")&&b.add("working")}let R={root:l,descendants:p,descendantFlags:f,flags:b,attentionFlags:k,visibleDescendantCount:m,attention:h,quiet:g&&!w,settled:C,containsActive:w};c.push(R),u.set(l.thread.id,R);for(let L of p)u.set(L.thread.id,R)}return{infos:n,children:o,families:c,familyOf:u,subtrees:s}}function Bi(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 zt="pinned",_t="threads";function R_(e){return e.pinnedAt!==null||e.isPinned}function B4(e){return e.find(t=>t.isPersonal)??null}function ou(e,t){if(R_(e)&&!e.isHidden)return zt;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?_t:`project:${n.id}`}case"chronological":return e.sectionId===null?_t:`section:${e.sectionId}`;case"machine":return e.host===null?_t:`machine:${e.host.id}`}}function U4(e,t){let n=B4(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 K2(e,t){return e===zt?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:B4(t)?.id??null,newThreadSectionId:null}}var T_={project:"projects",chronological:"sections",machine:"machines"},Ui={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function G4(e,t,n){let r=T_[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===zt||u===_t||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((p,f)=>{o.has(p)&&(u=f)});let l=u>=0?u+1:s.includes(_t)?s.indexOf(_t):s.length;s.splice(l,0,...c)}return s.includes(zt)||s.unshift(zt),s.includes(_t)||s.push(_t),s}function q2(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 iu(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 J2(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 D={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"},DT=Object.values(D);function K4(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:D.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:D.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:D.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:D.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:D.markRead}:{action:"mark-unread",label:"Mark unread",icon:D.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:D.unpin}:{action:"pin",label:"Pin",icon:D.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:D.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:D.move}),o.push({action:"rename",label:"Rename",icon:D.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:D.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:D.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:D.remove,destructive:!0}),o}var q4=20;function J4(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function Y4(e){let t=e.displayName?.trim()||e.id,n=J4(t),r=J4(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 X4(e){let t=new Map,n=new Set;for(let r of e){let o=Y4(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function Q4(e,t){return t.get(e)??Y4({id:e})[0]}function pr(e,t){return e.filter(n=>n!==t)}function Y2(e,t){return n=>Bi(n,e.infos).includes(t)}function e8(e,t,n){let r=e.info.thread.id,o=e.chip?.expanded??!1;return t.nesting==="tree"?o?{patch:{collapsedChildren:[...pr(t.collapsedChildren,r),r]},drop:Y2(n,r)}:{patch:{collapsedChildren:pr(t.collapsedChildren,r)},drop:null}:o?{patch:{expandedChildren:pr(t.expandedChildren,r)},drop:Y2(n,r)}:{patch:{expandedChildren:[...pr(t.expandedChildren,r),r]},drop:null}}function t8(e,t,n,r){if(e.scope==="reveal")return{patch:{expandedChildren:[...pr(t.expandedChildren,e.scopeId),e.scopeId]},drop:null};if(!e.expanded)return{patch:{expandedOlder:[...pr(t.expandedOlder,e.scopeId),e.scopeId]},drop:null};let o={expandedOlder:pr(t.expandedOlder,e.scopeId)};if(e.scope==="family")return{patch:o,drop:Y2(r,e.scopeId)};let i=new Set;for(let a of r.families)a.settled&&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 n8(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:iu(e.descriptor,t)?J2(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:J2(e.descriptor,t),drop:o}}function r8(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),Hi(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}var X2={needsYou:0,failed:0,offline:0,working:0,unread:0};function o8(e){let t={...X2};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.attention;o.has("needs-you")&&(t.needsYou+=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 i8(e,t){return{needsYou:e.needsYou+t.needsYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}var s8="Waiting on you, failed, offline, or finished and unread. Child threads count only when stuck.",a8="Threads only you can move forward: a question, approval or plan review waiting on you; a machine that is offline; a failed thread or queued message; finished threads you haven't opened. For a child thread, only what waits on you or is offline, or a failure whose manager is idle (Filter settings can widen this).";function c8(e,t){return{needsYou:e.needsYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}function fr(e,t){return 8+e*(t==="tree"?24:12)}function u8(e,t){return fr(e,t)+8}function l8(e){return e.map((t,n)=>{let r=e[n+1],o=[];for(let i=0;i<=t;i+=1){let s=r!==void 0&&r>i;i===t?o.push(s?"start":null):o.push(s?"full":"end")}return o})}function d8(e,t){let n=e>0;return{small:n,muted:n&&!t.unread&&!t.active}}var $_=5,A_=3,f8="No child threads need attention";function E_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function D_(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 Q2(e,t,n,r){return{type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:E_(e,t.parentId),chip:r.chip,rails:[],hiddenBadge:t.thread.isHidden,crossGroupLabel:D_(e,t,n),stickyLevel:r.stickyLevel??null,projectId:t.thread.projectId}}function em(e){return e.attention.size>0}function N_(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.attention.size>0)}function ho(e,t){return e.forest.subtrees.get(t)}function O_(e,t,n){let r=t.thread.id,o=N_(e,r),i=(g,C)=>C(g)||ho(e,g.thread.id).descendants.some(C);if(e.filter==="attention")return{shown:o.filter(C=>i(C,w=>em(w)||w.isActive)),older:null};let s=g=>e.revealIds.has(g.thread.id)||e.revealPath.has(g.thread.id),a=(g,C,w)=>C>0?{type:"older",key:`older:${g}:${r}`,scopeId:r,scope:g,count:C,expanded:w,depth:n,rails:[]}:null;if(!e.expandedChildren.has(r)){let g=o.filter(s),C=o.filter(w=>!s(w)&&!w.thread.isHidden).length;return{shown:g,older:g.length>0?a("reveal",C,!1):null}}let c=g=>g.settled&&ho(e,g.thread.id).settled,u=new Set;for(let g of o)(g.thread.isHidden||!c(g))&&u.add(g.thread.id);let l=o.filter(g=>!u.has(g.thread.id)&&!g.thread.isHidden).sort((g,C)=>C.thread.createdAt-g.thread.createdAt).slice(0,A_);for(let g of l)u.add(g.thread.id);let p=e.expandedOlder.has(r),f=g=>u.has(g.thread.id)||s(g)||e.activePath.has(g.thread.id),m=o.filter(g=>!f(g)).length;return{shown:p?o:o.filter(f),older:a("family",m,p)}}function m8(e,t){let n=e.subtreeAttention.get(t);if(n!==void 0)return n;e.subtreeAttention.set(t,e.forest.infos.get(t)?.thread.latestAttentionAt??0);let r=e.forest.infos.get(t)?.thread.latestAttentionAt??0;for(let o of e.forest.children.get(t)??[])r=Math.max(r,m8(e,o));return e.subtreeAttention.set(t,r),r}function z_(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 tm(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(f=>f.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),p=new Set;for(let f of u)for(let m of f.flags)p.add(m);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:z_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(f=>f.info.thread.id),collapsed:l,flag:l?nu(p):null,depth:n,rails:[]}),!l)for(let f of u)for(let m of f.rows)o.push({...m,depth:m.depth+1})}return o}function h8(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 g8(e,t,n){let r=ho(e,t.thread.id);return r.visibleCount>0||r.descendants.some(i=>i.thread.isHidden&&i.attention.size>0)?{count:r.visibleCount,flag:nu(r.flags),expanded:n,providerIds:h8(t,r.descendants)}:null}function C8(e,t){let n=new Set([...t.attention,...ho(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function k8(e,t,n,r){let{shown:o,older:i}=O_(e,n,r),s=o.map(c=>({info:c,flags:C8(e,c),rows:[Q2(e,c,t.root,{depth:r,nested:r>1,chip:g8(e,c,e.expandedChildren.has(c.thread.id))}),...k8(e,t,c,r+1)]})),a=tm(e,s,r);return i!==null&&a.push(i),e.filter==="attention"&&o.length===0&&e.expandedChildren.has(n.thread.id)&&a.push({type:"empty",key:`empty:${n.thread.id}`,scopeId:n.thread.id,depth:r,rails:[]}),a}function Z_(e,t){let n=t.root,r=g8(e,n,e.expandedChildren.has(n.thread.id));return[Q2(e,n,n,{depth:0,nested:!1,chip:r}),...k8(e,t,n,1)]}function y8(e,t,n,r){let o=n.thread.id,i=t.root,s=(e.forest.children.get(o)??[]).filter(g=>{let C=e.forest.infos.get(g);return!C.thread.isHidden||C.attention.size>0}),a=ho(e,o),c=s.map(g=>e.forest.infos.get(g));e.filter==="attention"&&(c=c.filter(g=>{let C=w=>em(w)||w.isActive;return C(g)||ho(e,g.thread.id).descendants.some(C)}));let u=e.filter==="attention"||!e.collapsedChildren.has(o)||e.revealPath.has(o),l=s.length>0?{count:a.visibleCount,flag:nu(a.flags),expanded:u&&c.length>0,providerIds:h8(n,a.descendants)}:null,p=Q2(e,n,i,{depth:r,nested:!1,chip:l,stickyLevel:u&&c.length>0&&r<4?r:null}),f=C8(e,n);if(!u||c.length===0)return{info:n,rows:[p],flags:f};let m=c.map(g=>({child:g,key:{thread:g.thread,familyAttention:m8(e,g.thread.id)}}));m.sort((g,C)=>e.compare(g.key,C.key));let h=m.map(({child:g})=>y8(e,t,g,r+1));return{info:n,rows:[p,...tm(e,h,r+1)],flags:f}}function j_(e,t){return e.prefs.nesting==="tree"?y8(e,t,t.root,0):{info:t.root,rows:Z_(e,t),flags:t.flags}}function p8(e){let t=e.attentionFlags;return t.has("needs-you")?0:t.has("unread-failed")||t.has("queue-failed")?1:t.has("offline")?2:t.has("unread")?3:4}function W_(e,t,n,r){let o=o8(n),i=iu(t,e.prefs),s=n.some(k=>e.targets.has(k.root.thread.id)||k.descendants.some(b=>e.targets.has(b.thread.id))),a=i&&!s,c=t.id===zt,u=n;if(e.filter==="attention"&&(u=n.filter(k=>k.attentionFlags.size>0||k.containsActive),u.length===0))return null;let l=[...u];e.filter==="attention"?l.sort((k,b)=>p8(k)-p8(b)||e.compare({thread:k.root.thread,familyAttention:k.attention},{thread:b.root.thread,familyAttention:b.attention})):c?l.sort((k,b)=>Z4(k.root.thread,b.root.thread)):l.sort((k,b)=>e.compare({thread:k.root.thread,familyAttention:k.attention},{thread:b.root.thread,familyAttention:b.attention}));let p=l,f=null;if(!c&&e.filter==="all"&&e.prefs.foldOlder){let k=l.filter(L=>L.settled&&!L.root.thread.isArchived),b=new Set(k.slice(0,$_)),R=k.filter(L=>!b.has(L)&&!L.containsActive);if(R.length>0){let L=e.expandedOlder.has(t.id)||R.some(O=>e.targets.has(O.root.thread.id)||O.descendants.some(B=>e.targets.has(B.thread.id))),T=new Set(R);L||(p=l.filter(O=>!T.has(O))),f={type:"older",key:`older:group:${t.id}`,scopeId:t.id,scope:"group",count:R.length,expanded:L,depth:0,rails:[]}}}let h=p.map(k=>j_(e,k)),g=tm(e,h,0),C=l8(g.map(k=>k.depth)),w=g.map((k,b)=>({...k,rails:C[b]}));return f!==null&&w.push(f),{descriptor:t,counters:o,userCollapsed:i,collapsed:a,hidden:r,rows:w,rootIds:n.map(k=>k.root.thread.id)}}function b8(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[k,b]of e.targets)if(!(b!=="reveal"||!t.infos.has(k))){r.add(k);for(let R of Bi(k,t.infos))o.add(R)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let k of Bi(e.activeThreadId,t.infos))i.add(k)}let s={...e,compare:z4({field:n.chronologicalSort,direction:n.sortDirection,workingFirst:n.workingFirst}),expandedChildren:new Set(n.expandedChildren),collapsedChildren:new Set(n.collapsedChildren),expandedOlder:new Set(n.expandedOlder),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(k=>[k.id,k.name])),sectionNames:new Map(e.sections.map(k=>[k.id,k.name])),subtreeAttention:new Map},a=new Map;for(let k of t.families){let b=ou(k.root.thread,{mode:n.organizationMode,projects:e.projects}),R=a.get(b)??[];R.push(k),a.set(b,R)}let c=U2(n.chronologicalSort)==="alpha",u=U4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},c),l=new Map(u.map(k=>[k.id,k]));l.set(zt,K2(zt,e.projects)),l.set(_t,K2(_t,e.projects));let p=G4(n.organizationMode,n[Ui[n.organizationMode]],u.map(k=>k.id)),f=new Set(n.hiddenGroups),m=[],h=[],g=X2;for(let k of p){let b=l.get(k);if(b===void 0)continue;let R=a.get(k)??[];if(R.length===0&&(k===zt||k===_t&&n.organizationMode!=="chronological"))continue;let L=k!==zt&&f.has(k),T=W_(s,b,R,L);T!==null&&(L?(h.push(T),g=i8(g,T.counters)):m.push(T))}let C=new Set;for(let k of e.threads)k.host!==null&&C.add(k.host.id);let w=0;for(let k of t.families)for(let b of[k.root,...k.descendants])!b.thread.isArchived&&em(b)&&(w+=1);return{groups:m,more:h,moreCounters:g,order:p,multiHost:C.size>1,attentionCount:w}}function v8(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(v8(e)&&v8(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 H_(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 x8(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 F_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function w8(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:x8(i,o,{rows:H_(i.rows,o.rows)})});return F_(e,r)?e:r}function I8(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return x8(e,t,{groups:w8(e.groups,n,t.groups),more:w8(e.more,n,t.more)})}var au=xe({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},familyOf:()=>{}});var nm=globalThis.__bbPluginRuntime;if(nm==null||nm.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=nm.radixAlertDialog,n$="default"in cu?cu.default:cu,{Action:rm,AlertDialog:r$,AlertDialogAction:o$,AlertDialogCancel:i$,AlertDialogContent:s$,AlertDialogDescription:a$,AlertDialogOverlay:c$,AlertDialogPortal:u$,AlertDialogTitle:l$,AlertDialogTrigger:d$,Cancel:om,Content:im,Description:sm,Overlay:am,Portal:_8,Root:S8,Title:cm,Trigger:B_,createAlertDialogScope:p$}=cu;var P8=S8;var G_=_8,L8=W(({className:e,...t},n)=>d(am,{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,...Pe()}));L8.displayName=am.displayName;var um=W(({className:e,...t},n)=>x(G_,{children:[d(L8,{}),d(im,{ref:n,...Pe(),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})]}));um.displayName=im.displayName;var lm=({className:e,...t})=>d("div",{className:I("flex flex-col space-y-2 text-center sm:text-left",e),...t});lm.displayName="AlertDialogHeader";var dm=({className:e,...t})=>d("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});dm.displayName="AlertDialogFooter";var pm=W(({className:e,...t},n)=>d(cm,{ref:n,className:I("text-lg font-semibold",e),...t}));pm.displayName=cm.displayName;var fm=W(({className:e,...t},n)=>d(sm,{ref:n,className:I("text-sm text-muted-foreground",e),...t}));fm.displayName=sm.displayName;var mm=W(({className:e,...t},n)=>d(rm,{ref:n,className:I(Os(),e),...t}));mm.displayName=rm.displayName;var hm=W(({className:e,...t},n)=>d(om,{ref:n,className:I(Os({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));hm.displayName=om.displayName;var gm=globalThis.__bbPluginRuntime;if(gm==null||gm.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=gm.radixDialog,k$="default"in uu?uu.default:uu,{Close:Cm,Content:M8,Description:km,Dialog:y$,DialogClose:b$,DialogContent:v$,DialogDescription:w$,DialogOverlay:x$,DialogPortal:I$,DialogTitle:_$,DialogTrigger:S$,Overlay:ym,Portal:R8,Root:T8,Title:$8,Trigger:A8,WarningProvider:P$,createDialogScope:L$}=uu;var q_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Gi=W(({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,...p},f)=>{let m=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=m!==void 0?{strokeWidth:m,stroke:"currentColor"}:{},g={ref:f,...q_,width:t,height:t,color:c||e,className:o,...h,...p},w=[...s&&i?i:a].sort(([,k],[,b])=>{let R=k.opacity!==void 0;return b.opacity!==void 0?1:R?-1:0}).map(([k,b])=>{let R=b.opacity!==void 0,L=R&&!l?b.opacity:void 0,T=u?{...b.stroke!==void 0?{stroke:R?u:c||e}:{fill:R?u:c||e}}:{};return Lo(k,{...b,...h,...T,opacity:L,key:b.key})});return Lo("svg",g,w)});Gi.displayName="HugeiconsIcon";var E8=[["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 N8=[["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 O8=[["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 z8=[["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 j8=[["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 bm=[["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 W8=[["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 V8=[["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 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",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 B8=[["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 U8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var vm=[["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 G8=[["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 K8=[["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 q8=[["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 J8=[["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 Y8=[["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 X8=[["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 Q8=[["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 eg=[["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 tg=[["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"}]];wm();var ng=[["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 rg=[["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 og=[["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 ig=[["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 sg=[["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 ag=[["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 cg=[["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 ug=[["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 lg=[["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 dg=[["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 pg=[["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 fg=[["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 mg=[["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 hg=[["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 gg=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Cg=[["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 kg=[["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 yg=[["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 bg=[["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 vg=[["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 wg=[["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"}]];Pm();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"}]],PC={AlertCircle:D8,AlertTriangle:E8,Archive:N8,Bot:j8,Bug:V8,Check:gg,ChevronDown:O8,ChevronLeft:z8,ChevronRight:Z8,Circle:U8,CircleCheck:B8,CircleQuestion:ig,CircleX:H8,ClosePluginPane:lu,CloseThreadPane:lu,Code:mg,ComputerTerminal01:vm,Copy:G8,Download:J8,Edit:Y8,FilterHorizontal:X8,Folder:ng,FolderExport:eg,FolderGit:tg,FolderPlus:Q8,FolderSync:rg,FolderUnknown:og,Folder02:du,Info:sg,ListTodo:F8,Loading:ag,MessageQuestion:cg,MessageCirclePlus:bm,MessageSquarePlus:bm,MessageSquare:W8,MoreHorizontal:ug,PanelLeft:pg,Search:lg,SectionAdd:tS,SectionMove:nS,Settings:dg,SlidersHorizontal:fg,Spinner:K8,Target:hg,Terminal:vm,Toolbox:Cg,ToolCase:kg,Trash2:q8,Unavailable:bg,UserRoundPlus:yg,Workflow:vg,X:lu,Zap:wg},rS=Object.keys(PC),oS=[...rS,..._g],iS=PC,Rm=null;function sS(){return pu()!==null?Promise.resolve():(Rm??=Promise.resolve().then(()=>(_C(),IC)).then(()=>{},e=>{throw Rm=null,e}),Rm)}var aS=[],cS=new Set(oS),SC=xe([]);function Tm(e){return cS.has(e)}var Am=class extends Du{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function Zt({name:e,fallback:t="Zap",...n}){let r=Ie(SC),o=Jt(_m,()=>Ki(e),()=>Ki(e)),i=Jt(_m,()=>Ki(t),()=>Ki(t)),s=Jt(Sm,()=>qi(e),()=>qi(e)),a=Jt(Sm,()=>qi(t),()=>qi(t)),c=o!==void 0||Tm(e)||s!==void 0,u=c?e:t,l=c?o:i,p=c?s:a,f=l?.component;return r.includes(u)?d($m,{name:Tm(u)?u:"Zap",...n}):f!==void 0&&l!==void 0?d(SC.Provider,{value:[...r,u],children:d(Am,{fallback:d($m,{name:"Zap",...n}),children:d("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:d(f,{className:"size-full"})})},l.key)}):f===void 0&&p!==void 0?d(uS,{url:p,resolved:u,...n}):d($m,{name:Tm(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 d("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 $m({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=iS[e];return i!==void 0?d(Gi,{icon:i,className:I(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):d(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=Jt(Pg,pu,pu)?.[e];return s===void 0&&sS().catch(()=>{}),d(Gi,{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 LC=xe({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function Ji(){return Ie(LC)}function Yi({children:e,open:t,onOpenChange:n,...r}){let o=Sr(t,n),i=kn(),s=kn(),[a,c]=E(i),[u,l]=E(s),p=Z(g=>(c(g),()=>c(i)),[i]),f=Z(g=>(l(g),()=>l(s)),[s]),m=q(()=>({...o,titleId:a,descriptionId:u,registerTitleId:p,registerDescriptionId:f}),[u,f,p,o,a]),h=m.isCompactViewport?e:d(T8,{open:m.open,onOpenChange:m.onOpenChange,...r,children:e});return d(LC.Provider,{value:m,children:h})}var dS=W(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=Ji();return i?d(Bn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):d(A8,{ref:o,asChild:e,className:vn(n),onMouseDown:c=>{s||wn(),Xt(c)},...r,children:t})});dS.displayName="DialogTrigger";var pS=W(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=Ji();return i?d(e?bn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):d(Cm,{ref:o,asChild:e,onClick:t,...r,children:n})});pS.displayName="DialogClose";var MC=W(({className:e,...t},n)=>d(ym,{ref:n,...Pe(),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}));MC.displayName=ym.displayName;var go=W(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:p}=Ji();let f=Pe();if(a){let m=Pr(i);return d(Lr,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:p,children:d("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"),...m,children:t})})}return x(R8,{children:[d(MC,{}),x(M8,{ref:s,...f,onCloseAutoFocus:m=>{o?.(m),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:x(Cm,{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:[d(Zt,{name:"X",className:"h-4 w-4"}),d("span",{className:"sr-only",children:"Close"})]})]})]})});go.displayName="DialogContent";var Co=({className:e,...t})=>d("div",{className:I("flex flex-col space-y-1.5 text-left",e),...t});Co.displayName="DialogHeader";var mu=({className:e,...t})=>d("div",{className:I("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});mu.displayName="DialogFooter";var ko=W(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=Ji(),u=n??a;if(nt(()=>{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?d(bn,{ref:i,...l,children:r}):d("h2",{ref:i,...l,children:r})}return d($8,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:I("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});ko.displayName="DialogTitle";var hu=W(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=Ji(),u=n??a;if(nt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:I("text-sm text-muted-foreground",t),...o};return e?d(bn,{ref:i,...l,children:r}):d("p",{ref:i,...l,children:r})}return d(km,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:I("text-sm text-muted-foreground",t),...o,children:r})});hu.displayName=km.displayName;var RC="text-sm max-md:pointer-coarse:text-base";var Nn="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",TC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",Zz=`${TC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,jz=`${TC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var $C="h-9 max-md:pointer-coarse:h-10";var gu=W(({className:e,type:t,...n},r)=>d("input",{type:t,autoComplete:"off",className:I(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${Ds} 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`,$C,RC,e),ref:r,...n}));gu.displayName="Input";function AC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return d(Yi,{open:e,onOpenChange:n,children:x(go,{className:"max-w-sm",children:[x(Co,{children:[d(ko,{children:"Customize list"}),d(hu,{children:"Hidden groups move into More. Their counters still show there."})]}),d("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>x("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:[d("span",{className:I("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),d(Ve,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:d(F,{name:D.moveUp,"aria-hidden":!0})}),d(Ve,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:d(F,{name:D.collapse,"aria-hidden":!0})}),d(Ve,{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:d(F,{name:i.hidden?D.hidden:D.show,"aria-hidden":!0})})]},i.id))}),d(mu,{children:d(Ve,{onClick:()=>n(!1),children:"Done"})})]})})}function EC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=E(""),[i,s]=E(!1);return z(()=>{e&&o("")},[e]),d(Yi,{open:e,onOpenChange:t,children:d(go,{className:"max-w-sm",children:x("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:[d(Co,{children:d(ko,{children:"New section"})}),d(gu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),x(mu,{children:[d(Ve,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),d(Ve,{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 d(P8,{open:e,onOpenChange:i,children:x(um,{children:[x(lm,{children:[d(pm,{children:t}),d(fm,{children:n})]}),x(dm,{children:[d(hm,{children:"Cancel"}),d(mm,{className:I(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function NC({open:e,title:t,onOpenChange:n,children:r}){return d(Yi,{open:e,onOpenChange:n,children:x(go,{className:"max-w-sm",children:[d(Co,{children:d(ko,{className:"sr-only",children:t})}),r]})})}function OC({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 d(Yi,{open:e,onOpenChange:i,children:x(go,{className:"max-w-sm",children:[x(Co,{children:[x(ko,{children:["Move \u201C",t,"\u201D"]}),d(hu,{children:"Nest it under another thread, or move it to the top level."})]}),d(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(p=>Math.min(p+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(p=>Math.max(p-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),x("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?d("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,p)=>x("li",{id:`thread-glance-move-${p}`,role:"option","aria-selected":p===a,onMouseEnter:()=>c(p),onClick:()=>u(l),className:I("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",p===a&&"bg-accent"),children:[d("span",{className:"truncate",children:l.label}),l.detail?d("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function zC(){let e=Cn(),[t,n]=E({}),r=gn(),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]),hn(Dn.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:I4.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||W2(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=[["needs-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 jC(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 WC(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 yo(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function VC(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"needs-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function HC(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"},BC="animate-shine-icon motion-reduce:animate-none",hS="animate-spin motion-reduce:animate-none";function gS({label:e,className:t}){return d("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 Xi({glyph:e,label:t,className:n}){return e.icon===null?null:e.icon==="dot"?d(gS,{label:t}):d(F,{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&&BC,n)})}function UC({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 d(F,{name:e.icon,"aria-label":e.label,className:I("size-4 shrink-0",t,e.tone==="running"&&BC)})}function Qi({flag:e,className:t}){return d(Xi,{glyph:ru[e],className:t})}var CS=[{key:"needsYou",flag:"needs-you",label:e=>`${e} need${e===1?"s":""} 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=CS.filter(r=>e[r.key]>0);return n.length===0?null:d("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=>x("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[d(Qi,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var kS=500,yS=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),es=!1,ku=0,GC=0;function KC(e){es=yS.has(e.key)}function qC(){es=!1,ku+=1}function JC(){ku+=1}function YC(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)},kS)};return z(()=>(GC++===0&&(es=!1,document.addEventListener("keydown",KC,!0),document.addEventListener("pointerdown",qC,!0)),()=>{a(),--GC===0&&(document.removeEventListener("keydown",KC,!0),document.removeEventListener("pointerdown",qC,!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:()=>{es&&(es=!1,c())},onBlur:a}}}var Em=globalThis.__bbPluginRuntime;if(Em==null||Em.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=Em.radixDropdownMenu,CZ="default"in yu?yu.default:yu,{Arrow:kZ,CheckboxItem:XC,Content:QC,DropdownMenu:yZ,DropdownMenuArrow:bZ,DropdownMenuCheckboxItem:vZ,DropdownMenuContent:wZ,DropdownMenuGroup:xZ,DropdownMenuItem:IZ,DropdownMenuItemIndicator:_Z,DropdownMenuLabel:SZ,DropdownMenuPortal:PZ,DropdownMenuRadioGroup:LZ,DropdownMenuRadioItem:MZ,DropdownMenuSeparator:RZ,DropdownMenuSub:TZ,DropdownMenuSubContent:$Z,DropdownMenuSubTrigger:AZ,DropdownMenuTrigger:EZ,Group:ek,Item:tk,ItemIndicator:Dm,Label:nk,Portal:rk,RadioGroup:bS,RadioItem:Nm,Root:ok,Separator:ik,Sub:sk,SubContent:Om,SubTrigger:zm,Trigger:ak,createDropdownMenuScope:DZ}=yu;var wS=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),on="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",ck=xe({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function bu({children:e}){let[t,n]=E(null),r=q(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return d(ck.Provider,{value:r,children:e})}function Kt(e){let t=kn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=Ie(ck),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),wS.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var xS="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",IS="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",_S="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Zm=xe({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function On(){return Ie(Zm)}function bo({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=Sr(t,n,r);return i.isCompactViewport?d(Zm.Provider,{value:i,children:e}):d(ok,{open:i.open,onOpenChange:i.onOpenChange,...o,children:d(Zm.Provider,{value:i,children:e})})}var mr=W(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=On();return i?d(Bn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):d(ak,{ref:o,asChild:e,className:vn(n),onMouseDown:c=>{s||wn(),Xt(c)},...r,children:t})});mr.displayName="DropdownMenuTrigger";var hr=W(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=On(),l=Pe();if(a){let{style:p,...f}=Pr(i);return d(Lr,{open:c,onOpenChange:u,srLabel:r??"Menu",children:d("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),...f,style:{...p,...Bs},children:n})})}return d(rk,{children:d(QC,{ref:s,...l,sideOffset:t,onCloseAutoFocus:p=>{Zs()||p.preventDefault(),o?.(p)},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:d(bu,{children:n})})})});hr.displayName="DropdownMenuContent";function uk(){return new Event("select",{cancelable:!0})}var Oe=W(({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:p,onBlur:f,...m},h)=>{let{isCompactViewport:g,onOpenChange:C}=On(),{hoverProps:w}=Kt({onPointerEnter:u,onKeyDown:l});return g?d("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"&&_S,e),"data-disabled":o?"":void 0,onFocus:p,onBlur:f,onClick:()=>{if(o)return;let k=uk();r?.(k),k.defaultPrevented||C(!1)},children:c}):d(tk,{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",Vt,n==="destructive"?IS:xS,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:p,onBlur:f,...m,...w,children:c})});Oe.displayName="DropdownMenuItem";var SS=W(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:p,onOpenChange:f}=On(),{hoverProps:m}=Kt({onPointerEnter:a,onKeyDown:c});return p?x("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=uk();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||f(!1)},children:[d("span",{className:I("absolute right-2 flex items-center justify-center",Nn),children:(n===!0||n==="indeterminate")&&d(Zt,{name:"Check",className:Nn})}),t]}):x(XC,{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",Vt,on,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...m,children:[d("span",{className:I("absolute right-2 flex items-center justify-center",Nn),children:d(Dm,{children:d(Zt,{name:"Check",className:Nn})})}),t]})});SS.displayName="DropdownMenuCheckboxItem";var PS=W(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=On(),{hoverProps:a}=Kt({onPointerEnter:n,onKeyDown:r});return s?null:x(Nm,{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",Vt,on,e),...o,...a,children:[d("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d(Dm,{children:d(Zt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});PS.displayName=Nm.displayName;var LS=W(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=On();return i?d("div",{ref:o,className:I("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):d(nk,{ref:o,className:I("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});LS.displayName="DropdownMenuLabel";var ts=W(({className:e,...t},n)=>{let{isCompactViewport:r}=On();return r?d("hr",{ref:n,className:I("-mx-1 my-1 h-px border-0 bg-muted",e)}):d(ik,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t})});ts.displayName="DropdownMenuSeparator";var MS=W(({children:e,...t},n)=>{let{isCompactViewport:r}=On();return r?d("div",{ref:n,role:"group",...t,children:e}):d(ek,{ref:n,...t,children:e})});MS.displayName="DropdownMenuGroup";var lk=sk,jm=W(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Kt({onPointerEnter:r,onKeyDown:o});return x(zm,{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",Vt,on,t&&"pl-8",e),...i,...a,children:[n,d(Zt,{name:"ChevronRight",className:"ml-auto"})]})});jm.displayName=zm.displayName;var Wm=W(({className:e,...t},n)=>d(Om,{ref:n,...Pe(),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}));Wm.displayName=Om.displayName;var RS=({className:e,...t})=>d("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t});RS.displayName="DropdownMenuShortcut";function dk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var TS=25;function pk(e,t=TS){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}var $S={start:{top:"calc(50% + 10px)",bottom:"0px"},full:{top:"0px",bottom:"0px"},end:{top:"0px",bottom:"50%"}};function vo({rails:e,nesting:t}){return e.every(n=>n===null)?null:d("span",{"aria-hidden":!0,"data-rails":"",className:"pointer-events-none absolute inset-0",children:e.map((n,r)=>n===null?null:d("span",{className:"absolute w-px bg-border",style:{left:u8(r,t),...$S[n]}},r))})}function AS(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${yo(n.sendAt)}`:r}function fk(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.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 Vm(e,t,n,r){let o=t===1?"child thread":"child threads",i=n===null?"":`, ${ru[n].label}`;return`${r?"Collapse":"Show"} ${t} ${o} of ${e}${i}`}function mk(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}`}}var ES=600;function DS(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function wo({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=E(e),[a,c]=E(!1),u=$(null),l=$(!1),p=$(!1),f=$(!1);z(()=>{let h=g=>{g.target!==u.current&&(f.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),z(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{p.current=!0},ES);return()=>clearTimeout(h)},[]);let m=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(C){rt.error("Couldn't rename",{description:C instanceof Error?C.message:String(C)})}finally{r()}};return x(qe,{children:[d("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(),m(!0)):h.key==="Escape"&&(h.preventDefault(),m(!1)))},onBlur:h=>{if(!p.current&&!f.current&&DS(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}m(!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?d("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var Hm=globalThis.__bbPluginRuntime;if(Hm==null||Hm.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=Hm.radixContextMenu,sj="default"in vu?vu.default:vu,{Arrow:aj,CheckboxItem:Fm,Content:Bm,ContextMenu:cj,ContextMenuArrow:uj,ContextMenuCheckboxItem:lj,ContextMenuContent:dj,ContextMenuGroup:pj,ContextMenuItem:fj,ContextMenuItemIndicator:mj,ContextMenuLabel:hj,ContextMenuPortal:gj,ContextMenuRadioGroup:Cj,ContextMenuRadioItem:kj,ContextMenuSeparator:yj,ContextMenuSub:bj,ContextMenuSubContent:vj,ContextMenuSubTrigger:wj,ContextMenuTrigger:xj,Group:NS,Item:Um,ItemIndicator:Gm,Label:Km,Portal:hk,RadioGroup:OS,RadioItem:qm,Root:gk,Separator:Jm,Sub:Ck,SubContent:Ym,SubTrigger:Xm,Trigger:kk,createContextMenuScope:Ij}=vu;var yk="z-[70]",bk=gk,vk=kk;var wk=Ck;var Qm=W(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Kt({onPointerEnter:r,onKeyDown:o});return x(Xm,{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",Vt,on,t&&"pl-8",e),...i,...a,children:[n,d(Zt,{name:"ChevronRight",className:"ml-auto"})]})});Qm.displayName=Xm.displayName;var eh=W(({className:e,...t},n)=>d(Ym,{ref:n,...Pe(),className:I(yk,"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}));eh.displayName=Ym.displayName;var th=W(({className:e,children:t,...n},r)=>d(hk,{children:d(Bm,{ref:r,...Pe(),className:I(yk,"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:d(bu,{children:t})})}));th.displayName=Bm.displayName;var wu=W(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Kt({onPointerEnter:n,onKeyDown:r});return d(Um,{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",Vt,on,t&&"pl-8",e),...o,...s})});wu.displayName=Um.displayName;var ZS=W(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Kt({onPointerEnter:r,onKeyDown:o});return x(Fm,{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",Vt,on,e),checked:n,...i,...a,children:[d("span",{className:I("absolute right-2 flex items-center justify-center",Nn),children:d(Gm,{children:d(Zt,{name:"Check",className:Nn})})}),t]})});ZS.displayName=Fm.displayName;var jS=W(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Kt({onPointerEnter:n,onKeyDown:r});return x(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",Vt,on,e),...o,...s,children:[d("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d(Gm,{children:d(Zt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});jS.displayName=qm.displayName;var WS=W(({className:e,inset:t,...n},r)=>d(Km,{ref:r,className:I("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));WS.displayName=Km.displayName;var nh=W(({className:e,...t},n)=>d(Jm,{ref:n,className:I("-mx-1 my-1 h-px bg-muted",e),...t}));nh.displayName=Jm.displayName;function VS({className:e,...t}){return d("span",{className:I("ml-auto text-xs tracking-widest opacity-60",e),...t})}VS.displayName="ContextMenuShortcut";var rh=globalThis.__bbPluginRuntime;if(rh==null||rh.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=rh.radixHoverCard,Aj="default"in xu?xu.default:xu,{Arrow:Ej,Content:oh,HoverCard:Dj,HoverCardArrow:Nj,HoverCardContent:Oj,HoverCardPortal:zj,HoverCardTrigger:Zj,Portal:xk,Root:Ik,Trigger:_k,createHoverCardScope:jj}=xu;var Sk=Ik,Pk=_k,ih=W(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Pe();return d(xk,{children:d(oh,{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})})});ih.displayName=oh.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 FS(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=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-FS(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function Mk(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 Rk(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="needs-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:Iu(r-o)}function ns({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 d("span",{title:e.name,className:I("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:d(ls,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return d("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 sh(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 Tk({threadId:e}){let{pullRequest:t}=ds(e);return t===null?null:x("span",{title:_u(t),"aria-label":_u(t),className:I("shrink-0 text-[11px] tabular-nums",sh(t.attention)),children:["#",t.number]})}function Su({item:e}){return x(qe,{children:[d(F,{name:e.icon,"aria-hidden":!0,className:"size-4"}),d("span",{children:e.label})]})}function $k(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Ak({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 d(th,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>x(yr,{children:[a.separated?d(nh,{}):null,a.action==="move-to-section"?x(wk,{children:[d(Qm,{children:d(Su,{item:a})}),d(eh,{children:$k(t).map(c=>x(wu,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?d(F,{name:D.check,"aria-hidden":!0,className:"size-4"}):d("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):d(wu,{className:I(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:d(Su,{item:a})})]},a.action))})}function Ek({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return d(hr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>x(yr,{children:[i.separated?d(ts,{}):null,i.action==="move-to-section"?x(lk,{children:[d(jm,{children:d(Su,{item:i})}),d(Wm,{children:$k(t).map(s=>x(Oe,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?d(F,{name:D.check,"aria-hidden":!0,className:"size-4"}):d("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):d(Oe,{className:I(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:d(Su,{item:i})})]},i.action))})}function Dk({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return d("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 d("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 x("div",{className:"flex min-w-0 gap-2",title:t,children:[d("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),d("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}=ds(e);return t===null?null:d(sn,{label:"Pull request",children:d("span",{className:sh(t.attention),children:_u(t)})})}function Pu({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=US(t,e),a=Ie(au),c=VC(e.state.kind,Rk(e.state.kind,o.id,a.stamps,a.now)),u=jC(WC(a.familyOf(o.id),o.id)),l=o.environment,p=Mk(o,a.stamps.finishedAt),f=V4(a.notes[o.id]);return x("div",{className:"flex flex-col gap-2 text-xs",children:[d("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),x("div",{className:"flex items-center gap-1.5",children:[d(Xi,{glyph:e.state.glyph,className:"size-3.5"}),x("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${yo(e.state.sendAt)}`:""]})]}),e.note!==null?x("p",{className:"break-words leading-snug",children:[x("span",{className:e.note.tone==="destructive"?"text-destructive":"text-attention",children:[e.note.prefix,":"]})," ",e.note.text]}):null,x("dl",{className:"flex flex-col gap-1",children:[d(sn,{label:"Harness",children:x("span",{className:"inline-flex items-center gap-1.5",children:[d(ns,{display:i,mode:t.harnessIcon==="hidden"?"muted":t.harnessIcon}),i.name]})}),d(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?d(sn,{label:"Branch",children:x("span",{className:"inline-flex items-center gap-1",children:[d(F,{name:l.isWorktree?D.worktree:D.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?d(sn,{label:"Machine",children:o.host.name}):null,u!==null?d(sn,{label:"Children",children:u}):null,n?d(GS,{threadId:o.id}):null,f!==null&&e.note===null?d(sn,{label:"Last reply",children:d("span",{className:"line-clamp-2",children:f.text})}):null,d(sn,{label:"Created",children:yo(o.createdAt)}),p!==null?d(sn,{label:"Finished",children:yo(p)}):null]}),r?x("div",{className:"flex gap-2 pt-1",children:[x(Ve,{size:"sm",onClick:r.open,children:[d(F,{name:D.open,"aria-hidden":!0}),"Open"]}),x(Ve,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[d(F,{name:e.unread?D.markRead:D.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var KS=400,qS=700,JS=10,rs=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 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 Nk=bt(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,stickyTop:s,active:a,editing:c,now:u,startedAt:l,finishedAt:p,pendingAt:f}){let{info:m}=t,h=m.thread,g=h.archivedAt!==null||h.isArchived,C=n.compact,w=_h(h.id),k=Ih(h.id),{hasUnsubmittedDraft:b}=wh(h.id),R=Ch(h.id),L=XS(h.id),[T,O]=E(!1),[B,de]=E(!1),ne=YC(a,!C&&!c&&!T&&!B),se=$({pressed:!1,keyed:!1}),H=$(null),Q=$(null),ie={threadId:h.id,parentThreadId:h.parentThreadId,sectionId:h.sectionId,pinned:h.pinnedAt!==null||h.isPinned},_e=Ls({id:`thread:${h.id}:${r}`,data:{kind:"thread",thread:ie,groupId:r},disabled:c||C}),gt=Ms({id:`drop-thread:${h.id}:${r}`,data:{kind:"thread",threadId:h.id,inPinned:o,groupId:r}}),tt=Z(j=>{_e.setNodeRef(j),gt.setNodeRef(j)},[_e.setNodeRef,gt.setNodeRef]),zn=n.provider(h.providerId),ut=E4(m.state,k),Ct=fk(t,{providerName:zn.name,pluginLabel:ut?k.label:null,hasDraft:b}),lt=g?null:Lk(h,m.flags.has("working"),{startedAt:l===void 0?{}:{[h.id]:l},finishedAt:p===void 0?{}:{[h.id]:p}},u,m.state.kind==="needs-you"?f??null:void 0),dt=K4({thread:h,unread:m.unread,splitAvailable:R.isAvailable,isRoot:h.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:C}),Me=$(!1),kt=$(!1),Wt=(j,me)=>{if(j==="rename"){Me.current=!0,kt.current=!0,setTimeout(()=>{kt.current=!1},1500);return}n.onMenuAction(j,h,me)};z(()=>{if(T||B||!Me.current)return;let j=setTimeout(()=>{Me.current&&(Me.current=!1,n.setEditingId(h.id))},60);return()=>clearTimeout(j)},[T,B,n,h.id]);let Ee=j=>{kt.current&&(kt.current=!1,j.preventDefault(),Me.current&&(Me.current=!1,n.setEditingId(h.id)))},cn=n.showPullRequests&&t.depth===0?n.defaultBranchOf(h):void 0,un=h.environment?.branchName??null,ln=n.showPullRequests&&t.depth===0&&un!==null&&cn!==void 0&&un!==cn,We=L?d(Dk,{panes:L,label:`${h.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):ut?d(UC,{status:k}):d("span",{title:m.state.label,className:"inline-flex",children:d(Xi,{glyph:m.state.glyph,label:m.state.label})}),pt=j=>{if(c){j.preventDefault();return}if(R.isAvailable&&(j.metaKey||j.ctrlKey)){j.preventDefault(),n.onMenuAction("open-in-split",h);return}let me=Date.now();if(rs!==null&&rs.threadId===h.id&&me-rs.at<KS){rs=null,j.preventDefault(),n.setEditingId(h.id);return}rs={threadId:h.id,at:me},n.onNavigate()},Re=()=>{Q.current!==null&&clearTimeout(Q.current.timer),Q.current=null},he=$(!1),yt=C?{onTouchStart:j=>{let me=j.touches[0];me!==void 0&&(Re(),he.current=!1,Q.current={x:me.clientX,y:me.clientY,timer:setTimeout(()=>{Q.current=null,he.current=!0,YS(),O(!0)},qS)})},onTouchMove:j=>{let me=j.touches[0];Q.current===null||me===void 0||Math.hypot(me.clientX-Q.current.x,me.clientY-Q.current.y)>JS&&Re()},onTouchEnd:j=>{Re(),he.current&&j.preventDefault()},onTouchCancel:Re,onContextMenu:j=>j.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},ge=t.chip,St=fr(t.depth,n.nesting),te=d8(t.depth,{unread:m.unread,active:a}),dn=n.comfortable||m.note!==null,pn=m.quiet&&!a&&!c&&ge===null,Fe=T||B,ft=C?"":Fe?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",Pt=x("div",{ref:tt,"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,..._e.attributes,..._e.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:ne.rowProps.onPointerEnter,onPointerMove:ne.rowProps.onPointerMove,onPointerDown:j=>{ne.rowProps.onPointerDown(),c||R.splitProps.onPointerDown?.(j)},onPointerLeave:ne.rowProps.onPointerLeave,onFocus:ne.rowProps.onFocus,onBlur:ne.rowProps.onBlur,...yt,className:I("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",dn?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",a?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!a&&Fe&&"bg-sidebar-accent",L&&!a&&"bb-sidebar-open-in-split-row",_e.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)]",s!==null&&"sticky z-10 bg-sidebar",s!==null&&a&&"bg-state-active"),style:{paddingLeft:St,top:s??void 0},children:[d("a",{ref:H,href:h.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":h.id,"data-sidebar-rename-anchor":"","aria-label":Ct,"aria-keyshortcuts":w?.ariaKeyshortcuts,"aria-current":a?"page":void 0,onClick:pt,onDoubleClick:j=>{j.preventDefault(),n.setEditingId(h.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),d(vo,{rails:t.rails,nesting:n.nesting}),d("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:We}),t.nested?d("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",dn&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?d("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:d(F,{name:D.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,x("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[c?d(wo,{initial:h.displayTitle,label:"Thread name",onSave:j=>n.onRename(h.id,j),onDone:()=>{n.setEditingId(null),H.current?.focus()}}):d("span",{title:h.displayTitle,className:I("min-w-0 truncate",m.unread?"font-semibold":"font-normal",pn&&!te.muted&&"text-muted-foreground",te.small&&"text-xs",te.muted&&"text-[color:color-mix(in_oklch,var(--foreground)_72%,var(--sidebar))] group-hover/row:text-foreground"),children:h.displayTitle}),!c&&m.note!==null?x("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:`${m.note.prefix}: ${m.note.text}`,children:[x("span",{className:m.note.tone==="destructive"?"text-destructive":"text-attention",children:[m.note.prefix,":"]})," ",m.note.text]}):n.comfortable&&!c?d(QS,{row:t,multiHost:n.multiHost,defaultBranch:n.defaultBranchOf(h)}):null]}),t.hiddenBadge?d("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:d(F,{name:D.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,ln&&!c?d("span",{className:"pointer-events-none relative",children:d(Tk,{threadId:h.id})}):null,ge!==null&&!c?x("button",{type:"button","aria-expanded":ge.expanded,"aria-label":Vm(h.displayTitle,ge.count,ge.flag,ge.expanded),title:Vm(h.displayTitle,ge.count,ge.flag,ge.expanded),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onToggleChip(t)},onPointerDown:j=>j.stopPropagation(),onKeyDown:j=>j.stopPropagation(),"data-tone":B2(ge.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[B2(ge.flag)]),children:[ge.count,ge.flag!==null?d(Qi,{flag:ge.flag,className:"size-3"}):null,n.harnessIcon!=="hidden"?ge.providerIds.map(j=>d(ns,{display:n.provider(j),className:"size-3 [&_*]:size-3"},j)):null,d(F,{name:D.expand,"aria-hidden":!0,className:I("size-3 transition-transform duration-150",ge.expanded&&"rotate-90")})]}):null,c?null:d("span",{className:I("pointer-events-none relative inline-flex shrink-0 transition-opacity",w===null&&ft),children:d(ns,{display:zn,mode:n.harnessIcon})}),c?null:d("span",{className:"relative flex h-6 min-w-8 shrink-0 items-center justify-end gap-1",children:w!==null?d("kbd",{"aria-hidden":!0,className:"pointer-events-none rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground",children:w.label}):x(qe,{children:[lt!==null?d("span",{title:lt.label,"aria-label":lt.label,className:I("pointer-events-none text-[11px] tabular-nums transition-opacity",lt.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",ft),children:lt.text}):null,x("span",{className:I("flex items-center gap-0.5 transition-opacity",C?"relative":Fe?"absolute right-0 opacity-100":"absolute right-0 opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:[C?null:d("button",{type:"button","aria-label":g?"Unarchive thread":"Archive thread",title:g?"Unarchive":"Archive",className:an,onPointerDown:j=>j.stopPropagation(),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onMenuAction(g?"unarchive":"archive",h)},children:d(F,{name:g?D.unarchive:D.archive,"aria-hidden":!0,className:"size-4"})}),x(bo,{open:T,onOpenChange:O,children:[d(mr,{asChild:!0,children:d("button",{type:"button","aria-label":"Thread actions",className:C?"sr-only":an,onPointerDown:j=>j.stopPropagation(),onClick:j=>j.stopPropagation(),children:d(F,{name:D.more,"aria-hidden":!0,className:"size-4"})})}),d(Ek,{items:dt,sections:n.sections,currentSectionId:h.sectionId,onAction:Wt,onCloseAutoFocus:Ee})]})]})]})})]});return C?Pt:x(bk,{onOpenChange:j=>{j&&(se.current={pressed:!1,keyed:!1}),de(j)},children:[x(Sk,{closeDelay:100,open:ne.open,onOpenChange:ne.onOpenChange,children:[d(vk,{asChild:!0,disabled:c,children:d(Pk,{asChild:!0,children:Pt})}),!c&&!T&&!B?d(ih,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:d(Pu,{info:m,controller:n,showPullRequest:ln})}):null]}),d(Ak,{items:dt,sections:n.sections,currentSectionId:h.sectionId,onAction:Wt,onCloseAutoFocus:Ee,input:se})]})});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(x("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[d(F,{name:o?.isWorktree?D.worktree:D.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),d("span",{className:"truncate",children:s}),o?.isWorktree?d("span",{className:"sr-only",children:" (worktree)"}):null]},"branch")),t&&r.host!==null&&i.push(x("span",{className:"inline-flex shrink-0 items-center gap-0.5",children:[d(F,{name:D.machine,"aria-hidden":!0,className:"size-3"}),r.host.name]},"host")),i.length===0?null:d("span",{className:"flex min-w-0 items-center gap-2 text-xs leading-4 text-muted-foreground",children:i})}var Ok=bt(function({row:t,controller:n}){let{label:r,ariaLabel:o}=mk(t),i=t.scope!=="group";return x("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:fr(t.depth,n.nesting)+(i?0:2)},children:[d(vo,{rails:t.rails,nesting:n.nesting}),i?d("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:d(F,{name:D.more,className:"size-3.5"})}):d(F,{name:D.expand,"aria-hidden":!0,className:I("size-3 transition-transform",t.expanded&&"-rotate-90")}),r]})}),zk=bt(function({row:t,controller:n}){return x("div",{className:"relative flex h-7 w-full items-center gap-1.5 pr-2 text-xs text-muted-foreground max-md:pointer-coarse:h-9",style:{paddingLeft:fr(t.depth,n.nesting)},children:[d(vo,{rails:t.rails,nesting:n.nesting}),d("span",{"aria-hidden":!0,className:"size-4 shrink-0"}),d("span",{children:f8})]})}),Zk=bt(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 x("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:fr(t.depth,n.nesting)},children:[d(vo,{rails:t.rails,nesting:n.nesting}),d("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"}),d("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?d(ls,{providerKind:"environment",provider:s,className:"size-3.5"}):d(F,{name:t.environmentProviderId===null?D.machine:D.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?d(wo,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):d("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?d(Qi,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,d("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),d(F,{name:D.expand,"aria-hidden":!0,className:I("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),x(bo,{children:[d(mr,{asChild:!0,children:d("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:d(F,{name:D.more,"aria-hidden":!0,className:"size-4"})})}),x(hr,{align:"end",children:[x(Oe,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[d(F,{name:D.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),x(Oe,{onSelect:()=>i(!0),children:[d(F,{name:D.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),x(Oe,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[d(F,{name:D.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Vk=32,eP=28,jk={compact:28,comfortable:44};function Wk(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var tP=bt(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=E(!1),a=t.descriptor.label,c=Ls({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),u=n.compact?"":"opacity-0 group-hover/header:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100";return x("div",{ref:c.setNodeRef,...c.attributes,...c.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",style:{top:r?0:Vk},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",c.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?d(wo,{initial:a,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:l=>n.onRename(t,l),onDone:()=>s(!1),className:"text-xs"}):x("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${a} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:l=>l.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:[d("span",{className:"min-w-0 truncate",title:a,children:a}),d(F,{name:D.expand,"aria-hidden":!0,className:I("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:d(Cu,{counters:c8(t.counters,{collapsed:t.collapsed,more:!1}),className:"ml-auto"}),!i&&t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?d("button",{type:"button","aria-label":`New thread in ${a}`,title:`New thread in ${a}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:I(an,u),onPointerDown:l=>l.stopPropagation(),onClick:()=>n.onNewThread(t),children:d(F,{name:D.newThread,"aria-hidden":!0,className:"size-4"})}):!i&&!n.compact?d("span",{"aria-hidden":!0,className:"size-6 shrink-0"}):null,i?null:x(bo,{children:[d(mr,{asChild:!0,children:d("button",{type:"button","aria-label":`${a} actions`,className:I(an,u),onPointerDown:l=>l.stopPropagation(),children:d(F,{name:D.more,"aria-hidden":!0,className:"size-4"})})}),x(hr,{align:"end",className:"min-w-48",children:[x(Oe,{onSelect:()=>n.onMarkAllRead(t),children:[d(F,{name:D.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?x(Oe,{onSelect:()=>n.onNewThread(t),children:[d(F,{name:D.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?x(Oe,{onSelect:()=>n.onNewSection(),children:[d(F,{name:D.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,Wk(t)?x(Oe,{onSelect:()=>s(!0),children:[d(F,{name:D.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,d(ts,{}),t.descriptor.kind!=="pinned"?t.hidden?x(Oe,{onSelect:()=>n.onShow(t),children:[d(F,{name:D.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):x(Oe,{onSelect:()=>n.onHide(t),children:[d(F,{name:D.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,x(Oe,{onSelect:()=>n.onToggleArchived(),children:[d(F,{name:n.showArchived?D.check:D.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),x(Oe,{onSelect:()=>n.onCustomize(),children:[d(F,{name:D.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?x(Oe,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[d(F,{name:D.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})});function nP(e){return e.key}function rP({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 p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(m.isIntersecting)},{rootMargin:"240px 0px"});return p.observe(l),()=>p.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return d("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:dk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}var ah=bt(function({group:t,rowController:n,groupController:r,environmentProviders:o,dropStates:i,dropTargetGroupId:s,activeThreadId:a,editingId:c,now:u,stamps:l,inOverflow:p=!1}){let f=Ms({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}}),m=n.comfortable?jk.comfortable:jk.compact,h=t.descriptor.id==="pinned";return x("section",{ref:f.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:[d(tP,{group:t,controller:r,inOverflow:p,dropActive:s===t.descriptor.id}),t.collapsed?null:t.rows.length===0?d("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):d("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:pk(t.rows).map(g=>d(rP,{rows:g,rowHeight:m,forceMount:p||g.some(C=>C.type==="thread"&&(C.info.thread.id===a||C.info.thread.id===c)),children:g.map(C=>C.type==="thread"?d(Nk,{row:C,controller:n,groupId:t.descriptor.id,inPinned:h,dropState:i.get(C.info.thread.id)??null,stickyTop:C.stickyLevel!==null?Vk+eP+C.stickyLevel*m:null,active:C.info.thread.id===a,editing:C.info.thread.id===c,now:u,startedAt:l.startedAt[C.info.thread.id],finishedAt:l.finishedAt[C.info.thread.id],pendingAt:l.pendingAt[C.info.thread.id]},C.key):C.type==="older"?d(Ok,{row:C,controller:n},C.key):C.type==="empty"?d(zk,{row:C,controller:n},C.key):d(Zk,{row:C,controller:n,environmentProviders:o},C.key))},nP(g[0])))})]})});var ch=globalThis.__bbPluginRuntime;if(ch==null||ch.radixTooltip==null)throw new Error('Cannot load "@radix-ui/react-tooltip": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Lu=ch.radixTooltip,wV="default"in Lu?Lu.default:Lu,{Arrow:xV,Content:uh,Portal:Hk,Provider:Fk,Root:Bk,Tooltip:IV,TooltipArrow:_V,TooltipContent:SV,TooltipPortal:PV,TooltipProvider:LV,TooltipTrigger:MV,Trigger:lh,createTooltipScope:RV}=Lu;var Uk=Fk,Gk=Bk,dh=W(function({onFocus:t,...n},r){return d(lh,{ref:r,onFocus:o=>{t?.(o),!o.defaultPrevented&&!Zs()&&o.preventDefault()},...n})});dh.displayName=lh.displayName;var ph=W(function({avoidCollisions:t=!0,className:n,collisionPadding:r=8,sideOffset:o=4,...i},s){return d(Hk,{children:d(uh,{ref:s,...Pe(),avoidCollisions:t,collisionPadding:r,sideOffset:o,className:I("z-50 max-w-[min(20rem,var(--radix-tooltip-content-available-width))] overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground break-words animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-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",n),...i})})});ph.displayName=uh.displayName;var Kk=[{id:"organize",label:"Organize"},{id:"sort",label:"Sort"},{id:"display",label:"Display"},{id:"filter",label:"Filter"}],qk="flex gap-0.5 rounded-md bg-surface-recessed p-0.5",iP="flex items-center justify-center rounded-sm text-xs outline-none focus-visible:ring-2";function Jk(e){return I(iP,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function ze({label:e,value:t,current:n,onSelect:r,description:o}){let i=t===n;return x("button",{type:"button",role:"menuitemradio","aria-checked":i,onClick:()=>r(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:[d("span",{className:"mt-0.5 inline-flex size-4 shrink-0 items-center justify-center",children:i?d(F,{name:D.check,"aria-hidden":!0,className:"size-4"}):null}),x("span",{className:"flex min-w-0 flex-col",children:[d("span",{children:e}),o?d("span",{className:"text-xs text-muted-foreground",children:o}):null]})]})}function xo({label:e,checked:t,onChange:n,description:r}){return x("button",{type:"button",role:"menuitemcheckbox","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:[d("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?d(F,{name:D.check,"aria-hidden":!0,className:"size-3"}):null}),x("span",{className:"flex min-w-0 flex-col",children:[d("span",{children:e}),r?d("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function jt({children:e}){return d("p",{className:"px-2 pb-0.5 pt-2 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function sP({prefs:e,client:t,onPrefs:n,onClient:r}){let[o,i]=E("organize"),s=e.chronologicalSort==="none"?"updated":e.chronologicalSort,a=c=>{let l=e.threadLifecycles.includes(c)?e.threadLifecycles.filter(p=>p!==c):[...e.threadLifecycles,c];l.length>0&&n({threadLifecycles:l})};return x("div",{className:"flex flex-col gap-2",children:[d("div",{role:"tablist","aria-label":"Settings pages",className:qk,children:Kk.map(c=>d("button",{type:"button",role:"tab","aria-selected":o===c.id,onClick:()=>i(c.id),className:I(Jk(o===c.id),"flex-1 px-1.5 py-1 focus-visible:ring-ring"),children:c.label},c.id))}),x("div",{role:"tabpanel","aria-label":Kk.find(c=>c.id===o)?.label,className:"flex flex-col",children:[o==="organize"?x(qe,{children:[d(jt,{children:"Group by"}),d(ze,{label:"By project",value:"project",current:e.organizationMode,onSelect:c=>n({organizationMode:c})}),d(ze,{label:"Custom",description:"Your own sections",value:"chronological",current:e.organizationMode,onSelect:c=>n({organizationMode:c})}),d(ze,{label:"By machine",value:"machine",current:e.organizationMode,onSelect:c=>n({organizationMode:c})}),d(jt,{children:"Child threads"}),d(ze,{label:"Folded",description:"One flat level behind a chip",value:"folded",current:e.nesting,onSelect:c=>n({nesting:c})}),d(ze,{label:"Tree",description:"bb's indented tree",value:"tree",current:e.nesting,onSelect:c=>n({nesting:c})}),d(jt,{children:"Groups"}),d(xo,{label:"By environment",description:"Fold threads sharing a worktree into a folder",checked:e.environmentGrouping,onChange:c=>n({environmentGrouping:c})})]}):null,o==="sort"?x(qe,{children:[d(jt,{children:"Sort by"}),d(ze,{label:"Updated",value:"updated",current:s,onSelect:c=>n({chronologicalSort:c})}),d(ze,{label:"Created",value:"created",current:s,onSelect:c=>n({chronologicalSort:c})}),d(ze,{label:"Alphabetical",value:"alpha",current:s,onSelect:c=>n({chronologicalSort:c})}),d(jt,{children:"Direction"}),d(ze,{label:"Default",value:"default",current:e.sortDirection,onSelect:c=>n({sortDirection:c})}),d(ze,{label:"Ascending",value:"ascending",current:e.sortDirection,onSelect:c=>n({sortDirection:c})}),d(ze,{label:"Descending",value:"descending",current:e.sortDirection,onSelect:c=>n({sortDirection:c})}),d(jt,{children:"Order"}),d(xo,{label:"Working first",description:"Running threads on top under Updated",checked:e.workingFirst,onChange:c=>n({workingFirst:c})}),d(xo,{label:"Fold older threads",description:"Keep the 5 most recent quiet threads per group",checked:e.foldOlder,onChange:c=>n({foldOlder:c})})]}):null,o==="display"?x(qe,{children:[d(jt,{children:"Density"}),d(ze,{label:"Compact",description:"One line per thread",value:"compact",current:t.density,onSelect:c=>r({density:c})}),d(ze,{label:"Comfortable",description:"Adds branch and machine",value:"comfortable",current:t.density,onSelect:c=>r({density:c})}),d(jt,{children:"Harness icon"}),d(ze,{label:"Muted",description:"Monochrome, beside the age",value:"muted",current:e.harnessIcon,onSelect:c=>n({harnessIcon:c})}),d(ze,{label:"Colour",description:"Each provider's own tint",value:"colour",current:e.harnessIcon,onSelect:c=>n({harnessIcon:c})}),d(ze,{label:"Hidden",description:"Shown in the hover card only",value:"hidden",current:e.harnessIcon,onSelect:c=>n({harnessIcon:c})}),d(jt,{children:"Rows"}),d(xo,{label:"Pull requests",checked:e.showPullRequests,onChange:c=>n({showPullRequests:c})})]}):null,o==="filter"?x(qe,{children:[d(jt,{children:"Show"}),d(xo,{label:"Active",checked:e.threadLifecycles.includes("active"),onChange:()=>a("active")}),d(xo,{label:"Archived",checked:e.threadLifecycles.includes("archived"),onChange:()=>a("archived")}),d(jt,{children:"Child threads in Needs attention"}),d(ze,{label:"Blocked and orphaned failures",description:"A child that waits on you, is offline, or failed while its manager is idle",value:"blocked",current:e.childAttention,onSelect:c=>n({childAttention:c})}),d(ze,{label:"Everything",description:"Also every failed or unread child",value:"everything",current:e.childAttention,onSelect:c=>n({childAttention:c})})]}):null]})]})}function Yk({prefs:e,client:t,attentionCount:n,compact:r,onPrefs:o,onClient:i}){return x("div",{className:"sticky top-0 z-30 flex h-8 items-center gap-1 bg-sidebar pb-1",children:[d(Uk,{delayDuration:400,children:d("div",{role:"radiogroup","aria-label":"Filter threads",className:I(qk,"min-w-0 flex-1"),children:[["all","All"],["attention","Needs attention"]].map(([s,a])=>{let c=x("button",{type:"button",role:"radio","aria-checked":t.filter===s,"aria-description":s==="attention"?a8:void 0,onClick:()=>i({filter:s}),className:I(Jk(t.filter===s),"min-w-0 flex-1 gap-1 truncate px-1.5 py-0.5 focus-visible:ring-sidebar-ring"),children:[d("span",{className:"truncate",children:s==="attention"&&r?"Attention":a}),s==="attention"&&n>0?d("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:n}):null]},s);return s!=="attention"?c:x(Gk,{children:[d(dh,{asChild:!0,children:c}),d(ph,{side:"bottom",children:s8})]},s)})})}),x(Us,{children:[d(Vo,{asChild:!0,children:d("button",{type:"button","aria-label":"Thread Glance settings",title:"List settings",className:an,children:d(F,{name:D.settings,"aria-hidden":!0,className:"size-4"})})}),d(Ho,{align:"end",className:"w-64 p-2",children:d(sP,{prefs:e,client:t,onPrefs:o,onClient:i})})]})]})}var aP="thread-glance";function gr(e){return e instanceof Error?e.message:String(e)}async function Xk(e,t){try{await navigator.clipboard.writeText(e),rt.success(t)}catch(n){rt.error("Couldn't copy",{description:gr(n)})}}var cP={activationConstraint:{distance:4}},uP={activationConstraint:{delay:200,tolerance:6}},lP=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 Qk(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 d(dP,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function dP({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=_4(),[c,u]=w4(),l=kh({experimental_lifecycles:i.threadLifecycles}),p=gh(),f=bh(),{providers:m}=hh(),{providers:h}=yh(),g=xh(),{stamps:C,markSeen:w,clearSeen:k}=L4(),b=S4(),R=zC(),L=q(()=>{let v=Object.values(b).filter(S=>S>Date.now());return v.length>0?Math.min(...v):null},[b]),T=x4(L),[O,B]=E(null),[de,ne]=E(null),[se,H]=E(null),[Q,ie]=E(""),_e=$(new Map),[gt,tt]=E(!1),[zn,ut]=E(!1),[Ct,lt]=E(null),[dt,Me]=E(()=>new Map),[kt,Wt]=E(null),[Ee,cn]=E(()=>new Map),un=$(new Set),ln=$(new Map),We=l.status==="ready",pt=l.threads,Re=q(()=>new Map(pt.map(v=>[v.id,v])),[pt]),he=q(()=>We?F4({threads:pt,activeThreadId:e,finishedAt:C.finishedAt,seenAt:C.seenAt,draftIds:g,scheduled:b,now:T,notes:R,childAttention:i.childAttention}):null,[We,pt,e,C.finishedAt,C.seenAt,g,b,T,R,i.childAttention]),{targets:yt,prune:ge}=M5(s?he:null,e),St=$(null),te=q(()=>he===null?null:I8(St.current,b8({forest:he,threads:pt,projects:l.projects,sections:l.sections,prefs:i,filter:c.filter,activeThreadId:e,targets:yt})),[he,pt,l.projects,l.sections,i,c.filter,e,yt]);nt(()=>{St.current=te},[te]);let dn=$(null);z(()=>{let v=[dn.current,e].filter(S=>S!==null&&Re.get(S)?.parentThreadId!=null);dn.current=e,JC(),v.length>0&&w([...new Set(v)])},[e]),z(()=>{if(!(!i.showPullRequests||he===null))for(let v of he.families){let S=v.root.thread,P=S.projectId;S.environment?.branchName==null||S.host===null||un.current.has(P)||(un.current.add(P),f.projects.branches({projectId:P,hostId:S.host.id,limit:"1"}).then(U=>cn(Y=>new Map(Y).set(P,U.defaultBranch)),()=>cn(U=>new Map(U).set(P,null))))}},[i.showPullRequests,he,f]);let pn=q(()=>X4(m),[m]),Fe=q(()=>{let v=new Map,S=new Map(m.map(P=>[P.id,P]));return P=>{let U=v.get(P);if(U===void 0){let Y=S.get(P);U={id:P,name:Y?.displayName??P,provider:Y?.logoUrl?Y:null,mark:Q4(P,pn)},v.set(P,U)}return U}},[m,pn]),ft=Z(v=>{Object.keys(v.patch).length>0&&a(v.patch),v.drop!==null&&ge(v.drop)},[a,ge]),Pt=Z((v,S,P)=>{let U={activeThreadId:e,finishedAt:C.finishedAt,seenAt:C.seenAt},Y=ye=>re=>rt.error(ye,{description:gr(re)});switch(v){case"open-in-split":p.open(S.id,{split:!0}),n();return;case"copy-link":Xk(new URL(S.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":Xk(S.id,"Thread ID copied");return;case"mark-read":Hi(S,U)&&w([S.id]),p.setRead(S.id,!0).catch(Y("Couldn't mark read"));return;case"mark-unread":k([S.id]),p.setRead(S.id,!1).catch(Y("Couldn't mark unread"));return;case"pin":case"unpin":p.setPinned(S.id,v==="pin").catch(Y("Couldn't change the pin"));return;case"move-to-section":f.threads.update({threadId:S.id,sectionId:P??null}).catch(Y("Couldn't move the thread"));return;case"rename":B(S.id);return;case"details":ne(S.id);return;case"move":ie(""),H(S.id);return;case"archive":p.archive(S.id);return;case"unarchive":f.threads.unarchive({threadId:S.id}).catch(Y("Couldn't unarchive"));return;case"delete":setTimeout(()=>p.requestDelete(S.id),0);return}},[p,e,k,w,n,f,C.finishedAt,C.seenAt]),j=$(Pt);nt(()=>{j.current=Pt});let me=$({forest:he,view:te,prefs:i,byId:Re,activeThreadId:e,stamps:C});nt(()=>{me.current={forest:he,view:te,prefs:i,byId:Re,activeThreadId:e,stamps:C}});let os=Z((v,S)=>{let P=`${v}:${S}`,U=ln.current.get(P);if(U===void 0){let Y=me.current.byId.get(v),ye=Y?.providerId??"",re=_e.current.get(ye);re===void 0&&(re=f.providers.models(Y?.host?{providerId:ye,hostId:Y.host.id}:{providerId:ye}).then(Se=>Se.models,()=>[]),_e.current.set(ye,re));let Be=re;U=f.threads.defaultExecutionOptions({threadId:v}).then(async Se=>Se===null?null:{model:HC(Se.model,await Be),reasoningLevel:Se.reasoningLevel},()=>null),ln.current.set(P,U)}return U},[f]),is=te?.multiHost??!1,Lt=he!==null&&te!==null,Mt=q(()=>Lt?{compact:t,comfortable:c.density==="comfortable",setEditingId:B,showPullRequests:i.showPullRequests,harnessIcon:i.harnessIcon,defaultBranchOf:v=>Ee.has(v.projectId)?Ee.get(v.projectId)??null:void 0,multiHost:is,provider:Fe,sections:l.sections,mode:i.organizationMode,nesting:i.nesting,onNavigate:n,onToggleChip:v=>{let{prefs:S,forest:P}=me.current;ft(e8(v,S,P))},onToggleOlder:v=>{let{prefs:S,forest:P,view:U}=me.current,Y=U.groups.find(ye=>ye.descriptor.id===v.scopeId)??null;ft(t8(v,S,Y,P))},onToggleEnvironment:v=>{let{collapsedEnvironments:S}=me.current.prefs;a({collapsedEnvironments:S.includes(v)?S.filter(P=>P!==v):[...S,v]})},onMenuAction:(v,S,P)=>j.current(v,S,P),onRename:(v,S)=>p.rename(v,S),loadModel:os,openDetails:ne,onNewThreadInEnvironment:(v,S,P)=>{p.openNewThread({projectId:S,environmentId:v,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(v,S)=>{await f.environments.update({environmentId:v,name:S})},onArchiveEnvironment:v=>{f.environments.archiveThreads({environmentId:v}).catch(S=>rt.error("Couldn't archive the environment",{description:gr(S)}))}}:null,[Lt,t,c.density,i.showPullRequests,i.harnessIcon,i.organizationMode,i.nesting,Ee,is,Fe,l.sections,n,ft,a,p,f,os]),Zn=q(()=>({now:T,stamps:C,notes:R,familyOf:v=>he?.familyOf.get(v)}),[T,C,R,he]),Io=q(()=>{let v=e===null||he===null?void 0:he.familyOf.get(e);return v===void 0?null:ou(v.root.thread,{mode:i.organizationMode,projects:l.projects})},[e,he,i.organizationMode,l.projects]),Rt=i.threadLifecycles.includes("archived"),Cr=q(()=>{if(!Lt)return null;let v=S=>{let{forest:P,activeThreadId:U,stamps:Y}=me.current,ye=S.rootIds.flatMap(Se=>P.familyOf.get(Se)??[]),re=r8(ye,{activeThreadId:U,finishedAt:Y.finishedAt,seenAt:Y.seenAt}),Be=()=>{re.seen.length>0&&w(re.seen);for(let Se of re.read)p.setRead(Se,!0).catch(()=>{})};re.read.length===0?rt(`Nothing unread in ${S.descriptor.label}`):re.read.length>q4?lt({title:`Mark ${re.read.length} threads read?`,description:`Every unread thread in ${S.descriptor.label}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:Be}):Be()};return{compact:t,activeGroupId:Io,showArchived:Rt,onToggleArchived:()=>a({threadLifecycles:me.current.prefs.threadLifecycles.includes("archived")?["active"]:["active","archived"]}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:S=>{let{prefs:P,forest:U}=me.current;ft(n8(S,P,U))},onNewThread:S=>{let P=S.descriptor;p.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:S=>a({hiddenGroups:[...me.current.prefs.hiddenGroups,S.descriptor.id]}),onShow:S=>a({hiddenGroups:me.current.prefs.hiddenGroups.filter(P=>P!==S.descriptor.id)}),onCustomize:()=>tt(!0),onRename:async(S,P)=>{S.descriptor.kind==="section"?await f.threadSections.update({id:S.descriptor.entityId,name:P}):S.descriptor.kind==="machine"&&await f.hosts.update({hostId:S.descriptor.entityId,name:P})},onRemove:S=>lt({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{f.threadSections.delete({id:S.descriptor.entityId}).catch(P=>rt.error("Couldn't remove the section",{description:gr(P)}))}}),onMarkAllRead:v,onNewSection:()=>ut(!0)}},[Lt,t,Io,Rt,i.organizationMode,ft,p,n,a,f,w]),Mu=Fh(_s(Oo,cP),_s(zo,uP),_s(_r)),kr=Z(v=>{let S=v.over;if(S===null)return null;let P=S.data.current;if(P===void 0)return null;if(P.kind==="group")return{kind:"group",groupId:P.groupId};let U=Qk(v),Y=S.rect,ye=U===null?.5:(U-Y.top)/Math.max(Y.height,1),re=ye<.25?"before":ye>.75?"after":"middle";return{kind:"thread",threadId:P.threadId,zone:re,inPinned:P.inPinned??!1}},[]),fn=q(()=>{let v=new Map;for(let P of[...te?.groups??[],...te?.more??[]])for(let U of P.rows)U.type==="thread"&&v.set(U.info.thread.id,P.descriptor.id);let S=te?.groups.find(P=>P.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:P=>Re.get(P)?.parentThreadId??null,pinnedOrder:(S?.rows??[]).flatMap(P=>P.type==="thread"&&P.depth===0?[P.info.thread.id]:[]),groupOfThread:P=>v.get(P)??"threads"}},[te,i.organizationMode,Re]),ss=Z(v=>{let S=v.active.data.current,P=kr(v);if(S?.kind!=="thread"||P===null){Me(new Map),Wt(S?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Me(new Map),Wt(P.groupId);return}Wt(null);let U=V2(S.thread,P,fn),Y=U.type==="blocked"?"blocked":U.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Me(new Map([[P.threadId,Y]]))},[kr,fn]),as=Z(async v=>{switch(v.type){case"nest":v.unpinFirst&&await f.threads.unpin({threadId:v.threadId}),await f.threads.update({threadId:v.threadId,parentThreadId:v.parentThreadId});return;case"move":await f.threads.update({threadId:v.threadId,sectionId:v.sectionId,...v.detach?{parentThreadId:null}:{}});return;case"detach":await f.threads.update({threadId:v.threadId,parentThreadId:null});return;case"pin":await p.setPinned(v.threadId,!0);return;case"unpin":await p.setPinned(v.threadId,!1);return;case"reorder-pinned":await f.threads.reorderPinned({threadId:v.threadId,previousThreadId:v.previousThreadId,nextThreadId:v.nextThreadId});return;case"blocked":case"unchanged":return}},[f,p]),cs=Z(v=>{Me(new Map),Wt(null);let S=v.active.data.current,P=kr(v);if(S===void 0||P===null||te===null)return;if(S.kind==="group"){if(P.kind!=="group"||P.groupId===S.groupId)return;let Y=v.over.rect,ye=Qk(v),re=ye!==null&&ye>Y.top+Y.height/2?"after":"before",Be=Ui[i.organizationMode];a({[Be]:q2(te.order,S.groupId,P.groupId,re)});return}let U=V2(S.thread,P,fn);as(U).catch(Y=>rt.error("Failed to move thread.",{description:gr(Y)}))},[kr,te,i.organizationMode,a,fn,as]),Ru=Z(()=>Me(new Map),[]),Tu=q(()=>{if(te===null)return[];let v=new Map([...te.groups,...te.more].map(S=>[S.descriptor.id,S]));return te.order.flatMap(S=>{let P=v.get(S);return P===void 0?[]:[{id:S,label:P.descriptor.label,hidden:P.hidden,hideable:S!=="pinned"}]})},[te]);if(l.status==="error")return x("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[d("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?d(Ve,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):d(Ve,{size:"sm",variant:"outline",onClick:()=>{f.plugins.reload({pluginId:aP}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(l.status==="loading"||!s||te===null||Mt===null||Cr===null)return d("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(v=>d("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},v))});let Tt=l.experimental_archived,Ce=de===null?null:he?.infos.get(de)??null,we=se===null?null:Re.get(se)??null;return d(au.Provider,{value:Zn,children:x("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[d(Yk,{prefs:i,client:c,attentionCount:te.attentionCount,compact:t,onPrefs:a,onClient:u}),pt.length===0?x("div",{className:"flex flex-col items-start gap-2 px-3 py-4 text-sm text-muted-foreground",children:[d("p",{children:"No threads yet."}),x(Ve,{size:"sm",variant:"outline",onClick:()=>p.openNewThread({focusPrompt:!0}),children:[d(F,{name:"Plus","aria-hidden":!0}),"New thread"]})]}):x(r5,{sensors:Mu,collisionDetection:lP,onDragMove:ss,onDragEnd:cs,onDragCancel:Ru,children:[te.groups.length===0&&c.filter==="attention"?d("p",{className:"px-3 py-3 text-sm text-muted-foreground",children:"Nothing needs your attention."}):null,te.groups.map(v=>d(ah,{group:v,rowController:Mt,groupController:Cr,environmentProviders:h,dropStates:dt,dropTargetGroupId:kt,activeThreadId:e,editingId:O,now:T,stamps:C},v.descriptor.id)),te.more.length>0?x(Us,{children:[d(Vo,{asChild:!0,children:x("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${te.more.length} hidden ${te.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:[d("span",{className:"flex-1 font-medium",children:"More"}),d(Cu,{counters:te.moreCounters}),d(F,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),d(Ho,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:d("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:te.more.map(v=>d(ah,{group:v,rowController:Mt,groupController:Cr,environmentProviders:h,dropStates:dt,dropTargetGroupId:kt,activeThreadId:e,editingId:O,now:T,stamps:C,inOverflow:!0},v.descriptor.id))})})]}):null]}),Tt!==null?x("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[Tt.status==="loading"?d("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):Tt.status==="error"?d("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,Tt.hasNextPage||Tt.isFetchNextPageError?d(Ve,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:Tt.isFetchingNextPage,className:I("h-7 text-xs text-muted-foreground"),onClick:()=>{Tt.fetchNextPage()},children:Tt.isFetchingNextPage?"Loading\u2026":Tt.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,d(AC,{open:gt,items:Tu,onOpenChange:tt,onToggleHidden:v=>a({hiddenGroups:i.hiddenGroups.includes(v)?i.hiddenGroups.filter(S=>S!==v):[...i.hiddenGroups,v]}),onMove:(v,S)=>{let P=te.order.indexOf(v),U=te.order[P+S];U!==void 0&&a({[Ui[i.organizationMode]]:q2(te.order,v,U,S<0?"before":"after")})}}),d(EC,{open:zn,onOpenChange:ut,onCreate:async v=>{try{await f.threadSections.create({name:v})}catch(S){throw rt.error("Couldn't create the section",{description:gr(S)}),S}}}),d(DC,{open:Ct!==null,title:Ct?.title??"",description:Ct?.description??"",confirmLabel:Ct?.confirmLabel??"OK",destructive:Ct?.destructive,onOpenChange:v=>!v&&lt(null),onConfirm:()=>{Ct?.run(),lt(null)}}),Ce!=null?d(NC,{open:!0,title:Ce.thread.displayTitle,onOpenChange:v=>!v&&ne(null),children:d(Pu,{info:Ce,controller:Mt,showPullRequest:i.showPullRequests,actions:{open:()=>{ne(null),p.open(Ce.thread.id),n()},toggleRead:()=>Pt(Ce.unread?"mark-read":"mark-unread",Ce.thread)}})}):null,we!==null&&he!==null?d(OC,{open:!0,title:we.displayTitle,targets:ZC(we.id,he,Q),query:Q,onQueryChange:ie,onOpenChange:v=>!v&&H(null),onMove:v=>{(async()=>{v!==null&&(we.pinnedAt!==null||we.isPinned)&&await f.threads.unpin({threadId:we.id}),await f.threads.update({threadId:we.id,parentThreadId:v})})().catch(P=>rt.error("Failed to move thread.",{description:gr(P)}))}}):null]})})}var TH=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{TH 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 M0(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;M0(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 R0=new Set(["type","properties","required","additionalProperties"]),L0=["oneOf","anyOf"];function P0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Op(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!R0.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]??P0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Op(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=P0(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 vI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of R0)if(o in e)return;let n=t.filter(o=>L0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Op(t);else{let o=n[0],i=L0.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=>Op([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,xi(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)):xi(u,h),xi(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())M0(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)??[])vI(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)}xi(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:Xr(t,"input",e.processors),output:Xr(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 zp=(e,t={})=>n=>{let r=Sn({...n,processors:t});return le(e,r),Ln(r,e),Pn(r,e)},Xr=(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 Qr=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},eo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},T0=(e,t)=>{Qr(e,"minimum",t),eo(e,"maximum",t)},E0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},N0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},O0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},z0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},$0=(e,t)=>Qr(e,"minimum",t.minimum),A0=(e,t)=>eo(e,"maximum",t.maximum),D0=e=>(t,n)=>{z0(t,n.format);let[r,o]=e[n.format];Qr(t,"minimum",r),eo(t,"maximum",o)},wI={greater_than:(e,t)=>Qr(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>eo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>E0(e,t.value),number_format:D0(Uo),bigint_format:D0(Go),min_length:$0,max_length:A0,length_equals:(e,t)=>T0(e,t.length),min_size:$0,max_size:A0,size_equals:(e,t)=>T0(e,t.size),string_format:(e,t)=>{z0(e,t.format),t.pattern&&N0(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)=>O0(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)wI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Qr(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Qr(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&eo(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&eo(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&E0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&O0(t,o.mime);for(let i of o.patterns??[])N0(t,i);return t}var xI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},II=new Map([[xa,Ul],[ui,Gl]]),Z0=e=>II.get(e)??e,Wp=(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=xI[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(Z0);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}))])}},Vp=(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 I of a)Number.isFinite(I)&&I!==0?h.add(Math.abs(I)):Me(e,t,o,r,`A multipleOf divisor of ${I} cannot be represented in JSON Schema`);let[g,...k]=h;g!==void 0&&(o.multipleOf=g),k.length&&(o.allOf=[...o.allOf??[],...k.map(I=>({multipleOf:I}))])}},Fp=(e,t,n,r)=>{n.type="boolean"},Hp=(e,t,n,r)=>{Me(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Bp=(e,t,n,r)=>{Me(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Up=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Gp=(e,t,n,r)=>{Me(e,t,n,r,"Undefined cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{Me(e,t,n,r,"Void cannot be represented in JSON Schema")},qp=(e,t,n,r)=>{n.not={}},Yp=(e,t,n,r)=>{},Jp=(e,t,n,r)=>{},Xp=(e,t,n,r)=>{Me(e,t,n,r,"Date cannot be represented in JSON Schema")},Qp=(e,t,n,r)=>{let o=e._zod.def,i=Sr(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},ef=(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},tf=(e,t,n,r)=>{Me(e,t,n,r,"NaN cannot be represented in JSON Schema")},nf=(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},rf=(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})))},of=(e,t,n,r)=>{n.type="boolean"},sf=(e,t,n,r)=>{Me(e,t,n,r,"Custom types cannot be represented in JSON Schema")},af=(e,t,n,r)=>{Me(e,t,n,r,"Function types cannot be represented in JSON Schema")},cf=(e,t,n,r)=>{Me(e,t,n,r,"Transforms cannot be represented in JSON Schema")},uf=(e,t,n,r)=>{Me(e,t,n,r,"Map cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{Me(e,t,n,r,"Set cannot be represented in JSON Schema")},df=(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 Ii(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Ii(t.out):t.type==="catch"?Ii(t.innerType):e._zod.optin}var pf=(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"?Ii(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)},kc=(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},ff=(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)},mf=(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"?Ii(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 Zp(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=Zp(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(I=>Zp(e,I,n));k.some((I,y)=>I!==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:ni).source)),f}var jp=new WeakMap;function _I(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 jp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=Zp(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 hf=(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,Z0(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=jp.get(t);l||(l=[],jp.set(t,l),t.deferred.push(()=>_I(t))),l.push(e)}o.additionalProperties=le(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&Ii(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))}},gf=(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"}]},Cf=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},kf=Symbol();function j0(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"),kf):JSON.parse(s)}var 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;let s=j0(o.defaultValue,e,t,n,r);s!==kf&&(n.default=s)},bf=(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=j0(o.defaultValue,e,t,n,r);s!==kf&&(n._prefault=s)},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;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},wf=(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},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,n.readOnly=!0},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},yc=(e,t,n,r)=>{let o=e._zod.def;le(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},_f=(e,t,n,r)=>{let o=e._zod.innerType;le(o,t,r);let i=t.seen.get(e);i.ref=o},Cc={string:Wp,number:Vp,boolean:Fp,bigint:Hp,symbol:Bp,null:Up,undefined:Gp,void:Kp,never:qp,any:Yp,unknown:Jp,date:Xp,enum:Qp,literal:ef,nan:tf,template_literal:nf,file:rf,success:of,custom:sf,function:af,transform:cf,map:uf,set:lf,array:df,object:pf,union:kc,intersection:ff,tuple:mf,record:hf,nullable:gf,nonoptional:Cf,default:yf,prefault:bf,catch:vf,pipe:wf,readonly:xf,promise:If,optional:yc,lazy:_f};function bc(e,t){if("_idmap"in e){let r=e,o=Sn({...t,processors:Cc}),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:Cc});return le(e,n),Ln(n,e),Pn(n,e)}var vc=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:Cc,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 W0={};var co={};St(co,{ZodAny:()=>Gf,ZodArray:()=>Jf,ZodBase64:()=>jc,ZodBase64URL:()=>Wc,ZodBigInt:()=>so,ZodBigIntFormat:()=>Hc,ZodBoolean:()=>io,ZodCIDRv4:()=>zc,ZodCIDRv6:()=>Zc,ZodCUID:()=>Tc,ZodCUID2:()=>$c,ZodCatch:()=>k2,ZodCodec:()=>Di,ZodCreditCard:()=>Zf,ZodCustom:()=>Ei,ZodCustomStringFormat:()=>cr,ZodDate:()=>Pi,ZodDefault:()=>p2,ZodDiscriminatedUnion:()=>Qf,ZodE164:()=>Vc,ZodEmail:()=>Lc,ZodEmoji:()=>Mc,ZodEnum:()=>no,ZodExactOptional:()=>Kc,ZodFile:()=>c2,ZodFunction:()=>P2,ZodGUID:()=>Pc,ZodIBAN:()=>jf,ZodIPv4:()=>Nc,ZodIPv6:()=>Oc,ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,ZodInstanceOf:()=>T2,ZodIntersection:()=>e2,ZodJWT:()=>Fc,ZodKSUID:()=>Ec,ZodLazy:()=>_2,ZodLiteral:()=>a2,ZodMAC:()=>zf,ZodMap:()=>i2,ZodNaN:()=>b2,ZodNanoID:()=>Rc,ZodNever:()=>qf,ZodNonOptional:()=>qc,ZodNull:()=>Bf,ZodNullable:()=>d2,ZodNumber:()=>oo,ZodNumberFormat:()=>ur,ZodObject:()=>Ri,ZodOptional:()=>$i,ZodPipe:()=>Ai,ZodPrefault:()=>m2,ZodPreprocess:()=>v2,ZodPromise:()=>L2,ZodReadonly:()=>w2,ZodRecord:()=>to,ZodSet:()=>s2,ZodString:()=>ro,ZodStringFormat:()=>de,ZodSuccess:()=>C2,ZodSymbol:()=>Ff,ZodTemplateLiteral:()=>I2,ZodTransform:()=>u2,ZodTuple:()=>n2,ZodType:()=>J,ZodULID:()=>Ac,ZodURL:()=>Li,ZodUUID:()=>Ht,ZodUndefined:()=>Hf,ZodUnion:()=>Ti,ZodUnknown:()=>Kf,ZodVoid:()=>Yf,ZodXID:()=>Dc,ZodXor:()=>Xf,_ZodString:()=>Sc,_default:()=>f2,_function:()=>Q9,any:()=>R9,array:()=>Mi,base64:()=>l9,base64url:()=>d9,bigint:()=>_9,boolean:()=>Vf,catch:()=>y2,check:()=>e4,cidrv4:()=>c9,cidrv6:()=>u9,codec:()=>q9,creditCard:()=>f9,cuid:()=>e9,cuid2:()=>t9,currencyCode:()=>y9,custom:()=>t4,date:()=>$9,describe:()=>n4,discriminatedUnion:()=>z9,e164:()=>p9,email:()=>H0,emoji:()=>X0,enum:()=>Uc,exactOptional:()=>l2,file:()=>B9,float32:()=>v9,float64:()=>w9,function:()=>Q9,guid:()=>B0,hash:()=>b9,hex:()=>k9,hostname:()=>C9,httpUrl:()=>J0,iban:()=>m9,instanceof:()=>o4,int:()=>Ic,int32:()=>x9,int64:()=>S9,intersection:()=>t2,invertCodec:()=>Y9,ipv4:()=>i9,ipv6:()=>a9,json:()=>s4,jwt:()=>h9,keyof:()=>A9,ksuid:()=>o9,lazy:()=>S2,literal:()=>H9,looseObject:()=>N9,looseRecord:()=>j9,mac:()=>s9,map:()=>W9,meta:()=>r4,nan:()=>K9,nanoid:()=>Q0,nativeEnum:()=>F9,never:()=>Bc,nonoptional:()=>g2,null:()=>Uf,nullable:()=>Si,nullish:()=>U9,number:()=>Wf,object:()=>D9,optional:()=>sr,partialRecord:()=>Z9,pipe:()=>_c,prefault:()=>h2,preprocess:()=>a4,promise:()=>X9,readonly:()=>x2,record:()=>o2,refine:()=>M2,set:()=>V9,strictObject:()=>E9,string:()=>_i,stringFormat:()=>g9,stringbool:()=>i4,success:()=>G9,superRefine:()=>R2,symbol:()=>P9,templateLiteral:()=>J9,transform:()=>Gc,tuple:()=>r2,uint32:()=>I9,uint64:()=>L9,ulid:()=>n9,undefined:()=>M9,union:()=>ao,unknown:()=>ir,url:()=>Y0,uuid:()=>U0,uuidv4:()=>G0,uuidv6:()=>K0,uuidv7:()=>q0,void:()=>T9,xid:()=>r9,xor:()=>O9});var wc={};St(wc,{endsWith:()=>Hr,gt:()=>Vt,gte:()=>mt,includes:()=>Vr,length:()=>rr,lowercase:()=>jr,lt:()=>Wt,lte:()=>ft,maxLength:()=>nr,maxSize:()=>_n,mime:()=>Ur,minLength:()=>en,minSize:()=>Ft,multipleOf:()=>In,negative:()=>fc,nonnegative:()=>hc,nonpositive:()=>mc,normalize:()=>Gr,overwrite:()=>Tt,positive:()=>pc,properties:()=>Br,property:()=>gc,regex:()=>Zr,size:()=>tr,slugify:()=>Jr,startsWith:()=>Fr,toLowerCase:()=>qr,toUpperCase:()=>Yr,trim:()=>Kr,uppercase:()=>Wr});var V0=new WeakSet([Object.prototype,Error.prototype]);function xc(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 F0=(e,t)=>{Sl.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);V0.has(n)||(V0.add(n),xc(n,"format",r=>o=>Xo(r,o)),xc(n,"flatten",r=>o=>Jo(r,o)),xc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Lr,2)}),xc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Lr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},LI=C("ZodError",F0),lt=C("ZodError",F0,void 0,{Parent:Error});var Sf=Tr(lt),Lf=$r(lt),Pf=Ar(lt),Mf=Dr(lt),Rf=ea(lt),Tf=ta(lt),$f=na(lt),Af=ra(lt),Df=oa(lt),Ef=ia(lt),Nf=sa(lt),Of=aa(lt);function MI(){Ne.localeError||ye(Za())}function ar(){Ne.memoizer||ye({memoizer:gi()})}var J=C("ZodType",(e,t)=>(MI(),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(M2(e,t))},superRefine(e,t){return this.check(R2(e,t))},overwrite(e){return this.check(Tt(e))},optional(){return sr(this)},exactOptional(){return l2(this)},nullable(){return Si(this)},nullish(){return sr(Si(this))},nonoptional(e){return g2(this,e)},array(){return Mi(this)},or(e){return ao([this,e])},and(e){return t2(this,e)},transform(e){return _c(this,Gc(e))},default(e){return f2(this,e)},prefault(e){return h2(this,e)},catch(e){return y2(this,e)},pipe(e){return _c(this,e)},readonly(){return x2(this)},describe(e){let t=this.clone();return Ve.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ve.get(this);let t=this.clone();return Ve.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",{...ka(this),jsonSchema:{input:Xr(this,"input"),output:Xr(this,"output")}})},set"~standard"(e){O.own(this,"~standard",e)},parse:function e(t,n){return Sf(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Lf(this,t,n,{callee:e})},safeParse(e,t){return Pf(this,e,t)},async safeParseAsync(e,t){return Mf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){O.own(this,"spa",e)},validate(e,t){return Qo(this,e,t)},validateAsync(e,t){return ei(this,e,t)},encode:function e(t,n){return Rf(this,t,n,{callee:e})},decode:function e(t,n){return Tf(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await $f(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Af(this,t,n,{callee:e})},safeEncode(e,t){return Df(this,e,t)},safeDecode(e,t){return Ef(this,e,t)},async safeEncodeAsync(e,t){return Nf(this,e,t)},async safeDecodeAsync(e,t){return Of(this,e,t)},toJSONSchema(e){return zp(this,{})(e)},get description(){return Ve.get(this)?.description},get _def(){return this._zod.def}}),Sc=C("_ZodString",(e,t)=>{Yn.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(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(Vr(...e))},startsWith(...e){return this.check(Fr(...e))},endsWith(...e){return this.check(Hr(...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(jr(e))},uppercase(e){return this.check(Wr(e))},trim(){return this.check(Kr())},normalize(...e){return this.check(Gr(...e))},toLowerCase(){return this.check(qr())},toUpperCase(){return this.check(Yr())},slugify(){return this.check(Jr())}})),ro=C("ZodString",(e,t)=>{Yn.init(e,t),Sc.init(e,t)},{email(e){return this.check(Ba(Lc,e))},url(e){return this.check(ki(Li,e))},jwt(e){return this.check(dc(Fc,e))},emoji(e){return this.check(Ja(Mc,e))},guid(e){return this.check(Ua(Pc,e))},uuid(e){return this.check(Ga(Ht,e))},uuidv4(e){return this.check(Ka(Ht,e))},uuidv6(e){return this.check(qa(Ht,e))},uuidv7(e){return this.check(Ya(Ht,e))},nanoid(e){return this.check(Xa(Rc,e))},cuid(e){return this.check(Qa(Tc,e))},cuid2(e){return this.check(ec($c,e))},ulid(e){return this.check(tc(Ac,e))},base64(e){return this.check(cc(jc,e))},base64url(e){return this.check(uc(Wc,e))},xid(e){return this.check(nc(Dc,e))},ksuid(e){return this.check(rc(Ec,e))},ipv4(e){return this.check(oc(Nc,e))},ipv6(e){return this.check(ic(Oc,e))},cidrv4(e){return this.check(sc(zc,e))},cidrv6(e){return this.check(ac(Zc,e))},e164(e){return this.check(lc(Vc,e))},datetime(e){return this.check(yi(Mn,e))},date(e){return this.check(bi(Rn,e))},time(e){return this.check(vi(Tn,e))},duration(e){return this.check(wi($n,e))}});function _i(e){return ep(ro,e)}var de=C("ZodStringFormat",(e,t)=>{ue.init(e,t),Sc.init(e,t)}),Mn=C("ZodISODateTime",(e,t)=>{Ud.init(e,t),de.init(e,t)}),Rn=C("ZodISODate",(e,t)=>{Gd.init(e,t),de.init(e,t)}),Tn=C("ZodISOTime",(e,t)=>{Kd.init(e,t),de.init(e,t)}),$n=C("ZodISODuration",(e,t)=>{qd.init(e,t),de.init(e,t)}),Lc=C("ZodEmail",(e,t)=>{Ed.init(e,t),de.init(e,t)});function H0(e){return Ba(Lc,e)}var Pc=C("ZodGUID",(e,t)=>{Ad.init(e,t),de.init(e,t)});function B0(e){return Ua(Pc,e)}var Ht=C("ZodUUID",(e,t)=>{Dd.init(e,t),de.init(e,t)});function U0(e){return Ga(Ht,e)}function G0(e){return Ka(Ht,e)}function K0(e){return qa(Ht,e)}function q0(e){return Ya(Ht,e)}var Li=C("ZodURL",(e,t)=>{zd.init(e,t),de.init(e,t)});function Y0(e){return ki(Li,e)}function J0(e){return ki(Li,{protocol:ti,hostname:ql,...O.normalizeParams(e)})}var Mc=C("ZodEmoji",(e,t)=>{Zd.init(e,t),de.init(e,t)});function X0(e){return Ja(Mc,e)}var Rc=C("ZodNanoID",(e,t)=>{jd.init(e,t),de.init(e,t)});function Q0(e){return Xa(Rc,e)}var Tc=C("ZodCUID",(e,t)=>{Wd.init(e,t),de.init(e,t)});function e9(e){return Qa(Tc,e)}var $c=C("ZodCUID2",(e,t)=>{Vd.init(e,t),de.init(e,t)});function t9(e){return ec($c,e)}var Ac=C("ZodULID",(e,t)=>{Fd.init(e,t),de.init(e,t)});function n9(e){return tc(Ac,e)}var Dc=C("ZodXID",(e,t)=>{Hd.init(e,t),de.init(e,t)});function r9(e){return nc(Dc,e)}var Ec=C("ZodKSUID",(e,t)=>{Bd.init(e,t),de.init(e,t)});function o9(e){return rc(Ec,e)}var Nc=C("ZodIPv4",(e,t)=>{Yd.init(e,t),de.init(e,t)});function i9(e){return oc(Nc,e)}var zf=C("ZodMAC",(e,t)=>{Xd.init(e,t),de.init(e,t)});function s9(e){return np(zf,e)}var Oc=C("ZodIPv6",(e,t)=>{Jd.init(e,t),de.init(e,t)});function a9(e){return ic(Oc,e)}var zc=C("ZodCIDRv4",(e,t)=>{Qd.init(e,t),de.init(e,t)});function c9(e){return sc(zc,e)}var Zc=C("ZodCIDRv6",(e,t)=>{e1.init(e,t),de.init(e,t)});function u9(e){return ac(Zc,e)}var jc=C("ZodBase64",(e,t)=>{t1.init(e,t),de.init(e,t)});function l9(e){return cc(jc,e)}var Wc=C("ZodBase64URL",(e,t)=>{n1.init(e,t),de.init(e,t)});function d9(e){return uc(Wc,e)}var Vc=C("ZodE164",(e,t)=>{r1.init(e,t),de.init(e,t)});function p9(e){return lc(Vc,e)}var Zf=C("ZodCreditCard",(e,t)=>{o1.init(e,t),de.init(e,t)});function f9(e){return rp(Zf,e)}var jf=C("ZodIBAN",(e,t)=>{i1.init(e,t),de.init(e,t)});function m9(e){return op(jf,e)}var Fc=C("ZodJWT",(e,t)=>{s1.init(e,t),de.init(e,t)});function h9(e){return dc(Fc,e)}var cr=C("ZodCustomStringFormat",(e,t)=>{a1.init(e,t),de.init(e,t)});function g9(e,t,n={}){return or(cr,e,t,n)}function C9(e){return or(cr,"hostname",Kl,e)}function k9(e){return or(cr,"hex",ud,e)}function y9(e){return or(cr,"currency_code",Jl,e)}function b9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=bt[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return or(cr,r,o,t)}var oo=C("ZodNumber",(e,t)=>{Pa.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(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(Vt(e,t))},gte(e,t){return this.check(mt(e,t))},min(e,t){return this.check(mt(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},int(e){return this.check(Ic(e))},safe(e){return this.check(Ic(e))},positive(e){return this.check(Vt(0,e))},nonnegative(e){return this.check(mt(0,e))},negative(e){return this.check(Wt(0,e))},nonpositive(e){return this.check(ft(0,e))},multipleOf(e,t){return this.check(In(e,t))},step(e,t){return this.check(In(e,t))},finite(){return this}}));function Wf(e){return sp(oo,e)}var ur=C("ZodNumberFormat",(e,t)=>{c1.init(e,t),oo.init(e,t)});function Ic(e){return cp(ur,e)}function v9(e){return up(ur,e)}function w9(e){return lp(ur,e)}function x9(e){return dp(ur,e)}function I9(e){return pp(ur,e)}var io=C("ZodBoolean",(e,t)=>{li.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fp(e,n,r,o)});function Vf(e){return fp(io,e)}var so=C("ZodBigInt",(e,t)=>{Ma.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(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(mt(e,t))},min(e,t){return this.check(mt(e,t))},gt(e,t){return this.check(Vt(e,t))},lt(e,t){return this.check(Wt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},positive(e){return this.check(Vt(BigInt(0),e))},negative(e){return this.check(Wt(BigInt(0),e))},nonpositive(e){return this.check(ft(BigInt(0),e))},nonnegative(e){return this.check(mt(BigInt(0),e))},multipleOf(e,t){return this.check(In(e,t))}}));function _9(e){return hp(so,e)}var Hc=C("ZodBigIntFormat",(e,t)=>{u1.init(e,t),so.init(e,t)});function S9(e){return Cp(Hc,e)}function L9(e){return kp(Hc,e)}var Ff=C("ZodSymbol",(e,t)=>{l1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bp(e,n,r,o)});function P9(e){return yp(Ff,e)}var Hf=C("ZodUndefined",(e,t)=>{d1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r,o)});function M9(e){return bp(Hf,e)}var Bf=C("ZodNull",(e,t)=>{p1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r,o)});function Uf(e){return vp(Bf,e)}var Gf=C("ZodAny",(e,t)=>{f1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o)});function R9(){return wp(Gf)}var Kf=C("ZodUnknown",(e,t)=>{m1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)});function ir(){return xp(Kf)}var qf=C("ZodNever",(e,t)=>{h1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o)});function Bc(e){return Ip(qf,e)}var Yf=C("ZodVoid",(e,t)=>{g1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)});function T9(e){return _p(Yf,e)}var Pi=C("ZodDate",(e,t)=>{C1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),e.min=(n,r)=>e.check(mt(n,r)),e.max=(n,r)=>e.check(ft(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 $9(e){return Sp(Pi,e)}var Jf=C("ZodArray",(e,t)=>{ar(),k1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(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 Mi(e,t){return Mp(Jf,e,t)}function A9(e){let t=e._zod.def.shape;return Uc(Object.keys(t))}var Ri=C("ZodObject",(e,t)=>{ar(),y1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o),O.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Uc(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:Bc()}))},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($i,this,e[0])},exactPartial(...e){return O.partial(Kc,this,e[0],"exactPartial")},required(...e){return O.required(qc,this,e[0])}});function D9(e,t){let n={type:"object",shape:e??{},...O.normalizeParams(t)};return new Ri(n)}function E9(e,t){return new Ri({type:"object",shape:e,catchall:Bc(),...O.normalizeParams(t)})}function N9(e,t){return new Ri({type:"object",shape:e,catchall:ir(),...O.normalizeParams(t)})}var Ti=C("ZodUnion",(e,t)=>{di.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kc(e,n,r,o),e.options=t.options});function ao(e,t){return new Ti({type:"union",options:e,...O.normalizeParams(t)})}var Xf=C("ZodXor",(e,t)=>{Ti.init(e,t),b1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kc(e,n,r,o),e.options=t.options});function O9(e,t){return new Xf({type:"union",options:e,inclusive:!1,...O.normalizeParams(t)})}var Qf=C("ZodDiscriminatedUnion",(e,t)=>{Ti.init(e,t),w1.init(e,t)});function z9(e,t,n){return new Qf({type:"union",options:t,discriminator:e,...O.normalizeParams(n)})}var e2=C("ZodIntersection",(e,t)=>{x1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o)});function t2(e,t){return new e2({type:"intersection",left:e,right:t})}var n2=C("ZodTuple",(e,t)=>{ar(),Ra.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(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 $i({type:"optional",innerType:t}))})}});function r2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new n2({type:"tuple",items:e,rest:i,...O.normalizeParams(o)})}var to=C("ZodRecord",(e,t)=>{ar(),I1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function o2(e,t,n){return!t||!t._zod?new to({type:"record",keyType:_i(),valueType:e,...O.normalizeParams(t)}):new to({type:"record",keyType:e,valueType:t,...O.normalizeParams(n)})}function Z9(e,t,n){return new to({type:"record",keyType:e,valueType:t,...O.normalizeParams(n),partial:!0})}function j9(e,t,n){return new to({type:"record",keyType:e,valueType:t,mode:"loose",...O.normalizeParams(n)})}var i2=C("ZodMap",(e,t)=>{ar(),_1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Ft(...n)),e.nonempty=n=>e.check(Ft(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function W9(e,t,n){return new i2({type:"map",keyType:e,valueType:t,...O.normalizeParams(n)})}var s2=C("ZodSet",(e,t)=>{ar(),S1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o),e.min=(...n)=>e.check(Ft(...n)),e.nonempty=n=>e.check(Ft(1,n)),e.max=(...n)=>e.check(_n(...n)),e.size=(...n)=>e.check(tr(...n))});function V9(e,t){return new s2({type:"set",valueType:e,...O.normalizeParams(t)})}var no=C("ZodEnum",(e,t)=>{L1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Qp(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 no({...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 no({...t,checks:[],...O.normalizeParams(o),entries:i})}});function Uc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new no({type:"enum",entries:n,...O.normalizeParams(t)})}function F9(e,t){return new no({type:"enum",entries:e,...O.normalizeParams(t)})}var a2=C("ZodLiteral",(e,t)=>{P1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(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 H9(e,t){return new a2({type:"literal",values:Array.isArray(e)?e:[e],...O.normalizeParams(t)})}var c2=C("ZodFile",(e,t)=>{M1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o),e.min=(n,r)=>e.check(Ft(n,r)),e.max=(n,r)=>e.check(_n(n,r)),e.mime=(n,r)=>e.check(Ur(Array.isArray(n)?n:[n],r))});function B9(e){return Rp(c2,e)}var u2=C("ZodTransform",(e,t)=>{ar(),R1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(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 Gc(e){return new u2({type:"transform",transform:e})}var $i=C("ZodOptional",(e,t)=>{Ta.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sr(e){return new $i({type:"optional",innerType:e})}var Kc=C("ZodExactOptional",(e,t)=>{T1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function l2(e){return new Kc({type:"optional",innerType:e})}var d2=C("ZodNullable",(e,t)=>{$1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Si(e){return new d2({type:"nullable",innerType:e})}function U9(e){return sr(Si(e))}var p2=C("ZodDefault",(e,t)=>{A1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function f2(e,t){return new p2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var m2=C("ZodPrefault",(e,t)=>{D1.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 h2(e,t){return new m2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():O.shallowClone(t)}})}var qc=C("ZodNonOptional",(e,t)=>{E1.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 g2(e,t){return new qc({type:"nonoptional",innerType:e,...O.normalizeParams(t)})}var C2=C("ZodSuccess",(e,t)=>{N1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function G9(e){return new C2({type:"success",innerType:e})}var k2=C("ZodCatch",(e,t)=>{O1.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.removeCatch=e.unwrap});function y2(e,t){return new k2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:O.constantCatch(t)})}var b2=C("ZodNaN",(e,t)=>{z1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o)});function K9(e){return Pp(b2,e)}var Ai=C("ZodPipe",(e,t)=>{$a.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),e.in=t.in,e.out=t.out});function _c(e,t){return new Ai({type:"pipe",in:e,out:t})}var Di=C("ZodCodec",(e,t)=>{Ai.init(e,t),pi.init(e,t)});function q9(e,t,n){return new Di({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Y9(e){let t=e._zod.def;return new Di({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var v2=C("ZodPreprocess",(e,t)=>{Ai.init(e,t),Z1.init(e,t)}),w2=C("ZodReadonly",(e,t)=>{j1.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 x2(e){return new w2({type:"readonly",innerType:e})}var I2=C("ZodTemplateLiteral",(e,t)=>{W1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o)});function J9(e,t){return new I2({type:"template_literal",parts:e,...O.normalizeParams(t)})}var _2=C("ZodLazy",(e,t)=>{fi.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function S2(e){return new _2({type:"lazy",getter:e})}var L2=C("ZodPromise",(e,t)=>{F1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function X9(e){return new L2({type:"promise",innerType:e})}var P2=C("ZodFunction",(e,t)=>{V1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o)});function Q9(e){return new P2({type:"function",input:Array.isArray(e?.input)?r2(e?.input):e?.input??Mi(ir()),output:e?.output??ir()})}var Ei=C("ZodCustom",(e,t)=>{H1.init(e,t),J.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o)});function e4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function t4(e,t){return Tp(Ei,e??(()=>!0),t)}function M2(e,t={}){return $p(Ei,e,t)}function R2(e,t){return Ap(e,t)}var n4=Dp,r4=Ep,T2=C("ZodInstanceOf",(e,t)=>{Ei.init(e,t)},{properties(e,t){return this.check(Br(e,t))}});function o4(e,t={}){let n=new T2({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 i4=(...e)=>Np({Codec:Di,Boolean:io,String:ro},...e);function s4(e){let t=S2(()=>ao([_i(e),Wf(),Vf(),Uf(),Mi(t),o2(_i(),t)]));return t}function a4(e,t){return new v2({type:"pipe",in:Gc(e),out:t})}var RI={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 TI(e){ye({customError:e})}function $I(){return ye().customError}var $2;$2||($2={});var Ni={};St(Ni,{ZodISODate:()=>Rn,ZodISODateTime:()=>Mn,ZodISODuration:()=>$n,ZodISOTime:()=>Tn,date:()=>DI,datetime:()=>AI,duration:()=>NI,time:()=>EI});function AI(e){return yi(Mn,e)}function DI(e){return bi(Rn,e)}function EI(e){return vi(Tn,e)}function NI(e){return wi($n,e)}var D={...co,...wc,iso:Ni},OI=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 zI(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 c4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function ZI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function jI(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:ZI(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 WI(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 A2(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=A2(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=A2(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 VI=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),FI=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Oi(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Oi):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>VI.has(t)?Oi(n):!FI.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Oi))}function u4(e){return e===1?"element":"elements"}function HI(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=A2(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 ${u4(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 ${u4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function l4(e,t){if(e!==!1)return e===void 0||e===!0?D.any():nt(e,t)}var BI=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function d4(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=jI(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 d4(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(BI)):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),I=D.string().regex(new RegExp(g));f.push(D.looseRecord(I,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)),I=r;r=r.check(y=>{if(!kt(y.value))return;let b=[];for(let $ of Object.keys(y.value))g.includes($)||k.some(v=>v.test($))||b.push($);b.length&&y.issues.push({code:"unrecognized_keys",keys:b,input:y.value,inst:I})})}}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=WI(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=c4(a,s),u=Array.isArray(i)?void 0:l4(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=c4(a,s),u=l4(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=HI(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=d4(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&&!Oi(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&&!Oi(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))OI.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 p4(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=zI(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Ve};return nt(n,i)}var f4=Symbol("z.visit/resolving");function zi(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===f4)return new fi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,f4);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 m4(e){return zi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:ao(n.options)}})}function UI(e,t){if(!t?.length)return e;let n=e._zod.def;return ce(e,Mt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function h4(e){return UI(e.out,e.checks)}function GI(e){return e.in._zod.traits.has("$ZodTransform")?h4(e):e.in}function g4(e){return zi(e,{pipe:t=>GI(t._zod.def),default:(t,n)=>n?sr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function C4(e){return zi(e,{pipe:t=>h4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var D2={};St(D2,{bigint:()=>JI,boolean:()=>YI,date:()=>XI,number:()=>qI,string:()=>KI});function KI(e){return tp(ro,e)}function qI(e){return ap(oo,e)}function YI(e){return mp(io,e)}function JI(e){return gp(so,e)}function XI(e){return Lp(Pi,e)}var E2=1e4,k4=ie.string().min(1).max(1024),nn=ie.array(k4).max(E2),QI=ie.enum(["project","chronological","machine"]),e_=ie.enum(["updated","created","alpha","none"]),t_=ie.enum(["default","ascending","descending"]),n_=ie.enum(["active","archived"]),r_=ie.enum(["muted","colour","hidden"]),o_=ie.enum(["blocked","everything"]),i_=ie.array(ie.union([ie.literal("threads"),k4.regex(/^(project|section|machine):\S+$/)])).max(E2).transform(e=>[...new Set(e)]);function Ie(e,t,n){return{schema:e,defaultValue:t,description:n}}var Yc={threadLifecycles:Ie(ie.array(n_).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(QI,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:Ie(ie.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:Ie(e_,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:Ie(t_,"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(i_,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:Ie(ie.array(ie.enum(["pinned","threads"])).max(E2),[],"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(ie.boolean(),!0,"Collapse older threads: whether each group's quiet roots past its 5 newest fold behind an N older row."),workingFirst:Ie(ie.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(ie.boolean(),!0,"Whether rows show a pull request badge."),childAttention:Ie(o_,"blocked","Needs you 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(r_,"muted","How rows draw the harness logo: muted (monochrome), colour (the provider's tint) or hidden.")},y4=Object.keys(Yc);function N2(e){return Object.hasOwn(Yc,e)}function s_(e){return structuredClone(Yc[e].defaultValue)}function a_(){return Object.fromEntries(y4.map(e=>[e,s_(e)]))}function O2(e,t){let n=Yc[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function z2(e){let t=a_();if(e===null||typeof e!="object")return t;let n=e;for(let r of y4){if(!(r in n))continue;let o=O2(r,n[r]);o.success&&(t[r]=o.value)}return t}var c_=ie.object({density:ie.enum(["compact","comfortable"]).catch("compact")}),Z2="bb.thread-glance.client.v1",Zi="bb.thread-glance.preferences.v1",b4="bb.thread-list.preferences.v1";function v4(e){let t=c_.safeParse(e??{});return t.success?t.data:{density:"compact"}}function ji(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function uo(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}function w4(){let[e,t]=E(()=>v4(ji(Z2))),n=Z(r=>{t(o=>{let i={...o,...r};return uo(Z2,i),i})},[]);return[e,n]}function x4(e,t){let n=A(null),r=A(null),o=A(void 0);return e!==null&&(e!==r.current||t!==o.current)&&(n.current=I5(n.current,t===null?void 0:e.familyOf.get(t)),r.current=e,o.current=t),n.current}function I4(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 Jc=ie.record(ie.string(),ie.number()),aT=ie.object({startedAt:Jc,finishedAt:Jc,pendingAt:Jc,seenAt:Jc}),u_=140,j2=ie.object({kind:ie.enum(["question","approval","plan","input","failed","done"]),text:ie.string().max(u_),at:ie.number()}),_4=ie.object({pending:j2.optional(),failed:j2.optional(),done:j2.optional()}),An={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var l_=150;function S4(){let e=hn(),[t,n]=E(()=>z2(ji(Zi))),[r,o]=E(!1),i=A(new Map),s=A(null),a=mn(),c=A(!1),u=Z(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),f=z2(m);for(let[h,g]of i.current)f[h]=g;n(f),uo(Zi,f)}finally{o(!0)}},[e]);z(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:ji(b4)})}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(!N2(f?.key)||i.current.has(f.key))return;let h=O2(f.key,f.value);h.success&&n(g=>{let k={...g,[f.key]:h.value};return uo(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=>{it.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 uo(Zi,h),h});for(let[f,h]of Object.entries(m))N2(f)&&i.current.set(f,h);s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,l()},l_)},[l]);return{prefs:t,hydrated:r,update:d}}var W2={};function L4(){let e=hn(),[t,n]=E(W2),r=mn(),o=A(!1),[i,s]=E(0);return z(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:W2)},()=>{}),()=>{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:W2)}),t}var P4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},d_=new Set(Object.keys(P4));function M4(){let e=hn(),[t,n]=E(P4),r=mn(),o=A(!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=>{!d_.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 V2(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 R4(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 F2(e,t,n){if(t.kind==="group")return R4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return V2(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 R4(e,n.groupOfThread(t.threadId),n)}var p_=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],T4={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"}},$4=new Set(["pending","starting","active","stopping","idle","error"]),H2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),f_=new Set([...$4,...H2,"waiting-for-host"]);function lr(e){return $4.has(e.status)?e.status:"idle"}function B2(e){return f_.has(e.runtimeStatus)?e.runtimeStatus:lr(e)}function Xc(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function m_(e){return H2.has(B2(e))}function h_(e){return B2(e)==="waiting-for-host"}function A4(e,t){let n=lr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:Wi(e,t)}function Wi(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 g_=[["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 C_(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function D4(e,t){let n=lr(e),r=B2(e),o=Xc(e),i={sendAt:null};if(e.hasPendingInteraction){let s=T4[t.needsKind??"input"]??T4.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(H2.has(r)){let s=C_(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 g_)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 E4(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function N4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),lr(e)==="error"&&t&&n.add("unread-failed"),Xc(e)==="failed"&&n.add("queue-failed"),h_(e)&&n.add("offline"),m_(e)&&n.add("working"),t&&n.add("unread"),n}function O4(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 U2(e){return p_.find(t=>e.has(t))??null}function G2(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 Qc={"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 Vi(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function z4(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 k_(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function y_(e,t){let n=t.familyAttention-e.familyAttention;return n!==0?n:z4(e,t)}function rn(e){return e==="none"?"updated":e}function eu(e){return rn(e)==="alpha"?"ascending":"descending"}function K2(e,t){return t==="default"?eu(e):t}function q2(e){let t=rn(e.field),n=K2(t,e.direction)===eu(t)?1:-1,r=t==="alpha"?k_:t==="created"?z4:y_;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 Z4(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 j4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var b_={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function Y2(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function W4(e,t){if(e.hasPendingInteraction){let n=Y2(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:b_[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 Xc(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function V4(e){return e?.done??null}var v_=new Set(["working","background"]);function F4(e){return e.pinnedAt!==null||e.isPinned}function w_(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,F4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&F4(e)&&!i?null:o}function H4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=A4(l,e),m=D4(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:Y2(e.notes?.[l.id])}),f=N4(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?O4(f):f,needsYou:new Set,quiet:Vi(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:w_(l,t),note:W4(l,e.notes?.[l.id])})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.needsYou=w5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&v5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.quietIgnoringOpen=d===void 0||r==="everything"?Vi(l.state,l.unread,!1):l.thread.isArchived||!v_.has(l.state.kind)&&l.needsYou.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)=>j4(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 b=n.get(y),$=a(y,d);if(f.push(b,...$.descendants),!b.thread.isArchived){for(let v of b.needsYou)h.add(v);b.flags.has("working")&&h.add("working")}for(let v of $.flags)h.add(v);(b.thread.isHidden?b.needsYou.size>0:!b.quietIgnoringOpen)&&(k=!1),b.thread.isHidden||(g+=1),g+=$.visibleCount,$.quietIgnoringOpen||(k=!1)}d.delete(l);let I={descendants:f,flags:h,visibleCount:g,quietIgnoringOpen:k};return s.set(l,I),I};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=Vi(l.state,l.unread,!1),I=l.isActive,y=new Set;for(let v of d){if(!v.thread.isArchived)for(let R of v.needsYou)y.add(R);h=Math.max(h,v.thread.latestAttentionAt),v.isActive&&(I=!0),v.thread.isHidden?v.needsYou.size>0&&(g=k=!1):(v.quiet||(g=!1),Vi(v.state,v.unread,!1)||(k=!1))}let b=new Set(m);if(!l.thread.isArchived){for(let v of l.needsYou)b.add(v),y.add(v);l.flags.has("working")&&b.add("working")}let $={root:l,descendants:d,descendantFlags:m,flags:b,needsYouFlags:y,visibleDescendantCount:f,latestAttentionAt:h,quiet:g&&!I,quietIgnoringOpen:k,containsActive:I};c.push($),u.set(l.thread.id,$);for(let v of d)u.set(v.thread.id,$)}return{infos:n,children:o,families:c,familyOf:u,subtrees:s}}function lo(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 $t="pinned",vt="threads";function x_(e){return e.pinnedAt!==null||e.isPinned}function B4(e){return e.find(t=>t.isPersonal)??null}function tu(e,t){if(x_(e)&&!e.isHidden)return $t;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?vt:`project:${n.id}`}case"chronological":return e.sectionId===null?vt:`section:${e.sectionId}`;case"machine":return e.host===null?vt:`machine:${e.host.id}`}}function U4(e,t){let n=B4(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 J2(e,t){return e===$t?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:B4(t)?.id??null,newThreadSectionId:null}}var I_={project:"projects",chronological:"sections",machine:"machines"},Fi={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function G4(e,t,n){let r=I_[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===$t||u===vt||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(vt)?s.indexOf(vt):s.length;s.splice(l,0,...c)}return s.includes($t)||s.unshift($t),s.includes(vt)||s.push(vt),s}function X2(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 Q2(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"},ET=Object.values(N);function K4(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 q4=20;function Y4(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function J4(e){let t=e.displayName?.trim()||e.id,n=Y4(t),r=Y4(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 X4(e){let t=new Map,n=new Set;for(let r of e){let o=J4(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function Q4(e,t){return t.get(e)??J4({id:e})[0]}function Hi(e,t){return e.filter(n=>n!==t)}function e8(e,t){return n=>lo(n,e.infos).includes(t)}function t8(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:Hi(t.expandedChildren,r)},drop:e8(n,r)}:{patch:{expandedChildren:[...Hi(t.expandedChildren,r),r]},drop:null}}function n8(e,t,n,r){if(e.scope==="reveal")return{patch:{expandedChildren:[...Hi(t.expandedChildren,e.scopeId),e.scopeId]},drop:null};if(!e.expanded)return{patch:{expandedOlder:[...Hi(t.expandedOlder,e.scopeId),e.scopeId]},drop:null};let o={expandedOlder:Hi(t.expandedOlder,e.scopeId)};if(e.scope==="family")return{patch:o,drop:e8(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 r8(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)?Q2(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:Q2(e.descriptor,t),drop:o}}function o8(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),Wi(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}var em={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function i8(e){let t={...em};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.needsYou;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 s8(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 a8(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}}function dr(e){return 8+e*12}function c8(e){return dr(e)+8}function tm(e){return e.map((t,n)=>{let r=e[n+1],o=[];for(let i=0;i<=t;i+=1){let s=r!==void 0&&r>i;i===t?o.push(s?"start":null):o.push(s?"full":"end")}return o})}function u8(e,t){let n=e>0;return{small:n,muted:n&&!t.unread&&!t.active}}var __=5,S_=3,d8="needs-you";function L_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function P_(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 ru(e,t,n,r){return{type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:L_(e,t.parentId),chip:r.chip,rails:[],hiddenBadge:t.thread.isHidden,crossGroupLabel:P_(e,t,n),homeGroupLabel:null,projectId:t.thread.projectId}}function M_(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.needsYou.size>0)}function nm(e,t){return e.forest.subtrees.get(t)}function R_(e,t,n){let r=t.thread.id,o=M_(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,rails:[]}: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&&nm(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,S_);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 T_(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 p8(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:T_(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?U2(d):null,depth:n,rails:[]}),!l)for(let m of u)for(let f of m.rows)o.push({...f,depth:f.depth+1})}return o}function $_(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 f8(e,t,n){let r=nm(e,t.thread.id);return r.visibleCount>0||r.descendants.some(i=>i.thread.isHidden&&i.needsYou.size>0)?{count:r.visibleCount,flag:U2(r.flags),expanded:n,providerIds:$_(t,r.descendants)}:null}function A_(e,t){let n=new Set([...t.needsYou,...nm(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function m8(e,t,n,r){let{shown:o,older:i}=R_(e,n,r),s=o.map(c=>({info:c,flags:A_(e,c),rows:[ru(e,c,t.root,{depth:r,nested:r>1,chip:f8(e,c,e.expandedChildren.has(c.thread.id))}),...m8(e,t,c,r+1)]})),a=p8(e,s,r);return i!==null&&a.push(i),a}function D_(e,t){let n=t.root,r=f8(e,n,e.expandedChildren.has(n.thread.id));return[ru(e,n,n,{depth:0,nested:!1,chip:r}),...m8(e,t,n,1)]}function E_(e,t){return{info:t.root,rows:D_(e,t),flags:t.flags}}function l8(e){let t=e.needsYouFlags;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 N_(e,t,n){let r=t.root,o=new Set([r.thread.id]);for(let c of t.descendants)if(!(!(!c.thread.isArchived&&c.needsYou.size>0)&&!c.isActive)){o.add(c.thread.id);for(let l of lo(c.thread.id,e.forest.infos,r.thread.id))o.add(l)}let i=[{...ru(e,r,r,{depth:0,nested:!1,chip:null}),homeGroupLabel:n}],s=(c,u)=>{for(let l of e.forest.children.get(c)??[])o.has(l)&&(i.push(ru(e,e.forest.infos.get(l),r,{depth:u,nested:u>1,chip:null})),s(l,u+1))};s(r.thread.id,1);let a=t.descendants.filter(c=>!c.thread.isHidden&&!o.has(c.thread.id)).length;return a>0&&i.push({type:"left-out",key:`left-out:${r.thread.id}`,scopeId:r.thread.id,count:a,depth:1,rails:[]}),i}function O_(e,t,n){if(t.length===0)return null;let r=q2({field:e.prefs.chronologicalSort,direction:"default",workingFirst:e.prefs.workingFirst}),o=[...t].sort((c,u)=>l8(c)-l8(u)||r({thread:c.root.thread,familyAttention:c.latestAttentionAt},{thread:u.root.thread,familyAttention:u.latestAttentionAt})),i={},s=o.flatMap(c=>{let u=n(c),l=N_(e,c,u.label);for(let d of l)d.type==="thread"&&(i[d.info.thread.id]=u.id);return l}),a=tm(s.map(c=>c.depth));return{familyCount:o.length,rows:s.map((c,u)=>({...c,rails:a[u]})),homeGroupIds:i}}function z_(e,t,n,r,o){let i=i8(n),s=nu(t,e.prefs),a=r.some(y=>e.targets.has(y.root.thread.id)||y.descendants.some(b=>e.targets.has(b.thread.id))),c=s&&!a,u=t.id===$t,l=[...r];u?l.sort((y,b)=>Z4(y.root.thread,b.root.thread)):l.sort((y,b)=>e.compare({thread:y.root.thread,familyAttention:y.latestAttentionAt},{thread:b.root.thread,familyAttention:b.latestAttentionAt}));let d=l,m=null;if(!u&&e.prefs.foldOlder){let y=l.filter(T=>T.quietIgnoringOpen&&!T.root.thread.isArchived),b=rn(e.prefs.chronologicalSort)==="created",$=T=>b?T.root.thread.createdAt:T.latestAttentionAt,v=new Set([...y].sort((T,H)=>$(H)-$(T)).slice(0,__)),R=y.filter(T=>!v.has(T)&&!T.containsActive);if(R.length>0){let T=e.expandedOlder.has(t.id)||R.some(Y=>e.targets.has(Y.root.thread.id)||Y.descendants.some(te=>e.targets.has(te.thread.id))),H=new Set(R);T||(d=l.filter(Y=>!H.has(Y))),m={type:"older",key:`older:group:${t.id}`,scopeId:t.id,scope:"group",count:R.length,expanded:T,depth:0,rails:[]}}}let h=d.map(y=>E_(e,y)),g=p8(e,h,0),k=tm(g.map(y=>y.depth)),I=g.map((y,b)=>({...y,rails:k[b]}));return m!==null&&I.push(m),{descriptor:t,counters:i,userCollapsed:s,collapsed:c,hidden:o,rows:I,rootIds:n.map(y=>y.root.thread.id)}}function h8(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[v,R]of e.targets)if(!(R!=="reveal"||!t.infos.has(v))){r.add(v);for(let T of lo(v,t.infos))o.add(T)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let v of lo(e.activeThreadId,t.infos))i.add(v)}let s={...e,compare:q2({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(v=>[v.id,v.name])),sectionNames:new Map(e.sections.map(v=>[v.id,v.name]))},a=new Map,c=new Map,u=[];for(let v of t.families){let R=tu(v.root.thread,{mode:n.organizationMode,projects:e.projects}),T=a.get(R)??[];T.push(v),a.set(R,T),c.set(v,R),cl(v,e.heldRootId)&&u.push(v)}let l=new Set(u),d=rn(n.chronologicalSort)==="alpha",m=U4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},d),f=new Map(m.map(v=>[v.id,v]));f.set($t,J2($t,e.projects)),f.set(vt,J2(vt,e.projects));let h=G4(n.organizationMode,n[Fi[n.organizationMode]],m.map(v=>v.id)),g=new Set(n.hiddenGroups),k=[],I=[],y=em;for(let v of h){let R=f.get(v);if(R===void 0)continue;let T=a.get(v)??[],H=T.filter(se=>!l.has(se));if(H.length===0&&(v===$t||v===vt&&n.organizationMode!=="chronological"))continue;let Y=v!==$t&&g.has(v),te=z_(s,R,T,H,Y);Y?(I.push(te),y=s8(y,te.counters)):k.push(te)}let b=new Set;for(let v of e.threads)v.host!==null&&b.add(v.host.id);return{needsYou:O_(s,u,v=>f.get(c.get(v))),groups:k,more:I,moreCounters:y,order:h,multiHost:b.size>1}}function g8(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Z_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function ou(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?ou(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return Z_(e,t)?e:t;if(g8(e)&&g8(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?ou(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function k8(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:ou(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function rm(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]:ou(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function j_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function C8(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:rm(i,o,{rows:k8(i.rows,o.rows)})});return j_(e,r)?e:r}function W_(e,t){return e===null||t===null?t:rm(e,t,{rows:k8(e.rows,t.rows)})}function y8(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return rm(e,t,{needsYou:W_(e.needsYou,t.needsYou),groups:C8(e.groups,n,t.groups),more:C8(e.more,n,t.more)})}var iu=we({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},familyOf:()=>{}});var om=globalThis.__bbPluginRuntime;if(om==null||om.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 su=om.radixAlertDialog,r$="default"in su?su.default:su,{Action:im,AlertDialog:o$,AlertDialogAction:i$,AlertDialogCancel:s$,AlertDialogContent:a$,AlertDialogDescription:c$,AlertDialogOverlay:u$,AlertDialogPortal:l$,AlertDialogTitle:d$,AlertDialogTrigger:p$,Cancel:sm,Content:am,Description:cm,Overlay:um,Portal:b8,Root:v8,Title:lm,Trigger:V_,createAlertDialogScope:f$}=su;var w8=v8;var H_=b8,x8=F(({className:e,...t},n)=>p(um,{className:S("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()}));x8.displayName=um.displayName;var dm=F(({className:e,...t},n)=>x(H_,{children:[p(x8,{}),p(am,{ref:n,...Ee(),className:S("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})]}));dm.displayName=am.displayName;var pm=({className:e,...t})=>p("div",{className:S("flex flex-col space-y-2 text-center sm:text-left",e),...t});pm.displayName="AlertDialogHeader";var fm=({className:e,...t})=>p("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fm.displayName="AlertDialogFooter";var mm=F(({className:e,...t},n)=>p(lm,{ref:n,className:S("text-lg font-semibold",e),...t}));mm.displayName=lm.displayName;var hm=F(({className:e,...t},n)=>p(cm,{ref:n,className:S("text-sm text-muted-foreground",e),...t}));hm.displayName=cm.displayName;var gm=F(({className:e,...t},n)=>p(im,{ref:n,className:S(Es(),e),...t}));gm.displayName=im.displayName;var Cm=F(({className:e,...t},n)=>p(sm,{ref:n,className:S(Es({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Cm.displayName=sm.displayName;var km=globalThis.__bbPluginRuntime;if(km==null||km.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 au=km.radixDialog,y$="default"in au?au.default:au,{Close:ym,Content:I8,Description:bm,Dialog:b$,DialogClose:v$,DialogContent:w$,DialogDescription:x$,DialogOverlay:I$,DialogPortal:_$,DialogTitle:S$,DialogTrigger:L$,Overlay:vm,Portal:_8,Root:S8,Title:L8,Trigger:P8,WarningProvider:P$,createDialogScope:M$}=au;var U_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Bi=F(({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,...U_,width:t,height:t,color:c||e,className:o,...h,...d},I=[...s&&i?i:a].sort(([,y],[,b])=>{let $=y.opacity!==void 0;return b.opacity!==void 0?1:$?-1:0}).map(([y,b])=>{let $=b.opacity!==void 0,v=$&&!l?b.opacity:void 0,R=u?{...b.stroke!==void 0?{stroke:$?u:c||e}:{fill:$?u:c||e}}:{};return So(y,{...b,...h,...R,opacity:v,key:b.key})});return So("svg",g,I)});Bi.displayName="HugeiconsIcon";var M8=[["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 R8=[["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 T8=[["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 $8=[["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 A8=[["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 D8=[["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 E8=[["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 wm=[["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 N8=[["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 O8=[["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 cu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var z8=[["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 Z8=[["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 j8=[["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 W8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var xm=[["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 V8=[["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 F8=[["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 H8=[["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 B8=[["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 U8=[["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 G8=[["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 K8=[["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 Y8=[["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"}]];Im();var J8=[["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 X8=[["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 Q8=[["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 eg=[["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 tg=[["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 ng=[["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 rg=[["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 og=[["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 ig=[["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 sg=[["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 ag=[["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 cg=[["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 ug=[["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 lg=[["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 dg=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var pg=[["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 fg=[["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 mg=[["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 hg=[["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 gg=[["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 Cg=[["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"}]];Mm();var X_=[["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"}]],Q_=[["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"}]],wC={AlertCircle:R8,AlertTriangle:M8,Archive:T8,Bot:E8,Bug:O8,Check:dg,ChevronDown:$8,ChevronLeft:A8,ChevronRight:D8,Circle:W8,CircleCheck:j8,CircleQuestion:eg,CircleX:z8,ClosePluginPane:cu,CloseThreadPane:cu,Code:ug,ComputerTerminal01:xm,Copy:V8,Download:B8,Edit:U8,FilterHorizontal:G8,Folder:J8,FolderExport:q8,FolderGit:Y8,FolderPlus:K8,FolderSync:X8,FolderUnknown:Q8,Folder02:uu,Info:tg,ListTodo:Z8,Loading:ng,MessageQuestion:rg,MessageCirclePlus:wm,MessageSquarePlus:wm,MessageSquare:N8,MoreHorizontal:og,PanelLeft:ag,Search:ig,SectionAdd:X_,SectionMove:Q_,Settings:sg,SlidersHorizontal:cg,Spinner:F8,Target:lg,Terminal:xm,Toolbox:pg,ToolCase:fg,Trash2:H8,Unavailable:hg,UserRoundPlus:mg,Workflow:gg,X:cu,Zap:Cg},eS=Object.keys(wC),tS=[...eS,...bg],nS=wC,$m=null;function rS(){return lu()!==null?Promise.resolve():($m??=Promise.resolve().then(()=>(bC(),yC)).then(()=>{},e=>{throw $m=null,e}),$m)}var oS=[],iS=new Set(tS),vC=we([]);function Am(e){return iS.has(e)}var Em=class extends Eu{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function At({name:e,fallback:t="Zap",...n}){let r=xe(vC),o=Kt(Lm,()=>Ui(e),()=>Ui(e)),i=Kt(Lm,()=>Ui(t),()=>Ui(t)),s=Kt(Pm,()=>Gi(e),()=>Gi(e)),a=Kt(Pm,()=>Gi(t),()=>Gi(t)),c=o!==void 0||Am(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?p(Dm,{name:Am(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?p(vC.Provider,{value:[...r,u],children:p(Em,{fallback:p(Dm,{name:"Zap",...n}),children:p("span",{className:S("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(sS,{url:d,resolved:u,...n}):p(Dm,{name:Am(u)?u:"Zap",...n})}function sS({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return p("span",{className:S("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 Dm({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=nS[e];return i!==void 0?p(Bi,{icon:i,className:S(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):p(aS,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function aS({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=Kt(wg,lu,lu)?.[e];return s===void 0&&rS().catch(()=>{}),p(Bi,{icon:s??oS,className:S(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var xC=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function Ki(){return xe(xC)}function qi({children:e,open:t,onOpenChange:n,...r}){let o=wr(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(S8,{open:f.open,onOpenChange:f.onOpenChange,...r,children:e});return p(xC.Provider,{value:f,children:h})}var cS=F(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=Ki();return i?p(Hn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(P8,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});cS.displayName="DialogTrigger";var uS=F(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=Ki();return i?p(e?kn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):p(ym,{ref:o,asChild:e,onClick:t,...r,children:n})});uS.displayName="DialogClose";var IC=F(({className:e,...t},n)=>p(vm,{ref:n,...Ee(),className:S("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}));IC.displayName=vm.displayName;var po=F(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=Ki();let m=Ee();if(a){let f=xr(i);return p(Ir,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:p("div",{ref:s,className:S("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 x(_8,{children:[p(IC,{}),x(I8,{ref:s,...m,onCloseAutoFocus:f=>{o?.(f),queueMicrotask(()=>r?.())},className:S("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:x(ym,{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(At,{name:"X",className:"h-4 w-4"}),p("span",{className:"sr-only",children:"Close"})]})]})]})});po.displayName="DialogContent";var fo=({className:e,...t})=>p("div",{className:S("flex flex-col space-y-1.5 text-left",e),...t});fo.displayName="DialogHeader";var pu=({className:e,...t})=>p("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pu.displayName="DialogFooter";var mo=F(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=Ki(),u=n??a;if(rt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:S("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(L8,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:S("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});mo.displayName="DialogTitle";var fu=F(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=Ki(),u=n??a;if(rt(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:S("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(bm,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:S("text-sm text-muted-foreground",t),...o,children:r})});fu.displayName=bm.displayName;var _C="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",SC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",jz=`${SC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,Wz=`${SC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var LC="h-9 max-md:pointer-coarse:h-10";var mu=F(({className:e,type:t,...n},r)=>p("input",{type:t,autoComplete:"off",className:S(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${As} 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`,LC,_C,e),ref:r,...n}));mu.displayName="Input";function PC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return p(qi,{open:e,onOpenChange:n,children:x(po,{className:"max-w-sm",children:[x(fo,{children:[p(mo,{children:"Customize list"}),p(fu,{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)=>x("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:S("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),p(Je,{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(Je,{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(Je,{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(pu,{children:p(Je,{onClick:()=>n(!1),children:"Done"})})]})})}function MC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=E(""),[i,s]=E(!1);return z(()=>{e&&o("")},[e]),p(qi,{open:e,onOpenChange:t,children:p(po,{className:"max-w-sm",children:x("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(fo,{children:p(mo,{children:"New section"})}),p(mu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),x(pu,{children:[p(Je,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),p(Je,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function RC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return p(w8,{open:e,onOpenChange:i,children:x(dm,{children:[x(pm,{children:[p(mm,{children:t}),p(hm,{children:n})]}),x(fm,{children:[p(Cm,{children:"Cancel"}),p(gm,{className:S(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function TC({open:e,title:t,onOpenChange:n,children:r}){return p(qi,{open:e,onOpenChange:n,children:x(po,{className:"max-w-sm",children:[p(fo,{children:p(mo,{className:"sr-only",children:t})}),r]})})}function $C({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(qi,{open:e,onOpenChange:i,children:x(po,{className:"max-w-sm",children:[x(fo,{children:[x(mo,{children:["Move \u201C",t,"\u201D"]}),p(fu,{children:"Nest it under another thread, or move it to the top level."})]}),p(mu,{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]))}}),x("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)=>x("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:S("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 AC(){let e=hn(),[t,n]=E({}),r=mn(),o=A(!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:_4.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 DC(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||V2(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 lS=[["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 EC(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=lS.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function NC(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 ho(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function OC(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 zC(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var dS={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:""},ZC={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"},jC="animate-shine-icon motion-reduce:animate-none",pS="animate-spin motion-reduce:animate-none";function fS({label:e,className:t}){return p("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:S("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function Yi({glyph:e,label:t,className:n}){return e.icon===null?null:e.icon==="dot"?p(fS,{label:t}):p(B,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:S("size-4 shrink-0",dS[e.tone],e.spin&&pS,e.shine&&jC,n)})}function WC({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:S("size-4 shrink-0",t,e.tone==="running"&&jC)})}function Ji({flag:e,className:t}){return p(Yi,{glyph:Qc[e],className:t})}var mS=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} need${e===1?"s":""} 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 hu({counters:e,className:t}){let n=mS.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:S("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>x("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[p(Ji,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var hS=500,gS=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),Xi=!1,gu=0,VC=0;function FC(e){Xi=gS.has(e.key)}function HC(){Xi=!1,gu+=1}function BC(){gu+=1}function UC(e,t){let[n,r]=E(!1),o=A(null),i=A(null),s=A(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=gu;o.current=setTimeout(()=>{o.current=null,gu===u&&r(!0)},hS)};return z(()=>(VC++===0&&(Xi=!1,document.addEventListener("keydown",FC,!0),document.addEventListener("pointerdown",HC,!0)),()=>{a(),--VC===0&&(document.removeEventListener("keydown",FC,!0),document.removeEventListener("pointerdown",HC,!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:()=>{Xi&&(Xi=!1,c())},onBlur:a}}}var Nm=globalThis.__bbPluginRuntime;if(Nm==null||Nm.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 Cu=Nm.radixDropdownMenu,kZ="default"in Cu?Cu.default:Cu,{Arrow:yZ,CheckboxItem:GC,Content:KC,DropdownMenu:bZ,DropdownMenuArrow:vZ,DropdownMenuCheckboxItem:wZ,DropdownMenuContent:xZ,DropdownMenuGroup:IZ,DropdownMenuItem:_Z,DropdownMenuItemIndicator:SZ,DropdownMenuLabel:LZ,DropdownMenuPortal:PZ,DropdownMenuRadioGroup:MZ,DropdownMenuRadioItem:RZ,DropdownMenuSeparator:TZ,DropdownMenuSub:$Z,DropdownMenuSubContent:AZ,DropdownMenuSubTrigger:DZ,DropdownMenuTrigger:EZ,Group:qC,Item:YC,ItemIndicator:Om,Label:JC,Portal:XC,RadioGroup:CS,RadioItem:zm,Root:QC,Separator:ek,Sub:tk,SubContent:Zm,SubTrigger:jm,Trigger:nk,createDropdownMenuScope:NZ}=Cu;var yS=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),on="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",rk=we({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function ku({children:e}){let[t,n]=E(null),r=q(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return p(rk.Provider,{value:r,children:e})}function Bt(e){let t=gn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=xe(rk),i=n===t,s=A(e);s.current=e;let a=Z(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=Z(u=>{s.current?.onKeyDown?.(u),yS.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var bS="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",vS="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",wS="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Wm=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function En(){return xe(Wm)}function go({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=wr(t,n,r);return i.isCompactViewport?p(Wm.Provider,{value:i,children:e}):p(QC,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Wm.Provider,{value:i,children:e})})}var pr=F(({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(nk,{ref:o,asChild:e,className:yn(n),onMouseDown:c=>{s||bn(),Yt(c)},...r,children:t})});pr.displayName="DropdownMenuTrigger";var fr=F(({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}=xr(i);return p(Ir,{open:c,onOpenChange:u,srLabel:r??"Menu",children:p("div",{ref:s,className:S("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Vs},children:n})})}return p(XC,{children:p(KC,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{k5()||d.preventDefault(),o?.(d)},className:S("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(ku,{children:n})})})});fr.displayName="DropdownMenuContent";function ok(){return new Event("select",{cancelable:!0})}var Oe=F(({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:I}=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:S("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"&&wS,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=ok();r?.(y),y.defaultPrevented||k(!1)},children:c}):p(YC,{ref:h,className:S("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",Zt,n==="destructive"?vS:bS,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...f,...I,children:c})});Oe.displayName="DropdownMenuItem";var xS=F(({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?x("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:S("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=ok();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:(n===!0||n==="indeterminate")&&p(At,{name:"Check",className:Dn})}),t]}):x(GC,{ref:l,className:S("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",Zt,on,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...f,children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:p(Om,{children:p(At,{name:"Check",className:Dn})})}),t]})});xS.displayName="DropdownMenuCheckboxItem";var IS=F(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=En(),{hoverProps:a}=Bt({onPointerEnter:n,onKeyDown:r});return s?null:x(zm,{ref:i,className:S("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",Zt,on,e),...o,...a,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Om,{children:p(At,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});IS.displayName=zm.displayName;var _S=F(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=En();return i?p("div",{ref:o,className:S("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):p(JC,{ref:o,className:S("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});_S.displayName="DropdownMenuLabel";var Qi=F(({className:e,...t},n)=>{let{isCompactViewport:r}=En();return r?p("hr",{ref:n,className:S("-mx-1 my-1 h-px border-0 bg-muted",e)}):p(ek,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t})});Qi.displayName="DropdownMenuSeparator";var SS=F(({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})});SS.displayName="DropdownMenuGroup";var ik=tk,Vm=F(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(jm,{ref:s,className:S("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",Zt,on,t&&"pl-8",e),...i,...a,children:[n,p(At,{name:"ChevronRight",className:"ml-auto"})]})});Vm.displayName=jm.displayName;var Fm=F(({className:e,...t},n)=>p(Zm,{ref:n,...Ee(),className:S("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}));Fm.displayName=Zm.displayName;var LS=({className:e,...t})=>p("span",{className:S("ml-auto text-xs tracking-widest opacity-60",e),...t});LS.displayName="DropdownMenuShortcut";function sk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var PS=25;function ak(e,t=PS){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}var MS={start:{top:"calc(50% + 10px)",bottom:"0px"},full:{top:"0px",bottom:"0px"},end:{top:"0px",bottom:"50%"}};function Co({rails:e}){return e.every(t=>t===null)?null:p("span",{"aria-hidden":!0,"data-rails":"",className:"pointer-events-none absolute inset-0",children:e.map((t,n)=>t===null?null:p("span",{className:"absolute w-px bg-border",style:{left:c8(n),...MS[t]}},n))})}function RS(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${ho(n.sendAt)}`:r}function ck(e,t){let n=[RS(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 Hm(e,t,n,r){let o=t===1?"child thread":"child threads",i=n===null?"":`, ${Qc[n].label}`;return`${r?"Collapse":"Show"} ${t} ${o} of ${e}${i}`}function uk(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}`}}var TS=600;function $S(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function ko({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=E(e),[a,c]=E(!1),u=A(null),l=A(!1),d=A(!1),m=A(!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},TS);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){it.error("Couldn't rename",{description:k instanceof Error?k.message:String(k)})}finally{r()}};return x(jt,{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&&$S(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}f(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:S("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 Bm=globalThis.__bbPluginRuntime;if(Bm==null||Bm.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 yu=Bm.radixContextMenu,aj="default"in yu?yu.default:yu,{Arrow:cj,CheckboxItem:Um,Content:Gm,ContextMenu:uj,ContextMenuArrow:lj,ContextMenuCheckboxItem:dj,ContextMenuContent:pj,ContextMenuGroup:fj,ContextMenuItem:mj,ContextMenuItemIndicator:hj,ContextMenuLabel:gj,ContextMenuPortal:Cj,ContextMenuRadioGroup:kj,ContextMenuRadioItem:yj,ContextMenuSeparator:bj,ContextMenuSub:vj,ContextMenuSubContent:wj,ContextMenuSubTrigger:xj,ContextMenuTrigger:Ij,Group:AS,Item:Km,ItemIndicator:qm,Label:Ym,Portal:lk,RadioGroup:DS,RadioItem:Jm,Root:dk,Separator:Xm,Sub:pk,SubContent:Qm,SubTrigger:eh,Trigger:fk,createContextMenuScope:_j}=yu;var mk="z-[70]",hk=dk,gk=fk;var Ck=pk;var th=F(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(eh,{ref:s,className:S("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",Zt,on,t&&"pl-8",e),...i,...a,children:[n,p(At,{name:"ChevronRight",className:"ml-auto"})]})});th.displayName=eh.displayName;var nh=F(({className:e,...t},n)=>p(Qm,{ref:n,...Ee(),className:S(mk,"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}));nh.displayName=Qm.displayName;var rh=F(({className:e,children:t,...n},r)=>p(lk,{children:p(Gm,{ref:r,...Ee(),className:S(mk,"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(ku,{children:t})})}));rh.displayName=Gm.displayName;var bu=F(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return p(Km,{ref:i,className:S("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",Zt,on,t&&"pl-8",e),...o,...s})});bu.displayName=Km.displayName;var NS=F(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Bt({onPointerEnter:r,onKeyDown:o});return x(Um,{ref:s,className:S("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",Zt,on,e),checked:n,...i,...a,children:[p("span",{className:S("absolute right-2 flex items-center justify-center",Dn),children:p(qm,{children:p(At,{name:"Check",className:Dn})})}),t]})});NS.displayName=Um.displayName;var OS=F(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Bt({onPointerEnter:n,onKeyDown:r});return x(Jm,{ref:i,className:S("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",Zt,on,e),...o,...s,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(qm,{children:p(At,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});OS.displayName=Jm.displayName;var zS=F(({className:e,inset:t,...n},r)=>p(Ym,{ref:r,className:S("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));zS.displayName=Ym.displayName;var oh=F(({className:e,...t},n)=>p(Xm,{ref:n,className:S("-mx-1 my-1 h-px bg-muted",e),...t}));oh.displayName=Xm.displayName;function ZS({className:e,...t}){return p("span",{className:S("ml-auto text-xs tracking-widest opacity-60",e),...t})}ZS.displayName="ContextMenuShortcut";var ih=globalThis.__bbPluginRuntime;if(ih==null||ih.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 vu=ih.radixHoverCard,Dj="default"in vu?vu.default:vu,{Arrow:Ej,Content:sh,HoverCard:Nj,HoverCardArrow:Oj,HoverCardContent:zj,HoverCardPortal:Zj,HoverCardTrigger:jj,Portal:kk,Root:yk,Trigger:bk,createHoverCardScope:Wj}=vu;var vk=yk,wk=bk,ah=F(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Ee();return p(kk,{children:p(sh,{ref:o,align:t,sideOffset:n,...i,className:S("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})})});ah.displayName=sh.displayName;function wu(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 WS(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function xk(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=wu(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=wu(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=wu(r-WS(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function Ik(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 _k(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:wu(r-o)}function es({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:S("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:p(cs,{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:S("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 ch(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 VS={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 xu(e){let t=VS[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function Sk({threadId:e}){let{pullRequest:t}=us(e);return t===null?null:x("span",{title:xu(t),"aria-label":xu(t),className:S("shrink-0 text-[11px] tabular-nums",ch(t.attention)),children:["#",t.number]})}function Iu({item:e}){return x(jt,{children:[p(B,{name:e.icon,"aria-hidden":!0,className:"size-4"}),p("span",{children:e.label})]})}function Lk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Pk({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(rh,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>x(hr,{children:[a.separated?p(oh,{}):null,a.action==="move-to-section"?x(Ck,{children:[p(th,{children:p(Iu,{item:a})}),p(nh,{children:Lk(t).map(c=>x(bu,{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(bu,{className:S(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:p(Iu,{item:a})})]},a.action))})}function Mk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return p(fr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>x(hr,{children:[i.separated?p(Qi,{}):null,i.action==="move-to-section"?x(ik,{children:[p(Vm,{children:p(Iu,{item:i})}),p(Fm,{children:Lk(t).map(s=>x(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:S(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:p(Iu,{item:i})})]},i.action))})}function Rk({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:S("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 x("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 FS(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 HS({threadId:e}){let{pullRequest:t}=us(e);return t===null?null:p(sn,{label:"Pull request",children:p("span",{className:ch(t.attention),children:xu(t)})})}function _u({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=FS(t,e),a=xe(iu),c=OC(e.state.kind,_k(e.state.kind,o.id,a.stamps,a.now)),u=EC(NC(a.familyOf(o.id),o.id)),l=o.environment,d=Ik(o,a.stamps.finishedAt),m=V4(a.notes[o.id]);return x("div",{className:"flex flex-col gap-2 text-xs",children:[p("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),x("div",{className:"flex items-center gap-1.5",children:[p(Yi,{glyph:e.state.glyph,className:"size-3.5"}),x("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${ho(e.state.sendAt)}`:""]})]}),e.note!==null?x("p",{className:"break-words leading-snug",children:[x("span",{className:e.note.tone==="destructive"?"text-destructive":"text-attention",children:[e.note.prefix,":"]})," ",e.note.text]}):null,x("dl",{className:"flex flex-col gap-1",children:[p(sn,{label:"Harness",children:x("span",{className:"inline-flex items-center gap-1.5",children:[p(es,{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:x("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(HS,{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:ho(o.createdAt)}),d!==null?p(sn,{label:"Finished",children:ho(d)}):null]}),r?x("div",{className:"flex gap-2 pt-1",children:[x(Je,{size:"sm",onClick:r.open,children:[p(B,{name:N.open,"aria-hidden":!0}),"Open"]}),x(Je,{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 BS=400,US=700,GS=10,ts=null;function KS(){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 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=yh();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 Tk=pt(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=xh(f.id),I=wh(f.id),{hasUnsubmittedDraft:y}=bh(f.id),b=hh(f.id),$=qS(f.id),[v,R]=E(!1),[T,H]=E(!1),Y=UC(s,!g&&!a&&!v&&!T),te=A({pressed:!1,keyed:!1}),se=A(null),W=A(null),ae={threadId:f.id,parentThreadId:f.parentThreadId,sectionId:f.sectionId,pinned:f.pinnedAt!==null||f.isPinned},re=Ss({id:`thread:${f.id}:${r}`,data:{kind:"thread",thread:ae,groupId:r},disabled:a||g}),ze=Ls({id:`drop-thread:${f.id}:${r}`,data:{kind:"thread",threadId:f.id,inPinned:o,groupId:r}}),wt=Z(j=>{re.setNodeRef(j),ze.setNodeRef(j)},[re.setNodeRef,ze.setNodeRef]),Ge=n.provider(f.providerId),Nn=E4(m.state,I),ht=ck(t,{providerName:Ge.name,pluginLabel:Nn?I.label:null,hasDraft:y}),Fe=h?null:xk(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),Dt=K4({thread:f,unread:m.unread,splitAvailable:b.isAvailable,isRoot:f.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),Te=A(!1),Ze=A(!1),Et=(j,Se)=>{if(j==="rename"){Te.current=!0,Ze.current=!0,setTimeout(()=>{Ze.current=!1},1500);return}n.onMenuAction(j,f,Se)};z(()=>{if(v||T||!Te.current)return;let j=setTimeout(()=>{Te.current&&(Te.current=!1,n.setEditingId(f.id))},60);return()=>clearTimeout(j)},[v,T,n,f.id]);let Nt=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=$?p(Rk,{panes:$,label:`${f.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):Nn?p(WC,{status:I}):p("span",{title:m.state.label,className:"inline-flex",children:p(Yi,{glyph:m.state.glyph,label:m.state.label})}),He=j=>{if(a){j.preventDefault();return}if(b.isAvailable&&(j.metaKey||j.ctrlKey)){j.preventDefault(),n.onMenuAction("open-in-split",f);return}let Se=Date.now();if(ts!==null&&ts.threadId===f.id&&Se-ts.at<BS){ts=null,j.preventDefault(),n.setEditingId(f.id);return}ts={threadId:f.id,at:Se},n.onNavigate()},Be=()=>{W.current!==null&&clearTimeout(W.current.timer),W.current=null},Ae=A(!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,KS(),R(!0)},US)})},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)>GS&&Be()},onTouchEnd:j=>{Be(),Ae.current&&j.preventDefault()},onTouchCancel:Be,onContextMenu:j=>j.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},fe=t.chip,Ut=dr(t.depth),dt=u8(t.depth,{unread:m.unread,active:s}),ln=n.comfortable||m.note!==null,ne=m.quiet&&!s&&!a&&fe===null,Ot=v||T,Ke=g?"":Ot?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",zt=x("div",{ref:wt,"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,...re.attributes,...re.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:Y.rowProps.onPointerEnter,onPointerMove:Y.rowProps.onPointerMove,onPointerDown:j=>{Y.rowProps.onPointerDown(),a||b.splitProps.onPointerDown?.(j)},onPointerLeave:Y.rowProps.onPointerLeave,onFocus:Y.rowProps.onFocus,onBlur:Y.rowProps.onBlur,...Ce,className:S("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&&Ot&&"bg-sidebar-accent",$&&!s&&"bb-sidebar-open-in-split-row",re.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:se,href:f.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":f.id,"data-sidebar-rename-anchor":"","aria-label":ht,"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(Co,{rails:t.rails}),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:S("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,x("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?p(ko,{initial:f.displayTitle,label:"Thread name",onSave:j=>n.onRename(f.id,j),onDone:()=>{n.setEditingId(null),se.current?.focus()}}):p("span",{title:f.displayTitle,className:S("min-w-0 truncate",m.unread?"font-semibold":"font-normal",ne&&!dt.muted&&"text-muted-foreground",dt.small&&"text-xs",dt.muted&&"text-[color:color-mix(in_oklch,var(--foreground)_72%,var(--sidebar))] group-hover/row:text-foreground"),children:f.displayTitle}),!a&&m.note!==null?x("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:`${m.note.prefix}: ${m.note.text}`,children:[x("span",{className:m.note.tone==="destructive"?"text-destructive":"text-attention",children:[m.note.prefix,":"]})," ",m.note.text]}):n.comfortable&&!a?p(YS,{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(Sk,{threadId:f.id})}):null,fe!==null&&!a?x("button",{type:"button","aria-expanded":fe.expanded,"aria-label":Hm(f.displayTitle,fe.count,fe.flag,fe.expanded),title:Hm(f.displayTitle,fe.count,fe.flag,fe.expanded),onClick:j=>{j.preventDefault(),j.stopPropagation(),n.onToggleChip(t)},onPointerDown:j=>j.stopPropagation(),onKeyDown:j=>j.stopPropagation(),"data-tone":G2(fe.flag),className:S("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",ZC[G2(fe.flag)]),children:[fe.count,fe.flag!==null?p(Ji,{flag:fe.flag,className:"size-3"}):null,n.harnessIcon!=="hidden"?fe.providerIds.map(j=>p(es,{display:n.provider(j),className:"size-3 [&_*]:size-3"},j)):null,p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 transition-transform duration-150",fe.expanded&&"rotate-90")})]}):null,a?null:p("span",{className:S("pointer-events-none relative inline-flex shrink-0 transition-opacity",k===null&&Ke),children:p(es,{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}):x(jt,{children:[t.homeGroupLabel!==null?p("span",{title:`In ${t.homeGroupLabel}`,className:S("pointer-events-none max-w-24 truncate text-[11px] text-muted-foreground transition-opacity",Ke),children:t.homeGroupLabel}):Fe!==null?p("span",{title:Fe.label,"aria-label":Fe.label,className:S("pointer-events-none text-[11px] tabular-nums transition-opacity",Fe.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",Ke),children:Fe.text}):null,x("span",{className:S("flex items-center gap-0.5 transition-opacity",g?"relative":Ot?"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"})}),x(go,{open:v,onOpenChange:R,children:[p(pr,{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(Mk,{items:Dt,sections:n.sections,currentSectionId:f.sectionId,onAction:Et,onCloseAutoFocus:Nt})]})]})]})})]});return g?zt:x(hk,{onOpenChange:j=>{j&&(te.current={pressed:!1,keyed:!1}),H(j)},children:[x(vk,{closeDelay:100,open:Y.open,onOpenChange:Y.onOpenChange,children:[p(gk,{asChild:!0,disabled:a,children:p(wk,{asChild:!0,children:zt})}),!a&&!v&&!T?p(ah,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:p(_u,{info:m,controller:n,showPullRequest:un})}):null]}),p(Pk,{items:Dt,sections:n.sections,currentSectionId:f.sectionId,onAction:Et,onCloseAutoFocus:Nt,input:te})]})});function YS({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(x("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(x("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 $k=pt(function({row:t,controller:n}){let{label:r,ariaLabel:o}=uk(t),i=t.scope!=="group";return x("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:S("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:dr(t.depth)+(i?0:2)},children:[p(Co,{rails:t.rails}),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:S("size-3 transition-transform",t.expanded&&"-rotate-90")}),r]})}),Ak=pt(function({row:t}){let n=t.count===1?"child thread":"child threads";return x("div",{className:"relative flex h-6 w-full items-center gap-1.5 pr-2 text-xs text-muted-foreground",style:{paddingLeft:dr(t.depth)},children:[p(Co,{rails:t.rails}),p("span",{"aria-hidden":!0,className:"size-4 shrink-0"}),x("span",{title:`${t.count} more ${n}`,children:["+",t.count," more"]})]})}),Dk=pt(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 x("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:dr(t.depth)},children:[p(Co,{rails:t.rails}),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(cs,{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(ko,{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(Ji,{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:S("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),x(go,{children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":"Environment actions",className:S(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"})})}),x(fr,{align:"end",children:[x(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"]}),x(Oe,{onSelect:()=>i(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),x(Oe,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[p(B,{name:N.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Su=28,Ek={compact:28,comfortable:44};function Nk(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var JS=pt(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=E(!1),a=t.descriptor.label,c=Ss({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),u=n.compact?"":"opacity-0 group-hover/header:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100";return x("div",{ref:c.setNodeRef,...c.attributes,...c.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",style:{top:r?0:Su},className:S("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",c.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?p(ko,{initial:a,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:l=>n.onRename(t,l),onDone:()=>s(!1),className:"text-xs"}):x("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${a} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:l=>l.stopPropagation(),onDoubleClick:()=>Nk(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:a,children:a}),p(B,{name:N.expand,"aria-hidden":!0,className:S("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:p(hu,{counters:a8(t.counters,{collapsed:t.collapsed,more:!1}),className:"ml-auto"}),!i&&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 ${a}`,title:`New thread in ${a}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:S(an,u),onPointerDown:l=>l.stopPropagation(),onClick:()=>n.onNewThread(t),children:p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"})}):!i&&!n.compact?p("span",{"aria-hidden":!0,className:"size-6 shrink-0"}):null,i?null:x(go,{children:[p(pr,{asChild:!0,children:p("button",{type:"button","aria-label":`${a} actions`,className:S(an,u),onPointerDown:l=>l.stopPropagation(),children:p(B,{name:N.more,"aria-hidden":!0,className:"size-4"})})}),x(fr,{align:"end",className:"min-w-48",children:[x(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?x(Oe,{onSelect:()=>n.onNewThread(t),children:[p(B,{name:N.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?x(Oe,{onSelect:()=>n.onNewSection(),children:[p(B,{name:N.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,Nk(t)?x(Oe,{onSelect:()=>s(!0),children:[p(B,{name:N.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,p(Qi,{}),t.descriptor.kind!=="pinned"?t.hidden?x(Oe,{onSelect:()=>n.onShow(t),children:[p(B,{name:N.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):x(Oe,{onSelect:()=>n.onHide(t),children:[p(B,{name:N.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,x(Oe,{onSelect:()=>n.onToggleArchived(),children:[p(B,{name:n.showArchived?N.check:N.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),x(Oe,{onSelect:()=>n.onCustomize(),children:[p(B,{name:N.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?x(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 XS(e){return e.key}function QS({rows:e,forceMount:t,rowHeight:n,children:r}){let o=A(null),[i,s]=E(!0),a=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:sk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function Ok({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?Ek.comfortable:Ek.compact;return p("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:ak(e).map(m=>p(QS,{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(Tk,{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($k,{row:f,controller:o},f.key):f.type==="left-out"?p(Ak,{row:f},f.key):p(Dk,{row:f,controller:o,environmentProviders:i},f.key))},XS(m[0])))})}var uh=pt(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=Ls({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return x("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(JS,{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(Ok,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})}),zk=pt(function({view:t,...n}){return x("section",{"aria-label":"Needs you",className:"relative flex w-full min-w-0 flex-col",children:[x("h2",{style:{top:Su},className:"sticky z-20 flex h-7 items-center gap-1 bg-sidebar pl-2 pr-2 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 you"}),p("span",{className:"tabular-nums","aria-label":`${t.familyCount} ${t.familyCount===1?"family":"families"}`,children:t.familyCount})]}),p(Ok,{...n,rows:t.rows,groupId:d8,inPinned:!1,forceMount:!1})]})});function Zk(e){let t=e.includes("active"),n=e.includes("archived");return t&&n?"both":n?"archived":"active"}function jk(e){return e==="both"?["active","archived"]:[e]}function Wk(e){return e==="everything"}function Vk(e){return e?"everything":"blocked"}function Fk(e){return{chronologicalSort:e,sortDirection:eu(e)}}function Hk(e){let t=rn(e.chronologicalSort),r=K2(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 eL="flex min-w-0 flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",tL="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 nL(e){return S(tL,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function ns({label:e,children:t}){return x("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 rs({label:e,options:t,current:n,onSelect:r}){return p("div",{role:"radiogroup","aria-label":e,className:eL,children:t.map(([o,i])=>p("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:nL(o===n),children:i},o))})}function os({label:e,checked:t,onChange:n,description:r}){return x("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:S("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}),x("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 lh({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 rL({prefs:e,client:t,onPrefs:n,onClient:r}){let o=Hk(e);return x("div",{className:"flex flex-col",children:[p(lh,{children:"List"}),p(ns,{label:"Group by",children:p(rs,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),x(ns,{label:"Sort by",children:[p(rs,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:rn(e.chronologicalSort),onSelect:i=>n(Fk(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(os,{label:"Working threads first",checked:e.workingFirst,onChange:i=>n({workingFirst:i})}),p(os,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),p(os,{label:"Collapse older threads",checked:e.foldOlder,onChange:i=>n({foldOlder:i})}),p(lh,{children:"Rows"}),p(ns,{label:"Density",children:p(rs,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),p(ns,{label:"Harness icon",children:p(rs,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"],["hidden","Hidden"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),p(os,{label:"Pull request badge",checked:e.showPullRequests,onChange:i=>n({showPullRequests:i})}),p(lh,{children:"Show"}),p(ns,{label:"Threads",children:p(rs,{label:"Threads",options:[["active","Active"],["archived","Archived"],["both","Both"]],current:Zk(e.threadLifecycles),onSelect:i=>n({threadLifecycles:jk(i)})})}),p(os,{label:"Needs you counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:Wk(e.childAttention),onChange:i=>n({childAttention:Vk(i)})})]})}function Bk({prefs:e,client:t,onPrefs:n,onClient:r}){return p("div",{style:{height:Su},className:"sticky top-0 z-30 flex items-center justify-end bg-sidebar",children:x(Fs,{children:[p(jo,{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(Wo,{align:"end",className:"w-80 p-2",children:p(rL,{prefs:e,client:t,onPrefs:n,onClient:r})})]})})}var oL="thread-glance";function mr(e){return e instanceof Error?e.message:String(e)}async function Uk(e,t){try{await navigator.clipboard.writeText(e),it.success(t)}catch(n){it.error("Couldn't copy",{description:mr(n)})}}var iL={activationConstraint:{distance:4}},sL={activationConstraint:{delay:200,tolerance:6}},aL=e=>{let t=e.active.data.current?.kind,n=Fh(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 Gk(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 dh(e){let[t,n]=E(0);return p(cL,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function cL({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=S4(),[c,u]=w4(),l=gh({experimental_lifecycles:i.threadLifecycles}),d=mh(),m=kh(),{providers:f}=fh(),{providers:h}=Ch(),g=vh(),{stamps:k,markSeen:I,clearSeen:y}=M4(),b=L4(),$=AC(),v=q(()=>{let w=Object.values(b).filter(_=>_>Date.now());return w.length>0?Math.min(...w):null},[b]),R=I4(v),[T,H]=E(null),[Y,te]=E(null),[se,W]=E(null),[ae,re]=E(""),ze=A(new Map),[wt,Ge]=E(!1),[Nn,ht]=E(!1),[Fe,Dt]=E(null),[Te,Ze]=E(()=>new Map),[Et,Nt]=E(null),[$e,cn]=E(()=>new Map),un=A(new Set),On=A(new Map),He=l.status==="ready",Be=l.threads,Ae=q(()=>new Map(Be.map(w=>[w.id,w])),[Be]),Ce=q(()=>He?H4({threads:Be,activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt,draftIds:g,scheduled:b,now:R,notes:$,childAttention:i.childAttention}):null,[He,Be,e,k.finishedAt,k.seenAt,g,b,R,$,i.childAttention]),{targets:fe,prune:Ut}=M5(s?Ce:null,e),dt=x4(Ce,e),ln=A(null),ne=q(()=>Ce===null?null:y8(ln.current,h8({forest:Ce,threads:Be,projects:l.projects,sections:l.sections,prefs:i,activeThreadId:e,heldRootId:dt,targets:fe})),[Ce,Be,l.projects,l.sections,i,e,dt,fe]);rt(()=>{ln.current=ne},[ne]);let Ot=A(null);z(()=>{let w=[Ot.current,e].filter(_=>_!==null&&Ae.get(_)?.parentThreadId!=null);Ot.current=e,BC(),w.length>0&&I([...new Set(w)])},[e]),z(()=>{if(!(!i.showPullRequests||Ce===null))for(let w of Ce.families){let _=w.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(ee=>new Map(ee).set(P,G.defaultBranch)),()=>cn(G=>new Map(G).set(P,null))))}},[i.showPullRequests,Ce,m]);let Ke=q(()=>X4(f),[f]),zt=q(()=>{let w=new Map,_=new Map(f.map(P=>[P.id,P]));return P=>{let G=w.get(P);if(G===void 0){let ee=_.get(P);G={id:P,name:ee?.displayName??P,provider:ee?.logoUrl?ee:null,mark:Q4(P,Ke)},w.set(P,G)}return G}},[f,Ke]),j=Z(w=>{Object.keys(w.patch).length>0&&a(w.patch),w.drop!==null&&Ut(w.drop)},[a,Ut]),Se=Z((w,_,P)=>{let G={activeThreadId:e,finishedAt:k.finishedAt,seenAt:k.seenAt},ee=oe=>ge=>it.error(oe,{description:mr(ge)});switch(w){case"open-in-split":d.open(_.id,{split:!0}),n();return;case"copy-link":Uk(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":Uk(_.id,"Thread ID copied");return;case"mark-read":Wi(_,G)&&I([_.id]),d.setRead(_.id,!0).catch(ee("Couldn't mark read"));return;case"mark-unread":y([_.id]),d.setRead(_.id,!1).catch(ee("Couldn't mark unread"));return;case"pin":case"unpin":d.setPinned(_.id,w==="pin").catch(ee("Couldn't change the pin"));return;case"move-to-section":m.threads.update({threadId:_.id,sectionId:P??null}).catch(ee("Couldn't move the thread"));return;case"rename":H(_.id);return;case"details":te(_.id);return;case"move":re(""),W(_.id);return;case"archive":d.archive(_.id);return;case"unarchive":m.threads.unarchive({threadId:_.id}).catch(ee("Couldn't unarchive"));return;case"delete":setTimeout(()=>d.requestDelete(_.id),0);return}},[d,e,y,I,n,m,k.finishedAt,k.seenAt]),yo=A(Se);rt(()=>{yo.current=Se});let gt=A({forest:Ce,view:ne,prefs:i,byId:Ae,activeThreadId:e,stamps:k});rt(()=>{gt.current={forest:Ce,view:ne,prefs:i,byId:Ae,activeThreadId:e,stamps:k}});let is=Z((w,_)=>{let P=`${w}:${_}`,G=On.current.get(P);if(G===void 0){let ee=gt.current.byId.get(w),oe=ee?.providerId??"",ge=ze.current.get(oe);ge===void 0&&(ge=m.providers.models(ee?.host?{providerId:oe,hostId:ee.host.id}:{providerId:oe}).then(Le=>Le.models,()=>[]),ze.current.set(oe,ge));let je=ge;G=m.threads.defaultExecutionOptions({threadId:w}).then(async Le=>Le===null?null:{model:zC(Le.model,await je),reasoningLevel:Le.reasoningLevel},()=>null),On.current.set(P,G)}return G},[m]),Gt=ne?.multiHost??!1,xt=Ce!==null&&ne!==null,It=q(()=>xt?{compact:t,comfortable:c.density==="comfortable",setEditingId:H,showPullRequests:i.showPullRequests,harnessIcon:i.harnessIcon,defaultBranchOf:w=>$e.has(w.projectId)?$e.get(w.projectId)??null:void 0,multiHost:Gt,provider:zt,sections:l.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:w=>{let{prefs:_,forest:P}=gt.current;j(t8(w,_,P))},onToggleOlder:w=>{let{prefs:_,forest:P,view:G}=gt.current,ee=G.groups.find(oe=>oe.descriptor.id===w.scopeId)??null;j(n8(w,_,ee,P))},onToggleEnvironment:w=>{let{collapsedEnvironments:_}=gt.current.prefs;a({collapsedEnvironments:_.includes(w)?_.filter(P=>P!==w):[..._,w]})},onMenuAction:(w,_,P)=>yo.current(w,_,P),onRename:(w,_)=>d.rename(w,_),loadModel:is,openDetails:te,onNewThreadInEnvironment:(w,_,P)=>{d.openNewThread({projectId:_,environmentId:w,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(w,_)=>{await m.environments.update({environmentId:w,name:_})},onArchiveEnvironment:w=>{m.environments.archiveThreads({environmentId:w}).catch(_=>it.error("Couldn't archive the environment",{description:mr(_)}))}}:null,[xt,t,c.density,i.showPullRequests,i.harnessIcon,i.organizationMode,$e,Gt,zt,l.sections,n,j,a,d,m,is]),ss=q(()=>({now:R,stamps:k,notes:$,familyOf:w=>Ce?.familyOf.get(w)}),[R,k,$,Ce]),_t=q(()=>{let w=e===null||Ce===null?void 0:Ce.familyOf.get(e);return w===void 0?null:tu(w.root.thread,{mode:i.organizationMode,projects:l.projects})},[e,Ce,i.organizationMode,l.projects]),bo=i.threadLifecycles.includes("archived"),vo=q(()=>{if(!xt)return null;let w=_=>{let{forest:P,activeThreadId:G,stamps:ee}=gt.current,oe=_.rootIds.flatMap(Le=>P.familyOf.get(Le)??[]),ge=o8(oe,{activeThreadId:G,finishedAt:ee.finishedAt,seenAt:ee.seenAt}),je=()=>{ge.seen.length>0&&I(ge.seen);for(let Le of ge.read)d.setRead(Le,!0).catch(()=>{})};ge.read.length===0?it(`Nothing unread in ${_.descriptor.label}`):ge.read.length>q4?Dt({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:_t,showArchived:bo,onToggleArchived:()=>a({threadLifecycles:gt.current.prefs.threadLifecycles.includes("archived")?["active"]:["active","archived"]}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:P,forest:G}=gt.current;j(r8(_,P,G))},onNewThread:_=>{let P=_.descriptor;d.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...gt.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:gt.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:_=>Dt({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=>it.error("Couldn't remove the section",{description:mr(P)}))}}),onMarkAllRead:w,onNewSection:()=>ht(!0)}},[xt,t,_t,bo,i.organizationMode,j,d,n,a,m,I]),Lu=Vh(xs(Eo,iL),xs(No,sL),xs(vr)),dn=Z(w=>{let _=w.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=Gk(w),ee=_.rect,oe=G===null?.5:(G-ee.top)/Math.max(ee.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 w=new Map(Object.entries(ne?.needsYou?.homeGroupIds??{}));for(let P of[...ne?.groups??[],...ne?.more??[]])for(let G of P.rows)G.type==="thread"&&w.set(G.info.thread.id,P.descriptor.id);let _=ne?.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=>w.get(P)??"threads"}},[ne,i.organizationMode,Ae]),Pu=Z(w=>{let _=w.active.data.current,P=dn(w);if(_?.kind!=="thread"||P===null){Ze(new Map),Nt(_?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Ze(new Map),Nt(P.groupId);return}Nt(null);let G=F2(_.thread,P,zn),ee=G.type==="blocked"?"blocked":G.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Ze(new Map([[P.threadId,ee]]))},[dn,zn]),wo=Z(async w=>{switch(w.type){case"nest":w.unpinFirst&&await m.threads.unpin({threadId:w.threadId}),await m.threads.update({threadId:w.threadId,parentThreadId:w.parentThreadId});return;case"move":await m.threads.update({threadId:w.threadId,sectionId:w.sectionId,...w.detach?{parentThreadId:null}:{}});return;case"detach":await m.threads.update({threadId:w.threadId,parentThreadId:null});return;case"pin":await d.setPinned(w.threadId,!0);return;case"unpin":await d.setPinned(w.threadId,!1);return;case"reorder-pinned":await m.threads.reorderPinned({threadId:w.threadId,previousThreadId:w.previousThreadId,nextThreadId:w.nextThreadId});return;case"blocked":case"unchanged":return}},[m,d]),Mu=Z(w=>{Ze(new Map),Nt(null);let _=w.active.data.current,P=dn(w);if(_===void 0||P===null||ne===null)return;if(_.kind==="group"){if(P.kind!=="group"||P.groupId===_.groupId)return;let ee=w.over.rect,oe=Gk(w),ge=oe!==null&&oe>ee.top+ee.height/2?"after":"before",je=Fi[i.organizationMode];a({[je]:X2(ne.order,_.groupId,P.groupId,ge)});return}let G=F2(_.thread,P,zn);wo(G).catch(ee=>it.error("Failed to move thread.",{description:mr(ee)}))},[dn,ne,i.organizationMode,a,zn,wo]),Ru=Z(()=>Ze(new Map),[]),Tu=q(()=>{if(ne===null)return[];let w=new Map([...ne.groups,...ne.more].map(_=>[_.descriptor.id,_]));return ne.order.flatMap(_=>{let P=w.get(_);return P===void 0?[]:[{id:_,label:P.descriptor.label,hidden:P.hidden,hideable:_!=="pinned"}]})},[ne]);if(l.status==="error")return x("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(Je,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):p(Je,{size:"sm",variant:"outline",onClick:()=>{m.plugins.reload({pluginId:oL}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(l.status==="loading"||!s||ne===null||It===null||vo===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(w=>p("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},w))});let he=l.experimental_archived,be=Y===null?null:Ce?.infos.get(Y)??null,ve=se===null?null:Ae.get(se)??null;return p(iu.Provider,{value:ss,children:x("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[p(Bk,{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."}):x(t5,{sensors:Lu,collisionDetection:aL,onDragMove:Pu,onDragEnd:Mu,onDragCancel:Ru,children:[ne.needsYou!==null?p(zk,{view:ne.needsYou,rowController:It,environmentProviders:h,dropStates:Te,activeThreadId:e,editingId:T,now:R,stamps:k}):null,ne.groups.map(w=>p(uh,{group:w,rowController:It,groupController:vo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Et,activeThreadId:e,editingId:T,now:R,stamps:k},w.descriptor.id)),ne.more.length>0?x(Fs,{children:[p(jo,{asChild:!0,children:x("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${ne.more.length} hidden ${ne.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(hu,{counters:ne.moreCounters}),p(B,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),p(Wo,{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:ne.more.map(w=>p(uh,{group:w,rowController:It,groupController:vo,environmentProviders:h,dropStates:Te,dropTargetGroupId:Et,activeThreadId:e,editingId:T,now:R,stamps:k,inOverflow:!0},w.descriptor.id))})})]}):null]}),he!==null?x("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(Je,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:he.isFetchingNextPage,className:S("h-7 text-xs text-muted-foreground"),onClick:()=>{he.fetchNextPage()},children:he.isFetchingNextPage?"Loading\u2026":he.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,p(PC,{open:wt,items:Tu,onOpenChange:Ge,onToggleHidden:w=>a({hiddenGroups:i.hiddenGroups.includes(w)?i.hiddenGroups.filter(_=>_!==w):[...i.hiddenGroups,w]}),onMove:(w,_)=>{let P=ne.order.indexOf(w),G=ne.order[P+_];G!==void 0&&a({[Fi[i.organizationMode]]:X2(ne.order,w,G,_<0?"before":"after")})}}),p(MC,{open:Nn,onOpenChange:ht,onCreate:async w=>{try{await m.threadSections.create({name:w})}catch(_){throw it.error("Couldn't create the section",{description:mr(_)}),_}}}),p(RC,{open:Fe!==null,title:Fe?.title??"",description:Fe?.description??"",confirmLabel:Fe?.confirmLabel??"OK",destructive:Fe?.destructive,onOpenChange:w=>!w&&Dt(null),onConfirm:()=>{Fe?.run(),Dt(null)}}),be!=null?p(TC,{open:!0,title:be.thread.displayTitle,onOpenChange:w=>!w&&te(null),children:p(_u,{info:be,controller:It,showPullRequest:i.showPullRequests,actions:{open:()=>{te(null),d.open(be.thread.id),n()},toggleRead:()=>Se(be.unread?"mark-read":"mark-unread",be.thread)}})}):null,ve!==null&&Ce!==null?p($C,{open:!0,title:ve.displayTitle,targets:DC(ve.id,Ce,ae),query:ae,onQueryChange:re,onOpenChange:w=>!w&&W(null),onMove:w=>{(async()=>{w!==null&&(ve.pinnedAt!==null||ve.isPinned)&&await m.threads.unpin({threadId:ve.id}),await m.threads.update({threadId:ve.id,parentThreadId:w})})().catch(P=>it.error("Failed to move thread.",{description:mr(P)}))}}):null]})})}var vF=ph(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:dh})});export{vF as default};