uomtiles 0.1.3 → 0.1.6

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 (623) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/87P1vrJx2.js +1 -0
  3. package/.output/public/_nuxt/{BA52uD81.js → B30iI6NY.js} +1 -1
  4. package/.output/public/_nuxt/{CD84FXNW.js → B3Fqmbvs.js} +1 -1
  5. package/.output/public/_nuxt/BhdViME82.js +1 -0
  6. package/.output/public/_nuxt/{D-IOtyQX.js → BryCauXl.js} +1 -1
  7. package/.output/public/_nuxt/{CkfS_Wbu.js → BsG4RgIF.js} +1 -1
  8. package/.output/public/_nuxt/{zUWhKXtw2.js → BvI0Fk652.js} +1 -1
  9. package/.output/public/_nuxt/Bw9ZfIEz.js +1 -0
  10. package/.output/public/_nuxt/BxH0LSKl2.js +1 -0
  11. package/.output/public/_nuxt/{C5Y76DD6.js → C0tXXd_q.js} +1 -1
  12. package/.output/public/_nuxt/{CVwoxklV.js → C3P9RWxN.js} +1 -1
  13. package/.output/public/_nuxt/{D3Us7gX72.js → C9NpqQyG2.js} +1 -1
  14. package/.output/public/_nuxt/CJxz3JZZ2.js +2 -0
  15. package/.output/public/_nuxt/{JdUwgqKv.js → CNw483Zj.js} +1 -1
  16. package/.output/public/_nuxt/{Hbp_Okvs.js → CQoH790U.js} +2 -2
  17. package/.output/public/_nuxt/{D8GHPYwQ.js → CS7MV-ad.js} +4 -4
  18. package/.output/public/_nuxt/{DnVJUY7B.js → CVIKhDCB.js} +1 -1
  19. package/.output/public/_nuxt/{CeHZqNQ0.js → CVfH720g.js} +1 -1
  20. package/.output/public/_nuxt/{DLIy3f3M.js → CZ6SZO_d.js} +1 -1
  21. package/.output/public/_nuxt/{Bpc1HTfh.js → CanHJd1e.js} +1 -1
  22. package/.output/public/_nuxt/CeHFmSjl.js +1 -0
  23. package/.output/public/_nuxt/CeVhOOkF2.js +1 -0
  24. package/.output/public/_nuxt/Cigra9s92.js +1 -0
  25. package/.output/public/_nuxt/{Bh2Uv1S7.js → ClKxITwT.js} +1 -1
  26. package/.output/public/_nuxt/{sMWyPZfC2.js → CsaKOXaj2.js} +1 -1
  27. package/.output/public/_nuxt/{GqgcWtrL.js → CttzcMfv.js} +1 -1
  28. package/.output/public/_nuxt/Cw2siAf_2.js +1 -0
  29. package/.output/public/_nuxt/{DQ8r1OSk.js → DE6808Yp.js} +1 -1
  30. package/.output/public/_nuxt/{CUJ4QmLF.js → DUBSg_Y2.js} +1 -1
  31. package/.output/public/_nuxt/{CxkDmpVY.js → DWmS9_5P.js} +1 -1
  32. package/.output/public/_nuxt/DYM416m_.js +1 -0
  33. package/.output/public/_nuxt/{D_9SjQFe.js → D_SGIxNl.js} +1 -1
  34. package/.output/public/_nuxt/{BHSn2vP72.js → DbaWJJIa2.js} +1 -1
  35. package/.output/public/_nuxt/{C-b4mqsD.js → DjVe4luM.js} +1 -1
  36. package/.output/public/_nuxt/{CoPjdBwX.js → Dv7uv3N72.js} +1 -1
  37. package/.output/public/_nuxt/{CM9IbYJz.js → P5kgsppB.js} +1 -1
  38. package/.output/public/_nuxt/{KttxEAyP2.js → XR4gtbmm.js} +1 -1
  39. package/.output/public/_nuxt/_5p6z8Bm.js +2 -0
  40. package/.output/public/_nuxt/builds/latest.json +1 -1
  41. package/.output/public/_nuxt/builds/meta/98e45168-6e30-460e-aa28-fab54f032a83.json +1 -0
  42. package/.output/public/_nuxt/entry.DaxLd-bD.css +1 -0
  43. package/.output/public/_nuxt/flight-area-analysis.worker-CWQYRs9s.js +26 -0
  44. package/.output/public/_nuxt/hB2w6SMP2.js +64 -0
  45. package/.output/public/_nuxt/hePW80VL.js +1 -0
  46. package/.output/public/_nuxt/maplibre-gl-worker-BtpYDTzw.js +11 -0
  47. package/.output/public/_nuxt/{nearest-area.worker-iSLH0Y_s.js → nearest-area.worker-BYHYA0SF.js} +1 -1
  48. package/.output/public/_nuxt/uomtiles-validation.worker-BTXhap7R.js +2 -0
  49. package/.output/server/chunks/_/antigravity-nfz.mjs +16 -3
  50. package/.output/server/chunks/_/antigravity-nfz.mjs.map +1 -1
  51. package/.output/server/chunks/_/coerce.mjs +8 -0
  52. package/.output/server/chunks/_/coerce.mjs.map +1 -0
  53. package/.output/server/chunks/_/config.mjs +1 -1
  54. package/.output/server/chunks/_/error-500.mjs +2 -2
  55. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  56. package/.output/server/chunks/_/file-workspace.mjs +57 -5
  57. package/.output/server/chunks/_/file-workspace.mjs.map +1 -1
  58. package/.output/server/chunks/_/map-service.mjs +1 -1
  59. package/.output/server/chunks/_/pixel-diff.mjs +1 -1
  60. package/.output/server/{node_modules/consola/dist/chunks → chunks/_}/prompt.mjs +2 -2
  61. package/.output/server/chunks/_/prompt.mjs.map +1 -0
  62. package/.output/server/chunks/_/schemas.mjs +5005 -0
  63. package/.output/server/chunks/_/schemas.mjs.map +1 -0
  64. package/.output/server/{node_modules/@vue/shared/dist/shared.cjs.prod.js → chunks/_/shared.cjs.prod.mjs} +90 -76
  65. package/.output/server/chunks/_/shared.cjs.prod.mjs.map +1 -0
  66. package/.output/server/chunks/_/uom-auth.mjs +42 -5
  67. package/.output/server/chunks/_/uom-auth.mjs.map +1 -1
  68. package/.output/server/chunks/build/{CompletedTaskSelect-Ba03kTs9.mjs → CompletedTaskSelect-nkBeLFh1.mjs} +768 -769
  69. package/.output/server/chunks/build/{CompletedTaskSelect-Ba03kTs9.mjs.map → CompletedTaskSelect-nkBeLFh1.mjs.map} +1 -1
  70. package/.output/server/chunks/build/Empty-Cq-rSwil.mjs +259 -0
  71. package/.output/server/chunks/build/Empty-Cq-rSwil.mjs.map +1 -0
  72. package/.output/server/chunks/build/{interval-i5OZnTaK.mjs → Form-6_bvrptP.mjs} +37 -43
  73. package/.output/server/chunks/build/Form-6_bvrptP.mjs.map +1 -0
  74. package/.output/server/chunks/build/FormField-DJWBDPj5.mjs +246 -0
  75. package/.output/server/chunks/build/FormField-DJWBDPj5.mjs.map +1 -0
  76. package/.output/server/chunks/build/{Input-DnAric-z.mjs → Input-BeUryJZ5.mjs} +67 -68
  77. package/.output/server/chunks/build/Input-BeUryJZ5.mjs.map +1 -0
  78. package/.output/server/chunks/build/{MapLayerControl-DpNmYvcU.mjs → MapLayerControl-DPdRMmuw.mjs} +771 -772
  79. package/.output/server/chunks/build/{MapLayerControl-DpNmYvcU.mjs.map → MapLayerControl-DPdRMmuw.mjs.map} +1 -1
  80. package/.output/server/chunks/build/Modal-BZfMeBGt.mjs +1319 -0
  81. package/.output/server/chunks/build/{Modal-BLhN9Eg2.mjs.map → Modal-BZfMeBGt.mjs.map} +1 -1
  82. package/.output/server/chunks/build/{OnlineMap-B-sCfHkC.mjs → OnlineMap-CYdaIiq1.mjs} +46 -23
  83. package/.output/server/chunks/build/OnlineMap-CYdaIiq1.mjs.map +1 -0
  84. package/.output/server/chunks/build/Pagination-5jGo7sr3.mjs +1024 -0
  85. package/.output/server/chunks/build/{Pagination-CUzoLc_-.mjs.map → Pagination-5jGo7sr3.mjs.map} +1 -1
  86. package/.output/server/chunks/build/{Tabs-cdLsZZoL.mjs → ScrollArea-1y_sQGDj.mjs} +951 -952
  87. package/.output/server/chunks/build/ScrollArea-1y_sQGDj.mjs.map +1 -0
  88. package/.output/server/chunks/build/{Skeleton-CHp-GjOx.mjs → Skeleton-hv0ZqADP.mjs} +10 -11
  89. package/.output/server/chunks/build/{Skeleton-CHp-GjOx.mjs.map → Skeleton-hv0ZqADP.mjs.map} +1 -1
  90. package/.output/server/chunks/build/{Slider-CrIUK3pl.mjs → Slider-DMNQ5v0F.mjs} +150 -151
  91. package/.output/server/chunks/build/{Slider-CrIUK3pl.mjs.map → Slider-DMNQ5v0F.mjs.map} +1 -1
  92. package/.output/server/chunks/build/{Tooltip-DExIlyhu.mjs → Tooltip-Da_m4qTB.mjs} +151 -152
  93. package/.output/server/chunks/build/{Tooltip-DExIlyhu.mjs.map → Tooltip-Da_m4qTB.mjs.map} +1 -1
  94. package/.output/server/chunks/build/advanced-CQaZH879.mjs +5011 -0
  95. package/.output/server/chunks/build/advanced-CQaZH879.mjs.map +1 -0
  96. package/.output/server/chunks/build/{compare-DaE10Dhp.mjs → compare-CXhy8zkR.mjs} +297 -306
  97. package/.output/server/chunks/build/compare-CXhy8zkR.mjs.map +1 -0
  98. package/.output/server/chunks/build/{cookie-CziAmOf1.mjs → cookie-B6O7_fHD.mjs} +6 -6
  99. package/.output/server/chunks/build/{cookie-CziAmOf1.mjs.map → cookie-B6O7_fHD.mjs.map} +1 -1
  100. package/.output/server/chunks/build/dashboard-m7MkDiLb.mjs +3229 -0
  101. package/.output/server/chunks/build/{dashboard-Dq8mphss.mjs.map → dashboard-m7MkDiLb.mjs.map} +1 -1
  102. package/.output/server/chunks/build/{details-DCNvSBgn.mjs → details-BuFz0zbq.mjs} +207 -216
  103. package/.output/server/chunks/build/details-BuFz0zbq.mjs.map +1 -0
  104. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +12 -21
  105. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs.map +1 -1
  106. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +8 -17
  107. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs.map +1 -1
  108. package/.output/server/chunks/build/esm-Dp2lJXbp.mjs +10 -10
  109. package/.output/server/chunks/build/esm-Dp2lJXbp.mjs.map +1 -1
  110. package/.output/server/chunks/build/{file-workspace-DMzPuPyG.mjs → file-workspace-C9v6Qocb.mjs} +4 -4
  111. package/.output/server/chunks/build/file-workspace-C9v6Qocb.mjs.map +1 -0
  112. package/.output/server/chunks/build/{layers-50nqoWES.mjs → layers-BXomRZx1.mjs} +107 -116
  113. package/.output/server/chunks/build/layers-BXomRZx1.mjs.map +1 -0
  114. package/.output/server/chunks/build/{login-BHSHtO-R.mjs → login-Bc6Roxwo.mjs} +149 -153
  115. package/.output/server/chunks/build/login-Bc6Roxwo.mjs.map +1 -0
  116. package/.output/server/chunks/build/{map-layers-C3HJoCLw.mjs → map-layers-CTSGZGmW.mjs} +6 -6
  117. package/.output/server/chunks/build/map-layers-CTSGZGmW.mjs.map +1 -0
  118. package/.output/server/chunks/build/{overlay-BS4_B29H.mjs → overlay-LIOZRR0G.mjs} +174 -154
  119. package/.output/server/chunks/build/{overlay-BS4_B29H.mjs.map → overlay-LIOZRR0G.mjs.map} +1 -1
  120. package/.output/server/chunks/build/pages-CBsYYFMD.mjs +210 -0
  121. package/.output/server/chunks/build/pages-CBsYYFMD.mjs.map +1 -0
  122. package/.output/server/chunks/build/{pages-5yYRS5nX.mjs → pages-DN0BdqEU.mjs} +5 -5
  123. package/.output/server/chunks/build/pages-DN0BdqEU.mjs.map +1 -0
  124. package/.output/server/chunks/build/{services-DWlDpsbi.mjs → services-DnEkW3P_.mjs} +255 -264
  125. package/.output/server/chunks/build/{services-DWlDpsbi.mjs.map → services-DnEkW3P_.mjs.map} +1 -1
  126. package/.output/server/chunks/build/{tasks-4b6D39Uy.mjs → tasks-Bbc6_UeW.mjs} +1084 -1084
  127. package/.output/server/chunks/build/{tasks-4b6D39Uy.mjs.map → tasks-Bbc6_UeW.mjs.map} +1 -1
  128. package/.output/server/chunks/build/tasks-BzxHEsMV.mjs +82 -0
  129. package/.output/server/chunks/build/tasks-BzxHEsMV.mjs.map +1 -0
  130. package/.output/server/chunks/nitro/nitro.mjs +1861 -310
  131. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  132. package/.output/server/chunks/routes/api/auth/captcha.post.mjs +3 -2
  133. package/.output/server/chunks/routes/api/auth/captcha.post.mjs.map +1 -1
  134. package/.output/server/chunks/routes/api/auth/login.post.mjs +3 -2
  135. package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -1
  136. package/.output/server/chunks/routes/api/auth/logout.post.mjs +3 -2
  137. package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -1
  138. package/.output/server/chunks/routes/api/auth/map-token.post.mjs +3 -2
  139. package/.output/server/chunks/routes/api/auth/map-token.post.mjs.map +1 -1
  140. package/.output/server/chunks/routes/api/auth/send-sms.post.mjs +3 -2
  141. package/.output/server/chunks/routes/api/auth/send-sms.post.mjs.map +1 -1
  142. package/.output/server/chunks/routes/api/auth/status.get.mjs +3 -2
  143. package/.output/server/chunks/routes/api/auth/status.get.mjs.map +1 -1
  144. package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs +3 -2
  145. package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs.map +1 -1
  146. package/.output/server/chunks/routes/api/map/base/status.get.mjs +3 -2
  147. package/.output/server/chunks/routes/api/map/base/status.get.mjs.map +1 -1
  148. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.get.mjs +3 -2
  149. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.get.mjs.map +1 -1
  150. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.post.mjs +3 -2
  151. package/.output/server/chunks/routes/api/map/layers/_overlayLayer/update.post.mjs.map +1 -1
  152. package/.output/server/chunks/routes/api/map/layers/_overlayLayer_.get.mjs +3 -2
  153. package/.output/server/chunks/routes/api/map/layers/_overlayLayer_.get.mjs.map +1 -1
  154. package/.output/server/chunks/routes/api/map/layers/status.get.mjs +3 -2
  155. package/.output/server/chunks/routes/api/map/layers/status.get.mjs.map +1 -1
  156. package/.output/server/chunks/routes/api/map/live/status.get.mjs +3 -2
  157. package/.output/server/chunks/routes/api/map/live/status.get.mjs.map +1 -1
  158. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +3 -2
  159. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs.map +1 -1
  160. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +3 -2
  161. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/map-service/config.post.mjs +8 -8
  163. package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -1
  164. package/.output/server/chunks/routes/api/map-service/file.post.mjs +3 -3
  165. package/.output/server/chunks/routes/api/map-service/source.post.mjs +5 -5
  166. package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -1
  167. package/.output/server/chunks/routes/api/map-service/status.get.mjs +3 -3
  168. package/.output/server/chunks/routes/api/uom/myspace.post.mjs +71 -0
  169. package/.output/server/chunks/routes/api/uom/myspace.post.mjs.map +1 -0
  170. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +8 -13
  171. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +3 -3
  173. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +8 -7
  174. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -1
  175. package/.output/server/chunks/routes/api/workspace/_filename/export-estimate.get.mjs +9 -8
  176. package/.output/server/chunks/routes/api/workspace/_filename/export-estimate.get.mjs.map +1 -1
  177. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +6 -5
  178. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -1
  179. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +7 -6
  180. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -1
  181. package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +3 -3
  182. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +10 -9
  183. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -1
  184. package/.output/server/chunks/routes/api/workspace/compare.post.mjs +5 -5
  185. package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -1
  186. package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +5 -5
  187. package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -1
  188. package/.output/server/chunks/routes/api/workspace/files.get.mjs +3 -3
  189. package/.output/server/chunks/routes/api/workspace/files.post.mjs +4 -4
  190. package/.output/server/chunks/routes/api/workspace/stop.post.mjs +6 -6
  191. package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +6 -6
  193. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -1
  194. package/.output/server/chunks/routes/renderer.mjs +42597 -155
  195. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  196. package/.output/server/chunks/routes/services/wms.get.mjs +14 -13
  197. package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -1
  198. package/.output/server/chunks/routes/services/wmts.get.mjs +14 -13
  199. package/.output/server/chunks/routes/services/wmts.get.mjs.map +1 -1
  200. package/.output/server/chunks/virtual/entry.mjs +1317 -1136
  201. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  202. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  203. package/.output/server/index.mjs +4 -3
  204. package/.output/server/index.mjs.map +1 -1
  205. package/README.md +7 -31
  206. package/dist/package.json +6 -1
  207. package/dist/src/cli.js +4 -3
  208. package/dist/src/core/fetch-process.js +11 -0
  209. package/package.json +6 -1
  210. package/.output/public/_nuxt/7KYNy7kZ.js +0 -1
  211. package/.output/public/_nuxt/7Rgc2iDI2.js +0 -1
  212. package/.output/public/_nuxt/BRsHq3Fz2.js +0 -1
  213. package/.output/public/_nuxt/BiRI-vq-.js +0 -1
  214. package/.output/public/_nuxt/CGkIG2vL2.js +0 -1
  215. package/.output/public/_nuxt/CUQ3MZqI.js +0 -1
  216. package/.output/public/_nuxt/CzRdWh7s2.js +0 -1
  217. package/.output/public/_nuxt/DK3Fl9T5.js +0 -1
  218. package/.output/public/_nuxt/D_Ggu6R_2.js +0 -1
  219. package/.output/public/_nuxt/DuGgjt-h2.js +0 -64
  220. package/.output/public/_nuxt/GEOST6As.js +0 -1
  221. package/.output/public/_nuxt/L0GXeO1Y2.js +0 -1
  222. package/.output/public/_nuxt/builds/meta/ad8f3148-5aa4-4a0f-8e7a-e55147c5de1a.json +0 -1
  223. package/.output/public/_nuxt/entry.U-KS0GEu.css +0 -1
  224. package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +0 -6
  225. package/.output/server/chunks/build/Empty-CKvANuoV.mjs +0 -260
  226. package/.output/server/chunks/build/Empty-CKvANuoV.mjs.map +0 -1
  227. package/.output/server/chunks/build/FormField-BJHVyy1m.mjs +0 -247
  228. package/.output/server/chunks/build/FormField-BJHVyy1m.mjs.map +0 -1
  229. package/.output/server/chunks/build/Input-DnAric-z.mjs.map +0 -1
  230. package/.output/server/chunks/build/Modal-BLhN9Eg2.mjs +0 -1320
  231. package/.output/server/chunks/build/OnlineMap-B-sCfHkC.mjs.map +0 -1
  232. package/.output/server/chunks/build/Pagination-CUzoLc_-.mjs +0 -1025
  233. package/.output/server/chunks/build/Tabs-cdLsZZoL.mjs.map +0 -1
  234. package/.output/server/chunks/build/advanced-DaSpS8Px.mjs +0 -1426
  235. package/.output/server/chunks/build/advanced-DaSpS8Px.mjs.map +0 -1
  236. package/.output/server/chunks/build/compare-DaE10Dhp.mjs.map +0 -1
  237. package/.output/server/chunks/build/dashboard-Dq8mphss.mjs +0 -3238
  238. package/.output/server/chunks/build/details-DCNvSBgn.mjs.map +0 -1
  239. package/.output/server/chunks/build/file-workspace-DMzPuPyG.mjs.map +0 -1
  240. package/.output/server/chunks/build/interval-i5OZnTaK.mjs.map +0 -1
  241. package/.output/server/chunks/build/layers-50nqoWES.mjs.map +0 -1
  242. package/.output/server/chunks/build/login-BHSHtO-R.mjs.map +0 -1
  243. package/.output/server/chunks/build/map-layers-C3HJoCLw.mjs.map +0 -1
  244. package/.output/server/chunks/build/pages-5yYRS5nX.mjs.map +0 -1
  245. package/.output/server/chunks/build/pages-DfOPr0fC.mjs +0 -219
  246. package/.output/server/chunks/build/pages-DfOPr0fC.mjs.map +0 -1
  247. package/.output/server/chunks/build/tasks-BPPx2UMG.mjs +0 -91
  248. package/.output/server/chunks/build/tasks-BPPx2UMG.mjs.map +0 -1
  249. package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14611
  250. package/.output/server/node_modules/@babel/parser/package.json +0 -50
  251. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
  252. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
  253. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
  254. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
  255. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
  256. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
  257. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
  258. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
  259. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
  260. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
  261. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
  262. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
  263. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
  264. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
  265. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
  266. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
  267. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
  268. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
  269. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
  270. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
  271. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
  272. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
  273. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
  274. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
  275. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
  276. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
  277. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
  278. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
  279. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
  280. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
  281. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  282. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
  283. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
  284. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
  285. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
  286. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
  287. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
  288. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
  289. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
  290. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
  291. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
  292. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
  293. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
  294. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
  295. package/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
  296. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
  297. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
  298. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
  299. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
  300. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
  301. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
  302. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
  303. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
  304. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
  305. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
  306. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
  307. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
  308. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
  309. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
  310. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
  311. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  312. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
  313. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
  314. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
  315. package/.output/server/node_modules/@iconify/utils/package.json +0 -119
  316. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6801
  317. package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  318. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -692
  319. package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  320. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1420
  321. package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  322. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1903
  323. package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  324. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6976
  325. package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  326. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1841
  327. package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  328. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -904
  329. package/.output/server/node_modules/@vue/server-renderer/package.json +0 -53
  330. package/.output/server/node_modules/@vue/shared/package.json +0 -47
  331. package/.output/server/node_modules/consola/dist/core.mjs +0 -512
  332. package/.output/server/node_modules/consola/dist/index.mjs +0 -651
  333. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  334. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  335. package/.output/server/node_modules/consola/package.json +0 -136
  336. package/.output/server/node_modules/devalue/index.js +0 -17
  337. package/.output/server/node_modules/devalue/package.json +0 -39
  338. package/.output/server/node_modules/devalue/src/base64.js +0 -60
  339. package/.output/server/node_modules/devalue/src/constants.js +0 -12
  340. package/.output/server/node_modules/devalue/src/operations.js +0 -193
  341. package/.output/server/node_modules/devalue/src/parse.js +0 -270
  342. package/.output/server/node_modules/devalue/src/stringify.js +0 -428
  343. package/.output/server/node_modules/devalue/src/uneval.js +0 -582
  344. package/.output/server/node_modules/devalue/src/utils.js +0 -185
  345. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
  346. package/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
  347. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
  348. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
  349. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
  350. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
  351. package/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
  352. package/.output/server/node_modules/entities/package.json +0 -120
  353. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  354. package/.output/server/node_modules/estree-walker/package.json +0 -37
  355. package/.output/server/node_modules/fflate/esm/index.mjs +0 -2710
  356. package/.output/server/node_modules/fflate/package.json +0 -128
  357. package/.output/server/node_modules/fnv1a-64/dist/index.mjs +0 -95
  358. package/.output/server/node_modules/fnv1a-64/package.json +0 -75
  359. package/.output/server/node_modules/hookable/dist/index.mjs +0 -257
  360. package/.output/server/node_modules/hookable/package.json +0 -53
  361. package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +0 -19
  362. package/.output/server/node_modules/nostics/dist/index.mjs +0 -187
  363. package/.output/server/node_modules/nostics/package.json +0 -125
  364. package/.output/server/node_modules/object-identity/index.js +0 -60
  365. package/.output/server/node_modules/object-identity/package.json +0 -40
  366. package/.output/server/node_modules/p-limit/index.js +0 -104
  367. package/.output/server/node_modules/p-limit/package.json +0 -58
  368. package/.output/server/node_modules/pmtiles/dist/esm/index.js +0 -2
  369. package/.output/server/node_modules/pmtiles/package.json +0 -50
  370. package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  371. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  372. package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  373. package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  374. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  375. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  376. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  377. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  378. package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  379. package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  380. package/.output/server/node_modules/source-map-js/package.json +0 -71
  381. package/.output/server/node_modules/source-map-js/source-map.js +0 -8
  382. package/.output/server/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs +0 -1
  383. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
  384. package/.output/server/node_modules/tailwindcss/package.json +0 -89
  385. package/.output/server/node_modules/ufo/dist/index.mjs +0 -645
  386. package/.output/server/node_modules/ufo/package.json +0 -48
  387. package/.output/server/node_modules/undici/index.js +0 -234
  388. package/.output/server/node_modules/undici/lib/api/abort-signal.js +0 -59
  389. package/.output/server/node_modules/undici/lib/api/api-connect.js +0 -110
  390. package/.output/server/node_modules/undici/lib/api/api-pipeline.js +0 -252
  391. package/.output/server/node_modules/undici/lib/api/api-request.js +0 -214
  392. package/.output/server/node_modules/undici/lib/api/api-stream.js +0 -209
  393. package/.output/server/node_modules/undici/lib/api/api-upgrade.js +0 -111
  394. package/.output/server/node_modules/undici/lib/api/index.js +0 -7
  395. package/.output/server/node_modules/undici/lib/api/readable.js +0 -580
  396. package/.output/server/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
  397. package/.output/server/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
  398. package/.output/server/node_modules/undici/lib/core/connect.js +0 -153
  399. package/.output/server/node_modules/undici/lib/core/constants.js +0 -143
  400. package/.output/server/node_modules/undici/lib/core/diagnostics.js +0 -227
  401. package/.output/server/node_modules/undici/lib/core/errors.js +0 -477
  402. package/.output/server/node_modules/undici/lib/core/request.js +0 -464
  403. package/.output/server/node_modules/undici/lib/core/socks5-client.js +0 -422
  404. package/.output/server/node_modules/undici/lib/core/socks5-utils.js +0 -212
  405. package/.output/server/node_modules/undici/lib/core/symbols.js +0 -75
  406. package/.output/server/node_modules/undici/lib/core/tree.js +0 -160
  407. package/.output/server/node_modules/undici/lib/core/util.js +0 -992
  408. package/.output/server/node_modules/undici/lib/dispatcher/agent.js +0 -158
  409. package/.output/server/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
  410. package/.output/server/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
  411. package/.output/server/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
  412. package/.output/server/node_modules/undici/lib/dispatcher/client.js +0 -664
  413. package/.output/server/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
  414. package/.output/server/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
  415. package/.output/server/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
  416. package/.output/server/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
  417. package/.output/server/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
  418. package/.output/server/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
  419. package/.output/server/node_modules/undici/lib/dispatcher/pool.js +0 -118
  420. package/.output/server/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
  421. package/.output/server/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  422. package/.output/server/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
  423. package/.output/server/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
  424. package/.output/server/node_modules/undici/lib/encoding/index.js +0 -33
  425. package/.output/server/node_modules/undici/lib/global.js +0 -59
  426. package/.output/server/node_modules/undici/lib/handler/cache-handler.js +0 -760
  427. package/.output/server/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
  428. package/.output/server/node_modules/undici/lib/handler/decorator-handler.js +0 -67
  429. package/.output/server/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
  430. package/.output/server/node_modules/undici/lib/handler/redirect-handler.js +0 -238
  431. package/.output/server/node_modules/undici/lib/handler/retry-handler.js +0 -418
  432. package/.output/server/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
  433. package/.output/server/node_modules/undici/lib/handler/wrap-handler.js +0 -105
  434. package/.output/server/node_modules/undici/lib/interceptor/cache.js +0 -602
  435. package/.output/server/node_modules/undici/lib/interceptor/decompress.js +0 -259
  436. package/.output/server/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
  437. package/.output/server/node_modules/undici/lib/interceptor/dns.js +0 -571
  438. package/.output/server/node_modules/undici/lib/interceptor/dump.js +0 -112
  439. package/.output/server/node_modules/undici/lib/interceptor/redirect.js +0 -21
  440. package/.output/server/node_modules/undici/lib/interceptor/response-error.js +0 -95
  441. package/.output/server/node_modules/undici/lib/interceptor/retry.js +0 -19
  442. package/.output/server/node_modules/undici/lib/llhttp/constants.js +0 -531
  443. package/.output/server/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
  444. package/.output/server/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
  445. package/.output/server/node_modules/undici/lib/llhttp/utils.js +0 -12
  446. package/.output/server/node_modules/undici/lib/mock/mock-agent.js +0 -232
  447. package/.output/server/node_modules/undici/lib/mock/mock-call-history.js +0 -248
  448. package/.output/server/node_modules/undici/lib/mock/mock-client.js +0 -68
  449. package/.output/server/node_modules/undici/lib/mock/mock-errors.js +0 -29
  450. package/.output/server/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
  451. package/.output/server/node_modules/undici/lib/mock/mock-pool.js +0 -68
  452. package/.output/server/node_modules/undici/lib/mock/mock-symbols.js +0 -32
  453. package/.output/server/node_modules/undici/lib/mock/mock-utils.js +0 -486
  454. package/.output/server/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  455. package/.output/server/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
  456. package/.output/server/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
  457. package/.output/server/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
  458. package/.output/server/node_modules/undici/lib/util/cache.js +0 -676
  459. package/.output/server/node_modules/undici/lib/util/date.js +0 -670
  460. package/.output/server/node_modules/undici/lib/util/promise.js +0 -28
  461. package/.output/server/node_modules/undici/lib/util/runtime-features.js +0 -124
  462. package/.output/server/node_modules/undici/lib/util/stats.js +0 -32
  463. package/.output/server/node_modules/undici/lib/util/timers.js +0 -425
  464. package/.output/server/node_modules/undici/lib/web/cache/cache.js +0 -864
  465. package/.output/server/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  466. package/.output/server/node_modules/undici/lib/web/cache/util.js +0 -45
  467. package/.output/server/node_modules/undici/lib/web/cookies/constants.js +0 -12
  468. package/.output/server/node_modules/undici/lib/web/cookies/index.js +0 -199
  469. package/.output/server/node_modules/undici/lib/web/cookies/parse.js +0 -314
  470. package/.output/server/node_modules/undici/lib/web/cookies/util.js +0 -352
  471. package/.output/server/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
  472. package/.output/server/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
  473. package/.output/server/node_modules/undici/lib/web/eventsource/util.js +0 -29
  474. package/.output/server/node_modules/undici/lib/web/fetch/body.js +0 -509
  475. package/.output/server/node_modules/undici/lib/web/fetch/constants.js +0 -131
  476. package/.output/server/node_modules/undici/lib/web/fetch/data-url.js +0 -596
  477. package/.output/server/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
  478. package/.output/server/node_modules/undici/lib/web/fetch/formdata.js +0 -259
  479. package/.output/server/node_modules/undici/lib/web/fetch/global.js +0 -40
  480. package/.output/server/node_modules/undici/lib/web/fetch/headers.js +0 -719
  481. package/.output/server/node_modules/undici/lib/web/fetch/index.js +0 -2413
  482. package/.output/server/node_modules/undici/lib/web/fetch/request.js +0 -1115
  483. package/.output/server/node_modules/undici/lib/web/fetch/response.js +0 -641
  484. package/.output/server/node_modules/undici/lib/web/fetch/util.js +0 -1522
  485. package/.output/server/node_modules/undici/lib/web/infra/index.js +0 -229
  486. package/.output/server/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
  487. package/.output/server/node_modules/undici/lib/web/webidl/index.js +0 -1006
  488. package/.output/server/node_modules/undici/lib/web/websocket/connection.js +0 -329
  489. package/.output/server/node_modules/undici/lib/web/websocket/constants.js +0 -126
  490. package/.output/server/node_modules/undici/lib/web/websocket/events.js +0 -331
  491. package/.output/server/node_modules/undici/lib/web/websocket/frame.js +0 -133
  492. package/.output/server/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
  493. package/.output/server/node_modules/undici/lib/web/websocket/receiver.js +0 -507
  494. package/.output/server/node_modules/undici/lib/web/websocket/sender.js +0 -109
  495. package/.output/server/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
  496. package/.output/server/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
  497. package/.output/server/node_modules/undici/lib/web/websocket/util.js +0 -347
  498. package/.output/server/node_modules/undici/lib/web/websocket/websocket.js +0 -758
  499. package/.output/server/node_modules/undici/package.json +0 -152
  500. package/.output/server/node_modules/unhead/dist/client.mjs +0 -22
  501. package/.output/server/node_modules/unhead/dist/index.mjs +0 -52
  502. package/.output/server/node_modules/unhead/dist/legacy.mjs +0 -33
  503. package/.output/server/node_modules/unhead/dist/minify.mjs +0 -183
  504. package/.output/server/node_modules/unhead/dist/parser.mjs +0 -518
  505. package/.output/server/node_modules/unhead/dist/plugins.mjs +0 -631
  506. package/.output/server/node_modules/unhead/dist/scripts.node.mjs +0 -6
  507. package/.output/server/node_modules/unhead/dist/server.mjs +0 -99
  508. package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +0 -673
  509. package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +0 -47
  510. package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +0 -192
  511. package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +0 -67
  512. package/.output/server/node_modules/unhead/dist/shared/unhead.BdK3SLPN.mjs +0 -585
  513. package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +0 -6
  514. package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +0 -17
  515. package/.output/server/node_modules/unhead/dist/shared/unhead.C3b2Ipoj.mjs +0 -223
  516. package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +0 -32
  517. package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +0 -7
  518. package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +0 -27
  519. package/.output/server/node_modules/unhead/dist/shared/unhead.CfKy3Kuq.mjs +0 -196
  520. package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +0 -59
  521. package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +0 -400
  522. package/.output/server/node_modules/unhead/dist/shared/unhead.MC5RsXLj.mjs +0 -19
  523. package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +0 -264
  524. package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +0 -240
  525. package/.output/server/node_modules/unhead/dist/stream/client.mjs +0 -28
  526. package/.output/server/node_modules/unhead/dist/stream/iife.mjs +0 -2
  527. package/.output/server/node_modules/unhead/dist/stream/server.mjs +0 -264
  528. package/.output/server/node_modules/unhead/dist/utils.mjs +0 -7
  529. package/.output/server/node_modules/unhead/package.json +0 -179
  530. package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  531. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  532. package/.output/server/node_modules/vue/index.js +0 -7
  533. package/.output/server/node_modules/vue/index.mjs +0 -1
  534. package/.output/server/node_modules/vue/package.json +0 -112
  535. package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  536. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -278
  537. package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -54
  538. package/.output/server/node_modules/yocto-queue/index.js +0 -90
  539. package/.output/server/node_modules/yocto-queue/package.json +0 -48
  540. package/.output/server/node_modules/zod/index.js +0 -4
  541. package/.output/server/node_modules/zod/package.json +0 -135
  542. package/.output/server/node_modules/zod/v4/classic/checks.js +0 -1
  543. package/.output/server/node_modules/zod/v4/classic/coerce.js +0 -17
  544. package/.output/server/node_modules/zod/v4/classic/compat.js +0 -31
  545. package/.output/server/node_modules/zod/v4/classic/errors.js +0 -48
  546. package/.output/server/node_modules/zod/v4/classic/external.js +0 -20
  547. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +0 -599
  548. package/.output/server/node_modules/zod/v4/classic/iso.js +0 -30
  549. package/.output/server/node_modules/zod/v4/classic/package.json +0 -7
  550. package/.output/server/node_modules/zod/v4/classic/parse.js +0 -15
  551. package/.output/server/node_modules/zod/v4/classic/schemas.js +0 -1395
  552. package/.output/server/node_modules/zod/v4/core/api.js +0 -1087
  553. package/.output/server/node_modules/zod/v4/core/checks.js +0 -575
  554. package/.output/server/node_modules/zod/v4/core/core.js +0 -78
  555. package/.output/server/node_modules/zod/v4/core/doc.js +0 -35
  556. package/.output/server/node_modules/zod/v4/core/errors.js +0 -185
  557. package/.output/server/node_modules/zod/v4/core/index.js +0 -16
  558. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  559. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +0 -601
  560. package/.output/server/node_modules/zod/v4/core/json-schema.js +0 -1
  561. package/.output/server/node_modules/zod/v4/core/package.json +0 -7
  562. package/.output/server/node_modules/zod/v4/core/parse.js +0 -93
  563. package/.output/server/node_modules/zod/v4/core/regexes.js +0 -139
  564. package/.output/server/node_modules/zod/v4/core/registries.js +0 -51
  565. package/.output/server/node_modules/zod/v4/core/schemas.js +0 -2239
  566. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +0 -448
  567. package/.output/server/node_modules/zod/v4/core/util.js +0 -674
  568. package/.output/server/node_modules/zod/v4/core/versions.js +0 -5
  569. package/.output/server/node_modules/zod/v4/locales/ar.js +0 -106
  570. package/.output/server/node_modules/zod/v4/locales/az.js +0 -105
  571. package/.output/server/node_modules/zod/v4/locales/be.js +0 -156
  572. package/.output/server/node_modules/zod/v4/locales/bg.js +0 -120
  573. package/.output/server/node_modules/zod/v4/locales/ca.js +0 -107
  574. package/.output/server/node_modules/zod/v4/locales/cs.js +0 -111
  575. package/.output/server/node_modules/zod/v4/locales/da.js +0 -115
  576. package/.output/server/node_modules/zod/v4/locales/de.js +0 -108
  577. package/.output/server/node_modules/zod/v4/locales/el.js +0 -109
  578. package/.output/server/node_modules/zod/v4/locales/en.js +0 -113
  579. package/.output/server/node_modules/zod/v4/locales/eo.js +0 -109
  580. package/.output/server/node_modules/zod/v4/locales/es.js +0 -132
  581. package/.output/server/node_modules/zod/v4/locales/fa.js +0 -114
  582. package/.output/server/node_modules/zod/v4/locales/fi.js +0 -112
  583. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +0 -107
  584. package/.output/server/node_modules/zod/v4/locales/fr.js +0 -125
  585. package/.output/server/node_modules/zod/v4/locales/he.js +0 -214
  586. package/.output/server/node_modules/zod/v4/locales/hr.js +0 -122
  587. package/.output/server/node_modules/zod/v4/locales/hu.js +0 -108
  588. package/.output/server/node_modules/zod/v4/locales/hy.js +0 -147
  589. package/.output/server/node_modules/zod/v4/locales/id.js +0 -106
  590. package/.output/server/node_modules/zod/v4/locales/index.js +0 -52
  591. package/.output/server/node_modules/zod/v4/locales/is.js +0 -109
  592. package/.output/server/node_modules/zod/v4/locales/it.js +0 -108
  593. package/.output/server/node_modules/zod/v4/locales/ja.js +0 -107
  594. package/.output/server/node_modules/zod/v4/locales/ka.js +0 -112
  595. package/.output/server/node_modules/zod/v4/locales/kh.js +0 -5
  596. package/.output/server/node_modules/zod/v4/locales/km.js +0 -110
  597. package/.output/server/node_modules/zod/v4/locales/ko.js +0 -111
  598. package/.output/server/node_modules/zod/v4/locales/lt.js +0 -203
  599. package/.output/server/node_modules/zod/v4/locales/mk.js +0 -109
  600. package/.output/server/node_modules/zod/v4/locales/ms.js +0 -107
  601. package/.output/server/node_modules/zod/v4/locales/nl.js +0 -110
  602. package/.output/server/node_modules/zod/v4/locales/no.js +0 -108
  603. package/.output/server/node_modules/zod/v4/locales/ota.js +0 -109
  604. package/.output/server/node_modules/zod/v4/locales/package.json +0 -7
  605. package/.output/server/node_modules/zod/v4/locales/pl.js +0 -109
  606. package/.output/server/node_modules/zod/v4/locales/ps.js +0 -114
  607. package/.output/server/node_modules/zod/v4/locales/pt.js +0 -108
  608. package/.output/server/node_modules/zod/v4/locales/ro.js +0 -119
  609. package/.output/server/node_modules/zod/v4/locales/ru.js +0 -156
  610. package/.output/server/node_modules/zod/v4/locales/sl.js +0 -109
  611. package/.output/server/node_modules/zod/v4/locales/sv.js +0 -110
  612. package/.output/server/node_modules/zod/v4/locales/ta.js +0 -110
  613. package/.output/server/node_modules/zod/v4/locales/th.js +0 -110
  614. package/.output/server/node_modules/zod/v4/locales/tr.js +0 -105
  615. package/.output/server/node_modules/zod/v4/locales/ua.js +0 -5
  616. package/.output/server/node_modules/zod/v4/locales/uk.js +0 -108
  617. package/.output/server/node_modules/zod/v4/locales/ur.js +0 -110
  618. package/.output/server/node_modules/zod/v4/locales/uz.js +0 -110
  619. package/.output/server/node_modules/zod/v4/locales/vi.js +0 -108
  620. package/.output/server/node_modules/zod/v4/locales/yo.js +0 -107
  621. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +0 -109
  622. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +0 -107
  623. package/.output/server/package.json +0 -38
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-08-23T11:03:26.233Z",
2
+ "date": "2026-08-25T12:15:03.502Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nuxt",
@@ -0,0 +1 @@
1
+ import{At as e,F as t,G as n,I as r,It as i,N as a,Nn as o,P as s,Pn as c,S as l,U as u,Wn as d,_r as f,bt as p,en as m,in as h,kn as g,ln as _,pr as v,wt as y}from"./C97TfNgP.js";import{t as b}from"./P5kgsppB.js";import{r as x}from"./3B2XYGg4.js";import{t as S}from"./DmN-PKW1.js";import{i as C,n as ee,o as te,r as ne,t as re}from"./CVfH720g.js";import{t as w}from"./D_SGIxNl.js";import{t as ie}from"./B30iI6NY.js";import{c as T,f as E,n as D,r as O,s as k,u as A}from"#entry";import{a as j,r as M,t as N}from"./C3P9RWxN.js";import{t as P}from"./XR4gtbmm.js";import{a as F,i as I,n as L,o as R,r as z,s as B,t as ae}from"./C0tXXd_q.js";import{t as oe}from"./CsaKOXaj2.js";var V={class:`relative h-full min-h-[32rem] w-full overflow-hidden bg-muted`},H={key:0,class:`absolute inset-0 grid place-items-center bg-muted`},U=Object.assign(n({__name:`MapLayerPreview`,setup(n){let i=m(`container`),o=c(!1),{baseLayer:s,overlayLayers:l,setOverlayError:f}=M(),g=null,_=null,v=null,b=null;function x(){return{version:8,sources:F(),layers:[...z(s.value),...R(l.value),I(s.value)]}}return y(()=>{if(!i.value)return;if(!document.createElement(`canvas`).getContext(`webgl2`)){o.value=!0;return}try{g=new k({container:i.value,style:x(),center:[116.4,39.9],zoom:7,minZoom:3,maxZoom:18,attributionControl:!1})}catch{o.value=!0;return}let e=g;B(e,()=>({baseLayer:s.value,overlayLayers:l.value})),e.addControl(new T({showCompass:!1}),`top-right`),e.addControl(new A({unit:`metric`}),`bottom-left`),e.addControl(new E({compact:!0}),`bottom-right`),b=new ResizeObserver(()=>e.resize()),b.observe(i.value),_=new N(e,f),_.start(l.value),e.once(`load`,()=>{g===e&&(v=new ae(e))})}),h([s,l],()=>{g&&(L(g,{baseLayer:s.value,overlayLayers:l.value}),_?.update(l.value))},{deep:!0}),p(()=>{v?.destroy(),v=null,_?.destroy(),_=null,b?.disconnect(),b=null,g?.remove(),g=null}),(n,s)=>{let c=P;return e(),r(`div`,V,[a(`div`,{ref_key:`container`,ref:i,class:`h-full w-full`},null,512),d(o)?(e(),r(`div`,H,[u(c,{icon:`i-lucide-monitor-x`,title:`当前浏览器未启用 WebGL2`})])):t(``,!0)])}}}),{__name:`MapLayerPreview`}),W=[`dji-nfz`,`antigravity-nfz`],G=750,K=2e3;function q(){let e=S(`map-layer-update-tasks`,()=>({"dji-nfz":null,"antigravity-nfz":null})),t=S(`map-layer-update-starting`,()=>({"dji-nfz":!1,"antigravity-nfz":!1})),n=S(`map-layer-update-restoring`,()=>({"dji-nfz":!1,"antigravity-nfz":!1})),r=S(`map-layer-update-errors`,()=>({})),i=new Map,a=!1;function s(t,n){e.value={...e.value,[t]:n}}function c(e,t,n){e.value={...e.value,[t]:n}}function l(e,t){let n={...r.value};t?n[e]=t:delete n[e],r.value=n}function u(e,t,n){let r=new AbortController,a,o=Promise.resolve().then(()=>n(r.signal)).catch(t=>{throw Y(t)||l(e,X(t)),t}).finally(()=>{i.get(e)===a&&i.delete(e)});return a={kind:t,controller:r,promise:o},i.set(e,a),o}async function d(e,t,n){let r=t;for(;r.status===`running`;){await Z(G,n);try{r=await globalThis.$fetch(`/api/map/layers/${e}/update`,{cache:`no-store`,signal:n}),s(e,r),l(e)}catch(t){if(Y(t))throw t;l(e,X(t)),await Z(K,n)}}return r}function f(e){let t=i.get(e);return t?t.promise:u(e,`restore`,async t=>{c(n,e,!0);try{let n=await globalThis.$fetch(`/api/map/layers/${e}/update`,{cache:`no-store`,signal:t});return s(e,n),l(e),d(e,n,t)}finally{c(n,e,!1)}})}async function p(){await Promise.allSettled(W.map(e=>f(e)))}async function m(e){let n=i.get(e);if(n?.kind===`update`)return n.promise;if(n){try{await n.promise}catch(e){if(Y(e))throw e}if(a)throw Q();return m(e)}return u(e,`update`,async n=>{c(t,e,!0),l(e);let r;try{r=await globalThis.$fetch(`/api/map/layers/${e}/update`,{method:`POST`,signal:n})}finally{c(t,e,!1)}return s(e,r),d(e,r,n)})}function h(){a=!0;for(let e of i.values())e.controller.abort();i.clear();for(let e of W)c(t,e,!1),c(n,e,!1)}return g(h,!0),{tasks:o(e),starting:o(t),restoring:o(n),errors:o(r),restore:p,start:m,dispose:h}}function se(e){return e?`更新`:`下载`}function ce(e){let t=e===`dji-nfz`?`DJI Flysafe`:`Antigravity`;return e===`dji-nfz`?{title:`${t} 检查完成`,description:`区域数据未变化,检查时间已刷新`}:{title:`${t} 无新版本`,description:void 0}}function J(e){return e?.status===`running`}function Y(e){return e instanceof Error&&e.name===`AbortError`}function X(e){if(e&&typeof e==`object`){let t=`data`in e?e.data:void 0;if(t&&typeof t==`object`&&`message`in t&&typeof t.message==`string`)return t.message;if(`statusMessage`in e&&typeof e.statusMessage==`string`)return e.statusMessage}return e instanceof Error?e.message:`无法更新地图图层`}function Z(e,t){return t.aborted?Promise.reject(Q()):new Promise((n,r)=>{let i=setTimeout(()=>{t.removeEventListener(`abort`,a),n()},e);function a(){clearTimeout(i),r(Q())}t.addEventListener(`abort`,a,{once:!0})})}function Q(){let e=Error(`Map layer update polling was cancelled`);return e.name=`AbortError`,e}var le={class:`grid min-h-0 flex-1 xl:grid-cols-[23rem_minmax(0,1fr)]`},ue={class:`min-h-0 overflow-y-auto border-b border-default bg-default xl:border-r xl:border-b-0`},de={class:`p-5`,"aria-labelledby":`layer-source-status`},fe={class:`flex items-center justify-between gap-3`},pe={key:0,class:`text-xs text-muted`},me={key:0,class:`mt-3 divide-y divide-default border-y border-default`},he={class:`grid grid-cols-[minmax(0,1fr)_auto] items-start gap-3`},ge={class:`min-w-0`},_e={class:`truncate text-sm font-medium text-highlighted`},ve={class:`mt-0.5 h-4 truncate text-xs text-muted uom-mono`},ye={key:0},be={key:1,"aria-hidden":`true`},xe={class:`flex items-center gap-2`},Se={key:0,class:`mt-3 space-y-2`,role:`status`,"aria-live":`polite`},Ce={class:`min-w-0 truncate`},we={key:0,class:`shrink-0 uom-mono`},$={key:1,class:`mt-2 text-xs text-error`,role:`status`},Te={key:3,class:`mt-2 text-xs text-error`},Ee={key:1,class:`mt-3 divide-y divide-default border-y border-default`,"aria-hidden":`true`},De={class:`space-y-2`},Oe={class:`relative min-h-[32rem]`},ke=n({__name:`layers`,setup(n){w({layout:`dashboard`}),x({title:`地图图层管理`});let{overlayErrors:o}=M(),{status:c,pending:m,refresh:h}=C(),{tasks:g,starting:S,restoring:T,errors:E,restore:k,start:A}=q(),N=O(),P=[`dji-nfz`,`antigravity-nfz`],F=!0;y(async()=>{await k(),F&&await h()}),p(()=>{F=!1});function I(e){return e?`可用`:`不可用`}function L(e){return c.value?.overlayLayers[e].available?`i-lucide-refresh-cw`:`i-lucide-download`}function R(e){return S.value[e]||J(g.value[e])}function z(e){return e?.status===`failed`?`text-error`:e?.status===`completed`?`text-success`:e?.status===`no-update`?`text-info`:`text-muted`}async function B(e){let t=c.value?.overlayLayers[e].available??!1;try{let n=await A(e);if(!F)return;await h({reloadOverlays:n.status===`completed`});let r=j[e];if(n.status===`no-update`){let t=ce(e);N.add({...t,color:`info`,icon:`i-lucide-circle-check`})}else n.status===`completed`?N.add({title:`${r} ${t?`已更新`:`已下载`}`,color:`success`,icon:`i-lucide-circle-check`}):n.status===`failed`&&N.add({title:`${r} 更新失败`,description:n.error,color:`error`,icon:`i-lucide-circle-alert`})}catch(t){if(!F||Y(t))return;N.add({title:`${j[e]} 更新失败`,description:X(t),color:`error`,icon:`i-lucide-circle-alert`})}}return(n,p)=>{let y=b,x=ie,S=ne,C=ee,w=te,O=D,k=oe,A=U,M=re;return e(),s(M,{id:`map-layers`,class:`h-svh min-w-0 overflow-hidden`,ui:{body:`gap-0 overflow-hidden p-0 sm:gap-0 sm:p-0`}},{header:_(()=>[u(C,{title:`地图图层管理`},{right:_(()=>[u(x,{text:`刷新状态`},{default:_(()=>[u(y,{icon:`i-lucide-refresh-cw`,"aria-label":`刷新状态`,color:`neutral`,variant:`outline`,size:`sm`,square:``,loading:d(m),onClick:p[0]||=()=>d(h)()},null,8,[`loading`])]),_:1}),u(S)]),_:1})]),body:_(()=>[a(`div`,le,[a(`aside`,ue,[a(`section`,de,[a(`div`,fe,[p[1]||=a(`h2`,{id:`layer-source-status`,class:`text-sm font-semibold text-highlighted`},`数据源状态`,-1),d(m)?(e(),r(`span`,pe,`读取中`)):t(``,!0)]),d(c)?(e(),r(`div`,me,[(e(),r(l,null,i(P,i=>a(`div`,{key:i,class:`py-4`},[a(`div`,he,[a(`div`,ge,[a(`p`,_e,f(d(j)[i]),1),a(`p`,ve,[d(c).overlayLayers[i].version?(e(),r(`span`,ye,f(d(c).overlayLayers[i].version),1)):(e(),r(`span`,be,`\xA0`))])]),a(`div`,xe,[u(w,{label:I(d(c).overlayLayers[i].available),color:d(c).overlayLayers[i].available?`success`:`neutral`,variant:`subtle`,size:`sm`,class:`h-5`},null,8,[`label`,`color`]),u(y,{icon:L(i),label:(`mapLayerUpdateActionLabel`in n?n.mapLayerUpdateActionLabel:d(se))(d(c).overlayLayers[i].available),color:`neutral`,variant:`outline`,size:`xs`,class:`h-7 w-[4.5rem] justify-center`,loading:R(i),disabled:d(T)[i]||R(i),onClick:e=>B(i)},null,8,[`icon`,`label`,`loading`,`disabled`,`onClick`])])]),(`isMapLayerUpdateRunning`in n?n.isMapLayerUpdateRunning:d(J))(d(g)[i])?(e(),r(`div`,Se,[a(`div`,{class:v([`flex h-4 items-center justify-between gap-3 text-xs`,d(E)[i]?`text-error`:`text-muted`])},[a(`span`,Ce,f(d(E)[i]||d(g)[i]?.message),1),d(g)[i]?.percent===null?t(``,!0):(e(),r(`span`,we,f(d(g)[i]?.percent)+`%`,1))],2),u(O,{"model-value":d(g)[i]?.percent??null,max:100,size:`xs`,color:`info`},null,8,[`model-value`])])):d(E)[i]?(e(),r(`p`,$,f(d(E)[i]),1)):d(g)[i]&&d(g)[i]?.status!==`idle`?(e(),r(`p`,{key:2,class:v([`mt-2 text-xs`,z(d(g)[i])]),role:`status`},f(d(g)[i]?.error||d(g)[i]?.message),3)):d(o)[i]?(e(),r(`p`,Te,f(d(o)[i]?.message),1)):t(``,!0)])),64))])):(e(),r(`div`,Ee,[(e(),r(l,null,i(P,e=>a(`div`,{key:e,class:`flex h-[4.75rem] items-center justify-between gap-4 py-4`},[a(`div`,De,[u(k,{class:`h-4 w-28`}),u(k,{class:`h-3 w-20`})]),u(k,{class:`h-7 w-[4.5rem]`})])),64))]))])]),a(`main`,Oe,[u(A)])])]),_:1})}}});export{ke as default};
@@ -1 +1 @@
1
- import{$t as e,At as t,Bn as n,Bt as r,F as i,G as a,H as o,I as s,It as c,Lt as l,M as u,Mn as d,P as f,Pn as p,S as m,U as h,Wn as g,_r as _,gt as v,hr as y,in as b,ln as x,pr as S,qt as C,tt as w,wt as T}from"./C97TfNgP.js";import{Yt as E,ot as D}from"./CgMd2Y5s.js";import{c as O,g as k,h as A,l as j,p as ee,s as te,u as ne}from"./CUJ4QmLF.js";import{D as M,L as N,b as P,d as re,k as F,q as I,rt as L,st as ie,v as R,y as z}from"./CM9IbYJz.js";import{o as B}from"./Hbp_Okvs.js";import{f as V,i as H,m as U,n as W,r as G}from"./CkfS_Wbu.js";import{c as K,h as q,t as J}from"./C-b4mqsD.js";import{i as Y}from"#entry";var ae=a({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let n=e;return J(),(e,r)=>(t(),f(g(te),y(w(n)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))}}),X=`tooltip.open`,[Z,oe]=ie(`TooltipRoot`),se=a({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:n}){let r=e,i=n;J();let a=Y(),o=u(()=>r.disableHoverableContent??a.disableHoverableContent.value),s=u(()=>r.disableClosingTrigger??a.disableClosingTrigger.value),c=u(()=>r.disabled??a.disabled.value),d=u(()=>r.delayDuration??a.delayDuration.value),m=u(()=>r.ignoreNonKeyboardFocus??a.ignoreNonKeyboardFocus.value),h=q(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});b(h,e=>{a.onClose&&(e?(a.onOpen(),document.dispatchEvent(new CustomEvent(X))):a.onClose())});let _=p(!1),v=p(),y=u(()=>h.value?_.value?`delayed-open`:`instant-open`:`closed`),{start:S,stop:C}=L(()=>{_.value=!0,h.value=!0},d,{immediate:!1});function w(){C(),_.value=!1,h.value=!0}function T(){C(),h.value=!1}function E(){S()}return oe({contentId:``,open:h,stateAttribute:y,trigger:v,onTriggerChange(e){v.value=e},onTriggerEnter(){a.isOpenDelayed.value?E():w()},onTriggerLeave(){o.value?T():C()},onOpen:w,onClose:T,disableHoverableContent:o,disableClosingTrigger:s,disabled:c,ignoreNonKeyboardFocus:m}),(e,n)=>(t(),f(g(ne),null,{default:x(()=>[l(e.$slots,`default`,{open:g(h)})]),_:3}))}}),Q=a({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:n}){let r=e,i=n,a=Z(),s=Y(),{forwardRef:c,currentElement:d}=J(),p=u(()=>r.ariaLabel||d.value?.textContent),m=u(()=>{let{ariaLabel:e,...t}=r;return D(t,s.content.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1})});return T(()=>{K(window,`scroll`,e=>{e.target?.contains(a.trigger.value)&&a.onClose()},{capture:!0}),K(window,X,a.onClose)}),(e,n)=>(t(),f(g(V),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:n[0]||=e=>i(`escapeKeyDown`,e),onPointerDownOutside:n[1]||=e=>{g(a).disableClosingTrigger.value&&g(a).trigger.value?.contains(e.target)&&e.preventDefault(),i(`pointerDownOutside`,e)},onFocusOutside:n[2]||=E(()=>{},[`prevent`]),onDismiss:n[3]||=e=>g(a).onClose()},{default:x(()=>[h(g(O),v({ref:g(c),"data-state":g(a).stateAttribute.value},{...e.$attrs,...m.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:x(()=>[l(e.$slots,`default`),h(g(G),{id:g(a).contentId,role:`tooltip`},{default:x(()=>[o(_(p.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),ce=a({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let n=F(e),{forwardRef:r,currentElement:i}=J(),{trigger:a,onClose:o}=Z(),s=Y(),{isPointerInTransit:c,onPointerExit:u}=A(a,i);return s.isPointerInTransitRef=c,u(()=>{o()}),(e,i)=>(t(),f(Q,v({ref:g(r)},g(n)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))}}),le=a({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:n}){let i=e,a=n,o=Z(),s=k(i,a),{forwardRef:c}=J();return(e,n)=>(t(),f(g(U),{present:e.forceMount||g(o).open.value},{default:x(()=>[(t(),f(r(g(o).disableHoverableContent.value?Q:ce),v({ref:g(c)},g(s)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),ue=a({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let n=e;return(e,r)=>(t(),f(g(H),y(w(n)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))}}),de=a({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let n=e,r=Z(),i=Y();r.contentId||=ee(void 0,`reka-tooltip-content`);let{forwardRef:a,currentElement:o}=J(),s=p(!1),c=p(!1),d=u(()=>r.disabled.value?{}:{click:E,focus:S,pointermove:y,pointerleave:b,pointerdown:_,blur:w});T(()=>{r.onTriggerChange(o.value)});function m(){setTimeout(()=>{s.value=!1},1)}function _(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),s.value=!0,document.addEventListener(`pointerup`,m,{once:!0})}function y(e){e.pointerType!==`touch`&&!c.value&&!i.isPointerInTransitRef.value&&(r.onTriggerEnter(),c.value=!0)}function b(){r.onTriggerLeave(),c.value=!1}function S(e){s.value||r.ignoreNonKeyboardFocus.value&&!e.target.matches?.(`:focus-visible`)||r.onOpen()}function w(){r.onClose()}function E(){r.disableClosingTrigger.value||r.onClose()}return(e,i)=>(t(),f(g(j),{"as-child":``,reference:e.reference},{default:x(()=>[h(g(M),v({ref:g(a),"aria-describedby":g(r).open.value?g(r).contentId:void 0,"data-state":g(r).stateAttribute.value,as:e.as,"as-child":n.asChild,"data-grace-area-trigger":``},C(d.value)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}}),$={meta:``,ctrl:``,alt:``,win:`⊞`,command:`⌘`,shift:`⇧`,control:`⌃`,option:`⌥`,enter:`↵`,delete:`⌦`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,capslock:`⇪`,arrowup:`↑`,arrowright:`→`,arrowdown:`↓`,arrowleft:`←`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`},fe=N(()=>{let e=u(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=d({meta:` `,alt:` `,ctrl:` `});T(()=>{t.meta=e.value?$.command:`Ctrl`,t.ctrl=e.value?$.control:`Ctrl`,t.alt=e.value?$.option:`Alt`});function n(e){if(e)return[`meta`,`alt`,`ctrl`].includes(e)?t[e]:$[e]||e}return{macOS:e,getKbdKey:n}}),pe={base:`inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase`,variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{sm:`h-4 min-w-[16px] text-[10px]`,md:`h-5 min-w-[20px] text-[11px]`,lg:`h-6 min-w-[24px] text-[12px]`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`}],defaultVariants:{variant:`outline`,color:`neutral`,size:`md`}},me={__name:`UKbd`,props:{as:{type:null,required:!1,default:`kbd`},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=P(`kbd`,e),{getKbdKey:r}=fe(),i=B(),a=u(()=>R({extend:pe,...i.ui?.kbd||{}}));return(e,i)=>(t(),f(g(M),{as:g(n).as,class:S(a.value({class:[g(n).ui?.base,g(n).class],color:g(n).color,variant:g(n).variant,size:g(n).size}))},{default:x(()=>[l(e.$slots,`default`,{},()=>[o(_(g(r)(g(n).value)),1)])]),_:3},8,[`as`,`class`]))}},he={slots:{content:`flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto`,arrow:`fill-bg stroke-default`,text:`truncate`,kbds:`hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,kbdsSize:`sm`}},ge={__name:`UTooltip`,props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:[`update:open`],setup(r,{emit:a}){let o=r,d=a,p=e(),b=P(`tooltip`,o),C=B(),T=Y(),E=z(I(b,`defaultOpen`,`open`,`delayDuration`,`disableHoverableContent`,`disableClosingTrigger`,`ignoreNonKeyboardFocus`),d),O=W(n(()=>b.portal)),k=n(()=>D(b.content,T.content.value,{side:`bottom`,sideOffset:8,collisionPadding:8})),A=n(()=>D(b.arrow,{rounded:!0})),j=u(()=>R({extend:he,...C.ui?.tooltip||{}})({side:k.value.side}));return(e,n)=>(t(),f(g(se),v(g(E),{disabled:!(g(b).text||g(b).kbds?.length||p.content)||g(b).disabled}),{default:x(({open:n})=>[p.default||g(b).reference?(t(),f(g(de),v({key:0},e.$attrs,{"as-child":``,reference:g(b).reference,class:g(b).class}),{default:x(()=>[l(e.$slots,`default`,{open:n})]),_:2},1040,[`reference`,`class`])):i(``,!0),h(g(ue),y(w(g(O))),{default:x(()=>[h(g(re),null,{default:x(()=>[h(g(le),v(k.value,{"data-slot":`content`,class:j.value.content({class:[!p.default&&g(b).class,g(b).ui?.content]})}),{default:x(()=>[l(e.$slots,`content`,{ui:j.value},()=>[g(b).text?(t(),s(`span`,{key:0,"data-slot":`text`,class:S(j.value.text({class:g(b).ui?.text}))},_(g(b).text),3)):i(``,!0),g(b).kbds?.length?(t(),s(`span`,{key:1,"data-slot":`kbds`,class:S(j.value.kbds({class:g(b).ui?.kbds}))},[(t(!0),s(m,null,c(g(b).kbds,(e,n)=>(t(),f(me,v({key:n,size:g(b).ui?.kbdsSize||j.value.kbdsSize()},{ref_for:!0},typeof e==`string`?{value:e}:e),null,16,[`size`]))),128))],2)):i(``,!0)]),g(b).arrow?(t(),f(g(ae),v({key:0},A.value,{"data-slot":`arrow`,class:j.value.arrow({class:g(b).ui?.arrow})}),null,16,[`class`])):i(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`disabled`]))}};export{ge as t};
1
+ import{$t as e,At as t,Bn as n,Bt as r,F as i,G as a,H as o,I as s,It as c,Lt as l,M as u,Mn as d,P as f,Pn as p,S as m,U as h,Wn as g,_r as _,gt as v,hr as y,in as b,ln as x,pr as S,qt as C,tt as w,wt as T}from"./C97TfNgP.js";import{Yt as E,ot as D}from"./CgMd2Y5s.js";import{c as O,g as k,h as A,l as j,p as ee,s as te,u as ne}from"./DUBSg_Y2.js";import{D as M,L as N,b as P,d as re,k as F,q as I,rt as L,st as ie,v as R,y as z}from"./P5kgsppB.js";import{o as B}from"./CQoH790U.js";import{f as V,i as H,m as U,n as W,r as G}from"./BsG4RgIF.js";import{c as K,h as q,t as J}from"./DjVe4luM.js";import{i as Y}from"#entry";var ae=a({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let n=e;return J(),(e,r)=>(t(),f(g(te),y(w(n)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))}}),X=`tooltip.open`,[Z,oe]=ie(`TooltipRoot`),se=a({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:n}){let r=e,i=n;J();let a=Y(),o=u(()=>r.disableHoverableContent??a.disableHoverableContent.value),s=u(()=>r.disableClosingTrigger??a.disableClosingTrigger.value),c=u(()=>r.disabled??a.disabled.value),d=u(()=>r.delayDuration??a.delayDuration.value),m=u(()=>r.ignoreNonKeyboardFocus??a.ignoreNonKeyboardFocus.value),h=q(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});b(h,e=>{a.onClose&&(e?(a.onOpen(),document.dispatchEvent(new CustomEvent(X))):a.onClose())});let _=p(!1),v=p(),y=u(()=>h.value?_.value?`delayed-open`:`instant-open`:`closed`),{start:S,stop:C}=L(()=>{_.value=!0,h.value=!0},d,{immediate:!1});function w(){C(),_.value=!1,h.value=!0}function T(){C(),h.value=!1}function E(){S()}return oe({contentId:``,open:h,stateAttribute:y,trigger:v,onTriggerChange(e){v.value=e},onTriggerEnter(){a.isOpenDelayed.value?E():w()},onTriggerLeave(){o.value?T():C()},onOpen:w,onClose:T,disableHoverableContent:o,disableClosingTrigger:s,disabled:c,ignoreNonKeyboardFocus:m}),(e,n)=>(t(),f(g(ne),null,{default:x(()=>[l(e.$slots,`default`,{open:g(h)})]),_:3}))}}),Q=a({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:n}){let r=e,i=n,a=Z(),s=Y(),{forwardRef:c,currentElement:d}=J(),p=u(()=>r.ariaLabel||d.value?.textContent),m=u(()=>{let{ariaLabel:e,...t}=r;return D(t,s.content.value??{},{side:`top`,sideOffset:0,align:`center`,avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:`partial`,hideWhenDetached:!1})});return T(()=>{K(window,`scroll`,e=>{e.target?.contains(a.trigger.value)&&a.onClose()},{capture:!0}),K(window,X,a.onClose)}),(e,n)=>(t(),f(g(V),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:n[0]||=e=>i(`escapeKeyDown`,e),onPointerDownOutside:n[1]||=e=>{g(a).disableClosingTrigger.value&&g(a).trigger.value?.contains(e.target)&&e.preventDefault(),i(`pointerDownOutside`,e)},onFocusOutside:n[2]||=E(()=>{},[`prevent`]),onDismiss:n[3]||=e=>g(a).onClose()},{default:x(()=>[h(g(O),v({ref:g(c),"data-state":g(a).stateAttribute.value},{...e.$attrs,...m.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:x(()=>[l(e.$slots,`default`),h(g(G),{id:g(a).contentId,role:`tooltip`},{default:x(()=>[o(_(p.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),ce=a({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let n=F(e),{forwardRef:r,currentElement:i}=J(),{trigger:a,onClose:o}=Z(),s=Y(),{isPointerInTransit:c,onPointerExit:u}=A(a,i);return s.isPointerInTransitRef=c,u(()=>{o()}),(e,i)=>(t(),f(Q,v({ref:g(r)},g(n)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))}}),le=a({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:n}){let i=e,a=n,o=Z(),s=k(i,a),{forwardRef:c}=J();return(e,n)=>(t(),f(g(U),{present:e.forceMount||g(o).open.value},{default:x(()=>[(t(),f(r(g(o).disableHoverableContent.value?Q:ce),v({ref:g(c)},g(s)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),ue=a({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let n=e;return(e,r)=>(t(),f(g(H),y(w(n)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16))}}),de=a({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let n=e,r=Z(),i=Y();r.contentId||=ee(void 0,`reka-tooltip-content`);let{forwardRef:a,currentElement:o}=J(),s=p(!1),c=p(!1),d=u(()=>r.disabled.value?{}:{click:E,focus:S,pointermove:y,pointerleave:b,pointerdown:_,blur:w});T(()=>{r.onTriggerChange(o.value)});function m(){setTimeout(()=>{s.value=!1},1)}function _(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),s.value=!0,document.addEventListener(`pointerup`,m,{once:!0})}function y(e){e.pointerType!==`touch`&&!c.value&&!i.isPointerInTransitRef.value&&(r.onTriggerEnter(),c.value=!0)}function b(){r.onTriggerLeave(),c.value=!1}function S(e){s.value||r.ignoreNonKeyboardFocus.value&&!e.target.matches?.(`:focus-visible`)||r.onOpen()}function w(){r.onClose()}function E(){r.disableClosingTrigger.value||r.onClose()}return(e,i)=>(t(),f(g(j),{"as-child":``,reference:e.reference},{default:x(()=>[h(g(M),v({ref:g(a),"aria-describedby":g(r).open.value?g(r).contentId:void 0,"data-state":g(r).stateAttribute.value,as:e.as,"as-child":n.asChild,"data-grace-area-trigger":``},C(d.value)),{default:x(()=>[l(e.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}}),$={meta:``,ctrl:``,alt:``,win:`⊞`,command:`⌘`,shift:`⇧`,control:`⌃`,option:`⌥`,enter:`↵`,delete:`⌦`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,capslock:`⇪`,arrowup:`↑`,arrowright:`→`,arrowdown:`↓`,arrowleft:`←`,pageup:`⇞`,pagedown:`⇟`,home:`↖`,end:`↘`},fe=N(()=>{let e=u(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=d({meta:` `,alt:` `,ctrl:` `});T(()=>{t.meta=e.value?$.command:`Ctrl`,t.ctrl=e.value?$.control:`Ctrl`,t.alt=e.value?$.option:`Alt`});function n(e){if(e)return[`meta`,`alt`,`ctrl`].includes(e)?t[e]:$[e]||e}return{macOS:e,getKbdKey:n}}),pe={base:`inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase`,variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{sm:`h-4 min-w-[16px] text-[10px]`,md:`h-5 min-w-[20px] text-[11px]`,lg:`h-6 min-w-[24px] text-[12px]`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary`},{color:`success`,variant:`solid`,class:`text-inverted bg-success`},{color:`info`,variant:`solid`,class:`text-inverted bg-info`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning`},{color:`error`,variant:`solid`,class:`text-inverted bg-error`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`}],defaultVariants:{variant:`outline`,color:`neutral`,size:`md`}},me={__name:`UKbd`,props:{as:{type:null,required:!1,default:`kbd`},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let n=P(`kbd`,e),{getKbdKey:r}=fe(),i=B(),a=u(()=>R({extend:pe,...i.ui?.kbd||{}}));return(e,i)=>(t(),f(g(M),{as:g(n).as,class:S(a.value({class:[g(n).ui?.base,g(n).class],color:g(n).color,variant:g(n).variant,size:g(n).size}))},{default:x(()=>[l(e.$slots,`default`,{},()=>[o(_(g(r)(g(n).value)),1)])]),_:3},8,[`as`,`class`]))}},he={slots:{content:`flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto`,arrow:`fill-bg stroke-default`,text:`truncate`,kbds:`hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,kbdsSize:`sm`}},ge={__name:`UTooltip`,props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:[`update:open`],setup(r,{emit:a}){let o=r,d=a,p=e(),b=P(`tooltip`,o),C=B(),T=Y(),E=z(I(b,`defaultOpen`,`open`,`delayDuration`,`disableHoverableContent`,`disableClosingTrigger`,`ignoreNonKeyboardFocus`),d),O=W(n(()=>b.portal)),k=n(()=>D(b.content,T.content.value,{side:`bottom`,sideOffset:8,collisionPadding:8})),A=n(()=>D(b.arrow,{rounded:!0})),j=u(()=>R({extend:he,...C.ui?.tooltip||{}})({side:k.value.side}));return(e,n)=>(t(),f(g(se),v(g(E),{disabled:!(g(b).text||g(b).kbds?.length||p.content)||g(b).disabled}),{default:x(({open:n})=>[p.default||g(b).reference?(t(),f(g(de),v({key:0},e.$attrs,{"as-child":``,reference:g(b).reference,class:g(b).class}),{default:x(()=>[l(e.$slots,`default`,{open:n})]),_:2},1040,[`reference`,`class`])):i(``,!0),h(g(ue),y(w(g(O))),{default:x(()=>[h(g(re),null,{default:x(()=>[h(g(le),v(k.value,{"data-slot":`content`,class:j.value.content({class:[!p.default&&g(b).class,g(b).ui?.content]})}),{default:x(()=>[l(e.$slots,`content`,{ui:j.value},()=>[g(b).text?(t(),s(`span`,{key:0,"data-slot":`text`,class:S(j.value.text({class:g(b).ui?.text}))},_(g(b).text),3)):i(``,!0),g(b).kbds?.length?(t(),s(`span`,{key:1,"data-slot":`kbds`,class:S(j.value.kbds({class:g(b).ui?.kbds}))},[(t(!0),s(m,null,c(g(b).kbds,(e,n)=>(t(),f(me,v({key:n,size:g(b).ui?.kbdsSize||j.value.kbdsSize()},{ref_for:!0},typeof e==`string`?{value:e}:e),null,16,[`size`]))),128))],2)):i(``,!0)]),g(b).arrow?(t(),f(g(ae),v({key:0},A.value,{"data-slot":`arrow`,class:j.value.arrow({class:g(b).ui?.arrow})}),null,16,[`class`])):i(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`disabled`]))}};export{ge as t};
@@ -1 +1 @@
1
- import{Pn as e,_t as t,in as n,kn as r,vn as i,xn as a}from"./C97TfNgP.js";import{c as o}from"./Hbp_Okvs.js";import"./GEOST6As.js";function s(e){if(typeof e!=`object`)return e;var t,n,r=Object.prototype.toString.call(e);if(r===`[object Object]`){if(e.constructor!==Object&&typeof e.constructor==`function`)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=s(e[t]));else for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:s(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=s(e[t]);return n}if(r===`[object Array]`){for(t=e.length,n=Array(t);t--;)n[t]=s(e[t]);return n}return r===`[object Set]`?(n=new Set,e.forEach(function(e){n.add(s(e))}),n):r===`[object Map]`?(n=new Map,e.forEach(function(e,t){n.set(s(t),s(e))}),n):r===`[object Date]`?new Date(+e):r===`[object RegExp]`?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r===`[object DataView]`?new e.constructor(s(e.buffer)):r===`[object ArrayBuffer]`?e.slice(0):r.slice(-6)===`Array]`?new e.constructor(e):e}var c=3456e4;function l(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function u(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function d(e,t,n){if(t===n)return``;let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}var f=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function p(e,t){let n=new f,r=e.length;if(r<2)return n;let i=t?.decode||m,a=t?.allowMultiple||!1,o=0;do{let s=u(e,o,r);if(s===-1)break;let c=l(e,o,r);if(s>c){o=e.lastIndexOf(`;`,s-1)+1;continue}let f=d(e,o,s);if(t?.filter&&!t.filter(f)){o=c+1;continue}let p=i(d(e,s+1,c));if(a){let e=n[f];e===void 0?n[f]=p:Array.isArray(e)?e.push(p):n[f]=[e,p]}else n[f]===void 0&&(n[f]=p);o=c+1}while(o<r);return n}function m(e){if(!e.includes(`%`))return e;try{return decodeURIComponent(e)}catch{return e}}var h=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,g=/^[\u0021-\u003A\u003C-\u007E]*$/,_=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,v=/^[\u0020-\u003A\u003C-\u007E]*$/,y=Object.prototype.toString;function b(e,t,n){let r=typeof e==`object`&&!!e,i=r?t:n,a=i?.stringify||JSON.stringify,o=r?e:{...n,name:e,value:t==null?``:typeof t==`string`?t:a(t)},s=i?.encode||encodeURIComponent;if(!h.test(o.name))throw TypeError(`argument name is invalid: ${o.name}`);let l=o.value?s(o.value):``;if(!g.test(l))throw TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw TypeError(`Partitioned cookies must have the Secure attribute`);if(o.sameSite&&String(o.sameSite).toLowerCase()===`none`)throw TypeError(`SameSite=None cookies must have the Secure attribute`);if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){let e=o.name.toLowerCase();if(e.startsWith(`__secure-`)||e.startsWith(`__host-`))throw TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith(`__host-`)){if(o.path!==`/`)throw TypeError(`__Host- cookies must have Path=/`);if(o.domain)throw TypeError(`__Host- cookies must not have a Domain attribute`)}let u=o.name+`=`+l;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw TypeError(`option maxAge is invalid: ${o.maxAge}`);u+=`; Max-Age=`+Math.max(0,Math.min(o.maxAge,c))}if(o.domain){if(!_.test(o.domain))throw TypeError(`option domain is invalid: ${o.domain}`);u+=`; Domain=`+o.domain}if(o.path){if(!v.test(o.path))throw TypeError(`option path is invalid: ${o.path}`);u+=`; Path=`+o.path}if(o.expires){if(!x(o.expires)||!Number.isFinite(o.expires.valueOf()))throw TypeError(`option expires is invalid: ${o.expires}`);u+=`; Expires=`+o.expires.toUTCString()}if(o.httpOnly&&(u+=`; HttpOnly`),o.secure&&(u+=`; Secure`),o.partitioned&&(u+=`; Partitioned`),o.priority)switch(typeof o.priority==`string`?o.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite==`string`?o.sameSite.toLowerCase():o.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${o.sameSite}`)}return u}function x(e){return y.call(e)===`[object Date]`}function S(e){if(e!==`undefined`)try{let t=JSON.parse(e);return typeof t==`number`&&String(t)!==e?e:t}catch{return e}}var C={path:`/`,watch:!0,decode:e=>e&&S(decodeURIComponent(e)),encode:e=>{if(typeof e!=`string`||e===`undefined`)return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!=`string`)return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},w=globalThis.cookieStore;function T(i,c){let l={...C,...c};l.filter??=e=>e===i;let u=E(l)||{},d;l.maxAge===void 0?l.expires&&(d=l.expires.getTime()-Date.now()):d=l.maxAge*1e3;let f=d!==void 0&&d<=0,p=f||u[i]===void 0||u[i]===null,m=s(f?void 0:u[i]??l.default?.()),h=d&&!f?M(m,d,l.watch&&l.watch!==`shallow`):e(m);{let e=null;try{!w&&typeof BroadcastChannel<`u`&&(e=new BroadcastChannel(`nuxt:cookies:${i}`))}catch{}let c=(t=!1)=>{!t&&(l.readonly||o(h.value,u[i]))||(A(i,h.value===null||h.value===void 0?void 0:l.encode(h.value),l),u[i]=s(h.value),e?.postMessage({value:l.encode(h.value)}))},d=e=>{let n=e.refresh?E(l)?.[i]:l.decode(e.value);f=!0,h.value=n,u[i]=s(n),t(()=>{f=!1})},f=!1,m=!!a();if(m&&r(()=>{f=!0,c(),e?.close()}),w){let e=e=>{let t=e.changed.find(e=>e.name===i),n=e.deleted.find(e=>e.name===i);t&&d({value:t.value}),n&&d({value:null})};w.addEventListener(`change`,e),m&&r(()=>w.removeEventListener(`change`,e))}else e&&(e.onmessage=({data:e})=>d(e));l.watch&&n(h,()=>{f||c(l.refresh)},{deep:l.watch!==`shallow`}),p&&c(p)}return h}function E(e={}){return p(document.cookie,e)}var D=e=>e;function O(e){let{encode:t,decode:n,...r}=e;return{...r,encode:D}}function k(e,t,n={}){let r=O(n);return t===void 0?b(e,``,{...r,maxAge:-1}):b(e,t,r)}function A(e,t,n={}){document.cookie=k(e,t,n)}var j=2147483647;function M(t,o,s){let c,l,u=0,d=s?e(t):{value:t};return a()&&r(()=>{l?.(),clearTimeout(c)}),i((e,t)=>{s&&(l=n(d,t));function r(){let e=o-u,n=e<j?e:j;c=setTimeout(()=>{if(u+=n,u<o)return r();d.value=void 0,t()},n)}function i(){u=0,clearTimeout(c),r()}return{get(){return e(),d.value},set(e){i(),d.value=e,t()}}})}export{T as t};
1
+ import{Pn as e,_t as t,in as n,kn as r,vn as i,xn as a}from"./C97TfNgP.js";import{c as o}from"./CQoH790U.js";import"./CeHFmSjl.js";function s(e){if(typeof e!=`object`)return e;var t,n,r=Object.prototype.toString.call(e);if(r===`[object Object]`){if(e.constructor!==Object&&typeof e.constructor==`function`)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=s(e[t]));else for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:s(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=s(e[t]);return n}if(r===`[object Array]`){for(t=e.length,n=Array(t);t--;)n[t]=s(e[t]);return n}return r===`[object Set]`?(n=new Set,e.forEach(function(e){n.add(s(e))}),n):r===`[object Map]`?(n=new Map,e.forEach(function(e,t){n.set(s(t),s(e))}),n):r===`[object Date]`?new Date(+e):r===`[object RegExp]`?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r===`[object DataView]`?new e.constructor(s(e.buffer)):r===`[object ArrayBuffer]`?e.slice(0):r.slice(-6)===`Array]`?new e.constructor(e):e}var c=3456e4;function l(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function u(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function d(e,t,n){if(t===n)return``;let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}var f=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function p(e,t){let n=new f,r=e.length;if(r<2)return n;let i=t?.decode||m,a=t?.allowMultiple||!1,o=0;do{let s=u(e,o,r);if(s===-1)break;let c=l(e,o,r);if(s>c){o=e.lastIndexOf(`;`,s-1)+1;continue}let f=d(e,o,s);if(t?.filter&&!t.filter(f)){o=c+1;continue}let p=i(d(e,s+1,c));if(a){let e=n[f];e===void 0?n[f]=p:Array.isArray(e)?e.push(p):n[f]=[e,p]}else n[f]===void 0&&(n[f]=p);o=c+1}while(o<r);return n}function m(e){if(!e.includes(`%`))return e;try{return decodeURIComponent(e)}catch{return e}}var h=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,g=/^[\u0021-\u003A\u003C-\u007E]*$/,_=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,v=/^[\u0020-\u003A\u003C-\u007E]*$/,y=Object.prototype.toString;function b(e,t,n){let r=typeof e==`object`&&!!e,i=r?t:n,a=i?.stringify||JSON.stringify,o=r?e:{...n,name:e,value:t==null?``:typeof t==`string`?t:a(t)},s=i?.encode||encodeURIComponent;if(!h.test(o.name))throw TypeError(`argument name is invalid: ${o.name}`);let l=o.value?s(o.value):``;if(!g.test(l))throw TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw TypeError(`Partitioned cookies must have the Secure attribute`);if(o.sameSite&&String(o.sameSite).toLowerCase()===`none`)throw TypeError(`SameSite=None cookies must have the Secure attribute`);if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){let e=o.name.toLowerCase();if(e.startsWith(`__secure-`)||e.startsWith(`__host-`))throw TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith(`__host-`)){if(o.path!==`/`)throw TypeError(`__Host- cookies must have Path=/`);if(o.domain)throw TypeError(`__Host- cookies must not have a Domain attribute`)}let u=o.name+`=`+l;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw TypeError(`option maxAge is invalid: ${o.maxAge}`);u+=`; Max-Age=`+Math.max(0,Math.min(o.maxAge,c))}if(o.domain){if(!_.test(o.domain))throw TypeError(`option domain is invalid: ${o.domain}`);u+=`; Domain=`+o.domain}if(o.path){if(!v.test(o.path))throw TypeError(`option path is invalid: ${o.path}`);u+=`; Path=`+o.path}if(o.expires){if(!x(o.expires)||!Number.isFinite(o.expires.valueOf()))throw TypeError(`option expires is invalid: ${o.expires}`);u+=`; Expires=`+o.expires.toUTCString()}if(o.httpOnly&&(u+=`; HttpOnly`),o.secure&&(u+=`; Secure`),o.partitioned&&(u+=`; Partitioned`),o.priority)switch(typeof o.priority==`string`?o.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite==`string`?o.sameSite.toLowerCase():o.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${o.sameSite}`)}return u}function x(e){return y.call(e)===`[object Date]`}function S(e){if(e!==`undefined`)try{let t=JSON.parse(e);return typeof t==`number`&&String(t)!==e?e:t}catch{return e}}var C={path:`/`,watch:!0,decode:e=>e&&S(decodeURIComponent(e)),encode:e=>{if(typeof e!=`string`||e===`undefined`)return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!=`string`)return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},w=globalThis.cookieStore;function T(i,c){let l={...C,...c};l.filter??=e=>e===i;let u=E(l)||{},d;l.maxAge===void 0?l.expires&&(d=l.expires.getTime()-Date.now()):d=l.maxAge*1e3;let f=d!==void 0&&d<=0,p=f||u[i]===void 0||u[i]===null,m=s(f?void 0:u[i]??l.default?.()),h=d&&!f?M(m,d,l.watch&&l.watch!==`shallow`):e(m);{let e=null;try{!w&&typeof BroadcastChannel<`u`&&(e=new BroadcastChannel(`nuxt:cookies:${i}`))}catch{}let c=(t=!1)=>{!t&&(l.readonly||o(h.value,u[i]))||(A(i,h.value===null||h.value===void 0?void 0:l.encode(h.value),l),u[i]=s(h.value),e?.postMessage({value:l.encode(h.value)}))},d=e=>{let n=e.refresh?E(l)?.[i]:l.decode(e.value);f=!0,h.value=n,u[i]=s(n),t(()=>{f=!1})},f=!1,m=!!a();if(m&&r(()=>{f=!0,c(),e?.close()}),w){let e=e=>{let t=e.changed.find(e=>e.name===i),n=e.deleted.find(e=>e.name===i);t&&d({value:t.value}),n&&d({value:null})};w.addEventListener(`change`,e),m&&r(()=>w.removeEventListener(`change`,e))}else e&&(e.onmessage=({data:e})=>d(e));l.watch&&n(h,()=>{f||c(l.refresh)},{deep:l.watch!==`shallow`}),p&&c(p)}return h}function E(e={}){return p(document.cookie,e)}var D=e=>e;function O(e){let{encode:t,decode:n,...r}=e;return{...r,encode:D}}function k(e,t,n={}){let r=O(n);return t===void 0?b(e,``,{...r,maxAge:-1}):b(e,t,r)}function A(e,t,n={}){document.cookie=k(e,t,n)}var j=2147483647;function M(t,o,s){let c,l,u=0,d=s?e(t):{value:t};return a()&&r(()=>{l?.(),clearTimeout(c)}),i((e,t)=>{s&&(l=n(d,t));function r(){let e=o-u,n=e<j?e:j;c=setTimeout(()=>{if(u+=n,u<o)return r();d.value=void 0,t()},n)}function i(){u=0,clearTimeout(c),r()}return{get(){return e(),d.value},set(e){i(),d.value=e,t()}}})}export{T as t};
@@ -0,0 +1 @@
1
+ import{At as e,G as t,I as n,N as r,P as i,Pn as a,U as o,Wn as s,_r as c,in as l}from"./C97TfNgP.js";import{_ as u}from"./P5kgsppB.js";import{r as d}from"./C3P9RWxN.js";import{t as f}from"./CNw483Zj.js";import{t as p}from"./XR4gtbmm.js";import{t as m}from"./_5p6z8Bm.js";var h={key:0,class:`grid h-full min-h-[360px] place-items-center`},g={class:`flex flex-col items-center gap-3 text-sm text-muted`},_={key:1,class:`flex h-full min-h-0 flex-col`},v={class:`grid grid-cols-2 border-b border-default bg-elevated sm:grid-cols-4`},y={class:`px-5 py-3`},b={class:`mt-1 truncate text-sm font-medium`},x={class:`border-l border-default px-5 py-3`},S={class:`uom-mono mt-1 text-sm`},C={class:`border-l border-default px-5 py-3`},w={class:`mt-1 text-sm`},T={class:`relative min-h-[480px] flex-1`},E={key:2,class:`grid h-full min-h-[360px] place-items-center`},D=t({__name:`index`,setup(t){let D=f(),{baseLayer:O,overlayLayers:k}=d(),A=a(0);return l(()=>D.selected.value?.summary,()=>{A.value=Date.now()}),(t,a)=>{let l=u,d=m,f=p;return s(D).ready.value?s(D).selected.value?.kind===`uomtiles`?(e(),n(`div`,_,[r(`div`,v,[r(`div`,y,[a[1]||=r(`p`,{class:`text-xs text-muted`},`工作文件`,-1),r(`p`,b,c(s(D).displayWorkspaceName(s(D).selected.value.filename)),1)]),r(`div`,x,[a[2]||=r(`p`,{class:`text-xs text-muted`},`抓取进度`,-1),r(`p`,S,c(s(D).selected.value.summary?.roots.completed||0)+` / 6030`,1)]),a[4]||=r(`div`,{class:`border-l border-default px-5 py-3`},[r(`p`,{class:`text-xs text-muted`},`源瓦片层级`),r(`p`,{class:`uom-mono mt-1 text-sm`},`z12`)],-1),r(`div`,C,[a[3]||=r(`p`,{class:`text-xs text-muted`},`发布者`,-1),r(`p`,w,c(s(D).selected.value.summary?.publisher||`未记录`),1)])]),r(`div`,T,[(e(),i(d,{key:s(D).selected.value.filename,"tile-url":`/api/workspace/${encodeURIComponent(s(D).selected.value.filename)}/tile?z={z}&x={x}&y={y}`,"base-map":s(O),"overlay-layers":s(k),"min-zoom":0,"map-min-zoom":3,"max-zoom":18,"map-max-zoom":24,"refresh-version":s(A),"raster-resampling":`nearest`},null,8,[`tile-url`,`base-map`,`overlay-layers`,`refresh-version`]))])])):(e(),n(`div`,E,[o(f,{icon:`i-lucide-file-up`,title:`尚未选择任务文件`})])):(e(),n(`div`,h,[r(`div`,g,[o(l,{name:`i-lucide-loader-circle`,class:`size-5 animate-spin text-primary`}),a[0]||=r(`span`,null,`加载任务`,-1)])]))}}});export{D as default};
@@ -1 +1 @@
1
- import{Hn as e,M as t,Mn as n,ar as r,d as i}from"./C97TfNgP.js";import{ct as a}from"./CM9IbYJz.js";import{d as o,f as s,p as c}from"./Hbp_Okvs.js";import"./GEOST6As.js";function l(e){let t=e.length,n=0,r=0,i=8997,a=0,o=33826,s=0,c=40164,l=0,u=52210;for(;n<t;)i^=e.charCodeAt(n++),r=i*435,a=o*435,s=c*435,l=u*435,s+=i<<8,l+=o<<8,a+=r>>>16,i=r&65535,s+=a>>>16,o=a&65535,u=l+(s>>>16)&65535,c=s&65535;return{high:(u<<16|c)>>>0,low:(o<<16|i)>>>0}}function u(e){let{high:t,low:n}=l(e);return BigInt(t)<<32n|BigInt(n)}var d=`0123456789abcdef`;Array.from({length:256},(e,t)=>d.charAt(t>>4)+d.charAt(t&15));function f(e){return u(e).toString(36)}function p(e,t){if(e===null)return`L`;let n,r=0,i=e,a=typeof e;if(a!==`object`)return a===`number`?e-e===0?`n`+e:`L`:a===`string`?`s`+e:a===`bigint`?`n`+e:a===`boolean`?e?`T`:`F`:void 0;let o=Array.isArray(e);if(!o){if(e instanceof Date)return`d`+ +e;if(e instanceof RegExp)return`r`+e.source+e.flags}if(a=t.indexOf(e),~a)return`~`+(a+1);if(typeof e.toJSON==`function`&&!ArrayBuffer.isView(e)){if(e=e.toJSON(),typeof e!=`object`||!e)return p(e,t);if(a=t.indexOf(e),~a)return`~`+(a+1);o=Array.isArray(e)}if(t.push(i),o)for(n=`a`;r<e.length;n+=(a=p(e[r++],t))===void 0?`L`:a);else if(e instanceof Set){n=`e`;for(let r of e)n+=(a=p(r,t))===void 0?`L`:a}else if(e instanceof Map)for(i=[...e.keys()],i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=p(e.get(i[r]),t))!==void 0&&(n+=i[r]+a);else if(e[Symbol.toStringTag]===void 0||ArrayBuffer.isView(e))for(i=Object.keys(e),i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=p(e[i[r]],t))!==void 0&&(n+=i[r]+a);else throw Error(`Unsupported value`);return t.pop(),n}function m(e){return p(e,[])??`U`}function h(e){return f(m(e))}var g=a,_=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function v(t){let i=[e(t.method)?.toUpperCase()||`GET`,e(t.baseURL)];for(let n of[t.query||t.params]){let t=e(n);if(!t)continue;let r={};for(let[n,i]of Object.entries(t))r[e(n)]=e(i);i.push(r)}if(t.body){let a=e(t.body);if(!a)i.push(h(a));else if(a instanceof ArrayBuffer)i.push(h(Object.fromEntries([...new Uint8Array(a).entries()].map(([e,t])=>[e,t.toString()]))));else if(a instanceof FormData){let e=[];for(let t of a.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}i.push(h(e))}else if(r(a))i.push(h(n(a)));else try{i.push(h(a))}catch{s.NUXT_E3002({cause:a})}}return i}var y=c({name:`createUseFetch`,factory(r={}){function a(a,c,l){let[u={},d]=typeof c==`string`?[{},c]:[c,l],f=typeof r==`function`?r(u):r,{server:p,lazy:m,default:y,transform:b,pick:x,watch:S,immediate:C,getCachedData:w,deep:T,dedupe:E,timeout:D,enabled:O,...k}={...typeof r==`function`?{}:f,...u,...typeof r==`function`?f:{}},A=t(()=>e(a)),j=t(()=>e(k.key)||`$f`+h([d,typeof A.value==`string`?A.value:``,...v(k)]));if(!k.baseURL&&typeof A.value==`string`&&A.value[0]===`/`&&A.value[1]===`/`)throw s.NUXT_E3001({url:A.value});let M=n({...i,...k,cache:typeof k.cache==`boolean`?void 0:k.cache}),N={server:p,lazy:m,default:y,transform:b,pick:x,immediate:C,getCachedData:w,deep:T,dedupe:E,timeout:D,enabled:O,watch:S===!1?[]:[...S||[],M]};return S===!1&&(N._keyTriggersExecute=!1),o(j,(t,{signal:n})=>{let r=k.$fetch||g,i={signal:n,...M};for(let t of _)typeof i[t]==`function`&&(i[t]=e(i[t]));return r(A.value,i)},N)}return a}}),b=y.__nuxt_factory();y.__nuxt_factory({lazy:!0,_functionName:`useLazyFetch`});export{b as t};
1
+ import{Hn as e,M as t,Mn as n,ar as r,d as i}from"./C97TfNgP.js";import{ct as a}from"./P5kgsppB.js";import{d as o,f as s,p as c}from"./CQoH790U.js";import"./CeHFmSjl.js";function l(e){let t=e.length,n=0,r=0,i=8997,a=0,o=33826,s=0,c=40164,l=0,u=52210;for(;n<t;)i^=e.charCodeAt(n++),r=i*435,a=o*435,s=c*435,l=u*435,s+=i<<8,l+=o<<8,a+=r>>>16,i=r&65535,s+=a>>>16,o=a&65535,u=l+(s>>>16)&65535,c=s&65535;return{high:(u<<16|c)>>>0,low:(o<<16|i)>>>0}}function u(e){let{high:t,low:n}=l(e);return BigInt(t)<<32n|BigInt(n)}var d=`0123456789abcdef`;Array.from({length:256},(e,t)=>d.charAt(t>>4)+d.charAt(t&15));function f(e){return u(e).toString(36)}function p(e,t){if(e===null)return`L`;let n,r=0,i=e,a=typeof e;if(a!==`object`)return a===`number`?e-e===0?`n`+e:`L`:a===`string`?`s`+e:a===`bigint`?`n`+e:a===`boolean`?e?`T`:`F`:void 0;let o=Array.isArray(e);if(!o){if(e instanceof Date)return`d`+ +e;if(e instanceof RegExp)return`r`+e.source+e.flags}if(a=t.indexOf(e),~a)return`~`+(a+1);if(typeof e.toJSON==`function`&&!ArrayBuffer.isView(e)){if(e=e.toJSON(),typeof e!=`object`||!e)return p(e,t);if(a=t.indexOf(e),~a)return`~`+(a+1);o=Array.isArray(e)}if(t.push(i),o)for(n=`a`;r<e.length;n+=(a=p(e[r++],t))===void 0?`L`:a);else if(e instanceof Set){n=`e`;for(let r of e)n+=(a=p(r,t))===void 0?`L`:a}else if(e instanceof Map)for(i=[...e.keys()],i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=p(e.get(i[r]),t))!==void 0&&(n+=i[r]+a);else if(e[Symbol.toStringTag]===void 0||ArrayBuffer.isView(e))for(i=Object.keys(e),i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=p(e[i[r]],t))!==void 0&&(n+=i[r]+a);else throw Error(`Unsupported value`);return t.pop(),n}function m(e){return p(e,[])??`U`}function h(e){return f(m(e))}var g=a,_=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function v(t){let i=[e(t.method)?.toUpperCase()||`GET`,e(t.baseURL)];for(let n of[t.query||t.params]){let t=e(n);if(!t)continue;let r={};for(let[n,i]of Object.entries(t))r[e(n)]=e(i);i.push(r)}if(t.body){let a=e(t.body);if(!a)i.push(h(a));else if(a instanceof ArrayBuffer)i.push(h(Object.fromEntries([...new Uint8Array(a).entries()].map(([e,t])=>[e,t.toString()]))));else if(a instanceof FormData){let e=[];for(let t of a.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}i.push(h(e))}else if(r(a))i.push(h(n(a)));else try{i.push(h(a))}catch{s.NUXT_E3002({cause:a})}}return i}var y=c({name:`createUseFetch`,factory(r={}){function a(a,c,l){let[u={},d]=typeof c==`string`?[{},c]:[c,l],f=typeof r==`function`?r(u):r,{server:p,lazy:m,default:y,transform:b,pick:x,watch:S,immediate:C,getCachedData:w,deep:T,dedupe:E,timeout:D,enabled:O,...k}={...typeof r==`function`?{}:f,...u,...typeof r==`function`?f:{}},A=t(()=>e(a)),j=t(()=>e(k.key)||`$f`+h([d,typeof A.value==`string`?A.value:``,...v(k)]));if(!k.baseURL&&typeof A.value==`string`&&A.value[0]===`/`&&A.value[1]===`/`)throw s.NUXT_E3001({url:A.value});let M=n({...i,...k,cache:typeof k.cache==`boolean`?void 0:k.cache}),N={server:p,lazy:m,default:y,transform:b,pick:x,immediate:C,getCachedData:w,deep:T,dedupe:E,timeout:D,enabled:O,watch:S===!1?[]:[...S||[],M]};return S===!1&&(N._keyTriggersExecute=!1),o(j,(t,{signal:n})=>{let r=k.$fetch||g,i={signal:n,...M};for(let t of _)typeof i[t]==`function`&&(i[t]=e(i[t]));return r(A.value,i)},N)}return a}}),b=y.__nuxt_factory();y.__nuxt_factory({lazy:!0,_functionName:`useLazyFetch`});export{b as t};
@@ -1,3 +1,3 @@
1
- import{$ as e,At as t,E as n,F as r,G as i,Hn as a,Lt as o,M as s,Mn as c,Ot as l,P as u,Pn as d,Vn as f,Wn as p,_t as m,an as h,gr as g,in as _,ln as v,nt as y,ut as b}from"./C97TfNgP.js";import{D as x,R as S,j as C,st as w}from"./CM9IbYJz.js";import{a as T,i as E,l as D,r as O,t as k}from"./C-b4mqsD.js";function A(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function j(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function M(e){return e==null}var[N,ee]=w(`ConfigProvider`),te=i({inheritAttrs:!1,__name:`ConfigProvider`,props:{dir:{type:String,required:!1,default:`ltr`},locale:{type:String,required:!1,default:`en`},scrollBody:{type:[Boolean,Object],required:!1,default:!0},nonce:{type:String,required:!1,default:void 0},teleportTo:{type:null,required:!1,default:void 0},useId:{type:Function,required:!1,default:void 0}},setup(e){let t=e,{dir:n,locale:r,scrollBody:i,nonce:a,teleportTo:s}=f(t);return ee({dir:n,locale:r,scrollBody:i,nonce:a,teleportTo:s,useId:t.useId}),(e,t)=>o(e.$slots,`default`)}});function P(e,t){let n=d(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function F(e,t){let n=d({}),r=d(`none`),i=d(e),a=e.value?`mounted`:`unmounted`,o,c=t.value?.ownerDocument.defaultView??O,{state:u,dispatch:f}=P(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),p=e=>{if(S){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};_(e,async(e,i)=>{let a=i!==e;if(await m(),a){let a=r.value,o=I(t.value);e?(f(`MOUNT`),p(`enter`),o===`none`&&p(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(f(`UNMOUNT`),p(`leave`),p(`after-leave`)):i&&a!==o?(f(`ANIMATION_OUT`),p(`leave`)):(f(`UNMOUNT`),p(`after-leave`))}},{immediate:!0});let h=e=>{let n=I(t.value),r=n.includes(CSS.escape(e.animationName)),a=u.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(p(`after-${a}`),f(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=c?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&f(`ANIMATION_END`)},g=e=>{e.target===t.value&&(r.value=I(t.value))},v=_(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,g),e.addEventListener(`animationcancel`,h),e.addEventListener(`animationend`,h)):(f(`ANIMATION_END`),o!==void 0&&c?.clearTimeout(o),t?.removeEventListener(`animationstart`,g),t?.removeEventListener(`animationcancel`,h),t?.removeEventListener(`animationend`,h))},{immediate:!0}),y=_(u,()=>{let e=I(t.value);r.value=u.value===`mounted`?e:`none`});return l(()=>{v(),y(),t.value&&(t.value.removeEventListener(`animationstart`,g),t.value.removeEventListener(`animationcancel`,h),t.value.removeEventListener(`animationend`,h)),o!==void 0&&c?.clearTimeout(o)}),{isPresent:s(()=>[`mounted`,`unmountSuspended`].includes(u.value))}}function I(e){return e&&getComputedStyle(e).animationName||`none`}var L=i({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:n,expose:r}){let{present:i,forceMount:a}=f(t),o=d(),{isPresent:s}=F(i,o);r({present:s});let c=n.default({present:s.value});c=C(c||[]);let l=e();if(c&&c?.length>1){let e=l?.parent?.type.name?`<${l.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
1
+ import{$ as e,At as t,E as n,F as r,G as i,Hn as a,Lt as o,M as s,Mn as c,Ot as l,P as u,Pn as d,Vn as f,Wn as p,_t as m,an as h,gr as g,in as _,ln as v,nt as y,ut as b}from"./C97TfNgP.js";import{D as x,R as S,j as C,st as w}from"./P5kgsppB.js";import{a as T,i as E,l as D,r as O,t as k}from"./DjVe4luM.js";function A(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function j(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function M(e){return e==null}var[N,ee]=w(`ConfigProvider`),te=i({inheritAttrs:!1,__name:`ConfigProvider`,props:{dir:{type:String,required:!1,default:`ltr`},locale:{type:String,required:!1,default:`en`},scrollBody:{type:[Boolean,Object],required:!1,default:!0},nonce:{type:String,required:!1,default:void 0},teleportTo:{type:null,required:!1,default:void 0},useId:{type:Function,required:!1,default:void 0}},setup(e){let t=e,{dir:n,locale:r,scrollBody:i,nonce:a,teleportTo:s}=f(t);return ee({dir:n,locale:r,scrollBody:i,nonce:a,teleportTo:s,useId:t.useId}),(e,t)=>o(e.$slots,`default`)}});function P(e,t){let n=d(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function F(e,t){let n=d({}),r=d(`none`),i=d(e),a=e.value?`mounted`:`unmounted`,o,c=t.value?.ownerDocument.defaultView??O,{state:u,dispatch:f}=P(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),p=e=>{if(S){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};_(e,async(e,i)=>{let a=i!==e;if(await m(),a){let a=r.value,o=I(t.value);e?(f(`MOUNT`),p(`enter`),o===`none`&&p(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(f(`UNMOUNT`),p(`leave`),p(`after-leave`)):i&&a!==o?(f(`ANIMATION_OUT`),p(`leave`)):(f(`UNMOUNT`),p(`after-leave`))}},{immediate:!0});let h=e=>{let n=I(t.value),r=n.includes(CSS.escape(e.animationName)),a=u.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(p(`after-${a}`),f(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=c?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&f(`ANIMATION_END`)},g=e=>{e.target===t.value&&(r.value=I(t.value))},v=_(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,g),e.addEventListener(`animationcancel`,h),e.addEventListener(`animationend`,h)):(f(`ANIMATION_END`),o!==void 0&&c?.clearTimeout(o),t?.removeEventListener(`animationstart`,g),t?.removeEventListener(`animationcancel`,h),t?.removeEventListener(`animationend`,h))},{immediate:!0}),y=_(u,()=>{let e=I(t.value);r.value=u.value===`mounted`?e:`none`});return l(()=>{v(),y(),t.value&&(t.value.removeEventListener(`animationstart`,g),t.value.removeEventListener(`animationcancel`,h),t.value.removeEventListener(`animationend`,h)),o!==void 0&&c?.clearTimeout(o)}),{isPresent:s(()=>[`mounted`,`unmountSuspended`].includes(u.value))}}function I(e){return e&&getComputedStyle(e).animationName||`none`}var L=i({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:n,expose:r}){let{present:i,forceMount:a}=f(t),o=d(),{isPresent:s}=F(i,o);r({present:s});let c=n.default({present:s.value});c=C(c||[]);let l=e();if(c&&c?.length>1){let e=l?.parent?.type.name?`<${l.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
2
2
  `)].join(`
3
3
  `))}return()=>a.value||i.value||s.value?y(n.default({present:s.value})[0],{ref:e=>{let t=T(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?o.value=t.firstElementChild:o.value=t),t}}):null}}),R=`dismissableLayer.pointerDownOutside`,z=`dismissableLayer.focusOutside`;function B(e,t){if(!(t instanceof Element))return!1;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function V(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=d(!1),o=d(()=>{});return h(s=>{if(!S||!a(n))return;let c=async n=>{let a=n.target;if(!(!t?.value||!a)){if(B(t.value,a)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){j(R,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,o.value),o.value=i,r.addEventListener(`click`,o.value,{once:!0})):i()}else r.removeEventListener(`click`,o.value);i.value=!1}},l=window.setTimeout(()=>{r.addEventListener(`pointerdown`,c)},0);s(()=>{window.clearTimeout(l),r.removeEventListener(`pointerdown`,c),r.removeEventListener(`click`,o.value)})}),{onPointerDownCapture:()=>{a(n)&&(i.value=!0)}}}function H(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=d(!1);return h(o=>{if(!S||!a(n))return;let s=async n=>{if(!t?.value)return;await m(),await m();let r=n.target;!t.value||!r||B(t.value,r)||n.target&&!i.value&&j(z,e,{originalEvent:n})};r.addEventListener(`focusin`,s),o(()=>r.removeEventListener(`focusin`,s))}),{onFocusCapture:()=>{a(n)&&(i.value=!0)},onBlurCapture:()=>{a(n)&&(i.value=!1)}}}var U=c({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),W=i({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:n}){let r=e,i=n,{forwardRef:a,currentElement:c}=k(),l=s(()=>c.value?.ownerDocument??globalThis.document),d=s(()=>U.layersRoot),f=s(()=>c.value?Array.from(d.value).indexOf(c.value):-1),y=s(()=>U.layersWithOutsidePointerEventsDisabled.size>0),b=s(()=>{let e=Array.from(d.value),[t]=[...U.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return f.value>=n}),S=V(async e=>{let t=[...U.branches].some(t=>t?.contains(e.target));!r.present||!b.value||t||(i(`pointerDownOutside`,e),i(`interactOutside`,e),await m(),e.defaultPrevented||i(`dismiss`))},c),C=H(e=>{let t=[...U.branches].some(t=>t?.contains(e.target));!r.present||t||(i(`focusOutside`,e),i(`interactOutside`,e),e.defaultPrevented||i(`dismiss`))},c);return E(`Escape`,e=>{r.present&&f.value===d.value.size-1&&(i(`escapeKeyDown`,e),e.defaultPrevented||i(`dismiss`))}),_([c,()=>r.disableOutsidePointerEvents,()=>r.present],([e,t,n],r,i)=>{!e||!n||t&&(U.layersWithOutsidePointerEventsDisabled.size===0&&(U.originalBodyPointerEvents=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents=`none`),U.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{U.layersWithOutsidePointerEventsDisabled.delete(e),U.layersWithOutsidePointerEventsDisabled.size===0&&!M(U.originalBodyPointerEvents)&&(l.value.body.style.pointerEvents=U.originalBodyPointerEvents)}))},{immediate:!0}),_([c,()=>r.present],([e,t],n,r)=>{!e||!t||(d.value.add(e),r(()=>{d.value.delete(e)}))},{immediate:!0}),h(e=>{e(()=>{c.value&&(d.value.delete(c.value),U.layersWithOutsidePointerEventsDisabled.delete(c.value))})}),(e,n)=>(t(),u(p(x),{ref:p(a),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:g({pointerEvents:y.value?b.value?`auto`:`none`:void 0}),onFocusCapture:p(C).onFocusCapture,onBlurCapture:p(C).onBlurCapture,onPointerdownCapture:p(S).onPointerDownCapture},{default:v(()=>[o(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),G=`focusScope.autoFocusOnMount`,K=`focusScope.autoFocusOnUnmount`,q={bubbles:!1,cancelable:!0};function J(e,{select:t=!1}={}){let n=A();for(let r of e)if(Q(r,{select:t}),A()!==n)return!0}function Y(e){let t=X(e);return[Z(t,e),Z(t.reverse(),e)]}function X(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(let n of e)if(!ne(n,{upTo:t}))return n}function ne(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function re(e){return e instanceof HTMLInputElement&&`select`in e}function Q(e,{select:t=!1}={}){if(e&&e.focus){let n=A();e.focus({preventScroll:!0}),e!==n&&re(e)&&t&&e.select()}}var ie=i({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let i=e,a=N({}),c=s(()=>i.to??a.teleportTo?.value??`body`),l=D();return(e,i)=>p(l)||e.forceMount?(t(),u(n,{key:0,to:c.value,disabled:e.disabled,defer:e.defer},[o(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):r(`v-if`,!0)}}),ae=i({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,n)=>(t(),u(p(x),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`||e.feature===`fully-hidden`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:v(()=>[o(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),$=Symbol(`nuxt-ui.portal-target`);function oe(e){let t=b($,void 0),n=s(()=>e.value===!0?t?.value:e.value),r=s(()=>typeof n.value==`boolean`&&!n.value),i=s(()=>typeof n.value==`boolean`?`body`:n.value);return s(()=>({to:i.value,disabled:r.value}))}export{M as _,G as a,Q as c,Y as d,W as f,N as g,te as h,ie as i,J as l,L as m,oe as n,K as o,U as p,ae as r,q as s,$ as t,X as u,j as v,A as y};
@@ -1 +1 @@
1
- import{At as e,En as t,F as n,G as r,Hn as i,I as a,M as o,N as s,P as c,Pn as l,U as u,Wn as d,Zt as f,_r as p,_t as m,cn as ee,gr as h,ht as g,ln as _,pr as v,wt as te}from"./C97TfNgP.js";import{D as ne,R as y,at as re,b,ct as ie,ot as x,t as ae,v as oe}from"./CM9IbYJz.js";import{r as se}from"./3B2XYGg4.js";import{t as ce}from"./D-IOtyQX.js";import{o as S}from"./Hbp_Okvs.js";import"./GEOST6As.js";import{t as le}from"./DLIy3f3M.js";import{a as ue,n as de,r as fe,t as pe}from"./CeHZqNQ0.js";import{c as me,o as he}from"./C-b4mqsD.js";import{n as ge,r as _e,t as ve}from"./7KYNy7kZ.js";import{t as ye}from"./GqgcWtrL.js";import{t as be}from"./D_9SjQFe.js";import{t as xe}from"./BA52uD81.js";import{r as Se,t as Ce}from"#entry";import{r as we}from"./CVwoxklV.js";import{t as Te}from"./DnVJUY7B.js";import{n as Ee}from"./JdUwgqKv.js";import{t as De}from"./CUQ3MZqI.js";import{t as Oe}from"./CoPjdBwX.js";import{t as ke}from"./KttxEAyP2.js";var C=255,w=100,T=125,E=150,D,O,k,Ae;(function(e){e.HEX=`HEX`,e.RGB=`RGB`,e.HWB=`HWB`,e.HSL=`HSL`,e.CIELab=`CIELab`,e.LCH=`LCH`,e.CMYK=`CMYK`})(D||={}),function(e){e.ANALOGOUS=`ANALOGOUS`,e.COMPLEMENTARY=`COMPLEMENTARY`,e.SPLIT_COMPLEMENTARY=`SPLIT_COMPLEMENTARY`,e.TRIADIC=`TRIADIC`,e.TETRADIC=`TETRADIC`,e.SQUARE=`SQUARE`}(O||={}),function(e){e.ADDITIVE=`ADDITIVE`,e.SUBTRACTIVE=`SUBTRACTIVE`}(k||={}),function(e){e.black=`#000000`,e.silver=`#C0C0C0`,e.gray=`#808080`,e.white=`#FFFFFF`,e.maroon=`#800000`,e.red=`#FF0000`,e.purple=`#800080`,e.fuchsia=`#FF00FF`,e.green=`#008000`,e.lime=`#00FF00`,e.olive=`#808000`,e.yellow=`#FFFF00`,e.navy=`#000080`,e.blue=`#0000FF`,e.teal=`#008080`,e.aqua=`#00FFFF`,e.orange=`#FFA500`,e.aliceblue=`#F0F8FF`,e.antiquewhite=`#FAEBD7`,e.aquamarine=`#7FFFD4`,e.azure=`#F0FFFF`,e.beige=`#F5F5DC`,e.bisque=`#FFE4C4`,e.blanchedalmond=`#FFEBCD`,e.blueviolet=`#8A2BE2`,e.brown=`#A52A2A`,e.burlywood=`#DEB887`,e.cadetblue=`#5F9EA0`,e.chartreuse=`#7FFF00`,e.chocolate=`#D2691E`,e.coral=`#FF7F50`,e.cornflowerblue=`#6495ED`,e.cornsilk=`#FFF8DC`,e.crimson=`#DC143C`,e.cyan=`#00FFFF`,e.darkblue=`#00008B`,e.darkcyan=`#008B8B`,e.darkgoldenrod=`#B8860B`,e.darkgray=`#A9A9A9`,e.darkgreen=`#006400`,e.darkgrey=`#A9A9A9`,e.darkkhaki=`#BDB76B`,e.darkmagenta=`#8B008B`,e.darkolivegreen=`#556B2F`,e.darkorange=`#FF8C00`,e.darkorchid=`#9932CC`,e.darkred=`#8B0000`,e.darksalmon=`#E9967A`,e.darkseagreen=`#8FBC8F`,e.darkslateblue=`#483D8B`,e.darkslategray=`#2F4F4F`,e.darkslategrey=`#2F4F4F`,e.darkturquoise=`#00CED1`,e.darkviolet=`#9400D3`,e.deeppink=`#FF1493`,e.deepskyblue=`#00BFFF`,e.dimgray=`#696969`,e.dimgrey=`#696969`,e.dodgerblue=`#1E90FF`,e.firebrick=`#B22222`,e.floralwhite=`#FFFAF0`,e.forestgreen=`#228B22`,e.gainsboro=`#DCDCDC`,e.ghostwhite=`#F8F8FF`,e.gold=`#FFD700`,e.goldenrod=`#DAA520`,e.greenyellow=`#ADFF2F`,e.grey=`#808080`,e.honeydew=`#F0FFF0`,e.hotpink=`#FF69B4`,e.indianred=`#CD5C5C`,e.indigo=`#4B0082`,e.ivory=`#FFFFF0`,e.khaki=`#F0E68C`,e.lavender=`#E6E6FA`,e.lavenderblush=`#FFF0F5`,e.lawngreen=`#7CFC00`,e.lemonchiffon=`#FFFACD`,e.lightblue=`#ADD8E6`,e.lightcoral=`#F08080`,e.lightcyan=`#E0FFFF`,e.lightgoldenrodyellow=`#FAFAD2`,e.lightgray=`#D3D3D3`,e.lightgreen=`#90EE90`,e.lightgrey=`#D3D3D3`,e.lightpink=`#FFB6C1`,e.lightsalmon=`#FFA07A`,e.lightseagreen=`#20B2AA`,e.lightskyblue=`#87CEFA`,e.lightslategray=`#778899`,e.lightslategrey=`#778899`,e.lightsteelblue=`#B0C4DE`,e.lightyellow=`#FFFFE0`,e.limegreen=`#32CD32`,e.linen=`#FAF0E6`,e.magenta=`#FF00FF`,e.mediumaquamarine=`#66CDAA`,e.mediumblue=`#0000CD`,e.mediumorchid=`#BA55D3`,e.mediumpurple=`#9370DB`,e.mediumseagreen=`#3CB371`,e.mediumslateblue=`#7B68EE`,e.mediumspringgreen=`#00FA9A`,e.mediumturquoise=`#48D1CC`,e.mediumvioletred=`#C71585`,e.midnightblue=`#191970`,e.mintcream=`#F5FFFA`,e.mistyrose=`#FFE4E1`,e.moccasin=`#FFE4B5`,e.navajowhite=`#FFDEAD`,e.oldlace=`#FDF5E6`,e.olivedrab=`#6B8E23`,e.orangered=`#FF4500`,e.orchid=`#DA70D6`,e.palegoldenrod=`#EEE8AA`,e.palegreen=`#98FB98`,e.paleturquoise=`#AFEEEE`,e.palevioletred=`#DB7093`,e.papayawhip=`#FFEFD5`,e.peachpuff=`#FFDAB9`,e.peru=`#CD853F`,e.pink=`#FFC0CB`,e.plum=`#DDA0DD`,e.powderblue=`#B0E0E6`,e.rosybrown=`#BC8F8F`,e.royalblue=`#4169E1`,e.saddlebrown=`#8B4513`,e.salmon=`#FA8072`,e.sandybrown=`#F4A460`,e.seagreen=`#2E8B57`,e.seashell=`#FFF5EE`,e.sienna=`#A0522D`,e.skyblue=`#87CEEB`,e.slateblue=`#6A5ACD`,e.slategray=`#708090`,e.slategrey=`#708090`,e.snow=`#FFFAFA`,e.springgreen=`#00FF7F`,e.steelblue=`#4682B4`,e.tan=`#D2B48C`,e.thistle=`#D8BFD8`,e.tomato=`#FF6347`,e.turquoise=`#40E0D0`,e.violet=`#EE82EE`,e.wheat=`#F5DEB3`,e.whitesmoke=`#F5F5F5`,e.yellowgreen=`#9ACD32`,e.rebeccapurple=`#663399`}(Ae||={});var je=Object.keys(Ae),Me={HEX:[`R`,`G`,`B`,`A`],RGB:[`R`,`G`,`B`,`A`],HSL:[`H`,`S`,`L`,`A`],HWB:[`H`,`W`,`B`,`A`],CIELab:[`L`,`a`,`b`,`A`],LCH:[`L`,`C`,`H`,`A`],CMYK:[`C`,`M`,`Y`,`K`,`A`]},Ne={ABGR:D.RGB,ABHW:D.HWB,ACHL:D.LCH,ACKMY:D.CMYK,AHLS:D.HSL,ALAB:D.CIELab,BGR:D.RGB,BHW:D.HWB,CHL:D.LCH,CKMY:D.CMYK,HLS:D.HSL,LAB:D.CIELab},Pe;(function(e){e.NUMBER=`number`,e.BOOLEAN=`boolean`})(Pe||={});var A={[D.HEX]:/^#(?:(?<r>[a-f\d])(?<g>[a-f\d])(?<b>[a-f\d])(?<a>[a-f\d])?|(?<rr>[a-f\d]{2})(?<gg>[a-f\d]{2})(?<bb>[a-f\d]{2})(?<aa>[a-f\d]{2})?)$/i,[D.RGB]:/^rgba?\s*\(\s*(?:(?<r_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<g_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<b_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<r>(?:\d*\.)?\d+%?)\s+(?<g>(?:\d*\.)?\d+%?)\s+(?<b>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_r>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_g>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.HWB]:/^hwb\s*\(\s*(?:(?<h>(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<w>(?:\d*\.)?\d+)%\s+(?<b>(?:\d*\.)?\d+)%(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))\s+(?<relative_w>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?\s+(?<relative_b>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.HSL]:/^hsla?\s*\(\s*(?:(?<h_legacy>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*,\s*(?<s_legacy>(?:\d*\.)?\d+)%\s*,\s*(?<l_legacy>(?:\d*\.)?\d+)%(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<s>(?:\d*\.)?\d+)%?\s+(?<l>(?:\d*\.)?\d+)%?(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))\s+(?<relative_s>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?\s+(?<relative_l>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.CIELab]:/^lab\s*\(\s*(?:(?<L>(?:\d*\.)?\d+%?)\s+(?<a>-?(?:\d*\.)?\d+%?)\s+(?<b>-?(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<A>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_L>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_a>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_A>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.LCH]:/^lch\s*\(\s*(?:(?<l>(?:\d*\.)?\d+%?)\s+(?<c>-?(?:\d*\.)?\d+%?)\s+(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_l>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_c>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_h>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.CMYK]:/^(?:device-cmyk|cmyk)\s*\(\s*(?:(?<c_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<m_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<y_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<k_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<c>(?:\d*\.)?\d+%?)\s+(?<m>(?:\d*\.)?\d+%?)\s+(?<y>(?:\d*\.)?\d+%?)\s+(?<k>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?)\s*\)$/},j={REGEXP:/^calc\(\s*(?<operation>[\d./*+-\w\s]+)\s*\)$/,SCOPED:/\(\s*([^()]+)\s*\)/g,DIVISION:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\/\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,MULTIPLICATION:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\*\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,SUM:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\+\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,REST:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*-\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/},Fe=/^(?<number>-?(?:\d*\.)?\d+)(?<units>(?:deg|grad|rad|turn)?)$/,M=/^(-?\d+(?:\.\d+)?|-?\.\d+)%$/,Ie=/^0x([a-f\d]{1,2})$/i,Le=/\{(\d+)\}/g,Re=/,( +|\d+)/g,ze=/ +/,Be=`The provided string color doesn't have a correct format`,Ve=`The provided color object doesn't have the proper keys or format`,He=`is not a valid operation for a relative color`,N,P,Ue;(function(e){e.NONE=`none`,e.DEGREES=`deg`,e.GRADIANS=`grad`,e.RADIANS=`rad`,e.TURNS=`turn`})(N||={}),function(e){e.NONE=`none`,e.PERCENT=`percent`}(P||={}),function(e){e.DEVICE_CMYK=`device-cmyk`,e.CMYK=`cmyk`}(Ue||={});var F={decimals:6,legacyCSS:!1,spacesAfterCommas:!1,anglesUnit:N.NONE,rgbUnit:P.NONE,labUnit:P.NONE,lchUnit:P.NONE,cmykUnit:P.PERCENT,alphaUnit:P.NONE,cmykFunction:Ue.DEVICE_CMYK},I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),We=e=>+`${e}`.replace(M,`$1`),L=e=>M.test(`${e}`)?We(e):Math.min(+e,100),Ge=e=>(e.length===1&&(e+=e),parseInt(e,16)),Ke=e=>{let t=z(e,0).toString(16).toUpperCase();return t.length===1?`0x0${t}`:`0x${t}`},qe=(e,t=!1)=>!t&&M.test(e)?Math.min(C*We(e)/100,C):Ie.test(e)?(e.length===3&&(e+=e.slice(-1)),t?z(e)/C:z(e)):Math.min(+e,t?1:C),Je=e=>M.test(e)?B(T*We(e)/100,-125,T):B(+e,-125,T),Ye=e=>M.test(e)?B(E*We(e)/100,-150,E):B(+e,-150,E),R=e=>Math.min(M.test(e)?We(e)/100:+e,1),Xe=e=>[...e].sort().join(``).toUpperCase(),z=(e,t=6)=>{let n=10**t;return Math.round(+e*n)/n},B=(e,t,n)=>Math.max(t,Math.min(e,n)),Ze=e=>180*e/Math.PI,Qe=e=>e*Math.PI/180,$e=360,V=e=>{if(typeof e==`string`){let t=e.match(Fe).groups,n=+t.number;switch(t.units){case N.RADIANS:e=z(Ze(n));break;case N.TURNS:e=z(n*$e);break;case N.GRADIANS:e=z(.9*n);break;case N.DEGREES:default:e=n}}return(e>360||e<0)&&(e-=Math.floor(e/$e)*$e),e},H=e=>(typeof e==`string`&&(e=M.test(e)?We(e)/100:+e),isNaN(+e)||e>1?1:z(e)),et=(e,t)=>{let n;switch(t){case N.RADIANS:n=z(Qe(e));break;case N.TURNS:n=z(e/$e);break;case N.GRADIANS:n=z(10/9*e);break;case N.DEGREES:case N.NONE:default:n=e}return n},tt=e=>`${e}`in k,nt=[[.4360747,.3850649,.1430804],[.2225045,.7168786,.0606169],[.0139322,.0971045,.7141733]],rt=[[3.1338561,-1.6168667,-.4906146],[-.9787684,1.9161415,.033454],[.0719453,-.2289914,1.4052427]],it=nt.map((e=>e.reduce(((e,t)=>e+t),0))),at=(e,t,n)=>(n<0&&(n+=6),n>=6&&(n-=6),z(n<1?((t-e)*n+e)*C:n<3?t*C:n<4?((t-e)*(4-n)+e)*C:e*C)),ot=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,st=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,ct=(e,t,n,r)=>{let i=[0,0,0],a=[e,t,n];return r.forEach(((e,t)=>{e.forEach(((e,n)=>{i[t]+=e*a[n]}))})),i},U=(e,t,n)=>{t/=100;let r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{R:at(i,r,(e/=60)+2),G:at(i,r,e),B:at(i,r,e-2)}},lt=(e,t,n,r=1)=>{e/=C,t/=C,n/=C,r=Math.min(r,1);let i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(i){case e:s=(t-n)/o%6;break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4}s=z(60*s),s<0&&(s+=360),c=o/(1-Math.abs(2*l-1))}return{H:s,S:z(100*c),L:z(100*l),A:r}},ut=(e,t,n)=>{let r=[e/C,t/C,n/C].map(ot),i=ct(r[0],r[1],r[2],nt),a=((e,t,n)=>{let r=e=>e>(6/29)**3?Math.cbrt(e):e/(3*(6/29)**2)+4/29,i=r(e/it[0]),a=r(t/it[1]);return[116*a-16,500*(i-a),200*(a-r(n/it[2]))]})(i[0],i[1],i[2]);return{L:a[0],a:a[1],b:a[2]}},dt=(e,t,n)=>{let r=((e,t,n)=>{let r=e=>e>6/29?e**3:3*(6/29)**2*(e-4/29),i=(e+16)/116,a=t/500,o=n/200;return[it[0]*r(i+a),it[1]*r(i),it[2]*r(i-o)]})(e,t,n),i=ct(r[0],r[1],r[2],rt).map(st);return{R:B(i[0]*C,0,C),G:B(i[1]*C,0,C),B:B(i[2]*C,0,C)}},ft=(e,t,n)=>({L:e,C:Math.sqrt(t**2+n**2),H:V(Ze(Math.atan2(n,t)))}),pt=(e,t,n)=>{let r=Qe(n);return{L:e,a:t*Math.cos(r),b:t*Math.sin(r)}},mt=(e,t,n)=>{let r=ut(e,t,n);return ft(r.L,r.a,r.b)},ht=(e,t,n)=>{let r=pt(e,t,n);return dt(r.L,r.a,r.b)},gt=(e,t,n,r=1)=>({H:lt(e,t,n,r).H,W:z(Math.min(e,t,n)/C*100),B:z(100*(1-Math.max(e,t,n)/C)),A:r}),_t=(e,t,n)=>{let r=1-(n/=100)-(t/=100),i=r*(1-Math.abs(e/60%2-1)),a=0,o=0,s=0;return e<60?(a=r,o=i,s=0):e>=60&&e<120?(a=i,o=r,s=0):e>=120&&e<180?(a=0,o=r,s=i):e>=180&&e<240?(a=0,o=i,s=r):e>=240&&e<300?(a=i,o=0,s=r):e>=300&&(a=r,o=0,s=i),a+=t,o+=t,s+=t,{R:B(a*C,0,C),G:B(o*C,0,C),B:B(s*C,0,C)}},vt=(e,t,n,r)=>({R:z(C*(1-e)*(r=1-r)),G:z(C*(1-t)*r),B:z(C*(1-n)*r)}),yt=(e,t,n)=>{e/=C,t/=C,n/=C;let r=1-Math.max(e,t,n),i=1-r,a=i&&(i-t)/i,o=i&&(i-n)/i;return{C:z(100*(i&&(i-e)/i)),M:z(100*a),Y:z(100*o),K:z(100*r)}},bt=(e,t)=>{if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;let n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,a=0,o=0,s=0,c=0;return(t?n:r).find(((t,n)=>e>=t[0]&&e<t[1]&&(a=t[0],o=t[1],s=i[n][0],c=i[n][1],!0))),s+(c-s)/(o-a)*(e-a)},xt=class{get rgb(){return this._rgb}},St=class extends xt{constructor(e){super();let t=e.match(A.HEX).groups;this._r=t.r??t.rr,this._g=t.g??t.gg,this._b=t.b??t.bb,this._a=t.a??t.aa;let n={R:Ge(this._r),G:Ge(this._g),B:Ge(this._b)};this._a!==void 0&&(n.A=Ge(this._a)/C),this._rgb=n}},W=class{constructor(e,t,n){this._operations=new Map([[j.DIVISION,this._division],[j.MULTIPLICATION,this._multiplication],[j.SUM,this._sum],[j.REST,this._rest]]),this._colorIndex=e;let r=t,i=0;if(Number.isNaN(+t)){if(t in n)this._result=n[t];else if(j.REGEXP.test(r))j.REGEXP.lastIndex=0,this._result=this._getCalcValue(r,n);else{for(;j.SCOPED.test(r)&&i<100;){if(j.SCOPED.lastIndex=0,r=r.replace(j.SCOPED,((e,t)=>this._calculate(t,n).toString())),j.REGEXP.test(r)){j.REGEXP.lastIndex=0;break}i++}this._result=this._getCalcValue(r,n)}}else this._result=+t}_division(e,t){return e/t}_multiplication(e,t){return e*t}_sum(e,t){return e+t}_rest(e,t){return e-t}_getCalcValue(e,t){let n=e.match(j.REGEXP).groups.operation,r=this._calculate(n,t);if(Number.isNaN(r))throw Error(`Invalid value for ${this._colorIndex}. ${n} ${He}`);return r}_calculate(e,t){return this._operations.forEach(((n,r)=>{let i=0;for(;r.test(e)&&i<100;)e=e.replace(r,((e,r,i)=>n(t[r]??+r,t[i]??+i).toString())),i++})),+e}get result(){return this._result}},Ct=class extends xt{get hasPercentageAlpha(){return M.test(this._a)}},wt=class extends Ct{constructor(e,t){super();let{r_legacy:n,g_legacy:r,b_legacy:i,a_legacy:a,r:o,g:s,b:c,a:l,from:u,relative_r:d,relative_g:f,relative_b:p,relative_a:m}=e.match(A.RGB).groups;if(u){let e=t(u),n={r:e.R,g:e.G,b:e.B,alpha:e.A??1},r=new W(`r`,d,n).result,i=new W(`g`,f,n).result,a=new W(`b`,p,n).result,o={R:Math.min(r,C),G:Math.min(i,C),B:Math.min(a,C)};if(m){let e=new W(`alpha`,m,n).result;o.A=Math.min(e,1)}this._rgb=o}else{this._r=n??o,this._g=r??s,this._b=i??c,this._a=a??l;let e={R:Math.min(qe(this._r),C),G:Math.min(qe(this._g),C),B:Math.min(qe(this._b),C)};this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._r)&&M.test(this._g)&&M.test(this._b)}static test(e){return A.RGB.test(e)}},Tt=class extends Ct{get angleUnit(){if(this._h){let e=this._h.match(Fe).groups.units;return e===``?N.NONE:e}return N.NONE}},Et=class extends Tt{constructor(e,t){super();let{h_legacy:n,s_legacy:r,l_legacy:i,a_legacy:a,h:o,s,l:c,a:l,from:u,relative_h:d,relative_s:f,relative_l:p,relative_a:m}=e.match(A.HSL).groups;if(u){let e=t(u),n=lt(e.R,e.G,e.B,e.A),r={h:n.H,s:n.S,l:n.L,alpha:n.A},i=new W(`h`,d,r).result,a=new W(`s`,f,r).result,o=new W(`l`,p,r).result,s=U(B(i,0,360),B(a,0,w),B(o,0,w));if(m){let e=new W(`alpha`,m,r).result;s.A=B(e,0,1)}this._rgb=s}else{this._h=n??o,this._s=r??s,this._l=i??c,this._a=a??l;let e=U(V(this._h),L(this._s),L(this._l));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}static test(e){return A.HSL.test(e)}},Dt=class extends Tt{constructor(e,t){super();let{h:n,w:r,b:i,a,from:o,relative_h:s,relative_w:c,relative_b:l,relative_a:u}=e.match(A.HWB).groups;if(o){let e=t(o),n=gt(e.R,e.G,e.B,e.A),r={h:n.H,w:n.W,b:n.B,alpha:n.A},i=new W(`h`,s,r).result,a=new W(`w`,c,r).result,d=new W(`b`,l,r).result,f=_t(B(i,0,360),B(a,0,w),B(d,0,w));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._h=n,this._w=r,this._b=i,this._a=a;let e=_t(V(this._h),L(this._w),L(this._b));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}static test(e){return A.HWB.test(e)}},Ot=class extends Ct{constructor(e,t){super();let{L:n,a:r,b:i,A:a,from:o,relative_L:s,relative_a:c,relative_b:l,relative_A:u}=e.match(A.CIELab).groups;if(o){let e=t(o),n=ut(e.R,e.G,e.B),r={l:n.L,a:n.a,b:n.b,alpha:e.A??1},i=new W(`l`,s,r).result,a=new W(`a`,c,r).result,d=new W(`b`,l,r).result,f=dt(B(i,0,w),B(a,-125,T),B(d,-125,T));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._L=n,this._A=r,this._B=i,this._a=a;let e=dt(L(this._L),Je(this._A),Je(this._B));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._L)&&M.test(this._A)&&M.test(this._B)}static test(e){return A.CIELab.test(e)}},kt=class extends Tt{constructor(e,t){super();let{l:n,c:r,h:i,a,from:o,relative_l:s,relative_c:c,relative_h:l,relative_a:u}=e.match(A.LCH).groups;if(o){let e=t(o),n=mt(e.R,e.G,e.B),r={l:n.L,c:n.C,h:n.H,alpha:e.A??1},i=new W(`l`,s,r).result,a=new W(`c`,c,r).result,d=new W(`h`,l,r).result,f=ht(B(i,0,w),B(a,-150,E),V(d));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._l=n,this._c=r,this._h=i,this._a=a;let e=ht(L(this._l),Ye(this._c),V(this._h));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._l)&&M.test(this._c)}static test(e){return A.LCH.test(e)}},At=class extends Ct{constructor(e){super();let t=e.match(A.CMYK).groups;this._c=t.c_legacy??t.c,this._m=t.m_legacy??t.m,this._y=t.y_legacy??t.y,this._k=t.k_legacy??t.k,this._a=t.a_legacy??t.a;let n=vt(R(this._c),R(this._m),R(this._y),R(this._k));this._a!==void 0&&(n.A=H(this._a)),this._rgb=n}get hasPercentageValues(){return M.test(this._c)&&M.test(this._m)&&M.test(this._y)&&M.test(this._k)}static test(e){return A.CMYK.test(e)}},G=e=>typeof e==`string`?(e=>{let t;if(Object.keys(D).some((n=>{if(A[n].test(e))return t=n,!0})),!t&&~je.indexOf(e)&&(t=D.HEX),!t)throw Error(Be);return t})(e):(e=>{let t,n=!1,r=Xe(Object.keys(e));if(Ne[r]&&(t=Ne[r]),t&&t===D.RGB){let r=Object.entries(e).some((e=>!Ie.test(`${e[1]}`))),i=Object.entries(e).some((e=>!(M.test(`${e[1]}`)||!Ie.test(`${e[1]}`)&&!isNaN(+e[1])&&+e[1]<=C)));r&&i&&(n=!0),r||(t=D.HEX)}if(!t||n)throw Error(Ve);return t})(e),jt={[D.HEX](e){return new St(~je.indexOf(e)?Ae[e]:e).rgb},[D.RGB]:e=>new wt(e,K).rgb,[D.HSL]:e=>new Et(e,K).rgb,[D.HWB]:e=>new Dt(e,K).rgb,[D.CIELab]:e=>new Ot(e,K).rgb,[D.LCH]:e=>new kt(e,K).rgb,[D.CMYK]:e=>new At(e).rgb},Mt={[D.HEX](e){let t={R:qe(`${e.R}`),G:qe(`${e.G}`),B:qe(`${e.B}`)};return I(e,`A`)&&(t.A=Math.min(qe(`${e.A}`,!0),1)),t},[D.RGB](e){return this.HEX(e)},[D.HSL](e){let t=L(`${e.S}`),n=L(`${e.L}`),r=U(V(e.H),t,n);return I(e,`A`)&&(r.A=H(e.A)),r},[D.HWB](e){let t=L(`${e.W}`),n=L(`${e.B}`),r=_t(V(e.H),t,n);return I(e,`A`)&&(r.A=H(e.A)),r},[D.CIELab](e){let t=dt(L(`${e.L}`),Je(`${e.a}`),Je(`${e.b}`));return I(e,`A`)&&(t.A=H(e.A)),t},[D.LCH](e){let t=ht(L(`${e.L}`),Ye(`${e.C}`),V(`${e.H}`));return I(e,`A`)&&(t.A=H(e.A)),t},[D.CMYK](e){let t=vt(R(`${e.C}`),R(`${e.M}`),R(`${e.Y}`),R(`${e.K}`));return I(e,`A`)&&(t.A=H(e.A)),t}},K=(e,t=G(e))=>typeof e==`string`?jt[t](e):Mt[t](e),q=(e,...t)=>{let n=[],r=[],i=[],a=[],o=[],s=[],c=[],l=Object.values(N),u=Object.values(P),d=Object.values(Ue),f={legacyCSS:0,spacesAfterCommas:0,cmykFunction:0};for(let e of t)if(typeof e==`string`){if(n.push(e),e.includes(`,`)){f.legacyCSS++;let t=e.match(Re);new Set(t).size===1&&ze.test(t[0].slice(1))&&f.spacesAfterCommas++}if(Et.test(e)){let t=new Et(e,K);r.push(t.angleUnit),c.push(t.hasPercentageAlpha);continue}if(Dt.test(e)){let t=new Dt(e,K);r.push(t.angleUnit),c.push(t.hasPercentageAlpha);continue}if(wt.test(e)){let t=new wt(e,K);i.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(Ot.test(e)){let t=new Ot(e,K);a.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(kt.test(e)){let t=new kt(e,K);r.push(t.angleUnit),o.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(At.test(e)){let t=new At(e);s.push(t.hasPercentageValues),e.startsWith(`cmyk`)&&f.cmykFunction++,c.push(t.hasPercentageAlpha)}}return{decimals:typeof e.decimals===Pe.NUMBER?e.decimals:F.decimals,legacyCSS:typeof e.legacyCSS===Pe.BOOLEAN?e.legacyCSS:!!(n.length&&f.legacyCSS===n.length)||F.legacyCSS,spacesAfterCommas:typeof e.spacesAfterCommas===Pe.BOOLEAN?e.spacesAfterCommas:!!(n.length&&f.spacesAfterCommas===n.length)||F.spacesAfterCommas,anglesUnit:e.anglesUnit&&l.includes(e.anglesUnit)?e.anglesUnit:new Set(r).size===1?r[0]:F.anglesUnit,rgbUnit:e.rgbUnit&&u.includes(e.rgbUnit)?e.rgbUnit:new Set(i).size===1&&i[0]?P.PERCENT:F.rgbUnit,labUnit:e.labUnit&&u.includes(e.labUnit)?e.labUnit:new Set(a).size===1&&a[0]?P.PERCENT:F.labUnit,lchUnit:e.lchUnit&&u.includes(e.lchUnit)?e.lchUnit:new Set(o).size===1&&o[0]?P.PERCENT:F.lchUnit,cmykUnit:e.cmykUnit&&u.includes(e.cmykUnit)?e.cmykUnit:new Set(s).size!==1||s[0]?F.cmykUnit:P.NONE,alphaUnit:e.alphaUnit&&u.includes(e.alphaUnit)?e.alphaUnit:new Set(c).size===1&&c[0]?P.PERCENT:F.alphaUnit,cmykFunction:e.cmykFunction&&d.includes(e.cmykFunction)?e.cmykFunction:s.length&&s.length===f.cmykFunction?Ue.CMYK:F.cmykFunction}},Nt=(e,t)=>({H:z(e.H,t),S:z(e.S,t),L:z(e.L,t)}),Pt=e=>e?`, `:`,`,Ft=(e,t)=>Me[Ne[Xe(Object.keys(e))]].reduce(((n,r,i)=>{let a=e[r];return a!==void 0&&n.push(t(a,i)),n}),[]),It=(e,t)=>e.replace(Le,((e,n)=>`${t[n-1]}`)),Lt=(e,t,n=!1)=>{let{alphaUnit:r,legacyCSS:i,decimals:a}=t;return r!==P.PERCENT||i&&!n?z(e,a):`${z(100*e,a)}%`},Rt=e=>{let{anglesUnit:t,decimals:n}=e;return(r,i)=>i===0&&t!==N.NONE?`${z(et(r,t),n)}${t}`:i===3?Lt(r,e):z(r,n)},J={[D.HEX]:e=>{let t=Ft(e,(e=>(e=>{let t=z(e,0).toString(16).toUpperCase();return t.length===1&&(t=`0${t}`),t})(z(e))));return It(t.length===4?`#{1}{2}{3}{4}`:`#{1}{2}{3}`,t)},[D.RGB]:(e,t)=>{let{decimals:n,legacyCSS:r,spacesAfterCommas:i,rgbUnit:a}=t,o=Pt(i),s=Ft(e,((e,r)=>a===P.PERCENT&&r<3?`${((e,t)=>z(e/C*100,t))(e,n)}%`:r===3?Lt(e,t):z(e,n)));return It(r?s.length===4?`rgba({1}${o}{2}${o}{3}${o}{4})`:`rgb({1}${o}{2}${o}{3})`:s.length===4?`rgb({1} {2} {3} / {4})`:`rgb({1} {2} {3})`,s)},[D.HSL]:(e,t)=>{let{legacyCSS:n,spacesAfterCommas:r}=t,i=Pt(r),a=Ft(e,Rt(t));return It(n?a.length===4?`hsla({1}${i}{2}%${i}{3}%${i}{4})`:`hsl({1}${i}{2}%${i}{3}%)`:a.length===4?`hsl({1} {2}% {3}% / {4})`:`hsl({1} {2}% {3}%)`,a)},[D.HWB]:(e,t)=>{let n=Ft(e,Rt(t));return It(n.length===4?`hwb({1} {2}% {3}% / {4})`:`hwb({1} {2}% {3}%)`,n)},[D.CIELab]:(e,t)=>{let{decimals:n,labUnit:r}=t,i=Ft(e,((e,i)=>{if(i===0){let t=z(L(e),n);return r===P.PERCENT?`${t}%`:`${t}`}return i<3?r===P.PERCENT?`${((e,t)=>z(e/T*100,t))(e,n)}%`:z(e,n):Lt(e,t,!0)}));return It(i.length===4?`lab({1} {2} {3} / {4})`:`lab({1} {2} {3})`,i)},[D.LCH]:(e,t)=>{let{decimals:n,lchUnit:r,anglesUnit:i}=t,a=Ft(e,((e,a)=>{if(a===0){let t=z(L(e),n);return r===P.PERCENT?`${t}%`:`${t}`}return a===1?r===P.PERCENT?`${((e,t)=>z(e/E*100,t))(e,n)}%`:z(e,n):a===2?i===N.NONE?z(e,n):`${z(et(e,i),n)}${i}`:Lt(e,t,!0)}));return It(a.length===4?`lch({1} {2} {3} / {4})`:`lch({1} {2} {3})`,a)},[D.CMYK]:(e,t)=>{let{decimals:n,legacyCSS:r,spacesAfterCommas:i,cmykUnit:a,cmykFunction:o}=t,s=Pt(i),c=Ft(e,((e,r)=>a===P.PERCENT&&r<4?`${z(e,n)}%`:r===4?Lt(e,t):z(e/100,n)));return It(r?c.length===5?`${o}({1}${s}{2}${s}{3}${s}{4}${s}{5})`:`${o}({1}${s}{2}${s}{3}${s}{4})`:c.length===5?`${o}({1} {2} {3} {4} / {5})`:`${o}({1} {2} {3} {4})`,c)}},zt=(e,t,n)=>t.reduce(((t,r)=>[...t,{...e,H:n===k.ADDITIVE?V(e.H+r):V(bt(bt(e.H,!1)+r,!0))}]),[{...e}]),Bt=(e,t)=>zt(e,[30,-30],t),Vt=(e,t)=>zt(e,[180],t),Ht=(e,t)=>zt(e,[150,-150],t),Ut=(e,t)=>zt(e,[120,-120],t),Wt=(e,t)=>zt(e,[60,-120,180],t),Gt=(e,t)=>zt(e,[90,-90,180],t),Y={[D.HEX]:e=>({R:Ke(e.R),G:Ke(e.G),B:Ke(e.B)}),HEXA(e){let t=Y.HEX(e);return t.A=I(e,`A`)?Ke(e.A*C):`0xFF`,t},[D.RGB](e,t){let n=Yt(e,t);return I(n,`A`)&&delete n.A,n},RGBA(e,t){let n=Y.RGB(e,t);return n.A=I(e,`A`)?z(e.A):1,n},[D.HSL](e,t){let n=lt(e.R,e.G,e.B);return delete n.A,Nt(n,t)},HSLA(e,t){let n=Y.HSL(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.HWB](e,t){let n=gt(e.R,e.G,e.B);return delete n.A,((e,t)=>({H:z(e.H,t),W:z(e.W,t),B:z(e.B,t)}))(n,t)},HWBA(e,t){let n=Y.HWB(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.CIELab]:(e,t)=>((e,t)=>({L:z(e.L,t),a:z(e.a,t),b:z(e.b,t)}))(ut(e.R,e.G,e.B),t),CIELabA(e,t){let n=Y.CIELab(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.LCH]:(e,t)=>((e,t)=>({L:z(e.L,t),C:z(e.C,t),H:z(e.H,t)}))(mt(e.R,e.G,e.B),t),LCHA(e,t){let n=Y.LCH(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.CMYK]:(e,t)=>((e,t)=>({C:z(e.C,t),M:z(e.M,t),Y:z(e.Y,t),K:z(e.K,t)}))(yt(e.R,e.G,e.B),t),CMYKA(e,t){let n=Y.CMYK(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n}},Kt=(e,t,n,r)=>{let i=G(e),a=typeof e==`string`,o=K(e,i),s=typeof e==`string`&&I(o,`A`)||typeof e!=`string`&&I(e,`A`),c=lt(o.R,o.G,o.B,o.A);s||delete c.A;let l=n?c.L/(t+1):(100-c.L)/(t+1),u=Array(t).fill(null).map(((e,t)=>({...c,L:c.L+l*(t+1)*(1-2*n)})));switch(i){case D.HEX:default:return u.map((e=>{let t=U(e.H,e.S,e.L);return s&&(t.A=e.A),a?s?J.HEX({...t,A:z(t.A*C)}):J.HEX(t):s?Y.HEXA(t):Y.HEX(t)}));case D.RGB:return u.map((e=>{let t=U(e.H,e.S,e.L);return s&&(t.A=e.A),a?J.RGB(t,r):s?Y.RGBA(t,r.decimals):Y.RGB(t,r.decimals)}));case D.HSL:return u.map((e=>a?J.HSL(e,r):s?Y.HSLA({...U(e.H,e.S,e.L),A:e.A},r.decimals):Y.HSL(U(e.H,e.S,e.L),r.decimals)));case D.HWB:return u.map((e=>{let t=U(e.H,e.S,e.L);s&&(t.A=e.A);let n=s?Y.HWBA(t,r.decimals):Y.HWB(t,r.decimals);return a?J.HWB(n,r):n}));case D.CIELab:return u.map((e=>{let t=U(e.H,e.S,e.L);s&&(t.A=e.A);let n=s?Y.CIELabA(t,r.decimals):Y.CIELab(t,r.decimals);return a?J.CIELab(n,r):n}));case D.LCH:return u.map((e=>{let t=U(e.H,e.S,e.L),n=mt(t.R,t.G,t.B);return s&&(n.A=e.A),a?J.LCH(n,r):s?Y.LCHA({...t,A:e.A},r.decimals):Y.LCH(t,r.decimals)}))}},qt={buildHarmony(e,t,n,r){let i=G(e),a=K(e,i),o=lt(a.R,a.G,a.B,a.A),s=typeof e==`string`&&I(a,`A`)||typeof e!=`string`&&I(e,`A`),c=typeof e==`string`;switch(i){case D.HEX:default:return s?this.HEXA(Nt(o,0),t,n,c):this.HEX(Nt(o,0),t,n,c);case D.HSL:return s?this.HSLA(o,t,n,c,r):this.HSL(o,t,n,c,r);case D.HWB:return s?this.HWBA(o,t,n,c,r):this.HWB(o,t,n,c,r);case D.RGB:return s?this.RGBA(o,t,n,c,r):this.RGB(o,t,n,c,r);case D.CIELab:return s?this.CIELabA(o,t,n,c,r):this.CIELab(o,t,n,c,r);case D.LCH:return s?this.LCHA(o,t,n,c,r):this.LCH(o,t,n,c,r)}},[D.HEX]:(e,t,n,r)=>t(e,n).map((e=>r?J.HEX(U(e.H,e.S,e.L)):Y.HEX(U(e.H,e.S,e.L)))),HEXA:(e,t,n,r)=>t(e,n).map((e=>r?J.HEX({...U(e.H,e.S,e.L),A:H(e.A)*C}):Y.HEXA({...U(e.H,e.S,e.L),A:H(e.A)}))),[D.RGB]:(e,t,n,r,i)=>t(e,n).map((e=>r?J.RGB(U(e.H,e.S,e.L),i):Y.RGB(U(e.H,e.S,e.L),i.decimals))),RGBA:(e,t,n,r,i)=>t(e,n).map((e=>r?J.RGB({...U(e.H,e.S,e.L),A:H(e.A)},i):Y.RGBA({...U(e.H,e.S,e.L),A:H(e.A)},i.decimals))),[D.HSL]:(e,t,n,r,i)=>t(e,n).map((e=>r?J.HSL({H:e.H,S:e.S,L:e.L},i):Y.HSL(U(e.H,e.S,e.L),i.decimals))),HSLA:(e,t,n,r,i)=>t(e,n).map((e=>r?J.HSL({...e,A:H(e.A)},i):Y.HSLA({...U(e.H,e.S,e.L),A:H(e.A)},i.decimals))),[D.HWB]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L),n=gt(t.R,t.G,t.B);return r?J.HWB({H:n.H,W:n.W,B:n.B},i):Y.HWB(t,i.decimals)})),HWBA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L),n=gt(t.R,t.G,t.B);return r?J.HWB({...n,A:H(e.A)},i):Y.HWBA({...t,A:H(e.A)},i.decimals)})),[D.CIELab]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.CIELab(ut(t.R,t.G,t.B),i):Y.CIELab(t,i.decimals)})),CIELabA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.CIELab({...ut(t.R,t.G,t.B),A:H(e.A)},i):Y.CIELabA({...t,A:H(e.A)},i.decimals)})),[D.LCH]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.LCH(mt(t.R,t.G,t.B),i):Y.LCH(t,i.decimals)})),LCHA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.LCH({...mt(t.R,t.G,t.B),A:H(e.A)},i):Y.LCHA({...t,A:H(e.A)},i.decimals)}))},Jt={mix(e,t){let n=e.map((e=>K(e,G(e)))),r=t===k.SUBTRACTIVE?n.map((e=>{let t=((e,t,n)=>{let r=Math.min(e,t,n),i=Math.min(C-e,C-t,C-n),a=e-r,o=t-r,s=n-r,c=Math.min(a,o),l=a-c,u=(o+c)/2,d=(s+o-c)/2,f=Math.max(l,u,d)/Math.max(a,o,s),p=isNaN(f)||f===1/0||f<=0?1:f;return{R:l/p+i,Y:u/p+i,B:d/p+i}})(e.R,e.G,e.B);return I(e,`A`)&&(t.A=e.A),t})):null;function i(e){let n=t===k.ADDITIVE?{R:0,G:0,B:0,A:0}:{R:0,Y:0,B:0,A:0};return e.reduce(((e,n)=>{let r=I(n,`A`)?n.A:1,i={R:Math.min(e.R+n.R*r,C),B:Math.min(e.B+n.B*r,C),A:1-(1-r)*(1-e.A)},a=`G`in e?e.G:e.Y,o=`G`in n?n.G:n.Y;return{...i,...t===k.ADDITIVE?{G:Math.min(a+o*r,C)}:{Y:Math.min(a+o*r,C)}}}),n)}let a;if(t===k.ADDITIVE)a=i(n);else{let e=i(r);a=((e,t,n)=>{let r=Math.min(e,t,n),i=Math.min(C-e,C-t,C-n),a=e-r,o=t-r,s=n-r,c=Math.min(o,s),l=a+o-c,u=o+c,d=2*(s-c),f=Math.max(l,u,d)/Math.max(a,o,s),p=isNaN(f)||f===1/0||f<=0?1:f;return{R:l/p+i,G:u/p+i,B:d/p+i}})(e.R,e.Y,e.B),a.A=e.A}return{R:z(a.R),G:z(a.G),B:z(a.B),A:B(a.A,0,1)}},[D.HEX](e,t,n){let r=this.mix(e,t);return delete r.A,n?J.HEX(r):Y.HEX(r)},HEXA(e,t,n){let r=this.mix(e,t);return r.A=n?H(r.A)*C:H(r.A),n?J.HEX(r):Y.HEXA(r)},[D.RGB](e,t,n,r){let i=this.mix(e,t);return delete i.A,n?J.RGB(i,r):Y.RGB(i,r.decimals)},RGBA(e,t,n,r){let i=this.mix(e,t);return n?J.RGB(i,r):Y.RGBA(i,r.decimals)},[D.HSL](e,t,n,r){let i=this.mix(e,t),a=lt(i.R,i.G,i.B);return delete i.A,delete a.A,n?J.HSL(a,r):Y.HSL(i,r.decimals)},HSLA(e,t,n,r){let i=this.mix(e,t),a=lt(i.R,i.G,i.B,i.A);return n?J.HSL(a,r):Y.HSLA(i,r.decimals)},[D.HWB](e,t,n,r){let i=this.mix(e,t),a=gt(i.R,i.G,i.B);return delete i.A,delete a.A,n?J.HWB(a,r):Y.HWB(i,r.decimals)},HWBA(e,t,n,r){let i=this.mix(e,t),a=gt(i.R,i.G,i.B,i.A);return n?J.HWB(a,r):Y.HWBA(i,r.decimals)},[D.CIELab](e,t,n,r){let i=this.mix(e,t),a=ut(i.R,i.G,i.B);return delete i.A,n?J.CIELab(a,r):Y.CIELab(i,r.decimals)},CIELabA(e,t,n,r){let i=this.mix(e,t),a=ut(i.R,i.G,i.B);return I(i,`A`)&&(a.A=i.A),n?J.CIELab(a,r):Y.CIELabA(i,r.decimals)},[D.LCH](e,t,n,r){let i=this.mix(e,t),a=mt(i.R,i.G,i.B);return delete i.A,n?J.LCH(a,r):Y.LCH(i,r.decimals)},LCHA(e,t,n,r){let i=this.mix(e,t),a=mt(i.R,i.G,i.B);return I(i,`A`)&&(a.A=i.A),n?J.LCH(a,r):Y.LCHA(i,r.decimals)}},Yt=(e,t)=>({R:z(e.R,t),G:z(e.G,t),B:z(e.B,t),...I(e,`A`)?{A:z(e.A,t)}:{}}),X=(e,t,n,r)=>r(K(e,t),n),Xt=(e,t,n,r,i)=>(n<1&&(n=5),((e,t,n)=>{let r=n-1,i=(t.R-e.R)/r,a=(t.G-e.G)/r,o=(t.B-e.B)/r,s=H(e.A),c=(H(t.A)-s)/r;return Array(n).fill(null).map(((n,l)=>l===0?e:l===r?t:{R:z(e.R+i*l),G:z(e.G+a*l),B:z(e.B+o*l),A:z(s+c*l)}))})(K(e),K(t),n).map((e=>i(e,r))));function Z(e){let{from:t,to:n,thirdParameter:r,fourthParameter:i,translateFunction:a,cssFunction:o}=e,s=typeof r==`number`?Xt(t,n,r,i?.decimals,a):Xt(t,n,5,r?.decimals,a);return o?s.map((e=>o(e,q((typeof r==`number`?i:r)??{},t,n)))):s}function Q(e){let{colors:t,secondParameter:n,thirdParameter:r,colorMixerFunction:i,css:a}=e,o=q((typeof n==`string`?r:n)??{},...t);return i(t,typeof n==`string`?n:k.ADDITIVE,a,o)}var Zt=(e,t,n,r)=>({[O.ANALOGOUS]:qt.buildHarmony(t,Bt,n,r),[O.COMPLEMENTARY]:qt.buildHarmony(t,Vt,n,r),[O.SPLIT_COMPLEMENTARY]:qt.buildHarmony(t,Ht,n,r),[O.TRIADIC]:qt.buildHarmony(t,Ut,n,r),[O.TETRADIC]:qt.buildHarmony(t,Wt,n,r),[O.SQUARE]:qt.buildHarmony(t,Gt,n,r)})[e],$=Object.fromEntries(Object.entries(Jt).map((e=>{let[t,n]=e;return[t,n.bind(Jt)]}))),Qt=class e{constructor(e,t={}){this._options=q(t,e),this.rgb=K(e),this.update(`rgb`)}update(...e){e.includes(`rgb`)||this.updateRGB(),e.includes(`hsl`)||this.updateHSL(),e.includes(`hwb`)||this.updateHWB(),e.includes(`lab`)||this.updateLAB(),e.includes(`lch`)||this.updateLCH(),e.includes(`cmyk`)||this.updateCMYK()}updateRGB(){this.rgb={...U(this.hsl.H,this.hsl.S,this.hsl.L),A:this.hsl.A}}updateHSL(){this.hsl=lt(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateHWB(){this.hwb=gt(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateLAB(){this.lab={...ut(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateLCH(){this.lch={...mt(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateCMYK(){this.cmyk=yt(this.rgb.R,this.rgb.G,this.rgb.B)}updateRGBFromHWB(){this.rgb={..._t(this.hwb.H,this.hwb.W,this.hwb.B),A:this.rgb.A}}updateRGBFromLCH(){this.rgb={...ht(this.lch.L,this.lch.C,this.lch.H),A:this.rgb.A}}updateRGBFromCMYK(){this.rgb={...vt(this.cmyk.C,this.cmyk.M,this.cmyk.Y,this.cmyk.K),A:this.rgb.A}}updateRGBFromLAB(){this.rgb={...dt(this.lab.L,this.lab.a,this.lab.b),A:this.rgb.A}}updateLCHFromLAB(){this.lch={...ft(this.lab.L,this.lab.a,this.lab.b),A:this.lab.A}}updateLABromLCH(){this.lab={...pt(this.lch.L,this.lch.C,this.lch.H),A:this.lch.A}}setOptions(e={}){return this._options={...this._options,...e},this}setR(e){this.rgb.R=B(e,0,C),this.update(`rgb`)}setG(e){return this.rgb.G=B(e,0,C),this.update(`rgb`),this}setB(e){return this.rgb.B=B(e,0,C),this.update(`rgb`),this}setH(e){return this.hsl.H=V(e),this.update(`hsl`),this}setS(e){return this.hsl.S=B(e,0,w),this.update(`hsl`),this}setL(e){return this.hsl.L=B(e,0,w),this.update(`hsl`),this}setWhiteness(e){return this.hwb.W=B(e,0,w),this.updateRGBFromHWB(),this.update(`rgb`,`hwb`),this}setBlackness(e){return this.hwb.B=B(e,0,w),this.updateRGBFromHWB(),this.update(`rgb`,`hwb`),this}setCIEL(e){return this.lab.L=B(e,0,w),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setCIEa(e){return this.lab.a=B(e,-125,T),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setCIEb(e){return this.lab.b=B(e,-125,T),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setLCHL(e){return this.lch.L=B(e,0,w),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setLCHC(e){return this.lch.C=B(e,0,E),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setLCHH(e){return this.lch.H=V(e),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setA(e){let t=B(e,0,1);return this.rgb.A=t,this.hsl.A=t,this.hwb.A=t,this.lab.A=t,this.lch.A=t,this.cmyk.A=t,this}setC(e){return this.cmyk.C=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setM(e){return this.cmyk.M=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setY(e){return this.cmyk.Y=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setK(e){return this.cmyk.K=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}get options(){return this._options}get R(){return z(this.rgb.R,this.options.decimals)}get G(){return z(this.rgb.G,this.options.decimals)}get B(){return z(this.rgb.B,this.options.decimals)}get H(){return z(this.hsl.H,this.options.decimals)}get S(){return z(this.hsl.S,this.options.decimals)}get L(){return z(this.hsl.L,this.options.decimals)}get Whiteness(){return z(this.hwb.W,this.options.decimals)}get Blackness(){return z(this.hwb.B,this.options.decimals)}get CIEL(){return z(this.lab.L,this.options.decimals)}get CIEa(){return z(this.lab.a,this.options.decimals)}get CIEb(){return z(this.lab.b,this.options.decimals)}get LCHL(){return z(this.lch.L,this.options.decimals)}get LCHC(){return z(this.lch.C,this.options.decimals)}get LCHH(){return z(this.lch.H,this.options.decimals)}get A(){return z(this.hsl.A,this.options.decimals)}get C(){return z(this.cmyk.C,this.options.decimals)}get M(){return z(this.cmyk.M,this.options.decimals)}get Y(){return z(this.cmyk.Y,this.options.decimals)}get K(){return z(this.cmyk.K,this.options.decimals)}get HEXObject(){return Y.HEX(this.rgb)}get HEXAObject(){return Y.HEXA(this.rgb)}get RGBObject(){return{R:this.R,G:this.G,B:this.B}}get RGBAObject(){return{...this.RGBObject,A:this.A}}get HSLObject(){return{H:this.H,S:this.S,L:this.L}}get HSLAObject(){return{...this.HSLObject,A:this.A}}get HWBObject(){return{H:this.H,W:this.Whiteness,B:this.Blackness}}get HWBAObject(){return{...this.HWBObject,A:this.A}}get CIELabObject(){return{L:this.CIEL,a:this.CIEa,b:this.CIEb}}get CIELabAObject(){return{...this.CIELabObject,A:this.A}}get LCHObject(){return{L:this.LCHL,C:this.LCHC,H:this.LCHH}}get LCHAObject(){return{...this.LCHObject,A:this.A}}get CMYKObject(){return{C:this.C,M:this.M,Y:this.Y,K:this.K}}get CMYKAObject(){return{...this.CMYKObject,A:this.A}}get HEX(){return J.HEX({R:this.R,G:this.G,B:this.B})}get HEXA(){return J.HEX({R:this.R,G:this.G,B:this.B,A:this.A*C})}get RGB(){return J.RGB({R:this.R,G:this.G,B:this.B},this.options)}get RGBA(){return J.RGB({R:this.R,G:this.G,B:this.B,A:this.A},this.options)}get HSL(){return J.HSL({H:this.H,S:this.S,L:this.L},this.options)}get HSLA(){return J.HSL({H:this.H,S:this.S,L:this.L,A:this.A},this.options)}get HWB(){return J.HWB({H:this.H,W:this.Whiteness,B:this.Blackness},this.options)}get HWBA(){return J.HWB({H:this.H,W:this.Whiteness,B:this.Blackness,A:this.A},this.options)}get CIELab(){return J.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb},this.options)}get CIELabA(){return J.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb,A:this.A},this.options)}get LCH(){return J.LCH({L:this.LCHL,C:this.LCHC,H:this.LCHH},this.options)}get LCHA(){return J.LCH({L:this.LCHL,C:this.LCHC,H:this.LCHH,A:this.A},this.options)}get CMYK(){return J.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K},this.options)}get CMYKA(){return J.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K,A:this.A},this.options)}static toHEXObject(e){return X(e,G(e),0,Y.HEX)}static toHEX(t){return J.HEX(e.toHEXObject(t))}static toHEXAObject(e){return X(e,G(e),0,Y.HEXA)}static toHEXA(t){return J.HEX(e.toHEXAObject(t))}static toRGBObject(e,t={}){return X(e,G(e),t.decimals,Y.RGB)}static toRGB(t,n={}){let r=e.toRGBObject(t,n),i=q(n,t);return J.RGB(r,i)}static toRGBAObject(e,t={}){return X(e,G(e),t.decimals,Y.RGBA)}static toRGBA(t,n={}){let r=e.toRGBAObject(t,n),i=q(n,t);return J.RGB(r,i)}static toHSLObject(e,t={}){return X(e,G(e),t.decimals,Y.HSL)}static toHSL(t,n={}){let r=e.toHSLObject(t,n),i=q(n,t);return J.HSL(r,i)}static toHSLAObject(e,t={}){return X(e,G(e),t.decimals,Y.HSLA)}static toHSLA(t,n={}){let r=e.toHSLAObject(t,n),i=q(n,t);return J.HSL(r,i)}static toHWBObject(e,t={}){return X(e,G(e),t.decimals,Y.HWB)}static toHWB(t,n={}){let r=e.toHWBObject(t,n),i=q(n,t);return J.HWB(r,i)}static toHWBAObject(e,t={}){return X(e,G(e),t.decimals,Y.HWBA)}static toHWBA(t,n={}){let r=e.toHWBAObject(t,n),i=q(n,t);return J.HWB(r,i)}static toCIELabObject(e,t={}){return X(e,G(e),t.decimals,Y.CIELab)}static toCIELab(t,n={}){let r=e.toCIELabObject(t,n),i=q(n,t);return J.CIELab(r,i)}static toCIELabAObject(e,t={}){return X(e,G(e),t.decimals,Y.CIELabA)}static toCIELabA(t,n={}){let r=e.toCIELabAObject(t,n),i=q(n,t);return J.CIELab(r,i)}static toLCHObject(e,t={}){return X(e,G(e),t.decimals,Y.LCH)}static toLCH(t,n={}){let r=e.toLCHObject(t,n),i=q(n,t);return J.LCH(r,i)}static toLCHAObject(e,t={}){return X(e,G(e),t.decimals,Y.LCHA)}static toLCHA(t,n={}){let r=e.toLCHAObject(t,n),i=q(n,t);return J.LCH(r,i)}static toCMYKObject(e,t={}){return X(e,G(e),t.decimals,Y.CMYK)}static toCMYK(t,n={}){let r=e.toCMYKObject(t,n),i=q(n,t);return J.CMYK(r,i)}static toCMYKAObject(e,t={}){return X(e,G(e),t.decimals,Y.CMYKA)}static toCMYKA(t,n={}){let r=e.toCMYKAObject(t,n),i=q(n,t);return J.CMYK(r,i)}static getBlendHEXObject(e,t,n=5){return Xt(e,t,n,0,Y.HEX)}static getBlendHEX(t,n,r=5){return e.getBlendHEXObject(t,n,r).map((e=>J.HEX(e)))}static getBlendHEXAObject(e,t,n=5){return Xt(e,t,n,0,Y.HEXA)}static getBlendHEXA(t,n,r=5){return e.getBlendHEXAObject(t,n,r).map((e=>J.HEX(e)))}static getBlendRGBObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGB})}static getBlendRGB(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGB,cssFunction:J.RGB})}static getBlendRGBAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGBA})}static getBlendRGBA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGBA,cssFunction:J.RGB})}static getBlendHSLObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSL})}static getBlendHSL(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSL,cssFunction:J.HSL})}static getBlendHSLAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSLA})}static getBlendHSLA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSLA,cssFunction:J.HSL})}static getBlendHWBObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWB})}static getBlendHWB(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWB,cssFunction:J.HWB})}static getBlendHWBAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWBA})}static getBlendHWBA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWBA,cssFunction:J.HWB})}static getBlendCIELabObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELab})}static getBlendCIELab(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELab,cssFunction:J.CIELab})}static getBlendCIELabAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELabA})}static getBlendCIELabA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELabA,cssFunction:J.CIELab})}static getBlendLCHObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCH})}static getBlendLCH(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCH,cssFunction:J.LCH})}static getBlendLCHAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCHA})}static getBlendLCHA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCHA,cssFunction:J.LCH})}static getMixHEXObject(e,t=k.ADDITIVE){return Jt.HEX(e,t,!1)}static getMixHEX(e,t=k.ADDITIVE){return Jt.HEX(e,t,!0)}static getMixHEXAObject(e,t=k.ADDITIVE){return Jt.HEXA(e,t,!1)}static getMixHEXA(e,t=k.ADDITIVE){return Jt.HEXA(e,t,!0)}static getMixRGBObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGB,css:!1})}static getMixRGB(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGB,css:!0})}static getMixRGBAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGBA,css:!1})}static getMixRGBA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGBA,css:!0})}static getMixHSLObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSL,css:!1})}static getMixHSL(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSL,css:!0})}static getMixHSLAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSLA,css:!1})}static getMixHSLA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSLA,css:!0})}static getMixHWBObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWB,css:!1})}static getMixHWB(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWB,css:!0})}static getMixHWBAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWBA,css:!1})}static getMixHWBA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWBA,css:!0})}static getMixCIELabObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELab,css:!1})}static getMixCIELab(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELab,css:!0})}static getMixCIELabAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELabA,css:!1})}static getMixCIELabA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELabA,css:!0})}static getMixLCHObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCH,css:!1})}static getMixLCH(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCH,css:!0})}static getMixLCHAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCHA,css:!1})}static getMixLCHA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCHA,css:!0})}static getShades(e,t,n){return typeof t==`number`?Kt(e,t,!0,q(n||{},e)):Kt(e,5,!0,q(t||{},e))}static getTints(e,t,n){return typeof t==`number`?Kt(e,t,!1,q(n||{},e)):Kt(e,5,!1,q(t||{},e))}static getHarmony(e,t,n,r){return`${t}`in O?Zt(t,e,tt(n)?n:k.ADDITIVE,q(tt(n)?r||{}:n||{},e)):tt(t)?Zt(O.COMPLEMENTARY,e,t,q(n||{},e)):Zt(O.COMPLEMENTARY,e,k.ADDITIVE,q(t||{},e))}},$t={slots:{root:`data-[disabled]:opacity-75`,picker:`flex gap-4`,selector:`rounded-md touch-none`,selectorBackground:`w-full h-full relative rounded-md`,selectorThumb:`-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-white rounded-full cursor-pointer data-[disabled]:cursor-not-allowed`,track:`w-[8px] relative rounded-md touch-none`,trackThumb:`absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-white cursor-pointer data-[disabled]:cursor-not-allowed`},variants:{size:{xs:{selector:`w-38 h-38`,track:`h-38`},sm:{selector:`w-40 h-40`,track:`h-40`},md:{selector:`w-42 h-42`,track:`h-42`},lg:{selector:`w-44 h-44`,track:`h-44`},xl:{selector:`w-46 h-46`,track:`h-46`}}},compoundVariants:[],defaultVariants:{size:`md`}},en=[`data-disabled`],tn=[`data-disabled`];function nn(e){let t=e.S*(e.L<50?e.L:100-e.L),n=e.L+t/100;return{h:e.H,s:e.L===0?e.S:2*t/n,v:n}}function rn(e){let t=(200-e.s)*e.v/100;return{H:e.h,S:t===0||t===200?0:Math.round(e.s*e.v/(t<=100?t:200-t)),L:t/2}}var an=Ce({__name:`UColorPicker`,props:g({as:{type:null,required:!1},throttle:{type:Number,required:!1,default:50},disabled:{type:Boolean,required:!1},defaultValue:{type:String,required:!1,default:`#FFFFFF`},format:{type:String,required:!1,default:`hex`},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=b(`colorPicker`,t),r=f(t,`modelValue`,{type:String}),a=S(),u=o(()=>oe({extend:$t,...a.ui?.colorPicker||{}})({size:n.size})),p=o({get(){try{return nn(new Qt(r.value||n.defaultValue).HSLObject)}catch{return{h:0,s:0,v:100}}},set(e){let t=new Qt(rn(e),{labUnit:`percent`,cmykUnit:`percent`,cmykFunction:`cmyk`});switch(n.format){case`rgb`:r.value=t.RGB;break;case`hsl`:r.value=t.HSL;break;case`cmyk`:r.value=t.CMYK;break;case`lab`:r.value=t.CIELab;break;default:r.value=t.HEX}}});function ee(e,t,n=`both`,r={x:0,y:0},a){let o=l(r),s=l(),c=he(e),u=he(t);function d(e){if(i(a))return e.preventDefault();let n=i(t);s.value={x:e.clientX-(n?e.clientX-u.left.value+n.scrollLeft:c.left.value),y:e.clientY-(n?e.clientY-u.top.value+n.scrollTop:c.top.value)},f(e)}function f(e){if(!s.value)return;let r=i(t),{x:a,y:c}=o.value;r&&(n===`x`||n===`both`)&&(a=Math.min(Math.max(0,(e.clientX-s.value.x)/r.scrollWidth*100),100)),r&&(n===`y`||n===`both`)&&(c=Math.min(Math.max(0,(e.clientY-s.value.y)/r.scrollHeight*100),100)),o.value={x:a,y:c}}function p(){s.value&&=void 0}return y&&(me(t,`pointerdown`,d),me(window,`pointermove`,f),me(window,`pointerup`,p)),{position:o}}function g(e,t=`left`){return t===`right`?e*100/360:e/100*360}function te(e){return 100-e}let ie=l(null),ae=l(null),se=l(null),ce=l(null),le=o(()=>n.disabled),{position:ue}=ee(ae,ie,`both`,{x:p.value.s,y:te(p.value.v)},le),{position:de}=ee(ce,se,`y`,{x:0,y:g(p.value.h,`right`)},le),{pause:fe,resume:pe}=re(p,e=>{ue.value={x:e.s,y:te(e.v)},de.value={x:0,y:g(e.h,`right`)}});x([ue,de],()=>{fe(),p.value={h:g(de.value.y),s:ue.value.x,v:te(ue.value.y)},m(pe)},{throttle:()=>n.throttle});let ge=o(()=>new Qt(rn({h:g(de.value.y),s:100,v:100})).HEX),_e=o(()=>({backgroundColor:ge.value})),ve=o(()=>({backgroundColor:new Qt(r.value||n.defaultValue).HEX,left:`${ue.value.x}%`,top:`${ue.value.y}%`})),ye=o(()=>({backgroundColor:ge.value,top:`${de.value.y}%`}));return(t,r)=>(e(),c(d(ne),{as:d(n).as,"data-slot":`root`,class:v(u.value.root({class:[d(n).ui?.root,d(n).class]})),"data-disabled":le.value?!0:void 0},{default:_(()=>[s(`div`,{"data-slot":`picker`,class:v(u.value.picker({class:d(n).ui?.picker}))},[s(`div`,{ref_key:`selectorRef`,ref:ie,"data-slot":`selector`,class:v(u.value.selector({class:d(n).ui?.selector})),style:h(_e.value)},[s(`div`,{"data-slot":`selectorBackground`,class:v(u.value.selectorBackground({class:d(n).ui?.selectorBackground})),"data-color-picker-background":``},[s(`div`,{ref_key:`selectorThumbRef`,ref:ae,"data-slot":`selectorThumb`,class:v(u.value.selectorThumb({class:d(n).ui?.selectorThumb})),style:h(ve.value),"data-disabled":le.value?!0:void 0},null,14,en)],2)],6),s(`div`,{ref_key:`trackRef`,ref:se,"data-slot":`track`,class:v(u.value.track({class:d(n).ui?.track})),"data-color-picker-track":``},[s(`div`,{ref_key:`trackThumbRef`,ref:ce,"data-slot":`trackThumb`,class:v(u.value.trackThumb({class:d(n).ui?.trackThumb})),style:h(ye.value),"data-disabled":le.value?!0:void 0},null,14,tn)],2)],2)]),_:1},8,[`as`,`class`,`data-disabled`]))}},[[`__scopeId`,`data-v-33dd0d17`]]);function on(e){return new URL(globalThis.location.href)}var sn={class:`grid min-h-0 flex-1 xl:grid-cols-[23rem_minmax(0,1fr)]`},cn={class:`flex min-h-0 flex-col border-r border-default`},ln={class:`border-b border-default px-5 py-3`},un={key:0,class:`space-y-7 p-5`},dn={class:`mt-4 grid grid-cols-[7rem_minmax(0,1fr)] items-start gap-4`},fn={key:1,class:`space-y-5 p-5`},pn={class:`mt-2 flex items-start gap-2`},mn={class:`min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted`},hn={class:`mt-2 flex items-start gap-2`},gn={class:`min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted`},_n={class:`relative min-h-[560px]`},vn={key:1,class:`grid h-full min-h-[560px] place-items-center px-6 text-center`},yn=r({__name:`services`,async setup(r){let i,f;be({layout:`dashboard`}),se({title:`地图服务管理`});let m=Ee(),h=Se(),g=on(),{baseLayer:v,overlayLayers:ne}=we(),{data:y,refresh:re}=([i,f]=ee(()=>ce(`/api/map-service/status`,`$q9uYHAZagQ`)),i=await i,f(),i),b=l(),x=l(y.value?.color||`#2980b9`),oe=l(y.value?.opacity??88),S=l(!1),me=l(!1),he=l(Date.now()),Ce=l(`settings`),C=[{label:`参数设置`,value:`settings`,icon:`i-lucide-sliders-horizontal`},{label:`服务信息`,value:`info`,icon:`i-lucide-radio-tower`}];te(async()=>{await m.refresh(),w()});function w(){let e=y.value?.file?.filename;b.value=e&&m.files.value.some(t=>t.filename===e&&t.summary?.state===`completed`)?e:void 0}let T=o(()=>`${g.origin}/services/wms?SERVICE=WMS&REQUEST=GetCapabilities`),E=o(()=>`${g.origin}/services/wmts?SERVICE=WMTS&REQUEST=GetCapabilities`),D=o(()=>`/services/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=uomtiles&STYLE=default&TILEMATRIXSET=WebMercatorQuad&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/png`);async function O(e){if(!/\.(uomtiles|mbtiles|pmtiles)$/i.test(e.name)){h.add({title:`不支持的地图文件`,description:`请选择 .uomtiles、.mbtiles 或 .pmtiles。`,color:`error`});return}S.value=!0;try{await ie(`/api/map-service/file`,{method:`POST`,headers:{"x-map-service-filename":encodeURIComponent(e.name),"content-type":`application/octet-stream`},body:e}),await re(),b.value=void 0,he.value=Date.now()}catch(e){h.add({title:`无法打开地图文件`,description:e?.data?.message||e?.message,color:`error`})}finally{S.value=!1}}async function k(e){if(!(e&&!y.value?.file)){me.value=!0;try{let t=y.value?.enabled;await ie(`/api/map-service/config`,{method:`POST`,body:{enabled:e,color:x.value,opacity:oe.value}}),await re(),he.value=Date.now(),h.add({title:e?t?`地图服务设置已应用`:`地图服务已启用`:`地图服务已停用`,color:e?`success`:`neutral`,icon:e?`i-lucide-radio-tower`:`i-lucide-circle-stop`})}catch(e){h.add({title:`地图服务配置失败`,description:e?.data?.message||e?.message,color:`error`})}finally{me.value=!1}}}async function Ae(){if(b.value){S.value=!0;try{await ie(`/api/map-service/source`,{method:`POST`,body:{filename:b.value}}),await re(),w(),he.value=Date.now(),h.add({title:`服务文件已替换`,color:`success`,icon:`i-lucide-file-check-2`})}catch(e){h.add({title:`无法选择服务文件`,description:e?.data?.message||e?.message,color:`error`})}finally{S.value=!1}}}async function je(e,t){await navigator.clipboard.writeText(e),h.add({title:`${t} 地址已复制`,color:`success`,icon:`i-lucide-copy-check`})}return(r,i)=>{let o=fe,l=ae,f=de,ee=ge,h=_e,g=le,te=an,re=Te,ie=Oe,se=ye,ce=ue,be=xe,Se=ve,we=De,Ee=ke,w=pe;return e(),c(w,{id:`map-services`,class:`min-w-0`,ui:{body:`gap-0 overflow-hidden p-0 sm:gap-0 sm:p-0`}},{header:_(()=>[u(f,{title:`地图服务管理`},{right:_(()=>[u(o),u(l,{icon:d(y)?.enabled?`i-lucide-circle-stop`:`i-lucide-radio-tower`,label:d(y)?.enabled?`停用服务`:`启用服务`,color:d(y)?.enabled?`error`:`primary`,variant:d(y)?.enabled?`soft`:`solid`,disabled:!d(y)?.enabled&&!d(y)?.file,loading:d(me),onClick:i[0]||=e=>k(!d(y)?.enabled)},null,8,[`icon`,`label`,`color`,`variant`,`disabled`,`loading`])]),_:1})]),body:_(()=>[s(`div`,sn,[s(`aside`,cn,[s(`div`,ln,[u(ee,{modelValue:d(Ce),"onUpdate:modelValue":i[1]||=e=>t(Ce)?Ce.value=e:null,items:C,content:!1,size:`sm`,class:`w-full`},null,8,[`modelValue`])]),u(Se,{class:`min-h-0 flex-1`},{default:_(()=>[d(Ce)===`settings`?(e(),a(`div`,un,[s(`section`,null,[i[9]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`服务文件`,-1),u(h,{class:`mt-3`,accept:`.uomtiles,.mbtiles,.pmtiles`,title:`上传并替换服务文件`,"file-name":d(y)?.file?d(m).displayWorkspaceName(d(y).file.filename):void 0,pending:d(S),onSelect:O},null,8,[`file-name`,`pending`]),u(g,{modelValue:d(b),"onUpdate:modelValue":i[2]||=e=>t(b)?b.value=e:null,class:`mt-3 w-full`},null,8,[`modelValue`]),u(l,{class:`mt-2`,icon:`i-lucide-copy`,label:`使用此任务文件`,color:`neutral`,variant:`outline`,block:``,disabled:!d(b)||d(S),loading:d(S),onClick:Ae},null,8,[`disabled`,`loading`])]),s(`section`,null,[i[10]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`输出样式`,-1),s(`div`,dn,[u(te,{modelValue:d(x),"onUpdate:modelValue":i[3]||=e=>t(x)?x.value=e:null,size:`sm`},null,8,[`modelValue`]),u(ie,{label:`区域颜色`},{default:_(()=>[u(re,{modelValue:d(x),"onUpdate:modelValue":i[4]||=e=>t(x)?x.value=e:null,class:`w-full`},null,8,[`modelValue`])]),_:1})]),u(ie,{class:`mt-5`,label:`透明度 ${d(oe)}%`},{default:_(()=>[u(se,{modelValue:d(oe),"onUpdate:modelValue":i[5]||=e=>t(oe)?oe.value=e:null,min:0,max:100,step:1},null,8,[`modelValue`])]),_:1},8,[`label`]),d(y)?.enabled?(e(),c(l,{key:0,class:`mt-5`,icon:`i-lucide-check`,label:`应用设置`,block:``,loading:d(me),onClick:i[6]||=e=>k(!0)},null,8,[`loading`])):n(``,!0)])])):(e(),a(`div`,fn,[d(y)?.enabled?n(``,!0):(e(),c(ce,{key:0,color:`neutral`,icon:`i-lucide-info`,title:`服务尚未启用`})),s(`section`,null,[i[11]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`WMS 1.3.0`,-1),s(`div`,pn,[s(`code`,mn,p(d(T)),1),u(be,{text:`复制 WMS 地址`},{default:_(()=>[u(l,{icon:`i-lucide-copy`,color:`neutral`,variant:`ghost`,size:`sm`,"aria-label":`复制 WMS 地址`,onClick:i[7]||=e=>je(d(T),`WMS`)})]),_:1})])]),s(`section`,null,[i[12]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`WMTS 1.0.0`,-1),s(`div`,hn,[s(`code`,gn,p(d(E)),1),u(be,{text:`复制 WMTS 地址`},{default:_(()=>[u(l,{icon:`i-lucide-copy`,color:`neutral`,variant:`ghost`,size:`sm`,"aria-label":`复制 WMTS 地址`,onClick:i[8]||=e=>je(d(E),`WMTS`)})]),_:1})])])]))]),_:1})]),s(`div`,_n,[d(y)?.enabled?(e(),c(we,{key:d(he),"tile-url":d(D),"base-map":d(v),"overlay-layers":d(ne),"min-zoom":0,"max-zoom":18,"map-min-zoom":3,"map-max-zoom":18,"initial-zoom":9,center:[116.4,39.9],"raster-opacity":1,"refresh-version":d(he)},null,8,[`tile-url`,`base-map`,`overlay-layers`,`refresh-version`])):(e(),a(`div`,vn,[u(Ee,{icon:`i-lucide-radio-tower`,title:`地图服务尚未启用`})]))])])]),_:1})}}});export{yn as default};
1
+ import{At as e,En as t,F as n,G as r,Hn as i,I as a,M as o,N as s,P as c,Pn as l,U as u,Wn as d,Zt as f,_r as p,_t as m,cn as ee,gr as h,ht as g,ln as _,pr as v,wt as te}from"./C97TfNgP.js";import{D as ne,R as y,at as re,b,ct as ie,ot as x,t as ae,v as oe}from"./P5kgsppB.js";import{r as se}from"./3B2XYGg4.js";import{t as ce}from"./BryCauXl.js";import{o as S}from"./CQoH790U.js";import"./CeHFmSjl.js";import{t as le}from"./CZ6SZO_d.js";import{a as ue,n as de,r as fe,t as pe}from"./CVfH720g.js";import{c as me,o as he}from"./DjVe4luM.js";import{n as ge,r as _e,t as ve}from"./Bw9ZfIEz.js";import{t as ye}from"./CttzcMfv.js";import{t as be}from"./D_SGIxNl.js";import{t as xe}from"./B30iI6NY.js";import{r as Se,t as Ce}from"#entry";import{r as we}from"./C3P9RWxN.js";import{t as Te}from"./CVIKhDCB.js";import{t as Ee}from"./CNw483Zj.js";import{t as De}from"./XR4gtbmm.js";import{t as Oe}from"./_5p6z8Bm.js";import{t as ke}from"./Dv7uv3N72.js";var C=255,w=100,T=125,E=150,D,O,k,Ae;(function(e){e.HEX=`HEX`,e.RGB=`RGB`,e.HWB=`HWB`,e.HSL=`HSL`,e.CIELab=`CIELab`,e.LCH=`LCH`,e.CMYK=`CMYK`})(D||={}),function(e){e.ANALOGOUS=`ANALOGOUS`,e.COMPLEMENTARY=`COMPLEMENTARY`,e.SPLIT_COMPLEMENTARY=`SPLIT_COMPLEMENTARY`,e.TRIADIC=`TRIADIC`,e.TETRADIC=`TETRADIC`,e.SQUARE=`SQUARE`}(O||={}),function(e){e.ADDITIVE=`ADDITIVE`,e.SUBTRACTIVE=`SUBTRACTIVE`}(k||={}),function(e){e.black=`#000000`,e.silver=`#C0C0C0`,e.gray=`#808080`,e.white=`#FFFFFF`,e.maroon=`#800000`,e.red=`#FF0000`,e.purple=`#800080`,e.fuchsia=`#FF00FF`,e.green=`#008000`,e.lime=`#00FF00`,e.olive=`#808000`,e.yellow=`#FFFF00`,e.navy=`#000080`,e.blue=`#0000FF`,e.teal=`#008080`,e.aqua=`#00FFFF`,e.orange=`#FFA500`,e.aliceblue=`#F0F8FF`,e.antiquewhite=`#FAEBD7`,e.aquamarine=`#7FFFD4`,e.azure=`#F0FFFF`,e.beige=`#F5F5DC`,e.bisque=`#FFE4C4`,e.blanchedalmond=`#FFEBCD`,e.blueviolet=`#8A2BE2`,e.brown=`#A52A2A`,e.burlywood=`#DEB887`,e.cadetblue=`#5F9EA0`,e.chartreuse=`#7FFF00`,e.chocolate=`#D2691E`,e.coral=`#FF7F50`,e.cornflowerblue=`#6495ED`,e.cornsilk=`#FFF8DC`,e.crimson=`#DC143C`,e.cyan=`#00FFFF`,e.darkblue=`#00008B`,e.darkcyan=`#008B8B`,e.darkgoldenrod=`#B8860B`,e.darkgray=`#A9A9A9`,e.darkgreen=`#006400`,e.darkgrey=`#A9A9A9`,e.darkkhaki=`#BDB76B`,e.darkmagenta=`#8B008B`,e.darkolivegreen=`#556B2F`,e.darkorange=`#FF8C00`,e.darkorchid=`#9932CC`,e.darkred=`#8B0000`,e.darksalmon=`#E9967A`,e.darkseagreen=`#8FBC8F`,e.darkslateblue=`#483D8B`,e.darkslategray=`#2F4F4F`,e.darkslategrey=`#2F4F4F`,e.darkturquoise=`#00CED1`,e.darkviolet=`#9400D3`,e.deeppink=`#FF1493`,e.deepskyblue=`#00BFFF`,e.dimgray=`#696969`,e.dimgrey=`#696969`,e.dodgerblue=`#1E90FF`,e.firebrick=`#B22222`,e.floralwhite=`#FFFAF0`,e.forestgreen=`#228B22`,e.gainsboro=`#DCDCDC`,e.ghostwhite=`#F8F8FF`,e.gold=`#FFD700`,e.goldenrod=`#DAA520`,e.greenyellow=`#ADFF2F`,e.grey=`#808080`,e.honeydew=`#F0FFF0`,e.hotpink=`#FF69B4`,e.indianred=`#CD5C5C`,e.indigo=`#4B0082`,e.ivory=`#FFFFF0`,e.khaki=`#F0E68C`,e.lavender=`#E6E6FA`,e.lavenderblush=`#FFF0F5`,e.lawngreen=`#7CFC00`,e.lemonchiffon=`#FFFACD`,e.lightblue=`#ADD8E6`,e.lightcoral=`#F08080`,e.lightcyan=`#E0FFFF`,e.lightgoldenrodyellow=`#FAFAD2`,e.lightgray=`#D3D3D3`,e.lightgreen=`#90EE90`,e.lightgrey=`#D3D3D3`,e.lightpink=`#FFB6C1`,e.lightsalmon=`#FFA07A`,e.lightseagreen=`#20B2AA`,e.lightskyblue=`#87CEFA`,e.lightslategray=`#778899`,e.lightslategrey=`#778899`,e.lightsteelblue=`#B0C4DE`,e.lightyellow=`#FFFFE0`,e.limegreen=`#32CD32`,e.linen=`#FAF0E6`,e.magenta=`#FF00FF`,e.mediumaquamarine=`#66CDAA`,e.mediumblue=`#0000CD`,e.mediumorchid=`#BA55D3`,e.mediumpurple=`#9370DB`,e.mediumseagreen=`#3CB371`,e.mediumslateblue=`#7B68EE`,e.mediumspringgreen=`#00FA9A`,e.mediumturquoise=`#48D1CC`,e.mediumvioletred=`#C71585`,e.midnightblue=`#191970`,e.mintcream=`#F5FFFA`,e.mistyrose=`#FFE4E1`,e.moccasin=`#FFE4B5`,e.navajowhite=`#FFDEAD`,e.oldlace=`#FDF5E6`,e.olivedrab=`#6B8E23`,e.orangered=`#FF4500`,e.orchid=`#DA70D6`,e.palegoldenrod=`#EEE8AA`,e.palegreen=`#98FB98`,e.paleturquoise=`#AFEEEE`,e.palevioletred=`#DB7093`,e.papayawhip=`#FFEFD5`,e.peachpuff=`#FFDAB9`,e.peru=`#CD853F`,e.pink=`#FFC0CB`,e.plum=`#DDA0DD`,e.powderblue=`#B0E0E6`,e.rosybrown=`#BC8F8F`,e.royalblue=`#4169E1`,e.saddlebrown=`#8B4513`,e.salmon=`#FA8072`,e.sandybrown=`#F4A460`,e.seagreen=`#2E8B57`,e.seashell=`#FFF5EE`,e.sienna=`#A0522D`,e.skyblue=`#87CEEB`,e.slateblue=`#6A5ACD`,e.slategray=`#708090`,e.slategrey=`#708090`,e.snow=`#FFFAFA`,e.springgreen=`#00FF7F`,e.steelblue=`#4682B4`,e.tan=`#D2B48C`,e.thistle=`#D8BFD8`,e.tomato=`#FF6347`,e.turquoise=`#40E0D0`,e.violet=`#EE82EE`,e.wheat=`#F5DEB3`,e.whitesmoke=`#F5F5F5`,e.yellowgreen=`#9ACD32`,e.rebeccapurple=`#663399`}(Ae||={});var je=Object.keys(Ae),Me={HEX:[`R`,`G`,`B`,`A`],RGB:[`R`,`G`,`B`,`A`],HSL:[`H`,`S`,`L`,`A`],HWB:[`H`,`W`,`B`,`A`],CIELab:[`L`,`a`,`b`,`A`],LCH:[`L`,`C`,`H`,`A`],CMYK:[`C`,`M`,`Y`,`K`,`A`]},Ne={ABGR:D.RGB,ABHW:D.HWB,ACHL:D.LCH,ACKMY:D.CMYK,AHLS:D.HSL,ALAB:D.CIELab,BGR:D.RGB,BHW:D.HWB,CHL:D.LCH,CKMY:D.CMYK,HLS:D.HSL,LAB:D.CIELab},Pe;(function(e){e.NUMBER=`number`,e.BOOLEAN=`boolean`})(Pe||={});var A={[D.HEX]:/^#(?:(?<r>[a-f\d])(?<g>[a-f\d])(?<b>[a-f\d])(?<a>[a-f\d])?|(?<rr>[a-f\d]{2})(?<gg>[a-f\d]{2})(?<bb>[a-f\d]{2})(?<aa>[a-f\d]{2})?)$/i,[D.RGB]:/^rgba?\s*\(\s*(?:(?<r_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<g_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<b_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<r>(?:\d*\.)?\d+%?)\s+(?<g>(?:\d*\.)?\d+%?)\s+(?<b>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_r>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_g>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.HWB]:/^hwb\s*\(\s*(?:(?<h>(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<w>(?:\d*\.)?\d+)%\s+(?<b>(?:\d*\.)?\d+)%(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))\s+(?<relative_w>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?\s+(?<relative_b>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.HSL]:/^hsla?\s*\(\s*(?:(?<h_legacy>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*,\s*(?<s_legacy>(?:\d*\.)?\d+)%\s*,\s*(?<l_legacy>(?:\d*\.)?\d+)%(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<s>(?:\d*\.)?\d+)%?\s+(?<l>(?:\d*\.)?\d+)%?(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))\s+(?<relative_s>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?\s+(?<relative_l>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.CIELab]:/^lab\s*\(\s*(?:(?<L>(?:\d*\.)?\d+%?)\s+(?<a>-?(?:\d*\.)?\d+%?)\s+(?<b>-?(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<A>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_L>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_a>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_A>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.LCH]:/^lch\s*\(\s*(?:(?<l>(?:\d*\.)?\d+%?)\s+(?<c>-?(?:\d*\.)?\d+%?)\s+(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_l>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_c>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_h>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,[D.CMYK]:/^(?:device-cmyk|cmyk)\s*\(\s*(?:(?<c_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<m_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<y_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<k_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<c>(?:\d*\.)?\d+%?)\s+(?<m>(?:\d*\.)?\d+%?)\s+(?<y>(?:\d*\.)?\d+%?)\s+(?<k>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?)\s*\)$/},j={REGEXP:/^calc\(\s*(?<operation>[\d./*+-\w\s]+)\s*\)$/,SCOPED:/\(\s*([^()]+)\s*\)/g,DIVISION:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\/\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,MULTIPLICATION:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\*\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,SUM:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\+\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,REST:/\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*-\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/},Fe=/^(?<number>-?(?:\d*\.)?\d+)(?<units>(?:deg|grad|rad|turn)?)$/,M=/^(-?\d+(?:\.\d+)?|-?\.\d+)%$/,Ie=/^0x([a-f\d]{1,2})$/i,Le=/\{(\d+)\}/g,Re=/,( +|\d+)/g,ze=/ +/,Be=`The provided string color doesn't have a correct format`,Ve=`The provided color object doesn't have the proper keys or format`,He=`is not a valid operation for a relative color`,N,P,Ue;(function(e){e.NONE=`none`,e.DEGREES=`deg`,e.GRADIANS=`grad`,e.RADIANS=`rad`,e.TURNS=`turn`})(N||={}),function(e){e.NONE=`none`,e.PERCENT=`percent`}(P||={}),function(e){e.DEVICE_CMYK=`device-cmyk`,e.CMYK=`cmyk`}(Ue||={});var F={decimals:6,legacyCSS:!1,spacesAfterCommas:!1,anglesUnit:N.NONE,rgbUnit:P.NONE,labUnit:P.NONE,lchUnit:P.NONE,cmykUnit:P.PERCENT,alphaUnit:P.NONE,cmykFunction:Ue.DEVICE_CMYK},I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),We=e=>+`${e}`.replace(M,`$1`),L=e=>M.test(`${e}`)?We(e):Math.min(+e,100),Ge=e=>(e.length===1&&(e+=e),parseInt(e,16)),Ke=e=>{let t=z(e,0).toString(16).toUpperCase();return t.length===1?`0x0${t}`:`0x${t}`},qe=(e,t=!1)=>!t&&M.test(e)?Math.min(C*We(e)/100,C):Ie.test(e)?(e.length===3&&(e+=e.slice(-1)),t?z(e)/C:z(e)):Math.min(+e,t?1:C),Je=e=>M.test(e)?B(T*We(e)/100,-125,T):B(+e,-125,T),Ye=e=>M.test(e)?B(E*We(e)/100,-150,E):B(+e,-150,E),R=e=>Math.min(M.test(e)?We(e)/100:+e,1),Xe=e=>[...e].sort().join(``).toUpperCase(),z=(e,t=6)=>{let n=10**t;return Math.round(+e*n)/n},B=(e,t,n)=>Math.max(t,Math.min(e,n)),Ze=e=>180*e/Math.PI,Qe=e=>e*Math.PI/180,$e=360,V=e=>{if(typeof e==`string`){let t=e.match(Fe).groups,n=+t.number;switch(t.units){case N.RADIANS:e=z(Ze(n));break;case N.TURNS:e=z(n*$e);break;case N.GRADIANS:e=z(.9*n);break;case N.DEGREES:default:e=n}}return(e>360||e<0)&&(e-=Math.floor(e/$e)*$e),e},H=e=>(typeof e==`string`&&(e=M.test(e)?We(e)/100:+e),isNaN(+e)||e>1?1:z(e)),et=(e,t)=>{let n;switch(t){case N.RADIANS:n=z(Qe(e));break;case N.TURNS:n=z(e/$e);break;case N.GRADIANS:n=z(10/9*e);break;case N.DEGREES:case N.NONE:default:n=e}return n},tt=e=>`${e}`in k,nt=[[.4360747,.3850649,.1430804],[.2225045,.7168786,.0606169],[.0139322,.0971045,.7141733]],rt=[[3.1338561,-1.6168667,-.4906146],[-.9787684,1.9161415,.033454],[.0719453,-.2289914,1.4052427]],it=nt.map((e=>e.reduce(((e,t)=>e+t),0))),at=(e,t,n)=>(n<0&&(n+=6),n>=6&&(n-=6),z(n<1?((t-e)*n+e)*C:n<3?t*C:n<4?((t-e)*(4-n)+e)*C:e*C)),ot=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,st=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,ct=(e,t,n,r)=>{let i=[0,0,0],a=[e,t,n];return r.forEach(((e,t)=>{e.forEach(((e,n)=>{i[t]+=e*a[n]}))})),i},U=(e,t,n)=>{t/=100;let r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{R:at(i,r,(e/=60)+2),G:at(i,r,e),B:at(i,r,e-2)}},lt=(e,t,n,r=1)=>{e/=C,t/=C,n/=C,r=Math.min(r,1);let i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(i){case e:s=(t-n)/o%6;break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4}s=z(60*s),s<0&&(s+=360),c=o/(1-Math.abs(2*l-1))}return{H:s,S:z(100*c),L:z(100*l),A:r}},ut=(e,t,n)=>{let r=[e/C,t/C,n/C].map(ot),i=ct(r[0],r[1],r[2],nt),a=((e,t,n)=>{let r=e=>e>(6/29)**3?Math.cbrt(e):e/(3*(6/29)**2)+4/29,i=r(e/it[0]),a=r(t/it[1]);return[116*a-16,500*(i-a),200*(a-r(n/it[2]))]})(i[0],i[1],i[2]);return{L:a[0],a:a[1],b:a[2]}},dt=(e,t,n)=>{let r=((e,t,n)=>{let r=e=>e>6/29?e**3:3*(6/29)**2*(e-4/29),i=(e+16)/116,a=t/500,o=n/200;return[it[0]*r(i+a),it[1]*r(i),it[2]*r(i-o)]})(e,t,n),i=ct(r[0],r[1],r[2],rt).map(st);return{R:B(i[0]*C,0,C),G:B(i[1]*C,0,C),B:B(i[2]*C,0,C)}},ft=(e,t,n)=>({L:e,C:Math.sqrt(t**2+n**2),H:V(Ze(Math.atan2(n,t)))}),pt=(e,t,n)=>{let r=Qe(n);return{L:e,a:t*Math.cos(r),b:t*Math.sin(r)}},mt=(e,t,n)=>{let r=ut(e,t,n);return ft(r.L,r.a,r.b)},ht=(e,t,n)=>{let r=pt(e,t,n);return dt(r.L,r.a,r.b)},gt=(e,t,n,r=1)=>({H:lt(e,t,n,r).H,W:z(Math.min(e,t,n)/C*100),B:z(100*(1-Math.max(e,t,n)/C)),A:r}),_t=(e,t,n)=>{let r=1-(n/=100)-(t/=100),i=r*(1-Math.abs(e/60%2-1)),a=0,o=0,s=0;return e<60?(a=r,o=i,s=0):e>=60&&e<120?(a=i,o=r,s=0):e>=120&&e<180?(a=0,o=r,s=i):e>=180&&e<240?(a=0,o=i,s=r):e>=240&&e<300?(a=i,o=0,s=r):e>=300&&(a=r,o=0,s=i),a+=t,o+=t,s+=t,{R:B(a*C,0,C),G:B(o*C,0,C),B:B(s*C,0,C)}},vt=(e,t,n,r)=>({R:z(C*(1-e)*(r=1-r)),G:z(C*(1-t)*r),B:z(C*(1-n)*r)}),yt=(e,t,n)=>{e/=C,t/=C,n/=C;let r=1-Math.max(e,t,n),i=1-r,a=i&&(i-t)/i,o=i&&(i-n)/i;return{C:z(100*(i&&(i-e)/i)),M:z(100*a),Y:z(100*o),K:z(100*r)}},bt=(e,t)=>{if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;let n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,a=0,o=0,s=0,c=0;return(t?n:r).find(((t,n)=>e>=t[0]&&e<t[1]&&(a=t[0],o=t[1],s=i[n][0],c=i[n][1],!0))),s+(c-s)/(o-a)*(e-a)},xt=class{get rgb(){return this._rgb}},St=class extends xt{constructor(e){super();let t=e.match(A.HEX).groups;this._r=t.r??t.rr,this._g=t.g??t.gg,this._b=t.b??t.bb,this._a=t.a??t.aa;let n={R:Ge(this._r),G:Ge(this._g),B:Ge(this._b)};this._a!==void 0&&(n.A=Ge(this._a)/C),this._rgb=n}},W=class{constructor(e,t,n){this._operations=new Map([[j.DIVISION,this._division],[j.MULTIPLICATION,this._multiplication],[j.SUM,this._sum],[j.REST,this._rest]]),this._colorIndex=e;let r=t,i=0;if(Number.isNaN(+t)){if(t in n)this._result=n[t];else if(j.REGEXP.test(r))j.REGEXP.lastIndex=0,this._result=this._getCalcValue(r,n);else{for(;j.SCOPED.test(r)&&i<100;){if(j.SCOPED.lastIndex=0,r=r.replace(j.SCOPED,((e,t)=>this._calculate(t,n).toString())),j.REGEXP.test(r)){j.REGEXP.lastIndex=0;break}i++}this._result=this._getCalcValue(r,n)}}else this._result=+t}_division(e,t){return e/t}_multiplication(e,t){return e*t}_sum(e,t){return e+t}_rest(e,t){return e-t}_getCalcValue(e,t){let n=e.match(j.REGEXP).groups.operation,r=this._calculate(n,t);if(Number.isNaN(r))throw Error(`Invalid value for ${this._colorIndex}. ${n} ${He}`);return r}_calculate(e,t){return this._operations.forEach(((n,r)=>{let i=0;for(;r.test(e)&&i<100;)e=e.replace(r,((e,r,i)=>n(t[r]??+r,t[i]??+i).toString())),i++})),+e}get result(){return this._result}},Ct=class extends xt{get hasPercentageAlpha(){return M.test(this._a)}},wt=class extends Ct{constructor(e,t){super();let{r_legacy:n,g_legacy:r,b_legacy:i,a_legacy:a,r:o,g:s,b:c,a:l,from:u,relative_r:d,relative_g:f,relative_b:p,relative_a:m}=e.match(A.RGB).groups;if(u){let e=t(u),n={r:e.R,g:e.G,b:e.B,alpha:e.A??1},r=new W(`r`,d,n).result,i=new W(`g`,f,n).result,a=new W(`b`,p,n).result,o={R:Math.min(r,C),G:Math.min(i,C),B:Math.min(a,C)};if(m){let e=new W(`alpha`,m,n).result;o.A=Math.min(e,1)}this._rgb=o}else{this._r=n??o,this._g=r??s,this._b=i??c,this._a=a??l;let e={R:Math.min(qe(this._r),C),G:Math.min(qe(this._g),C),B:Math.min(qe(this._b),C)};this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._r)&&M.test(this._g)&&M.test(this._b)}static test(e){return A.RGB.test(e)}},Tt=class extends Ct{get angleUnit(){if(this._h){let e=this._h.match(Fe).groups.units;return e===``?N.NONE:e}return N.NONE}},Et=class extends Tt{constructor(e,t){super();let{h_legacy:n,s_legacy:r,l_legacy:i,a_legacy:a,h:o,s,l:c,a:l,from:u,relative_h:d,relative_s:f,relative_l:p,relative_a:m}=e.match(A.HSL).groups;if(u){let e=t(u),n=lt(e.R,e.G,e.B,e.A),r={h:n.H,s:n.S,l:n.L,alpha:n.A},i=new W(`h`,d,r).result,a=new W(`s`,f,r).result,o=new W(`l`,p,r).result,s=U(B(i,0,360),B(a,0,w),B(o,0,w));if(m){let e=new W(`alpha`,m,r).result;s.A=B(e,0,1)}this._rgb=s}else{this._h=n??o,this._s=r??s,this._l=i??c,this._a=a??l;let e=U(V(this._h),L(this._s),L(this._l));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}static test(e){return A.HSL.test(e)}},Dt=class extends Tt{constructor(e,t){super();let{h:n,w:r,b:i,a,from:o,relative_h:s,relative_w:c,relative_b:l,relative_a:u}=e.match(A.HWB).groups;if(o){let e=t(o),n=gt(e.R,e.G,e.B,e.A),r={h:n.H,w:n.W,b:n.B,alpha:n.A},i=new W(`h`,s,r).result,a=new W(`w`,c,r).result,d=new W(`b`,l,r).result,f=_t(B(i,0,360),B(a,0,w),B(d,0,w));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._h=n,this._w=r,this._b=i,this._a=a;let e=_t(V(this._h),L(this._w),L(this._b));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}static test(e){return A.HWB.test(e)}},Ot=class extends Ct{constructor(e,t){super();let{L:n,a:r,b:i,A:a,from:o,relative_L:s,relative_a:c,relative_b:l,relative_A:u}=e.match(A.CIELab).groups;if(o){let e=t(o),n=ut(e.R,e.G,e.B),r={l:n.L,a:n.a,b:n.b,alpha:e.A??1},i=new W(`l`,s,r).result,a=new W(`a`,c,r).result,d=new W(`b`,l,r).result,f=dt(B(i,0,w),B(a,-125,T),B(d,-125,T));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._L=n,this._A=r,this._B=i,this._a=a;let e=dt(L(this._L),Je(this._A),Je(this._B));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._L)&&M.test(this._A)&&M.test(this._B)}static test(e){return A.CIELab.test(e)}},kt=class extends Tt{constructor(e,t){super();let{l:n,c:r,h:i,a,from:o,relative_l:s,relative_c:c,relative_h:l,relative_a:u}=e.match(A.LCH).groups;if(o){let e=t(o),n=mt(e.R,e.G,e.B),r={l:n.L,c:n.C,h:n.H,alpha:e.A??1},i=new W(`l`,s,r).result,a=new W(`c`,c,r).result,d=new W(`h`,l,r).result,f=ht(B(i,0,w),B(a,-150,E),V(d));if(u){let e=new W(`alpha`,u,r).result;f.A=B(e,0,1)}this._rgb=f}else{this._l=n,this._c=r,this._h=i,this._a=a;let e=ht(L(this._l),Ye(this._c),V(this._h));this._a!==void 0&&(e.A=H(this._a)),this._rgb=e}}get hasPercentageValues(){return M.test(this._l)&&M.test(this._c)}static test(e){return A.LCH.test(e)}},At=class extends Ct{constructor(e){super();let t=e.match(A.CMYK).groups;this._c=t.c_legacy??t.c,this._m=t.m_legacy??t.m,this._y=t.y_legacy??t.y,this._k=t.k_legacy??t.k,this._a=t.a_legacy??t.a;let n=vt(R(this._c),R(this._m),R(this._y),R(this._k));this._a!==void 0&&(n.A=H(this._a)),this._rgb=n}get hasPercentageValues(){return M.test(this._c)&&M.test(this._m)&&M.test(this._y)&&M.test(this._k)}static test(e){return A.CMYK.test(e)}},G=e=>typeof e==`string`?(e=>{let t;if(Object.keys(D).some((n=>{if(A[n].test(e))return t=n,!0})),!t&&~je.indexOf(e)&&(t=D.HEX),!t)throw Error(Be);return t})(e):(e=>{let t,n=!1,r=Xe(Object.keys(e));if(Ne[r]&&(t=Ne[r]),t&&t===D.RGB){let r=Object.entries(e).some((e=>!Ie.test(`${e[1]}`))),i=Object.entries(e).some((e=>!(M.test(`${e[1]}`)||!Ie.test(`${e[1]}`)&&!isNaN(+e[1])&&+e[1]<=C)));r&&i&&(n=!0),r||(t=D.HEX)}if(!t||n)throw Error(Ve);return t})(e),jt={[D.HEX](e){return new St(~je.indexOf(e)?Ae[e]:e).rgb},[D.RGB]:e=>new wt(e,K).rgb,[D.HSL]:e=>new Et(e,K).rgb,[D.HWB]:e=>new Dt(e,K).rgb,[D.CIELab]:e=>new Ot(e,K).rgb,[D.LCH]:e=>new kt(e,K).rgb,[D.CMYK]:e=>new At(e).rgb},Mt={[D.HEX](e){let t={R:qe(`${e.R}`),G:qe(`${e.G}`),B:qe(`${e.B}`)};return I(e,`A`)&&(t.A=Math.min(qe(`${e.A}`,!0),1)),t},[D.RGB](e){return this.HEX(e)},[D.HSL](e){let t=L(`${e.S}`),n=L(`${e.L}`),r=U(V(e.H),t,n);return I(e,`A`)&&(r.A=H(e.A)),r},[D.HWB](e){let t=L(`${e.W}`),n=L(`${e.B}`),r=_t(V(e.H),t,n);return I(e,`A`)&&(r.A=H(e.A)),r},[D.CIELab](e){let t=dt(L(`${e.L}`),Je(`${e.a}`),Je(`${e.b}`));return I(e,`A`)&&(t.A=H(e.A)),t},[D.LCH](e){let t=ht(L(`${e.L}`),Ye(`${e.C}`),V(`${e.H}`));return I(e,`A`)&&(t.A=H(e.A)),t},[D.CMYK](e){let t=vt(R(`${e.C}`),R(`${e.M}`),R(`${e.Y}`),R(`${e.K}`));return I(e,`A`)&&(t.A=H(e.A)),t}},K=(e,t=G(e))=>typeof e==`string`?jt[t](e):Mt[t](e),q=(e,...t)=>{let n=[],r=[],i=[],a=[],o=[],s=[],c=[],l=Object.values(N),u=Object.values(P),d=Object.values(Ue),f={legacyCSS:0,spacesAfterCommas:0,cmykFunction:0};for(let e of t)if(typeof e==`string`){if(n.push(e),e.includes(`,`)){f.legacyCSS++;let t=e.match(Re);new Set(t).size===1&&ze.test(t[0].slice(1))&&f.spacesAfterCommas++}if(Et.test(e)){let t=new Et(e,K);r.push(t.angleUnit),c.push(t.hasPercentageAlpha);continue}if(Dt.test(e)){let t=new Dt(e,K);r.push(t.angleUnit),c.push(t.hasPercentageAlpha);continue}if(wt.test(e)){let t=new wt(e,K);i.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(Ot.test(e)){let t=new Ot(e,K);a.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(kt.test(e)){let t=new kt(e,K);r.push(t.angleUnit),o.push(t.hasPercentageValues),c.push(t.hasPercentageAlpha);continue}if(At.test(e)){let t=new At(e);s.push(t.hasPercentageValues),e.startsWith(`cmyk`)&&f.cmykFunction++,c.push(t.hasPercentageAlpha)}}return{decimals:typeof e.decimals===Pe.NUMBER?e.decimals:F.decimals,legacyCSS:typeof e.legacyCSS===Pe.BOOLEAN?e.legacyCSS:!!(n.length&&f.legacyCSS===n.length)||F.legacyCSS,spacesAfterCommas:typeof e.spacesAfterCommas===Pe.BOOLEAN?e.spacesAfterCommas:!!(n.length&&f.spacesAfterCommas===n.length)||F.spacesAfterCommas,anglesUnit:e.anglesUnit&&l.includes(e.anglesUnit)?e.anglesUnit:new Set(r).size===1?r[0]:F.anglesUnit,rgbUnit:e.rgbUnit&&u.includes(e.rgbUnit)?e.rgbUnit:new Set(i).size===1&&i[0]?P.PERCENT:F.rgbUnit,labUnit:e.labUnit&&u.includes(e.labUnit)?e.labUnit:new Set(a).size===1&&a[0]?P.PERCENT:F.labUnit,lchUnit:e.lchUnit&&u.includes(e.lchUnit)?e.lchUnit:new Set(o).size===1&&o[0]?P.PERCENT:F.lchUnit,cmykUnit:e.cmykUnit&&u.includes(e.cmykUnit)?e.cmykUnit:new Set(s).size!==1||s[0]?F.cmykUnit:P.NONE,alphaUnit:e.alphaUnit&&u.includes(e.alphaUnit)?e.alphaUnit:new Set(c).size===1&&c[0]?P.PERCENT:F.alphaUnit,cmykFunction:e.cmykFunction&&d.includes(e.cmykFunction)?e.cmykFunction:s.length&&s.length===f.cmykFunction?Ue.CMYK:F.cmykFunction}},Nt=(e,t)=>({H:z(e.H,t),S:z(e.S,t),L:z(e.L,t)}),Pt=e=>e?`, `:`,`,Ft=(e,t)=>Me[Ne[Xe(Object.keys(e))]].reduce(((n,r,i)=>{let a=e[r];return a!==void 0&&n.push(t(a,i)),n}),[]),It=(e,t)=>e.replace(Le,((e,n)=>`${t[n-1]}`)),Lt=(e,t,n=!1)=>{let{alphaUnit:r,legacyCSS:i,decimals:a}=t;return r!==P.PERCENT||i&&!n?z(e,a):`${z(100*e,a)}%`},Rt=e=>{let{anglesUnit:t,decimals:n}=e;return(r,i)=>i===0&&t!==N.NONE?`${z(et(r,t),n)}${t}`:i===3?Lt(r,e):z(r,n)},J={[D.HEX]:e=>{let t=Ft(e,(e=>(e=>{let t=z(e,0).toString(16).toUpperCase();return t.length===1&&(t=`0${t}`),t})(z(e))));return It(t.length===4?`#{1}{2}{3}{4}`:`#{1}{2}{3}`,t)},[D.RGB]:(e,t)=>{let{decimals:n,legacyCSS:r,spacesAfterCommas:i,rgbUnit:a}=t,o=Pt(i),s=Ft(e,((e,r)=>a===P.PERCENT&&r<3?`${((e,t)=>z(e/C*100,t))(e,n)}%`:r===3?Lt(e,t):z(e,n)));return It(r?s.length===4?`rgba({1}${o}{2}${o}{3}${o}{4})`:`rgb({1}${o}{2}${o}{3})`:s.length===4?`rgb({1} {2} {3} / {4})`:`rgb({1} {2} {3})`,s)},[D.HSL]:(e,t)=>{let{legacyCSS:n,spacesAfterCommas:r}=t,i=Pt(r),a=Ft(e,Rt(t));return It(n?a.length===4?`hsla({1}${i}{2}%${i}{3}%${i}{4})`:`hsl({1}${i}{2}%${i}{3}%)`:a.length===4?`hsl({1} {2}% {3}% / {4})`:`hsl({1} {2}% {3}%)`,a)},[D.HWB]:(e,t)=>{let n=Ft(e,Rt(t));return It(n.length===4?`hwb({1} {2}% {3}% / {4})`:`hwb({1} {2}% {3}%)`,n)},[D.CIELab]:(e,t)=>{let{decimals:n,labUnit:r}=t,i=Ft(e,((e,i)=>{if(i===0){let t=z(L(e),n);return r===P.PERCENT?`${t}%`:`${t}`}return i<3?r===P.PERCENT?`${((e,t)=>z(e/T*100,t))(e,n)}%`:z(e,n):Lt(e,t,!0)}));return It(i.length===4?`lab({1} {2} {3} / {4})`:`lab({1} {2} {3})`,i)},[D.LCH]:(e,t)=>{let{decimals:n,lchUnit:r,anglesUnit:i}=t,a=Ft(e,((e,a)=>{if(a===0){let t=z(L(e),n);return r===P.PERCENT?`${t}%`:`${t}`}return a===1?r===P.PERCENT?`${((e,t)=>z(e/E*100,t))(e,n)}%`:z(e,n):a===2?i===N.NONE?z(e,n):`${z(et(e,i),n)}${i}`:Lt(e,t,!0)}));return It(a.length===4?`lch({1} {2} {3} / {4})`:`lch({1} {2} {3})`,a)},[D.CMYK]:(e,t)=>{let{decimals:n,legacyCSS:r,spacesAfterCommas:i,cmykUnit:a,cmykFunction:o}=t,s=Pt(i),c=Ft(e,((e,r)=>a===P.PERCENT&&r<4?`${z(e,n)}%`:r===4?Lt(e,t):z(e/100,n)));return It(r?c.length===5?`${o}({1}${s}{2}${s}{3}${s}{4}${s}{5})`:`${o}({1}${s}{2}${s}{3}${s}{4})`:c.length===5?`${o}({1} {2} {3} {4} / {5})`:`${o}({1} {2} {3} {4})`,c)}},zt=(e,t,n)=>t.reduce(((t,r)=>[...t,{...e,H:n===k.ADDITIVE?V(e.H+r):V(bt(bt(e.H,!1)+r,!0))}]),[{...e}]),Bt=(e,t)=>zt(e,[30,-30],t),Vt=(e,t)=>zt(e,[180],t),Ht=(e,t)=>zt(e,[150,-150],t),Ut=(e,t)=>zt(e,[120,-120],t),Wt=(e,t)=>zt(e,[60,-120,180],t),Gt=(e,t)=>zt(e,[90,-90,180],t),Y={[D.HEX]:e=>({R:Ke(e.R),G:Ke(e.G),B:Ke(e.B)}),HEXA(e){let t=Y.HEX(e);return t.A=I(e,`A`)?Ke(e.A*C):`0xFF`,t},[D.RGB](e,t){let n=Yt(e,t);return I(n,`A`)&&delete n.A,n},RGBA(e,t){let n=Y.RGB(e,t);return n.A=I(e,`A`)?z(e.A):1,n},[D.HSL](e,t){let n=lt(e.R,e.G,e.B);return delete n.A,Nt(n,t)},HSLA(e,t){let n=Y.HSL(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.HWB](e,t){let n=gt(e.R,e.G,e.B);return delete n.A,((e,t)=>({H:z(e.H,t),W:z(e.W,t),B:z(e.B,t)}))(n,t)},HWBA(e,t){let n=Y.HWB(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.CIELab]:(e,t)=>((e,t)=>({L:z(e.L,t),a:z(e.a,t),b:z(e.b,t)}))(ut(e.R,e.G,e.B),t),CIELabA(e,t){let n=Y.CIELab(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.LCH]:(e,t)=>((e,t)=>({L:z(e.L,t),C:z(e.C,t),H:z(e.H,t)}))(mt(e.R,e.G,e.B),t),LCHA(e,t){let n=Y.LCH(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n},[D.CMYK]:(e,t)=>((e,t)=>({C:z(e.C,t),M:z(e.M,t),Y:z(e.Y,t),K:z(e.K,t)}))(yt(e.R,e.G,e.B),t),CMYKA(e,t){let n=Y.CMYK(e,t);return n.A=I(e,`A`)?z(e.A,t):1,n}},Kt=(e,t,n,r)=>{let i=G(e),a=typeof e==`string`,o=K(e,i),s=typeof e==`string`&&I(o,`A`)||typeof e!=`string`&&I(e,`A`),c=lt(o.R,o.G,o.B,o.A);s||delete c.A;let l=n?c.L/(t+1):(100-c.L)/(t+1),u=Array(t).fill(null).map(((e,t)=>({...c,L:c.L+l*(t+1)*(1-2*n)})));switch(i){case D.HEX:default:return u.map((e=>{let t=U(e.H,e.S,e.L);return s&&(t.A=e.A),a?s?J.HEX({...t,A:z(t.A*C)}):J.HEX(t):s?Y.HEXA(t):Y.HEX(t)}));case D.RGB:return u.map((e=>{let t=U(e.H,e.S,e.L);return s&&(t.A=e.A),a?J.RGB(t,r):s?Y.RGBA(t,r.decimals):Y.RGB(t,r.decimals)}));case D.HSL:return u.map((e=>a?J.HSL(e,r):s?Y.HSLA({...U(e.H,e.S,e.L),A:e.A},r.decimals):Y.HSL(U(e.H,e.S,e.L),r.decimals)));case D.HWB:return u.map((e=>{let t=U(e.H,e.S,e.L);s&&(t.A=e.A);let n=s?Y.HWBA(t,r.decimals):Y.HWB(t,r.decimals);return a?J.HWB(n,r):n}));case D.CIELab:return u.map((e=>{let t=U(e.H,e.S,e.L);s&&(t.A=e.A);let n=s?Y.CIELabA(t,r.decimals):Y.CIELab(t,r.decimals);return a?J.CIELab(n,r):n}));case D.LCH:return u.map((e=>{let t=U(e.H,e.S,e.L),n=mt(t.R,t.G,t.B);return s&&(n.A=e.A),a?J.LCH(n,r):s?Y.LCHA({...t,A:e.A},r.decimals):Y.LCH(t,r.decimals)}))}},qt={buildHarmony(e,t,n,r){let i=G(e),a=K(e,i),o=lt(a.R,a.G,a.B,a.A),s=typeof e==`string`&&I(a,`A`)||typeof e!=`string`&&I(e,`A`),c=typeof e==`string`;switch(i){case D.HEX:default:return s?this.HEXA(Nt(o,0),t,n,c):this.HEX(Nt(o,0),t,n,c);case D.HSL:return s?this.HSLA(o,t,n,c,r):this.HSL(o,t,n,c,r);case D.HWB:return s?this.HWBA(o,t,n,c,r):this.HWB(o,t,n,c,r);case D.RGB:return s?this.RGBA(o,t,n,c,r):this.RGB(o,t,n,c,r);case D.CIELab:return s?this.CIELabA(o,t,n,c,r):this.CIELab(o,t,n,c,r);case D.LCH:return s?this.LCHA(o,t,n,c,r):this.LCH(o,t,n,c,r)}},[D.HEX]:(e,t,n,r)=>t(e,n).map((e=>r?J.HEX(U(e.H,e.S,e.L)):Y.HEX(U(e.H,e.S,e.L)))),HEXA:(e,t,n,r)=>t(e,n).map((e=>r?J.HEX({...U(e.H,e.S,e.L),A:H(e.A)*C}):Y.HEXA({...U(e.H,e.S,e.L),A:H(e.A)}))),[D.RGB]:(e,t,n,r,i)=>t(e,n).map((e=>r?J.RGB(U(e.H,e.S,e.L),i):Y.RGB(U(e.H,e.S,e.L),i.decimals))),RGBA:(e,t,n,r,i)=>t(e,n).map((e=>r?J.RGB({...U(e.H,e.S,e.L),A:H(e.A)},i):Y.RGBA({...U(e.H,e.S,e.L),A:H(e.A)},i.decimals))),[D.HSL]:(e,t,n,r,i)=>t(e,n).map((e=>r?J.HSL({H:e.H,S:e.S,L:e.L},i):Y.HSL(U(e.H,e.S,e.L),i.decimals))),HSLA:(e,t,n,r,i)=>t(e,n).map((e=>r?J.HSL({...e,A:H(e.A)},i):Y.HSLA({...U(e.H,e.S,e.L),A:H(e.A)},i.decimals))),[D.HWB]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L),n=gt(t.R,t.G,t.B);return r?J.HWB({H:n.H,W:n.W,B:n.B},i):Y.HWB(t,i.decimals)})),HWBA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L),n=gt(t.R,t.G,t.B);return r?J.HWB({...n,A:H(e.A)},i):Y.HWBA({...t,A:H(e.A)},i.decimals)})),[D.CIELab]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.CIELab(ut(t.R,t.G,t.B),i):Y.CIELab(t,i.decimals)})),CIELabA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.CIELab({...ut(t.R,t.G,t.B),A:H(e.A)},i):Y.CIELabA({...t,A:H(e.A)},i.decimals)})),[D.LCH]:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.LCH(mt(t.R,t.G,t.B),i):Y.LCH(t,i.decimals)})),LCHA:(e,t,n,r,i)=>t(e,n).map((e=>{let t=U(e.H,e.S,e.L);return r?J.LCH({...mt(t.R,t.G,t.B),A:H(e.A)},i):Y.LCHA({...t,A:H(e.A)},i.decimals)}))},Jt={mix(e,t){let n=e.map((e=>K(e,G(e)))),r=t===k.SUBTRACTIVE?n.map((e=>{let t=((e,t,n)=>{let r=Math.min(e,t,n),i=Math.min(C-e,C-t,C-n),a=e-r,o=t-r,s=n-r,c=Math.min(a,o),l=a-c,u=(o+c)/2,d=(s+o-c)/2,f=Math.max(l,u,d)/Math.max(a,o,s),p=isNaN(f)||f===1/0||f<=0?1:f;return{R:l/p+i,Y:u/p+i,B:d/p+i}})(e.R,e.G,e.B);return I(e,`A`)&&(t.A=e.A),t})):null;function i(e){let n=t===k.ADDITIVE?{R:0,G:0,B:0,A:0}:{R:0,Y:0,B:0,A:0};return e.reduce(((e,n)=>{let r=I(n,`A`)?n.A:1,i={R:Math.min(e.R+n.R*r,C),B:Math.min(e.B+n.B*r,C),A:1-(1-r)*(1-e.A)},a=`G`in e?e.G:e.Y,o=`G`in n?n.G:n.Y;return{...i,...t===k.ADDITIVE?{G:Math.min(a+o*r,C)}:{Y:Math.min(a+o*r,C)}}}),n)}let a;if(t===k.ADDITIVE)a=i(n);else{let e=i(r);a=((e,t,n)=>{let r=Math.min(e,t,n),i=Math.min(C-e,C-t,C-n),a=e-r,o=t-r,s=n-r,c=Math.min(o,s),l=a+o-c,u=o+c,d=2*(s-c),f=Math.max(l,u,d)/Math.max(a,o,s),p=isNaN(f)||f===1/0||f<=0?1:f;return{R:l/p+i,G:u/p+i,B:d/p+i}})(e.R,e.Y,e.B),a.A=e.A}return{R:z(a.R),G:z(a.G),B:z(a.B),A:B(a.A,0,1)}},[D.HEX](e,t,n){let r=this.mix(e,t);return delete r.A,n?J.HEX(r):Y.HEX(r)},HEXA(e,t,n){let r=this.mix(e,t);return r.A=n?H(r.A)*C:H(r.A),n?J.HEX(r):Y.HEXA(r)},[D.RGB](e,t,n,r){let i=this.mix(e,t);return delete i.A,n?J.RGB(i,r):Y.RGB(i,r.decimals)},RGBA(e,t,n,r){let i=this.mix(e,t);return n?J.RGB(i,r):Y.RGBA(i,r.decimals)},[D.HSL](e,t,n,r){let i=this.mix(e,t),a=lt(i.R,i.G,i.B);return delete i.A,delete a.A,n?J.HSL(a,r):Y.HSL(i,r.decimals)},HSLA(e,t,n,r){let i=this.mix(e,t),a=lt(i.R,i.G,i.B,i.A);return n?J.HSL(a,r):Y.HSLA(i,r.decimals)},[D.HWB](e,t,n,r){let i=this.mix(e,t),a=gt(i.R,i.G,i.B);return delete i.A,delete a.A,n?J.HWB(a,r):Y.HWB(i,r.decimals)},HWBA(e,t,n,r){let i=this.mix(e,t),a=gt(i.R,i.G,i.B,i.A);return n?J.HWB(a,r):Y.HWBA(i,r.decimals)},[D.CIELab](e,t,n,r){let i=this.mix(e,t),a=ut(i.R,i.G,i.B);return delete i.A,n?J.CIELab(a,r):Y.CIELab(i,r.decimals)},CIELabA(e,t,n,r){let i=this.mix(e,t),a=ut(i.R,i.G,i.B);return I(i,`A`)&&(a.A=i.A),n?J.CIELab(a,r):Y.CIELabA(i,r.decimals)},[D.LCH](e,t,n,r){let i=this.mix(e,t),a=mt(i.R,i.G,i.B);return delete i.A,n?J.LCH(a,r):Y.LCH(i,r.decimals)},LCHA(e,t,n,r){let i=this.mix(e,t),a=mt(i.R,i.G,i.B);return I(i,`A`)&&(a.A=i.A),n?J.LCH(a,r):Y.LCHA(i,r.decimals)}},Yt=(e,t)=>({R:z(e.R,t),G:z(e.G,t),B:z(e.B,t),...I(e,`A`)?{A:z(e.A,t)}:{}}),X=(e,t,n,r)=>r(K(e,t),n),Xt=(e,t,n,r,i)=>(n<1&&(n=5),((e,t,n)=>{let r=n-1,i=(t.R-e.R)/r,a=(t.G-e.G)/r,o=(t.B-e.B)/r,s=H(e.A),c=(H(t.A)-s)/r;return Array(n).fill(null).map(((n,l)=>l===0?e:l===r?t:{R:z(e.R+i*l),G:z(e.G+a*l),B:z(e.B+o*l),A:z(s+c*l)}))})(K(e),K(t),n).map((e=>i(e,r))));function Z(e){let{from:t,to:n,thirdParameter:r,fourthParameter:i,translateFunction:a,cssFunction:o}=e,s=typeof r==`number`?Xt(t,n,r,i?.decimals,a):Xt(t,n,5,r?.decimals,a);return o?s.map((e=>o(e,q((typeof r==`number`?i:r)??{},t,n)))):s}function Q(e){let{colors:t,secondParameter:n,thirdParameter:r,colorMixerFunction:i,css:a}=e,o=q((typeof n==`string`?r:n)??{},...t);return i(t,typeof n==`string`?n:k.ADDITIVE,a,o)}var Zt=(e,t,n,r)=>({[O.ANALOGOUS]:qt.buildHarmony(t,Bt,n,r),[O.COMPLEMENTARY]:qt.buildHarmony(t,Vt,n,r),[O.SPLIT_COMPLEMENTARY]:qt.buildHarmony(t,Ht,n,r),[O.TRIADIC]:qt.buildHarmony(t,Ut,n,r),[O.TETRADIC]:qt.buildHarmony(t,Wt,n,r),[O.SQUARE]:qt.buildHarmony(t,Gt,n,r)})[e],$=Object.fromEntries(Object.entries(Jt).map((e=>{let[t,n]=e;return[t,n.bind(Jt)]}))),Qt=class e{constructor(e,t={}){this._options=q(t,e),this.rgb=K(e),this.update(`rgb`)}update(...e){e.includes(`rgb`)||this.updateRGB(),e.includes(`hsl`)||this.updateHSL(),e.includes(`hwb`)||this.updateHWB(),e.includes(`lab`)||this.updateLAB(),e.includes(`lch`)||this.updateLCH(),e.includes(`cmyk`)||this.updateCMYK()}updateRGB(){this.rgb={...U(this.hsl.H,this.hsl.S,this.hsl.L),A:this.hsl.A}}updateHSL(){this.hsl=lt(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateHWB(){this.hwb=gt(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateLAB(){this.lab={...ut(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateLCH(){this.lch={...mt(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateCMYK(){this.cmyk=yt(this.rgb.R,this.rgb.G,this.rgb.B)}updateRGBFromHWB(){this.rgb={..._t(this.hwb.H,this.hwb.W,this.hwb.B),A:this.rgb.A}}updateRGBFromLCH(){this.rgb={...ht(this.lch.L,this.lch.C,this.lch.H),A:this.rgb.A}}updateRGBFromCMYK(){this.rgb={...vt(this.cmyk.C,this.cmyk.M,this.cmyk.Y,this.cmyk.K),A:this.rgb.A}}updateRGBFromLAB(){this.rgb={...dt(this.lab.L,this.lab.a,this.lab.b),A:this.rgb.A}}updateLCHFromLAB(){this.lch={...ft(this.lab.L,this.lab.a,this.lab.b),A:this.lab.A}}updateLABromLCH(){this.lab={...pt(this.lch.L,this.lch.C,this.lch.H),A:this.lch.A}}setOptions(e={}){return this._options={...this._options,...e},this}setR(e){this.rgb.R=B(e,0,C),this.update(`rgb`)}setG(e){return this.rgb.G=B(e,0,C),this.update(`rgb`),this}setB(e){return this.rgb.B=B(e,0,C),this.update(`rgb`),this}setH(e){return this.hsl.H=V(e),this.update(`hsl`),this}setS(e){return this.hsl.S=B(e,0,w),this.update(`hsl`),this}setL(e){return this.hsl.L=B(e,0,w),this.update(`hsl`),this}setWhiteness(e){return this.hwb.W=B(e,0,w),this.updateRGBFromHWB(),this.update(`rgb`,`hwb`),this}setBlackness(e){return this.hwb.B=B(e,0,w),this.updateRGBFromHWB(),this.update(`rgb`,`hwb`),this}setCIEL(e){return this.lab.L=B(e,0,w),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setCIEa(e){return this.lab.a=B(e,-125,T),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setCIEb(e){return this.lab.b=B(e,-125,T),this.updateRGBFromLAB(),this.updateLCHFromLAB(),this.update(`rgb`,`lab`,`lch`),this}setLCHL(e){return this.lch.L=B(e,0,w),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setLCHC(e){return this.lch.C=B(e,0,E),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setLCHH(e){return this.lch.H=V(e),this.updateRGBFromLCH(),this.updateLABromLCH(),this.update(`rgb`,`lab`,`lch`),this}setA(e){let t=B(e,0,1);return this.rgb.A=t,this.hsl.A=t,this.hwb.A=t,this.lab.A=t,this.lch.A=t,this.cmyk.A=t,this}setC(e){return this.cmyk.C=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setM(e){return this.cmyk.M=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setY(e){return this.cmyk.Y=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}setK(e){return this.cmyk.K=B(e,0,100),this.updateRGBFromCMYK(),this.update(`cmyk`),this}get options(){return this._options}get R(){return z(this.rgb.R,this.options.decimals)}get G(){return z(this.rgb.G,this.options.decimals)}get B(){return z(this.rgb.B,this.options.decimals)}get H(){return z(this.hsl.H,this.options.decimals)}get S(){return z(this.hsl.S,this.options.decimals)}get L(){return z(this.hsl.L,this.options.decimals)}get Whiteness(){return z(this.hwb.W,this.options.decimals)}get Blackness(){return z(this.hwb.B,this.options.decimals)}get CIEL(){return z(this.lab.L,this.options.decimals)}get CIEa(){return z(this.lab.a,this.options.decimals)}get CIEb(){return z(this.lab.b,this.options.decimals)}get LCHL(){return z(this.lch.L,this.options.decimals)}get LCHC(){return z(this.lch.C,this.options.decimals)}get LCHH(){return z(this.lch.H,this.options.decimals)}get A(){return z(this.hsl.A,this.options.decimals)}get C(){return z(this.cmyk.C,this.options.decimals)}get M(){return z(this.cmyk.M,this.options.decimals)}get Y(){return z(this.cmyk.Y,this.options.decimals)}get K(){return z(this.cmyk.K,this.options.decimals)}get HEXObject(){return Y.HEX(this.rgb)}get HEXAObject(){return Y.HEXA(this.rgb)}get RGBObject(){return{R:this.R,G:this.G,B:this.B}}get RGBAObject(){return{...this.RGBObject,A:this.A}}get HSLObject(){return{H:this.H,S:this.S,L:this.L}}get HSLAObject(){return{...this.HSLObject,A:this.A}}get HWBObject(){return{H:this.H,W:this.Whiteness,B:this.Blackness}}get HWBAObject(){return{...this.HWBObject,A:this.A}}get CIELabObject(){return{L:this.CIEL,a:this.CIEa,b:this.CIEb}}get CIELabAObject(){return{...this.CIELabObject,A:this.A}}get LCHObject(){return{L:this.LCHL,C:this.LCHC,H:this.LCHH}}get LCHAObject(){return{...this.LCHObject,A:this.A}}get CMYKObject(){return{C:this.C,M:this.M,Y:this.Y,K:this.K}}get CMYKAObject(){return{...this.CMYKObject,A:this.A}}get HEX(){return J.HEX({R:this.R,G:this.G,B:this.B})}get HEXA(){return J.HEX({R:this.R,G:this.G,B:this.B,A:this.A*C})}get RGB(){return J.RGB({R:this.R,G:this.G,B:this.B},this.options)}get RGBA(){return J.RGB({R:this.R,G:this.G,B:this.B,A:this.A},this.options)}get HSL(){return J.HSL({H:this.H,S:this.S,L:this.L},this.options)}get HSLA(){return J.HSL({H:this.H,S:this.S,L:this.L,A:this.A},this.options)}get HWB(){return J.HWB({H:this.H,W:this.Whiteness,B:this.Blackness},this.options)}get HWBA(){return J.HWB({H:this.H,W:this.Whiteness,B:this.Blackness,A:this.A},this.options)}get CIELab(){return J.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb},this.options)}get CIELabA(){return J.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb,A:this.A},this.options)}get LCH(){return J.LCH({L:this.LCHL,C:this.LCHC,H:this.LCHH},this.options)}get LCHA(){return J.LCH({L:this.LCHL,C:this.LCHC,H:this.LCHH,A:this.A},this.options)}get CMYK(){return J.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K},this.options)}get CMYKA(){return J.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K,A:this.A},this.options)}static toHEXObject(e){return X(e,G(e),0,Y.HEX)}static toHEX(t){return J.HEX(e.toHEXObject(t))}static toHEXAObject(e){return X(e,G(e),0,Y.HEXA)}static toHEXA(t){return J.HEX(e.toHEXAObject(t))}static toRGBObject(e,t={}){return X(e,G(e),t.decimals,Y.RGB)}static toRGB(t,n={}){let r=e.toRGBObject(t,n),i=q(n,t);return J.RGB(r,i)}static toRGBAObject(e,t={}){return X(e,G(e),t.decimals,Y.RGBA)}static toRGBA(t,n={}){let r=e.toRGBAObject(t,n),i=q(n,t);return J.RGB(r,i)}static toHSLObject(e,t={}){return X(e,G(e),t.decimals,Y.HSL)}static toHSL(t,n={}){let r=e.toHSLObject(t,n),i=q(n,t);return J.HSL(r,i)}static toHSLAObject(e,t={}){return X(e,G(e),t.decimals,Y.HSLA)}static toHSLA(t,n={}){let r=e.toHSLAObject(t,n),i=q(n,t);return J.HSL(r,i)}static toHWBObject(e,t={}){return X(e,G(e),t.decimals,Y.HWB)}static toHWB(t,n={}){let r=e.toHWBObject(t,n),i=q(n,t);return J.HWB(r,i)}static toHWBAObject(e,t={}){return X(e,G(e),t.decimals,Y.HWBA)}static toHWBA(t,n={}){let r=e.toHWBAObject(t,n),i=q(n,t);return J.HWB(r,i)}static toCIELabObject(e,t={}){return X(e,G(e),t.decimals,Y.CIELab)}static toCIELab(t,n={}){let r=e.toCIELabObject(t,n),i=q(n,t);return J.CIELab(r,i)}static toCIELabAObject(e,t={}){return X(e,G(e),t.decimals,Y.CIELabA)}static toCIELabA(t,n={}){let r=e.toCIELabAObject(t,n),i=q(n,t);return J.CIELab(r,i)}static toLCHObject(e,t={}){return X(e,G(e),t.decimals,Y.LCH)}static toLCH(t,n={}){let r=e.toLCHObject(t,n),i=q(n,t);return J.LCH(r,i)}static toLCHAObject(e,t={}){return X(e,G(e),t.decimals,Y.LCHA)}static toLCHA(t,n={}){let r=e.toLCHAObject(t,n),i=q(n,t);return J.LCH(r,i)}static toCMYKObject(e,t={}){return X(e,G(e),t.decimals,Y.CMYK)}static toCMYK(t,n={}){let r=e.toCMYKObject(t,n),i=q(n,t);return J.CMYK(r,i)}static toCMYKAObject(e,t={}){return X(e,G(e),t.decimals,Y.CMYKA)}static toCMYKA(t,n={}){let r=e.toCMYKAObject(t,n),i=q(n,t);return J.CMYK(r,i)}static getBlendHEXObject(e,t,n=5){return Xt(e,t,n,0,Y.HEX)}static getBlendHEX(t,n,r=5){return e.getBlendHEXObject(t,n,r).map((e=>J.HEX(e)))}static getBlendHEXAObject(e,t,n=5){return Xt(e,t,n,0,Y.HEXA)}static getBlendHEXA(t,n,r=5){return e.getBlendHEXAObject(t,n,r).map((e=>J.HEX(e)))}static getBlendRGBObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGB})}static getBlendRGB(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGB,cssFunction:J.RGB})}static getBlendRGBAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGBA})}static getBlendRGBA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.RGBA,cssFunction:J.RGB})}static getBlendHSLObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSL})}static getBlendHSL(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSL,cssFunction:J.HSL})}static getBlendHSLAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSLA})}static getBlendHSLA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HSLA,cssFunction:J.HSL})}static getBlendHWBObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWB})}static getBlendHWB(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWB,cssFunction:J.HWB})}static getBlendHWBAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWBA})}static getBlendHWBA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.HWBA,cssFunction:J.HWB})}static getBlendCIELabObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELab})}static getBlendCIELab(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELab,cssFunction:J.CIELab})}static getBlendCIELabAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELabA})}static getBlendCIELabA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.CIELabA,cssFunction:J.CIELab})}static getBlendLCHObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCH})}static getBlendLCH(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCH,cssFunction:J.LCH})}static getBlendLCHAObject(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCHA})}static getBlendLCHA(e,t,n,r){return Z({from:e,to:t,thirdParameter:n,fourthParameter:r,translateFunction:Y.LCHA,cssFunction:J.LCH})}static getMixHEXObject(e,t=k.ADDITIVE){return Jt.HEX(e,t,!1)}static getMixHEX(e,t=k.ADDITIVE){return Jt.HEX(e,t,!0)}static getMixHEXAObject(e,t=k.ADDITIVE){return Jt.HEXA(e,t,!1)}static getMixHEXA(e,t=k.ADDITIVE){return Jt.HEXA(e,t,!0)}static getMixRGBObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGB,css:!1})}static getMixRGB(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGB,css:!0})}static getMixRGBAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGBA,css:!1})}static getMixRGBA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.RGBA,css:!0})}static getMixHSLObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSL,css:!1})}static getMixHSL(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSL,css:!0})}static getMixHSLAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSLA,css:!1})}static getMixHSLA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HSLA,css:!0})}static getMixHWBObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWB,css:!1})}static getMixHWB(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWB,css:!0})}static getMixHWBAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWBA,css:!1})}static getMixHWBA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.HWBA,css:!0})}static getMixCIELabObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELab,css:!1})}static getMixCIELab(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELab,css:!0})}static getMixCIELabAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELabA,css:!1})}static getMixCIELabA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.CIELabA,css:!0})}static getMixLCHObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCH,css:!1})}static getMixLCH(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCH,css:!0})}static getMixLCHAObject(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCHA,css:!1})}static getMixLCHA(e,t,n){return Q({colors:e,secondParameter:t,thirdParameter:n,colorMixerFunction:$.LCHA,css:!0})}static getShades(e,t,n){return typeof t==`number`?Kt(e,t,!0,q(n||{},e)):Kt(e,5,!0,q(t||{},e))}static getTints(e,t,n){return typeof t==`number`?Kt(e,t,!1,q(n||{},e)):Kt(e,5,!1,q(t||{},e))}static getHarmony(e,t,n,r){return`${t}`in O?Zt(t,e,tt(n)?n:k.ADDITIVE,q(tt(n)?r||{}:n||{},e)):tt(t)?Zt(O.COMPLEMENTARY,e,t,q(n||{},e)):Zt(O.COMPLEMENTARY,e,k.ADDITIVE,q(t||{},e))}},$t={slots:{root:`data-[disabled]:opacity-75`,picker:`flex gap-4`,selector:`rounded-md touch-none`,selectorBackground:`w-full h-full relative rounded-md`,selectorThumb:`-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-white rounded-full cursor-pointer data-[disabled]:cursor-not-allowed`,track:`w-[8px] relative rounded-md touch-none`,trackThumb:`absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-white cursor-pointer data-[disabled]:cursor-not-allowed`},variants:{size:{xs:{selector:`w-38 h-38`,track:`h-38`},sm:{selector:`w-40 h-40`,track:`h-40`},md:{selector:`w-42 h-42`,track:`h-42`},lg:{selector:`w-44 h-44`,track:`h-44`},xl:{selector:`w-46 h-46`,track:`h-46`}}},compoundVariants:[],defaultVariants:{size:`md`}},en=[`data-disabled`],tn=[`data-disabled`];function nn(e){let t=e.S*(e.L<50?e.L:100-e.L),n=e.L+t/100;return{h:e.H,s:e.L===0?e.S:2*t/n,v:n}}function rn(e){let t=(200-e.s)*e.v/100;return{H:e.h,S:t===0||t===200?0:Math.round(e.s*e.v/(t<=100?t:200-t)),L:t/2}}var an=Ce({__name:`UColorPicker`,props:g({as:{type:null,required:!1},throttle:{type:Number,required:!1,default:50},disabled:{type:Boolean,required:!1},defaultValue:{type:String,required:!1,default:`#FFFFFF`},format:{type:String,required:!1,default:`hex`},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=b(`colorPicker`,t),r=f(t,`modelValue`,{type:String}),a=S(),u=o(()=>oe({extend:$t,...a.ui?.colorPicker||{}})({size:n.size})),p=o({get(){try{return nn(new Qt(r.value||n.defaultValue).HSLObject)}catch{return{h:0,s:0,v:100}}},set(e){let t=new Qt(rn(e),{labUnit:`percent`,cmykUnit:`percent`,cmykFunction:`cmyk`});switch(n.format){case`rgb`:r.value=t.RGB;break;case`hsl`:r.value=t.HSL;break;case`cmyk`:r.value=t.CMYK;break;case`lab`:r.value=t.CIELab;break;default:r.value=t.HEX}}});function ee(e,t,n=`both`,r={x:0,y:0},a){let o=l(r),s=l(),c=he(e),u=he(t);function d(e){if(i(a))return e.preventDefault();let n=i(t);s.value={x:e.clientX-(n?e.clientX-u.left.value+n.scrollLeft:c.left.value),y:e.clientY-(n?e.clientY-u.top.value+n.scrollTop:c.top.value)},f(e)}function f(e){if(!s.value)return;let r=i(t),{x:a,y:c}=o.value;r&&(n===`x`||n===`both`)&&(a=Math.min(Math.max(0,(e.clientX-s.value.x)/r.scrollWidth*100),100)),r&&(n===`y`||n===`both`)&&(c=Math.min(Math.max(0,(e.clientY-s.value.y)/r.scrollHeight*100),100)),o.value={x:a,y:c}}function p(){s.value&&=void 0}return y&&(me(t,`pointerdown`,d),me(window,`pointermove`,f),me(window,`pointerup`,p)),{position:o}}function g(e,t=`left`){return t===`right`?e*100/360:e/100*360}function te(e){return 100-e}let ie=l(null),ae=l(null),se=l(null),ce=l(null),le=o(()=>n.disabled),{position:ue}=ee(ae,ie,`both`,{x:p.value.s,y:te(p.value.v)},le),{position:de}=ee(ce,se,`y`,{x:0,y:g(p.value.h,`right`)},le),{pause:fe,resume:pe}=re(p,e=>{ue.value={x:e.s,y:te(e.v)},de.value={x:0,y:g(e.h,`right`)}});x([ue,de],()=>{fe(),p.value={h:g(de.value.y),s:ue.value.x,v:te(ue.value.y)},m(pe)},{throttle:()=>n.throttle});let ge=o(()=>new Qt(rn({h:g(de.value.y),s:100,v:100})).HEX),_e=o(()=>({backgroundColor:ge.value})),ve=o(()=>({backgroundColor:new Qt(r.value||n.defaultValue).HEX,left:`${ue.value.x}%`,top:`${ue.value.y}%`})),ye=o(()=>({backgroundColor:ge.value,top:`${de.value.y}%`}));return(t,r)=>(e(),c(d(ne),{as:d(n).as,"data-slot":`root`,class:v(u.value.root({class:[d(n).ui?.root,d(n).class]})),"data-disabled":le.value?!0:void 0},{default:_(()=>[s(`div`,{"data-slot":`picker`,class:v(u.value.picker({class:d(n).ui?.picker}))},[s(`div`,{ref_key:`selectorRef`,ref:ie,"data-slot":`selector`,class:v(u.value.selector({class:d(n).ui?.selector})),style:h(_e.value)},[s(`div`,{"data-slot":`selectorBackground`,class:v(u.value.selectorBackground({class:d(n).ui?.selectorBackground})),"data-color-picker-background":``},[s(`div`,{ref_key:`selectorThumbRef`,ref:ae,"data-slot":`selectorThumb`,class:v(u.value.selectorThumb({class:d(n).ui?.selectorThumb})),style:h(ve.value),"data-disabled":le.value?!0:void 0},null,14,en)],2)],6),s(`div`,{ref_key:`trackRef`,ref:se,"data-slot":`track`,class:v(u.value.track({class:d(n).ui?.track})),"data-color-picker-track":``},[s(`div`,{ref_key:`trackThumbRef`,ref:ce,"data-slot":`trackThumb`,class:v(u.value.trackThumb({class:d(n).ui?.trackThumb})),style:h(ye.value),"data-disabled":le.value?!0:void 0},null,14,tn)],2)],2)]),_:1},8,[`as`,`class`,`data-disabled`]))}},[[`__scopeId`,`data-v-33dd0d17`]]);function on(e){return new URL(globalThis.location.href)}var sn={class:`grid min-h-0 flex-1 xl:grid-cols-[23rem_minmax(0,1fr)]`},cn={class:`flex min-h-0 flex-col border-r border-default`},ln={class:`border-b border-default px-5 py-3`},un={key:0,class:`space-y-7 p-5`},dn={class:`mt-4 grid grid-cols-[7rem_minmax(0,1fr)] items-start gap-4`},fn={key:1,class:`space-y-5 p-5`},pn={class:`mt-2 flex items-start gap-2`},mn={class:`min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted`},hn={class:`mt-2 flex items-start gap-2`},gn={class:`min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted`},_n={class:`relative min-h-[560px]`},vn={key:1,class:`grid h-full min-h-[560px] place-items-center px-6 text-center`},yn=r({__name:`services`,async setup(r){let i,f;be({layout:`dashboard`}),se({title:`地图服务管理`});let m=Ee(),h=Se(),g=on(),{baseLayer:v,overlayLayers:ne}=we(),{data:y,refresh:re}=([i,f]=ee(()=>ce(`/api/map-service/status`,`$q9uYHAZagQ`)),i=await i,f(),i),b=l(),x=l(y.value?.color||`#2980b9`),oe=l(y.value?.opacity??88),S=l(!1),me=l(!1),he=l(Date.now()),Ce=l(`settings`),C=[{label:`参数设置`,value:`settings`,icon:`i-lucide-sliders-horizontal`},{label:`服务信息`,value:`info`,icon:`i-lucide-radio-tower`}];te(async()=>{await m.refresh(),w()});function w(){let e=y.value?.file?.filename;b.value=e&&m.files.value.some(t=>t.filename===e&&t.summary?.state===`completed`)?e:void 0}let T=o(()=>`${g.origin}/services/wms?SERVICE=WMS&REQUEST=GetCapabilities`),E=o(()=>`${g.origin}/services/wmts?SERVICE=WMTS&REQUEST=GetCapabilities`),D=o(()=>`/services/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=uomtiles&STYLE=default&TILEMATRIXSET=WebMercatorQuad&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/png`);async function O(e){if(!/\.(uomtiles|mbtiles|pmtiles)$/i.test(e.name)){h.add({title:`不支持的地图文件`,description:`请选择 .uomtiles、.mbtiles 或 .pmtiles。`,color:`error`});return}S.value=!0;try{await ie(`/api/map-service/file`,{method:`POST`,headers:{"x-map-service-filename":encodeURIComponent(e.name),"content-type":`application/octet-stream`},body:e}),await re(),b.value=void 0,he.value=Date.now()}catch(e){h.add({title:`无法打开地图文件`,description:e?.data?.message||e?.message,color:`error`})}finally{S.value=!1}}async function k(e){if(!(e&&!y.value?.file)){me.value=!0;try{let t=y.value?.enabled;await ie(`/api/map-service/config`,{method:`POST`,body:{enabled:e,color:x.value,opacity:oe.value}}),await re(),he.value=Date.now(),h.add({title:e?t?`地图服务设置已应用`:`地图服务已启用`:`地图服务已停用`,color:e?`success`:`neutral`,icon:e?`i-lucide-radio-tower`:`i-lucide-circle-stop`})}catch(e){h.add({title:`地图服务配置失败`,description:e?.data?.message||e?.message,color:`error`})}finally{me.value=!1}}}async function Ae(){if(b.value){S.value=!0;try{await ie(`/api/map-service/source`,{method:`POST`,body:{filename:b.value}}),await re(),w(),he.value=Date.now(),h.add({title:`服务文件已替换`,color:`success`,icon:`i-lucide-file-check-2`})}catch(e){h.add({title:`无法选择服务文件`,description:e?.data?.message||e?.message,color:`error`})}finally{S.value=!1}}}async function je(e,t){await navigator.clipboard.writeText(e),h.add({title:`${t} 地址已复制`,color:`success`,icon:`i-lucide-copy-check`})}return(r,i)=>{let o=fe,l=ae,f=de,ee=_e,h=ge,g=le,te=an,re=Te,ie=ke,se=ye,ce=ue,be=xe,Se=ve,we=Oe,Ee=De,w=pe;return e(),c(w,{id:`map-services`,class:`min-w-0`,ui:{body:`gap-0 overflow-hidden p-0 sm:gap-0 sm:p-0`}},{header:_(()=>[u(f,{title:`地图服务管理`},{right:_(()=>[u(o),u(l,{icon:d(y)?.enabled?`i-lucide-circle-stop`:`i-lucide-radio-tower`,label:d(y)?.enabled?`停用服务`:`启用服务`,color:d(y)?.enabled?`error`:`primary`,variant:d(y)?.enabled?`soft`:`solid`,disabled:!d(y)?.enabled&&!d(y)?.file,loading:d(me),onClick:i[0]||=e=>k(!d(y)?.enabled)},null,8,[`icon`,`label`,`color`,`variant`,`disabled`,`loading`])]),_:1})]),body:_(()=>[s(`div`,sn,[s(`aside`,cn,[s(`div`,ln,[u(ee,{modelValue:d(Ce),"onUpdate:modelValue":i[1]||=e=>t(Ce)?Ce.value=e:null,items:C,content:!1,size:`sm`,class:`w-full`},null,8,[`modelValue`])]),u(Se,{class:`min-h-0 flex-1`},{default:_(()=>[d(Ce)===`settings`?(e(),a(`div`,un,[s(`section`,null,[i[9]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`服务文件`,-1),u(h,{class:`mt-3`,accept:`.uomtiles,.mbtiles,.pmtiles`,title:`上传并替换服务文件`,"file-name":d(y)?.file?d(m).displayWorkspaceName(d(y).file.filename):void 0,pending:d(S),onSelect:O},null,8,[`file-name`,`pending`]),u(g,{modelValue:d(b),"onUpdate:modelValue":i[2]||=e=>t(b)?b.value=e:null,class:`mt-3 w-full`},null,8,[`modelValue`]),u(l,{class:`mt-2`,icon:`i-lucide-copy`,label:`使用此任务文件`,color:`neutral`,variant:`outline`,block:``,disabled:!d(b)||d(S),loading:d(S),onClick:Ae},null,8,[`disabled`,`loading`])]),s(`section`,null,[i[10]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`输出样式`,-1),s(`div`,dn,[u(te,{modelValue:d(x),"onUpdate:modelValue":i[3]||=e=>t(x)?x.value=e:null,size:`sm`},null,8,[`modelValue`]),u(ie,{label:`区域颜色`},{default:_(()=>[u(re,{modelValue:d(x),"onUpdate:modelValue":i[4]||=e=>t(x)?x.value=e:null,class:`w-full`},null,8,[`modelValue`])]),_:1})]),u(ie,{class:`mt-5`,label:`透明度 ${d(oe)}%`},{default:_(()=>[u(se,{modelValue:d(oe),"onUpdate:modelValue":i[5]||=e=>t(oe)?oe.value=e:null,min:0,max:100,step:1},null,8,[`modelValue`])]),_:1},8,[`label`]),d(y)?.enabled?(e(),c(l,{key:0,class:`mt-5`,icon:`i-lucide-check`,label:`应用设置`,block:``,loading:d(me),onClick:i[6]||=e=>k(!0)},null,8,[`loading`])):n(``,!0)])])):(e(),a(`div`,fn,[d(y)?.enabled?n(``,!0):(e(),c(ce,{key:0,color:`neutral`,icon:`i-lucide-info`,title:`服务尚未启用`})),s(`section`,null,[i[11]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`WMS 1.3.0`,-1),s(`div`,pn,[s(`code`,mn,p(d(T)),1),u(be,{text:`复制 WMS 地址`},{default:_(()=>[u(l,{icon:`i-lucide-copy`,color:`neutral`,variant:`ghost`,size:`sm`,"aria-label":`复制 WMS 地址`,onClick:i[7]||=e=>je(d(T),`WMS`)})]),_:1})])]),s(`section`,null,[i[12]||=s(`h2`,{class:`text-sm font-semibold text-highlighted`},`WMTS 1.0.0`,-1),s(`div`,hn,[s(`code`,gn,p(d(E)),1),u(be,{text:`复制 WMTS 地址`},{default:_(()=>[u(l,{icon:`i-lucide-copy`,color:`neutral`,variant:`ghost`,size:`sm`,"aria-label":`复制 WMTS 地址`,onClick:i[8]||=e=>je(d(E),`WMTS`)})]),_:1})])])]))]),_:1})]),s(`div`,_n,[d(y)?.enabled?(e(),c(we,{key:d(he),"tile-url":d(D),"base-map":d(v),"overlay-layers":d(ne),"min-zoom":0,"max-zoom":18,"map-min-zoom":3,"map-max-zoom":18,"initial-zoom":9,center:[116.4,39.9],"raster-opacity":1,"refresh-version":d(he)},null,8,[`tile-url`,`base-map`,`overlay-layers`,`refresh-version`])):(e(),a(`div`,vn,[u(Ee,{icon:`i-lucide-radio-tower`,title:`地图服务尚未启用`})]))])])]),_:1})}}});export{yn as default};
@@ -0,0 +1 @@
1
+ import{$t as e,At as t,Bn as n,F as r,G as i,H as a,Hn as o,I as s,It as c,Ln as l,Lt as u,M as d,N as f,Ot as p,P as m,Pn as h,S as g,U as _,Vn as v,Wn as y,_r as b,_t as x,bt as S,en as C,gr as w,gt as T,in as E,ln as D,on as O,pr as k,wt as A}from"./C97TfNgP.js";import{Jt as j,Yt as M,ot as ee}from"./CgMd2Y5s.js";import{_ as N,p as P}from"./DUBSg_Y2.js";import{D as F,J as I,S as L,_ as R,b as z,h as B,q as V,st as H,t as U,v as W,y as G}from"./P5kgsppB.js";import{o as K}from"./CQoH790U.js";import{m as te,y as ne}from"./BsG4RgIF.js";import{c as re,o as ie,s as ae}from"./CVfH720g.js";import{f as oe,h as q,l as se,p as ce,t as J}from"./DjVe4luM.js";import{t as le}from"./CVE291Pi.js";import{n as ue}from"./DWmS9_5P.js";function de(e){let t=h(!1);function n(){t.value=!0}function r(n){x(()=>{t.value=!1,e?.(n)})}return{isComposing:t,handleCompositionStart:n,handleCompositionEnd:r}}function fe(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function pe(e){let t=I(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=ne(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=Y(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function me(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Y(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=me(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var[X,he]=H(`TabsRoot`),ge=i({__name:`TabsRoot`,props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:`automatic`},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,{orientation:a,unmountOnHide:o,dir:s}=v(r),c=N(s);J();let d=q(r,`modelValue`,i,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),f=h(),p=l(new Set);return he({modelValue:d,changeModelValue:e=>{d.value=e},orientation:a,dir:c,unmountOnHide:o,activationMode:r.activationMode,baseId:P(void 0,`reka-tabs`),tabsList:f,contentIds:p,registerContent:e=>{p.value=new Set([...p.value,e])},unregisterContent:e=>{let t=new Set(p.value);t.delete(e),p.value=t}}),(e,n)=>(t(),m(y(F),{dir:y(c),"data-orientation":y(a),"as-child":e.asChild,as:e.as},{default:D(()=>[u(e.$slots,`default`,{modelValue:y(d)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function Z(e,t){return`${e}-trigger-${t}`}function Q(e,t){return`${e}-content-${t}`}var _e=i({__name:`TabsContent`,props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let n=e,{forwardRef:i}=J(),a=X(),o=d(()=>Z(a.baseId,n.value)),s=d(()=>Q(a.baseId,n.value)),c=d(()=>n.value===a.modelValue.value),l=h(c.value);return A(()=>{a.registerContent(n.value),requestAnimationFrame(()=>{l.value=!1})}),S(()=>{a.unregisterContent(n.value)}),(e,n)=>(t(),m(y(te),{present:e.forceMount||c.value,"force-mount":``},{default:D(({present:t})=>[_(y(F),{id:s.value,ref:y(i),"as-child":e.asChild,as:e.as,role:`tabpanel`,"data-state":c.value?`active`:`inactive`,"data-orientation":y(a).orientation.value,"aria-labelledby":o.value,hidden:!t,tabindex:`0`,style:w({animationDuration:l.value?`0s`:void 0})},{default:D(()=>[!y(a).unmountOnHide.value||t?u(e.$slots,`default`,{key:0}):r(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),ve=i({__name:`TabsIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:n}){let i=e,a=X();n({updateIndicatorStyle:l}),J();let o=se(),s=h({size:null,thickness:null,position:null}),c=h([]);E(()=>[a.modelValue.value,a?.dir.value],()=>{l()},{immediate:!0,flush:`post`}),O(()=>{c.value=Array.from(a.tabsList.value?.querySelectorAll(`[role="tab"]`)||[])}),oe(d(()=>[a.tabsList.value,...c.value]),l);function l(){let e=a.tabsList.value?.querySelector(`[role="tab"][data-state="active"]`);e&&(a.orientation.value===`horizontal`?s.value={size:e.offsetWidth,thickness:e.offsetHeight,position:e.offsetLeft}:s.value={size:e.offsetHeight,thickness:e.offsetWidth,position:e.offsetTop})}return(e,n)=>y(o)&&typeof s.value.size==`number`?(t(),m(y(F),T({key:0},i,{style:{"--reka-tabs-indicator-size":`${s.value.size}px`,"--reka-tabs-indicator-thickness":`${s.value.thickness}px`,"--reka-tabs-indicator-position":`${s.value.position}px`}}),{default:D(()=>[u(e.$slots,`default`)]),_:3},16,[`style`])):r(`v-if`,!0)}}),ye=i({__name:`TabsList`,props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{loop:n}=v(e),{forwardRef:r,currentElement:i}=J(),a=X();return a.tabsList=i,(e,i)=>(t(),m(y(re),{"as-child":``,orientation:y(a).orientation.value,dir:y(a).dir.value,loop:y(n)},{default:D(()=>[_(y(F),{ref:y(r),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":y(a).orientation.value},{default:D(()=>[u(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),be=i({__name:`TabsTrigger`,props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let n=e,{forwardRef:r}=J(),i=X(),a=d(()=>Z(i.baseId,n.value)),o=d(()=>i.contentIds.value.has(n.value)?Q(i.baseId,n.value):void 0),s=d(()=>n.value===i.modelValue.value);return(e,n)=>(t(),m(y(ae),{"as-child":``,focusable:!e.disabled,active:s.value},{default:D(()=>[_(y(F),{id:a.value,ref:y(r),role:`tab`,type:e.as===`button`?`button`:void 0,as:e.as,"as-child":e.asChild,"aria-selected":s.value?`true`:`false`,"aria-controls":o.value,"data-state":s.value?`active`:`inactive`,disabled:e.disabled,"data-disabled":e.disabled?``:void 0,"data-orientation":y(i).orientation.value,onMousedown:n[0]||=M(t=>{!e.disabled&&t.ctrlKey===!1?y(i).changeModelValue(e.value):t.preventDefault()},[`left`]),onKeydown:n[1]||=j(t=>y(i).changeModelValue(e.value),[`enter`,`space`]),onFocus:n[2]||=()=>{let t=y(i).activationMode!==`manual`;!s.value&&!e.disabled&&t&&y(i).changeModelValue(e.value)}},{default:D(()=>[u(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as`,`as-child`,`aria-selected`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`data-orientation`])]),_:3},8,[`focusable`,`active`]))}}),xe={slots:{root:`flex items-center gap-2`,list:`relative flex p-1 group`,indicator:`absolute transition-[translate,width] duration-200`,trigger:[`group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,label:`truncate`,trailingBadge:`shrink-0`,trailingBadgeSize:`sm`,content:`w-full rounded-md focus-visible:outline-3`},variants:{color:{primary:{content:`outline-primary/25`},secondary:{content:`outline-secondary/25`},success:{content:`outline-success/25`},info:{content:`outline-info/25`},warning:{content:`outline-warning/25`},error:{content:`outline-error/25`},neutral:{content:`outline-inverted/25`}},variant:{pill:{list:`bg-elevated rounded-lg`,trigger:[`grow`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:inset-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:rounded-md in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:shadow-xs in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:-z-10 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:isolate`],indicator:`rounded-md shadow-xs`},link:{list:`border-default`,indicator:`rounded-full`,trigger:`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:rounded-full`}},orientation:{horizontal:{root:`flex-col`,list:`w-full`,indicator:`left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)`,trigger:`justify-center`},vertical:{list:`flex-col`,indicator:`top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)`}},size:{xs:{trigger:`px-2 py-1 text-xs gap-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`},sm:{trigger:`px-2.5 py-1.5 text-xs gap-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`},md:{trigger:`px-3 py-1.5 text-sm gap-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`},lg:{trigger:`px-3 py-2 text-sm gap-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`},xl:{trigger:`px-3 py-2 text-base gap-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`}}},compoundVariants:[{orientation:`horizontal`,variant:`pill`,class:{indicator:`inset-y-1`}},{orientation:`horizontal`,variant:`link`,class:{list:`border-b -mb-px`,indicator:`-bottom-px h-px`,trigger:`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-x-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-bottom-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:h-px`}},{orientation:`vertical`,variant:`pill`,class:{indicator:`inset-x-1`,list:`items-center`,trigger:`w-full justify-center`}},{orientation:`vertical`,variant:`link`,class:{list:`border-s -ms-px`,indicator:`-start-px w-px`,trigger:`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-y-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-start-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:w-px`}},{color:`primary`,variant:`pill`,class:{indicator:`bg-primary`,trigger:[`data-[state=active]:text-inverted outline-primary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-primary`]}},{color:`secondary`,variant:`pill`,class:{indicator:`bg-secondary`,trigger:[`data-[state=active]:text-inverted outline-secondary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-secondary`]}},{color:`success`,variant:`pill`,class:{indicator:`bg-success`,trigger:[`data-[state=active]:text-inverted outline-success/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-success`]}},{color:`info`,variant:`pill`,class:{indicator:`bg-info`,trigger:[`data-[state=active]:text-inverted outline-info/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-info`]}},{color:`warning`,variant:`pill`,class:{indicator:`bg-warning`,trigger:[`data-[state=active]:text-inverted outline-warning/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-warning`]}},{color:`error`,variant:`pill`,class:{indicator:`bg-error`,trigger:[`data-[state=active]:text-inverted outline-error/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-error`]}},{color:`neutral`,variant:`pill`,class:{indicator:`bg-inverted`,trigger:[`data-[state=active]:text-inverted outline-inverted/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-inverted`]}},{color:`primary`,variant:`link`,class:{indicator:`bg-primary`,trigger:[`data-[state=active]:text-primary outline-primary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-primary`]}},{color:`secondary`,variant:`link`,class:{indicator:`bg-secondary`,trigger:[`data-[state=active]:text-secondary outline-secondary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-secondary`]}},{color:`success`,variant:`link`,class:{indicator:`bg-success`,trigger:[`data-[state=active]:text-success outline-success/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-success`]}},{color:`info`,variant:`link`,class:{indicator:`bg-info`,trigger:[`data-[state=active]:text-info outline-info/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-info`]}},{color:`warning`,variant:`link`,class:{indicator:`bg-warning`,trigger:[`data-[state=active]:text-warning outline-warning/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-warning`]}},{color:`error`,variant:`link`,class:{indicator:`bg-error`,trigger:[`data-[state=active]:text-error outline-error/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-error`]}},{color:`neutral`,variant:`link`,class:{indicator:`bg-inverted`,trigger:[`data-[state=active]:text-highlighted outline-inverted/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-inverted`]}}],defaultVariants:{color:`primary`,variant:`pill`,size:`md`}},Se={__name:`UTabs`,props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},content:{type:Boolean,required:!1,default:!0},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultValue:{type:[String,Number],required:!1,default:`0`},modelValue:{type:[String,Number],required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:modelValue`],setup(n,{expose:i,emit:o}){let l=n,f=o,p=e(),v=z(`tabs`,l),x=K(),S=G(V(v,`as`,`unmountOnHide`),f),C=d(()=>W({extend:xe,...x.ui?.tabs||{}})({color:v.color,variant:v.variant,size:v.size,orientation:v.orientation})),w=h([]);function E(e,t){w.value[e]=t}return i({triggersRef:w}),(e,n)=>(t(),m(y(ge),T(y(S),{"model-value":y(v).modelValue,"default-value":y(v).defaultValue,orientation:y(v).orientation,"activation-mode":y(v).activationMode,"data-slot":`root`,class:C.value.root({class:[y(v).ui?.root,y(v).class]})}),{default:D(()=>[_(y(ye),{"data-slot":`list`,class:k(C.value.list({class:y(v).ui?.list}))},{default:D(()=>[_(y(ve),{"data-slot":`indicator`,class:k(C.value.indicator({class:y(v).ui?.indicator}))},null,8,[`class`]),u(e.$slots,`list-leading`),(t(!0),s(g,null,c(y(v).items,(n,i)=>(t(),m(y(be),{key:y(L)(n,y(v).valueKey)??i,ref_for:!0,ref:e=>E(i,e),value:y(L)(n,y(v).valueKey)??String(i),disabled:n.disabled,"data-slot":`trigger`,class:k(C.value.trigger({class:[y(v).ui?.trigger,n.ui?.trigger]}))},{default:D(()=>[u(e.$slots,`leading`,{item:n,index:i,ui:C.value},()=>[n.icon?(t(),m(R,{key:0,name:n.icon,"data-slot":`leadingIcon`,class:k(C.value.leadingIcon({class:[y(v).ui?.leadingIcon,n.ui?.leadingIcon]}))},null,8,[`name`,`class`])):n.avatar?(t(),m(B,T({key:1,size:n.ui?.leadingAvatarSize||y(v).ui?.leadingAvatarSize||C.value.leadingAvatarSize()},{ref_for:!0},n.avatar,{"data-slot":`leadingAvatar`,class:C.value.leadingAvatar({class:[y(v).ui?.leadingAvatar,n.ui?.leadingAvatar]})}),null,16,[`size`,`class`])):r(``,!0)]),y(L)(n,y(v).labelKey)||p.default?(t(),s(`span`,{key:0,"data-slot":`label`,class:k(C.value.label({class:[y(v).ui?.label,n.ui?.label]}))},[u(e.$slots,`default`,{item:n,index:i},()=>[a(b(y(L)(n,y(v).labelKey)),1)])],2)):r(``,!0),u(e.$slots,`trailing`,{item:n,index:i,ui:C.value},()=>[n.badge||n.badge===0?(t(),m(ie,T({key:0,color:`neutral`,variant:`outline`,size:n.ui?.trailingBadgeSize||y(v).ui?.trailingBadgeSize||C.value.trailingBadgeSize()},{ref_for:!0},typeof n.badge==`string`||typeof n.badge==`number`?{label:n.badge}:n.badge,{"data-slot":`trailingBadge`,class:C.value.trailingBadge({class:[y(v).ui?.trailingBadge,n.ui?.trailingBadge]})}),null,16,[`size`,`class`])):r(``,!0)])]),_:2},1032,[`value`,`disabled`,`class`]))),128)),u(e.$slots,`list-trailing`)]),_:3},8,[`class`]),y(v).content?(t(!0),s(g,{key:0},c(y(v).items,(n,r)=>(t(),m(y(_e),{key:y(L)(n,y(v).valueKey)??r,value:y(L)(n,y(v).valueKey)??String(r),"data-slot":`content`,class:k(C.value.content({class:[y(v).ui?.content,n.ui?.content,n.class]}))},{default:D(()=>[u(e.$slots,n.slot||`content`,{item:n,index:r,ui:C.value},()=>[a(b(n.content),1)])]),_:2},1032,[`value`,`class`]))),128)):r(``,!0)]),_:3},16,[`model-value`,`default-value`,`orientation`,`activation-mode`,`class`]))}},Ce=[`onKeydown`],$=[`accept`],we={class:`grid size-10 shrink-0 place-items-center bg-muted text-muted group-hover:text-default`},Te={class:`min-w-0 flex-1`},Ee={class:`truncate text-sm font-medium text-highlighted`},De={key:0,class:`mt-1 text-xs text-muted`},Oe=Object.assign(i({__name:`FileDropZone`,props:{accept:{},title:{},description:{},fileName:{},pending:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:n}){let i=n,a=C(`input`),o=h(!1);function c(){!a.value||e.pending||(a.value.value=``,a.value.click())}function l(e){let t=e.target.files?.[0];t&&i(`select`,t)}function u(e){o.value=!1;let t=e.dataTransfer?.files[0];t&&i(`select`,t)}return(n,i)=>{let d=R,p=U;return t(),s(`div`,{class:k([`group flex min-h-28 cursor-pointer items-center gap-4 border border-dashed px-4 py-4 transition-colors focus-within:outline-2 focus-within:outline-primary`,y(o)?`border-primary bg-primary/5`:`border-default hover:border-accented hover:bg-elevated/60`]),role:`button`,tabindex:`0`,onClick:c,onKeydown:[j(c,[`enter`]),j(M(c,[`prevent`]),[`space`])],onDragenter:i[0]||=M(e=>o.value=!0,[`prevent`]),onDragover:i[1]||=M(e=>o.value=!0,[`prevent`]),onDragleave:i[2]||=M(e=>o.value=!1,[`prevent`]),onDrop:M(u,[`prevent`])},[f(`input`,{ref_key:`input`,ref:a,type:`file`,accept:e.accept,class:`sr-only`,onChange:l},null,40,$),f(`span`,we,[_(d,{name:e.pending?`i-lucide-loader-circle`:e.fileName?`i-lucide-file-check-2`:`i-lucide-file-up`,class:k([`size-5`,e.pending?`animate-spin`:``])},null,8,[`name`,`class`])]),f(`div`,Te,[f(`p`,Ee,b(e.fileName||e.title),1),e.pending||e.fileName||e.description?(t(),s(`p`,De,b(e.pending?`正在读取文件`:e.fileName?`点击或拖入文件以替换`:e.description),1)):r(``,!0)]),_(p,{type:`button`,icon:`i-lucide-folder-open`,label:`选择文件`,color:`neutral`,variant:`outline`,loading:e.pending,tabindex:`-1`},null,8,[`loading`])],42,Ce)}}}),{__name:`FileDropZone`});function ke(e,t={}){let{arrivedState:n}=ce(e);return{style:d(()=>{let r=o(e),i=o(t.orientation)??`vertical`,[a,s]=i===`horizontal`?[`left`,`right`]:[`top`,`bottom`],c=!n[a],l=!n[s];if(!c&&!l||!(r&&(i===`horizontal`?r.scrollWidth>r.clientWidth:r.scrollHeight>r.clientHeight)))return;let u=`${o(t.size)??24}px`,d=i===`horizontal`?`90deg`:`180deg`;return c&&l?{maskImage:`linear-gradient(${d}, transparent, #000 ${u}, #000 calc(100% - ${u}), transparent)`}:c?{maskImage:`linear-gradient(${d}, transparent, #000 ${u})`}:{maskImage:`linear-gradient(${d}, #000, #000 calc(100% - ${u}), transparent)`}}),isOverflowing:d(()=>{n.top,n.bottom,n.left,n.right;let r=o(e);return r?(o(t.orientation)??`vertical`)===`horizontal`?r.scrollWidth>r.clientWidth:r.scrollHeight>r.clientHeight:!1}),arrivedState:n}}var Ae={slots:{root:`relative outline-primary/25 focus-visible:outline-3`,viewport:`relative flex`,item:``},variants:{orientation:{vertical:{root:`overflow-y-auto overflow-x-hidden`,viewport:`flex-col`,item:``},horizontal:{root:`overflow-x-auto overflow-y-hidden`,viewport:`flex-row`,item:``}},externalScroll:{true:{root:`overflow-visible`}}}},je=[`data-index`],Me={__name:`UScrollArea`,props:{as:{type:null,required:!1},orientation:{type:null,required:!1,default:`vertical`},items:{type:Array,required:!1},virtualize:{type:[Boolean,Object],required:!1,default:!1},shadow:{type:[Boolean,Object],required:!1,default:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},emits:[`scroll`],setup(e,{expose:r,emit:i}){let a=e,o=i,l=z(`scrollArea`,a),{dir:f}=ue(),h=K(),_=d(()=>typeof l.virtualize==`object`&&!!l.virtualize.getScrollElement),v=d(()=>W({extend:Ae,...h.ui?.scrollArea||{}})({orientation:l.orientation,externalScroll:_.value})),b=C(`rootRef`),x=l.shadow?ke(d(()=>b.value?.$el),{orientation:()=>l.orientation??`vertical`,size:typeof l.shadow==`object`?l.shadow.size:void 0}).style:void 0,S=d(()=>f.value===`rtl`),T=d(()=>l.orientation===`horizontal`),O=d(()=>!T.value),A=()=>(_.value?j.value.getScrollElement?.():b.value?.$el)??null,j=n(()=>{let e=typeof l.virtualize==`boolean`?{}:l.virtualize;return ee(e,{estimateSize:100,overscan:12,gap:0,paddingStart:0,paddingEnd:0,scrollMargin:0})}),M=d(()=>{let e=j.value.lanes;return typeof e==`number`?e:void 0}),N=d(()=>typeof l.virtualize==`object`&&l.virtualize.skipMeasurement===!0),P=!!l.virtualize&&le({...j.value,get overscan(){return j.value.overscan},get gap(){return j.value.gap},get paddingStart(){return j.value.paddingStart},get paddingEnd(){return j.value.paddingEnd},get scrollMargin(){return j.value.scrollMargin},get lanes(){return M.value},get isRtl(){return S.value},get count(){return l.items?.length||0},getScrollElement:A,get horizontal(){return T.value},estimateSize:e=>{let t=j.value.estimateSize;return typeof t==`function`?t(e):t}}),I=d(()=>P?P.value.getVirtualItems():[]),L=d(()=>P?P.value.getTotalSize():0),R=d(()=>({position:`relative`,inlineSize:T.value?`${L.value}px`:`100%`,blockSize:O.value?`${L.value}px`:`100%`}));function B(e){let t=M.value!==void 0&&M.value>1,n=e.lane,r=j.value.gap??0,i=e.start-j.value.scrollMargin,a=t?`calc((100% - ${(M.value-1)*r}px) / ${M.value})`:`100%`,o=t&&n!==void 0?`calc(${n} * ((100% - ${(M.value-1)*r}px) / ${M.value} + ${r}px))`:0;return{position:`absolute`,insetBlockStart:T.value&&t?o:0,insetInlineStart:O.value&&t?o:0,blockSize:T.value?t?a:`100%`:void 0,inlineSize:O.value?t?a:`100%`:void 0,transform:T.value?`translateX(${S.value?-i:i}px)`:`translateY(${i}px)`}}let V=null,H=null;E(A,e=>{V?.disconnect(),V=null,!(!P||!e)&&(V=new ResizeObserver(()=>{H===null&&(H=requestAnimationFrame(()=>{H=null,P.value.measure()}))}),V.observe(e))},{immediate:!0}),p(()=>{H!==null&&(cancelAnimationFrame(H),H=null),V?.disconnect()});function U(e){if(e&&P&&!N.value){let t=e instanceof Element?e:e.$el;P.value.measureElement(t)}}E(()=>P?P.value.isScrolling:!1,e=>o(`scroll`,e));function G(e,t){return j.value.getItemKey?j.value.getItemKey(t):e&&typeof e==`object`&&`id`in e?e.id:t}return r({get $el(){return b.value?.$el},virtualizer:P||void 0}),(e,n)=>(t(),m(y(F),{ref_key:`rootRef`,ref:b,as:y(l).as,"data-slot":`root`,"data-orientation":y(l).orientation,class:k(v.value.root({class:[y(l).ui?.root,y(l).class]})),style:w(y(x))},{default:D(()=>[y(P)?(t(),s(`div`,{key:0,"data-slot":`viewport`,class:k(v.value.viewport({class:y(l).ui?.viewport})),style:w(R.value)},[(t(!0),s(g,null,c(I.value,n=>(t(),s(`div`,{key:String(n.key),ref_for:!0,ref:U,"data-index":n.index,"data-slot":`item`,class:k(v.value.item({class:y(l).ui?.item})),style:w(B(n))},[u(e.$slots,`default`,{item:y(l).items?.[n.index],index:n.index,virtualItem:n})],14,je))),128))],6)):(t(),s(`div`,{key:1,"data-slot":`viewport`,class:k(v.value.viewport({class:y(l).ui?.viewport}))},[y(l).items?(t(!0),s(g,{key:0},c(y(l).items,(n,r)=>(t(),s(`div`,{key:G(n,r),"data-slot":`item`,class:k(v.value.item({class:y(l).ui?.item}))},[u(e.$slots,`default`,{item:n,index:r})],2))),128)):u(e.$slots,`default`,{item:{},index:0},void 0,void 0,1)],2))]),_:3},8,[`as`,`data-orientation`,`class`,`style`]))}};export{pe as a,Y as i,Oe as n,fe as o,Se as r,de as s,Me as t};
@@ -0,0 +1 @@
1
+ import{At as e,G as t,H as n,I as r,Lt as i,M as a,Mn as o,Mt as s,N as c,P as l,Pn as u,U as d,V as f,Wn as p,_r as m,bt as h,ln as g,pr as _,wt as v}from"./C97TfNgP.js";import{nt as y}from"./CgMd2Y5s.js";import{D as b,_ as x,b as S,ct as C,f as w,t as T,v as E}from"./P5kgsppB.js";import{r as D}from"./3B2XYGg4.js";import{o as O,u as k}from"./CQoH790U.js";import{t as A}from"./D_SGIxNl.js";import{r as j}from"#entry";import{t as M}from"./DYM416m_.js";import{t as N}from"./CVIKhDCB.js";import{t as P}from"./Dv7uv3N72.js";import{t as F}from"./Cigra9s92.js";import{n as I,r as L,t as R}from"./hB2w6SMP2.js";var z={base:`relative`,variants:{size:{xs:``,sm:``,md:``,lg:``,xl:``},orientation:{horizontal:`inline-flex -space-x-px`,vertical:`flex flex-col -space-y-px`}}},B={__name:`UFieldGroup`,props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(t){let n=S(`fieldGroup`,t),r=O(),o=a(()=>E({extend:z,...r.ui?.fieldGroup||{}}));return s(w,a(()=>({orientation:n.orientation,size:n.size}))),(t,r)=>(e(),l(p(b),{as:p(n).as,"data-orientation":p(n).orientation,class:_(o.value({orientation:p(n).orientation,class:[p(n).ui?.base,p(n).class]}))},{default:g(()=>[i(t.$slots,`default`)]),_:3},8,[`as`,`data-orientation`,`class`]))}},V={class:`uom-grid min-h-screen lg:grid lg:grid-cols-[1.05fr_.95fr]`},H={class:`flex min-h-screen items-center justify-center px-5 py-12 sm:px-10`},U={class:`uom-enter w-full max-w-md`},W=[`src`],G={key:2},K=t({__name:`login`,setup(t){A({layout:!1}),D({title:`登录`,description:`登录 UOM适飞地图`});let i=j(),a=o({phone:``,captcha:``,smsCode:``}),s=R({phone:I().regex(/^1\d{10}$/,`请输入有效的 11 位手机号`),captcha:I().min(3,`请输入图形验证码`),smsCode:I().regex(/^\d{4,8}$/,`请输入短信验证码`)}),_=u(``),b=u(``),S=u(!1),w=u(!1),E=u(!1),O=u(0),z;h(()=>clearInterval(z)),v(K);async function K(){S.value=!0;try{let e=await C(`/api/auth/captcha`,{method:`POST`});_.value=e.challengeId,b.value=e.image,a.captcha=``}catch(e){i.add({title:`验证码获取失败`,description:e?.data?.message||e?.message,color:`error`,icon:`i-lucide-triangle-alert`})}finally{S.value=!1}}async function q(){if(!/^1\d{10}$/.test(a.phone)){i.add({title:`请输入有效的 11 位手机号`,color:`warning`,icon:`i-lucide-circle-alert`});return}if(!_.value)return K();if(!a.captcha){i.add({title:`请输入图形验证码`,color:`warning`,icon:`i-lucide-circle-alert`});return}w.value=!0;try{await C(`/api/auth/send-sms`,{method:`POST`,body:{phone:a.phone,challengeId:_.value,captcha:a.captcha}}),O.value=60,clearInterval(z),z=L(()=>{--O.value,O.value<=0&&clearInterval(z)},1e3),i.add({title:`短信验证码已发送`,color:`success`,icon:`i-lucide-message-square-check`})}catch(e){i.add({title:`短信发送失败`,description:e?.data?.message||e?.message,color:`error`,icon:`i-lucide-triangle-alert`}),await K()}finally{w.value=!1}}async function J(){if(!_.value){i.add({title:`请先获取图形验证码`,color:`warning`,icon:`i-lucide-image`});return}E.value=!0;try{await C(`/api/auth/login`,{method:`POST`,body:{challengeId:_.value,smsCode:a.smsCode}}),await k(`auth-status`),i.add({title:`UOM 登录成功`,description:`正在建立地图令牌会话`,color:`success`,icon:`i-lucide-badge-check`}),await y({name:`index`})}catch(e){i.add({title:`登录失败`,description:e?.data?.message||e?.message,color:`error`,icon:`i-lucide-triangle-alert`}),await K()}finally{E.value=!1}}return(t,i)=>{let o=N,u=P,h=x,_=T,v=B,y=F;return e(),r(`main`,V,[i[5]||=c(`section`,{class:`relative hidden overflow-hidden bg-[#1b2421] p-12 text-[#eaf3ed] lg:grid lg:place-items-center`},[c(`div`,{class:`flex items-center gap-4`},[c(`img`,{src:M,alt:``,class:`size-12 select-none`,draggable:`false`}),c(`h1`,{class:`text-3xl font-semibold`},`UOM适飞地图`)])],-1),c(`section`,H,[c(`div`,U,[i[4]||=f(`<div class="mb-10 lg:hidden"><div class="flex items-center gap-3 text-sm text-primary"><img src="`+M+`" alt="" class="size-8" draggable="false"> UOM适飞地图</div></div><div class="mb-8"><h2 class="text-3xl font-semibold text-highlighted">登录 UOM</h2></div>`,2),d(y,{schema:p(s),state:p(a),class:`space-y-5`,onSubmit:J},{default:g(()=>[d(u,{name:`phone`,label:`手机号`,required:``,class:`w-full`},{default:g(()=>[d(o,{modelValue:p(a).phone,"onUpdate:modelValue":i[0]||=e=>p(a).phone=e,type:`tel`,inputmode:`numeric`,placeholder:`请输入手机号`,icon:`i-lucide-smartphone`,size:`lg`,class:`w-full`},null,8,[`modelValue`])]),_:1}),d(u,{name:`captcha`,label:`图形验证码`,required:``,class:`w-full`},{default:g(()=>[d(v,{class:`w-full`},{default:g(()=>[d(o,{modelValue:p(a).captcha,"onUpdate:modelValue":i[1]||=e=>p(a).captcha=e,class:`min-w-0 flex-1`,placeholder:`请输入图形验证码`,icon:`i-lucide-scan-text`,size:`lg`},null,8,[`modelValue`]),d(_,{type:`button`,color:`neutral`,variant:`outline`,size:`lg`,disabled:p(S),class:`h-9 w-32 justify-center p-0 leading-none`,"aria-label":`刷新图形验证码`,onClick:K},{default:g(()=>[p(S)?(e(),l(h,{key:0,name:`i-lucide-loader-circle`,class:`size-5 animate-spin`})):p(b)?(e(),r(`img`,{key:1,src:p(b),alt:`图形验证码`,width:`96`,height:`36`,class:`h-9 w-24 object-fill`},null,8,W)):(e(),r(`span`,G,`重试`))]),_:1},8,[`disabled`])]),_:1})]),_:1}),d(u,{name:`smsCode`,label:`短信验证码`,required:``,class:`w-full`},{default:g(()=>[d(v,{class:`w-full`},{default:g(()=>[d(o,{modelValue:p(a).smsCode,"onUpdate:modelValue":i[2]||=e=>p(a).smsCode=e,type:`text`,inputmode:`numeric`,placeholder:`请输入短信验证码`,icon:`i-lucide-message-square`,size:`lg`,class:`min-w-0 flex-1`},null,8,[`modelValue`]),d(_,{type:`button`,color:`neutral`,variant:`outline`,size:`lg`,loading:p(w),disabled:p(w)||p(O)>0,class:`w-32 justify-center`,onClick:q},{default:g(()=>[n(m(p(O)>0?`${p(O)}s 后重发`:`发送短信`),1)]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1}),d(_,{type:`submit`,block:``,size:`lg`,loading:p(E),icon:`i-lucide-arrow-right`,trailing:``},{default:g(()=>[...i[3]||=[n(`进入工作台`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`schema`,`state`])])])])}}});export{K as default};