@esri/calcite-components 3.0.2 → 3.1.0-next.1

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 (403) hide show
  1. package/dist/calcite/25MWJDNB.js +4 -0
  2. package/dist/calcite/{KJOYBAI5.js → 27XEELXU.js} +2 -2
  3. package/dist/calcite/{G44GIY32.js → 2BZ4W6ME.js} +2 -2
  4. package/dist/calcite/{CFI5FI64.js → 2G2QU6H2.js} +2 -2
  5. package/dist/calcite/{QTFP7OUN.js → 2LJYW76W.js} +2 -2
  6. package/dist/calcite/{5V5PZFPV.js → 2P2X36XX.js} +1 -1
  7. package/dist/calcite/{2Q43JR4R.js → 2RJACA6W.js} +2 -2
  8. package/dist/calcite/{ZYEB6OOM.js → 2WF6ZQML.js} +2 -2
  9. package/dist/calcite/{B4RFHTW2.js → 3SMC6VFN.js} +1 -1
  10. package/dist/calcite/{ZDGZDBPE.js → 3YZG6VYF.js} +2 -2
  11. package/dist/calcite/{E3LQGBTP.js → 44BJ42JB.js} +2 -2
  12. package/dist/calcite/{IF2VTG4O.js → 46OS62N4.js} +2 -2
  13. package/dist/calcite/{BYLYAZTZ.js → 4HUU2L2V.js} +2 -2
  14. package/dist/calcite/{Q66CF4W3.js → 4QYSIP7G.js} +2 -2
  15. package/dist/calcite/{S2LJOUMB.js → 4SCO4SXA.js} +2 -2
  16. package/dist/calcite/{3RVGBVFJ.js → 4SHUGCZX.js} +2 -2
  17. package/dist/calcite/{JNT67J3Z.js → 4UTOJUXY.js} +2 -2
  18. package/dist/calcite/{3TLSGE35.js → 4VQIFUO2.js} +2 -2
  19. package/dist/calcite/{KKGMEX34.js → 55AEKITF.js} +1 -1
  20. package/dist/calcite/{QVCY4WGU.js → 57GJF4OK.js} +2 -2
  21. package/dist/calcite/{YX5TRVRY.js → 5AN7LOAW.js} +2 -2
  22. package/dist/calcite/{HHGO6V2F.js → 5JULVZM5.js} +2 -2
  23. package/dist/calcite/{CVRPAZHG.js → 5LHKI6S2.js} +1 -1
  24. package/dist/calcite/{DF4DAIZE.js → 5MXBYIJG.js} +2 -2
  25. package/dist/calcite/{TNF7E2RJ.js → 5R3TS5NM.js} +2 -2
  26. package/dist/calcite/{O6S6VY32.js → 5RFAKTYY.js} +2 -2
  27. package/dist/calcite/{GUGZXV6L.js → 63DMWYDN.js} +1 -1
  28. package/dist/calcite/{5COCTVTL.js → 67CWEULR.js} +2 -2
  29. package/dist/calcite/{MKVVU5LK.js → 6H5WIVJ4.js} +2 -2
  30. package/dist/calcite/{NXAQ3ZNZ.js → 6LQUDKJI.js} +2 -2
  31. package/dist/calcite/{SMJSXUYT.js → 6NKLOXQX.js} +2 -2
  32. package/dist/calcite/{VPBKQWRV.js → 6QG5BRME.js} +2 -2
  33. package/dist/calcite/6SMK4ISC.js +4 -0
  34. package/dist/calcite/{BPAXWMOU.js → 6XCBFWPE.js} +2 -2
  35. package/dist/calcite/{T64NHTR5.js → 7AC6DTGZ.js} +2 -2
  36. package/dist/calcite/{PGMKTKRG.js → 7NGT4MON.js} +2 -2
  37. package/dist/calcite/{IFPCUCS6.js → 7NXE4Y5M.js} +2 -2
  38. package/dist/calcite/{E3P6UTBX.js → 7U4S4JR2.js} +2 -2
  39. package/dist/calcite/{D5BK72IU.js → AMR3QYWL.js} +2 -2
  40. package/dist/calcite/{762X4JRQ.js → AOZF4GOY.js} +2 -2
  41. package/dist/calcite/{ORNJ2SHJ.js → AQZBMIQP.js} +2 -2
  42. package/dist/calcite/{DUIF4UOJ.js → AZHM7KB6.js} +2 -2
  43. package/dist/calcite/{H7Q3GS6I.js → B46QA7PM.js} +2 -2
  44. package/dist/calcite/{3ZXS7UKF.js → BA46PWLR.js} +2 -2
  45. package/dist/calcite/{E77UFCG7.js → BARDH7F2.js} +1 -1
  46. package/dist/calcite/{BFYE5CCU.js → BFJQ2HIK.js} +2 -2
  47. package/dist/calcite/{HPIVWV3W.js → BHI2YNUH.js} +2 -2
  48. package/dist/calcite/{MBW4RJGP.js → BKVV5PO7.js} +2 -2
  49. package/dist/calcite/BN5424BV.js +4 -0
  50. package/dist/calcite/{E4L6NZNF.js → BQDR5XUL.js} +2 -2
  51. package/dist/calcite/{ME6Z2YOO.js → C36VJ3UB.js} +2 -2
  52. package/dist/calcite/{GO4QOK2G.js → C63A7UGZ.js} +2 -2
  53. package/dist/calcite/{BPPH3LON.js → CAKUOTAA.js} +2 -2
  54. package/dist/calcite/{G57AKIT2.js → CFC62MOL.js} +1 -1
  55. package/dist/calcite/{AW6AIWFX.js → CJJ63ULC.js} +2 -2
  56. package/dist/calcite/{PDYG4KDD.js → CJWNLJMC.js} +2 -2
  57. package/dist/calcite/{4BJW4WBP.js → CZUL7M7W.js} +2 -2
  58. package/dist/calcite/{N7VBZNZD.js → D7ZHNOUH.js} +2 -2
  59. package/dist/calcite/{KBLPZCLN.js → DJTEIS2M.js} +2 -2
  60. package/dist/calcite/{QNMIJ4WK.js → DNEVV2IP.js} +2 -2
  61. package/dist/calcite/{D3M3HCEU.js → DOVOYDZC.js} +2 -2
  62. package/dist/calcite/{FTW2LAIW.js → DR32S26A.js} +2 -2
  63. package/dist/calcite/{532AODLB.js → DS6DEM2B.js} +2 -2
  64. package/dist/calcite/{LVN6GKGM.js → DUHIM25J.js} +2 -2
  65. package/dist/calcite/{MKITX7PO.js → EEBMXE37.js} +2 -2
  66. package/dist/calcite/{2MRVC7VA.js → EHKGHKKP.js} +2 -2
  67. package/dist/calcite/{TYHCHYHH.js → FAIDPNWL.js} +2 -2
  68. package/dist/calcite/{4ZGOTZVH.js → FM7JEHR7.js} +2 -2
  69. package/dist/calcite/{LALBDZYZ.js → FMHLFCZ5.js} +2 -2
  70. package/dist/calcite/FPQS74TO.js +4 -0
  71. package/dist/calcite/{IZ4UM67D.js → FSULRGVC.js} +2 -2
  72. package/dist/calcite/{METSX5PL.js → FTMK24PN.js} +2 -2
  73. package/dist/calcite/{LX6AOLTA.js → FWVXVZ5U.js} +2 -2
  74. package/dist/calcite/{BYPR2JSH.js → FX4CLWDQ.js} +2 -2
  75. package/dist/calcite/{URZNSXZT.js → FZZW7X3D.js} +2 -2
  76. package/dist/calcite/G2WUFTHJ.js +4 -0
  77. package/dist/calcite/{ARIDWTR6.js → G4W6SA2L.js} +1 -1
  78. package/dist/calcite/{C4UTTCWS.js → G54VU354.js} +2 -2
  79. package/dist/calcite/{HYAVXYZ2.js → GCHDY43Z.js} +2 -2
  80. package/dist/calcite/{6LEJ3UPZ.js → GFYGM7CT.js} +2 -2
  81. package/dist/calcite/{R4SFKVAB.js → GLXAFXXM.js} +2 -2
  82. package/dist/calcite/{R4WJ47LZ.js → GQKCOB4E.js} +1 -1
  83. package/dist/calcite/{U52CBUNR.js → GQYHC4MU.js} +2 -2
  84. package/dist/calcite/{JD225EOA.js → HEEQ3I7Q.js} +2 -2
  85. package/dist/calcite/{AQIH4QSU.js → HEIGBNXM.js} +2 -2
  86. package/dist/calcite/{4PUNUHJG.js → HKQTBG4V.js} +2 -2
  87. package/dist/calcite/{NUOSJ2QU.js → HRFDFFZF.js} +2 -2
  88. package/dist/calcite/{UG4VX2WO.js → I3OQO7ND.js} +2 -2
  89. package/dist/calcite/{TY7PAOH3.js → I455YVJB.js} +2 -2
  90. package/dist/calcite/{4V2CYZGJ.js → I6GF7COP.js} +2 -2
  91. package/dist/calcite/{P7NGK5HU.js → IARMCOGA.js} +2 -2
  92. package/dist/calcite/{R7DNUMFW.js → IKOUNHM3.js} +2 -2
  93. package/dist/calcite/{KTIU4AW5.js → ISWZF6RN.js} +2 -2
  94. package/dist/calcite/{NQ2LK6DD.js → IX5CYVED.js} +2 -2
  95. package/dist/calcite/{KXMBACE6.js → J36AMBY7.js} +2 -2
  96. package/dist/calcite/{K5VIMCTR.js → JEJ2LCR7.js} +2 -2
  97. package/dist/calcite/{2QHD4PJ3.js → JELEPAE3.js} +2 -2
  98. package/dist/calcite/{EPC6PV3A.js → JITM525M.js} +2 -2
  99. package/dist/calcite/{EUZ5QYKG.js → JLUDRUSH.js} +2 -2
  100. package/dist/calcite/{44T76NU4.js → JOYOUQJ4.js} +2 -2
  101. package/dist/calcite/{ADQG5III.js → JWO6K43B.js} +2 -2
  102. package/dist/calcite/{SXNM7HTI.js → KBQWS3FJ.js} +2 -2
  103. package/dist/calcite/{UEYGVMY4.js → KG66JKBH.js} +2 -2
  104. package/dist/calcite/{77BUHP3U.js → KMYNTYLP.js} +2 -2
  105. package/dist/calcite/{6VYYMBFV.js → KQJ4DJ7U.js} +2 -2
  106. package/dist/calcite/{UIY3ZOUS.js → KVEN4KGY.js} +2 -2
  107. package/dist/calcite/{GMSVWV3D.js → L226BYBV.js} +2 -2
  108. package/dist/calcite/{UD7QUO4R.js → L7WYBSU7.js} +2 -2
  109. package/dist/calcite/{AGSPOKJL.js → LBAXUJZR.js} +2 -2
  110. package/dist/calcite/{WK6BSIWL.js → LHY72WD7.js} +2 -2
  111. package/dist/calcite/{3LLV2AEE.js → LPG3INFS.js} +2 -2
  112. package/dist/calcite/{IUEFQJD6.js → LWDA24FV.js} +2 -2
  113. package/dist/calcite/{LVPZFTT7.js → M4LAOVIM.js} +2 -2
  114. package/dist/calcite/{BS4H6VSM.js → MKY6KTD7.js} +2 -2
  115. package/dist/calcite/{GE7AW6D3.js → MRXDIHJO.js} +2 -2
  116. package/dist/calcite/{WRT5VFG2.js → MS2LLIKP.js} +2 -2
  117. package/dist/calcite/{HVSGKI4U.js → MTCNAKKH.js} +2 -2
  118. package/dist/calcite/{QCYLDKPD.js → MTCUS2IT.js} +2 -2
  119. package/dist/calcite/{BYC3WNCO.js → MUTDQR2Z.js} +2 -2
  120. package/dist/calcite/{DXHVTM3H.js → MX4JH4EB.js} +2 -2
  121. package/dist/calcite/{JAS5LR3V.js → N23ORJSP.js} +2 -2
  122. package/dist/calcite/{26HCN763.js → N7F5YRAI.js} +2 -2
  123. package/dist/calcite/{3INVFQIX.js → NAXIV3NS.js} +2 -2
  124. package/dist/calcite/{CI3KGKPX.js → NJTWDWJ6.js} +2 -2
  125. package/dist/calcite/{ERSVI3SQ.js → NOWWPIBG.js} +2 -2
  126. package/dist/calcite/{GRW4JOP4.js → NQHFC6PM.js} +2 -2
  127. package/dist/calcite/{T4ULXMD7.js → NTHNMXLF.js} +2 -2
  128. package/dist/calcite/{ALESK5G3.js → NXO3AVQE.js} +2 -2
  129. package/dist/calcite/{OSDCA5Z5.js → NZ3PGHRA.js} +2 -2
  130. package/dist/calcite/{XIWNJBFP.js → OIWNVIRD.js} +1 -1
  131. package/dist/calcite/{XNX35ZFQ.js → OJ3C2QFY.js} +2 -2
  132. package/dist/calcite/{KUKMISYB.js → OJSRLX2O.js} +2 -2
  133. package/dist/calcite/{KP54C3JZ.js → ORQNL5KM.js} +2 -2
  134. package/dist/calcite/{42EYBCUV.js → PDKQQ6DR.js} +1 -1
  135. package/dist/calcite/{KEZYP6US.js → PIWXS5AK.js} +2 -2
  136. package/dist/calcite/{4ZU47CQ3.js → PMJMT5ME.js} +1 -1
  137. package/dist/calcite/{R4XN3TM5.js → PP37ARQP.js} +2 -2
  138. package/dist/calcite/{GYGPER4P.js → PTCLOQGZ.js} +2 -2
  139. package/dist/calcite/{CHIM52AT.js → PVLXFBYV.js} +2 -2
  140. package/dist/calcite/{2J535H74.js → PWBNEXID.js} +1 -1
  141. package/dist/calcite/{EZG5QKN6.js → PYKL3UXB.js} +2 -2
  142. package/dist/calcite/{LQPVMOYJ.js → PZWSVQZD.js} +2 -2
  143. package/dist/calcite/{FBT37OEB.js → QA2FNB22.js} +2 -2
  144. package/dist/calcite/{IIZHIWV2.js → QA2ZIC7C.js} +2 -2
  145. package/dist/calcite/{4GA4WC4S.js → QCBG2KET.js} +2 -2
  146. package/dist/calcite/{RBZYH2DB.js → QGB26YIT.js} +2 -2
  147. package/dist/calcite/{VI3KXLGC.js → QO7E7N7T.js} +1 -1
  148. package/dist/calcite/{NWMFN6P5.js → QURE77NC.js} +2 -2
  149. package/dist/calcite/{VRXSW66C.js → QVP5HCOB.js} +2 -2
  150. package/dist/calcite/{PXNVLWHJ.js → QYJJ2CRF.js} +2 -2
  151. package/dist/calcite/{MFSJ7P6E.js → QYSTCT5M.js} +2 -2
  152. package/dist/calcite/{4FEHFKFZ.js → R5UIS6SZ.js} +2 -2
  153. package/dist/calcite/{AR5Q6UVU.js → R7EMWIVD.js} +2 -2
  154. package/dist/calcite/{PBIOUIAG.js → RCHNH62A.js} +2 -2
  155. package/dist/calcite/{AG3OBGY5.js → REWHAGLT.js} +2 -2
  156. package/dist/calcite/{2FISXH45.js → RIRFCGEM.js} +1 -1
  157. package/dist/calcite/{IMPJNHBW.js → RQQGYM4U.js} +2 -2
  158. package/dist/calcite/{PXWJSYPX.js → SIDPQ5NM.js} +2 -2
  159. package/dist/calcite/{JORKWQP7.js → SJUKTGGZ.js} +2 -2
  160. package/dist/calcite/{MMMDZXO3.js → SLRSUTRB.js} +2 -2
  161. package/dist/calcite/{B3PECEJL.js → SMBWWW7R.js} +2 -2
  162. package/dist/calcite/{57I55JUX.js → STT2ZFFU.js} +2 -2
  163. package/dist/calcite/{MNEWDDI2.js → SVTAI6D2.js} +2 -2
  164. package/dist/calcite/{3IDVHKGJ.js → SZO6Z4W4.js} +2 -2
  165. package/dist/calcite/{2JYAKUAI.js → TDM7B4G5.js} +2 -2
  166. package/dist/calcite/{YJATTLI4.js → TEKJ72AV.js} +2 -2
  167. package/dist/calcite/{BZD7GFVI.js → TEUS7BWM.js} +2 -2
  168. package/dist/calcite/{P7S34RN4.js → TVGLGIXB.js} +1 -1
  169. package/dist/calcite/U7IBYHAI.js +4 -0
  170. package/dist/calcite/{2XQRDBOF.js → UCWHFI2U.js} +2 -2
  171. package/dist/calcite/{LEM2HQED.js → UGHQZXRL.js} +1 -1
  172. package/dist/calcite/{SGGVWBUG.js → UMXX5RIX.js} +2 -2
  173. package/dist/calcite/{6EPLB3BH.js → UQAITM2L.js} +2 -2
  174. package/dist/calcite/{OPD7D4JP.js → USW3PDMJ.js} +1 -1
  175. package/dist/calcite/{PYX2DOAY.js → V2JT45B4.js} +2 -2
  176. package/dist/calcite/{XMMC32IR.js → V7AV4Q4O.js} +2 -2
  177. package/dist/calcite/{IVQXEPWH.js → V7K6RCXD.js} +2 -2
  178. package/dist/calcite/{3BBEWJXF.js → VAGTYQDN.js} +2 -2
  179. package/dist/calcite/{SSS44B5K.js → VB6OFH5U.js} +2 -2
  180. package/dist/calcite/{J67XRVOQ.js → VFS7SSXI.js} +2 -2
  181. package/dist/calcite/{2YAKETFF.js → VKSQFLOG.js} +2 -2
  182. package/dist/calcite/{HAWP5JEV.js → VLS5RJUK.js} +2 -2
  183. package/dist/calcite/{XJFKL6PV.js → VMAJCMBL.js} +2 -2
  184. package/dist/calcite/{BNGQWGBI.js → VOFD5DCL.js} +2 -2
  185. package/dist/calcite/{7D6PTDQC.js → VT3VUVXE.js} +1 -1
  186. package/dist/calcite/{AFAENHVJ.js → VWZTNCJK.js} +2 -2
  187. package/dist/calcite/VZITNFFS.js +4 -0
  188. package/dist/calcite/{NMX7JENH.js → W3RDMYIN.js} +2 -2
  189. package/dist/calcite/{VTO75NHN.js → W422ND5N.js} +2 -2
  190. package/dist/calcite/{Z6VFYDJB.js → W442UUWV.js} +2 -2
  191. package/dist/calcite/{2D346WWC.js → W4KCCO3S.js} +2 -2
  192. package/dist/calcite/{KYF26PQD.js → WFPGREC2.js} +2 -2
  193. package/dist/calcite/{5K7VN4KA.js → WNHOQIFY.js} +2 -2
  194. package/dist/calcite/{2PENUS6W.js → WOGAISGZ.js} +2 -2
  195. package/dist/calcite/{KFCQM5TQ.js → WONA4URM.js} +2 -2
  196. package/dist/calcite/{O4ROBHBS.js → WONIIUPU.js} +2 -2
  197. package/dist/calcite/{RJ2QSN7Y.js → WRHSWUBQ.js} +2 -2
  198. package/dist/calcite/{5VWHRVSC.js → WVMWY4KP.js} +1 -1
  199. package/dist/calcite/{63TOND25.js → X3KIRADK.js} +2 -2
  200. package/dist/calcite/{AWUASB3T.js → XB2N542R.js} +2 -2
  201. package/dist/calcite/{7BNRX2TA.js → XF336TAO.js} +2 -2
  202. package/dist/calcite/{Z4EVTJCF.js → XG5XFLHH.js} +2 -2
  203. package/dist/calcite/{36RFUWOV.js → XJWNF64Z.js} +2 -2
  204. package/dist/calcite/{JIYWCS5W.js → XMJHB5MH.js} +2 -2
  205. package/dist/calcite/{4S7WQOEH.js → XOC6WGGD.js} +2 -2
  206. package/dist/calcite/{DABOIYSX.js → XQ2V4OKL.js} +2 -2
  207. package/dist/calcite/{DP7DCTHA.js → XRWQQLXJ.js} +2 -2
  208. package/dist/calcite/{CUGMAH5O.js → XU7MYACZ.js} +2 -2
  209. package/dist/calcite/{5LT4TL2A.js → Y3OBCBK3.js} +1 -1
  210. package/dist/calcite/{KDOZHNH6.js → YAJOGMAQ.js} +2 -2
  211. package/dist/calcite/{OYFIV5DV.js → YAK6QYAD.js} +2 -2
  212. package/dist/calcite/{6MF5C5ST.js → YFMJPBPZ.js} +2 -2
  213. package/dist/calcite/{T2NQWILT.js → YFZ2NUB6.js} +1 -1
  214. package/dist/calcite/{SPUWEZWR.js → YGEMBWVF.js} +2 -2
  215. package/dist/calcite/{XLECMXIQ.js → YQFDCYWK.js} +2 -2
  216. package/dist/calcite/{6CCGJZNF.js → YTIW4VQ2.js} +2 -2
  217. package/dist/calcite/{OTFP3MJD.js → YVDTR6KO.js} +2 -2
  218. package/dist/calcite/{4JFNYHYI.js → Z2U7XLTE.js} +2 -2
  219. package/dist/calcite/{YJBOOAYG.js → Z3OQKXEK.js} +2 -2
  220. package/dist/calcite/{FXELZL3D.js → Z5LFLG7A.js} +2 -2
  221. package/dist/calcite/{M7C4BL3W.js → ZDABD34W.js} +2 -2
  222. package/dist/calcite/{YYW4OM7V.js → ZDCYBXUV.js} +2 -2
  223. package/dist/calcite/{FPK4FZB7.js → ZKR4GKLC.js} +2 -2
  224. package/dist/calcite/{FC7N6LLB.js → ZOXYMA5O.js} +2 -2
  225. package/dist/calcite/calcite.esm.js +2 -2
  226. package/dist/chunks/ExpandToggle.js +1 -1
  227. package/dist/chunks/FloatingArrow.js +1 -1
  228. package/dist/chunks/Heading.js +1 -1
  229. package/dist/chunks/Validation.js +1 -1
  230. package/dist/chunks/_commonjsHelpers.js +1 -1
  231. package/dist/chunks/array.js +1 -1
  232. package/dist/chunks/component.js +1 -1
  233. package/dist/chunks/core.js +1 -1
  234. package/dist/chunks/date.js +1 -1
  235. package/dist/chunks/dom.js +1 -1
  236. package/dist/chunks/dynamicClasses.js +1 -1
  237. package/dist/chunks/filter.js +1 -1
  238. package/dist/chunks/floating-ui.js +1 -1
  239. package/dist/chunks/focusTrapComponent.js +1 -1
  240. package/dist/chunks/form.js +1 -1
  241. package/dist/chunks/global.js +1 -1
  242. package/dist/chunks/guid.js +1 -1
  243. package/dist/chunks/input.js +1 -1
  244. package/dist/chunks/interact.min.js +1 -1
  245. package/dist/chunks/interactive.js +1 -1
  246. package/dist/chunks/key.js +1 -1
  247. package/dist/chunks/label.js +1 -1
  248. package/dist/chunks/loadable.js +1 -1
  249. package/dist/chunks/locale.js +1 -1
  250. package/dist/chunks/logger.js +1 -1
  251. package/dist/chunks/math.js +1 -1
  252. package/dist/chunks/observers.js +1 -1
  253. package/dist/chunks/openCloseComponent.js +1 -1
  254. package/dist/chunks/resources.js +1 -1
  255. package/dist/chunks/resources2.js +1 -1
  256. package/dist/chunks/resources3.js +1 -1
  257. package/dist/chunks/resources4.js +1 -1
  258. package/dist/chunks/resources5.js +1 -1
  259. package/dist/chunks/resources6.js +1 -1
  260. package/dist/chunks/resources7.js +1 -1
  261. package/dist/chunks/responsive.js +1 -1
  262. package/dist/chunks/runtime.js +10 -10
  263. package/dist/chunks/sortableComponent.js +1 -1
  264. package/dist/chunks/text.js +1 -1
  265. package/dist/chunks/time.js +1 -1
  266. package/dist/chunks/useFocusTrap.js +25 -23
  267. package/dist/chunks/useT9n.js +1 -1
  268. package/dist/chunks/utils.js +1 -1
  269. package/dist/chunks/utils2.js +1 -1
  270. package/dist/chunks/utils3.js +1 -1
  271. package/dist/chunks/utils4.js +1 -1
  272. package/dist/components/calcite-accordion/customElement.js +1 -1
  273. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  274. package/dist/components/calcite-action/customElement.js +25 -25
  275. package/dist/components/calcite-action-bar/customElement.js +1 -1
  276. package/dist/components/calcite-action-group/customElement.js +1 -1
  277. package/dist/components/calcite-action-menu/customElement.js +1 -1
  278. package/dist/components/calcite-action-pad/customElement.js +1 -1
  279. package/dist/components/calcite-alert/customElement.js +1 -1
  280. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  281. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  282. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  283. package/dist/components/calcite-avatar/customElement.js +1 -1
  284. package/dist/components/calcite-block/customElement.js +1 -1
  285. package/dist/components/calcite-block-group/customElement.js +2 -2
  286. package/dist/components/calcite-block-section/customElement.js +1 -1
  287. package/dist/components/calcite-button/customElement.js +1 -1
  288. package/dist/components/calcite-card/customElement.js +1 -1
  289. package/dist/components/calcite-card-group/customElement.js +1 -1
  290. package/dist/components/calcite-carousel/customElement.js +1 -1
  291. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  292. package/dist/components/calcite-checkbox/customElement.js +1 -1
  293. package/dist/components/calcite-chip/customElement.js +1 -1
  294. package/dist/components/calcite-chip-group/customElement.js +1 -1
  295. package/dist/components/calcite-color-picker/customElement.js +1 -1
  296. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  297. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  298. package/dist/components/calcite-combobox/customElement.js +1 -1
  299. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  300. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  301. package/dist/components/calcite-date-picker/customElement.js +1 -1
  302. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  303. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  304. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  305. package/dist/components/calcite-dialog/customElement.js +11 -11
  306. package/dist/components/calcite-dropdown/customElement.js +6 -6
  307. package/dist/components/calcite-dropdown-group/customElement.js +17 -14
  308. package/dist/components/calcite-dropdown-group/resources.d.ts +4 -0
  309. package/dist/components/calcite-dropdown-item/customElement.js +19 -19
  310. package/dist/components/calcite-fab/customElement.js +1 -1
  311. package/dist/components/calcite-filter/customElement.js +1 -1
  312. package/dist/components/calcite-flow/customElement.js +1 -1
  313. package/dist/components/calcite-flow-item/customElement.js +1 -1
  314. package/dist/components/calcite-graph/customElement.js +1 -1
  315. package/dist/components/calcite-handle/customElement.js +1 -1
  316. package/dist/components/calcite-icon/customElement.js +1 -1
  317. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  318. package/dist/components/calcite-input/customElement.js +1 -1
  319. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  320. package/dist/components/calcite-input-message/customElement.js +1 -1
  321. package/dist/components/calcite-input-number/customElement.js +1 -1
  322. package/dist/components/calcite-input-text/customElement.js +1 -1
  323. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  324. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  325. package/dist/components/calcite-label/customElement.js +1 -1
  326. package/dist/components/calcite-link/customElement.js +1 -1
  327. package/dist/components/calcite-list/customElement.js +2 -2
  328. package/dist/components/calcite-list-item/customElement.js +1 -1
  329. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  330. package/dist/components/calcite-loader/customElement.d.ts +2 -2
  331. package/dist/components/calcite-loader/customElement.js +1 -1
  332. package/dist/components/calcite-menu/customElement.js +1 -1
  333. package/dist/components/calcite-menu-item/customElement.js +1 -1
  334. package/dist/components/calcite-meter/customElement.js +1 -1
  335. package/dist/components/calcite-modal/customElement.js +9 -9
  336. package/dist/components/calcite-navigation/customElement.js +1 -1
  337. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  338. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  339. package/dist/components/calcite-notice/customElement.js +1 -1
  340. package/dist/components/calcite-option/customElement.js +1 -1
  341. package/dist/components/calcite-option-group/customElement.js +1 -1
  342. package/dist/components/calcite-pagination/customElement.js +1 -1
  343. package/dist/components/calcite-panel/customElement.js +1 -1
  344. package/dist/components/calcite-popover/customElement.js +2 -2
  345. package/dist/components/calcite-progress/customElement.js +1 -1
  346. package/dist/components/calcite-radio-button/customElement.js +1 -1
  347. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  348. package/dist/components/calcite-rating/customElement.js +1 -1
  349. package/dist/components/calcite-scrim/customElement.js +1 -1
  350. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  351. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  352. package/dist/components/calcite-select/customElement.js +1 -1
  353. package/dist/components/calcite-sheet/customElement.js +5 -5
  354. package/dist/components/calcite-shell/customElement.js +1 -1
  355. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  356. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  357. package/dist/components/calcite-slider/customElement.js +1 -1
  358. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  359. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  360. package/dist/components/calcite-split-button/customElement.js +1 -1
  361. package/dist/components/calcite-stack/customElement.js +1 -1
  362. package/dist/components/calcite-stepper/customElement.js +1 -1
  363. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  364. package/dist/components/calcite-switch/customElement.js +1 -1
  365. package/dist/components/calcite-tab/customElement.js +1 -1
  366. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  367. package/dist/components/calcite-tab-title/customElement.js +6 -6
  368. package/dist/components/calcite-table/customElement.js +1 -1
  369. package/dist/components/calcite-table-cell/customElement.js +1 -1
  370. package/dist/components/calcite-table-header/customElement.js +1 -1
  371. package/dist/components/calcite-table-row/customElement.js +1 -1
  372. package/dist/components/calcite-tabs/customElement.js +1 -1
  373. package/dist/components/calcite-text-area/customElement.js +1 -1
  374. package/dist/components/calcite-tile/customElement.js +1 -1
  375. package/dist/components/calcite-tile-group/customElement.js +1 -1
  376. package/dist/components/calcite-tile-select/customElement.js +1 -1
  377. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  378. package/dist/components/calcite-time-picker/customElement.js +1 -1
  379. package/dist/components/calcite-tip/customElement.js +1 -1
  380. package/dist/components/calcite-tip-group/customElement.js +1 -1
  381. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  382. package/dist/components/calcite-tooltip/customElement.js +1 -1
  383. package/dist/components/calcite-tree/customElement.js +1 -1
  384. package/dist/components/calcite-tree-item/customElement.js +1 -1
  385. package/dist/controllers/useFocusTrap.d.ts +2 -6
  386. package/dist/custom-theme/dropdown.d.ts +16 -0
  387. package/dist/docs/api.json +52 -12
  388. package/dist/docs/docs.json +59 -12
  389. package/dist/docs/vscode.css-custom-data.json +43 -7
  390. package/dist/docs/vscode.html-custom-data.json +6 -6
  391. package/dist/docs/web-types.json +52 -16
  392. package/dist/extras/vscode-data.json +6 -6
  393. package/dist/index.js +1 -1
  394. package/dist/loader.js +1 -1
  395. package/package.json +5 -5
  396. package/readme.md +2 -2
  397. package/dist/calcite/3MDXQNOS.js +0 -4
  398. package/dist/calcite/HZD74WIH.js +0 -4
  399. package/dist/calcite/KN2DHQQX.js +0 -4
  400. package/dist/calcite/MBDY7HC3.js +0 -4
  401. package/dist/calcite/S5F5TPCL.js +0 -4
  402. package/dist/calcite/VANSKT7E.js +0 -4
  403. package/dist/calcite/XCHOTUWL.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{b as H,c as vt,d as A,e as Lt,i as _,j as Mt,k as St,l as E,n as yt,q as Z}from"./R4SFKVAB.js";import{a as gt,b as v}from"./AG3OBGY5.js";import"./B4RFHTW2.js";import{a as ft}from"./E77UFCG7.js";import{b}from"./5LT4TL2A.js";import{f as C,h as W,k as O}from"./2XQRDBOF.js";import{a as pt}from"./JD225EOA.js";import{a as mt,c as ht,e as ut,h as dt}from"./R4XN3TM5.js";import{c as nt,d as lt,e as ct}from"./ZYEB6OOM.js";import{a as at,b as rt}from"./WRT5VFG2.js";import{a as et}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{b as st}from"./R4WJ47LZ.js";import{a as ot}from"./SMJSXUYT.js";import{b as x}from"./FC7N6LLB.js";import{n as tt}from"./GO4QOK2G.js";import{b as it}from"./PBIOUIAG.js";import"./P7S34RN4.js";import{B as J,J as j,e as G,f as U,j as w,v as Y,w as K,x as N}from"./63TOND25.js";var q=function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,i,s){return i||s.slice(1)})},Q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},z=function(t,e){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,s,a){var r=a&&a.toUpperCase();return s||e[a]||Q[a]||q(e[r])})};var xt=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Tt=/\d/,I=/\d\d/,Ct=/\d{3}/,Ot=/\d{4}/,L=/\d\d?/,Ht=/[+-]?\d+/,At=/[+-]\d\d:?(\d\d)?|Z/,F=/\d*[^-_:/,()\s\d]+/,y={},Yt=function(t){return t=+t,t+(t>68?1900:2e3)};function Et(o){if(!o||o==="Z")return 0;var t=o.match(/([+-]|\d\d)/g),e=+(t[1]*60)+(+t[2]||0);return e===0?0:t[0]==="+"?-e:e}var d=function(t){return function(e){this[t]=+e}},kt=[At,function(o){var t=this.zone||(this.zone={});t.offset=Et(o)}],R=function(t){var e=y[t];return e&&(e.indexOf?e:e.s.concat(e.f))},Dt=function(t,e){var i,s=y,a=s.meridiem;if(!a)i=t===(e?"pm":"PM");else for(var r=1;r<=24;r+=1)if(t.indexOf(a(r,0,e))>-1){i=r>12;break}return i},zt={A:[F,function(o){this.afternoon=Dt(o,!1)}],a:[F,function(o){this.afternoon=Dt(o,!0)}],Q:[Tt,function(o){this.month=(o-1)*3+1}],S:[Tt,function(o){this.milliseconds=+o*100}],SS:[I,function(o){this.milliseconds=+o*10}],SSS:[Ct,function(o){this.milliseconds=+o}],s:[L,d("seconds")],ss:[L,d("seconds")],m:[L,d("minutes")],mm:[L,d("minutes")],H:[L,d("hours")],h:[L,d("hours")],HH:[L,d("hours")],hh:[L,d("hours")],D:[L,d("day")],DD:[I,d("day")],Do:[F,function(o){var t=y,e=t.ordinal,i=o.match(/\d+/);if(this.day=i[0],!!e)for(var s=1;s<=31;s+=1)e(s).replace(/\[|\]/g,"")===o&&(this.day=s)}],w:[L,d("week")],ww:[I,d("week")],M:[L,d("month")],MM:[I,d("month")],MMM:[F,function(o){var t=R("months"),e=R("monthsShort"),i=(e||t.map(function(s){return s.slice(0,3)})).indexOf(o)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[F,function(o){var t=R("months"),e=t.indexOf(o)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[Ht,d("year")],YY:[I,function(o){this.year=Yt(o)}],YYYY:[Ot,d("year")],Z:kt,ZZ:kt};function Vt(o){var t=o.afternoon;if(t!==void 0){var e=o.hours;t?e<12&&(o.hours+=12):e===12&&(o.hours=0),delete o.afternoon}}function Bt(o){o=z(o,y&&y.formats);for(var t=o.match(xt),e=t.length,i=0;i<e;i+=1){var s=t[i],a=zt[s],r=a&&a[0],m=a&&a[1];m?t[i]={regex:r,parser:m}:t[i]=s.replace(/^\[|\]$/g,"")}return function(n){for(var l={},c=0,u=0;c<e;c+=1){var h=t[c];if(typeof h=="string")u+=h.length;else{var f=h.regex,M=h.parser,p=n.slice(u),g=f.exec(p),S=g[0];M.call(l,S),n=n.replace(S,"")}}return Vt(l),l}}var Ut=function(t,e,i,s){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*t);var a=Bt(e),r=a(t),m=r.year,n=r.month,l=r.day,c=r.hours,u=r.minutes,h=r.seconds,f=r.milliseconds,M=r.zone,p=r.week,g=new Date,S=l||(!m&&!n?g.getDate():1),T=m||g.getFullYear(),k=0;m&&!n||(k=n>0?n-1:g.getMonth());var D=c||0,$=u||0,V=h||0,B=f||0;if(M)return new Date(Date.UTC(T,k,S,D,$,V,B+M.offset*60*1e3));if(i)return new Date(Date.UTC(T,k,S,D,$,V,B));var P;return P=new Date(T,k,S,D,$,V,B),p&&(P=s(P).week(p).toDate()),P}catch{return new Date("")}},$t=function(o,t,e){e.p.customParseFormat=!0,o&&o.parseTwoDigitYear&&(Yt=o.parseTwoDigitYear);var i=t.prototype,s=i.parse;i.parse=function(a){var r=a.date,m=a.utc,n=a.args;this.$u=m;var l=n[1];if(typeof l=="string"){var c=n[2]===!0,u=n[3]===!0,h=c||u,f=n[2];u&&(f=n[2]),y=this.$locale(),!c&&f&&(y=e.Ls[f]),this.$d=Ut(r,l,m,e),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),h&&r!=this.format(l)&&(this.$d=new Date("")),y={}}else if(l instanceof Array)for(var M=l.length,p=1;p<=M;p+=1){n[1]=l[p-1];var g=e.apply(this,n);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===M&&(this.$d=new Date(""))}else s.call(this,a)}};var wt=function(o,t,e){var i=t.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},a=function(c,u,h,f,M){var p=c.name?c:c.$locale(),g=s(p[u]),S=s(p[h]),T=g||S.map(function(D){return D.slice(0,f)});if(!M)return T;var k=p.weekStart;return T.map(function(D,$){return T[($+(k||0))%7]})},r=function(){return e.Ls[e.locale()]},m=function(c,u){return c.formats[u]||q(c.formats[u.toUpperCase()])},n=function(){var c=this;return{months:function(h){return h?h.format("MMMM"):a(c,"months")},monthsShort:function(h){return h?h.format("MMM"):a(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):a(c,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):a(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):a(c,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(c.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return n.bind(this)()},e.localeData=function(){var l=r();return{firstDayOfWeek:function(){return l.weekStart||0},weekdays:function(){return e.weekdays()},weekdaysShort:function(){return e.weekdaysShort()},weekdaysMin:function(){return e.weekdaysMin()},months:function(){return e.months()},monthsShort:function(){return e.monthsShort()},longDateFormat:function(u){return m(l,u)},meridiem:l.meridiem,ordinal:l.ordinal}},e.months=function(){return a(r(),"months")},e.monthsShort=function(){return a(r(),"monthsShort","months",3)},e.weekdays=function(l){return a(r(),"weekdays",null,null,l)},e.weekdaysShort=function(l){return a(r(),"weekdaysShort","weekdays",3,l)},e.weekdaysMin=function(l){return a(r(),"weekdaysMin","weekdays",2,l)}};var bt=function(o,t,e){var i=t.prototype,s=i.format;e.en.formats=Q,i.format=function(a){a===void 0&&(a=gt);var r=this.$locale(),m=r.formats,n=m===void 0?{}:m,l=z(a,n);return s.call(this,l)}};var It=function(o,t){var e=t.prototype.parse;t.prototype.parse=function(a){if(typeof a.date=="string"){var r=this.$locale();a.date=r&&r.preparse?r.preparse(a.date):a.date}return e.bind(this)(a)};var i=t.prototype.format;t.prototype.format=function(){for(var a=arguments.length,r=new Array(a),m=0;m<a;m++)r[m]=arguments[m];var n=i.call.apply(i,[this].concat(r)),l=this.$locale();return l&&l.postformat?l.postformat(n):n};var s=t.prototype.fromToBase;s&&(t.prototype.fromToBase=function(a,r,m,n){var l=this.$locale()||m.$locale();return s.call(this,a,r,m,n,l&&l.postformat)})};var Ft=function(o,t,e){e.updateLocale=function(i,s){var a=e.Ls,r=a[i];if(r){var m=s?Object.keys(s):[];return m.forEach(function(n){r[n]=s[n]}),r}}};var Wt=G`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`,_t={toggleIcon:"toggle-icon"},Pt={validationMessage:"inputTimePickerValidationMessage"},Zt=new Map([["ar",()=>import("./EZG5QKN6.js")],["bg",()=>import("./2D346WWC.js")],["bs",()=>import("./IUEFQJD6.js")],["ca",()=>import("./BYC3WNCO.js")],["cs",()=>import("./AWUASB3T.js")],["da",()=>import("./RBZYH2DB.js")],["de",()=>import("./3RVGBVFJ.js")],["de-at",()=>import("./OYFIV5DV.js")],["de-ch",()=>import("./DABOIYSX.js")],["el",()=>import("./YJATTLI4.js")],["en",()=>import("./TYHCHYHH.js")],["en-au",()=>import("./CI3KGKPX.js")],["en-ca",()=>import("./MKVVU5LK.js")],["en-gb",()=>import("./VRXSW66C.js")],["es",()=>import("./LX6AOLTA.js")],["es-mx",()=>import("./VPBKQWRV.js")],["et",()=>import("./DF4DAIZE.js")],["fi",()=>import("./UD7QUO4R.js")],["fr",()=>import("./BYLYAZTZ.js")],["fr-ch",()=>import("./QNMIJ4WK.js")],["he",()=>import("./D3M3HCEU.js")],["hi",()=>import("./LVPZFTT7.js")],["hr",()=>import("./ZDGZDBPE.js")],["hu",()=>import("./HHGO6V2F.js")],["id",()=>import("./WK6BSIWL.js")],["it",()=>import("./KEZYP6US.js")],["it-ch",()=>import("./762X4JRQ.js")],["ja",()=>import("./N7VBZNZD.js")],["ko",()=>import("./YJBOOAYG.js")],["lt",()=>import("./S2LJOUMB.js")],["lv",()=>import("./2PENUS6W.js")],["mk",()=>import("./3IDVHKGJ.js")],["nl",()=>import("./IMPJNHBW.js")],["nb",()=>import("./JAS5LR3V.js")],["pl",()=>import("./B3PECEJL.js")],["pt",()=>import("./O4ROBHBS.js")],["pt-br",()=>import("./XNX35ZFQ.js")],["ro",()=>import("./D5BK72IU.js")],["ru",()=>import("./M7C4BL3W.js")],["sk",()=>import("./E4L6NZNF.js")],["sl",()=>import("./K5VIMCTR.js")],["sr",()=>import("./XMMC32IR.js")],["sv",()=>import("./UG4VX2WO.js")],["th",()=>import("./EUZ5QYKG.js")],["tr",()=>import("./BZD7GFVI.js")],["uk",()=>import("./3LLV2AEE.js")],["vi",()=>import("./4JFNYHYI.js")],["zh-cn",()=>import("./OTFP3MJD.js")],["zh-hk",()=>import("./G44GIY32.js")],["zh-tw",()=>import("./KP54C3JZ.js")]]);v.extend($t);v.extend(wt);v.extend(bt);v.extend(It);v.extend(Ft);var X=class extends K{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.hourFormat="user",this.messages=ot(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=Y({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=Y({cancelable:!1}),this.calciteInputTimePickerChange=Y(),this.calciteInputTimePickerClose=Y({cancelable:!1}),this.calciteInputTimePickerOpen=Y({cancelable:!1}),this.setLocalizedInputValue=t=>{this.setInputValue(this.getLocalizedTimeString(t))},this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:16,effectiveHourFormat:16,disabled:7,focusTrapDisabled:7,form:3,hourFormat:3,max:3,messageOverrides:0,min:3,name:1,numberingSystem:1,open:7,overlayPositioning:1,placement:3,readOnly:7,required:7,scale:3,status:3,step:9,validationIcon:[3,{converter:J}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=Wt}get value(){return this._value}set value(t){let e=this._value;t!==e&&(this._value=t,this.valueWatcher(t))}async reposition(t=!1){this.popoverEl?.reposition(t)}async setFocus(){await it(this),tt(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,nt(this),ht(this)}async load(){await this.loadLocaleData(),this.updateLocale()}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),t.has("hourFormat")&&this.updateLocale(),t.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),t.has("messages")&&this.langWatcher(),t.has("numberingSystem")&&this.setLocalizedInputValue({numberingSystem:t.get("numberingSystem")}),t.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,t.get("step"))}updated(){at(this)}loaded(){E(this.value)&&this.setLocalizedInputValue()}disconnectedCallback(){super.disconnectedCallback(),lt(this),ut(this)}async langWatcher(){await this.loadLocaleData(),this.updateLocale()}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}stepWatcher(t,e){(e>=60&&t>0&&t<60||t>=60&&e>0&&e<60)&&this.setValueDirectly(this.value)}valueWatcher(t){this.userChangedValue||this.setValueDirectly(t),this.userChangedValue=!1}hostBlurHandler(){let t=this.delocalizeTimeString(this.calciteInputEl.value);t?t!==this.value&&(this.setValue(t),this.setLocalizedInputValue()):this.setValue(""),this.deactivate()}calciteInternalInputFocusHandler(t){this.readOnly||t.stopPropagation()}calciteInternalInputInputHandler(t){let{messages:{_lang:e},numberingSystem:i}=this;if(i&&i!=="latn"){let s=t.target;O.numberFormatOptions={locale:e,numberingSystem:i,useGrouping:!1};let a=O.delocalize(s.value).split("").map(r=>st.includes(r)?O.numberFormatter.format(Number(r)):r).join("");this.setInputValue(a)}}timePickerChangeHandler(t){t.stopPropagation();let e=t.target.value,i=this.shouldIncludeSeconds();this.setValue(Z(e,i)),this.setLocalizedInputValue({isoTimeString:e})}updateLocale(t=this.messages._lang){this.effectiveHourFormat=this.hourFormat==="user"?A(this.messages._lang):this.hourFormat,this.localeDefaultLTFormat=this.localeConfig.formats.LT,this.localeDefaultLTSFormat=this.localeConfig.formats.LTS,this.setLocalizedInputValue({locale:t})}popoverBeforeOpenHandler(t){t.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(t){t.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(t){t.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(t){t.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(t){ft("time",this,t)}delocalizeTimeString(t){v.locale(this.getSupportedDayjsLocale(this.messages._lang.toLowerCase()));let e=this.delocalizeTimeStringToParts(t),i;if(this.shouldIncludeFractionalSeconds()){let s=b(this.step),a=this.delocalizeTimeStringToParts(t,"S");if(s===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(e);else{let r=this.delocalizeTimeStringToParts(t,"SS");if(s===2)r.millisecond!==0?i=this.getTimeStringFromParts(r):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(e);else if(s>=3){let m=this.delocalizeTimeStringToParts(t,"SSS");m.millisecond!==0?i=this.getTimeStringFromParts(m):r.millisecond!==0?i=this.getTimeStringFromParts(r):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(e)}}}else i=this.getTimeStringFromParts(e);return i}delocalizeTimeStringToParts(t,e){let i=this.messages._lang,s=t,a=St(this.effectiveHourFormat,i)?Lt(i):A(i);if(C.has(i)&&a==="12"){let m=C.get(i).am,n=C.get(i).pm,l=_(i),c=l===l.toUpperCase()?"AM":"am",u=l===l.toUpperCase()?"PM":"pm";s=s.includes(n)?s.replaceAll(n,u):s.replaceAll(m,c)}this.setLocaleTimeFormat({fractionalSecondFormatToken:e,hourFormat:a});let r=v(s,["LTS","LT"]);return r.isValid()?{hour:r.get("hour"),minute:r.get("minute"),second:r.get("second"),millisecond:r.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(t){let e="";if(!t)return e;if(t.hour!==null&&t.minute!==null&&(e=`${H(t.hour)}:${H(t.minute)}`,this.shouldIncludeSeconds()&&t.second!==null&&(e+=`:${H(t.second)}`,this.shouldIncludeFractionalSeconds()&&t.millisecond!==null))){let i=(t.millisecond*.001).toFixed(b(this.step));e+=`.${i.toString().replace("0.","")}`}return e}keyDownHandler(t){let{defaultPrevented:e,key:i}=t;if(!e)if(i==="Enter"){if(mt(this)&&(t.preventDefault(),this.calciteInputEl.setFocus()),t.composedPath().includes(this.calciteTimePickerEl))return;let s=this.delocalizeTimeString(this.calciteInputEl.value);E(s)?(this.setValue(s),this.setLocalizedInputValue()):this.setValue("")}else i==="ArrowDown"?(this.open=!0,t.preventDefault()):this.open&&this.focusTrapDisabled&&i==="Escape"&&(this.open=!1,t.preventDefault())}getSupportedDayjsLocale(t){let e=t.toLowerCase();return e==="no"?"nb":e==="pt-pt"?"pt":e}async loadLocaleData(){let t=W(this.messages._lang).toLowerCase();t=this.getSupportedDayjsLocale(t);let{default:e}=await Zt.get(t)();this.localeConfig=e,v.locale(this.localeConfig,null,!0),v.updateLocale(t,this.getExtendedLocaleConfig(t))}getExtendedLocaleConfig(t){if(t==="ar")return{meridiem:e=>e>12?"\u0645":"\u0635",formats:{LT:"h:mm a",LTS:"h:mm:ss a",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm a",LLLL:"dddd D MMMM YYYY h:mm a"}};if(t==="en-au")return{meridiem:e=>e>12?"pm":"am"};if(t==="en-ca")return{meridiem:e=>e>12?"p.m.":"a.m."};if(t==="el")return{meridiem:e=>e>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(t==="es-mx")return{formats:{LT:"h:mm a",LTS:"h:mm:ss a",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};if(t==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:e=>e>12?"pm":"am"};if(t==="ja")return{meridiem:e=>e>12?"\u5348\u5F8C":"\u5348\u524D"};if(t==="ko")return{meridiem:e=>e>12?"\uC624\uD6C4":"\uC624\uC804"};if(t==="no")return{meridiem:e=>e>12?"p.m.":"a.m."};if(t==="ru")return{meridiem:e=>e>12?"PM":"AM"};if(t==="zh-cn")return{meridiem:e=>e>12?"\u4E0B\u5348":"\u4E0A\u5348"};if(t==="zh-tw")return{formats:{LT:"Ah:mm",LTS:"Ah:mm:ss"}};if(t==="zh-hk")return{formats:{LT:"Ah:mm",LTS:"Ah:mm:ss"},meridiem:e=>e>12?"\u4E0B\u5348":"\u4E0A\u5348"}}getLocalizedTimeString(t){let e=t?.hourFormat==="12"||this.effectiveHourFormat&&this.effectiveHourFormat==="12",i=t?.locale??this.messages._lang,s=t?.numberingSystem??this.numberingSystem,a=t?.isoTimeString??this.value;return yt({fractionalSecondDigits:b(this.step),hour12:e,includeSeconds:this.shouldIncludeSeconds(),locale:i,numberingSystem:s,value:a})??""}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return b(this.step)>0}setCalcitePopoverEl(t){this.popoverEl=t,this.openHandler()}setInputEl(t){t&&(this.calciteInputEl=t)}setCalciteTimePickerEl(t){t&&(this.calciteTimePickerEl=t)}setLocaleTimeFormat({fractionalSecondFormatToken:t,hourFormat:e}){let i=this.messages._lang,s=A(i),a=/h+|H+/g,r=/\s+|a+|A+|\s+/g,m=this.localeConfig.formats.LT,n=this.localeConfig.formats.LTS;if(e==="12"&&s==="24"){let c=_(i),u=Mt(i);m=m.replaceAll(a,"h"),m=m.replaceAll(r,""),m=u===0?`${c}${m}`:`${m}${c}`,n=n.replaceAll(a,"h"),n=n.replaceAll(r,""),n=u===0?`${c}${n}`:`${n}${c}`}else e==="24"&&s==="12"?(m=m.replaceAll(a,"H"),m=m.replaceAll(r,""),n=n.replaceAll(a,"H"),n=n.replaceAll(r,"")):(m=this.localeDefaultLTFormat,n=this.localeDefaultLTSFormat);let l=n?.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let c=`ss.${t}`;n=l?n.replace(l[0],c):n.replace("ss",c)}else l&&(n=n.replace(l[0],"ss"));this.localeConfig.formats.LT=m,this.localeConfig.formats.LTS=n,v.updateLocale(this.getSupportedDayjsLocale(W(i)),this.localeConfig)}setInputValue(t){this.calciteInputEl&&(this.calciteInputEl.value=t)}setValue(t){let e=this.value,i=vt(t)||"";i!==e&&(this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=e,this.setLocalizedInputValue({isoTimeString:e})))}setValueDirectly(t){let e=this.shouldIncludeSeconds();this.value=Z(t,e),this.setLocalizedInputValue()}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:t,messages:e,readOnly:i}=this;return rt({disabled:this.disabled,children:U`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${Pt.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} .disabled=${t} icon=clock .label=${ct(this)} lang=${this.messages._lang??w} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextFocus=${this.calciteInternalInputFocusHandler} .readOnly=${i} role=combobox .scale=${this.scale} .status=${this.status} ${x(this.setInputEl)}>${!this.readOnly&&this.renderToggleIcon(this.open)||""}</calcite-input-text></div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${{initialFocus:!1}} .label=${e.chooseTime} lang=${this.messages._lang??w} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.calciteInputEl} trigger-disabled ${x(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.effectiveHourFormat} lang=${this.messages._lang??w} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open?void 0:-1)??w} .value=${this.value} ${x(this.setCalciteTimePickerEl)}></calcite-time-picker></calcite-popover>${dt({component:this})}${this.validationMessage&&this.status==="invalid"?pt({icon:this.validationIcon,id:Pt.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(t){return U`<span class=${N(_t.toggleIcon)} slot=action><calcite-icon .icon=${t?"chevron-up":"chevron-down"} .scale=${et(this.scale)}></calcite-icon></span>`}};j("calcite-input-time-picker",X);export{X as InputTimePicker};
3
+ v3.1.0-next.1 */
4
+ import{b as H,c as vt,d as A,e as Lt,i as _,j as Mt,k as St,l as E,n as yt,q as Z}from"./GLXAFXXM.js";import{a as gt,b as v}from"./REWHAGLT.js";import"./3SMC6VFN.js";import{a as ft}from"./BARDH7F2.js";import{b}from"./Y3OBCBK3.js";import{f as C,h as W,k as O}from"./UCWHFI2U.js";import{a as pt}from"./HEEQ3I7Q.js";import{a as mt,c as ht,e as ut,h as dt}from"./PP37ARQP.js";import{c as nt,d as lt,e as ct}from"./2WF6ZQML.js";import{a as at,b as rt}from"./MS2LLIKP.js";import{a as et}from"./BKVV5PO7.js";import"./CZUL7M7W.js";import{b as st}from"./GQKCOB4E.js";import{a as ot}from"./6NKLOXQX.js";import{b as x}from"./ZOXYMA5O.js";import{n as tt}from"./C63A7UGZ.js";import{b as it}from"./RCHNH62A.js";import"./TVGLGIXB.js";import{B as J,J as j,e as G,f as U,j as w,v as Y,w as K,x as N}from"./X3KIRADK.js";var q=function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,i,s){return i||s.slice(1)})},Q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},z=function(t,e){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,s,a){var r=a&&a.toUpperCase();return s||e[a]||Q[a]||q(e[r])})};var xt=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Tt=/\d/,I=/\d\d/,Ct=/\d{3}/,Ot=/\d{4}/,L=/\d\d?/,Ht=/[+-]?\d+/,At=/[+-]\d\d:?(\d\d)?|Z/,F=/\d*[^-_:/,()\s\d]+/,y={},Yt=function(t){return t=+t,t+(t>68?1900:2e3)};function Et(o){if(!o||o==="Z")return 0;var t=o.match(/([+-]|\d\d)/g),e=+(t[1]*60)+(+t[2]||0);return e===0?0:t[0]==="+"?-e:e}var d=function(t){return function(e){this[t]=+e}},kt=[At,function(o){var t=this.zone||(this.zone={});t.offset=Et(o)}],R=function(t){var e=y[t];return e&&(e.indexOf?e:e.s.concat(e.f))},Dt=function(t,e){var i,s=y,a=s.meridiem;if(!a)i=t===(e?"pm":"PM");else for(var r=1;r<=24;r+=1)if(t.indexOf(a(r,0,e))>-1){i=r>12;break}return i},zt={A:[F,function(o){this.afternoon=Dt(o,!1)}],a:[F,function(o){this.afternoon=Dt(o,!0)}],Q:[Tt,function(o){this.month=(o-1)*3+1}],S:[Tt,function(o){this.milliseconds=+o*100}],SS:[I,function(o){this.milliseconds=+o*10}],SSS:[Ct,function(o){this.milliseconds=+o}],s:[L,d("seconds")],ss:[L,d("seconds")],m:[L,d("minutes")],mm:[L,d("minutes")],H:[L,d("hours")],h:[L,d("hours")],HH:[L,d("hours")],hh:[L,d("hours")],D:[L,d("day")],DD:[I,d("day")],Do:[F,function(o){var t=y,e=t.ordinal,i=o.match(/\d+/);if(this.day=i[0],!!e)for(var s=1;s<=31;s+=1)e(s).replace(/\[|\]/g,"")===o&&(this.day=s)}],w:[L,d("week")],ww:[I,d("week")],M:[L,d("month")],MM:[I,d("month")],MMM:[F,function(o){var t=R("months"),e=R("monthsShort"),i=(e||t.map(function(s){return s.slice(0,3)})).indexOf(o)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[F,function(o){var t=R("months"),e=t.indexOf(o)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[Ht,d("year")],YY:[I,function(o){this.year=Yt(o)}],YYYY:[Ot,d("year")],Z:kt,ZZ:kt};function Vt(o){var t=o.afternoon;if(t!==void 0){var e=o.hours;t?e<12&&(o.hours+=12):e===12&&(o.hours=0),delete o.afternoon}}function Bt(o){o=z(o,y&&y.formats);for(var t=o.match(xt),e=t.length,i=0;i<e;i+=1){var s=t[i],a=zt[s],r=a&&a[0],m=a&&a[1];m?t[i]={regex:r,parser:m}:t[i]=s.replace(/^\[|\]$/g,"")}return function(n){for(var l={},c=0,u=0;c<e;c+=1){var h=t[c];if(typeof h=="string")u+=h.length;else{var f=h.regex,M=h.parser,p=n.slice(u),g=f.exec(p),S=g[0];M.call(l,S),n=n.replace(S,"")}}return Vt(l),l}}var Ut=function(t,e,i,s){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*t);var a=Bt(e),r=a(t),m=r.year,n=r.month,l=r.day,c=r.hours,u=r.minutes,h=r.seconds,f=r.milliseconds,M=r.zone,p=r.week,g=new Date,S=l||(!m&&!n?g.getDate():1),T=m||g.getFullYear(),k=0;m&&!n||(k=n>0?n-1:g.getMonth());var D=c||0,$=u||0,V=h||0,B=f||0;if(M)return new Date(Date.UTC(T,k,S,D,$,V,B+M.offset*60*1e3));if(i)return new Date(Date.UTC(T,k,S,D,$,V,B));var P;return P=new Date(T,k,S,D,$,V,B),p&&(P=s(P).week(p).toDate()),P}catch{return new Date("")}},$t=function(o,t,e){e.p.customParseFormat=!0,o&&o.parseTwoDigitYear&&(Yt=o.parseTwoDigitYear);var i=t.prototype,s=i.parse;i.parse=function(a){var r=a.date,m=a.utc,n=a.args;this.$u=m;var l=n[1];if(typeof l=="string"){var c=n[2]===!0,u=n[3]===!0,h=c||u,f=n[2];u&&(f=n[2]),y=this.$locale(),!c&&f&&(y=e.Ls[f]),this.$d=Ut(r,l,m,e),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),h&&r!=this.format(l)&&(this.$d=new Date("")),y={}}else if(l instanceof Array)for(var M=l.length,p=1;p<=M;p+=1){n[1]=l[p-1];var g=e.apply(this,n);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===M&&(this.$d=new Date(""))}else s.call(this,a)}};var wt=function(o,t,e){var i=t.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},a=function(c,u,h,f,M){var p=c.name?c:c.$locale(),g=s(p[u]),S=s(p[h]),T=g||S.map(function(D){return D.slice(0,f)});if(!M)return T;var k=p.weekStart;return T.map(function(D,$){return T[($+(k||0))%7]})},r=function(){return e.Ls[e.locale()]},m=function(c,u){return c.formats[u]||q(c.formats[u.toUpperCase()])},n=function(){var c=this;return{months:function(h){return h?h.format("MMMM"):a(c,"months")},monthsShort:function(h){return h?h.format("MMM"):a(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):a(c,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):a(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):a(c,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(c.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return n.bind(this)()},e.localeData=function(){var l=r();return{firstDayOfWeek:function(){return l.weekStart||0},weekdays:function(){return e.weekdays()},weekdaysShort:function(){return e.weekdaysShort()},weekdaysMin:function(){return e.weekdaysMin()},months:function(){return e.months()},monthsShort:function(){return e.monthsShort()},longDateFormat:function(u){return m(l,u)},meridiem:l.meridiem,ordinal:l.ordinal}},e.months=function(){return a(r(),"months")},e.monthsShort=function(){return a(r(),"monthsShort","months",3)},e.weekdays=function(l){return a(r(),"weekdays",null,null,l)},e.weekdaysShort=function(l){return a(r(),"weekdaysShort","weekdays",3,l)},e.weekdaysMin=function(l){return a(r(),"weekdaysMin","weekdays",2,l)}};var bt=function(o,t,e){var i=t.prototype,s=i.format;e.en.formats=Q,i.format=function(a){a===void 0&&(a=gt);var r=this.$locale(),m=r.formats,n=m===void 0?{}:m,l=z(a,n);return s.call(this,l)}};var It=function(o,t){var e=t.prototype.parse;t.prototype.parse=function(a){if(typeof a.date=="string"){var r=this.$locale();a.date=r&&r.preparse?r.preparse(a.date):a.date}return e.bind(this)(a)};var i=t.prototype.format;t.prototype.format=function(){for(var a=arguments.length,r=new Array(a),m=0;m<a;m++)r[m]=arguments[m];var n=i.call.apply(i,[this].concat(r)),l=this.$locale();return l&&l.postformat?l.postformat(n):n};var s=t.prototype.fromToBase;s&&(t.prototype.fromToBase=function(a,r,m,n){var l=this.$locale()||m.$locale();return s.call(this,a,r,m,n,l&&l.postformat)})};var Ft=function(o,t,e){e.updateLocale=function(i,s){var a=e.Ls,r=a[i];if(r){var m=s?Object.keys(s):[];return m.forEach(function(n){r[n]=s[n]}),r}}};var Wt=G`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`,_t={toggleIcon:"toggle-icon"},Pt={validationMessage:"inputTimePickerValidationMessage"},Zt=new Map([["ar",()=>import("./PYKL3UXB.js")],["bg",()=>import("./W4KCCO3S.js")],["bs",()=>import("./LWDA24FV.js")],["ca",()=>import("./MUTDQR2Z.js")],["cs",()=>import("./XB2N542R.js")],["da",()=>import("./QGB26YIT.js")],["de",()=>import("./4SHUGCZX.js")],["de-at",()=>import("./YAK6QYAD.js")],["de-ch",()=>import("./XQ2V4OKL.js")],["el",()=>import("./TEKJ72AV.js")],["en",()=>import("./FAIDPNWL.js")],["en-au",()=>import("./NJTWDWJ6.js")],["en-ca",()=>import("./6H5WIVJ4.js")],["en-gb",()=>import("./QVP5HCOB.js")],["es",()=>import("./FWVXVZ5U.js")],["es-mx",()=>import("./6QG5BRME.js")],["et",()=>import("./5MXBYIJG.js")],["fi",()=>import("./L7WYBSU7.js")],["fr",()=>import("./4HUU2L2V.js")],["fr-ch",()=>import("./DNEVV2IP.js")],["he",()=>import("./DOVOYDZC.js")],["hi",()=>import("./M4LAOVIM.js")],["hr",()=>import("./3YZG6VYF.js")],["hu",()=>import("./5JULVZM5.js")],["id",()=>import("./LHY72WD7.js")],["it",()=>import("./PIWXS5AK.js")],["it-ch",()=>import("./AOZF4GOY.js")],["ja",()=>import("./D7ZHNOUH.js")],["ko",()=>import("./Z3OQKXEK.js")],["lt",()=>import("./4SCO4SXA.js")],["lv",()=>import("./WOGAISGZ.js")],["mk",()=>import("./SZO6Z4W4.js")],["nl",()=>import("./RQQGYM4U.js")],["nb",()=>import("./N23ORJSP.js")],["pl",()=>import("./SMBWWW7R.js")],["pt",()=>import("./WONIIUPU.js")],["pt-br",()=>import("./OJ3C2QFY.js")],["ro",()=>import("./AMR3QYWL.js")],["ru",()=>import("./ZDABD34W.js")],["sk",()=>import("./BQDR5XUL.js")],["sl",()=>import("./JEJ2LCR7.js")],["sr",()=>import("./V7AV4Q4O.js")],["sv",()=>import("./I3OQO7ND.js")],["th",()=>import("./JLUDRUSH.js")],["tr",()=>import("./TEUS7BWM.js")],["uk",()=>import("./LPG3INFS.js")],["vi",()=>import("./Z2U7XLTE.js")],["zh-cn",()=>import("./YVDTR6KO.js")],["zh-hk",()=>import("./2BZ4W6ME.js")],["zh-tw",()=>import("./ORQNL5KM.js")]]);v.extend($t);v.extend(wt);v.extend(bt);v.extend(It);v.extend(Ft);var X=class extends K{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.hourFormat="user",this.messages=ot(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=Y({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=Y({cancelable:!1}),this.calciteInputTimePickerChange=Y(),this.calciteInputTimePickerClose=Y({cancelable:!1}),this.calciteInputTimePickerOpen=Y({cancelable:!1}),this.setLocalizedInputValue=t=>{this.setInputValue(this.getLocalizedTimeString(t))},this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:16,effectiveHourFormat:16,disabled:7,focusTrapDisabled:7,form:3,hourFormat:3,max:3,messageOverrides:0,min:3,name:1,numberingSystem:1,open:7,overlayPositioning:1,placement:3,readOnly:7,required:7,scale:3,status:3,step:9,validationIcon:[3,{converter:J}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=Wt}get value(){return this._value}set value(t){let e=this._value;t!==e&&(this._value=t,this.valueWatcher(t))}async reposition(t=!1){this.popoverEl?.reposition(t)}async setFocus(){await it(this),tt(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,nt(this),ht(this)}async load(){await this.loadLocaleData(),this.updateLocale()}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),t.has("hourFormat")&&this.updateLocale(),t.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),t.has("messages")&&this.langWatcher(),t.has("numberingSystem")&&this.setLocalizedInputValue({numberingSystem:t.get("numberingSystem")}),t.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,t.get("step"))}updated(){at(this)}loaded(){E(this.value)&&this.setLocalizedInputValue()}disconnectedCallback(){super.disconnectedCallback(),lt(this),ut(this)}async langWatcher(){await this.loadLocaleData(),this.updateLocale()}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}stepWatcher(t,e){(e>=60&&t>0&&t<60||t>=60&&e>0&&e<60)&&this.setValueDirectly(this.value)}valueWatcher(t){this.userChangedValue||this.setValueDirectly(t),this.userChangedValue=!1}hostBlurHandler(){let t=this.delocalizeTimeString(this.calciteInputEl.value);t?t!==this.value&&(this.setValue(t),this.setLocalizedInputValue()):this.setValue(""),this.deactivate()}calciteInternalInputFocusHandler(t){this.readOnly||t.stopPropagation()}calciteInternalInputInputHandler(t){let{messages:{_lang:e},numberingSystem:i}=this;if(i&&i!=="latn"){let s=t.target;O.numberFormatOptions={locale:e,numberingSystem:i,useGrouping:!1};let a=O.delocalize(s.value).split("").map(r=>st.includes(r)?O.numberFormatter.format(Number(r)):r).join("");this.setInputValue(a)}}timePickerChangeHandler(t){t.stopPropagation();let e=t.target.value,i=this.shouldIncludeSeconds();this.setValue(Z(e,i)),this.setLocalizedInputValue({isoTimeString:e})}updateLocale(t=this.messages._lang){this.effectiveHourFormat=this.hourFormat==="user"?A(this.messages._lang):this.hourFormat,this.localeDefaultLTFormat=this.localeConfig.formats.LT,this.localeDefaultLTSFormat=this.localeConfig.formats.LTS,this.setLocalizedInputValue({locale:t})}popoverBeforeOpenHandler(t){t.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(t){t.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(t){t.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(t){t.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(t){ft("time",this,t)}delocalizeTimeString(t){v.locale(this.getSupportedDayjsLocale(this.messages._lang.toLowerCase()));let e=this.delocalizeTimeStringToParts(t),i;if(this.shouldIncludeFractionalSeconds()){let s=b(this.step),a=this.delocalizeTimeStringToParts(t,"S");if(s===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(e);else{let r=this.delocalizeTimeStringToParts(t,"SS");if(s===2)r.millisecond!==0?i=this.getTimeStringFromParts(r):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(e);else if(s>=3){let m=this.delocalizeTimeStringToParts(t,"SSS");m.millisecond!==0?i=this.getTimeStringFromParts(m):r.millisecond!==0?i=this.getTimeStringFromParts(r):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(e)}}}else i=this.getTimeStringFromParts(e);return i}delocalizeTimeStringToParts(t,e){let i=this.messages._lang,s=t,a=St(this.effectiveHourFormat,i)?Lt(i):A(i);if(C.has(i)&&a==="12"){let m=C.get(i).am,n=C.get(i).pm,l=_(i),c=l===l.toUpperCase()?"AM":"am",u=l===l.toUpperCase()?"PM":"pm";s=s.includes(n)?s.replaceAll(n,u):s.replaceAll(m,c)}this.setLocaleTimeFormat({fractionalSecondFormatToken:e,hourFormat:a});let r=v(s,["LTS","LT"]);return r.isValid()?{hour:r.get("hour"),minute:r.get("minute"),second:r.get("second"),millisecond:r.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(t){let e="";if(!t)return e;if(t.hour!==null&&t.minute!==null&&(e=`${H(t.hour)}:${H(t.minute)}`,this.shouldIncludeSeconds()&&t.second!==null&&(e+=`:${H(t.second)}`,this.shouldIncludeFractionalSeconds()&&t.millisecond!==null))){let i=(t.millisecond*.001).toFixed(b(this.step));e+=`.${i.toString().replace("0.","")}`}return e}keyDownHandler(t){let{defaultPrevented:e,key:i}=t;if(!e)if(i==="Enter"){if(mt(this)&&(t.preventDefault(),this.calciteInputEl.setFocus()),t.composedPath().includes(this.calciteTimePickerEl))return;let s=this.delocalizeTimeString(this.calciteInputEl.value);E(s)?(this.setValue(s),this.setLocalizedInputValue()):this.setValue("")}else i==="ArrowDown"?(this.open=!0,t.preventDefault()):this.open&&this.focusTrapDisabled&&i==="Escape"&&(this.open=!1,t.preventDefault())}getSupportedDayjsLocale(t){let e=t.toLowerCase();return e==="no"?"nb":e==="pt-pt"?"pt":e}async loadLocaleData(){let t=W(this.messages._lang).toLowerCase();t=this.getSupportedDayjsLocale(t);let{default:e}=await Zt.get(t)();this.localeConfig=e,v.locale(this.localeConfig,null,!0),v.updateLocale(t,this.getExtendedLocaleConfig(t))}getExtendedLocaleConfig(t){if(t==="ar")return{meridiem:e=>e>12?"\u0645":"\u0635",formats:{LT:"h:mm a",LTS:"h:mm:ss a",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm a",LLLL:"dddd D MMMM YYYY h:mm a"}};if(t==="en-au")return{meridiem:e=>e>12?"pm":"am"};if(t==="en-ca")return{meridiem:e=>e>12?"p.m.":"a.m."};if(t==="el")return{meridiem:e=>e>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(t==="es-mx")return{formats:{LT:"h:mm a",LTS:"h:mm:ss a",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};if(t==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:e=>e>12?"pm":"am"};if(t==="ja")return{meridiem:e=>e>12?"\u5348\u5F8C":"\u5348\u524D"};if(t==="ko")return{meridiem:e=>e>12?"\uC624\uD6C4":"\uC624\uC804"};if(t==="no")return{meridiem:e=>e>12?"p.m.":"a.m."};if(t==="ru")return{meridiem:e=>e>12?"PM":"AM"};if(t==="zh-cn")return{meridiem:e=>e>12?"\u4E0B\u5348":"\u4E0A\u5348"};if(t==="zh-tw")return{formats:{LT:"Ah:mm",LTS:"Ah:mm:ss"}};if(t==="zh-hk")return{formats:{LT:"Ah:mm",LTS:"Ah:mm:ss"},meridiem:e=>e>12?"\u4E0B\u5348":"\u4E0A\u5348"}}getLocalizedTimeString(t){let e=t?.hourFormat==="12"||this.effectiveHourFormat&&this.effectiveHourFormat==="12",i=t?.locale??this.messages._lang,s=t?.numberingSystem??this.numberingSystem,a=t?.isoTimeString??this.value;return yt({fractionalSecondDigits:b(this.step),hour12:e,includeSeconds:this.shouldIncludeSeconds(),locale:i,numberingSystem:s,value:a})??""}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return b(this.step)>0}setCalcitePopoverEl(t){this.popoverEl=t,this.openHandler()}setInputEl(t){t&&(this.calciteInputEl=t)}setCalciteTimePickerEl(t){t&&(this.calciteTimePickerEl=t)}setLocaleTimeFormat({fractionalSecondFormatToken:t,hourFormat:e}){let i=this.messages._lang,s=A(i),a=/h+|H+/g,r=/\s+|a+|A+|\s+/g,m=this.localeConfig.formats.LT,n=this.localeConfig.formats.LTS;if(e==="12"&&s==="24"){let c=_(i),u=Mt(i);m=m.replaceAll(a,"h"),m=m.replaceAll(r,""),m=u===0?`${c}${m}`:`${m}${c}`,n=n.replaceAll(a,"h"),n=n.replaceAll(r,""),n=u===0?`${c}${n}`:`${n}${c}`}else e==="24"&&s==="12"?(m=m.replaceAll(a,"H"),m=m.replaceAll(r,""),n=n.replaceAll(a,"H"),n=n.replaceAll(r,"")):(m=this.localeDefaultLTFormat,n=this.localeDefaultLTSFormat);let l=n?.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let c=`ss.${t}`;n=l?n.replace(l[0],c):n.replace("ss",c)}else l&&(n=n.replace(l[0],"ss"));this.localeConfig.formats.LT=m,this.localeConfig.formats.LTS=n,v.updateLocale(this.getSupportedDayjsLocale(W(i)),this.localeConfig)}setInputValue(t){this.calciteInputEl&&(this.calciteInputEl.value=t)}setValue(t){let e=this.value,i=vt(t)||"";i!==e&&(this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=e,this.setLocalizedInputValue({isoTimeString:e})))}setValueDirectly(t){let e=this.shouldIncludeSeconds();this.value=Z(t,e),this.setLocalizedInputValue()}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:t,messages:e,readOnly:i}=this;return rt({disabled:this.disabled,children:U`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${Pt.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} .disabled=${t} icon=clock .label=${ct(this)} lang=${this.messages._lang??w} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextFocus=${this.calciteInternalInputFocusHandler} .readOnly=${i} role=combobox .scale=${this.scale} .status=${this.status} ${x(this.setInputEl)}>${!this.readOnly&&this.renderToggleIcon(this.open)||""}</calcite-input-text></div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${{initialFocus:!1}} .label=${e.chooseTime} lang=${this.messages._lang??w} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.calciteInputEl} trigger-disabled ${x(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.effectiveHourFormat} lang=${this.messages._lang??w} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open?void 0:-1)??w} .value=${this.value} ${x(this.setCalciteTimePickerEl)}></calcite-time-picker></calcite-popover>${dt({component:this})}${this.validationMessage&&this.status==="invalid"?pt({icon:this.validationIcon,id:Pt.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(t){return U`<span class=${N(_t.toggleIcon)} slot=action><calcite-icon .icon=${t?"chevron-up":"chevron-down"} .scale=${et(this.scale)}></calcite-icon></span>`}};j("calcite-input-time-picker",X);export{X as InputTimePicker};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
3
+ v3.1.0-next.1 */
4
4
  function e(r,$,t){return $?`${r}-${$}`:t?`${r}-${t}`:`${r}-m`}export{e as a};
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
3
+ v3.1.0-next.1 */
4
4
  var E=class{resolve(t){}reject(t){}constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};function Fe(t,e){let o=t;for(;o;){if(o===e)return!0;if(!o.parentNode)return!1;o.parentNode instanceof ShadowRoot?o=o.parentNode.host:o=o.parentNode}return!1}function Ge(t,e,o){let{subscribe:s}=Ke(e);return s(n=>{n.some(i=>Fe(t,i.target))&&o()})}var bt={};function Ke(t){let e=t.join(","),o=bt[e];if(o!==void 0)return o;let s=new Set,n=new MutationObserver(i=>s.forEach(c=>c(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe(i){return s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),bt[e]=void 0)}}};return bt[e]=r,r}function Je(t,e){let o=t;for(;o;){let s=o.closest?.(e);if(s)return s;let n=o.getRootNode?.();if(n===globalThis.document)return null;o=n.host}return null}function Ye(t,e,o){return Je(t,`[${e}]`)?.getAttribute(e)??o}function p(t,e,...o){try{return t?.call(e,...o)}catch(s){console.error(s,t)}}async function H(t,e,...o){try{let s=t?.call(e,...o);return s instanceof Promise?await s:s}catch(s){console.error(s,t)}}var Ze=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],Qe=new Set(Ze),tt="en",Xe={pt:"pt-PT",nb:"no",zh:"zh-CN"};async function to(t,e,o=""){let s=`${e}/${o}`,n=`${s}${t}.json`;return _t[n]??(_t[n]=Wt(t,s)),await _t[n]}var _t={};async function Wt(t,e){let o=`${e}${t}.json`;try{let s=await fetch(o);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return t===tt?{}:await Wt(tt,e)}function Ct(t){let e=Ye(t,"lang",globalThis.navigator?.language||tt);return{lang:e,t9nLocale:qt(e)}}function qt(t){let[e,o]=t.split("-"),s=e.toLowerCase(),n=s;return o&&(n=`${s}-${o.toUpperCase()}`),n=Xe[n]??n,Qe.has(n)?n:o?qt(s):tt}function Bt(t,e,o,s){let n,r=()=>void eo(t,e(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&o(i),n=i}).catch(console.error);return queueMicrotask(r),Ge(t,["lang"],r)}async function eo(t,e,o=t.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:s,t9nLocale:n}=Ct(t),r=`${e}/${o}/t9n`,c=o===null?{}:await to(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:c}}var et=t=>t.replace(oo,(e,o)=>`${o===0?"":"-"}${e.toLowerCase()}`),oo=/[A-Z]+(?![a-z])|[A-Z]/gu;function Ft(t,e){let o=e>so?no:e/ro,s=0,n=setInterval(()=>{s+=o,s>=e&&(clearInterval(n),t())},o);return n}var so=4e3,no=2e3,ro=4;function Gt(t){return t!==void 0}function Kt(t,e){if(e){let o=t.constructor.elementProperties;t.manager.internals.members=Object.fromEntries(Array.from(o,([s,n])=>n.noAccessor?void 0:[s,[(n.readOnly?2048:0)|(n.state?32:16)]]).filter(Gt))}else{let o=t.constructor,s=o.__registerControllers?.(t)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");t.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([n,[r]])=>(r&63)!==0))}}function Jt(t,e=8){return t==null||typeof t=="object"||typeof t=="function"?t:e&4?t==="false"?!1:t===""||!!t:e&2?Number.parseFloat(t):e&1?String(t):t}var Yt=(t,e)=>t.manager.internals.members?.[e]?.[0];var st=Symbol.for("controller");var Xt=t=>typeof t=="object"&&t!==null&&(st in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t);var W;function P(t){W!==t&&(W=t,queueMicrotask(()=>{W===t&&(W=void 0)}))}function T(t){return W}var O=[];function xt(t){if(t===void 0){O=[];return}let e=O.indexOf(t);O=e===-1?[...O,t]:O.slice(0,e+1),queueMicrotask(()=>{O=[]})}function At(){return O}var j;function io(t){j!==t&&(j=t,queueMicrotask(()=>{j===t&&(j=void 0)}))}function ao(){let t=j;return j=void 0,t}var co=async(t,e)=>{let o=Lt(t);if(o===void 0)return t;if(await o.ready,typeof e=="function"){let s=o.watchExports(n=>e(n,s))}return o.exports},lo=async t=>{let e=Lt(t);return await e.ready,e},Lt=t=>{let o=T().manager.internals.resolveExports(t);if(o!==void 0)return o;if(Xt(t))return t;let s=ao();if(s!==void 0)return s},q={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,te;te=st;var nt=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new E,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[te]=!0,this.ready=this._ready.promise,this._exports=Qt(this),this._exportWatchers=new Set;let e=t??T(new.target.name);this.component=e,this.component.addController(this),this.component.manager===void 0||(xt(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:t}=this.component;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t._loadCalled&&this.triggerLoad().then(()=>{t.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(t){let e=this._exports;e!==t&&(this._exports=t,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,e)),this._ready.resolve(t)}setProvisionalExports(t,e=!0){this._exports=e?Qt(t):t,this._exportWatchers.forEach(p)}watchExports(t){let e=()=>t(this._exports);return this._exportWatchers.add(e),()=>void this._exportWatchers.delete(e)}get use(){return P(this.component),co}get useRef(){return P(this.component),lo}get useRefSync(){return P(this.component),Lt}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let t=this;t.hostLoad&&await H(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(H)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let t=this;t.hostLoaded&&p(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(t){let e=this;e.hostUpdate&&p(e.hostUpdate,e,t),this._callbacks.hostUpdate.forEach(Zt,t)}triggerUpdated(t){let e=this;e.hostUpdated&&p(e.hostUpdated,e,t),this._callbacks.hostUpdated.forEach(Zt,t)}triggerDestroy(){let t=this;t.hostDestroy&&p(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let t=this;t.hostLifecycle&&this._callLifecycle(()=>t.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){P(this.component);let e=p(t);(Array.isArray(e)?e:[e]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Zt(t){p(t,void 0,this)}var ee=nt;function Qt(t){if(typeof t!="object"&&typeof t!="function"||t===null)return t;let e=new Proxy(t,{get(o,s,n){if(!(ho.has(s)&&s in o&&o[s]===e)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,n)},set:(o,s,n,r)=>Reflect.set(o,s,n,r)});return e}var ho=new Set(["exports","_exports"]);function oe(t,e,o){let s=Object.keys(t),n=s.length;S===void 0&&queueMicrotask(F),S??(S=new Map);let r=S.get(t);return r===void 0&&(r={callbacks:[],keyCount:n},S.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let c=l=>p(e,null,l),a=i[n];a===void 0?c(void 0):t[a]===o?c(a):c(void 0)}),o}var S=void 0;function F(){Array.from(S?.entries()??[]).forEach(([t,{callbacks:e}])=>{let o=Object.keys(t);e.forEach(s=>s(o))}),S=void 0}function rt(t,e,o){var s;let n=e,r=t.manager.internals;(s=r.allWatchers)[n]??(s[n]=[]);let i=r.allWatchers[n],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var se=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let e=this.component.manager.internals;Object.entries(e.members).forEach(([o,[s]])=>{var n;s&2048&&((n=e.setters)[o]??(n[o]=[]),e.setters[o].push(e.readonlySetter))})},this.trackedValue=$t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(e,o,s)=>{if(q.readOnly)return e;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(e)}"`)},this.component=t}firePropTrackers(t,e){let o=this.keyTrackers;this.trackedValue=$t,this.keyTrackers=[],o.forEach(s=>s(t,e))}getSetProxy(t){let e=this.component,o=e.constructor.prototype;if(this._getSetProxy(o,t,"class"),e.manager.isLit)return;let s=e.el.constructor.prototype;o!==s&&this._getSetProxy(s,t,"html")}_getSetProxy(t,e,o){let s=this.component,n=Yt(s,e),r;do r=Object.getOwnPropertyDescriptor(t,e);while(!r&&(t=Object.getPrototypeOf(t)));if(!r)return;let i=r.get,c=r.set,a=ot in i,l=ot in c;if(a&&l)return;let d=!a,h=!l,m=d?function(){let g=i.call(this),C=B.get(this);if(q.getter||C===void 0)return g;let M=C.manager.internals;g=M.accessorGetter[e](g,e);let v=M.getters[e]??wt;for(let w=0;w<v.length;w++)g=v[w](g,e);return g}:i,y=h?function(g){let C=i.call(this),M=B.get(this);if(M===void 0){c.call(this,g);return}let v=M.manager.isLit?g??void 0:Jt(g,n),w=M.manager.internals;if(v===C)c.call(this,v);else{let Ht=q.setter?wt:w.setters[e]??wt;for(let z=0;z<Ht.length&&(v=Ht[z](v,C,e),v!==C);z++);v=w.accessorSetter[e](v,C,e),c.call(this,v),v!==C&&w.enabledWatchers[e]?.forEach(z=>z(v,C,e))}w.keyTrackers.length>0&&w?.firePropTrackers(e,g)}:c;d&&(m[ot]=!0),h&&(y[ot]=!0),Object.defineProperty(t,e,{...r,get:m,set:y})}markExports(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this._exports.set(e,t)}resolveExports(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this._exports.get(t)}},wt=[],ot=Symbol(),$t=Symbol();function ne(t,e,o){let s=t.manager.internals;return s.trackedValue!==$t&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((n,r)=>p(e,void 0,o===r?n:void 0)),o}function it(t=[T(),...At()],e,o){let s=Array.isArray(t)?t:[t],n=s.length+1,r=c=>{n-=1,c!==void 0&&(n=Math.min(n,0)),n===0&&e(c)};s.forEach(c=>oe(c,a=>r(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&ne(i,c=>r(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function re(t){q.readOnly=!0;try{return t()}finally{q.readOnly=!1}}var ie=t=>(...e)=>{let o=At(),s=new t(...e),n=s.exports;xt(o.at(-1));let r=s.component.manager.internals;r.markExports(s,n),s.watchExports(c=>r.markExports(s,c)),io(s);let i=[s.component,...o].reverse();return it(i,c=>c===void 0?void 0:po(s,c,n),n)};function po(t,{host:e,key:o,isReactive:s},n){let r=e,i=r[o]!==t.exports,c=r[o]!==n,a=n!==t.exports;if(i&&!c&&a&&(r[o]=t.exports),e===t.component){if(s){let d=t.component.manager.internals;c&&d.markExports(t,r[o]),rt(t.component,o,h=>{h!==t.exports&&d.markExports(t,h)})}t.assignedProperty=s?void 0:o}t.watchExports(()=>{if(r[o]===t.exports)return;let d=t.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?re(()=>{r[o]=t.exports}):r[o]=t.exports})}var ce=(t,e)=>new uo(t,e),uo=class extends ee{constructor(t,e){let o="addController"in t,s=new Set;function n(a){s.add(a),!(st in a)&&t.renderRoot&&t.el.isConnected&&a.hostConnected?.()}function r(a){s.delete(a),a.controllerRemoved?.()}let i=t;if(i.addController=n,i.removeController=r,!o){let a=e??t.constructor.__forceUpdate;i.requestUpdate=()=>a(t)}super(t),this.internals=new se(this.component),this.destroyed=!1,this._updatePromise=new E,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Kt(t,o),this._controllers=s,this.exports=void 0,this.hasDestroy=Ot in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=ae,c.accessorSetter[a]=ae,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(t,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),P(t),B.set(t.el,t),B.set(t,t)}_bindLifecycleMethods(){let t=this.component,e=this.isLit,o=t.el===t;this._originalLifecycles={_connectedCallback:e||o?void 0:t.connectedCallback,_disconnectedCallback:e||o?void 0:t.disconnectedCallback,_load:e?t.load:t.componentWillLoad,_loaded:e?t.loaded:t.componentDidLoad,_willUpdate:e?void 0:t.componentWillUpdate,_updated:e?void 0:t.componentDidUpdate,_destroy:t.destroy};let s=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),r=this._update.bind(this),i=this._updated.bind(this);e?t.constructor.prototype.addController.call(t,{hostConnected:s,hostDisconnected:n,hostUpdate:r,hostUpdated:i}):(t.connectedCallback=s,t.disconnectedCallback=n,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=r,t.componentDidUpdate=i),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let e=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ot} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let t=this.internals;t.enabledWatchers=t.allWatchers,F(),t.enableReadonly?.(),this._controllers.forEach(mo),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(vo),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,yo)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&rt(this.component,Ot,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(go),this._originalLifecycles._loaded?.call(this.component)}_update(){let t=this.component;return this._controllers.forEach(Eo,t.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let t=this.component;if(this._controllers.forEach(bo,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{let e=this._updatePromise;this._updatePromise=new E,e.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(_o),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let t=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=Ft(t,fo)}}},Ot="autoDestroyDisabled",fo=1e3;var ae=t=>t;function mo(t){"triggerConnected"in t?t.triggerConnected():p(t.hostConnected,t)}function vo(t){"triggerDisconnected"in t?t.triggerDisconnected():p(t.hostDisconnected,t)}async function yo(t){"triggerLoad"in t?await t.triggerLoad():await H(t.hostLoad,t)}function go(t){"triggerLoaded"in t?t.triggerLoaded():p(t.hostLoaded,t)}function Eo(t){"triggerUpdate"in t?t.triggerUpdate(this):p(t.hostUpdate,t,this)}function bo(t){"triggerUpdated"in t?t.triggerUpdated(this):p(t.hostUpdated,t,this)}function _o(t){"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t)}var Co=t=>le(void 0,t),Ss=t=>e=>le(e,t),wo=class extends nt{constructor(t,e){super(t);let o=this.exports;try{P(this.component);let s=e(this.component,this),n=this.exports!==o;if(s instanceof Promise){n||this.setProvisionalExports(s);let r=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await r)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},le=ie(wo),Ps=(t,e)=>new $o(t,e),$o=class extends nt{constructor(t,e){super(),this._attributes=t,this._callback=e,this._observer=new MutationObserver(o=>{o.forEach(s=>{t.includes(s.attributeName)&&e.call(this.component,this.component.el.getAttribute(s.attributeName),s.oldValue,s.attributeName)})})}hostConnected(){this._attributes.forEach(t=>{this.component.el.hasAttribute(t)&&this._callback.call(this.component,null,this.component.el.getAttribute(t),t)}),this._observer.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this._attributes})}hostDisconnected(){this._observer.disconnect()}};var Ns=t=>(e={})=>Co((o,s)=>{let n=Ct(o.el),r={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=o;s.onLifecycle(()=>Bt(o.el,()=>t("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};s.exports=h;let m=l.componentLabel;typeof m=="string"&&"label"in o&&o.label==null&&(o.label??(o.label=m)),c(i.messageOverrides)},e.name));function c(a){let l=s.exports,d=l._original??l,h=he(d,a);a&&(h._original=d),s.exports=h}return"messageOverrides"in i&&s.onLifecycle(()=>rt(i,"messageOverrides",c)),e.blocking?(s.setProvisionalExports(r,!1),s.ready):r});function he(t,e){if(!e)return t;let o={...t};return Object.entries(e).forEach(([s,n])=>{typeof n=="object"?o[s]=he(t[s],n):o[s]=n??t[s]}),o}var at=globalThis,ct=at.ShadowRoot&&(at.ShadyCSS===void 0||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,St=Symbol(),de=new WeakMap,G=class{constructor(e,o,s){if(this._$cssResult$=!0,s!==St)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o,o=this.t;if(ct&&e===void 0){let s=o!==void 0&&o.length===1;s&&(e=de.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&de.set(o,e))}return e}toString(){return this.cssText}},pe=t=>new G(typeof t=="string"?t:t+"",void 0,St),xo=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]);return new G(o,t,St)},Pt=(t,e)=>{if(ct)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let s=document.createElement("style"),n=at.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=o.cssText,t.appendChild(s)}},lt=ct?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let s of e.cssRules)o+=s.cssText;return pe(o)})(t):t;var Nt=globalThis,ht=Nt.trustedTypes,ue=ht?ht.createPolicy("lit-html",{createHTML:t=>t}):void 0,kt="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Dt="?"+$,Ao=`<${Dt}>`,D=document,J=()=>D.createComment(""),Y=t=>t===null||typeof t!="object"&&typeof t!="function",Rt=Array.isArray,Ee=t=>Rt(t)||typeof t?.[Symbol.iterator]=="function",Tt=`[
5
5
  \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fe=/-->/g,me=/>/g,N=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ye=/"/g,be=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Ms=Ut(1),js=Ut(2),Vs=Ut(3),f=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ge=new WeakMap,k=D.createTreeWalker(D,129);function _e(t,e){if(!Rt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(e):e}var Ce=(t,e)=>{let o=t.length-1,s=[],n,r=e===2?"<svg>":e===3?"<math>":"",i=K;for(let c=0;c<o;c++){let a=t[c],l,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===K?d[1]==="!--"?i=fe:d[1]!==void 0?i=me:d[2]!==void 0?(be.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=N):d[3]!==void 0&&(i=N):i===N?d[0]===">"?(i=n??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?N:d[3]==='"'?ye:ve):i===ye||i===ve?i=N:i===fe||i===me?i=K:(i=N,n=void 0);let y=i===N&&t[c+1].startsWith("/>")?" ":"";r+=i===K?a+Ao:h>=0?(s.push(l),a.slice(0,h)+kt+a.slice(h)+$+y):a+$+(h===-2?c:y)}return[_e(t,r+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]},Z=class t{constructor({strings:e,_$litType$:o},s){let n;this.parts=[];let r=0,i=0,c=e.length-1,a=this.parts,[l,d]=Ce(e,o);if(this.el=t.createElement(l,s),k.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=k.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(kt)){let m=d[i++],y=n.getAttribute(h).split($),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?pt:_[1]==="?"?ut:_[1]==="@"?ft:U}),n.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:r}),n.removeAttribute(h));if(be.test(n.tagName)){let h=n.textContent.split($),m=h.length-1;if(m>0){n.textContent=ht?ht.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],J()),k.nextNode(),a.push({type:2,index:++r});n.append(h[m],J())}}}else if(n.nodeType===8)if(n.data===Dt)a.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf($,h+1))!==-1;)a.push({type:7,index:r}),h+=$.length-1}r++}}static createElement(e,o){let s=D.createElement("template");return s.innerHTML=e,s}};function R(t,e,o=t,s){if(e===f)return e;let n=s!==void 0?o._$Co?.[s]:o._$Cl,r=Y(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(t),n._$AT(t,o,s)),s!==void 0?(o._$Co??=[])[s]=n:o._$Cl=n),n!==void 0&&(e=R(t,n._$AS(t,e.values),n,s)),e}var dt=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:s}=this._$AD,n=(e?.creationScope??D).importNode(o,!0);k.currentNode=n;let r=k.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new V(r,r.nextSibling,this,e):a.type===1?l=new a.ctor(r,a.name,a.strings,this,e):a.type===6&&(l=new mt(r,this,e)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(r=k.nextNode(),i++)}return k.currentNode=D,n}p(e){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,o),o+=s.strings.length-2):s._$AI(e[o])),o++}},V=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,s,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=R(this,e,o),Y(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==f&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ee(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==u&&Y(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:s}=e,n=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Z.createElement(_e(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(o);else{let r=new dt(n,this),i=r.u(this.options);r.p(o),this.T(i),this._$AH=r}}_$AC(e){let o=ge.get(e.strings);return o===void 0&&ge.set(e.strings,o=new Z(e)),o}k(e){Rt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,n=0;for(let r of e)n===o.length?o.push(s=new t(this.O(J()),this.O(J()),this,this.options)):s=o[n],s._$AI(r),n++;n<o.length&&(this._$AR(s&&s._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,s,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(e,o=this,s,n){let r=this.strings,i=!1;if(r===void 0)e=R(this,e,o,0),i=!Y(e)||e!==this._$AH&&e!==f,i&&(this._$AH=e);else{let c=e,a,l;for(e=r[0],a=0;a<r.length-1;a++)l=R(this,c[s+a],o,a),l===f&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===u?e=u:e!==u&&(e+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!n&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pt=class extends U{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}},ut=class extends U{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}},ft=class extends U{constructor(e,o,s,n,r){super(e,o,s,n,r),this.type=5}_$AI(e,o=this){if((e=R(this,e,o,0)??u)===f)return;let s=this._$AH,n=e===u&&s!==u||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==u&&(s===u||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},mt=class{constructor(e,o,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){R(this,e)}},we={M:kt,P:$,A:Dt,C:1,L:Ce,R:dt,D:Ee,V:R,I:V,H:U,N:ut,U:ft,B:pt,F:mt},Lo=Nt.litHtmlPolyfillSupport;Lo?.(Z,V),(Nt.litHtmlVersions??=[]).push("3.2.1");var $e=(t,e,o)=>{let s=o?.renderBefore??e,n=s._$litPart$;if(n===void 0){let r=o?.renderBefore??null;s._$litPart$=n=new V(e.insertBefore(J(),r),r,void 0,o??{})}return n._$AI(t),n};var{is:Oo,defineProperty:So,getOwnPropertyDescriptor:Po,getOwnPropertyNames:To,getOwnPropertySymbols:No,getPrototypeOf:ko}=Object,yt=globalThis,xe=yt.trustedTypes,Do=xe?xe.emptyScript:"",Ro=yt.reactiveElementPolyfillSupport,Q=(t,e)=>t,vt={toAttribute(t,e){switch(e){case Boolean:t=t?Do:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},It=(t,e)=>!Oo(t,e),Ae={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:It};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;var x=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=Ae){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(e,s,o);n!==void 0&&So(this.prototype,e,n)}}static getPropertyDescriptor(e,o,s){let{get:n,set:r}=Po(this.prototype,e)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return n?.call(this)},set(i){let c=n?.call(this);r.call(this,i),this.requestUpdate(e,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ae}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;let e=ko(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Q("properties"))){let o=this.properties,s=[...To(o),...No(o)];for(let n of s)this.createProperty(n,o[n])}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[s,n]of o)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let n=this._$Eu(o,s);n!==void 0&&this._$Eh.set(n,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let s=new Set(e.flat(1/0).reverse());for(let n of s)o.unshift(lt(n))}else e!==void 0&&o.push(lt(e));return o}static _$Eu(e,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pt(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,o,s){this._$AK(e,s)}_$EC(e,o){let s=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:vt).toAttribute(o,s.type);this._$Em=e,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(e,o){let s=this.constructor,n=s._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:vt;this._$Em=n,this[n]=i.fromAttribute(o,r.type),this._$Em=null}}requestUpdate(e,o,s){if(e!==void 0){if(s??=this.constructor.getPropertyOptions(e),!(s.hasChanged??It)(this[e],o))return;this.P(e,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,o,s){this._$AL.has(e)||this._$AL.set(e,o),s.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s)r.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],r)}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(o)}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(e){}firstUpdated(e){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[Q("elementProperties")]=new Map,x[Q("finalized")]=new Map,Ro?.({ReactiveElement:x}),(yt.reactiveElementVersions??=[]).push("2.0.4");var A=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$e(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var Uo=globalThis.litElementPolyfillSupport;Uo?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.1");var b={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},I=t=>(...e)=>({_$litDirective$:t,values:e}),L=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,s){this._$Ct=e,this._$AM=o,this._$Ci=s}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}};var{I:Io}=we;var Oe=t=>t.strings===void 0,Le=()=>document.createComment(""),nn=(t,e,o)=>{let s=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(o===void 0){let r=s.insertBefore(Le(),n),i=s.insertBefore(Le(),n);o=new Io(r,i,t,t.options)}else{let r=o._$AB.nextSibling,i=o._$AM,c=i!==t;if(c){let a;o._$AQ?.(t),o._$AM=t,o._$AP!==void 0&&(a=t._$AU)!==i._$AU&&o._$AP(a)}if(r!==n||c){let a=o._$AA;for(;a!==r;){let l=a.nextSibling;s.insertBefore(a,n),a=l}}}return o},rn=(t,e,o=t)=>(t._$AI(e,o),t),Mo={},Se=(t,e=Mo)=>t._$AH=e,an=t=>t._$AH,cn=t=>{t._$AP?.(!1,!0);let e=t._$AA,o=t._$AB.nextSibling;for(;e!==o;){let s=e.nextSibling;e.remove(),e=s}};var jo=I(class extends L{constructor(t){if(super(t),t.type!==b.PROPERTY&&t.type!==b.ATTRIBUTE&&t.type!==b.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Oe(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===f||e===u)return e;let o=t.element,s=t.name;if(t.type===b.PROPERTY){if(e===o[s])return f}else if(t.type===b.BOOLEAN_ATTRIBUTE){if(!!e===o.hasAttribute(s))return f}else if(t.type===b.ATTRIBUTE&&o.getAttribute(s)===e+"")return f;return Se(t),e}});var Pe=";",gt=",",Te=":";function Mt(t){let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){let o=e;return o.manager?.loadedCalled||o._offspring.push(t),o._postLoad.promise}return!1}var Vo=(t,e)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&t.setAssetPath(i),Object.entries(e).forEach(zo)};function zo([t,[e,o=""]]){if(customElements.get(t))return;let[s,n,r]=o.split(Pe),i=s?s?.split(gt).map(Ne):void 0,c=i?.map(([l])=>l),a=class extends Wo{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=n?n?.split(gt):void 0}static{this._syncMethods=r?.split(gt)}static{this._name=t}constructor(){!a._loadPromise&&(a._loadPromise=e(),a._initializePrototype()),super()}};customElements.define(t,a)}var Et=Object.defineProperty;function Ne(t){let e=t.split(Te);return e.length===1?[e[0],et(e[0])]:e}var Ho=globalThis.HTMLElement??Ne,Wo=class extends Ho{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(this._initializeComponent.bind(this)).catch(e=>{this._postLoaded.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){Et(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(e){this._store[t]=e}})}static _bindAsync(t){Et(this.prototype,t,{async value(...e){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...e)},configurable:!0})}static _bindSync(t){Et(this.prototype,t,{value(...e){return this._litElement[t](...e)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,e=this;t._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=e[o],delete e[o])})}attributeChangedCallback(t,e,o){this._litElement?.attributeChangedCallback(t,e,o),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=Mt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let e=this.constructor,o=e._name,s=this._store,n=Object.values(t).find(d=>d.tagName===o),r=`${o}--lazy`,i=n;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);Bo(i),!e._LitConstructor&&(e._LitConstructor=n,customElements.define(r,n)),n.lazy=this;let a=document.createElement(r);n.lazy=void 0,this._litElement=a,this._store=a,this._pendingAttributes.forEach(d=>{let h=this.getAttribute(d);a.attributeChangedCallback(d,null,h)}),Object.entries(s).forEach(qo,a);let l=this.isConnected;(l||this._ancestorLoad)&&(a.connectedCallback?.(),l||a.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function qo([t,e]){this[t]=e}function Bo(t){let e=t.prototype,o=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(n,r){o.setAttribute.call(this.el,n,r)},e.removeAttribute=function(n){o.removeAttribute.call(this.el,n)},Et(e,"isConnected",{get(){return Reflect.get(o,"isConnected",this.el)}}))}var jt={};var Re=I(class extends L{constructor(t){if(super(t),t.type!==b.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in e)e[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(e)}let o=t.element.classList;for(let s of this.st)s in e||(o.remove(s),this.st.delete(s));for(let s in e){let n=!!e[s];n===this.st.has(s)||this.nt?.has(s)||(n?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return f}});var Ue="important",Go=" !"+Ue,Ie=I(class extends L{constructor(t){if(super(t),t.type!==b.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,o)=>{let s=t[o];return s==null?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){let{style:o}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in e){let n=e[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(Go);s.includes("-")||r?o.setProperty(s,r?n.slice(0,-11):n,r?Ue:""):o[s]=n}}return f}});var Me=(t="",e={},o=T())=>{let s={emit:n=>{t===""&&F();let r=new CustomEvent(t,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...e});return o.el.dispatchEvent(r),r}};return t===""&&it(void 0,n=>{t=n.key},s),s},mr=Me.bind(null,"");var Ko=()=>{},Jo=class je extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=ce(this),this._postLoad=this.constructor.lazy?._postLoad??new E,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new E,this._enableUpdating=this.enableUpdating,this.enableUpdating=Ko;let e=je.prototype.shouldUpdate;this.shouldUpdate!==e&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=e),!1}static finalizeStyles(e){let o=super.finalizeStyles(e),s=this.shadowRootOptions===jt;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(e,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,n=Array.isArray(o)?o[1]:void 0;super.createProperty(e,{attribute:s&1&&typeof e=="string"?et(e):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...n})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let e=!this.manager.connectedCalled;super.connectedCallback(),e&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let e=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,r=e??(s===jt?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:r}),e)return A.prototype.createRenderRoot.call(this),e;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return r}async _load(){let e=this.el._ancestorLoad??Mt(this.el);e&&await e,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(e){return this.$changes=e,this._originalShouldUpdate?.(e)??!0}listen(e,o,s){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(e,n,s),()=>this.el.removeEventListener(e,n,s)))}listenOn(e,o,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(e.addEventListener(o,r,n),()=>e.removeEventListener(o,r,n)))}async componentOnReady(){return await this._postLoaded.promise,this}};Jo.$createEvent=Me;function Ve(t){let e,o=n=>{e=new URL(n,globalThis.location?.href||void 0).href},s={...t,getAssetPath(n){let r=new URL(n,e);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:o,customElement(n,r){r.runtime=s,r.tagName=n,customElements.get(n)||customElements.define(n,r)}};return o(t.defaultAssetPath),s}var Ar=t=>typeof t=="object"&&t!=null?Re(t):t,Lr=t=>typeof t=="object"&&t!=null?Ie(t):t;var Sr=u;function Pr(t,e,o){o==null?t.removeAttribute(e):t.setAttribute(e,o)}var Tr={toAttribute:t=>t===!0?"":t===!1?null:t};var We="calcite-mode-auto",qe="calcite-mode-dark",Yo="calcite-mode-light",Rr={autoMode:We,darkMode:qe,lightMode:Yo,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},Ur={filter:250,nextTick:0,resize:150,reposition:100};function ze(){let{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,o=()=>t.contains(qe)||t.contains(We)&&e?"dark":"light",s=i=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:i}})),n=i=>{r!==i&&s(i),r=i},r=o();s(r),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>n(i.matches?"dark":"light")),new MutationObserver(()=>n(o())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}var X=globalThis.calciteConfig,Ir=X?.focusTrapStack||[],Mr=X?.logLevel||"info",He="3.0.2",Zo="2025-02-14",Qo="78f354306";function Xo(){if(X&&X.version)return;console.info(`Using Calcite Components ${He} [Date: ${Zo}, Revision: ${Qo}]`);let t=X||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:He,writable:!1}),globalThis.calciteConfig=t}var Be=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;function ts(){return navigator.userAgentData}function jr(){if(!Be())return"";let t=ts();return t?.brands?t.brands.map(({brand:e,version:o})=>`${e}/${o}`).join(" "):navigator.userAgent}function es(){Be()&&(document.readyState==="interactive"?ze():document.addEventListener("DOMContentLoaded",()=>ze(),{once:!0})),Xo()}es();var os=Ve({defaultAssetPath:"https://js.arcgis.com/calcite-components/3.0.2/",hydratedAttribute:"calcite-hydrated"}),{customElement:Vr,getAssetPath:zr,setAssetPath:Hr}=os;export{Vo as a,Ss as b,Ps as c,Ns as d,xo as e,Ms as f,js as g,Vs as h,f as i,u as j,$e as k,b as l,I as m,L as n,Oe as o,nn as p,rn as q,Se as r,an as s,cn as t,jo as u,mr as v,Jo as w,Ar as x,Lr as y,Sr as z,Pr as A,Tr as B,Rr as C,Ur as D,Ir as E,Mr as F,Be as G,jr as H,os as I,Vr as J,zr as K};
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ye=/"/g,be=/^(?:script|style|textarea|title)$/i,Ut=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Ms=Ut(1),js=Ut(2),Vs=Ut(3),f=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ge=new WeakMap,k=D.createTreeWalker(D,129);function _e(t,e){if(!Rt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ue!==void 0?ue.createHTML(e):e}var Ce=(t,e)=>{let o=t.length-1,s=[],n,r=e===2?"<svg>":e===3?"<math>":"",i=K;for(let c=0;c<o;c++){let a=t[c],l,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===K?d[1]==="!--"?i=fe:d[1]!==void 0?i=me:d[2]!==void 0?(be.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=N):d[3]!==void 0&&(i=N):i===N?d[0]===">"?(i=n??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?N:d[3]==='"'?ye:ve):i===ye||i===ve?i=N:i===fe||i===me?i=K:(i=N,n=void 0);let y=i===N&&t[c+1].startsWith("/>")?" ":"";r+=i===K?a+Ao:h>=0?(s.push(l),a.slice(0,h)+kt+a.slice(h)+$+y):a+$+(h===-2?c:y)}return[_e(t,r+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]},Z=class t{constructor({strings:e,_$litType$:o},s){let n;this.parts=[];let r=0,i=0,c=e.length-1,a=this.parts,[l,d]=Ce(e,o);if(this.el=t.createElement(l,s),k.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=k.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(kt)){let m=d[i++],y=n.getAttribute(h).split($),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?pt:_[1]==="?"?ut:_[1]==="@"?ft:U}),n.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:r}),n.removeAttribute(h));if(be.test(n.tagName)){let h=n.textContent.split($),m=h.length-1;if(m>0){n.textContent=ht?ht.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],J()),k.nextNode(),a.push({type:2,index:++r});n.append(h[m],J())}}}else if(n.nodeType===8)if(n.data===Dt)a.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf($,h+1))!==-1;)a.push({type:7,index:r}),h+=$.length-1}r++}}static createElement(e,o){let s=D.createElement("template");return s.innerHTML=e,s}};function R(t,e,o=t,s){if(e===f)return e;let n=s!==void 0?o._$Co?.[s]:o._$Cl,r=Y(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(t),n._$AT(t,o,s)),s!==void 0?(o._$Co??=[])[s]=n:o._$Cl=n),n!==void 0&&(e=R(t,n._$AS(t,e.values),n,s)),e}var dt=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:s}=this._$AD,n=(e?.creationScope??D).importNode(o,!0);k.currentNode=n;let r=k.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new V(r,r.nextSibling,this,e):a.type===1?l=new a.ctor(r,a.name,a.strings,this,e):a.type===6&&(l=new mt(r,this,e)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(r=k.nextNode(),i++)}return k.currentNode=D,n}p(e){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,o),o+=s.strings.length-2):s._$AI(e[o])),o++}},V=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,s,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=R(this,e,o),Y(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==f&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ee(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==u&&Y(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:s}=e,n=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Z.createElement(_e(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(o);else{let r=new dt(n,this),i=r.u(this.options);r.p(o),this.T(i),this._$AH=r}}_$AC(e){let o=ge.get(e.strings);return o===void 0&&ge.set(e.strings,o=new Z(e)),o}k(e){Rt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,n=0;for(let r of e)n===o.length?o.push(s=new t(this.O(J()),this.O(J()),this,this.options)):s=o[n],s._$AI(r),n++;n<o.length&&(this._$AR(s&&s._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,s,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(e,o=this,s,n){let r=this.strings,i=!1;if(r===void 0)e=R(this,e,o,0),i=!Y(e)||e!==this._$AH&&e!==f,i&&(this._$AH=e);else{let c=e,a,l;for(e=r[0],a=0;a<r.length-1;a++)l=R(this,c[s+a],o,a),l===f&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===u?e=u:e!==u&&(e+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!n&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pt=class extends U{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}},ut=class extends U{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}},ft=class extends U{constructor(e,o,s,n,r){super(e,o,s,n,r),this.type=5}_$AI(e,o=this){if((e=R(this,e,o,0)??u)===f)return;let s=this._$AH,n=e===u&&s!==u||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==u&&(s===u||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},mt=class{constructor(e,o,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){R(this,e)}},we={M:kt,P:$,A:Dt,C:1,L:Ce,R:dt,D:Ee,V:R,I:V,H:U,N:ut,U:ft,B:pt,F:mt},Lo=Nt.litHtmlPolyfillSupport;Lo?.(Z,V),(Nt.litHtmlVersions??=[]).push("3.2.1");var $e=(t,e,o)=>{let s=o?.renderBefore??e,n=s._$litPart$;if(n===void 0){let r=o?.renderBefore??null;s._$litPart$=n=new V(e.insertBefore(J(),r),r,void 0,o??{})}return n._$AI(t),n};var{is:Oo,defineProperty:So,getOwnPropertyDescriptor:Po,getOwnPropertyNames:To,getOwnPropertySymbols:No,getPrototypeOf:ko}=Object,yt=globalThis,xe=yt.trustedTypes,Do=xe?xe.emptyScript:"",Ro=yt.reactiveElementPolyfillSupport,Q=(t,e)=>t,vt={toAttribute(t,e){switch(e){case Boolean:t=t?Do:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},It=(t,e)=>!Oo(t,e),Ae={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:It};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;var x=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=Ae){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(e,s,o);n!==void 0&&So(this.prototype,e,n)}}static getPropertyDescriptor(e,o,s){let{get:n,set:r}=Po(this.prototype,e)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return n?.call(this)},set(i){let c=n?.call(this);r.call(this,i),this.requestUpdate(e,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ae}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;let e=ko(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Q("properties"))){let o=this.properties,s=[...To(o),...No(o)];for(let n of s)this.createProperty(n,o[n])}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[s,n]of o)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let n=this._$Eu(o,s);n!==void 0&&this._$Eh.set(n,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let s=new Set(e.flat(1/0).reverse());for(let n of s)o.unshift(lt(n))}else e!==void 0&&o.push(lt(e));return o}static _$Eu(e,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pt(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,o,s){this._$AK(e,s)}_$EC(e,o){let s=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:vt).toAttribute(o,s.type);this._$Em=e,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(e,o){let s=this.constructor,n=s._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:vt;this._$Em=n,this[n]=i.fromAttribute(o,r.type),this._$Em=null}}requestUpdate(e,o,s){if(e!==void 0){if(s??=this.constructor.getPropertyOptions(e),!(s.hasChanged??It)(this[e],o))return;this.P(e,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,o,s){this._$AL.has(e)||this._$AL.set(e,o),s.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s)r.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],r)}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(o)}willUpdate(e){}_$AE(e){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(e){}firstUpdated(e){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[Q("elementProperties")]=new Map,x[Q("finalized")]=new Map,Ro?.({ReactiveElement:x}),(yt.reactiveElementVersions??=[]).push("2.0.4");var A=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$e(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var Uo=globalThis.litElementPolyfillSupport;Uo?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.1");var b={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},I=t=>(...e)=>({_$litDirective$:t,values:e}),L=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,s){this._$Ct=e,this._$AM=o,this._$Ci=s}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}};var{I:Io}=we;var Oe=t=>t.strings===void 0,Le=()=>document.createComment(""),nn=(t,e,o)=>{let s=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(o===void 0){let r=s.insertBefore(Le(),n),i=s.insertBefore(Le(),n);o=new Io(r,i,t,t.options)}else{let r=o._$AB.nextSibling,i=o._$AM,c=i!==t;if(c){let a;o._$AQ?.(t),o._$AM=t,o._$AP!==void 0&&(a=t._$AU)!==i._$AU&&o._$AP(a)}if(r!==n||c){let a=o._$AA;for(;a!==r;){let l=a.nextSibling;s.insertBefore(a,n),a=l}}}return o},rn=(t,e,o=t)=>(t._$AI(e,o),t),Mo={},Se=(t,e=Mo)=>t._$AH=e,an=t=>t._$AH,cn=t=>{t._$AP?.(!1,!0);let e=t._$AA,o=t._$AB.nextSibling;for(;e!==o;){let s=e.nextSibling;e.remove(),e=s}};var jo=I(class extends L{constructor(t){if(super(t),t.type!==b.PROPERTY&&t.type!==b.ATTRIBUTE&&t.type!==b.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Oe(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===f||e===u)return e;let o=t.element,s=t.name;if(t.type===b.PROPERTY){if(e===o[s])return f}else if(t.type===b.BOOLEAN_ATTRIBUTE){if(!!e===o.hasAttribute(s))return f}else if(t.type===b.ATTRIBUTE&&o.getAttribute(s)===e+"")return f;return Se(t),e}});var Pe=";",gt=",",Te=":";function Mt(t){let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){let o=e;return o.manager?.loadedCalled||o._offspring.push(t),o._postLoad.promise}return!1}var Vo=(t,e)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&t.setAssetPath(i),Object.entries(e).forEach(zo)};function zo([t,[e,o=""]]){if(customElements.get(t))return;let[s,n,r]=o.split(Pe),i=s?s?.split(gt).map(Ne):void 0,c=i?.map(([l])=>l),a=class extends Wo{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=n?n?.split(gt):void 0}static{this._syncMethods=r?.split(gt)}static{this._name=t}constructor(){!a._loadPromise&&(a._loadPromise=e(),a._initializePrototype()),super()}};customElements.define(t,a)}var Et=Object.defineProperty;function Ne(t){let e=t.split(Te);return e.length===1?[e[0],et(e[0])]:e}var Ho=globalThis.HTMLElement??Ne,Wo=class extends Ho{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(this._initializeComponent.bind(this)).catch(e=>{this._postLoaded.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){Et(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(e){this._store[t]=e}})}static _bindAsync(t){Et(this.prototype,t,{async value(...e){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...e)},configurable:!0})}static _bindSync(t){Et(this.prototype,t,{value(...e){return this._litElement[t](...e)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,e=this;t._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=e[o],delete e[o])})}attributeChangedCallback(t,e,o){this._litElement?.attributeChangedCallback(t,e,o),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=Mt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let e=this.constructor,o=e._name,s=this._store,n=Object.values(t).find(d=>d.tagName===o),r=`${o}--lazy`,i=n;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);Bo(i),!e._LitConstructor&&(e._LitConstructor=n,customElements.define(r,n)),n.lazy=this;let a=document.createElement(r);n.lazy=void 0,this._litElement=a,this._store=a,this._pendingAttributes.forEach(d=>{let h=this.getAttribute(d);a.attributeChangedCallback(d,null,h)}),Object.entries(s).forEach(qo,a);let l=this.isConnected;(l||this._ancestorLoad)&&(a.connectedCallback?.(),l||a.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function qo([t,e]){this[t]=e}function Bo(t){let e=t.prototype,o=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(n,r){o.setAttribute.call(this.el,n,r)},e.removeAttribute=function(n){o.removeAttribute.call(this.el,n)},Et(e,"isConnected",{get(){return Reflect.get(o,"isConnected",this.el)}}))}var jt={};var Re=I(class extends L{constructor(t){if(super(t),t.type!==b.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in e)e[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(e)}let o=t.element.classList;for(let s of this.st)s in e||(o.remove(s),this.st.delete(s));for(let s in e){let n=!!e[s];n===this.st.has(s)||this.nt?.has(s)||(n?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return f}});var Ue="important",Go=" !"+Ue,Ie=I(class extends L{constructor(t){if(super(t),t.type!==b.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,o)=>{let s=t[o];return s==null?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){let{style:o}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in e){let n=e[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(Go);s.includes("-")||r?o.setProperty(s,r?n.slice(0,-11):n,r?Ue:""):o[s]=n}}return f}});var Me=(t="",e={},o=T())=>{let s={emit:n=>{t===""&&F();let r=new CustomEvent(t,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...e});return o.el.dispatchEvent(r),r}};return t===""&&it(void 0,n=>{t=n.key},s),s},mr=Me.bind(null,"");var Ko=()=>{},Jo=class je extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=ce(this),this._postLoad=this.constructor.lazy?._postLoad??new E,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new E,this._enableUpdating=this.enableUpdating,this.enableUpdating=Ko;let e=je.prototype.shouldUpdate;this.shouldUpdate!==e&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=e),!1}static finalizeStyles(e){let o=super.finalizeStyles(e),s=this.shadowRootOptions===jt;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(e,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,n=Array.isArray(o)?o[1]:void 0;super.createProperty(e,{attribute:s&1&&typeof e=="string"?et(e):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...n})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let e=!this.manager.connectedCalled;super.connectedCallback(),e&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let e=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,r=e??(s===jt?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:r}),e)return A.prototype.createRenderRoot.call(this),e;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return r}async _load(){let e=this.el._ancestorLoad??Mt(this.el);e&&await e,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(e){return this.$changes=e,this._originalShouldUpdate?.(e)??!0}listen(e,o,s){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(e,n,s),()=>this.el.removeEventListener(e,n,s)))}listenOn(e,o,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(e.addEventListener(o,r,n),()=>e.removeEventListener(o,r,n)))}async componentOnReady(){return await this._postLoaded.promise,this}};Jo.$createEvent=Me;function Ve(t){let e,o=n=>{e=new URL(n,globalThis.location?.href||void 0).href},s={...t,getAssetPath(n){let r=new URL(n,e);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:o,customElement(n,r){r.runtime=s,r.tagName=n,customElements.get(n)||customElements.define(n,r)}};return o(t.defaultAssetPath),s}var Ar=t=>typeof t=="object"&&t!=null?Re(t):t,Lr=t=>typeof t=="object"&&t!=null?Ie(t):t;var Sr=u;function Pr(t,e,o){o==null?t.removeAttribute(e):t.setAttribute(e,o)}var Tr={toAttribute:t=>t===!0?"":t===!1?null:t};var We="calcite-mode-auto",qe="calcite-mode-dark",Yo="calcite-mode-light",Rr={autoMode:We,darkMode:qe,lightMode:Yo,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},Ur={filter:250,nextTick:0,resize:150,reposition:100};function ze(){let{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,o=()=>t.contains(qe)||t.contains(We)&&e?"dark":"light",s=i=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:i}})),n=i=>{r!==i&&s(i),r=i},r=o();s(r),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>n(i.matches?"dark":"light")),new MutationObserver(()=>n(o())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}var X=globalThis.calciteConfig,Ir=X?.focusTrapStack||[],Mr=X?.logLevel||"info",He="3.1.0-next.1",Zo="2025-02-12",Qo="601ef8680";function Xo(){if(X&&X.version)return;console.info(`Using Calcite Components ${He} [Date: ${Zo}, Revision: ${Qo}]`);let t=X||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:He,writable:!1}),globalThis.calciteConfig=t}var Be=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;function ts(){return navigator.userAgentData}function jr(){if(!Be())return"";let t=ts();return t?.brands?t.brands.map(({brand:e,version:o})=>`${e}/${o}`).join(" "):navigator.userAgent}function es(){Be()&&(document.readyState==="interactive"?ze():document.addEventListener("DOMContentLoaded",()=>ze(),{once:!0})),Xo()}es();var os=Ve({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.1.0-next.1/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Vr,getAssetPath:zr,setAssetPath:Hr}=os;export{Vo as a,Ss as b,Ps as c,Ns as d,xo as e,Ms as f,js as g,Vs as h,f as i,u as j,$e as k,b as l,I as m,L as n,Oe as o,nn as p,rn as q,Se as r,an as s,cn as t,jo as u,mr as v,Jo as w,Ar as x,Lr as y,Sr as z,Pr as A,Tr as B,Rr as C,Ur as D,Ir as E,Mr as F,Be as G,jr as H,os as I,Vr as J,zr as K};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{b as d}from"./AG3OBGY5.js";import"./B4RFHTW2.js";function a(n){return n>1&&n<5&&~~(n/10)!==1}function _(n,e,m,r){var s=n+" ";switch(m){case"s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?s+(a(n)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?s+(a(n)?"hodiny":"hodin"):s+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?s+(a(n)?"dny":"dn\xED"):s+"dny";case"M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return e||r?s+(a(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):s+"m\u011Bs\xEDci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?s+(a(n)?"roky":"let"):s+"lety"}}var t={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_}};d.locale(t,null,!0);var o=t;export{o as default};
3
+ v3.1.0-next.1 */
4
+ import{b as d}from"./REWHAGLT.js";import"./3SMC6VFN.js";function a(n){return n>1&&n<5&&~~(n/10)!==1}function _(n,e,m,r){var s=n+" ";switch(m){case"s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?s+(a(n)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?s+(a(n)?"hodiny":"hodin"):s+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?s+(a(n)?"dny":"dn\xED"):s+"dny";case"M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return e||r?s+(a(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):s+"m\u011Bs\xEDci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?s+(a(n)?"roky":"let"):s+"lety"}}var t={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_}};d.locale(t,null,!0);var o=t;export{o as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as x,h as v,k as B,l as f,m as $,n as p,o as m,p as y,q as o,r as c,s as T}from"./BNGQWGBI.js";import"./T2NQWILT.js";import"./G57AKIT2.js";import{a as k}from"./NWMFN6P5.js";import{b as d}from"./FC7N6LLB.js";import{l as D}from"./GO4QOK2G.js";import{b as E}from"./PBIOUIAG.js";import"./P7S34RN4.js";import{J as V,e as F,f as C,v as O,w as S,x as I}from"./63TOND25.js";var g={container:"container",hexInput:"hex-input",opacityInput:"opacity-input"},U=F`:host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:100px;margin-inline-start:-1px}:host([hidden]){display:none}[hidden]{display:none}`,b=x(),N=class extends S{constructor(){super(...arguments),this.internalColor=b,this.alphaChannel=!1,this.allowEmpty=!1,this.hexLabel="Hex",this.scale="m",this.value=o(c(b,this.alphaChannel),this.alphaChannel,!0),this.calciteColorPickerHexInputChange=O({cancelable:!1})}static{this.properties={internalColor:16,alphaChannel:5,allowEmpty:5,hexLabel:1,messages:0,numberingSystem:1,scale:3,value:3}}static{this.styles=U}async setFocus(){return await E(this),D(this.hexInputNode)}connectedCallback(){super.connectedCallback(),this.previousNonNullValue=this.value;let{allowEmpty:t,alphaChannel:e,value:a}=this;if(a){let n=o(a,e);p(n,e)&&this.internalSetValue(n,n,!1);return}t&&this.internalSetValue(void 0,void 0,!1)}load(){}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==o(c(b,this.alphaChannel),this.alphaChannel,!0))&&this.internalSetValue(this.value,t.get("value"),!1)}loaded(){}onHexInputBlur(){let t=this.hexInputNode,e=t.value,a=`#${e}`,{allowEmpty:n,internalColor:i}=this,s=n&&!e,l=y(a);(m(a,!0)||m(a,!1))&&this.onHexInputChange(),!(s||p(a)&&l)&&(t.value=n&&!i?"":this.formatHexForInternalInput(T(i.object())))}onOpacityInputBlur(){let t=this.opacityInputNode,e=t.value,{allowEmpty:a,internalColor:n}=this;a&&!e||(t.value=a&&!n?"":this.formatOpacityForInternalInput(n))}onOpacityInputInput(){this.onOpacityInputChange()}onHexInputChange(){let t=this.hexInputNode.value;if(t){let e=o(t,!1);if(p(e)&&this.alphaChannel&&this.internalColor){let a=o(this.internalColor.hexa(),!0).slice(-2);t=`${e+a}`}}this.internalSetValue(t,this.value)}onOpacityInputChange(){let t=this.opacityInputNode,e;if(!t.value)e=t.value;else{let a=$(Number(t.value));e=this.internalColor?.alpha(a).hexa()}this.internalSetValue(e,this.value)}onInputFocus(t){t.type==="calciteInternalInputTextFocus"?this.hexInputNode.selectText():this.opacityInputNode.selectText()}onHexInputInput(){let t=`#${this.hexInputNode.value}`,e=this.value;p(t,this.alphaChannel)&&y(t,this.alphaChannel)&&this.internalSetValue(t,e)}onInputKeyDown(t){let{altKey:e,ctrlKey:a,metaKey:n,shiftKey:i}=t,{alphaChannel:s,hexInputNode:l,internalColor:r,value:u}=this,{key:h}=t,w=t.composedPath();if(h==="Tab"&&m(u,this.alphaChannel)||h==="Enter"){w.includes(l)?this.onHexInputChange():this.onOpacityInputChange(),h==="Enter"&&t.preventDefault();return}let K=h==="ArrowDown"||h==="ArrowUp",H=this.value;if(K){if(!u){this.internalSetValue(this.previousNonNullValue,H),t.preventDefault();return}let A=h==="ArrowUp"?1:-1,z=i?10:1;this.internalSetValue(c(this.nudgeRGBChannels(r,z*A,w.includes(l)?"rgb":"a"),s),H),t.preventDefault();return}let P=e||a||n,R=h.length===1,L=B.test(h);R&&!P&&!L&&t.preventDefault()}onHexInputPaste(t){let e=t.clipboardData.getData("text");p(e,this.alphaChannel)&&y(e,this.alphaChannel)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1),this.internalSetValue(e,this.value))}internalSetValue(t,e,a=!0){if(t){let{alphaChannel:n}=this,i=o(t,n,n);if(p(i,n)){let{internalColor:s}=this,l=x(i),r=o(c(l,n),n),u=!s||r!==o(c(s,n),n);this.internalColor=l,this.previousNonNullValue=r,this.value=r,u&&a&&this.calciteColorPickerHexInputChange.emit();return}}else if(this.allowEmpty){this.internalColor=void 0,this.value=void 0,a&&this.calciteColorPickerHexInputChange.emit();return}this.value=e}storeHexInputRef(t){this.hexInputNode=t}storeOpacityInputRef(t){this.opacityInputNode=t}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${f(t.alpha())}`:""}nudgeRGBChannels(t,e,a){let n,i=t.array(),s=i.slice(0,3);if(a==="rgb")n=[...s.map(l=>l+e),this.alphaChannel?i[3]:void 0];else{let l=$(f(t.alpha())+e);n=[...s,l]}return x(n)}render(){let{alphaChannel:t,hexLabel:e,internalColor:a,messages:n,scale:i,value:s}=this,l=this.formatHexForInternalInput(s),r=this.formatOpacityForInternalInput(a),u=i==="l"?"m":"s";return C`<div class=${I(g.container)}><calcite-input-text class=${I(g.hexInput)} .label=${n?.hex||e} .maxLength=${this.alphaChannel?8:6} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} prefix-text=# .scale=${u} .value=${l} ${d(this.storeHexInputRef)}></calcite-input-text>${t?k("opacity-input",C`<calcite-input-number class=${I(g.opacityInput)} .label=${n?.opacity} .max=${v.max} max-length=3 .min=${v.min} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.onInputKeyDown} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} .scale=${u} suffix-text=% .value=${r} ${d(this.storeOpacityInputRef)}></calcite-input-number>`):null}</div>`}};V("calcite-color-picker-hex-input",N);export{N as ColorPickerHexInput};
3
+ v3.1.0-next.1 */
4
+ import{a as x,h as v,k as B,l as f,m as $,n as p,o as m,p as y,q as o,r as c,s as T}from"./VOFD5DCL.js";import"./YFZ2NUB6.js";import"./CFC62MOL.js";import{a as k}from"./QURE77NC.js";import{b as d}from"./ZOXYMA5O.js";import{l as D}from"./C63A7UGZ.js";import{b as E}from"./RCHNH62A.js";import"./TVGLGIXB.js";import{J as V,e as F,f as C,v as O,w as S,x as I}from"./X3KIRADK.js";var g={container:"container",hexInput:"hex-input",opacityInput:"opacity-input"},U=F`:host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:100px;margin-inline-start:-1px}:host([hidden]){display:none}[hidden]{display:none}`,b=x(),N=class extends S{constructor(){super(...arguments),this.internalColor=b,this.alphaChannel=!1,this.allowEmpty=!1,this.hexLabel="Hex",this.scale="m",this.value=o(c(b,this.alphaChannel),this.alphaChannel,!0),this.calciteColorPickerHexInputChange=O({cancelable:!1})}static{this.properties={internalColor:16,alphaChannel:5,allowEmpty:5,hexLabel:1,messages:0,numberingSystem:1,scale:3,value:3}}static{this.styles=U}async setFocus(){return await E(this),D(this.hexInputNode)}connectedCallback(){super.connectedCallback(),this.previousNonNullValue=this.value;let{allowEmpty:t,alphaChannel:e,value:a}=this;if(a){let n=o(a,e);p(n,e)&&this.internalSetValue(n,n,!1);return}t&&this.internalSetValue(void 0,void 0,!1)}load(){}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==o(c(b,this.alphaChannel),this.alphaChannel,!0))&&this.internalSetValue(this.value,t.get("value"),!1)}loaded(){}onHexInputBlur(){let t=this.hexInputNode,e=t.value,a=`#${e}`,{allowEmpty:n,internalColor:i}=this,s=n&&!e,l=y(a);(m(a,!0)||m(a,!1))&&this.onHexInputChange(),!(s||p(a)&&l)&&(t.value=n&&!i?"":this.formatHexForInternalInput(T(i.object())))}onOpacityInputBlur(){let t=this.opacityInputNode,e=t.value,{allowEmpty:a,internalColor:n}=this;a&&!e||(t.value=a&&!n?"":this.formatOpacityForInternalInput(n))}onOpacityInputInput(){this.onOpacityInputChange()}onHexInputChange(){let t=this.hexInputNode.value;if(t){let e=o(t,!1);if(p(e)&&this.alphaChannel&&this.internalColor){let a=o(this.internalColor.hexa(),!0).slice(-2);t=`${e+a}`}}this.internalSetValue(t,this.value)}onOpacityInputChange(){let t=this.opacityInputNode,e;if(!t.value)e=t.value;else{let a=$(Number(t.value));e=this.internalColor?.alpha(a).hexa()}this.internalSetValue(e,this.value)}onInputFocus(t){t.type==="calciteInternalInputTextFocus"?this.hexInputNode.selectText():this.opacityInputNode.selectText()}onHexInputInput(){let t=`#${this.hexInputNode.value}`,e=this.value;p(t,this.alphaChannel)&&y(t,this.alphaChannel)&&this.internalSetValue(t,e)}onInputKeyDown(t){let{altKey:e,ctrlKey:a,metaKey:n,shiftKey:i}=t,{alphaChannel:s,hexInputNode:l,internalColor:r,value:u}=this,{key:h}=t,w=t.composedPath();if(h==="Tab"&&m(u,this.alphaChannel)||h==="Enter"){w.includes(l)?this.onHexInputChange():this.onOpacityInputChange(),h==="Enter"&&t.preventDefault();return}let K=h==="ArrowDown"||h==="ArrowUp",H=this.value;if(K){if(!u){this.internalSetValue(this.previousNonNullValue,H),t.preventDefault();return}let A=h==="ArrowUp"?1:-1,z=i?10:1;this.internalSetValue(c(this.nudgeRGBChannels(r,z*A,w.includes(l)?"rgb":"a"),s),H),t.preventDefault();return}let P=e||a||n,R=h.length===1,L=B.test(h);R&&!P&&!L&&t.preventDefault()}onHexInputPaste(t){let e=t.clipboardData.getData("text");p(e,this.alphaChannel)&&y(e,this.alphaChannel)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1),this.internalSetValue(e,this.value))}internalSetValue(t,e,a=!0){if(t){let{alphaChannel:n}=this,i=o(t,n,n);if(p(i,n)){let{internalColor:s}=this,l=x(i),r=o(c(l,n),n),u=!s||r!==o(c(s,n),n);this.internalColor=l,this.previousNonNullValue=r,this.value=r,u&&a&&this.calciteColorPickerHexInputChange.emit();return}}else if(this.allowEmpty){this.internalColor=void 0,this.value=void 0,a&&this.calciteColorPickerHexInputChange.emit();return}this.value=e}storeHexInputRef(t){this.hexInputNode=t}storeOpacityInputRef(t){this.opacityInputNode=t}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${f(t.alpha())}`:""}nudgeRGBChannels(t,e,a){let n,i=t.array(),s=i.slice(0,3);if(a==="rgb")n=[...s.map(l=>l+e),this.alphaChannel?i[3]:void 0];else{let l=$(f(t.alpha())+e);n=[...s,l]}return x(n)}render(){let{alphaChannel:t,hexLabel:e,internalColor:a,messages:n,scale:i,value:s}=this,l=this.formatHexForInternalInput(s),r=this.formatOpacityForInternalInput(a),u=i==="l"?"m":"s";return C`<div class=${I(g.container)}><calcite-input-text class=${I(g.hexInput)} .label=${n?.hex||e} .maxLength=${this.alphaChannel?8:6} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} prefix-text=# .scale=${u} .value=${l} ${d(this.storeHexInputRef)}></calcite-input-text>${t?k("opacity-input",C`<calcite-input-number class=${I(g.opacityInput)} .label=${n?.opacity} .max=${v.max} max-length=3 .min=${v.min} number-button-type=none .numberingSystem=${this.numberingSystem} @keydown=${this.onInputKeyDown} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} .scale=${u} suffix-text=% .value=${r} ${d(this.storeOpacityInputRef)}></calcite-input-number>`):null}</div>`}};V("calcite-color-picker-hex-input",N);export{N as ColorPickerHexInput};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{k as s}from"./2XQRDBOF.js";import{a as g,b as v}from"./WRT5VFG2.js";import{c as u}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import"./R4WJ47LZ.js";import{a as y}from"./SMJSXUYT.js";import{a as h,b as m}from"./FC7N6LLB.js";import{b}from"./PBIOUIAG.js";import{A as d,J as p,e as l,f as o,j as n,v as r,w as c,x as t}from"./63TOND25.js";var i={container:"container",stepperItemContent:"stepper-item-content",stepperItemDescription:"stepper-item-description",stepperItemHeader:"stepper-item-header",stepperItemHeading:"stepper-item-heading",stepperItemHeaderText:"stepper-item-header-text",stepperItemNumber:"stepper-item-number",visuallyHidden:"visually-hidden"},z=l`:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header,:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s: .25rem;--calcite-stepper-item-spacing-unit-m: .75rem;--calcite-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s: .5rem;--calcite-stepper-item-spacing-unit-m: 1rem;--calcite-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s: .75rem;--calcite-stepper-item-spacing-unit-m: 1.25rem;--calcite-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-color-foreground-3)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-header:active{background-color:var(--calcite-color-foreground-3)}:host .stepper-item-content,:host .stepper-item-header{padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-color-text-3);opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{margin-block-end:.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2)}:host .stepper-item-description{color:var(--calcite-color-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-color-brand)}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-color-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:#007ac280}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-color-status-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:#007ac280}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-status-danger-hover)}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);outline-color:transparent;grid-row:items}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{transition-duration:0s;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-color-status-danger)}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-status-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;box-sizing:border-box;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-color-text-2)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-color-text-3)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`,a=class extends c{constructor(){super(),this.headerEl=h(),this.complete=!1,this.disabled=!1,this.error=!1,this.icon=!1,this.iconFlipRtl=!1,this.itemHidden=!1,this.messages=y(),this.numbered=!1,this.scale="m",this.selected=!1,this.calciteInternalStepperItemKeyEvent=r({cancelable:!1}),this.calciteInternalStepperItemRegister=r({cancelable:!1}),this.calciteInternalStepperItemSelect=r({cancelable:!1}),this.calciteStepperItemSelect=r({cancelable:!1}),this.listenOn(document.body,"calciteInternalStepperItemChange",this.updateActiveItemOnChange),this.listen("click",this.handleItemClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={complete:7,description:1,disabled:7,error:7,heading:1,icon:5,iconFlipRtl:7,itemHidden:7,layout:3,messageOverrides:0,numbered:5,numberingSystem:1,scale:3,selected:7}}static{this.styles=z}async setFocus(){await b(this),(this.layout==="vertical"?this.el:this.headerEl.value)?.focus()}async load(){this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem()}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.registerStepperItem(),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){g(this),d(this.el,"tabindex",this.disabled||this.layout==="horizontal"?null:0)}loaded(){}selectedHandler(){this.selected&&this.emitRequestedItem()}effectiveLocaleWatcher(e){s.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}keyDownHandler(e){if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault();break}}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}handleItemClick(e){this.disabled||u(this.el)||this.layout==="horizontal"&&e.composedPath().some(f=>f.classList?.contains("stepper-item-content"))||this.emitUserRequestedItem()}emitUserRequestedItem(){this.emitRequestedItem(),this.disabled||this.calciteStepperItemSelect.emit()}emitRequestedItem(){if(!this.disabled){let e=this.itemPosition;this.calciteInternalStepperItemSelect.emit({position:e})}}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item:not([hidden]):not([item-hidden])")).indexOf(this.el)}render(){this.el.ariaCurrent=this.selected?"step":"false";let e=this.layout==="horizontal"&&!this.disabled?0:null;return v({disabled:this.disabled,children:o`<div class=${t(i.container)}>${this.complete&&o`<span aria-live=polite class=${t(i.visuallyHidden)}>${this.messages.complete}</span>`||""}<div class=${t(i.stepperItemHeader)} tabindex=${e??n} ${m(this.headerEl)}>${this.icon?this.renderIcon():null}${this.numbered?o`<div class=${t(i.stepperItemNumber)}>${this.renderNumbers()}.</div>`:null}<div class=${t(i.stepperItemHeaderText)}><span class=${t(i.stepperItemHeading)}>${this.heading}</span><span class=${t(i.stepperItemDescription)}>${this.description}</span></div></div><div class=${t(i.stepperItemContent)}><slot></slot></div></div>`})}renderIcon(){let e="circle";return this.selected&&(this.layout!=="horizontal-single"||!this.error&&!this.complete)?e="circleF":this.error?e="exclamationMarkCircleF":this.complete&&(e="checkCircleF"),o`<calcite-icon class="stepper-item-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}renderNumbers(){return s.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1},s.numberFormatter.format(this.itemPosition+1)}};p("calcite-stepper-item",a);export{a as StepperItem};
3
+ v3.1.0-next.1 */
4
+ import{k as s}from"./UCWHFI2U.js";import{a as g,b as v}from"./MS2LLIKP.js";import{c as u}from"./BKVV5PO7.js";import"./CZUL7M7W.js";import"./GQKCOB4E.js";import{a as y}from"./6NKLOXQX.js";import{a as h,b as m}from"./ZOXYMA5O.js";import{b}from"./RCHNH62A.js";import{A as d,J as p,e as l,f as o,j as n,v as r,w as c,x as t}from"./X3KIRADK.js";var i={container:"container",stepperItemContent:"stepper-item-content",stepperItemDescription:"stepper-item-description",stepperItemHeader:"stepper-item-header",stepperItemHeading:"stepper-item-heading",stepperItemHeaderText:"stepper-item-header-text",stepperItemNumber:"stepper-item-number",visuallyHidden:"visually-hidden"},z=l`:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header,:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s: .25rem;--calcite-stepper-item-spacing-unit-m: .75rem;--calcite-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s: .5rem;--calcite-stepper-item-spacing-unit-m: 1rem;--calcite-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s: .75rem;--calcite-stepper-item-spacing-unit-m: 1.25rem;--calcite-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-color-foreground-3)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-header:active{background-color:var(--calcite-color-foreground-3)}:host .stepper-item-content,:host .stepper-item-header{padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-color-text-3);opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{margin-block-end:.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2)}:host .stepper-item-description{color:var(--calcite-color-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-color-brand)}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-color-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:#007ac280}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-color-status-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:#007ac280}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-status-danger-hover)}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);outline-color:transparent;grid-row:items}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{transition-duration:0s;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-color-status-danger)}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-status-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;box-sizing:border-box;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-color-text-2)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-color-text-3)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`,a=class extends c{constructor(){super(),this.headerEl=h(),this.complete=!1,this.disabled=!1,this.error=!1,this.icon=!1,this.iconFlipRtl=!1,this.itemHidden=!1,this.messages=y(),this.numbered=!1,this.scale="m",this.selected=!1,this.calciteInternalStepperItemKeyEvent=r({cancelable:!1}),this.calciteInternalStepperItemRegister=r({cancelable:!1}),this.calciteInternalStepperItemSelect=r({cancelable:!1}),this.calciteStepperItemSelect=r({cancelable:!1}),this.listenOn(document.body,"calciteInternalStepperItemChange",this.updateActiveItemOnChange),this.listen("click",this.handleItemClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={complete:7,description:1,disabled:7,error:7,heading:1,icon:5,iconFlipRtl:7,itemHidden:7,layout:3,messageOverrides:0,numbered:5,numberingSystem:1,scale:3,selected:7}}static{this.styles=z}async setFocus(){await b(this),(this.layout==="vertical"?this.el:this.headerEl.value)?.focus()}async load(){this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem()}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.registerStepperItem(),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){g(this),d(this.el,"tabindex",this.disabled||this.layout==="horizontal"?null:0)}loaded(){}selectedHandler(){this.selected&&this.emitRequestedItem()}effectiveLocaleWatcher(e){s.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}keyDownHandler(e){if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault();break}}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}handleItemClick(e){this.disabled||u(this.el)||this.layout==="horizontal"&&e.composedPath().some(f=>f.classList?.contains("stepper-item-content"))||this.emitUserRequestedItem()}emitUserRequestedItem(){this.emitRequestedItem(),this.disabled||this.calciteStepperItemSelect.emit()}emitRequestedItem(){if(!this.disabled){let e=this.itemPosition;this.calciteInternalStepperItemSelect.emit({position:e})}}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item:not([hidden]):not([item-hidden])")).indexOf(this.el)}render(){this.el.ariaCurrent=this.selected?"step":"false";let e=this.layout==="horizontal"&&!this.disabled?0:null;return v({disabled:this.disabled,children:o`<div class=${t(i.container)}>${this.complete&&o`<span aria-live=polite class=${t(i.visuallyHidden)}>${this.messages.complete}</span>`||""}<div class=${t(i.stepperItemHeader)} tabindex=${e??n} ${m(this.headerEl)}>${this.icon?this.renderIcon():null}${this.numbered?o`<div class=${t(i.stepperItemNumber)}>${this.renderNumbers()}.</div>`:null}<div class=${t(i.stepperItemHeaderText)}><span class=${t(i.stepperItemHeading)}>${this.heading}</span><span class=${t(i.stepperItemDescription)}>${this.description}</span></div></div><div class=${t(i.stepperItemContent)}><slot></slot></div></div>`})}renderIcon(){let e="circle";return this.selected&&(this.layout!=="horizontal-single"||!this.error&&!this.complete)?e="circleF":this.error?e="exclamationMarkCircleF":this.complete&&(e="checkCircleF"),o`<calcite-icon class="stepper-item-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}renderNumbers(){return s.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1},s.numberFormatter.format(this.itemPosition+1)}};p("calcite-stepper-item",a);export{a as StepperItem};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as b}from"./BPAXWMOU.js";import{a as B}from"./LALBDZYZ.js";import"./G57AKIT2.js";import{a as M,b as U}from"./WRT5VFG2.js";import{a as I}from"./KKGMEX34.js";import{a as H}from"./77BUHP3U.js";import{a as W}from"./SMJSXUYT.js";import{b as y}from"./FC7N6LLB.js";import{B as L,e as F,v as A,z as g}from"./GO4QOK2G.js";import{b as E}from"./PBIOUIAG.js";import{a as O}from"./P7S34RN4.js";import{J as z,e as P,f as d,j as r,v as h,w as S,x as s}from"./63TOND25.js";var G=6e3,a={container:"container",containerOverlaid:"container--overlaid",containerEdged:"container--edged",itemContainer:"item-container",itemContainerForward:"item-container--forward",itemContainerBackward:"item-container--backward",pagination:"pagination",paginationItems:"pagination-items",paginationItem:"pagination-item",paginationItemIndividual:"pagination-item--individual",paginationItemVisible:"pagination-item--visible",paginationItemOutOfRange:"pagination-item--out-of-range",paginationItemSelected:"pagination-item--selected",paginationItemRangeEdge:"pagination-item--range-edge",pageNext:"page-next",pagePrevious:"page-previous",autoplayControl:"autoplay-control",autoplayProgress:"autoplay-progress"},p={chevronLeft:"chevron-left",chevronRight:"chevron-right",inactive:"bullet-point",active:"bullet-point-large",pause:"pause-f",play:"play-f"},v={medium:7,small:5,xsmall:3,xxsmall:1},Y=P`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;inline-size:100%;--calcite-internal-internal-carousel-item-space: 1.5rem;--calcite-internal-internal-carousel-item-space-wide: 3.5rem;--calcite-internal-internal-carousel-item-background-color: var( --calcite-internal-carousel-item-background-color, var(--calcite-color-foreground-1) );--calcite-internal-internal-carousel-item-background-color-hover: var( --calcite-internal-carousel-item-background-color-hover, var(--calcite-color-foreground-2) );--calcite-internal-internal-carousel-item-background-color-active: var( --calcite-internal-carousel-item-background-color-active, var(--calcite-color-foreground-2) );--calcite-internal-internal-carousel-item-background-color-selected: var( --calcite-internal-carousel-item-background-color-selected, var(--calcite-color-foreground-1) );--calcite-internal-internal-carousel-item-icon-color-hover: var( --calcite-internal-carousel-item-icon-color-hover, var(--calcite-color-text-1) );--calcite-internal-internal-carousel-item-icon-color: var( --calcite-internal-carousel-item-icon-color, var(--calcite-color-border-1) );--calcite-internal-internal-carousel-item-icon-color-selected: var( --calcite-internal-carousel-item-icon-color-selected, var(--calcite-color-brand) );--calcite-internal-internal-carousel-control-color-hover: var( --calcite-internal-carousel-control-color-hover, var(--calcite-color-text-1) );--calcite-internal-internal-carousel-control-color: var( --calcite-internal-carousel-item-icon-color, var(--calcite-color-text-3) );--calcite-internal-internal-carousel-autoplay-progress-background-color: var( --calcite-internal-carousel-autoplay-progress-background-color, var(--calcite-color-border-3) );--calcite-internal-internal-carousel-autoplay-progress-fill-color: var( --calcite-internal-carousel-autoplay-progress-fill-color, var(--calcite-color-brand) )}.container{position:relative;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);outline-color:transparent}.container:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container--edged:not(.container--overlaid){padding-inline:var(--calcite-internal-internal-carousel-item-space-wide);inline-size:calc(100% - var(--calcite-internal-internal-carousel-item-space-wide) * 2)}.item-container{display:flex;flex:1 1 auto;align-items:flex-start;justify-content:center;overflow:auto;padding:.25rem;animation-name:none;animation-duration:var(--calcite-animation-timing)}.container--overlaid .item-container{padding:0}.item-container--forward{animation-name:item-forward}.item-container--backward{animation-name:item-backward}calcite-carousel-item:not([selected]){opacity:0}.pagination{margin:.75rem;display:flex;flex-direction:row;align-items:center;justify-content:center;inline-size:auto}.pagination-items{display:flex;flex-direction:row;align-items:center}.container--overlaid .pagination{position:absolute}.pagination-item.page-next,.pagination-item.page-previous{color:var(--calcite-internal-internal-carousel-control-color)}.pagination-item.page-next:hover,.pagination-item.page-previous:hover{color:var(--calcite-internal-internal-carousel-control-color-hover)}.container--edged .page-next,.container--edged .page-previous{block-size:3rem;inline-size:3rem;position:absolute;inset-block-start:50%;transform:translateY(-50%)}.container--edged .page-next{inset-inline-end:0}.container--edged .page-previous{inset-inline-start:0}.container--overlaid .pagination{inset-block-start:unset;inset-block-end:0;inset-inline:0}.pagination-item.autoplay-control{position:relative;color:var(--calcite-internal-internal-carousel-control-color);--calcite-progress-fill-color: var(--calcite-internal-internal-carousel-autoplay-progress-fill-color);--calcite-progress-background-color: var(--calcite-internal-internal-carousel-autoplay-progress-background-color)}.autoplay-control:focus .autoplay-progress{inset-block-end:4px;inset-inline:2px;inline-size:calc(100% - 4px)}.autoplay-progress{position:absolute;inset-block-end:2px;inset-inline:0;inline-size:100%}.pagination-item{margin:0;block-size:2rem;inline-size:2rem;cursor:pointer;align-items:center;border-style:none;background-color:transparent;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;-webkit-appearance:none;display:flex;align-content:center;justify-content:center;--calcite-color-foreground-1: var(--calcite-internal-internal-carousel-item-background-color);color:var(--calcite-internal-internal-carousel-item-icon-color)}.pagination-item:hover{background-color:var(--calcite-internal-internal-carousel-item-background-color-hover);color:var(--calcite-internal-internal-carousel-item-icon-color-hover)}.pagination-item:focus{background-color:var(--calcite-internal-internal-carousel-item-background-color-active);outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.pagination-item:active{background-color:var(--calcite-internal-internal-carousel-item-background-color-active);color:var(--calcite-internal-internal-carousel-item-icon-color-hover)}.pagination-item calcite-icon{color:inherit;pointer-events:none}.pagination-item.pagination-item--selected{--calcite-color-foreground-1: var(--calcite-internal-internal-carousel-item-background-color-selected);--calcite-color-foreground-3: var(--calcite-internal-internal-carousel-item-background-color-selected);color:var(--calcite-internal-internal-carousel-item-icon-color-selected)}.pagination-item--individual{pointer-events:none;inline-size:0px;padding:0;opacity:0;visibility:hidden;transition:var(--calcite-animation-timing) ease-in-out inline-size,var(--calcite-animation-timing) ease-in-out padding,var(--calcite-animation-timing) ease-in-out opacity}.pagination-item--individual.pagination-item--visible{pointer-events:auto;inline-size:2rem;opacity:1;visibility:visible}.pagination-item--range-edge calcite-icon{scale:.75;transition:var(--calcite-animation-timing) ease-in-out scale}.container--overlaid .pagination-item{background-color:var(--calcite-internal-internal-carousel-item-background-color)}.container--overlaid .pagination-item:hover{background-color:var(--calcite-internal-internal-carousel-item-background-color-hover)}.container--overlaid .pagination-item:focus{background-color:var(--calcite-internal-internal-carousel-item-background-color-active)}.container--overlaid .pagination-item:active{background-color:var(--calcite-internal-internal-carousel-item-background-color-active)}@keyframes item-forward{0%{transform:translate3d(100px,0,0)}to{transform:translateZ(0)}}@keyframes item-backward{0%{transform:translate3d(-100px,0,0)}to{transform:translateZ(0)}}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,k=class extends S{constructor(){super(...arguments),this.autoplayHandler=()=>{this.clearIntervals(),this.slideDurationInterval=setInterval(this.timer,this.autoplayDuration/100)},this.containerId=`calcite-carousel-container-${O()}`,this.resizeHandler=({contentRect:{width:e}})=>{this.setMaxItemsToBreakpoint(e)},this.resizeObserver=H("resize",e=>e.forEach(this.resizeHandler)),this.slideDurationInterval=null,this.slideInterval=null,this.timer=()=>{let e=this.slideDurationRemaining;(!this.suspendedDueToFocus&&!this.suspendedDueToHover||this.userPreventsSuspend)&&(e<=.01?(e=1,this.direction="forward",this.nextItem(!1)):e=e-.01),e>0&&(this.slideDurationRemaining=e)},this.direction="standby",this.items=[],this.maxItems=v.xxsmall,this.playing=!1,this.slideDurationRemaining=1,this.suspendedDueToFocus=!1,this.suspendedDueToHover=!1,this.suspendedSlideDurationRemaining=1,this.userPreventsSuspend=!1,this.arrowType="inline",this.autoplay=!1,this.autoplayDuration=G,this.controlOverlay=!1,this.disabled=!1,this.messages=W(),this.calciteCarouselChange=h({cancelable:!1}),this.calciteCarouselPause=h({cancelable:!1}),this.calciteCarouselPlay=h({cancelable:!1}),this.calciteCarouselResume=h({cancelable:!1}),this.calciteCarouselStop=h({cancelable:!1})}static{this.properties={direction:16,items:16,maxItems:16,playing:16,selectedIndex:16,slideDurationRemaining:16,suspendedDueToFocus:16,suspendedDueToHover:16,suspendedSlideDurationRemaining:16,userPreventsSuspend:16,arrowType:3,autoplay:3,autoplayDuration:11,controlOverlay:7,disabled:7,label:1,messageOverrides:0,paused:5,selectedItem:0}}static{this.styles=Y}async play(){this.playing||this.autoplay!==""&&!this.autoplay&&this.autoplay!=="paused"||this.handlePlay(!0)}async setFocus(){await E(this),this.container?.focus()}async stop(){this.playing&&this.handlePause(!0)}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}async load(){(this.autoplay===""||this.autoplay)&&this.autoplay!=="paused"?this.handlePlay(!1):this.autoplay==="paused"&&(this.paused=!0)}willUpdate(e){e.has("autoplay")&&this.hasUpdated&&this.autoplayWatcher(this.autoplay),e.has("direction")&&(this.hasUpdated||this.direction!=="standby")&&this.directionWatcher(this.direction),e.has("playing")&&(this.hasUpdated||this.playing!==!1)&&(this.paused=!this.playing),(e.has("suspendedDueToFocus")&&(this.hasUpdated||this.suspendedDueToFocus!==!1)||e.has("suspendedDueToHover")&&(this.hasUpdated||this.suspendedDueToHover!==!1))&&this.suspendWatcher()}updated(){M(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.clearIntervals(),this.resizeObserver?.disconnect()}autoplayWatcher(e){e||this.handlePause(!1)}async directionWatcher(e){e!=="standby"&&(await L(this.itemContainer,e==="forward"?"item-forward":"item-backward"),this.direction="standby")}suspendWatcher(){!this.suspendedDueToFocus&&!this.suspendedDueToHover?this.suspendEnd():this.suspendStart()}setMaxItemsToBreakpoint(e){if(e){if(e>=b.width.small){this.maxItems=v.medium;return}if(e>=b.width.xsmall){this.maxItems=v.small;return}if(e>=b.width.xxsmall){this.maxItems=v.xsmall;return}this.maxItems=v.xxsmall}}clearIntervals(){clearInterval(this.slideDurationInterval),clearInterval(this.slideInterval)}nextItem(e){this.playing&&e&&(this.playing=!1);let t=I(this.selectedIndex+1,this.items.length);this.setSelectedItem(t,e)}previousItem(){this.playing=!1;let e=I(Math.max(this.selectedIndex-1,-1),this.items.length);this.setSelectedItem(e,!0)}handlePlay(e){this.playing=!0,this.autoplayHandler(),this.slideInterval=setInterval(this.autoplayHandler,this.autoplayDuration),e&&this.calciteCarouselPlay.emit()}handlePause(e){this.playing=!1,this.clearIntervals(),this.slideDurationRemaining=1,this.suspendedSlideDurationRemaining=1,e&&this.calciteCarouselStop.emit()}suspendStart(){this.suspendedSlideDurationRemaining=this.slideDurationRemaining}suspendEnd(){this.slideDurationRemaining=this.suspendedSlideDurationRemaining}handleSlotChange(e){let t=A(e);if(t.length<1)return;let i=t.findIndex(c=>c.selected),l=i>-1?i:0;this.items=t,this.setSelectedItem(l,!1)}setSelectedItem(e,t){let i=this.selectedIndex;this.items.forEach((l,c)=>{let o=e===c;l.selected=o,o&&(this.selectedItem=l,this.selectedIndex=c)}),t&&(this.playing=!1,i!==this.selectedIndex&&this.calciteCarouselChange.emit())}handleArrowClick(e){let t=e.target.dataset.direction;this.playing&&this.handlePause(!0),t==="next"?(this.direction="forward",this.nextItem(!0)):t==="previous"&&(this.direction="backward",this.previousItem())}handleItemSelection(e){let t=e.target,i=parseInt(t.dataset.index);i!==this.selectedIndex&&(this.playing&&this.handlePause(!0),this.direction=i>this.selectedIndex?"forward":"backward",this.setSelectedItem(i,!0))}toggleRotation(){this.userPreventsSuspend=!0,this.playing?this.handlePause(!0):this.handlePlay(!0)}handleFocusIn(){let e=this.playing;e&&(this.suspendedDueToFocus=!0),(!this.suspendedDueToFocus||!this.suspendedDueToHover)&&e&&this.calciteCarouselPause.emit()}handleMouseIn(){let e=this.playing;e&&(this.suspendedDueToHover=!0),(!this.suspendedDueToFocus||!this.suspendedDueToHover)&&e&&this.calciteCarouselPause.emit()}handleMouseOut(e){let t=!this.el.contains(e.relatedTarget),i=this.playing;t&&i&&(this.suspendedDueToHover=!1),t&&i&&!this.suspendedDueToFocus&&(this.userPreventsSuspend=!1,this.calciteCarouselResume.emit())}handleFocusOut(e){let t=!e.composedPath().includes(e.relatedTarget),i=this.playing;t&&i&&(this.suspendedDueToFocus=!1),t&&i&&!this.suspendedDueToHover&&(this.userPreventsSuspend=!1,this.calciteCarouselResume.emit())}containerKeyDownHandler(e){if(e.target!==this.container)return;let t=this.items.length-1;switch(e.key){case" ":case"Enter":e.preventDefault(),(this.autoplay===""||this.autoplay||this.autoplay==="paused")&&this.toggleRotation();break;case"ArrowRight":e.preventDefault(),this.direction="forward",this.nextItem(!0);break;case"ArrowLeft":e.preventDefault(),this.direction="backward",this.previousItem();break;case"Home":if(e.preventDefault(),this.selectedIndex===0)return;this.direction="backward",this.setSelectedItem(0,!0);break;case"End":if(e.preventDefault(),this.selectedIndex===t)return;this.direction="forward",this.setSelectedItem(t,!0);break}}tabListKeyDownHandler(e){let t=Array(...this.tabList.querySelectorAll(`button:not(.${a.paginationItemOutOfRange})`)),i=e.target;switch(e.key){case"ArrowRight":g(t,i,"next");break;case"ArrowLeft":g(t,i,"previous");break;case"Home":e.preventDefault(),g(t,i,"first");break;case"End":e.preventDefault(),g(t,i,"last");break}}storeTabListRef(e){this.tabList=e}storeContainerRef(e){this.container=e}storeItemContainerRef(e){this.itemContainer=e}renderRotationControl(){let e=this.playing?this.messages.pause:this.messages.play,t=this.slideDurationRemaining*100;return d`<button .ariaLabel=${e} class=${s({[a.paginationItem]:!0,[a.autoplayControl]:!0})} @click=${this.toggleRotation} title=${e??r}><calcite-icon .icon=${this.playing?p.pause:p.play} scale=s></calcite-icon>${this.playing&&d`<calcite-progress class=${s(a.autoplayProgress)} .label=${this.messages.carouselItemProgress} .value=${t}></calcite-progress>`||""}</button>`}renderPaginationArea(){return d`<div class=${s({[a.pagination]:!0,[a.containerOverlaid]:this.controlOverlay})} @keydown=${this.tabListKeyDownHandler} ${y(this.storeTabListRef)}>${(this.playing||this.autoplay===""||this.autoplay||this.autoplay==="paused")&&this.renderRotationControl()||""}${this.arrowType==="inline"&&this.renderArrow("previous")||""}${this.renderPaginationItems()}${this.arrowType==="inline"&&this.renderArrow("next")||""}</div>`}renderPaginationItems(){let{selectedIndex:e,maxItems:t,items:i,label:l,handleItemSelection:c}=this;return d`<div .ariaLabel=${l} class=${s(a.paginationItems)} role=tablist>${B(i,o=>o.id,(o,n)=>{let m=i.length,u=n===e,K=n===0,j=n===m-1,x=m-t-1,f=e<t,w=e>=x,D=f?0:e-Math.floor(t/2),N=w?m:D+t,$=f?0:w?x:D,C=f?t+1:N,V=!K&&!j&&!u&&(n===$-1||n===C),R=u||n<=C&&n>=$-1,T=m-1<=t,q=u?p.active:p.inactive;return d`<button aria-controls=${(u?void 0:o.id)??r} .ariaSelected=${u} class=${s({[a.paginationItem]:!0,[a.paginationItemIndividual]:!0,[a.paginationItemSelected]:u,[a.paginationItemRangeEdge]:m-1>t&&V,[a.paginationItemOutOfRange]:!(T||R),[a.paginationItemVisible]:T||R})} data-index=${n??r} @click=${c} role=tab title=${o.label??r}><calcite-icon .icon=${q} scale=l></calcite-icon></button>`})}</div>`}renderArrow(e){let t=e==="previous",i=F(this.el),l=this.arrowType==="edge"?"m":"s",c=t?a.pagePrevious:a.pageNext,o=t?this.messages.previous:this.messages.next,n=t?p.chevronLeft:p.chevronRight;return d`<button aria-controls=${this.containerId??r} class=${s({[a.paginationItem]:!0,[c]:!0})} data-direction=${e??r} @click=${this.handleArrowClick} title=${o??r}><calcite-icon .flipRtl=${i==="rtl"} .icon=${n} .scale=${l}></calcite-icon></button>`}render(){let{direction:e}=this;return U({disabled:this.disabled,children:d`<div .ariaLabel=${this.label} .ariaLive=${this.playing?"off":"polite"} .ariaRoleDescription=${this.messages.carousel} class=${s({[a.container]:!0,[a.containerOverlaid]:this.controlOverlay,[a.containerEdged]:this.arrowType==="edge"})} @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.containerKeyDownHandler} @mouseenter=${this.handleMouseIn} @mouseleave=${this.handleMouseOut} role=group tabindex=0 ${y(this.storeContainerRef)}><section class=${s({[a.itemContainer]:!0,[a.itemContainerForward]:e==="forward",[a.itemContainerBackward]:e==="backward"})} id=${this.containerId??r} ${y(this.storeItemContainerRef)}><slot @slotchange=${this.handleSlotChange}></slot></section>${this.items.length>1&&this.renderPaginationArea()||""}${this.arrowType==="edge"&&this.renderArrow("previous")||""}${this.arrowType==="edge"&&this.renderArrow("next")||""}</div>`})}};z("calcite-carousel",k);export{k as Carousel};
3
+ v3.1.0-next.1 */
4
+ import{a as b}from"./6XCBFWPE.js";import{a as B}from"./FMHLFCZ5.js";import"./CFC62MOL.js";import{a as M,b as U}from"./MS2LLIKP.js";import{a as I}from"./55AEKITF.js";import{a as H}from"./KMYNTYLP.js";import{a as W}from"./6NKLOXQX.js";import{b as y}from"./ZOXYMA5O.js";import{B as L,e as F,v as A,z as g}from"./C63A7UGZ.js";import{b as E}from"./RCHNH62A.js";import{a as O}from"./TVGLGIXB.js";import{J as z,e as P,f as d,j as r,v as h,w as S,x as s}from"./X3KIRADK.js";var G=6e3,a={container:"container",containerOverlaid:"container--overlaid",containerEdged:"container--edged",itemContainer:"item-container",itemContainerForward:"item-container--forward",itemContainerBackward:"item-container--backward",pagination:"pagination",paginationItems:"pagination-items",paginationItem:"pagination-item",paginationItemIndividual:"pagination-item--individual",paginationItemVisible:"pagination-item--visible",paginationItemOutOfRange:"pagination-item--out-of-range",paginationItemSelected:"pagination-item--selected",paginationItemRangeEdge:"pagination-item--range-edge",pageNext:"page-next",pagePrevious:"page-previous",autoplayControl:"autoplay-control",autoplayProgress:"autoplay-progress"},p={chevronLeft:"chevron-left",chevronRight:"chevron-right",inactive:"bullet-point",active:"bullet-point-large",pause:"pause-f",play:"play-f"},v={medium:7,small:5,xsmall:3,xxsmall:1},Y=P`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;inline-size:100%;--calcite-internal-internal-carousel-item-space: 1.5rem;--calcite-internal-internal-carousel-item-space-wide: 3.5rem;--calcite-internal-internal-carousel-item-background-color: var( --calcite-internal-carousel-item-background-color, var(--calcite-color-foreground-1) );--calcite-internal-internal-carousel-item-background-color-hover: var( --calcite-internal-carousel-item-background-color-hover, var(--calcite-color-foreground-2) );--calcite-internal-internal-carousel-item-background-color-active: var( --calcite-internal-carousel-item-background-color-active, var(--calcite-color-foreground-2) );--calcite-internal-internal-carousel-item-background-color-selected: var( --calcite-internal-carousel-item-background-color-selected, var(--calcite-color-foreground-1) );--calcite-internal-internal-carousel-item-icon-color-hover: var( --calcite-internal-carousel-item-icon-color-hover, var(--calcite-color-text-1) );--calcite-internal-internal-carousel-item-icon-color: var( --calcite-internal-carousel-item-icon-color, var(--calcite-color-border-1) );--calcite-internal-internal-carousel-item-icon-color-selected: var( --calcite-internal-carousel-item-icon-color-selected, var(--calcite-color-brand) );--calcite-internal-internal-carousel-control-color-hover: var( --calcite-internal-carousel-control-color-hover, var(--calcite-color-text-1) );--calcite-internal-internal-carousel-control-color: var( --calcite-internal-carousel-item-icon-color, var(--calcite-color-text-3) );--calcite-internal-internal-carousel-autoplay-progress-background-color: var( --calcite-internal-carousel-autoplay-progress-background-color, var(--calcite-color-border-3) );--calcite-internal-internal-carousel-autoplay-progress-fill-color: var( --calcite-internal-carousel-autoplay-progress-fill-color, var(--calcite-color-brand) )}.container{position:relative;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);outline-color:transparent}.container:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container--edged:not(.container--overlaid){padding-inline:var(--calcite-internal-internal-carousel-item-space-wide);inline-size:calc(100% - var(--calcite-internal-internal-carousel-item-space-wide) * 2)}.item-container{display:flex;flex:1 1 auto;align-items:flex-start;justify-content:center;overflow:auto;padding:.25rem;animation-name:none;animation-duration:var(--calcite-animation-timing)}.container--overlaid .item-container{padding:0}.item-container--forward{animation-name:item-forward}.item-container--backward{animation-name:item-backward}calcite-carousel-item:not([selected]){opacity:0}.pagination{margin:.75rem;display:flex;flex-direction:row;align-items:center;justify-content:center;inline-size:auto}.pagination-items{display:flex;flex-direction:row;align-items:center}.container--overlaid .pagination{position:absolute}.pagination-item.page-next,.pagination-item.page-previous{color:var(--calcite-internal-internal-carousel-control-color)}.pagination-item.page-next:hover,.pagination-item.page-previous:hover{color:var(--calcite-internal-internal-carousel-control-color-hover)}.container--edged .page-next,.container--edged .page-previous{block-size:3rem;inline-size:3rem;position:absolute;inset-block-start:50%;transform:translateY(-50%)}.container--edged .page-next{inset-inline-end:0}.container--edged .page-previous{inset-inline-start:0}.container--overlaid .pagination{inset-block-start:unset;inset-block-end:0;inset-inline:0}.pagination-item.autoplay-control{position:relative;color:var(--calcite-internal-internal-carousel-control-color);--calcite-progress-fill-color: var(--calcite-internal-internal-carousel-autoplay-progress-fill-color);--calcite-progress-background-color: var(--calcite-internal-internal-carousel-autoplay-progress-background-color)}.autoplay-control:focus .autoplay-progress{inset-block-end:4px;inset-inline:2px;inline-size:calc(100% - 4px)}.autoplay-progress{position:absolute;inset-block-end:2px;inset-inline:0;inline-size:100%}.pagination-item{margin:0;block-size:2rem;inline-size:2rem;cursor:pointer;align-items:center;border-style:none;background-color:transparent;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;-webkit-appearance:none;display:flex;align-content:center;justify-content:center;--calcite-color-foreground-1: var(--calcite-internal-internal-carousel-item-background-color);color:var(--calcite-internal-internal-carousel-item-icon-color)}.pagination-item:hover{background-color:var(--calcite-internal-internal-carousel-item-background-color-hover);color:var(--calcite-internal-internal-carousel-item-icon-color-hover)}.pagination-item:focus{background-color:var(--calcite-internal-internal-carousel-item-background-color-active);outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.pagination-item:active{background-color:var(--calcite-internal-internal-carousel-item-background-color-active);color:var(--calcite-internal-internal-carousel-item-icon-color-hover)}.pagination-item calcite-icon{color:inherit;pointer-events:none}.pagination-item.pagination-item--selected{--calcite-color-foreground-1: var(--calcite-internal-internal-carousel-item-background-color-selected);--calcite-color-foreground-3: var(--calcite-internal-internal-carousel-item-background-color-selected);color:var(--calcite-internal-internal-carousel-item-icon-color-selected)}.pagination-item--individual{pointer-events:none;inline-size:0px;padding:0;opacity:0;visibility:hidden;transition:var(--calcite-animation-timing) ease-in-out inline-size,var(--calcite-animation-timing) ease-in-out padding,var(--calcite-animation-timing) ease-in-out opacity}.pagination-item--individual.pagination-item--visible{pointer-events:auto;inline-size:2rem;opacity:1;visibility:visible}.pagination-item--range-edge calcite-icon{scale:.75;transition:var(--calcite-animation-timing) ease-in-out scale}.container--overlaid .pagination-item{background-color:var(--calcite-internal-internal-carousel-item-background-color)}.container--overlaid .pagination-item:hover{background-color:var(--calcite-internal-internal-carousel-item-background-color-hover)}.container--overlaid .pagination-item:focus{background-color:var(--calcite-internal-internal-carousel-item-background-color-active)}.container--overlaid .pagination-item:active{background-color:var(--calcite-internal-internal-carousel-item-background-color-active)}@keyframes item-forward{0%{transform:translate3d(100px,0,0)}to{transform:translateZ(0)}}@keyframes item-backward{0%{transform:translate3d(-100px,0,0)}to{transform:translateZ(0)}}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,k=class extends S{constructor(){super(...arguments),this.autoplayHandler=()=>{this.clearIntervals(),this.slideDurationInterval=setInterval(this.timer,this.autoplayDuration/100)},this.containerId=`calcite-carousel-container-${O()}`,this.resizeHandler=({contentRect:{width:e}})=>{this.setMaxItemsToBreakpoint(e)},this.resizeObserver=H("resize",e=>e.forEach(this.resizeHandler)),this.slideDurationInterval=null,this.slideInterval=null,this.timer=()=>{let e=this.slideDurationRemaining;(!this.suspendedDueToFocus&&!this.suspendedDueToHover||this.userPreventsSuspend)&&(e<=.01?(e=1,this.direction="forward",this.nextItem(!1)):e=e-.01),e>0&&(this.slideDurationRemaining=e)},this.direction="standby",this.items=[],this.maxItems=v.xxsmall,this.playing=!1,this.slideDurationRemaining=1,this.suspendedDueToFocus=!1,this.suspendedDueToHover=!1,this.suspendedSlideDurationRemaining=1,this.userPreventsSuspend=!1,this.arrowType="inline",this.autoplay=!1,this.autoplayDuration=G,this.controlOverlay=!1,this.disabled=!1,this.messages=W(),this.calciteCarouselChange=h({cancelable:!1}),this.calciteCarouselPause=h({cancelable:!1}),this.calciteCarouselPlay=h({cancelable:!1}),this.calciteCarouselResume=h({cancelable:!1}),this.calciteCarouselStop=h({cancelable:!1})}static{this.properties={direction:16,items:16,maxItems:16,playing:16,selectedIndex:16,slideDurationRemaining:16,suspendedDueToFocus:16,suspendedDueToHover:16,suspendedSlideDurationRemaining:16,userPreventsSuspend:16,arrowType:3,autoplay:3,autoplayDuration:11,controlOverlay:7,disabled:7,label:1,messageOverrides:0,paused:5,selectedItem:0}}static{this.styles=Y}async play(){this.playing||this.autoplay!==""&&!this.autoplay&&this.autoplay!=="paused"||this.handlePlay(!0)}async setFocus(){await E(this),this.container?.focus()}async stop(){this.playing&&this.handlePause(!0)}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}async load(){(this.autoplay===""||this.autoplay)&&this.autoplay!=="paused"?this.handlePlay(!1):this.autoplay==="paused"&&(this.paused=!0)}willUpdate(e){e.has("autoplay")&&this.hasUpdated&&this.autoplayWatcher(this.autoplay),e.has("direction")&&(this.hasUpdated||this.direction!=="standby")&&this.directionWatcher(this.direction),e.has("playing")&&(this.hasUpdated||this.playing!==!1)&&(this.paused=!this.playing),(e.has("suspendedDueToFocus")&&(this.hasUpdated||this.suspendedDueToFocus!==!1)||e.has("suspendedDueToHover")&&(this.hasUpdated||this.suspendedDueToHover!==!1))&&this.suspendWatcher()}updated(){M(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.clearIntervals(),this.resizeObserver?.disconnect()}autoplayWatcher(e){e||this.handlePause(!1)}async directionWatcher(e){e!=="standby"&&(await L(this.itemContainer,e==="forward"?"item-forward":"item-backward"),this.direction="standby")}suspendWatcher(){!this.suspendedDueToFocus&&!this.suspendedDueToHover?this.suspendEnd():this.suspendStart()}setMaxItemsToBreakpoint(e){if(e){if(e>=b.width.small){this.maxItems=v.medium;return}if(e>=b.width.xsmall){this.maxItems=v.small;return}if(e>=b.width.xxsmall){this.maxItems=v.xsmall;return}this.maxItems=v.xxsmall}}clearIntervals(){clearInterval(this.slideDurationInterval),clearInterval(this.slideInterval)}nextItem(e){this.playing&&e&&(this.playing=!1);let t=I(this.selectedIndex+1,this.items.length);this.setSelectedItem(t,e)}previousItem(){this.playing=!1;let e=I(Math.max(this.selectedIndex-1,-1),this.items.length);this.setSelectedItem(e,!0)}handlePlay(e){this.playing=!0,this.autoplayHandler(),this.slideInterval=setInterval(this.autoplayHandler,this.autoplayDuration),e&&this.calciteCarouselPlay.emit()}handlePause(e){this.playing=!1,this.clearIntervals(),this.slideDurationRemaining=1,this.suspendedSlideDurationRemaining=1,e&&this.calciteCarouselStop.emit()}suspendStart(){this.suspendedSlideDurationRemaining=this.slideDurationRemaining}suspendEnd(){this.slideDurationRemaining=this.suspendedSlideDurationRemaining}handleSlotChange(e){let t=A(e);if(t.length<1)return;let i=t.findIndex(c=>c.selected),l=i>-1?i:0;this.items=t,this.setSelectedItem(l,!1)}setSelectedItem(e,t){let i=this.selectedIndex;this.items.forEach((l,c)=>{let o=e===c;l.selected=o,o&&(this.selectedItem=l,this.selectedIndex=c)}),t&&(this.playing=!1,i!==this.selectedIndex&&this.calciteCarouselChange.emit())}handleArrowClick(e){let t=e.target.dataset.direction;this.playing&&this.handlePause(!0),t==="next"?(this.direction="forward",this.nextItem(!0)):t==="previous"&&(this.direction="backward",this.previousItem())}handleItemSelection(e){let t=e.target,i=parseInt(t.dataset.index);i!==this.selectedIndex&&(this.playing&&this.handlePause(!0),this.direction=i>this.selectedIndex?"forward":"backward",this.setSelectedItem(i,!0))}toggleRotation(){this.userPreventsSuspend=!0,this.playing?this.handlePause(!0):this.handlePlay(!0)}handleFocusIn(){let e=this.playing;e&&(this.suspendedDueToFocus=!0),(!this.suspendedDueToFocus||!this.suspendedDueToHover)&&e&&this.calciteCarouselPause.emit()}handleMouseIn(){let e=this.playing;e&&(this.suspendedDueToHover=!0),(!this.suspendedDueToFocus||!this.suspendedDueToHover)&&e&&this.calciteCarouselPause.emit()}handleMouseOut(e){let t=!this.el.contains(e.relatedTarget),i=this.playing;t&&i&&(this.suspendedDueToHover=!1),t&&i&&!this.suspendedDueToFocus&&(this.userPreventsSuspend=!1,this.calciteCarouselResume.emit())}handleFocusOut(e){let t=!e.composedPath().includes(e.relatedTarget),i=this.playing;t&&i&&(this.suspendedDueToFocus=!1),t&&i&&!this.suspendedDueToHover&&(this.userPreventsSuspend=!1,this.calciteCarouselResume.emit())}containerKeyDownHandler(e){if(e.target!==this.container)return;let t=this.items.length-1;switch(e.key){case" ":case"Enter":e.preventDefault(),(this.autoplay===""||this.autoplay||this.autoplay==="paused")&&this.toggleRotation();break;case"ArrowRight":e.preventDefault(),this.direction="forward",this.nextItem(!0);break;case"ArrowLeft":e.preventDefault(),this.direction="backward",this.previousItem();break;case"Home":if(e.preventDefault(),this.selectedIndex===0)return;this.direction="backward",this.setSelectedItem(0,!0);break;case"End":if(e.preventDefault(),this.selectedIndex===t)return;this.direction="forward",this.setSelectedItem(t,!0);break}}tabListKeyDownHandler(e){let t=Array(...this.tabList.querySelectorAll(`button:not(.${a.paginationItemOutOfRange})`)),i=e.target;switch(e.key){case"ArrowRight":g(t,i,"next");break;case"ArrowLeft":g(t,i,"previous");break;case"Home":e.preventDefault(),g(t,i,"first");break;case"End":e.preventDefault(),g(t,i,"last");break}}storeTabListRef(e){this.tabList=e}storeContainerRef(e){this.container=e}storeItemContainerRef(e){this.itemContainer=e}renderRotationControl(){let e=this.playing?this.messages.pause:this.messages.play,t=this.slideDurationRemaining*100;return d`<button .ariaLabel=${e} class=${s({[a.paginationItem]:!0,[a.autoplayControl]:!0})} @click=${this.toggleRotation} title=${e??r}><calcite-icon .icon=${this.playing?p.pause:p.play} scale=s></calcite-icon>${this.playing&&d`<calcite-progress class=${s(a.autoplayProgress)} .label=${this.messages.carouselItemProgress} .value=${t}></calcite-progress>`||""}</button>`}renderPaginationArea(){return d`<div class=${s({[a.pagination]:!0,[a.containerOverlaid]:this.controlOverlay})} @keydown=${this.tabListKeyDownHandler} ${y(this.storeTabListRef)}>${(this.playing||this.autoplay===""||this.autoplay||this.autoplay==="paused")&&this.renderRotationControl()||""}${this.arrowType==="inline"&&this.renderArrow("previous")||""}${this.renderPaginationItems()}${this.arrowType==="inline"&&this.renderArrow("next")||""}</div>`}renderPaginationItems(){let{selectedIndex:e,maxItems:t,items:i,label:l,handleItemSelection:c}=this;return d`<div .ariaLabel=${l} class=${s(a.paginationItems)} role=tablist>${B(i,o=>o.id,(o,n)=>{let m=i.length,u=n===e,K=n===0,j=n===m-1,x=m-t-1,f=e<t,w=e>=x,D=f?0:e-Math.floor(t/2),N=w?m:D+t,$=f?0:w?x:D,C=f?t+1:N,V=!K&&!j&&!u&&(n===$-1||n===C),R=u||n<=C&&n>=$-1,T=m-1<=t,q=u?p.active:p.inactive;return d`<button aria-controls=${(u?void 0:o.id)??r} .ariaSelected=${u} class=${s({[a.paginationItem]:!0,[a.paginationItemIndividual]:!0,[a.paginationItemSelected]:u,[a.paginationItemRangeEdge]:m-1>t&&V,[a.paginationItemOutOfRange]:!(T||R),[a.paginationItemVisible]:T||R})} data-index=${n??r} @click=${c} role=tab title=${o.label??r}><calcite-icon .icon=${q} scale=l></calcite-icon></button>`})}</div>`}renderArrow(e){let t=e==="previous",i=F(this.el),l=this.arrowType==="edge"?"m":"s",c=t?a.pagePrevious:a.pageNext,o=t?this.messages.previous:this.messages.next,n=t?p.chevronLeft:p.chevronRight;return d`<button aria-controls=${this.containerId??r} class=${s({[a.paginationItem]:!0,[c]:!0})} data-direction=${e??r} @click=${this.handleArrowClick} title=${o??r}><calcite-icon .flipRtl=${i==="rtl"} .icon=${n} .scale=${l}></calcite-icon></button>`}render(){let{direction:e}=this;return U({disabled:this.disabled,children:d`<div .ariaLabel=${this.label} .ariaLive=${this.playing?"off":"polite"} .ariaRoleDescription=${this.messages.carousel} class=${s({[a.container]:!0,[a.containerOverlaid]:this.controlOverlay,[a.containerEdged]:this.arrowType==="edge"})} @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.containerKeyDownHandler} @mouseenter=${this.handleMouseIn} @mouseleave=${this.handleMouseOut} role=group tabindex=0 ${y(this.storeContainerRef)}><section class=${s({[a.itemContainer]:!0,[a.itemContainerForward]:e==="forward",[a.itemContainerBackward]:e==="backward"})} id=${this.containerId??r} ${y(this.storeItemContainerRef)}><slot @slotchange=${this.handleSlotChange}></slot></section>${this.items.length>1&&this.renderPaginationArea()||""}${this.arrowType==="edge"&&this.renderArrow("previous")||""}${this.arrowType==="edge"&&this.renderArrow("next")||""}</div>`})}};z("calcite-carousel",k);export{k as Carousel};