efficient-shell 8.12.0 → 8.13.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 (264) hide show
  1. package/dist/{Browser-6DD4J6S5.js → Browser-OOJUPENB.js} +14 -14
  2. package/dist/Calculator-PPH3FLQG.js +29 -0
  3. package/dist/{CurrencyConverter-USQIKK7H.js → CurrencyConverter-GTICX6V3.js} +9 -9
  4. package/dist/{Documents-V5EJRADW.js → Documents-RXNGM2OY.js} +1 -1
  5. package/dist/{Files-TDTCVNSE.js → Files-G2FQ5Z3R.js} +87 -87
  6. package/dist/{Notepad-UV4F6LGY.js → Notepad-7777T6ES.js} +10 -10
  7. package/dist/PdfViewer-Q7IS273H.js +1 -0
  8. package/dist/{PomodoroTimer-ZGJLP5LL.js → PomodoroTimer-VPRRRXVE.js} +19 -19
  9. package/dist/{Preview-ZMZ7CXAS.js → Preview-QBWSY7W7.js} +22 -22
  10. package/dist/Sidebar-NONBFVWE.js +43 -0
  11. package/dist/{Spreadsheet-62H5XUHC.js → Spreadsheet-JIOTLCIK.js} +13 -13
  12. package/dist/{Stock-Y3UQ22RS.js → Stock-OIDTOA6E.js} +3 -3
  13. package/dist/{Weather-H3CYKPAG.js → Weather-XT3S2O4X.js} +18 -18
  14. package/dist/{WorldClock-SHLNS6IU.js → WorldClock-QFPWQDD2.js} +6 -6
  15. package/dist/ai/index.js +13 -13
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/media-host-check.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/{chunk-WNJLY7CM.js → chunk-2KOXALIK.js} +11 -11
  20. package/dist/{chunk-VH3IMIS2.js → chunk-2LTB2DSA.js} +6 -6
  21. package/dist/chunk-2MBDZMZM.js +2 -0
  22. package/dist/{chunk-7PCV65OU.js → chunk-37S3WLBL.js} +6 -6
  23. package/dist/chunk-3UHHKER7.js +2 -0
  24. package/dist/{chunk-HEVNCBNZ.js → chunk-4GEAEYKA.js} +46 -46
  25. package/dist/chunk-4LQDWN6L.js +4 -0
  26. package/dist/chunk-4MHTK3LH.js +4 -0
  27. package/dist/{chunk-IQDIWKES.js → chunk-55IY2ZJY.js} +1 -1
  28. package/dist/{chunk-4A2X6KLQ.js → chunk-5GHLKEJQ.js} +1 -1
  29. package/dist/{chunk-WWEZQ7CF.js → chunk-6AB42T2W.js} +1 -1
  30. package/dist/chunk-6NLKMHX6.js +2 -0
  31. package/dist/{chunk-2QI3QFX6.js → chunk-76YDO3KA.js} +1 -1
  32. package/dist/chunk-7F65BNHY.js +2 -0
  33. package/dist/{chunk-SFNLRK5J.js → chunk-7HPOALEV.js} +5 -5
  34. package/dist/{chunk-RAHIWTPJ.js → chunk-7IF3RZF3.js} +12 -12
  35. package/dist/{chunk-KXTR2RPB.js → chunk-7IHH5CDD.js} +3 -3
  36. package/dist/{chunk-PPROO6JU.js → chunk-7JKFXRAR.js} +5 -5
  37. package/dist/{chunk-SBHLTCGU.js → chunk-7QLI3HAO.js} +1 -1
  38. package/dist/{chunk-KFMRV3MK.js → chunk-BKWLFZHI.js} +1 -1
  39. package/dist/chunk-BXDYFSP4.js +2 -0
  40. package/dist/{chunk-UHW2CFLV.js → chunk-C4YTKSXY.js} +1 -1
  41. package/dist/{chunk-EPHQ7UQV.js → chunk-CQXV3SJA.js} +1 -1
  42. package/dist/chunk-D5EXIRJF.js +2 -0
  43. package/dist/{chunk-US5YOYS3.js → chunk-DKY6X24V.js} +1 -1
  44. package/dist/{chunk-3OKD2ZZV.js → chunk-DXQCNU5I.js} +9 -9
  45. package/dist/chunk-EEG3KMP7.js +2 -0
  46. package/dist/{chunk-TAGZV46K.js → chunk-EK3JM3J2.js} +1 -1
  47. package/dist/{chunk-AP67GBSX.js → chunk-EXU3ZXKB.js} +8 -8
  48. package/dist/chunk-F6RM7RLQ.js +1 -0
  49. package/dist/{chunk-332V47ID.js → chunk-FDIJEOGV.js} +2 -2
  50. package/dist/{chunk-MTD66C5F.js → chunk-FEAOJLGA.js} +2 -2
  51. package/dist/{chunk-JK3QY266.js → chunk-G34KXE2L.js} +5 -5
  52. package/dist/{chunk-US5B4QYS.js → chunk-GLVEL6AQ.js} +15 -15
  53. package/dist/{chunk-7RDFRWF3.js → chunk-H3XEO4LR.js} +6 -6
  54. package/dist/{chunk-VUYWYMZZ.js → chunk-H62JMI7C.js} +2 -2
  55. package/dist/{chunk-7FNZUIXO.js → chunk-HHXP34PV.js} +4 -4
  56. package/dist/chunk-HJUK5AAM.js +2 -0
  57. package/dist/chunk-HMMNAJJQ.js +4 -0
  58. package/dist/{chunk-B772UFJ5.js → chunk-HTOZWATN.js} +1 -1
  59. package/dist/{chunk-IC2YI7WC.js → chunk-HXXUMKTV.js} +1 -1
  60. package/dist/chunk-I7GWKMYO.js +2 -0
  61. package/dist/{chunk-CMEN5O67.js → chunk-J6QU5JTZ.js} +1 -1
  62. package/dist/{chunk-6L7V25YL.js → chunk-J77ZVPF5.js} +5 -5
  63. package/dist/{chunk-CJUN2VOD.js → chunk-JF45HC5H.js} +1 -1
  64. package/dist/chunk-JTPBPEYK.js +2 -0
  65. package/dist/chunk-JXOBORLD.js +3 -0
  66. package/dist/{chunk-7MX6CMMN.js → chunk-JZ7NBWGB.js} +1 -1
  67. package/dist/chunk-KIYTUOVN.js +2 -0
  68. package/dist/chunk-KO5PBMCF.js +2 -0
  69. package/dist/chunk-KRWKHI7S.js +2 -0
  70. package/dist/chunk-KV5VLPII.js +1 -0
  71. package/dist/chunk-L3VD25XR.js +8 -0
  72. package/dist/{chunk-3RWLCKSR.js → chunk-L6CG37L3.js} +1 -1
  73. package/dist/{chunk-3XLVARRX.js → chunk-LKSHI57C.js} +6 -6
  74. package/dist/{chunk-BXRWPGAT.js → chunk-LR2X6MKB.js} +1 -1
  75. package/dist/{chunk-S2Q6BOAX.js → chunk-MSCILVJB.js} +6 -6
  76. package/dist/{chunk-EY74CLGD.js → chunk-NRWIULLI.js} +12 -12
  77. package/dist/{chunk-O4NTKMC5.js → chunk-O3WSAR62.js} +2 -2
  78. package/dist/chunk-OJ3RN3BG.js +20 -0
  79. package/dist/{chunk-XVPTBX4R.js → chunk-OS6GGLQQ.js} +3 -3
  80. package/dist/{chunk-3GMHX3WX.js → chunk-OSRLZZDO.js} +4 -4
  81. package/dist/chunk-P5SVBGLG.js +2 -0
  82. package/dist/{chunk-OIVLPNOR.js → chunk-PDPBIDHF.js} +1 -1
  83. package/dist/{chunk-GVTWQBRU.js → chunk-PG665FWX.js} +9 -9
  84. package/dist/chunk-PM2N2ZGV.js +2 -0
  85. package/dist/chunk-PWONLQFF.js +2 -0
  86. package/dist/chunk-Q7OGTJET.js +3 -0
  87. package/dist/chunk-QM5DFN7Z.js +2 -0
  88. package/dist/chunk-R362N2RJ.js +1 -0
  89. package/dist/chunk-RA5GR626.js +2 -0
  90. package/dist/chunk-RNBMWJYM.js +4 -0
  91. package/dist/{chunk-CP6FITHO.js → chunk-RP4ZLTXA.js} +16 -16
  92. package/dist/{chunk-XW7KN6HW.js → chunk-SNDYD76W.js} +12 -12
  93. package/dist/chunk-SXPBOX32.js +1 -0
  94. package/dist/{chunk-C7PQJOGD.js → chunk-TUT6SGH2.js} +1 -1
  95. package/dist/{chunk-MXDW5IFQ.js → chunk-U6FORQTI.js} +1 -1
  96. package/dist/chunk-UAXP4A2A.js +4 -0
  97. package/dist/{chunk-JWMQEWCV.js → chunk-UONWIAII.js} +15 -15
  98. package/dist/{chunk-M3DZDBS6.js → chunk-UOOHE3FX.js} +6 -6
  99. package/dist/chunk-USYTN7PE.js +2 -0
  100. package/dist/{chunk-TTE3GZWH.js → chunk-UWNL4FO2.js} +1 -1
  101. package/dist/{chunk-4OYSTWMQ.js → chunk-VANXHWGP.js} +1 -1
  102. package/dist/chunk-VGX7ODMS.js +4 -0
  103. package/dist/{chunk-C2HHGLLR.js → chunk-VJPJNCB4.js} +24 -4
  104. package/dist/{chunk-5J6IC25E.js → chunk-VX4OBI4U.js} +1 -1
  105. package/dist/{chunk-7A7HRAC6.js → chunk-WAMBQNDN.js} +11 -11
  106. package/dist/{chunk-QKIVMRK5.js → chunk-WCAQWHFD.js} +5 -5
  107. package/dist/{chunk-XYA7NPSZ.js → chunk-XF2NZVXW.js} +5 -5
  108. package/dist/{chunk-BKV6PH3R.js → chunk-XTPDXB4X.js} +1 -1
  109. package/dist/{chunk-BHGMJBJ2.js → chunk-XZLBPVRH.js} +1 -1
  110. package/dist/{chunk-VJ56YZY6.js → chunk-Y5W6POQE.js} +5 -5
  111. package/dist/{chunk-B6FBDJUL.js → chunk-YL44UDNT.js} +6 -6
  112. package/dist/chunk-Z5UVBCEE.js +9 -0
  113. package/dist/{chunk-BJKXFEZN.js → chunk-ZEDYXP2J.js} +1 -1
  114. package/dist/{chunk-N7LV32EQ.js → chunk-ZKRWJILC.js} +1 -1
  115. package/dist/{chunk-2K76HRXS.js → chunk-ZSTBFMQE.js} +1 -1
  116. package/dist/chunk-ZZIJFMZG.js +4 -0
  117. package/dist/data/ListLoadError.js +1 -1
  118. package/dist/forms/BorderInput.js +1 -1
  119. package/dist/forms/BrandAssetEditor.js +1 -1
  120. package/dist/forms/Calendar.js +1 -1
  121. package/dist/forms/ColorPicker.js +1 -1
  122. package/dist/forms/ComposerAttachments.js +1 -1
  123. package/dist/forms/CornersInput.js +1 -1
  124. package/dist/forms/DatePicker.js +1 -1
  125. package/dist/forms/DateRangePicker.js +1 -1
  126. package/dist/forms/DisplayChips.js +1 -1
  127. package/dist/forms/FilePicker.js +1 -1
  128. package/dist/forms/IconPicker.js +1 -1
  129. package/dist/forms/InputNumber.js +1 -1
  130. package/dist/forms/LinkPicker.js +1 -1
  131. package/dist/forms/MediaUploadField.js +1 -1
  132. package/dist/forms/MediaUploadGrid.js +1 -1
  133. package/dist/forms/PositionInput.d.ts +25 -0
  134. package/dist/forms/PositionInput.js +2 -0
  135. package/dist/forms/Select.d.ts +1 -1
  136. package/dist/forms/Select.js +1 -1
  137. package/dist/forms/SidesInput.d.ts +10 -2
  138. package/dist/forms/SidesInput.js +1 -1
  139. package/dist/forms/Slider.js +1 -1
  140. package/dist/forms/Snippet.js +1 -1
  141. package/dist/forms/SplitButton.js +1 -1
  142. package/dist/forms/TagInput.js +1 -1
  143. package/dist/forms/TextToolbar.js +1 -1
  144. package/dist/forms/WidthsBar.js +1 -1
  145. package/dist/icons/efficient-glyphs.d.ts +8 -0
  146. package/dist/icons/efficient-glyphs.js +1 -1
  147. package/dist/icons/efficient-looks.d.ts +16 -0
  148. package/dist/icons/efficient-looks.js +1 -1
  149. package/dist/icons/efficient-meanings.d.ts +9 -1
  150. package/dist/icons/efficient-meanings.js +1 -1
  151. package/dist/icons/efficient.d.ts +8 -0
  152. package/dist/icons/efficient.js +1 -1
  153. package/dist/icons/glyphs/CropBottomIcon.d.ts +8 -0
  154. package/dist/icons/glyphs/CropBottomIcon.js +1 -0
  155. package/dist/icons/glyphs/CropLeftIcon.d.ts +8 -0
  156. package/dist/icons/glyphs/CropLeftIcon.js +1 -0
  157. package/dist/icons/glyphs/CropLeftRightIcon.d.ts +8 -0
  158. package/dist/icons/glyphs/CropLeftRightIcon.js +1 -0
  159. package/dist/icons/glyphs/CropRightIcon.d.ts +8 -0
  160. package/dist/icons/glyphs/CropRightIcon.js +1 -0
  161. package/dist/icons/glyphs/CropTopIcon.d.ts +8 -0
  162. package/dist/icons/glyphs/CropTopIcon.js +1 -0
  163. package/dist/icons/glyphs/CropYIcon.d.ts +8 -0
  164. package/dist/icons/glyphs/CropYIcon.js +1 -0
  165. package/dist/icons/glyphs/NudgeXIcon.d.ts +8 -0
  166. package/dist/icons/glyphs/NudgeXIcon.js +1 -0
  167. package/dist/icons/glyphs/NudgeYIcon.d.ts +8 -0
  168. package/dist/icons/glyphs/NudgeYIcon.js +1 -0
  169. package/dist/icons/index.d.ts +2 -2
  170. package/dist/icons/index.js +1 -1
  171. package/dist/icons/looks/CropBottomMiniIcon.d.ts +8 -0
  172. package/dist/icons/looks/CropBottomMiniIcon.js +1 -0
  173. package/dist/icons/looks/CropBottomSolidIcon.d.ts +8 -0
  174. package/dist/icons/looks/CropBottomSolidIcon.js +1 -0
  175. package/dist/icons/looks/CropLeftMiniIcon.d.ts +8 -0
  176. package/dist/icons/looks/CropLeftMiniIcon.js +1 -0
  177. package/dist/icons/looks/CropLeftRightMiniIcon.d.ts +8 -0
  178. package/dist/icons/looks/CropLeftRightMiniIcon.js +1 -0
  179. package/dist/icons/looks/CropLeftRightSolidIcon.d.ts +8 -0
  180. package/dist/icons/looks/CropLeftRightSolidIcon.js +1 -0
  181. package/dist/icons/looks/CropLeftSolidIcon.d.ts +8 -0
  182. package/dist/icons/looks/CropLeftSolidIcon.js +1 -0
  183. package/dist/icons/looks/CropRightMiniIcon.d.ts +8 -0
  184. package/dist/icons/looks/CropRightMiniIcon.js +1 -0
  185. package/dist/icons/looks/CropRightSolidIcon.d.ts +8 -0
  186. package/dist/icons/looks/CropRightSolidIcon.js +1 -0
  187. package/dist/icons/looks/CropTopMiniIcon.d.ts +8 -0
  188. package/dist/icons/looks/CropTopMiniIcon.js +1 -0
  189. package/dist/icons/looks/CropTopSolidIcon.d.ts +8 -0
  190. package/dist/icons/looks/CropTopSolidIcon.js +1 -0
  191. package/dist/icons/looks/CropYMiniIcon.d.ts +8 -0
  192. package/dist/icons/looks/CropYMiniIcon.js +1 -0
  193. package/dist/icons/looks/CropYSolidIcon.d.ts +8 -0
  194. package/dist/icons/looks/CropYSolidIcon.js +1 -0
  195. package/dist/icons/looks/NudgeXMiniIcon.d.ts +8 -0
  196. package/dist/icons/looks/NudgeXMiniIcon.js +1 -0
  197. package/dist/icons/looks/NudgeXSolidIcon.d.ts +8 -0
  198. package/dist/icons/looks/NudgeXSolidIcon.js +1 -0
  199. package/dist/icons/looks/NudgeYMiniIcon.d.ts +8 -0
  200. package/dist/icons/looks/NudgeYMiniIcon.js +1 -0
  201. package/dist/icons/looks/NudgeYSolidIcon.d.ts +8 -0
  202. package/dist/icons/looks/NudgeYSolidIcon.js +1 -0
  203. package/dist/icons/looks/map.js +1 -1
  204. package/dist/icons/sets.js +1 -1
  205. package/dist/index.d.ts +3 -2
  206. package/dist/index.js +694 -694
  207. package/dist/map/index.js +3 -3
  208. package/dist/markdown/index.js +1 -1
  209. package/dist/names-DcR-HlYV.d.ts +21 -0
  210. package/dist/page-tabs/index.js +5 -5
  211. package/dist/pdf/index.js +1 -1
  212. package/dist/shell/Accordion.js +1 -1
  213. package/dist/shell/AppUpdateBanner.js +1 -1
  214. package/dist/shell/Banner.js +1 -1
  215. package/dist/shell/Breadcrumbs.js +1 -1
  216. package/dist/shell/ColoredBadge.js +1 -1
  217. package/dist/shell/ConfirmDialog.js +1 -1
  218. package/dist/shell/ContextMenu.js +1 -1
  219. package/dist/shell/Dialog.js +1 -1
  220. package/dist/shell/Drawer.js +1 -1
  221. package/dist/shell/DropdownMenu.js +1 -1
  222. package/dist/shell/EmptyState.js +1 -1
  223. package/dist/shell/HelpCenter.js +1 -1
  224. package/dist/shell/LanguageSelect.js +1 -1
  225. package/dist/shell/Markdown.js +1 -1
  226. package/dist/shell/PageHeader.js +1 -1
  227. package/dist/shell/PopupMenu.js +1 -1
  228. package/dist/shell/ProductionTimeline.js +1 -1
  229. package/dist/shell/Result.js +1 -1
  230. package/dist/shell/SearchableSelect.js +1 -1
  231. package/dist/shell/SettingReset.js +1 -1
  232. package/dist/shell/SidebarLayout.js +1 -1
  233. package/dist/shell/SidebarNav.js +1 -1
  234. package/dist/shell/SortableList.js +1 -1
  235. package/dist/shell/StepChain.js +1 -1
  236. package/dist/shell/Stepper.js +1 -1
  237. package/dist/shell/TopNav.js +1 -1
  238. package/dist/shell/Tree.js +1 -1
  239. package/dist/telemetry/index.js +1 -1
  240. package/dist/templates/ChatTemplate.js +1 -1
  241. package/dist/templates/CheckoutTemplate.js +1 -1
  242. package/dist/templates/DataTablePage.js +1 -1
  243. package/dist/templates/EmailTemplate.js +1 -1
  244. package/dist/templates/FormLayoutPage.js +1 -1
  245. package/dist/ui/index.d.ts +3 -2
  246. package/dist/ui/index.js +1 -1
  247. package/dist/version.js +1 -1
  248. package/package.json +1 -1
  249. package/dist/Calculator-7WH3RUWW.js +0 -29
  250. package/dist/PdfViewer-IQQM7DOH.js +0 -1
  251. package/dist/Sidebar-EIGME7VA.js +0 -43
  252. package/dist/chunk-2355YEWO.js +0 -1
  253. package/dist/chunk-BEWEQ6BP.js +0 -3
  254. package/dist/chunk-MXMBQS75.js +0 -20
  255. package/dist/chunk-OZ2ALRKX.js +0 -3
  256. package/dist/chunk-SXE6KZBU.js +0 -1
  257. package/dist/chunk-TKLH7V2R.js +0 -9
  258. package/dist/chunk-VIJ5BZ5U.js +0 -1
  259. package/dist/chunk-VLOJ4XJC.js +0 -8
  260. package/dist/chunk-XHILMSCK.js +0 -1
  261. package/dist/chunk-YVOGWINT.js +0 -4
  262. package/dist/names-CwL-QSC9.d.ts +0 -21
  263. /package/dist/{chunk-2CGVDBNO.js → chunk-4MNNVSHD.js} +0 -0
  264. /package/dist/{chunk-WHTINFQU.js → chunk-A6L6FYG4.js} +0 -0
package/dist/map/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{Button_default as e}from"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import{Icon as t}from"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as n}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import{rootIsDark as r,ROOT_THEME_ATTRIBUTES as o}from"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as a}from"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,k=12,w=480,v={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-k-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-k,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<k?(i="-left",c=Math.max(0,k-e.x)):e.x+t.width/2>n.width-k&&(i="-right",c=-Math.max(0,e.x-(n.width-k))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,j=null;function S(){return j??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw j=null,e}),j}var $=null;var E=24,B=28,A=29;function R(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function z(e){const t=Math.max(B,12+8*e.length);return t+t%2}var W=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function T(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var O=e=>W(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(T(O(e[t]),O(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>T(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:B,height:B,under:0}));for(let e=F(o);e;e=F(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=z(R(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(O(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=W(t.x,t.y,E,E),l=o.find(t=>T(O(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>T(O(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:E,height:E,under:0})}return{groups:[...o,...a],hidden:n}}function H(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function q(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:o}),()=>t.disconnect()}var _=r;var P=(...e)=>e.filter(Boolean).join(" "),D=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function I(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!D.test(r.slice(7))})}var J="ring-2 ring-gray-900 ring-offset-2",V={portal:{frame:e=>P("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>P("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return P("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!I(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":J),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>P("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!I(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>P("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&J),badge:e=>P("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-white text-gray-900"),iconHost:"contents"},site:{frame:e=>P("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>P("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>P("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>P("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>P("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return $??=import("efficient-shell/map-site.css").catch(e=>{throw $=null,e}),$}}},Z="routes",G=["routes-road","routes-estimate"];function U(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),Q(n)}function Q(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var X={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},Y={center:[30,20],zoom:1};var ee="http://www.w3.org/2000/svg",te=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,ne=(...e)=>e.filter(Boolean).join(" ");function re(e){const t=document.createElementNS(ee,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(ee,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function oe(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function ae({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:k,marks:w,groupCrowded:C=!1,noun:L,highlightKey:j=null,picking:$=!1,onPick:A,card:z,cardMinMapWidth:W=480,fullScreen:T,initialView:O=Y,cooperativeGestures:F=!1,look:P="portal",theme:D}){const I=a().map,J=l(null),ee=l(null),ae=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),ke=d(q,_,()=>!1),we=D??(ke?"dark":"light"),ve=V[P],Ne=l({onSelect:o,onPick:A,picking:$,pins:t,selectedKey:n,highlightKey:j,groupCrowded:C,strings:I,noun:L,looks:ve});i(()=>{Ne.current={onSelect:o,onPick:A,picking:$,pins:t,selectedKey:n,highlightKey:j,groupCrowded:C,strings:I,noun:L,looks:ve}}),i(()=>{ve.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[ve]);const Me=c(()=>{const e=ae.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:te()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=ae.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>H(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:te()?0:600})},[]),je=c(()=>{const e=ae.current,t=ie.current;if(!e||!t||!J.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...J.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=K([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?R(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const y=m.button.firstElementChild;y.textContent=g;const b=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));y.className!==b&&(y.className=b),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?B:E),height:t.button.offsetHeight||(null!=t.pin.stop?B:E)}:n?{at:n.mark,width:n.element.offsetWidth||B,height:n.element.offsetHeight||B}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(je(),!J.current)return;const e=new ResizeObserver(()=>je());e.observe(J.current);for(const t of J.current.children)t.contains(ee.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await S();if(e||!ee.current)return;ie.current=o,t=new o.Map({container:ee.current,style:X[we],center:O.center,zoom:O.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===F?window.matchMedia("(pointer: coarse)").matches:F}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(O.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(ee.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(ee.current),ae.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),ae.current=null}},[]);const Se=l(we);i(()=>{fe&&ae.current&&Se.current!==we&&(Se.current=we,ae.current.setStyle(X[we]))},[fe,we]),i(()=>{const e=ae.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ve.pinButton(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(oe(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(re(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ve.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),ce.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,oe(r,t.data),r.className=ve.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),ce.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}je()},[fe,t,w,C,je,P]),i(()=>{fe&&je()},[fe,n,j,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=ae.current,n=ie.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=ae.current;if(!fe||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),Q(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?U(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Z);if(s&&(s.attribution||"")!==n){for(const t of G)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Z)}const i=e.getSource(Z);i?i.setData(o):e.addSource(Z,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:Z,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:Z,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,y,we]),i(()=>{const e=ae.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?H(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};te()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[$e,Ee]=s(!1);i(()=>{const e=J.current;if(!e)return;const t=()=>Ee(e.clientWidth<W);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[W]);const Be=n?t.find(e=>e.key===n)??null:null,Ae=Be?.key??null,Re=Be?.lng??0,ze=Be?.lat??0,We=fe&&!$e&&null!=z&&!!Be,[Te,Oe]=s(null);i(()=>{const e=ae.current,t=ie.current;if(!(We&&e&&t&&Ae))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:v,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Re,ze]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===V.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Oe(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),J.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:te()?0:250}),je()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Oe(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Ae)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[We,Ae,Re,ze,je]);const Fe=T?.active??!1,Ke=l(T?.onChange);i(()=>{Ke.current=T?.onChange}),i(()=>{if(!T)return;const e=document.documentElement;Fe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Fe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Fe]);const He=!!T;return i(()=>{if(!He)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[He]),/* @__PURE__ */m("div",{ref:J,className:ne(ve.frame($),g),children:[
3
- /* @__PURE__ */h("div",{className:ve.fill,children:/* @__PURE__ */h("div",{ref:ee,className:ve.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ve.failed,children:I.failed}),T&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>T.onChange(!T.active),leftIcon:/* @__PURE__ */h(se,{leave:T.active}),children:T.active?I.leaveFullScreen:I.fullScreen}),f,null!=z&&!We&&/* @__PURE__ */h("div",{"data-map-card":"",className:ve.cardInline,children:z}),We&&Te?p(z,Te):null,fe&&/* @__PURE__ */h(le,{pins:t,hosts:he.current,hostClass:ve.iconHost})]})}function le({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
2
+ import{Button_default as e}from"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import{Icon as t}from"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as n}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import{rootIsDark as r,ROOT_THEME_ATTRIBUTES as o}from"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as a}from"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,k=12,w=480,v={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-k-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-k,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<k?(i="-left",c=Math.max(0,k-e.x)):e.x+t.width/2>n.width-k&&(i="-right",c=-Math.max(0,e.x-(n.width-k))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,j=null;function S(){return j??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw j=null,e}),j}var $=null;var E=24,B=28,A=29;function z(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function R(e){const t=Math.max(B,12+8*e.length);return t+t%2}var W=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function T(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var O=e=>W(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(T(O(e[t]),O(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>T(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:B,height:B,under:0}));for(let e=F(o);e;e=F(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=R(z(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(O(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=W(t.x,t.y,E,E),l=o.find(t=>T(O(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>T(O(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:E,height:E,under:0})}return{groups:[...o,...a],hidden:n}}function q(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function P(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:o}),()=>t.disconnect()}var _=r;var H=(...e)=>e.filter(Boolean).join(" "),D=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function I(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!D.test(r.slice(7))})}var J="ring-2 ring-gray-900 ring-offset-2",V={portal:{frame:e=>H("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>H("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return H("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!I(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":J),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>H("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!I(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>H("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&J),badge:e=>H("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-white text-gray-900"),iconHost:"contents"},site:{frame:e=>H("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>H("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>H("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>H("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>H("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return $??=import("efficient-shell/map-site.css").catch(e=>{throw $=null,e}),$}}},Z="routes",U=["routes-road","routes-estimate"];function G(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),Q(n)}function Q(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var X={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},Y={center:[30,20],zoom:1};var ee="http://www.w3.org/2000/svg",te=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,ne=(...e)=>e.filter(Boolean).join(" ");function re(e){const t=document.createElementNS(ee,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(ee,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function oe(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function ae({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:k,marks:w,groupCrowded:C=!1,noun:L,highlightKey:j=null,picking:$=!1,onPick:A,card:R,cardMinMapWidth:W=480,fullScreen:T,initialView:O=Y,cooperativeGestures:F=!1,look:H="portal",theme:D}){const I=a().map,J=l(null),ee=l(null),ae=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),ke=d(P,_,()=>!1),we=D??(ke?"dark":"light"),ve=V[H],Ne=l({onSelect:o,onPick:A,picking:$,pins:t,selectedKey:n,highlightKey:j,groupCrowded:C,strings:I,noun:L,looks:ve});i(()=>{Ne.current={onSelect:o,onPick:A,picking:$,pins:t,selectedKey:n,highlightKey:j,groupCrowded:C,strings:I,noun:L,looks:ve}}),i(()=>{ve.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[ve]);const Me=c(()=>{const e=ae.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:te()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=ae.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>q(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:te()?0:600})},[]),je=c(()=>{const e=ae.current,t=ie.current;if(!e||!t||!J.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...J.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=K([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?z(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const y=m.button.firstElementChild;y.textContent=g;const b=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));y.className!==b&&(y.className=b),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?B:E),height:t.button.offsetHeight||(null!=t.pin.stop?B:E)}:n?{at:n.mark,width:n.element.offsetWidth||B,height:n.element.offsetHeight||B}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(je(),!J.current)return;const e=new ResizeObserver(()=>je());e.observe(J.current);for(const t of J.current.children)t.contains(ee.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await S();if(e||!ee.current)return;ie.current=o,t=new o.Map({container:ee.current,style:X[we],center:O.center,zoom:O.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===F?window.matchMedia("(pointer: coarse)").matches:F}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(O.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(ee.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(ee.current),ae.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),ae.current=null}},[]);const Se=l(we);i(()=>{fe&&ae.current&&Se.current!==we&&(Se.current=we,ae.current.setStyle(X[we]))},[fe,we]),i(()=>{const e=ae.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ve.pinButton(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(oe(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(re(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ve.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),ce.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,oe(r,t.data),r.className=ve.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),ce.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}je()},[fe,t,w,C,je,H]),i(()=>{fe&&je()},[fe,n,j,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=ae.current,n=ie.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=ae.current;if(!fe||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),Q(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?G(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Z);if(s&&(s.attribution||"")!==n){for(const t of U)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Z)}const i=e.getSource(Z);i?i.setData(o):e.addSource(Z,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:Z,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:Z,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,y,we]),i(()=>{const e=ae.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?q(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};te()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[$e,Ee]=s(!1);i(()=>{const e=J.current;if(!e)return;const t=()=>Ee(e.clientWidth<W);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[W]);const Be=n?t.find(e=>e.key===n)??null:null,Ae=Be?.key??null,ze=Be?.lng??0,Re=Be?.lat??0,We=fe&&!$e&&null!=R&&!!Be,[Te,Oe]=s(null);i(()=>{const e=ae.current,t=ie.current;if(!(We&&e&&t&&Ae))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:v,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,Re]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===V.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Oe(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),J.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:te()?0:250}),je()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Oe(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Ae)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[We,Ae,ze,Re,je]);const Fe=T?.active??!1,Ke=l(T?.onChange);i(()=>{Ke.current=T?.onChange}),i(()=>{if(!T)return;const e=document.documentElement;Fe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Fe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Fe]);const qe=!!T;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:J,className:ne(ve.frame($),g),children:[
3
+ /* @__PURE__ */h("div",{className:ve.fill,children:/* @__PURE__ */h("div",{ref:ee,className:ve.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ve.failed,children:I.failed}),T&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>T.onChange(!T.active),leftIcon:/* @__PURE__ */h(se,{leave:T.active}),children:T.active?I.leaveFullScreen:I.fullScreen}),f,null!=R&&!We&&/* @__PURE__ */h("div",{"data-map-card":"",className:ve.cardInline,children:R}),We&&Te?p(R,Te):null,fe&&/* @__PURE__ */h(le,{pins:t,hosts:he.current,hostClass:ve.iconHost})]})}function le({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
4
4
  return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function se({leave:e}){/* @__PURE__ */
5
5
  return h(t,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function ie(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var ce=3e3,ue=e=>!!e?.pending&&3e3,de=e=>`${e.kind}:${e.id}`,pe=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function me(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var he={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},ge=["importer","dealer","retail","supplier","delivery_location","warehouse"];function fe(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var ye=(e,t=he)=>t[e]?.tone??"bg-gray-700 text-white",be=(e,t=he)=>t[e]?.label??e,xe=(e,t)=>ye(fe(e),t);function ke(e,t,n=he){return null!=t?String(t):(n[fe(e)]?.label??"").charAt(0).toUpperCase()}var we=["delivery_location","warehouse"];function ve(e,t=we){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(de(o),++r);return n}function Ne(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)pe(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Me(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function Ce(e){const t=[...new Set(e.filter(pe).map(fe))];return[...ge.filter(e=>t.includes(e)),...t.filter(e=>!ge.includes(e))]}function Le(e,t){return e.filter(e=>!pe(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(de(e)),r=me(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:de(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function je({categories:e,palette:t=he,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
6
6
  /* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${ye(e,t)}`}),be(e,t)]},e))})}function Se({point:n,number:r,onOpen:o,onClose:l,palette:s=he}){const i=me(n.placement),c=fe(n),u=a().map;/* @__PURE__ */
@@ -18,4 +18,4 @@ return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,childr
18
18
  /* @__PURE__ */m("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
19
19
  /* @__PURE__ */h(je,{categories:j,palette:d,floating:!1}),b&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
20
20
  /* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!b&&(S>0||L.length>0)&&/* @__PURE__ */m("div",{className:"max-w-full space-y-0.5 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[S>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-gray-500",children:[
21
- /* @__PURE__ */h(n,{}),"Locating ",S," address",1===S?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),$&&/* @__PURE__ */h(Se,{point:$,number:M.get(de($))??null,onOpen:E,onClose:()=>v(null),palette:d})]})]})}export{w as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,ae as EntityMap,Ee as LocationsMap,C as MAPLIBRE_WORKER_FILE,A as MAP_APART_PX,he as MAP_CATEGORIES,V as MAP_LOOKS,B as MAP_STOP_PX,E as MAP_TARGET_PX,je as MapLegend,ce as PENDING_POLL_MS,we as SECONDARY_KINDS,Se as SelectedCard,N as cardMaxHeight,be as categoryLabel,ye as categoryTone,b as foldAttributionOnce,pe as isOnMap,K as layoutPins,Ce as legendCategories,S as loadMapLibre,ve as locationNumbers,L as mapLibreWorkerUrl,ue as mapPointsRefetchInterval,Le as offMapNotes,fe as pinCategory,ke as pinGlyph,xe as pinTone,M as placeCard,me as placementNote,de as pointKey,R as stopsLabel,Ne as summarize,Me as summaryText,ie as useMapHighlight,$e as useMapPoints,H as zoomApart};
21
+ /* @__PURE__ */h(n,{}),"Locating ",S," address",1===S?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),$&&/* @__PURE__ */h(Se,{point:$,number:M.get(de($))??null,onOpen:E,onClose:()=>v(null),palette:d})]})]})}export{w as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,ae as EntityMap,Ee as LocationsMap,C as MAPLIBRE_WORKER_FILE,A as MAP_APART_PX,he as MAP_CATEGORIES,V as MAP_LOOKS,B as MAP_STOP_PX,E as MAP_TARGET_PX,je as MapLegend,ce as PENDING_POLL_MS,we as SECONDARY_KINDS,Se as SelectedCard,N as cardMaxHeight,be as categoryLabel,ye as categoryTone,b as foldAttributionOnce,pe as isOnMap,K as layoutPins,Ce as legendCategories,S as loadMapLibre,ve as locationNumbers,L as mapLibreWorkerUrl,ue as mapPointsRefetchInterval,Le as offMapNotes,fe as pinCategory,ke as pinGlyph,xe as pinTone,M as placeCard,me as placementNote,de as pointKey,z as stopsLabel,Ne as summarize,Me as summaryText,ie as useMapHighlight,$e as useMapPoints,q as zoomApart};
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import{Icon as e}from"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import{useBrowserLayoutEffect as t}from"../chunk-D65T4H6J.js";import{memo as r,useRef as a,useState as o,useMemo as s}from"react";import l from"react-markdown";import n from"remark-breaks";import m from"remark-gfm";import{jsx as d,jsxs as c}from"react/jsx-runtime";function i(){const e=this.data();(e.micromarkExtensions??=[]).push({disable:{null:["codeIndented","htmlFlow","htmlText","setextUnderline"]}})}var b={note:[m,n,i],article:[m,i]},x=({node:e,...t})=>/* @__PURE__ */d("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline break-all"}),g=({node:e,...t})=>/* @__PURE__ */d("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",...t}),h=e=>({node:t,...r})=>/* @__PURE__ */d("pre",{className:`${e} overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:[font-size:inherit]`,...r}),y={th:({node:e,...t})=>/* @__PURE__ */d("th",{className:"border border-gray-200 bg-gray-50 px-2 py-1 text-left font-semibold text-gray-700",...t}),td:({node:e,...t})=>/* @__PURE__ */d("td",{className:"border border-gray-200 px-2 py-1 align-top",...t})},p={a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"text-base font-semibold text-gray-900",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"text-sm font-semibold text-gray-900",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"text-sm font-semibold text-gray-700",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"text-sm font-semibold text-gray-700",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"text-sm font-semibold text-gray-700",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"list-disc pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"list-decimal pl-5",...t}),code:g,pre:h("p-2"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"border-l-2 border-gray-300 pl-3 text-gray-600",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"overflow-x-auto",children:/* @__PURE__ */d("table",{className:"text-xs border-collapse",...t})}),...y,img:({node:e,alt:t,...r})=>/* @__PURE__ */d("img",{...r,alt:t??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})};function f(e){return e?{...p,img:({node:t,src:r,alt:a,...o})=>{const s="string"==typeof r?r:void 0;/* @__PURE__ */
2
+ import{Icon as e}from"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import{useBrowserLayoutEffect as t}from"../chunk-D65T4H6J.js";import{memo as r,useRef as a,useState as o,useMemo as s}from"react";import l from"react-markdown";import n from"remark-breaks";import m from"remark-gfm";import{jsx as d,jsxs as c}from"react/jsx-runtime";function i(){const e=this.data();(e.micromarkExtensions??=[]).push({disable:{null:["codeIndented","htmlFlow","htmlText","setextUnderline"]}})}var b={note:[m,n,i],article:[m,i]},x=({node:e,...t})=>/* @__PURE__ */d("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline break-all"}),g=({node:e,...t})=>/* @__PURE__ */d("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",...t}),h=e=>({node:t,...r})=>/* @__PURE__ */d("pre",{className:`${e} overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:[font-size:inherit]`,...r}),y={th:({node:e,...t})=>/* @__PURE__ */d("th",{className:"border border-gray-200 bg-gray-50 px-2 py-1 text-left font-semibold text-gray-700",...t}),td:({node:e,...t})=>/* @__PURE__ */d("td",{className:"border border-gray-200 px-2 py-1 align-top",...t})},p={a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"text-base font-semibold text-gray-900",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"text-sm font-semibold text-gray-900",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"text-sm font-semibold text-gray-700",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"text-sm font-semibold text-gray-700",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"text-sm font-semibold text-gray-700",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"list-disc pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"list-decimal pl-5",...t}),code:g,pre:h("p-2"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"border-l-2 border-gray-300 pl-3 text-gray-600",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"overflow-x-auto",children:/* @__PURE__ */d("table",{className:"text-xs border-collapse",...t})}),...y,img:({node:e,alt:t,...r})=>/* @__PURE__ */d("img",{...r,alt:t??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})};function f(e){return e?{...p,img:({node:t,src:r,alt:a,...o})=>{const s="string"==typeof r?r:void 0;/* @__PURE__ */
3
3
  return d("img",{...o,src:s?e(s):s,alt:a??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})}}:p}function u({src:t,alt:r}){const[a,s]=o(!1),l=(r??"").replace(/^screenshot:\s*/i,"");return!t||a?/* @__PURE__ */c("span",{className:"my-3 flex items-start gap-2 rounded-lg border border-dashed border-gray-300 bg-gray-50 px-3 py-3 text-gray-500",children:[
4
4
  /* @__PURE__ */d(e,{name:"camera",look:"mini",className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),
5
5
  /* @__PURE__ */d("span",{className:"text-xs",children:l||"Screenshot"})]}):/* @__PURE__ */d("img",{src:t,alt:r??"",loading:"lazy",onError:()=>s(!0),className:"my-3 block max-w-full rounded-lg border border-gray-200"})}function N(e){return{a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"mt-6 mb-3 text-xl font-semibold text-gray-900 first:mt-0",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"mt-6 mb-3 border-b border-gray-200 pb-2 text-lg font-semibold text-gray-900 first:mt-0",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"mt-5 mb-2 text-base font-semibold text-gray-900 first:mt-0",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"mt-4 mb-2 text-sm font-semibold text-gray-900 first:mt-0",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"mt-4 mb-2 text-sm font-semibold text-gray-700 first:mt-0",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"mt-4 mb-2 text-sm font-semibold text-gray-700 first:mt-0",...t}),p:({node:e,...t})=>/* @__PURE__ */d("p",{className:"my-3 leading-relaxed",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"my-3 list-disc space-y-1 pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"my-3 list-decimal space-y-1 pl-5",...t}),li:({node:e,...t})=>/* @__PURE__ */d("li",{className:"leading-relaxed [&>p]:my-1",...t}),code:g,pre:h("my-3 p-3"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"my-3 rounded-r-lg border-l-4 border-blue-400/60 bg-blue-50 px-3 py-2 text-gray-700 [&>p]:my-1",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"my-4 border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"my-3 overflow-x-auto",children:/* @__PURE__ */d("table",{className:"border-collapse text-sm",...t})}),...y,img:({node:t,src:r,alt:a})=>{const o="string"==typeof r?r:void 0;/* @__PURE__ */
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GENERATED FILE. Do not edit by hand.
3
+ * Source: ./efficient.json. Regenerate: node scripts/icons/generate.mjs
4
+ */
5
+ /**
6
+ * Every meaning the one set draws. `<Icon name>` takes exactly these.
7
+ */
8
+ declare const ICON_NAMES: readonly ["academic-cap", "accent", "account", "account-circle", "add", "add-circle", "add-person", "adjust", "align-center", "align-justify", "align-left", "align-right", "align-separate", "alignment", "anchor", "animation", "apps", "archive-box", "arrow", "arrow-down", "arrow-left", "arrow-left-end-on-rectangle", "arrow-long-right", "arrow-right", "arrow-trending-down", "arrow-trending-up", "arrow-up", "arrow-up-right", "at-symbol", "attach", "background", "bag", "bank", "bars-3-bottom-left", "battery", "beaker", "bell", "bell-alert", "bell-plus", "billing", "black-and-white", "block-badge", "block-banner", "block-box", "block-button", "block-column", "block-coupon", "block-divider", "block-footer", "block-heading", "block-image", "block-included-list", "block-layered-images", "block-product", "block-product-title", "block-section", "block-social", "block-spacer", "block-text", "block-video", "blog-post", "bold", "bolt", "book-open", "bookmark", "bookmark-square", "border-all", "border-bottom", "border-left", "border-right", "border-top", "braces", "brand-1password", "brand-amd", "brand-anthropic", "brand-apple", "brand-aws", "brand-cloudflare", "brand-dell", "brand-github", "brand-intel", "brand-nvidia", "brand-samsung", "breadcrumb", "briefcase", "bug", "bug-ant", "building-library", "building-office-2", "button", "button-arrow", "button-icon", "calculator", "calendar", "calendar-check", "camera", "caption", "car", "card-payment", "caret", "cart", "case", "case-capitalized", "case-lower", "case-normal", "case-upper", "category", "chart", "chart-bar", "chart-bar-square", "chart-line", "chat", "chat-bubble-left-right", "chat-bubble-oval-left-ellipsis", "check", "check-circle", "checkbox", "chevron", "chevron-double", "chevron-double-left", "chevron-double-right", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle-stack", "clear-marks", "clipboard", "clipboard-check", "clipboard-document-list", "clipboard-list", "clock", "close", "close-circle", "cloud", "cloud-alert", "cloud-arrow-up", "cloud-check", "cloud-download", "cloud-pause", "cloud-slash", "code", "code-bracket", "collapse", "collapse-all", "column-gap", "column-widths", "columns", "company", "compose", "contrast", "cookie", "copied", "copy", "copy-style", "copy-to-page", "corner", "crop", "crop-bottom", "crop-left", "crop-left-right", "crop-right", "crop-top", "crop-y", "cube-transparent", "cursor", "cursor-arrow-rays", "cursor-click", "dashboard", "date", "desktop", "diagram", "direction", "direction-down", "direction-left", "direction-right", "direction-up", "document", "document-check", "document-magnifying-glass", "dollar", "dot", "download", "drag", "drop", "duplicate", "edit", "email", "emphasis", "eraser", "error", "expand", "external", "eye", "eye-off", "face-smile", "filter", "finish", "fire", "flag", "flag-au", "flag-ca", "flag-eu", "flag-gb", "flag-nz", "flag-us", "folder", "folder-open", "folder-plus", "forward", "full-width", "gap", "gem", "gift", "globe", "grid", "ground", "hand", "hand-thumb-up", "hash", "headquarters", "heart", "height", "help", "help-off", "hexagon", "home", "hover", "icon-after-text", "icon-before-text", "identification", "image", "image-off", "images", "inbox", "info", "italic", "key", "layers", "layout", "letter-spacing", "lightbulb", "line-between", "line-dashed", "line-dotted", "line-solid", "line-spacing", "line-style", "link", "link-slash", "list", "list-format", "list-none", "location", "lock", "logo", "logout", "map", "media", "media-layout-big-two", "media-layout-inset", "media-layout-side-by-side", "media-layout-stacked", "megaphone", "menu", "meta", "microphone", "money", "moon", "more", "more-vertical", "move-down", "move-up", "newspaper", "no-symbol", "note", "nudge", "nudge-x", "nudge-y", "numbered-list", "opacity", "own-text", "package", "package-open", "padding-all", "padding-bottom", "padding-left", "padding-left-right", "padding-right", "padding-top", "padding-x", "padding-y", "page", "paint-brush", "palette", "panel-left", "panel-right", "paragraph-spacing", "parcel", "paste", "paste-style", "pause", "pen", "people", "percent", "phone", "phone-hidden", "placement", "play", "plus-minus", "power", "presentation-chart-bar", "print", "product", "product-field", "product-size", "progress", "quiet", "quote", "radio-dot", "radius", "receipt", "receipt-percent", "receipt-refund", "rectangle-group", "redo", "refresh", "remove", "remove-circle", "rename", "reply", "reply-all", "revert", "robot", "rotate", "scale", "scroll-point", "scroll-text", "search", "select-all", "send", "server", "settings", "shadow", "shape-ellipse", "shape-rect", "share", "shield-check", "shield-exclamation", "sides-each", "signal", "signal-slash", "sitemap", "slide-arrows-bare", "slide-arrows-round", "slide-arrows-square", "slide-picker-bar", "slide-picker-cards", "slide-picker-dots", "slide-picker-numbers", "slide-picker-squares", "sort", "sparkles", "speaker", "speaker-wave", "spec-table", "spinner", "split", "square", "star", "state", "status-circle", "status-dot", "sticky", "stop-circle", "store", "strike", "styles", "subscript", "success-burst", "sun", "superscript", "swap", "swatch", "table", "tablet", "tabs", "tag", "target", "team", "telephone", "template", "text-color", "text-lines", "text-size", "text-small", "text-value", "texture", "theme", "ticket", "title", "trash", "trigger", "truck", "tv", "type", "tyre", "underline", "undo", "upload", "v-align", "verified", "video-off", "view-columns", "wallet", "warning", "weight", "wheel", "widgets", "width", "window", "windows", "words-from", "wrap", "wrench", "wrench-screwdriver", "zoom-in"];
9
+ type IconName = (typeof ICON_NAMES)[number];
10
+ /** Whether `value` is a meaning the set draws. */
11
+ declare const isIconName: (value: unknown) => value is IconName;
12
+ /**
13
+ * The brand marks among them (./brands.json): vendor logos, filled in one
14
+ * colour, sized by area (`brandBox`), and never redrawn by a theme's set.
15
+ */
16
+ declare const BRAND_ICON_NAMES: readonly ["brand-1password", "brand-amd", "brand-anthropic", "brand-apple", "brand-aws", "brand-cloudflare", "brand-dell", "brand-github", "brand-intel", "brand-nvidia", "brand-samsung"];
17
+ type BrandIconName = (typeof BRAND_ICON_NAMES)[number];
18
+ /** Whether `value` is a brand mark. */
19
+ declare const isBrandIconName: (value: unknown) => value is BrandIconName;
20
+
21
+ export { BRAND_ICON_NAMES as B, ICON_NAMES as I, type BrandIconName as a, type IconName as b, isIconName as c, isBrandIconName as i };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{TabStrip as e}from"../chunk-US5B4QYS.js";import{useShellLanguage as t}from"../chunk-SDIGC5NU.js";import"../chunk-4A2X6KLQ.js";import{confirm as n}from"../chunk-CP6FITHO.js";import"../chunk-OZ2ALRKX.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-RAHIWTPJ.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-CDAJKLGL.js";import"../chunk-K7U4RWXJ.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as l,memo as s,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var K=l(null),j=l(null),F=12;var T=(e,t)=>e.filter(e=>e!==t);function A(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function N(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(l=e.mounted,s=t.key,l.includes(s)?l:[...l,s]),clock:r};var l,s;return c.closing&&c.closing!==t.key?c=I(c,c.closing):c.closing===t.key&&(c={...c,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=I(n,e[0].key)}return n}(c,n)}function C(e){let t={...e,activeKey:null};return t.closing&&(t=I(t,t.closing)),t}function I(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:T(e.mounted,t),dirty:T(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function L(e,t){switch(t.type){case"visit":return N(e,t.entry,t.maxTabs);case"transient":return C(e);case"close":{let n=e;for(const e of t.keys)n=I(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:T(e.dirty,t)}}(e,t.key,t.dirty)}}var R=e=>`${e.pathname}${e.search}`;function M(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function w({children:e,resolve:c,pinned:l=[],storageKey:s,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const j=m(),F=h(),T=i().pageTabs,I=y(),w=a(c);w.current=c;const O=d(e=>{const t=w.current(e);return t?{key:t.key??e.pathname,path:R(e),title:t.title}:null},[]),{language:W}=t(),[x,D]=p(L,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),l=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||l.some(e=>e.key===i.key))continue;const s=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;l.push({key:i.key,path:r,title:s||i.title,titleFrom:s?"page":"route",pinned:!1,lastActive:0})}return l}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(s),e=>O(M(e)),W);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:A(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},l.map(e=>O(M(e))).filter(e=>Boolean(e)));const n=v?O(j):null;return t=n?N(t,n,k):C(t),t}),J=a(x);J.current=x;const S=a(/* @__PURE__ */new Map),B=v?O(j):null,P=B?.key??null;r(()=>{if(!v)return;const e=O(j);e?(S.current.set(e.key,j),D({type:"visit",entry:e,maxTabs:k})):D({type:"transient"})},[j,v,k,O]),o(()=>{const e=new Set(x.tabs.map(e=>e.key));for(const t of S.current.keys())e.has(t)||S.current.delete(t)},[x.tabs]);const Q=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(x,W),[x,W]);o(()=>{if(s)try{localStorage.setItem(s,Q)}catch{}},[Q,s]);const $=x.dirty.length>0;o(()=>{if(!$)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[$]);const E=a(/* @__PURE__ */new Map),G=d((e,t)=>{let n=E.current.get(e);return void 0===n&&(n=E.current.size,E.current.set(e,n)),`${I}-page-${t}-${n}`},[I]),H=d(e=>g?g(e):n({title:T.discardTitle,message:1===e.length?T.discardOne:T.discardCount?.(e.length)??`${e.length} ${T.discardMany}`,confirmLabel:T.discardConfirm,cancelLabel:T.keepEditing,variant:"warning"}),[g,T]),U=d(()=>{const e=J.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),V=d((e,t,n)=>{const r=J.current,i=r.activeKey;if(!i||!e.includes(i))return void D({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},l=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(l??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??U()}D({type:"close",keys:e.filter(e=>e!==i),closing:i}),F(c)},[F,U]),X=d(async(e,t={})=>{const n=J.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&F(t.to),!1):!(!t.force&&J.current.dirty.includes(e)&&!await H([n]))&&(!!J.current.tabs.some(t=>t.key===e)&&(V([e],t.to),!0))},[H,V,F]),Z=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(J.current,e,t);const r=J.current.tabs.filter(e=>n.includes(e.key)&&J.current.dirty.includes(e.key));r.length&&!await H(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(J.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&V(n,void 0,"all"===e?null:t)},[H,V]),Y=d(e=>{const t=J.current.tabs.find(t=>t.key===e);t&&e!==J.current.activeKey&&F(t.path)},[F]),z=d((e,t)=>D({type:"title",key:e,title:t}),[]),q=d((e,t)=>D({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>O(e)?.key??null,[O]),re=d(e=>S.current.get(e),[]),ie=u(()=>v?x.tabs.filter(e=>e.key!==x.closing):[],[v,x.tabs,x.closing]),ce=u(()=>({enabled:v,state:x,currentKey:P,resolve:c,keyFor:ne,locationFor:re,idFor:G,activate:Y,close:X,closeMany:Z,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,x,P,c,ne,re,G,Y,X,Z,z,q,_,te,ie]);/* @__PURE__ */
3
- return b(K.Provider,{value:ce,children:e})}var O=c.Activity,W=Boolean(O);function x({active:e,children:t}){return O?/* @__PURE__ */b(O,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var D=s(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:l,tabId:s}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
- return b("div",{ref:y,role:l?"tabpanel":void 0,id:l,"aria-labelledby":s,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(j.Provider,{value:f,children:/* @__PURE__ */b(x,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),J="\0transient";function S({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
5
- return b("div",{className:t,children:e(r)},J);const{state:i,currentKey:c,locationFor:l,idFor:s}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:l(n);return a?/* @__PURE__ */b(D,{tabKey:n,active:i,location:a,render:e,className:t,panelId:s(n,"panel"),tabId:s(n,"tab")},n):null}),!c&&/* @__PURE__ */b(D,{tabKey:J,active:!0,location:r,render:e,className:t},J)]})}function B({className:t,activeClassName:n,end:r}){const c=k(K),l=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:s,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
6
- return b(e,{tabs:s.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(M(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:l.label,className:t,activeClassName:n,end:r})}var P={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function Q(){const e=k(K);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:P}function $(){const e=k(K),t=k(j),n=h();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function E(e){const t=k(K),n=k(j),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function G(e){const t=k(K),n=k(j),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function H(e){const t=k(K),n=k(j),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{F as DEFAULT_MAX_TABS,W as PAGE_TABS_PAUSE_HIDDEN,B as PageTabBar,S as PageTabsOutlet,w as PageTabsProvider,M as parseTabPath,$ as usePageTab,G as usePageTabCopy,H as usePageTabDirty,E as usePageTabTitle,Q as usePageTabs};
2
+ import{TabStrip as e}from"../chunk-GLVEL6AQ.js";import{useShellLanguage as t}from"../chunk-SDIGC5NU.js";import"../chunk-5GHLKEJQ.js";import{confirm as n}from"../chunk-RP4ZLTXA.js";import"../chunk-Q7OGTJET.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-7IF3RZF3.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-CDAJKLGL.js";import"../chunk-K7U4RWXJ.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as l,memo as s,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var K=l(null),j=l(null),F=12;var T=(e,t)=>e.filter(e=>e!==t);function N(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function A(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(l=e.mounted,s=t.key,l.includes(s)?l:[...l,s]),clock:r};var l,s;return c.closing&&c.closing!==t.key?c=I(c,c.closing):c.closing===t.key&&(c={...c,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=I(n,e[0].key)}return n}(c,n)}function C(e){let t={...e,activeKey:null};return t.closing&&(t=I(t,t.closing)),t}function I(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:T(e.mounted,t),dirty:T(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function L(e,t){switch(t.type){case"visit":return A(e,t.entry,t.maxTabs);case"transient":return C(e);case"close":{let n=e;for(const e of t.keys)n=I(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:T(e.dirty,t)}}(e,t.key,t.dirty)}}var M=e=>`${e.pathname}${e.search}`;function R(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function w({children:e,resolve:c,pinned:l=[],storageKey:s,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const j=m(),F=h(),T=i().pageTabs,I=y(),w=a(c);w.current=c;const J=d(e=>{const t=w.current(e);return t?{key:t.key??e.pathname,path:M(e),title:t.title}:null},[]),{language:O}=t(),[W,x]=p(L,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),l=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||l.some(e=>e.key===i.key))continue;const s=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;l.push({key:i.key,path:r,title:s||i.title,titleFrom:s?"page":"route",pinned:!1,lastActive:0})}return l}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(s),e=>J(R(e)),O);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:N(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},l.map(e=>J(R(e))).filter(e=>Boolean(e)));const n=v?J(j):null;return t=n?A(t,n,k):C(t),t}),D=a(W);D.current=W;const E=a(/* @__PURE__ */new Map),G=v?J(j):null,Q=G?.key??null;r(()=>{if(!v)return;const e=J(j);e?(E.current.set(e.key,j),x({type:"visit",entry:e,maxTabs:k})):x({type:"transient"})},[j,v,k,J]),o(()=>{const e=new Set(W.tabs.map(e=>e.key));for(const t of E.current.keys())e.has(t)||E.current.delete(t)},[W.tabs]);const S=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(W,O),[W,O]);o(()=>{if(s)try{localStorage.setItem(s,S)}catch{}},[S,s]);const B=W.dirty.length>0;o(()=>{if(!B)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[B]);const P=a(/* @__PURE__ */new Map),V=d((e,t)=>{let n=P.current.get(e);return void 0===n&&(n=P.current.size,P.current.set(e,n)),`${I}-page-${t}-${n}`},[I]),$=d(e=>g?g(e):n({title:T.discardTitle,message:1===e.length?T.discardOne:T.discardCount?.(e.length)??`${e.length} ${T.discardMany}`,confirmLabel:T.discardConfirm,cancelLabel:T.keepEditing,variant:"warning"}),[g,T]),U=d(()=>{const e=D.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),Z=d((e,t,n)=>{const r=D.current,i=r.activeKey;if(!i||!e.includes(i))return void x({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},l=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(l??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??U()}x({type:"close",keys:e.filter(e=>e!==i),closing:i}),F(c)},[F,U]),H=d(async(e,t={})=>{const n=D.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&F(t.to),!1):!(!t.force&&D.current.dirty.includes(e)&&!await $([n]))&&(!!D.current.tabs.some(t=>t.key===e)&&(Z([e],t.to),!0))},[$,Z,F]),X=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(D.current,e,t);const r=D.current.tabs.filter(e=>n.includes(e.key)&&D.current.dirty.includes(e.key));r.length&&!await $(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(D.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&Z(n,void 0,"all"===e?null:t)},[$,Z]),z=d(e=>{const t=D.current.tabs.find(t=>t.key===e);t&&e!==D.current.activeKey&&F(t.path)},[F]),Y=d((e,t)=>x({type:"title",key:e,title:t}),[]),q=d((e,t)=>x({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>J(e)?.key??null,[J]),re=d(e=>E.current.get(e),[]),ie=u(()=>v?W.tabs.filter(e=>e.key!==W.closing):[],[v,W.tabs,W.closing]),ce=u(()=>({enabled:v,state:W,currentKey:Q,resolve:c,keyFor:ne,locationFor:re,idFor:V,activate:z,close:H,closeMany:X,setTitle:Y,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,W,Q,c,ne,re,V,z,H,X,Y,q,_,te,ie]);/* @__PURE__ */
3
+ return b(K.Provider,{value:ce,children:e})}var J=c.Activity,O=Boolean(J);function W({active:e,children:t}){return J?/* @__PURE__ */b(J,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var x=s(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:l,tabId:s}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
+ return b("div",{ref:y,role:l?"tabpanel":void 0,id:l,"aria-labelledby":s,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(j.Provider,{value:f,children:/* @__PURE__ */b(W,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),D="\0transient";function E({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
5
+ return b("div",{className:t,children:e(r)},D);const{state:i,currentKey:c,locationFor:l,idFor:s}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:l(n);return a?/* @__PURE__ */b(x,{tabKey:n,active:i,location:a,render:e,className:t,panelId:s(n,"panel"),tabId:s(n,"tab")},n):null}),!c&&/* @__PURE__ */b(x,{tabKey:D,active:!0,location:r,render:e,className:t},D)]})}function G({className:t,activeClassName:n,end:r}){const c=k(K),l=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:s,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
6
+ return b(e,{tabs:s.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(R(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:l.label,className:t,activeClassName:n,end:r})}var Q={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function S(){const e=k(K);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:Q}function B(){const e=k(K),t=k(j),n=h();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function P(e){const t=k(K),n=k(j),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function V(e){const t=k(K),n=k(j),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function $(e){const t=k(K),n=k(j),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{F as DEFAULT_MAX_TABS,O as PAGE_TABS_PAUSE_HIDDEN,G as PageTabBar,E as PageTabsOutlet,w as PageTabsProvider,R as parseTabPath,B as usePageTab,V as usePageTabCopy,$ as usePageTabDirty,P as usePageTabTitle,S as usePageTabs};
package/dist/pdf/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-IQQM7DOH.js"));export{e as PdfViewer};
2
+ import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-Q7IS273H.js"));export{e as PdfViewer};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{AccordionBody,AccordionHeading,accordionIdOf,Accordion as default}from"../chunk-KXTR2RPB.js";import"../chunk-IJMV4F2Q.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{AccordionBody,AccordionHeading,accordionIdOf,Accordion as default}from"../chunk-7IHH5CDD.js";import"../chunk-IJMV4F2Q.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-IQDIWKES.js";import"../chunk-TTE3GZWH.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-55IY2ZJY.js";import"../chunk-UWNL4FO2.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Banner as default}from"../chunk-TTE3GZWH.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Banner as default}from"../chunk-UWNL4FO2.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Breadcrumbs as default}from"../chunk-BKV6PH3R.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Breadcrumbs as default}from"../chunk-XTPDXB4X.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ColoredBadge as default}from"../chunk-CJUN2VOD.js";import"../chunk-BOGBLZKS.js";import"../chunk-QMQVOUIV.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{ColoredBadge as default}from"../chunk-JF45HC5H.js";import"../chunk-BOGBLZKS.js";import"../chunk-QMQVOUIV.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-CP6FITHO.js";import"../chunk-OZ2ALRKX.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-K7U4RWXJ.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-RP4ZLTXA.js";import"../chunk-Q7OGTJET.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-K7U4RWXJ.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ContextMenu,useContextMenu}from"../chunk-MTD66C5F.js";import"../chunk-RAHIWTPJ.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
2
+ export{ContextMenu,useContextMenu}from"../chunk-FEAOJLGA.js";import"../chunk-7IF3RZF3.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Dialog as default}from"../chunk-OZ2ALRKX.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Dialog as default}from"../chunk-Q7OGTJET.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Drawer as default}from"../chunk-XYA7NPSZ.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Drawer as default}from"../chunk-XF2NZVXW.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DropdownMenu as default}from"../chunk-7RDFRWF3.js";import"../chunk-RAHIWTPJ.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-CDAJKLGL.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
2
+ export{DropdownMenu as default}from"../chunk-H3XEO4LR.js";import"../chunk-7IF3RZF3.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-CDAJKLGL.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{EmptyState as default}from"../chunk-BHGMJBJ2.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{EmptyState as default}from"../chunk-XZLBPVRH.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{HelpCenter as default}from"../chunk-GVTWQBRU.js";import"../chunk-2QI3QFX6.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-JFSYWEHD.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{HelpCenter as default}from"../chunk-PG665FWX.js";import"../chunk-76YDO3KA.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-JFSYWEHD.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-MXDW5IFQ.js";import"../chunk-SDIGC5NU.js";import"../chunk-VIJ5BZ5U.js";import"../chunk-VQCKMT5F.js";import"../chunk-64ACCUNN.js";import"../chunk-TZSPJIP4.js";import"../chunk-NI5FXWK5.js";import"../chunk-MXMBQS75.js";import"../chunk-EO5RLFRX.js";import"../chunk-C7PQJOGD.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-U6FORQTI.js";import"../chunk-SDIGC5NU.js";import"../chunk-SXPBOX32.js";import"../chunk-VQCKMT5F.js";import"../chunk-64ACCUNN.js";import"../chunk-TZSPJIP4.js";import"../chunk-NI5FXWK5.js";import"../chunk-OJ3RN3BG.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Markdown as default}from"../chunk-2QI3QFX6.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Markdown as default}from"../chunk-76YDO3KA.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{PageHeader as default}from"../chunk-4OYSTWMQ.js";import"../chunk-BKV6PH3R.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{PageHeader as default}from"../chunk-VANXHWGP.js";import"../chunk-XTPDXB4X.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-RAHIWTPJ.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
2
+ export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-7IF3RZF3.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{POST_PRODUCTION_STATUSES,STAGES,calcOverall,calcReportOverall,ProductionTimeline as default,useProductionTimeline}from"../chunk-WNJLY7CM.js";import"../chunk-SURSVJA2.js";import"../chunk-4CXQX5AX.js";import"../chunk-YDEIXM2A.js";import"../chunk-5OTS2G3M.js";import"../chunk-36BRD5J3.js";import"../chunk-465RRWBY.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{POST_PRODUCTION_STATUSES,STAGES,calcOverall,calcReportOverall,ProductionTimeline as default,useProductionTimeline}from"../chunk-2KOXALIK.js";import"../chunk-SURSVJA2.js";import"../chunk-4CXQX5AX.js";import"../chunk-YDEIXM2A.js";import"../chunk-5OTS2G3M.js";import"../chunk-36BRD5J3.js";import"../chunk-465RRWBY.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Result as default}from"../chunk-BXRWPGAT.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Result as default}from"../chunk-LR2X6MKB.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SearchableSelect as default,fitChoice}from"../chunk-3OKD2ZZV.js";import"../chunk-EO5RLFRX.js";import"../chunk-C7PQJOGD.js";import"../chunk-JFSYWEHD.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{SearchableSelect as default,fitChoice}from"../chunk-DXQCNU5I.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";import"../chunk-JFSYWEHD.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SettingReset as default}from"../chunk-5J6IC25E.js";import"../chunk-JHDWTYZ4.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{SettingReset as default}from"../chunk-VX4OBI4U.js";import"../chunk-JHDWTYZ4.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SidebarLayout as default}from"../chunk-JK3QY266.js";import"../chunk-QWK6DRSN.js";import"../chunk-XSY22PWH.js";import"../chunk-UGTRSRIW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{SidebarLayout as default}from"../chunk-G34KXE2L.js";import"../chunk-QWK6DRSN.js";import"../chunk-XSY22PWH.js";import"../chunk-UGTRSRIW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-7FNZUIXO.js";import"../chunk-QWK6DRSN.js";import"../chunk-TZFNWAED.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-D65T4H6J.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-HHXP34PV.js";import"../chunk-QWK6DRSN.js";import"../chunk-TZFNWAED.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-D65T4H6J.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ListRow,SortableList}from"../chunk-VH3IMIS2.js";import"../chunk-JGZWAEOJ.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{ListRow,SortableList}from"../chunk-2LTB2DSA.js";import"../chunk-JGZWAEOJ.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{StepChainItem,StepChain as default}from"../chunk-BJKXFEZN.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";
2
+ export{StepChainItem,StepChain as default}from"../chunk-ZEDYXP2J.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Stepper as default}from"../chunk-IC2YI7WC.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";
2
+ export{Stepper as default}from"../chunk-HXXUMKTV.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TopNav as default}from"../chunk-3RWLCKSR.js";import"../chunk-7RDFRWF3.js";import"../chunk-RAHIWTPJ.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-CDAJKLGL.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
2
+ export{TopNav as default}from"../chunk-L6CG37L3.js";import"../chunk-H3XEO4LR.js";import"../chunk-7IF3RZF3.js";import"../chunk-GZCAFWWB.js";import"../chunk-QR4RM7PO.js";import"../chunk-CDAJKLGL.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-7PCV65OU.js";import"../chunk-JGZWAEOJ.js";import"../chunk-BOGBLZKS.js";import"../chunk-QMQVOUIV.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-37S3WLBL.js";import"../chunk-JGZWAEOJ.js";import"../chunk-BOGBLZKS.js";import"../chunk-QMQVOUIV.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{startClientTelemetry}from"../chunk-B772UFJ5.js";import"../chunk-KNUR2UEG.js";import"../chunk-XHILMSCK.js";
1
+ export{startClientTelemetry}from"../chunk-HTOZWATN.js";import"../chunk-KNUR2UEG.js";import"../chunk-KV5VLPII.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChatTemplate as default}from"../chunk-N7LV32EQ.js";import"../chunk-JK3QY266.js";import"../chunk-QWK6DRSN.js";import"../chunk-XSY22PWH.js";import"../chunk-UL4WB3VH.js";import"../chunk-UNEJ2ABD.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChatTemplate as default}from"../chunk-ZKRWJILC.js";import"../chunk-G34KXE2L.js";import"../chunk-QWK6DRSN.js";import"../chunk-XSY22PWH.js";import"../chunk-UL4WB3VH.js";import"../chunk-UNEJ2ABD.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{CheckoutTemplate as default}from"../chunk-SBHLTCGU.js";import"../chunk-RD5UPROC.js";import"../chunk-MXMBQS75.js";import"../chunk-EO5RLFRX.js";import"../chunk-C7PQJOGD.js";import"../chunk-UNEJ2ABD.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-TTE3GZWH.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{CheckoutTemplate as default}from"../chunk-7QLI3HAO.js";import"../chunk-RD5UPROC.js";import"../chunk-OJ3RN3BG.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";import"../chunk-UNEJ2ABD.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-UWNL4FO2.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DataTablePage as default}from"../chunk-TAGZV46K.js";import"../chunk-RD5UPROC.js";import"../chunk-MXMBQS75.js";import"../chunk-EO5RLFRX.js";import"../chunk-C7PQJOGD.js";import"../chunk-UNEJ2ABD.js";import"../chunk-E4Z5OXBI.js";import"../chunk-XKCEVZZB.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-BOGBLZKS.js";import"../chunk-QMQVOUIV.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{DataTablePage as default}from"../chunk-EK3JM3J2.js";import"../chunk-RD5UPROC.js";import"../chunk-OJ3RN3BG.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";import"../chunk-UNEJ2ABD.js";import"../chunk-E4Z5OXBI.js";import"../chunk-XKCEVZZB.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-BOGBLZKS.js";import"../chunk-QMQVOUIV.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{EmailTemplate as default}from"../chunk-UHW2CFLV.js";import"../chunk-JK3QY266.js";import"../chunk-QWK6DRSN.js";import"../chunk-XSY22PWH.js";import"../chunk-UL4WB3VH.js";import"../chunk-UGTRSRIW.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{EmailTemplate as default}from"../chunk-C4YTKSXY.js";import"../chunk-G34KXE2L.js";import"../chunk-QWK6DRSN.js";import"../chunk-XSY22PWH.js";import"../chunk-UL4WB3VH.js";import"../chunk-UGTRSRIW.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{FormLayoutPage as default}from"../chunk-US5YOYS3.js";import"../chunk-RD5UPROC.js";import"../chunk-NI5FXWK5.js";import"../chunk-MXMBQS75.js";import"../chunk-EO5RLFRX.js";import"../chunk-C7PQJOGD.js";import"../chunk-UNEJ2ABD.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-AWY3F6PV.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-C2HHGLLR.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{FormLayoutPage as default}from"../chunk-DKY6X24V.js";import"../chunk-RD5UPROC.js";import"../chunk-NI5FXWK5.js";import"../chunk-OJ3RN3BG.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";import"../chunk-UNEJ2ABD.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-AWY3F6PV.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSP63GKK.js";import"../chunk-K7U4RWXJ.js";import"../chunk-ABJ4LWOW.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-Z3WKHMVB.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-T53TXXOC.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";