placer-toolkit 0.5.1 → 1.0.0-alpha.2

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 (1392) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +18 -22
  3. package/cdn/animations/attention_seekers/bounce.js +1 -0
  4. package/cdn/animations/attention_seekers/flash.js +1 -0
  5. package/cdn/animations/attention_seekers/headShake.js +1 -0
  6. package/cdn/animations/attention_seekers/heartBeat.js +1 -0
  7. package/cdn/animations/attention_seekers/jello.js +1 -0
  8. package/cdn/animations/attention_seekers/pulse.js +1 -0
  9. package/cdn/animations/attention_seekers/rubberBand.js +1 -0
  10. package/cdn/animations/attention_seekers/shake.js +1 -0
  11. package/cdn/animations/attention_seekers/shakeX.js +1 -0
  12. package/cdn/animations/attention_seekers/shakeY.js +1 -0
  13. package/cdn/animations/attention_seekers/swing.js +1 -0
  14. package/cdn/animations/attention_seekers/tada.js +1 -0
  15. package/cdn/animations/attention_seekers/wobble.js +1 -0
  16. package/cdn/animations/back_entrances/backInDown.js +1 -0
  17. package/cdn/animations/back_entrances/backInLeft.js +1 -0
  18. package/cdn/animations/back_entrances/backInRight.js +1 -0
  19. package/cdn/animations/back_entrances/backInUp.js +1 -0
  20. package/cdn/animations/back_exits/backOutDown.js +1 -0
  21. package/cdn/animations/back_exits/backOutLeft.js +1 -0
  22. package/cdn/animations/back_exits/backOutRight.js +1 -0
  23. package/cdn/animations/back_exits/backOutUp.js +1 -0
  24. package/cdn/animations/bouncing_entrances/bounceIn.js +1 -0
  25. package/cdn/animations/bouncing_entrances/bounceInDown.js +1 -0
  26. package/cdn/animations/bouncing_entrances/bounceInLeft.js +1 -0
  27. package/cdn/animations/bouncing_entrances/bounceInRight.js +1 -0
  28. package/cdn/animations/bouncing_entrances/bounceInUp.js +1 -0
  29. package/cdn/animations/bouncing_exits/bounceOut.js +1 -0
  30. package/cdn/animations/bouncing_exits/bounceOutDown.js +1 -0
  31. package/cdn/animations/bouncing_exits/bounceOutLeft.js +1 -0
  32. package/cdn/animations/bouncing_exits/bounceOutRight.js +1 -0
  33. package/cdn/animations/bouncing_exits/bounceOutUp.js +1 -0
  34. package/cdn/animations/easings/easings.js +1 -0
  35. package/cdn/animations/fading_entrances/fadeIn.js +1 -0
  36. package/cdn/animations/fading_entrances/fadeInBottomLeft.js +1 -0
  37. package/cdn/animations/fading_entrances/fadeInBottomRight.js +1 -0
  38. package/cdn/animations/fading_entrances/fadeInDown.js +1 -0
  39. package/cdn/animations/fading_entrances/fadeInDownBig.js +1 -0
  40. package/cdn/animations/fading_entrances/fadeInLeft.js +1 -0
  41. package/cdn/animations/fading_entrances/fadeInLeftBig.js +1 -0
  42. package/cdn/animations/fading_entrances/fadeInRight.js +1 -0
  43. package/cdn/animations/fading_entrances/fadeInRightBig.js +1 -0
  44. package/cdn/animations/fading_entrances/fadeInTopLeft.js +1 -0
  45. package/cdn/animations/fading_entrances/fadeInTopRight.js +1 -0
  46. package/cdn/animations/fading_entrances/fadeInUp.js +1 -0
  47. package/cdn/animations/fading_entrances/fadeInUpBig.js +1 -0
  48. package/cdn/animations/fading_exits/fadeOut.js +1 -0
  49. package/cdn/animations/fading_exits/fadeOutBottomLeft.js +1 -0
  50. package/cdn/animations/fading_exits/fadeOutBottomRight.js +1 -0
  51. package/cdn/animations/fading_exits/fadeOutDown.js +1 -0
  52. package/cdn/animations/fading_exits/fadeOutDownBig.js +1 -0
  53. package/cdn/animations/fading_exits/fadeOutLeft.js +1 -0
  54. package/cdn/animations/fading_exits/fadeOutLeftBig.js +1 -0
  55. package/cdn/animations/fading_exits/fadeOutRight.js +1 -0
  56. package/cdn/animations/fading_exits/fadeOutRightBig.js +1 -0
  57. package/cdn/animations/fading_exits/fadeOutTopLeft.js +1 -0
  58. package/cdn/animations/fading_exits/fadeOutTopRight.js +1 -0
  59. package/cdn/animations/fading_exits/fadeOutUp.js +1 -0
  60. package/cdn/animations/fading_exits/fadeOutUpBig.js +1 -0
  61. package/cdn/animations/flippers/flip.js +1 -0
  62. package/cdn/animations/flippers/flipInX.js +1 -0
  63. package/cdn/animations/flippers/flipInY.js +1 -0
  64. package/cdn/animations/flippers/flipOutX.js +1 -0
  65. package/cdn/animations/flippers/flipOutY.js +1 -0
  66. package/cdn/animations/index.js +1 -0
  67. package/cdn/animations/lightspeed/lightSpeedInLeft.js +1 -0
  68. package/cdn/animations/lightspeed/lightSpeedInRight.js +1 -0
  69. package/cdn/animations/lightspeed/lightSpeedOutLeft.js +1 -0
  70. package/cdn/animations/lightspeed/lightSpeedOutRight.js +1 -0
  71. package/cdn/animations/rotating_entrances/rotateIn.js +1 -0
  72. package/cdn/animations/rotating_entrances/rotateInDownLeft.js +1 -0
  73. package/cdn/animations/rotating_entrances/rotateInDownRight.js +1 -0
  74. package/cdn/animations/rotating_entrances/rotateInUpLeft.js +1 -0
  75. package/cdn/animations/rotating_entrances/rotateInUpRight.js +1 -0
  76. package/cdn/animations/rotating_exits/rotateOut.js +1 -0
  77. package/cdn/animations/rotating_exits/rotateOutDownLeft.js +1 -0
  78. package/cdn/animations/rotating_exits/rotateOutDownRight.js +1 -0
  79. package/cdn/animations/rotating_exits/rotateOutUpLeft.js +1 -0
  80. package/cdn/animations/rotating_exits/rotateOutUpRight.js +1 -0
  81. package/cdn/animations/sliding_entrances/slideInDown.js +1 -0
  82. package/cdn/animations/sliding_entrances/slideInLeft.js +1 -0
  83. package/cdn/animations/sliding_entrances/slideInRight.js +1 -0
  84. package/cdn/animations/sliding_entrances/slideInUp.js +1 -0
  85. package/cdn/animations/sliding_exits/slideOutDown.js +1 -0
  86. package/cdn/animations/sliding_exits/slideOutLeft.js +1 -0
  87. package/cdn/animations/sliding_exits/slideOutRight.js +1 -0
  88. package/cdn/animations/sliding_exits/slideOutUp.js +1 -0
  89. package/cdn/animations/specials/hinge.js +1 -0
  90. package/cdn/animations/specials/jackInTheBox.js +1 -0
  91. package/cdn/animations/specials/rollIn.js +1 -0
  92. package/cdn/animations/specials/rollOut.js +1 -0
  93. package/cdn/animations/zooming_entrances/zoomIn.js +1 -0
  94. package/cdn/animations/zooming_entrances/zoomInDown.js +1 -0
  95. package/cdn/animations/zooming_entrances/zoomInLeft.js +1 -0
  96. package/cdn/animations/zooming_entrances/zoomInRight.js +1 -0
  97. package/cdn/animations/zooming_entrances/zoomInUp.js +1 -0
  98. package/cdn/animations/zooming_exits/zoomOut.js +1 -0
  99. package/cdn/animations/zooming_exits/zoomOutDown.js +1 -0
  100. package/cdn/animations/zooming_exits/zoomOutLeft.js +1 -0
  101. package/cdn/animations/zooming_exits/zoomOutRight.js +1 -0
  102. package/cdn/animations/zooming_exits/zoomOutUp.js +1 -0
  103. package/cdn/chunks/chunk.22DZRUGL.js +1 -0
  104. package/cdn/chunks/chunk.2K4PNLGV.js +1 -0
  105. package/cdn/chunks/chunk.2KWTNKGQ.js +74 -0
  106. package/cdn/chunks/chunk.2N5ZK4F4.js +28 -0
  107. package/cdn/chunks/chunk.2SM5MTG6.js +1 -0
  108. package/cdn/chunks/chunk.2SQLMTYR.js +1 -0
  109. package/cdn/chunks/chunk.3EUMG6CL.js +112 -0
  110. package/cdn/chunks/chunk.3U3NAHEY.js +1 -0
  111. package/cdn/chunks/chunk.4CAEAIFN.js +1 -0
  112. package/cdn/chunks/chunk.4GFJDCKO.js +1 -0
  113. package/cdn/chunks/chunk.4NL2VE5O.js +1 -0
  114. package/cdn/chunks/chunk.4VMSMOA5.js +1 -0
  115. package/cdn/chunks/chunk.4W3OJG5Y.js +1 -0
  116. package/cdn/chunks/chunk.4X4XH4O2.js +1 -0
  117. package/cdn/chunks/chunk.4ZFWIEG2.js +1 -0
  118. package/cdn/chunks/chunk.5G3DFRPP.js +1 -0
  119. package/cdn/chunks/chunk.5HIUPHOM.js +1 -0
  120. package/cdn/chunks/chunk.5MJRUHKK.js +1 -0
  121. package/cdn/chunks/chunk.5OTOOMMJ.js +223 -0
  122. package/cdn/chunks/chunk.5PONJGRH.js +1 -0
  123. package/cdn/chunks/chunk.5WAFFOC5.js +1 -0
  124. package/cdn/chunks/chunk.5YXXLUP2.js +111 -0
  125. package/cdn/chunks/chunk.63PFEC3G.js +47 -0
  126. package/cdn/chunks/chunk.63YZ2OGJ.js +179 -0
  127. package/cdn/chunks/chunk.6C4VTMLQ.js +1 -0
  128. package/cdn/chunks/chunk.6RYC5FEW.js +1 -0
  129. package/cdn/chunks/chunk.6SP3MLBX.js +1 -0
  130. package/cdn/chunks/chunk.6T73D5OE.js +94 -0
  131. package/cdn/chunks/chunk.75KPG5ZW.js +73 -0
  132. package/cdn/chunks/chunk.75Y77XUI.js +288 -0
  133. package/cdn/chunks/chunk.7IRWTX4A.js +27 -0
  134. package/cdn/chunks/chunk.7QYDQTBC.js +1 -0
  135. package/cdn/chunks/chunk.7SJBQWSL.js +1 -0
  136. package/cdn/chunks/chunk.7UGLJJM6.js +1 -0
  137. package/cdn/chunks/chunk.7UYSBZLK.js +33 -0
  138. package/cdn/chunks/chunk.7XLP7ZNP.js +0 -0
  139. package/cdn/chunks/chunk.7YEJIK24.js +1 -0
  140. package/cdn/chunks/chunk.ADVDY32Z.js +1 -0
  141. package/cdn/chunks/chunk.AMJDSJZ5.js +130 -0
  142. package/cdn/chunks/chunk.B27E7VEZ.js +1 -0
  143. package/cdn/chunks/chunk.BGH5L7N6.js +1 -0
  144. package/cdn/chunks/chunk.BHNAOKFP.js +4 -0
  145. package/cdn/chunks/chunk.BSQP4EKW.js +17 -0
  146. package/cdn/chunks/chunk.C2RXDH23.js +12 -0
  147. package/cdn/chunks/chunk.CQPLNRNB.js +1 -0
  148. package/cdn/chunks/chunk.D5CFOPIE.js +1 -0
  149. package/cdn/chunks/chunk.DG6SQOFC.js +1 -0
  150. package/cdn/chunks/chunk.DNS43PE3.js +1 -0
  151. package/cdn/chunks/chunk.DQ2EFEM7.js +1 -0
  152. package/cdn/chunks/chunk.DRJDBJ6E.js +1 -0
  153. package/cdn/chunks/chunk.E4QLFQIH.js +1 -0
  154. package/cdn/chunks/chunk.E6MOE4FE.js +1 -0
  155. package/cdn/chunks/chunk.ECBLO7D3.js +1 -0
  156. package/cdn/chunks/chunk.EDLGCMPJ.js +1 -0
  157. package/cdn/chunks/chunk.ELYXTKTB.js +1 -0
  158. package/cdn/chunks/chunk.EMVTQD7Z.js +1 -0
  159. package/cdn/chunks/chunk.ESSED3D6.js +1 -0
  160. package/cdn/chunks/chunk.EZBCPDK5.js +1 -0
  161. package/cdn/chunks/chunk.EZBP4Q35.js +1 -0
  162. package/cdn/chunks/chunk.F7P64TTE.js +1 -0
  163. package/cdn/chunks/chunk.F7QM26VX.js +1 -0
  164. package/cdn/chunks/chunk.G3WMDHXU.js +1 -0
  165. package/cdn/chunks/chunk.G443HDU2.js +1 -0
  166. package/cdn/chunks/chunk.G4SAKBPC.js +1 -0
  167. package/cdn/chunks/chunk.GMD2IG67.js +1 -0
  168. package/cdn/chunks/chunk.GQIBOT7V.js +1 -0
  169. package/cdn/chunks/chunk.GRSW4YMQ.js +157 -0
  170. package/cdn/chunks/chunk.GUYJ76FZ.js +1 -0
  171. package/cdn/chunks/chunk.H2EOXVSZ.js +1 -0
  172. package/cdn/chunks/chunk.HAL7R4WT.js +0 -0
  173. package/cdn/chunks/chunk.HGR2N7GN.js +1 -0
  174. package/cdn/chunks/chunk.HNKZJPU5.js +1 -0
  175. package/cdn/chunks/chunk.HTBAOVSV.js +1 -0
  176. package/cdn/chunks/chunk.IFDHHGOU.js +1 -0
  177. package/cdn/chunks/chunk.IGMWK7NZ.js +1 -0
  178. package/cdn/chunks/chunk.IIHX5LOR.js +1 -0
  179. package/cdn/chunks/chunk.IJB4PCJH.js +1 -0
  180. package/cdn/chunks/chunk.IJMKJLO7.js +1 -0
  181. package/cdn/chunks/chunk.IJXVLI7F.js +1 -0
  182. package/cdn/chunks/chunk.ITURS4YZ.js +68 -0
  183. package/cdn/chunks/chunk.IUL3BHES.js +18 -0
  184. package/cdn/chunks/chunk.IX4OV3X6.js +63 -0
  185. package/cdn/chunks/chunk.J35PXB2V.js +204 -0
  186. package/cdn/chunks/chunk.JE6IZBGI.js +10 -0
  187. package/cdn/chunks/chunk.JTEIIDTY.js +106 -0
  188. package/cdn/chunks/chunk.KDTLVKSZ.js +127 -0
  189. package/cdn/chunks/chunk.KKVT4LHX.js +10 -0
  190. package/cdn/chunks/chunk.KPQGFV2T.js +1 -0
  191. package/cdn/chunks/chunk.KWVZRE3E.js +10 -0
  192. package/cdn/chunks/chunk.KYRT75BX.js +1 -0
  193. package/cdn/chunks/chunk.L2CNBOZJ.js +1 -0
  194. package/cdn/chunks/chunk.L4UUK6G4.js +1 -0
  195. package/cdn/chunks/chunk.LCCA4ADE.js +174 -0
  196. package/cdn/chunks/chunk.LDRHXIYA.js +1 -0
  197. package/cdn/chunks/chunk.LGGEB3IB.js +1 -0
  198. package/cdn/chunks/chunk.LHYUHRTC.js +1 -0
  199. package/cdn/chunks/chunk.LI6ACV6L.js +1 -0
  200. package/cdn/chunks/chunk.LIZVMFP3.js +1 -0
  201. package/cdn/chunks/chunk.LVUPLZGE.js +1 -0
  202. package/cdn/chunks/chunk.LWZCSGTE.js +1 -0
  203. package/cdn/chunks/chunk.M256MZ2P.js +1 -0
  204. package/cdn/chunks/chunk.M2NVAC3Z.js +1 -0
  205. package/cdn/chunks/chunk.MAQ3AU52.js +1 -0
  206. package/cdn/chunks/chunk.MM4THVKJ.js +1 -0
  207. package/cdn/chunks/chunk.MO7QMIH2.js +1 -0
  208. package/cdn/chunks/chunk.MV54FYCN.js +1 -0
  209. package/cdn/chunks/chunk.N5AZOOIZ.js +1 -0
  210. package/cdn/chunks/chunk.N72C3VU3.js +1 -0
  211. package/cdn/chunks/chunk.NE3XXRZM.js +1 -0
  212. package/cdn/chunks/chunk.NPYG3KBW.js +1 -0
  213. package/cdn/chunks/chunk.NTFNGAOW.js +117 -0
  214. package/cdn/chunks/chunk.NU2STAMX.js +1 -0
  215. package/cdn/chunks/chunk.NYIRGEA7.js +1 -0
  216. package/cdn/chunks/chunk.NYYTSWQF.js +38 -0
  217. package/cdn/chunks/chunk.O537LU5E.js +1 -0
  218. package/cdn/chunks/chunk.OD26IPSI.js +1 -0
  219. package/cdn/chunks/chunk.OI4TZZJC.js +305 -0
  220. package/cdn/chunks/chunk.OOQOIJSK.js +1 -0
  221. package/cdn/chunks/chunk.OQDGIWGZ.js +196 -0
  222. package/cdn/chunks/chunk.ORA34WZP.js +1 -0
  223. package/cdn/chunks/chunk.P4UE3S5U.js +1 -0
  224. package/cdn/chunks/chunk.P7GBRX2Q.js +1 -0
  225. package/cdn/chunks/chunk.P7X6ERDI.js +1 -0
  226. package/cdn/chunks/chunk.PBL2P7GX.js +1 -0
  227. package/cdn/chunks/chunk.PCTA7J6C.js +1 -0
  228. package/cdn/chunks/chunk.POW4JBEN.js +79 -0
  229. package/cdn/chunks/chunk.PP72VCB4.js +1 -0
  230. package/cdn/chunks/chunk.PSDD6Q4W.js +1 -0
  231. package/cdn/chunks/chunk.QCISI32Q.js +4 -0
  232. package/cdn/chunks/chunk.QE6C2GEL.js +1 -0
  233. package/cdn/chunks/chunk.QL5C2XOW.js +0 -0
  234. package/cdn/chunks/chunk.QPQZP354.js +208 -0
  235. package/cdn/chunks/chunk.QY5QOZRE.js +1 -0
  236. package/cdn/chunks/chunk.R2GXUKDX.js +1 -0
  237. package/cdn/chunks/chunk.R4FKXVN2.js +1 -0
  238. package/cdn/chunks/chunk.RFDMVIMA.js +1 -0
  239. package/cdn/chunks/chunk.RQ34LIU5.js +1 -0
  240. package/cdn/chunks/chunk.RWQ2HCYN.js +297 -0
  241. package/cdn/chunks/chunk.RYPVSVQS.js +326 -0
  242. package/cdn/chunks/chunk.RZZMGXAZ.js +1 -0
  243. package/cdn/chunks/chunk.SEIDC2AV.js +1 -0
  244. package/cdn/chunks/chunk.SMFJUIOR.js +10 -0
  245. package/cdn/chunks/chunk.SPURF5RT.js +4 -0
  246. package/cdn/chunks/chunk.STH7HATQ.js +142 -0
  247. package/cdn/chunks/chunk.SUPXW5XU.js +1 -0
  248. package/cdn/chunks/chunk.SXVGSAUS.js +4 -0
  249. package/cdn/chunks/chunk.TARXG5U3.js +1 -0
  250. package/cdn/chunks/chunk.TMAMLCL3.js +1 -0
  251. package/cdn/chunks/chunk.TMMJRXEV.js +1 -0
  252. package/cdn/chunks/chunk.TRVVBQVV.js +481 -0
  253. package/cdn/chunks/chunk.TSGCOVAS.js +1 -0
  254. package/cdn/chunks/chunk.TSZI2CPF.js +1 -0
  255. package/cdn/chunks/chunk.U2DNK7H4.js +1 -0
  256. package/cdn/chunks/chunk.U3MA3RIB.js +1 -0
  257. package/cdn/chunks/chunk.U3P5JBYR.js +250 -0
  258. package/cdn/chunks/chunk.U4YNKCI4.js +1 -0
  259. package/cdn/chunks/chunk.U7RBI2DC.js +1 -0
  260. package/cdn/chunks/chunk.UDGTTCHU.js +660 -0
  261. package/cdn/chunks/chunk.UJQFNBOE.js +1 -0
  262. package/cdn/chunks/chunk.UY4REGW5.js +1 -0
  263. package/cdn/chunks/chunk.V3AEPIKH.js +1 -0
  264. package/cdn/chunks/chunk.V4EXVX5U.js +1 -0
  265. package/cdn/chunks/chunk.V4LKFSOV.js +1 -0
  266. package/cdn/chunks/chunk.V7QO7LZ4.js +1 -0
  267. package/cdn/chunks/chunk.VVTMOSN2.js +170 -0
  268. package/cdn/chunks/chunk.W5PM7F34.js +34 -0
  269. package/cdn/chunks/chunk.WLREBMFL.js +1 -0
  270. package/cdn/chunks/chunk.X2UEAQ7T.js +1 -0
  271. package/cdn/chunks/chunk.XDLJVU4W.js +3 -0
  272. package/cdn/chunks/chunk.XESREUP5.js +10 -0
  273. package/cdn/chunks/chunk.XGNJKW3A.js +111 -0
  274. package/cdn/chunks/chunk.XNUSDBIN.js +1 -0
  275. package/cdn/chunks/chunk.XSSNRCMY.js +1 -0
  276. package/cdn/chunks/chunk.Y4QDLYQS.js +1 -0
  277. package/cdn/chunks/chunk.YDM7FW42.js +100 -0
  278. package/cdn/chunks/chunk.YEQLZR6M.js +1 -0
  279. package/cdn/chunks/chunk.YPCDSPNA.js +1 -0
  280. package/cdn/chunks/chunk.YUNTZWZZ.js +73 -0
  281. package/cdn/chunks/chunk.YVZPSF4R.js +1 -0
  282. package/cdn/chunks/chunk.YWY7M46V.js +1 -0
  283. package/cdn/chunks/chunk.Z6NCEETZ.js +1 -0
  284. package/cdn/chunks/chunk.ZDVLHLRA.js +1 -0
  285. package/cdn/chunks/chunk.ZE2WQTE4.js +1 -0
  286. package/cdn/chunks/chunk.ZJK5UEUE.js +1 -0
  287. package/cdn/chunks/chunk.ZRRFT6U7.js +1 -0
  288. package/cdn/chunks/chunk.ZS4GILCB.js +1 -0
  289. package/cdn/chunks/chunk.ZVANQQXU.js +1 -0
  290. package/cdn/chunks/chunk.ZY64ASSW.js +1 -0
  291. package/cdn/chunks/chunk.ZZIEMICG.js +11 -0
  292. package/cdn/components/animation/animation.js +1 -0
  293. package/cdn/components/animation/animations.js +1 -0
  294. package/cdn/components/avatar/avatar.js +1 -0
  295. package/cdn/components/badge/badge.js +1 -0
  296. package/cdn/components/button/button.js +1 -0
  297. package/cdn/components/button-group/button-group.js +1 -0
  298. package/cdn/components/callout/callout.js +1 -0
  299. package/cdn/components/card/card.js +1 -0
  300. package/cdn/components/checkbox/checkbox.js +1 -0
  301. package/cdn/components/color-picker/color-picker.js +1 -0
  302. package/cdn/components/comparer/comparer.js +1 -0
  303. package/cdn/components/copy-button/copy-button.js +1 -0
  304. package/cdn/components/details/details.js +1 -0
  305. package/cdn/components/dialog/dialog.js +1 -0
  306. package/cdn/components/divider/divider.js +1 -0
  307. package/cdn/components/drawer/drawer.js +1 -0
  308. package/cdn/components/dropdown/dropdown.js +1 -0
  309. package/cdn/components/dropdown-item/dropdown-item.js +1 -0
  310. package/cdn/components/format-bytes/format-bytes.js +1 -0
  311. package/cdn/components/format-date/format-date.js +1 -0
  312. package/cdn/components/format-number/format-number.js +1 -0
  313. package/cdn/components/icon/icon.js +1 -0
  314. package/cdn/components/icon/library.default.js +1 -0
  315. package/cdn/components/icon/library.js +1 -0
  316. package/cdn/components/icon/library.system.js +1 -0
  317. package/cdn/components/input/input.js +1 -0
  318. package/cdn/components/mutation-observer/mutation-observer.js +1 -0
  319. package/cdn/components/option/option.js +1 -0
  320. package/cdn/components/popup/popup.js +1 -0
  321. package/cdn/components/qr-code/qr-code.js +1 -0
  322. package/cdn/components/radio/radio.js +1 -0
  323. package/cdn/components/radio-group/radio-group.js +1 -0
  324. package/cdn/components/rating/rating.js +1 -0
  325. package/cdn/components/resize-observer/resize-observer.js +1 -0
  326. package/cdn/components/scroller/scroller.js +1 -0
  327. package/cdn/components/select/select.js +1 -0
  328. package/cdn/components/spinner/spinner.js +1 -0
  329. package/cdn/components/switch/switch.js +1 -0
  330. package/cdn/components/tab/tab.js +1 -0
  331. package/cdn/components/tab-group/tab-group.js +1 -0
  332. package/cdn/components/tab-panel/tab-panel.js +1 -0
  333. package/cdn/components/tag/tag.js +1 -0
  334. package/cdn/components/textarea/textarea.js +1 -0
  335. package/cdn/components/tooltip/tooltip.js +1 -0
  336. package/cdn/custom-elements.json +13055 -0
  337. package/cdn/events/events.js +1 -0
  338. package/cdn/events/pc-after-collapse.js +0 -0
  339. package/cdn/events/pc-after-expand.js +0 -0
  340. package/cdn/events/pc-after-hide.js +0 -0
  341. package/cdn/events/pc-after-show.js +0 -0
  342. package/cdn/events/pc-blur.js +0 -0
  343. package/cdn/events/pc-cancel.js +0 -0
  344. package/cdn/events/pc-change.js +0 -0
  345. package/cdn/events/pc-clear.js +0 -0
  346. package/cdn/events/pc-close.js +0 -0
  347. package/cdn/events/pc-collapse.js +0 -0
  348. package/cdn/events/pc-copy.js +0 -0
  349. package/cdn/events/pc-error.js +0 -0
  350. package/cdn/events/pc-expand.js +0 -0
  351. package/cdn/events/pc-finish.js +0 -0
  352. package/cdn/events/pc-focus.js +0 -0
  353. package/cdn/events/pc-hide.js +0 -0
  354. package/cdn/events/pc-hover.js +0 -0
  355. package/cdn/events/pc-initial-focus.js +0 -0
  356. package/cdn/events/pc-input.js +0 -0
  357. package/cdn/events/pc-invalid.js +0 -0
  358. package/cdn/events/pc-lazy-change.js +0 -0
  359. package/cdn/events/pc-lazy-load.js +0 -0
  360. package/cdn/events/pc-load.js +0 -0
  361. package/cdn/events/pc-mutation.js +0 -0
  362. package/cdn/events/pc-remove.js +0 -0
  363. package/cdn/events/pc-reposition.js +0 -0
  364. package/cdn/events/pc-resize.js +0 -0
  365. package/cdn/events/pc-select.js +0 -0
  366. package/cdn/events/pc-selection-change.js +0 -0
  367. package/cdn/events/pc-show.js +0 -0
  368. package/cdn/events/pc-slide-change.js +0 -0
  369. package/cdn/events/pc-start.js +0 -0
  370. package/cdn/events/pc-tab-hide.js +0 -0
  371. package/cdn/events/pc-tab-show.js +0 -0
  372. package/cdn/global-shims.js +1 -0
  373. package/cdn/internal/active-elements.js +1 -0
  374. package/cdn/internal/animate.js +1 -0
  375. package/cdn/internal/close-active-element.js +1 -0
  376. package/cdn/internal/debounce.js +1 -0
  377. package/cdn/internal/default-value.js +1 -0
  378. package/cdn/internal/drag.js +1 -0
  379. package/cdn/internal/emit.js +1 -0
  380. package/cdn/internal/event.js +1 -0
  381. package/cdn/internal/form.js +1 -0
  382. package/cdn/internal/math.js +1 -0
  383. package/cdn/internal/offset.js +1 -0
  384. package/cdn/internal/parse.js +1 -0
  385. package/cdn/internal/placer-element.js +1 -0
  386. package/cdn/internal/placer-form-control.js +0 -0
  387. package/cdn/internal/scroll.js +1 -0
  388. package/cdn/internal/scrollend-polyfill.js +1 -0
  389. package/cdn/internal/slot.js +1 -0
  390. package/cdn/internal/string.js +1 -0
  391. package/cdn/internal/tabbable.js +1 -0
  392. package/cdn/internal/watch.js +1 -0
  393. package/cdn/placer-autoloader.js +1 -0
  394. package/cdn/placer.js +1 -0
  395. package/cdn/styles/component-styles/form-control.css +33 -0
  396. package/cdn/styles/component-styles/host.css +13 -0
  397. package/cdn/styles/native.css +451 -0
  398. package/cdn/styles/palette/base.css +100 -0
  399. package/cdn/styles/palette/default.css +227 -0
  400. package/cdn/styles/palette/muted.css +227 -0
  401. package/cdn/styles/palette/vibrant.css +227 -0
  402. package/cdn/styles/placer.css +10 -0
  403. package/cdn/styles/themes/default.css +445 -0
  404. package/cdn/styles/themes/serene.css +454 -0
  405. package/cdn/styles/themes/utility.css +544 -0
  406. package/cdn/styles/utilities/align-items.css +21 -0
  407. package/cdn/styles/utilities/appearance.css +62 -0
  408. package/cdn/styles/utilities/border-radius.css +29 -0
  409. package/cdn/styles/utilities/fouce.css +11 -0
  410. package/cdn/styles/utilities/gap.css +66 -0
  411. package/cdn/styles/utilities/layout.css +162 -0
  412. package/cdn/styles/utilities/scroll-lock.css +21 -0
  413. package/cdn/styles/utilities/size.css +16 -0
  414. package/cdn/styles/utilities/text.css +156 -0
  415. package/cdn/styles/utilities/visually-hidden.css +16 -0
  416. package/cdn/styles/utilities.css +13 -0
  417. package/cdn/translations/ar.js +1 -0
  418. package/cdn/translations/bg.js +1 -0
  419. package/cdn/translations/bn.js +1 -0
  420. package/cdn/translations/bs.js +1 -0
  421. package/cdn/translations/ca.js +1 -0
  422. package/cdn/translations/cs.js +1 -0
  423. package/cdn/translations/cy.js +1 -0
  424. package/cdn/translations/da.js +1 -0
  425. package/cdn/translations/de-at.js +1 -0
  426. package/cdn/translations/de-ch.js +1 -0
  427. package/cdn/translations/de.js +1 -0
  428. package/cdn/translations/el.js +1 -0
  429. package/cdn/translations/en-gb.js +1 -0
  430. package/cdn/translations/en.js +1 -0
  431. package/cdn/translations/es-es.js +1 -0
  432. package/cdn/translations/es.js +1 -0
  433. package/cdn/translations/et.js +1 -0
  434. package/cdn/translations/eu.js +1 -0
  435. package/cdn/translations/fa.js +1 -0
  436. package/cdn/translations/fi.js +1 -0
  437. package/cdn/translations/fil.js +1 -0
  438. package/cdn/translations/fo.js +1 -0
  439. package/cdn/translations/fr-ca.js +1 -0
  440. package/cdn/translations/fr.js +1 -0
  441. package/cdn/translations/ga.js +1 -0
  442. package/cdn/translations/gu.js +1 -0
  443. package/cdn/translations/he.js +1 -0
  444. package/cdn/translations/hi.js +1 -0
  445. package/cdn/translations/hr.js +1 -0
  446. package/cdn/translations/hu.js +1 -0
  447. package/cdn/translations/id.js +1 -0
  448. package/cdn/translations/index.js +1 -0
  449. package/cdn/translations/is.js +1 -0
  450. package/cdn/translations/it.js +1 -0
  451. package/cdn/translations/ja.js +1 -0
  452. package/cdn/translations/ko.js +1 -0
  453. package/cdn/translations/lb.js +1 -0
  454. package/cdn/translations/lo.js +1 -0
  455. package/cdn/translations/lt.js +1 -0
  456. package/cdn/translations/lv.js +1 -0
  457. package/cdn/translations/mr.js +1 -0
  458. package/cdn/translations/ms.js +1 -0
  459. package/cdn/translations/mt.js +1 -0
  460. package/cdn/translations/nb.js +1 -0
  461. package/cdn/translations/nl-be.js +1 -0
  462. package/cdn/translations/nl.js +1 -0
  463. package/cdn/translations/nn.js +1 -0
  464. package/cdn/translations/pa-guru.js +1 -0
  465. package/cdn/translations/pa.js +1 -0
  466. package/cdn/translations/pl.js +1 -0
  467. package/cdn/translations/ps.js +1 -0
  468. package/cdn/translations/pt-br.js +1 -0
  469. package/cdn/translations/pt-pt.js +1 -0
  470. package/cdn/translations/pt.js +1 -0
  471. package/cdn/translations/ro.js +1 -0
  472. package/cdn/translations/ru.js +1 -0
  473. package/cdn/translations/sk.js +1 -0
  474. package/cdn/translations/sl.js +1 -0
  475. package/cdn/translations/sq.js +1 -0
  476. package/cdn/translations/sr.js +1 -0
  477. package/cdn/translations/sv.js +1 -0
  478. package/cdn/translations/sw.js +1 -0
  479. package/cdn/translations/te.js +1 -0
  480. package/cdn/translations/th.js +1 -0
  481. package/cdn/translations/tl.js +1 -0
  482. package/cdn/translations/tr.js +1 -0
  483. package/cdn/translations/uk.js +1 -0
  484. package/cdn/translations/ur.js +1 -0
  485. package/cdn/translations/vi.js +1 -0
  486. package/cdn/translations/zh-cn.js +1 -0
  487. package/cdn/translations/zh-hk.js +1 -0
  488. package/cdn/translations/zh-tw.js +1 -0
  489. package/cdn/utilities/animation-registry.js +1 -0
  490. package/cdn/utilities/animation.js +1 -0
  491. package/cdn/utilities/form.js +1 -0
  492. package/cdn/utilities/icon-library.js +1 -0
  493. package/cdn/utilities/kit-code.js +1 -0
  494. package/cdn/utilities/localize.js +1 -0
  495. package/dist/animations/attention_seekers/bounce.js +46 -44
  496. package/dist/animations/attention_seekers/flash.js +10 -8
  497. package/dist/animations/attention_seekers/headShake.js +11 -9
  498. package/dist/animations/attention_seekers/heartBeat.js +10 -8
  499. package/dist/animations/attention_seekers/jello.js +18 -16
  500. package/dist/animations/attention_seekers/pulse.js +8 -6
  501. package/dist/animations/attention_seekers/rubberBand.js +12 -10
  502. package/dist/animations/attention_seekers/shake.js +16 -14
  503. package/dist/animations/attention_seekers/shakeX.js +16 -14
  504. package/dist/animations/attention_seekers/shakeY.js +16 -14
  505. package/dist/animations/attention_seekers/swing.js +10 -8
  506. package/dist/animations/attention_seekers/tada.js +43 -41
  507. package/dist/animations/attention_seekers/wobble.js +27 -25
  508. package/dist/animations/back_entrances/backInDown.js +8 -6
  509. package/dist/animations/back_entrances/backInLeft.js +8 -6
  510. package/dist/animations/back_entrances/backInRight.js +8 -6
  511. package/dist/animations/back_entrances/backInUp.js +8 -6
  512. package/dist/animations/back_exits/backOutDown.js +8 -6
  513. package/dist/animations/back_exits/backOutLeft.js +8 -6
  514. package/dist/animations/back_exits/backOutRight.js +8 -6
  515. package/dist/animations/back_exits/backOutUp.js +8 -6
  516. package/dist/animations/bouncing_entrances/bounceIn.js +17 -15
  517. package/dist/animations/bouncing_entrances/bounceInDown.js +23 -21
  518. package/dist/animations/bouncing_entrances/bounceInLeft.js +23 -21
  519. package/dist/animations/bouncing_entrances/bounceInRight.js +23 -21
  520. package/dist/animations/bouncing_entrances/bounceInUp.js +23 -21
  521. package/dist/animations/bouncing_exits/bounceOut.js +9 -7
  522. package/dist/animations/bouncing_exits/bounceOutDown.js +21 -19
  523. package/dist/animations/bouncing_exits/bounceOutLeft.js +15 -13
  524. package/dist/animations/bouncing_exits/bounceOutRight.js +15 -13
  525. package/dist/animations/bouncing_exits/bounceOutUp.js +21 -19
  526. package/dist/animations/easings/easings.js +34 -32
  527. package/dist/animations/fading_entrances/fadeIn.js +7 -5
  528. package/dist/animations/fading_entrances/fadeInBottomLeft.js +7 -5
  529. package/dist/animations/fading_entrances/fadeInBottomRight.js +7 -5
  530. package/dist/animations/fading_entrances/fadeInDown.js +7 -5
  531. package/dist/animations/fading_entrances/fadeInDownBig.js +7 -5
  532. package/dist/animations/fading_entrances/fadeInLeft.js +7 -5
  533. package/dist/animations/fading_entrances/fadeInLeftBig.js +7 -5
  534. package/dist/animations/fading_entrances/fadeInRight.js +7 -5
  535. package/dist/animations/fading_entrances/fadeInRightBig.js +7 -5
  536. package/dist/animations/fading_entrances/fadeInTopLeft.js +7 -5
  537. package/dist/animations/fading_entrances/fadeInTopRight.js +7 -5
  538. package/dist/animations/fading_entrances/fadeInUp.js +7 -5
  539. package/dist/animations/fading_entrances/fadeInUpBig.js +7 -5
  540. package/dist/animations/fading_exits/fadeOut.js +7 -5
  541. package/dist/animations/fading_exits/fadeOutBottomLeft.js +7 -5
  542. package/dist/animations/fading_exits/fadeOutBottomRight.js +7 -5
  543. package/dist/animations/fading_exits/fadeOutDown.js +7 -5
  544. package/dist/animations/fading_exits/fadeOutDownBig.js +7 -5
  545. package/dist/animations/fading_exits/fadeOutLeft.js +7 -5
  546. package/dist/animations/fading_exits/fadeOutLeftBig.js +7 -5
  547. package/dist/animations/fading_exits/fadeOutRight.js +7 -5
  548. package/dist/animations/fading_exits/fadeOutRightBig.js +7 -5
  549. package/dist/animations/fading_exits/fadeOutTopLeft.js +7 -5
  550. package/dist/animations/fading_exits/fadeOutTopRight.js +7 -5
  551. package/dist/animations/fading_exits/fadeOutUp.js +7 -5
  552. package/dist/animations/fading_exits/fadeOutUpBig.js +7 -5
  553. package/dist/animations/flippers/flip.js +30 -28
  554. package/dist/animations/flippers/flipInX.js +23 -21
  555. package/dist/animations/flippers/flipInY.js +23 -21
  556. package/dist/animations/flippers/flipOutX.js +16 -14
  557. package/dist/animations/flippers/flipOutY.js +16 -14
  558. package/dist/animations/index.js +1208 -101
  559. package/dist/animations/lightspeed/lightSpeedInLeft.js +13 -11
  560. package/dist/animations/lightspeed/lightSpeedInRight.js +13 -11
  561. package/dist/animations/lightspeed/lightSpeedOutLeft.js +11 -9
  562. package/dist/animations/lightspeed/lightSpeedOutRight.js +11 -9
  563. package/dist/animations/rotating_entrances/rotateIn.js +7 -5
  564. package/dist/animations/rotating_entrances/rotateInDownLeft.js +7 -5
  565. package/dist/animations/rotating_entrances/rotateInDownRight.js +7 -5
  566. package/dist/animations/rotating_entrances/rotateInUpLeft.js +7 -5
  567. package/dist/animations/rotating_entrances/rotateInUpRight.js +7 -5
  568. package/dist/animations/rotating_exits/rotateOut.js +7 -5
  569. package/dist/animations/rotating_exits/rotateOutDownLeft.js +7 -5
  570. package/dist/animations/rotating_exits/rotateOutDownRight.js +7 -5
  571. package/dist/animations/rotating_exits/rotateOutUpLeft.js +7 -5
  572. package/dist/animations/rotating_exits/rotateOutUpRight.js +7 -5
  573. package/dist/animations/sliding_entrances/slideInDown.js +7 -5
  574. package/dist/animations/sliding_entrances/slideInLeft.js +7 -5
  575. package/dist/animations/sliding_entrances/slideInRight.js +7 -5
  576. package/dist/animations/sliding_entrances/slideInUp.js +7 -5
  577. package/dist/animations/sliding_exits/slideOutDown.js +7 -5
  578. package/dist/animations/sliding_exits/slideOutLeft.js +7 -5
  579. package/dist/animations/sliding_exits/slideOutRight.js +7 -5
  580. package/dist/animations/sliding_exits/slideOutUp.js +7 -5
  581. package/dist/animations/specials/hinge.js +29 -27
  582. package/dist/animations/specials/jackInTheBox.js +14 -12
  583. package/dist/animations/specials/rollIn.js +11 -9
  584. package/dist/animations/specials/rollOut.js +11 -9
  585. package/dist/animations/zooming_entrances/zoomIn.js +7 -5
  586. package/dist/animations/zooming_entrances/zoomInDown.js +17 -15
  587. package/dist/animations/zooming_entrances/zoomInLeft.js +17 -15
  588. package/dist/animations/zooming_entrances/zoomInRight.js +17 -15
  589. package/dist/animations/zooming_entrances/zoomInUp.js +17 -15
  590. package/dist/animations/zooming_exits/zoomOut.js +8 -6
  591. package/dist/animations/zooming_exits/zoomOutDown.js +17 -15
  592. package/dist/animations/zooming_exits/zoomOutLeft.js +15 -13
  593. package/dist/animations/zooming_exits/zoomOutRight.js +15 -13
  594. package/dist/animations/zooming_exits/zoomOutUp.js +17 -15
  595. package/dist/components/animation/animation.d.ts +65 -3
  596. package/dist/components/animation/animation.js +2185 -3
  597. package/dist/components/animation/animations.js +1225 -8
  598. package/dist/components/avatar/avatar.d.ts +43 -3
  599. package/dist/components/avatar/avatar.js +1323 -3
  600. package/dist/components/badge/badge.d.ts +23 -3
  601. package/dist/components/badge/badge.js +754 -3
  602. package/dist/components/button/button.d.ts +102 -3
  603. package/dist/components/button/button.js +1516 -3
  604. package/dist/components/button-group/button-group.d.ts +28 -3
  605. package/dist/components/button-group/button-group.js +898 -3
  606. package/dist/components/callout/callout.d.ts +24 -3
  607. package/dist/components/callout/callout.js +763 -3
  608. package/dist/components/card/card.d.ts +27 -3
  609. package/dist/components/card/card.js +866 -3
  610. package/dist/components/checkbox/checkbox.d.ts +93 -3
  611. package/dist/components/checkbox/checkbox.js +1920 -3
  612. package/dist/components/color-picker/color-picker.d.ts +206 -0
  613. package/dist/components/color-picker/color-picker.js +7014 -0
  614. package/dist/components/comparer/comparer.d.ts +44 -3
  615. package/dist/components/comparer/comparer.js +1631 -3
  616. package/dist/components/copy-button/copy-button.d.ts +74 -3
  617. package/dist/components/copy-button/copy-button.js +3936 -3
  618. package/dist/components/details/details.d.ts +64 -3
  619. package/dist/components/details/details.js +1735 -3
  620. package/dist/components/dialog/dialog.d.ts +71 -3
  621. package/dist/components/dialog/dialog.js +2062 -3
  622. package/dist/components/divider/divider.d.ts +19 -3
  623. package/dist/components/divider/divider.js +778 -3
  624. package/dist/components/drawer/drawer.d.ts +79 -3
  625. package/dist/components/drawer/drawer.js +2150 -3
  626. package/dist/components/dropdown/dropdown.d.ts +103 -3
  627. package/dist/components/dropdown/dropdown.js +3755 -3
  628. package/dist/components/dropdown-item/dropdown-item.d.ts +84 -0
  629. package/dist/components/dropdown-item/dropdown-item.js +1771 -0
  630. package/dist/components/format-bytes/format-bytes.d.ts +24 -0
  631. package/dist/components/format-bytes/format-bytes.js +960 -0
  632. package/dist/components/format-date/format-date.d.ts +40 -0
  633. package/dist/components/format-date/format-date.js +963 -0
  634. package/dist/components/format-number/format-number.d.ts +39 -0
  635. package/dist/components/format-number/format-number.js +1001 -0
  636. package/dist/components/icon/icon.d.ts +49 -3
  637. package/dist/components/icon/icon.js +1175 -3
  638. package/dist/components/icon/library.d.ts +3 -2
  639. package/dist/components/icon/library.default.js +63 -7
  640. package/dist/components/icon/library.js +230 -23
  641. package/dist/components/icon/library.system.js +134 -119
  642. package/dist/components/input/input.d.ts +165 -3
  643. package/dist/components/input/input.js +2303 -3
  644. package/dist/components/mutation-observer/mutation-observer.d.ts +37 -0
  645. package/dist/components/mutation-observer/mutation-observer.js +873 -0
  646. package/dist/components/option/option.d.ts +53 -3
  647. package/dist/components/option/option.js +1352 -3
  648. package/dist/components/popup/popup.d.ts +87 -3
  649. package/dist/components/popup/popup.js +2934 -3
  650. package/dist/components/qr-code/qr-code.d.ts +32 -3
  651. package/dist/components/qr-code/qr-code.js +1533 -3
  652. package/dist/components/radio/radio.d.ts +42 -3
  653. package/dist/components/radio/radio.js +925 -3
  654. package/dist/components/radio-group/radio-group.d.ts +79 -3
  655. package/dist/components/radio-group/radio-group.js +1519 -3
  656. package/dist/components/rating/rating.d.ts +67 -3
  657. package/dist/components/rating/rating.js +1757 -3
  658. package/dist/components/resize-observer/resize-observer.d.ts +26 -3
  659. package/dist/components/resize-observer/resize-observer.js +835 -3
  660. package/dist/components/scroller/scroller.d.ts +35 -0
  661. package/dist/components/scroller/scroller.js +1072 -0
  662. package/dist/components/select/select.d.ts +179 -3
  663. package/dist/components/select/select.js +5107 -3
  664. package/dist/components/spinner/spinner.d.ts +19 -3
  665. package/dist/components/spinner/spinner.js +917 -3
  666. package/dist/components/switch/switch.d.ts +85 -3
  667. package/dist/components/switch/switch.js +1479 -3
  668. package/dist/components/tab/tab.d.ts +47 -3
  669. package/dist/components/tab/tab.js +1788 -3
  670. package/dist/components/tab-group/tab-group.d.ts +91 -3
  671. package/dist/components/tab-group/tab-group.js +2385 -3
  672. package/dist/components/tab-panel/tab-panel.d.ts +24 -3
  673. package/dist/components/tab-panel/tab-panel.js +847 -3
  674. package/dist/components/tag/tag.d.ts +38 -3
  675. package/dist/components/tag/tag.js +1750 -3
  676. package/dist/components/textarea/textarea.d.ts +137 -0
  677. package/dist/components/textarea/textarea.js +1630 -0
  678. package/dist/components/tooltip/tooltip.d.ts +80 -3
  679. package/dist/components/tooltip/tooltip.js +3298 -3
  680. package/dist/custom-elements.json +13055 -0
  681. package/dist/events/events.d.ts +0 -1
  682. package/dist/events/events.js +0 -1
  683. package/dist/events/pc-after-collapse.js +0 -1
  684. package/dist/events/pc-after-expand.js +0 -1
  685. package/dist/events/pc-after-hide.js +0 -1
  686. package/dist/events/pc-after-show.js +0 -1
  687. package/dist/events/pc-blur.js +0 -1
  688. package/dist/events/pc-cancel.js +0 -1
  689. package/dist/events/pc-change.js +0 -1
  690. package/dist/events/pc-clear.js +0 -1
  691. package/dist/events/pc-close.js +0 -1
  692. package/dist/events/pc-collapse.js +0 -1
  693. package/dist/events/pc-copy.js +0 -1
  694. package/dist/events/pc-error.js +0 -1
  695. package/dist/events/pc-expand.js +0 -1
  696. package/dist/events/pc-finish.js +0 -1
  697. package/dist/events/pc-focus.js +0 -1
  698. package/dist/events/pc-hide.js +0 -1
  699. package/dist/events/pc-hover.js +0 -1
  700. package/dist/events/pc-initial-focus.js +0 -1
  701. package/dist/events/pc-input.js +0 -1
  702. package/dist/events/pc-invalid.js +0 -1
  703. package/dist/events/pc-lazy-change.js +0 -1
  704. package/dist/events/pc-lazy-load.js +0 -1
  705. package/dist/events/pc-load.js +0 -1
  706. package/dist/events/pc-mutation.js +0 -1
  707. package/dist/events/pc-remove.js +0 -1
  708. package/dist/events/pc-reposition.js +0 -1
  709. package/dist/events/pc-resize.js +0 -1
  710. package/dist/events/pc-select.d.ts +2 -2
  711. package/dist/events/pc-select.js +0 -1
  712. package/dist/events/pc-selection-change.d.ts +0 -0
  713. package/dist/events/pc-selection-change.js +0 -1
  714. package/dist/events/pc-show.js +0 -1
  715. package/dist/events/pc-slide-change.d.ts +0 -0
  716. package/dist/events/pc-slide-change.js +0 -1
  717. package/dist/events/pc-start.js +0 -1
  718. package/dist/events/pc-tab-hide.js +0 -1
  719. package/dist/events/pc-tab-show.js +0 -1
  720. package/dist/global-shims.js +84 -83
  721. package/dist/internal/active-elements.d.ts +16 -0
  722. package/dist/internal/active-elements.js +13 -12
  723. package/dist/internal/animate.d.ts +6 -6
  724. package/dist/internal/animate.js +45 -33
  725. package/dist/internal/close-active-element.d.ts +5 -0
  726. package/dist/internal/close-active-element.js +9 -7
  727. package/dist/internal/debounce.js +14 -12
  728. package/dist/internal/default-value.js +582 -22
  729. package/dist/internal/drag.d.ts +4 -0
  730. package/dist/internal/drag.js +25 -23
  731. package/dist/internal/emit.d.ts +1 -0
  732. package/dist/internal/emit.js +14 -12
  733. package/dist/internal/event.d.ts +1 -0
  734. package/dist/internal/event.js +13 -11
  735. package/dist/internal/form.d.ts +31 -13
  736. package/dist/internal/form.js +294 -262
  737. package/dist/internal/math.d.ts +3 -0
  738. package/dist/internal/math.js +29 -10
  739. package/dist/internal/offset.d.ts +1 -0
  740. package/dist/internal/offset.js +12 -8
  741. package/dist/internal/parse.d.ts +2 -0
  742. package/dist/internal/parse.js +7 -0
  743. package/dist/internal/placer-element.d.ts +30 -0
  744. package/dist/internal/placer-element.js +712 -0
  745. package/dist/internal/placer-form-control.d.ts +23 -0
  746. package/dist/internal/placer-form-control.js +0 -0
  747. package/dist/internal/scroll.d.ts +3 -0
  748. package/dist/internal/scroll.js +78 -56
  749. package/dist/internal/scrollend-polyfill.js +68 -60
  750. package/dist/internal/slot.d.ts +3 -0
  751. package/dist/internal/slot.js +74 -68
  752. package/dist/internal/string.d.ts +1 -0
  753. package/dist/internal/string.js +5 -3
  754. package/dist/internal/tabbable.d.ts +1 -0
  755. package/dist/internal/tabbable.js +128 -131
  756. package/dist/internal/watch.d.ts +12 -6
  757. package/dist/internal/watch.js +29 -29
  758. package/dist/placer-autoloader.js +45 -33
  759. package/dist/placer.d.ts +42 -38
  760. package/dist/placer.js +16097 -43
  761. package/dist/styles/component-styles/form-control.css +33 -0
  762. package/dist/styles/component-styles/host.css +13 -0
  763. package/dist/styles/native.css +451 -0
  764. package/dist/styles/palette/base.css +100 -0
  765. package/dist/styles/palette/default.css +227 -0
  766. package/dist/styles/palette/muted.css +227 -0
  767. package/dist/styles/palette/vibrant.css +227 -0
  768. package/dist/styles/placer.css +10 -0
  769. package/dist/styles/themes/default.css +445 -0
  770. package/dist/styles/themes/serene.css +454 -0
  771. package/dist/styles/themes/utility.css +544 -0
  772. package/dist/styles/utilities/align-items.css +21 -0
  773. package/dist/styles/utilities/appearance.css +62 -0
  774. package/dist/styles/utilities/border-radius.css +29 -0
  775. package/dist/styles/utilities/fouce.css +11 -0
  776. package/dist/styles/utilities/gap.css +66 -0
  777. package/dist/styles/utilities/layout.css +162 -0
  778. package/dist/styles/utilities/scroll-lock.css +21 -0
  779. package/dist/styles/utilities/size.css +16 -0
  780. package/dist/styles/utilities/text.css +156 -0
  781. package/dist/styles/utilities/visually-hidden.css +16 -0
  782. package/dist/styles/utilities.css +13 -0
  783. package/dist/translations/ar.d.ts +3 -0
  784. package/dist/translations/ar.js +655 -0
  785. package/dist/translations/bg.d.ts +3 -0
  786. package/dist/translations/bg.js +651 -0
  787. package/dist/translations/bn.d.ts +3 -0
  788. package/dist/translations/bn.js +651 -0
  789. package/dist/translations/bs.d.ts +3 -0
  790. package/dist/translations/bs.js +655 -0
  791. package/dist/translations/ca.d.ts +3 -0
  792. package/dist/translations/ca.js +651 -0
  793. package/dist/translations/cs.d.ts +3 -0
  794. package/dist/translations/cs.js +653 -0
  795. package/dist/translations/cy.d.ts +3 -0
  796. package/dist/translations/cy.js +651 -0
  797. package/dist/translations/da.d.ts +3 -0
  798. package/dist/translations/da.js +651 -0
  799. package/dist/translations/de-at.d.ts +3 -0
  800. package/dist/translations/de-at.js +661 -0
  801. package/dist/translations/de-ch.d.ts +3 -0
  802. package/dist/translations/de-ch.js +662 -0
  803. package/dist/translations/de.d.ts +3 -0
  804. package/dist/translations/de.js +651 -0
  805. package/dist/translations/el.d.ts +3 -0
  806. package/dist/translations/el.js +651 -0
  807. package/dist/translations/en-gb.d.ts +3 -0
  808. package/dist/translations/en-gb.js +664 -0
  809. package/dist/translations/en.d.ts +3 -0
  810. package/dist/translations/en.js +651 -0
  811. package/dist/translations/es-es.d.ts +3 -0
  812. package/dist/translations/es-es.js +664 -0
  813. package/dist/translations/es.d.ts +3 -0
  814. package/dist/translations/es.js +651 -0
  815. package/dist/translations/et.d.ts +3 -0
  816. package/dist/translations/et.js +651 -0
  817. package/dist/translations/eu.d.ts +3 -0
  818. package/dist/translations/eu.js +651 -0
  819. package/dist/translations/fa.d.ts +3 -0
  820. package/dist/translations/fa.js +651 -0
  821. package/dist/translations/fi.d.ts +3 -0
  822. package/dist/translations/fi.js +651 -0
  823. package/dist/translations/fil.d.ts +3 -0
  824. package/dist/translations/fil.js +651 -0
  825. package/dist/translations/fo.d.ts +3 -0
  826. package/dist/translations/fo.js +651 -0
  827. package/dist/translations/fr-ca.d.ts +3 -0
  828. package/dist/translations/fr-ca.js +662 -0
  829. package/dist/translations/fr.d.ts +3 -0
  830. package/dist/translations/fr.js +651 -0
  831. package/dist/translations/ga.d.ts +3 -0
  832. package/dist/translations/ga.js +651 -0
  833. package/dist/translations/gu.d.ts +3 -0
  834. package/dist/translations/gu.js +651 -0
  835. package/dist/translations/he.d.ts +3 -0
  836. package/dist/translations/he.js +651 -0
  837. package/dist/translations/hi.d.ts +3 -0
  838. package/dist/translations/hi.js +651 -0
  839. package/dist/translations/hr.d.ts +3 -0
  840. package/dist/translations/hr.js +655 -0
  841. package/dist/translations/hu.d.ts +3 -0
  842. package/dist/translations/hu.js +651 -0
  843. package/dist/translations/id.d.ts +3 -0
  844. package/dist/translations/id.js +651 -0
  845. package/dist/translations/index.d.ts +62 -0
  846. package/dist/translations/index.js +693 -0
  847. package/dist/translations/is.d.ts +3 -0
  848. package/dist/translations/is.js +651 -0
  849. package/dist/translations/it.d.ts +3 -0
  850. package/dist/translations/it.js +651 -0
  851. package/dist/translations/ja.d.ts +3 -0
  852. package/dist/translations/ja.js +649 -0
  853. package/dist/translations/ko.d.ts +3 -0
  854. package/dist/translations/ko.js +649 -0
  855. package/dist/translations/lb.d.ts +3 -0
  856. package/dist/translations/lb.js +651 -0
  857. package/dist/translations/lo.d.ts +3 -0
  858. package/dist/translations/lo.js +643 -0
  859. package/dist/translations/lt.d.ts +3 -0
  860. package/dist/translations/lt.js +651 -0
  861. package/dist/translations/lv.d.ts +3 -0
  862. package/dist/translations/lv.js +651 -0
  863. package/dist/translations/mr.d.ts +3 -0
  864. package/dist/translations/mr.js +651 -0
  865. package/dist/translations/ms.d.ts +3 -0
  866. package/dist/translations/ms.js +643 -0
  867. package/dist/translations/mt.d.ts +3 -0
  868. package/dist/translations/mt.js +651 -0
  869. package/dist/translations/nb.d.ts +3 -0
  870. package/dist/translations/nb.js +651 -0
  871. package/dist/translations/nl-be.d.ts +3 -0
  872. package/dist/translations/nl-be.js +664 -0
  873. package/dist/translations/nl.d.ts +3 -0
  874. package/dist/translations/nl.js +651 -0
  875. package/dist/translations/nn.d.ts +3 -0
  876. package/dist/translations/nn.js +677 -0
  877. package/dist/translations/pa-guru.d.ts +3 -0
  878. package/dist/translations/pa-guru.js +651 -0
  879. package/dist/translations/pa.d.ts +3 -0
  880. package/dist/translations/pa.js +651 -0
  881. package/dist/translations/pl.d.ts +3 -0
  882. package/dist/translations/pl.js +655 -0
  883. package/dist/translations/ps.d.ts +3 -0
  884. package/dist/translations/ps.js +651 -0
  885. package/dist/translations/pt-br.d.ts +3 -0
  886. package/dist/translations/pt-br.js +664 -0
  887. package/dist/translations/pt-pt.d.ts +3 -0
  888. package/dist/translations/pt-pt.js +685 -0
  889. package/dist/translations/pt.d.ts +3 -0
  890. package/dist/translations/pt.js +651 -0
  891. package/dist/translations/ro.d.ts +3 -0
  892. package/dist/translations/ro.js +651 -0
  893. package/dist/translations/ru.d.ts +3 -0
  894. package/dist/translations/ru.js +657 -0
  895. package/dist/translations/sk.d.ts +3 -0
  896. package/dist/translations/sk.js +653 -0
  897. package/dist/translations/sl.d.ts +3 -0
  898. package/dist/translations/sl.js +655 -0
  899. package/dist/translations/sq.d.ts +3 -0
  900. package/dist/translations/sq.js +651 -0
  901. package/dist/translations/sr.d.ts +3 -0
  902. package/dist/translations/sr.js +655 -0
  903. package/dist/translations/sv.d.ts +3 -0
  904. package/dist/translations/sv.js +651 -0
  905. package/dist/translations/sw.d.ts +3 -0
  906. package/dist/translations/sw.js +651 -0
  907. package/dist/translations/te.d.ts +3 -0
  908. package/dist/translations/te.js +651 -0
  909. package/dist/translations/th.d.ts +3 -0
  910. package/dist/translations/th.js +643 -0
  911. package/dist/translations/tl.d.ts +3 -0
  912. package/dist/translations/tl.js +651 -0
  913. package/dist/translations/tr.d.ts +3 -0
  914. package/dist/translations/tr.js +651 -0
  915. package/dist/translations/uk.d.ts +3 -0
  916. package/dist/translations/uk.js +655 -0
  917. package/dist/translations/ur.d.ts +3 -0
  918. package/dist/translations/ur.js +651 -0
  919. package/dist/translations/vi.d.ts +3 -0
  920. package/dist/translations/vi.js +651 -0
  921. package/dist/translations/zh-cn.d.ts +3 -0
  922. package/dist/translations/zh-cn.js +651 -0
  923. package/dist/translations/zh-hk.d.ts +3 -0
  924. package/dist/translations/zh-hk.js +649 -0
  925. package/dist/translations/zh-tw.d.ts +3 -0
  926. package/dist/translations/zh-tw.js +674 -0
  927. package/dist/utilities/animation-registry.js +33 -29
  928. package/dist/utilities/animation.js +1229 -1
  929. package/dist/utilities/form.js +61 -34
  930. package/dist/utilities/icon-library.js +229 -1
  931. package/dist/utilities/kit-code.d.ts +2 -0
  932. package/dist/utilities/kit-code.js +18 -0
  933. package/dist/utilities/localize.d.ts +35 -0
  934. package/dist/utilities/localize.js +739 -0
  935. package/package.json +86 -79
  936. package/dist/components/animation/animation.component.d.ts +0 -65
  937. package/dist/components/animation/animation.component.js +0 -247
  938. package/dist/components/animation/animation.styles.d.ts +0 -1
  939. package/dist/components/animation/animation.styles.js +0 -9
  940. package/dist/components/avatar/avatar.component.d.ts +0 -43
  941. package/dist/components/avatar/avatar.component.js +0 -137
  942. package/dist/components/avatar/avatar.styles.d.ts +0 -1
  943. package/dist/components/avatar/avatar.styles.js +0 -68
  944. package/dist/components/badge/badge.component.d.ts +0 -21
  945. package/dist/components/badge/badge.component.js +0 -64
  946. package/dist/components/badge/badge.styles.d.ts +0 -1
  947. package/dist/components/badge/badge.styles.js +0 -76
  948. package/dist/components/button/button.component.d.ts +0 -104
  949. package/dist/components/button/button.component.js +0 -346
  950. package/dist/components/button/button.styles.d.ts +0 -1
  951. package/dist/components/button/button.styles.js +0 -322
  952. package/dist/components/button-group/button-group.component.d.ts +0 -26
  953. package/dist/components/button-group/button-group.component.js +0 -93
  954. package/dist/components/button-group/button-group.styles.d.ts +0 -1
  955. package/dist/components/button-group/button-group.styles.js +0 -14
  956. package/dist/components/callout/callout.component.d.ts +0 -22
  957. package/dist/components/callout/callout.component.js +0 -63
  958. package/dist/components/callout/callout.styles.d.ts +0 -1
  959. package/dist/components/callout/callout.styles.js +0 -68
  960. package/dist/components/card/card.component.d.ts +0 -29
  961. package/dist/components/card/card.component.js +0 -59
  962. package/dist/components/card/card.styles.d.ts +0 -1
  963. package/dist/components/card/card.styles.js +0 -65
  964. package/dist/components/checkbox/checkbox.component.d.ts +0 -44
  965. package/dist/components/checkbox/checkbox.component.js +0 -287
  966. package/dist/components/checkbox/checkbox.styles.d.ts +0 -1
  967. package/dist/components/checkbox/checkbox.styles.js +0 -166
  968. package/dist/components/comparer/comparer.component.d.ts +0 -43
  969. package/dist/components/comparer/comparer.component.js +0 -181
  970. package/dist/components/comparer/comparer.styles.d.ts +0 -1
  971. package/dist/components/comparer/comparer.styles.js +0 -75
  972. package/dist/components/copy-button/copy-button.component.d.ts +0 -75
  973. package/dist/components/copy-button/copy-button.component.js +0 -289
  974. package/dist/components/copy-button/copy-button.styles.d.ts +0 -1
  975. package/dist/components/copy-button/copy-button.styles.js +0 -61
  976. package/dist/components/details/details.component.d.ts +0 -25
  977. package/dist/components/details/details.component.js +0 -243
  978. package/dist/components/details/details.styles.d.ts +0 -1
  979. package/dist/components/details/details.styles.js +0 -86
  980. package/dist/components/dialog/dialog.component.d.ts +0 -84
  981. package/dist/components/dialog/dialog.component.js +0 -362
  982. package/dist/components/dialog/dialog.styles.d.ts +0 -1
  983. package/dist/components/dialog/dialog.styles.js +0 -123
  984. package/dist/components/divider/divider.component.d.ts +0 -20
  985. package/dist/components/divider/divider.component.js +0 -51
  986. package/dist/components/divider/divider.styles.d.ts +0 -1
  987. package/dist/components/divider/divider.styles.js +0 -29
  988. package/dist/components/drawer/drawer.component.d.ts +0 -95
  989. package/dist/components/drawer/drawer.component.js +0 -509
  990. package/dist/components/drawer/drawer.styles.d.ts +0 -1
  991. package/dist/components/drawer/drawer.styles.js +0 -157
  992. package/dist/components/dropdown/dropdown.component.d.ts +0 -44
  993. package/dist/components/dropdown/dropdown.component.js +0 -385
  994. package/dist/components/dropdown/dropdown.styles.d.ts +0 -1
  995. package/dist/components/dropdown/dropdown.styles.js +0 -52
  996. package/dist/components/icon/icon.component.d.ts +0 -47
  997. package/dist/components/icon/icon.component.js +0 -225
  998. package/dist/components/icon/icon.styles.d.ts +0 -1
  999. package/dist/components/icon/icon.styles.js +0 -49
  1000. package/dist/components/icon-button/icon-button.component.d.ts +0 -27
  1001. package/dist/components/icon-button/icon-button.component.js +0 -151
  1002. package/dist/components/icon-button/icon-button.d.ts +0 -8
  1003. package/dist/components/icon-button/icon-button.js +0 -5
  1004. package/dist/components/icon-button/icon-button.styles.d.ts +0 -1
  1005. package/dist/components/icon-button/icon-button.styles.js +0 -53
  1006. package/dist/components/input/input.component.d.ts +0 -78
  1007. package/dist/components/input/input.component.js +0 -513
  1008. package/dist/components/input/input.styles.d.ts +0 -1
  1009. package/dist/components/input/input.styles.js +0 -308
  1010. package/dist/components/menu/menu.component.d.ts +0 -20
  1011. package/dist/components/menu/menu.component.js +0 -123
  1012. package/dist/components/menu/menu.d.ts +0 -8
  1013. package/dist/components/menu/menu.js +0 -5
  1014. package/dist/components/menu/menu.styles.d.ts +0 -1
  1015. package/dist/components/menu/menu.styles.js +0 -20
  1016. package/dist/components/menu-item/menu-item.component.d.ts +0 -34
  1017. package/dist/components/menu-item/menu-item.component.js +0 -211
  1018. package/dist/components/menu-item/menu-item.d.ts +0 -8
  1019. package/dist/components/menu-item/menu-item.js +0 -5
  1020. package/dist/components/menu-item/menu-item.styles.d.ts +0 -1
  1021. package/dist/components/menu-item/menu-item.styles.js +0 -157
  1022. package/dist/components/menu-item/submenu-controller.d.ts +0 -34
  1023. package/dist/components/menu-item/submenu-controller.js +0 -246
  1024. package/dist/components/menu-label/menu-label.component.d.ts +0 -15
  1025. package/dist/components/menu-label/menu-label.component.js +0 -25
  1026. package/dist/components/menu-label/menu-label.d.ts +0 -8
  1027. package/dist/components/menu-label/menu-label.js +0 -5
  1028. package/dist/components/menu-label/menu-label.styles.d.ts +0 -1
  1029. package/dist/components/menu-label/menu-label.styles.js +0 -22
  1030. package/dist/components/option/option.component.d.ts +0 -42
  1031. package/dist/components/option/option.component.js +0 -161
  1032. package/dist/components/option/option.styles.d.ts +0 -1
  1033. package/dist/components/option/option.styles.js +0 -108
  1034. package/dist/components/popup/popup.component.d.ts +0 -44
  1035. package/dist/components/popup/popup.component.js +0 -483
  1036. package/dist/components/popup/popup.styles.d.ts +0 -1
  1037. package/dist/components/popup/popup.styles.js +0 -64
  1038. package/dist/components/qr-code/qr-code.component.d.ts +0 -16
  1039. package/dist/components/qr-code/qr-code.component.js +0 -94
  1040. package/dist/components/qr-code/qr-code.styles.d.ts +0 -1
  1041. package/dist/components/qr-code/qr-code.styles.js +0 -9
  1042. package/dist/components/radio/radio.component.d.ts +0 -19
  1043. package/dist/components/radio/radio.component.js +0 -120
  1044. package/dist/components/radio/radio.styles.d.ts +0 -1
  1045. package/dist/components/radio/radio.styles.js +0 -132
  1046. package/dist/components/radio-button/radio-button.component.d.ts +0 -22
  1047. package/dist/components/radio-button/radio-button.component.js +0 -131
  1048. package/dist/components/radio-button/radio-button.d.ts +0 -8
  1049. package/dist/components/radio-button/radio-button.js +0 -5
  1050. package/dist/components/radio-button/radio-button.styles.d.ts +0 -1
  1051. package/dist/components/radio-button/radio-button.styles.js +0 -25
  1052. package/dist/components/radio-group/radio-group.component.d.ts +0 -46
  1053. package/dist/components/radio-group/radio-group.component.js +0 -379
  1054. package/dist/components/radio-group/radio-group.styles.d.ts +0 -1
  1055. package/dist/components/radio-group/radio-group.styles.js +0 -42
  1056. package/dist/components/rating/rating.component.d.ts +0 -37
  1057. package/dist/components/rating/rating.component.js +0 -308
  1058. package/dist/components/rating/rating.styles.d.ts +0 -1
  1059. package/dist/components/rating/rating.styles.js +0 -94
  1060. package/dist/components/resize-observer/resize-observer.component.d.ts +0 -26
  1061. package/dist/components/resize-observer/resize-observer.component.js +0 -89
  1062. package/dist/components/resize-observer/resize-observer.styles.d.ts +0 -1
  1063. package/dist/components/resize-observer/resize-observer.styles.js +0 -9
  1064. package/dist/components/select/select.component.d.ts +0 -174
  1065. package/dist/components/select/select.component.js +0 -960
  1066. package/dist/components/select/select.styles.d.ts +0 -1
  1067. package/dist/components/select/select.styles.js +0 -363
  1068. package/dist/components/spinner/spinner.component.d.ts +0 -20
  1069. package/dist/components/spinner/spinner.component.js +0 -47
  1070. package/dist/components/spinner/spinner.styles.d.ts +0 -1
  1071. package/dist/components/spinner/spinner.styles.js +0 -61
  1072. package/dist/components/switch/switch.component.d.ts +0 -84
  1073. package/dist/components/switch/switch.component.js +0 -281
  1074. package/dist/components/switch/switch.styles.d.ts +0 -1
  1075. package/dist/components/switch/switch.styles.js +0 -178
  1076. package/dist/components/tab/tab.component.d.ts +0 -22
  1077. package/dist/components/tab/tab.component.js +0 -112
  1078. package/dist/components/tab/tab.styles.d.ts +0 -1
  1079. package/dist/components/tab/tab.styles.js +0 -85
  1080. package/dist/components/tab-group/tab-group.component.d.ts +0 -51
  1081. package/dist/components/tab-group/tab-group.component.js +0 -513
  1082. package/dist/components/tab-group/tab-group.styles.d.ts +0 -1
  1083. package/dist/components/tab-group/tab-group.styles.js +0 -219
  1084. package/dist/components/tab-panel/tab-panel.component.d.ts +0 -12
  1085. package/dist/components/tab-panel/tab-panel.component.js +0 -56
  1086. package/dist/components/tab-panel/tab-panel.styles.d.ts +0 -1
  1087. package/dist/components/tab-panel/tab-panel.styles.js +0 -18
  1088. package/dist/components/tag/tag.component.d.ts +0 -38
  1089. package/dist/components/tag/tag.component.js +0 -109
  1090. package/dist/components/tag/tag.styles.d.ts +0 -1
  1091. package/dist/components/tag/tag.styles.js +0 -155
  1092. package/dist/components/tooltip/tooltip.component.d.ts +0 -38
  1093. package/dist/components/tooltip/tooltip.component.js +0 -267
  1094. package/dist/components/tooltip/tooltip.styles.d.ts +0 -1
  1095. package/dist/components/tooltip/tooltip.styles.js +0 -59
  1096. package/dist/default.css +0 -1005
  1097. package/dist/events/pc-request-close.d.ts +0 -8
  1098. package/dist/events/pc-request-close.js +0 -1
  1099. package/dist/internal/modal.d.ts +0 -19
  1100. package/dist/internal/modal.js +0 -116
  1101. package/dist/native-styles.css +0 -261
  1102. package/dist/style-utilities/fouce.css +0 -13
  1103. package/dist/style-utilities/style-utilities.css +0 -2
  1104. package/dist/style-utilities/visually-hidden.css +0 -12
  1105. package/dist/utilities/base-path.d.ts +0 -2
  1106. package/dist/utilities/base-path.js +0 -8
  1107. package/dist/utility.css +0 -41
  1108. package/src/animations/attention_seekers/bounce.ts +0 -43
  1109. package/src/animations/attention_seekers/flash.ts +0 -7
  1110. package/src/animations/attention_seekers/headShake.ts +0 -8
  1111. package/src/animations/attention_seekers/heartBeat.ts +0 -7
  1112. package/src/animations/attention_seekers/jello.ts +0 -15
  1113. package/src/animations/attention_seekers/pulse.ts +0 -5
  1114. package/src/animations/attention_seekers/rubberBand.ts +0 -9
  1115. package/src/animations/attention_seekers/shake.ts +0 -13
  1116. package/src/animations/attention_seekers/shakeX.ts +0 -13
  1117. package/src/animations/attention_seekers/shakeY.ts +0 -13
  1118. package/src/animations/attention_seekers/swing.ts +0 -7
  1119. package/src/animations/attention_seekers/tada.ts +0 -40
  1120. package/src/animations/attention_seekers/wobble.ts +0 -24
  1121. package/src/animations/back_entrances/backInDown.ts +0 -5
  1122. package/src/animations/back_entrances/backInLeft.ts +0 -5
  1123. package/src/animations/back_entrances/backInRight.ts +0 -5
  1124. package/src/animations/back_entrances/backInUp.ts +0 -5
  1125. package/src/animations/back_exits/backOutDown.ts +0 -5
  1126. package/src/animations/back_exits/backOutLeft.ts +0 -5
  1127. package/src/animations/back_exits/backOutRight.ts +0 -5
  1128. package/src/animations/back_exits/backOutUp.ts +0 -5
  1129. package/src/animations/bouncing_entrances/bounceIn.ts +0 -14
  1130. package/src/animations/bouncing_entrances/bounceInDown.ts +0 -20
  1131. package/src/animations/bouncing_entrances/bounceInLeft.ts +0 -20
  1132. package/src/animations/bouncing_entrances/bounceInRight.ts +0 -20
  1133. package/src/animations/bouncing_entrances/bounceInUp.ts +0 -20
  1134. package/src/animations/bouncing_exits/bounceOut.ts +0 -6
  1135. package/src/animations/bouncing_exits/bounceOutDown.ts +0 -18
  1136. package/src/animations/bouncing_exits/bounceOutLeft.ts +0 -12
  1137. package/src/animations/bouncing_exits/bounceOutRight.ts +0 -12
  1138. package/src/animations/bouncing_exits/bounceOutUp.ts +0 -18
  1139. package/src/animations/easings/easings.ts +0 -31
  1140. package/src/animations/fading_entrances/fadeIn.ts +0 -4
  1141. package/src/animations/fading_entrances/fadeInBottomLeft.ts +0 -4
  1142. package/src/animations/fading_entrances/fadeInBottomRight.ts +0 -4
  1143. package/src/animations/fading_entrances/fadeInDown.ts +0 -4
  1144. package/src/animations/fading_entrances/fadeInDownBig.ts +0 -4
  1145. package/src/animations/fading_entrances/fadeInLeft.ts +0 -4
  1146. package/src/animations/fading_entrances/fadeInLeftBig.ts +0 -4
  1147. package/src/animations/fading_entrances/fadeInRight.ts +0 -4
  1148. package/src/animations/fading_entrances/fadeInRightBig.ts +0 -4
  1149. package/src/animations/fading_entrances/fadeInTopLeft.ts +0 -4
  1150. package/src/animations/fading_entrances/fadeInTopRight.ts +0 -4
  1151. package/src/animations/fading_entrances/fadeInUp.ts +0 -4
  1152. package/src/animations/fading_entrances/fadeInUpBig.ts +0 -4
  1153. package/src/animations/fading_exits/fadeOut.ts +0 -4
  1154. package/src/animations/fading_exits/fadeOutBottomLeft.ts +0 -4
  1155. package/src/animations/fading_exits/fadeOutBottomRight.ts +0 -4
  1156. package/src/animations/fading_exits/fadeOutDown.ts +0 -4
  1157. package/src/animations/fading_exits/fadeOutDownBig.ts +0 -4
  1158. package/src/animations/fading_exits/fadeOutLeft.ts +0 -4
  1159. package/src/animations/fading_exits/fadeOutLeftBig.ts +0 -4
  1160. package/src/animations/fading_exits/fadeOutRight.ts +0 -4
  1161. package/src/animations/fading_exits/fadeOutRightBig.ts +0 -4
  1162. package/src/animations/fading_exits/fadeOutTopLeft.ts +0 -4
  1163. package/src/animations/fading_exits/fadeOutTopRight.ts +0 -4
  1164. package/src/animations/fading_exits/fadeOutUp.ts +0 -4
  1165. package/src/animations/fading_exits/fadeOutUpBig.ts +0 -4
  1166. package/src/animations/flippers/flip.ts +0 -32
  1167. package/src/animations/flippers/flipInX.ts +0 -20
  1168. package/src/animations/flippers/flipInY.ts +0 -20
  1169. package/src/animations/flippers/flipOutX.ts +0 -13
  1170. package/src/animations/flippers/flipOutY.ts +0 -13
  1171. package/src/animations/index.ts +0 -101
  1172. package/src/animations/lightspeed/lightSpeedInLeft.ts +0 -10
  1173. package/src/animations/lightspeed/lightSpeedInRight.ts +0 -10
  1174. package/src/animations/lightspeed/lightSpeedOutLeft.ts +0 -8
  1175. package/src/animations/lightspeed/lightSpeedOutRight.ts +0 -8
  1176. package/src/animations/rotating_entrances/rotateIn.ts +0 -4
  1177. package/src/animations/rotating_entrances/rotateInDownLeft.ts +0 -4
  1178. package/src/animations/rotating_entrances/rotateInDownRight.ts +0 -4
  1179. package/src/animations/rotating_entrances/rotateInUpLeft.ts +0 -4
  1180. package/src/animations/rotating_entrances/rotateInUpRight.ts +0 -4
  1181. package/src/animations/rotating_exits/rotateOut.ts +0 -4
  1182. package/src/animations/rotating_exits/rotateOutDownLeft.ts +0 -4
  1183. package/src/animations/rotating_exits/rotateOutDownRight.ts +0 -4
  1184. package/src/animations/rotating_exits/rotateOutUpLeft.ts +0 -4
  1185. package/src/animations/rotating_exits/rotateOutUpRight.ts +0 -4
  1186. package/src/animations/sliding_entrances/slideInDown.ts +0 -4
  1187. package/src/animations/sliding_entrances/slideInLeft.ts +0 -4
  1188. package/src/animations/sliding_entrances/slideInRight.ts +0 -4
  1189. package/src/animations/sliding_entrances/slideInUp.ts +0 -4
  1190. package/src/animations/sliding_exits/slideOutDown.ts +0 -4
  1191. package/src/animations/sliding_exits/slideOutLeft.ts +0 -4
  1192. package/src/animations/sliding_exits/slideOutRight.ts +0 -4
  1193. package/src/animations/sliding_exits/slideOutUp.ts +0 -4
  1194. package/src/animations/specials/hinge.ts +0 -26
  1195. package/src/animations/specials/jackInTheBox.ts +0 -11
  1196. package/src/animations/specials/rollIn.ts +0 -8
  1197. package/src/animations/specials/rollOut.ts +0 -8
  1198. package/src/animations/zooming_entrances/zoomIn.ts +0 -4
  1199. package/src/animations/zooming_entrances/zoomInDown.ts +0 -14
  1200. package/src/animations/zooming_entrances/zoomInLeft.ts +0 -14
  1201. package/src/animations/zooming_entrances/zoomInRight.ts +0 -14
  1202. package/src/animations/zooming_entrances/zoomInUp.ts +0 -14
  1203. package/src/animations/zooming_exits/zoomOut.ts +0 -5
  1204. package/src/animations/zooming_exits/zoomOutDown.ts +0 -14
  1205. package/src/animations/zooming_exits/zoomOutLeft.ts +0 -12
  1206. package/src/animations/zooming_exits/zoomOutRight.ts +0 -12
  1207. package/src/animations/zooming_exits/zoomOutUp.ts +0 -14
  1208. package/src/components/animation/animation.component.ts +0 -224
  1209. package/src/components/animation/animation.styles.ts +0 -7
  1210. package/src/components/animation/animation.ts +0 -10
  1211. package/src/components/animation/animations.ts +0 -13
  1212. package/src/components/avatar/avatar.component.ts +0 -113
  1213. package/src/components/avatar/avatar.styles.ts +0 -66
  1214. package/src/components/avatar/avatar.ts +0 -10
  1215. package/src/components/badge/badge.component.ts +0 -54
  1216. package/src/components/badge/badge.styles.ts +0 -74
  1217. package/src/components/badge/badge.ts +0 -10
  1218. package/src/components/button/button.component.ts +0 -335
  1219. package/src/components/button/button.styles.ts +0 -320
  1220. package/src/components/button/button.ts +0 -10
  1221. package/src/components/button-group/button-group.component.ts +0 -101
  1222. package/src/components/button-group/button-group.styles.ts +0 -12
  1223. package/src/components/button-group/button-group.ts +0 -10
  1224. package/src/components/callout/callout.component.ts +0 -60
  1225. package/src/components/callout/callout.styles.ts +0 -66
  1226. package/src/components/callout/callout.ts +0 -10
  1227. package/src/components/card/card.component.ts +0 -59
  1228. package/src/components/card/card.styles.ts +0 -63
  1229. package/src/components/card/card.ts +0 -10
  1230. package/src/components/checkbox/checkbox.component.ts +0 -244
  1231. package/src/components/checkbox/checkbox.styles.ts +0 -164
  1232. package/src/components/checkbox/checkbox.ts +0 -10
  1233. package/src/components/comparer/comparer.component.ts +0 -188
  1234. package/src/components/comparer/comparer.styles.ts +0 -73
  1235. package/src/components/comparer/comparer.ts +0 -10
  1236. package/src/components/copy-button/copy-button.component.ts +0 -272
  1237. package/src/components/copy-button/copy-button.styles.ts +0 -59
  1238. package/src/components/copy-button/copy-button.ts +0 -10
  1239. package/src/components/details/details.component.ts +0 -259
  1240. package/src/components/details/details.styles.ts +0 -84
  1241. package/src/components/details/details.ts +0 -10
  1242. package/src/components/dialog/dialog.component.ts +0 -403
  1243. package/src/components/dialog/dialog.styles.ts +0 -121
  1244. package/src/components/dialog/dialog.ts +0 -10
  1245. package/src/components/divider/divider.component.ts +0 -42
  1246. package/src/components/divider/divider.styles.ts +0 -27
  1247. package/src/components/divider/divider.ts +0 -10
  1248. package/src/components/drawer/drawer.component.ts +0 -565
  1249. package/src/components/drawer/drawer.styles.ts +0 -155
  1250. package/src/components/drawer/drawer.ts +0 -10
  1251. package/src/components/dropdown/dropdown.component.ts +0 -430
  1252. package/src/components/dropdown/dropdown.styles.ts +0 -50
  1253. package/src/components/dropdown/dropdown.ts +0 -10
  1254. package/src/components/icon/icon.component.ts +0 -239
  1255. package/src/components/icon/icon.styles.ts +0 -47
  1256. package/src/components/icon/icon.ts +0 -10
  1257. package/src/components/icon/library.default.ts +0 -10
  1258. package/src/components/icon/library.system.ts +0 -136
  1259. package/src/components/icon/library.ts +0 -54
  1260. package/src/components/icon-button/icon-button.component.ts +0 -129
  1261. package/src/components/icon-button/icon-button.styles.ts +0 -51
  1262. package/src/components/icon-button/icon-button.ts +0 -10
  1263. package/src/components/input/input.component.ts +0 -496
  1264. package/src/components/input/input.styles.ts +0 -306
  1265. package/src/components/input/input.ts +0 -10
  1266. package/src/components/menu/menu.component.ts +0 -161
  1267. package/src/components/menu/menu.styles.ts +0 -18
  1268. package/src/components/menu/menu.ts +0 -10
  1269. package/src/components/menu-item/menu-item.component.ts +0 -190
  1270. package/src/components/menu-item/menu-item.styles.ts +0 -155
  1271. package/src/components/menu-item/menu-item.ts +0 -10
  1272. package/src/components/menu-item/submenu-controller.ts +0 -337
  1273. package/src/components/menu-label/menu-label.component.ts +0 -22
  1274. package/src/components/menu-label/menu-label.styles.ts +0 -20
  1275. package/src/components/menu-label/menu-label.ts +0 -10
  1276. package/src/components/option/option.component.ts +0 -141
  1277. package/src/components/option/option.styles.ts +0 -106
  1278. package/src/components/option/option.ts +0 -10
  1279. package/src/components/popup/popup.component.ts +0 -540
  1280. package/src/components/popup/popup.styles.ts +0 -63
  1281. package/src/components/popup/popup.ts +0 -12
  1282. package/src/components/qr-code/qr-code.component.ts +0 -70
  1283. package/src/components/qr-code/qr-code.styles.ts +0 -7
  1284. package/src/components/qr-code/qr-code.ts +0 -10
  1285. package/src/components/radio/radio.component.ts +0 -100
  1286. package/src/components/radio/radio.styles.ts +0 -130
  1287. package/src/components/radio/radio.ts +0 -10
  1288. package/src/components/radio-button/radio-button.component.ts +0 -116
  1289. package/src/components/radio-button/radio-button.styles.ts +0 -23
  1290. package/src/components/radio-button/radio-button.ts +0 -10
  1291. package/src/components/radio-group/radio-group.component.ts +0 -404
  1292. package/src/components/radio-group/radio-group.styles.ts +0 -40
  1293. package/src/components/radio-group/radio-group.ts +0 -10
  1294. package/src/components/rating/rating.component.ts +0 -319
  1295. package/src/components/rating/rating.styles.ts +0 -92
  1296. package/src/components/rating/rating.ts +0 -10
  1297. package/src/components/resize-observer/resize-observer.component.ts +0 -91
  1298. package/src/components/resize-observer/resize-observer.styles.ts +0 -7
  1299. package/src/components/resize-observer/resize-observer.ts +0 -10
  1300. package/src/components/select/select.component.ts +0 -1013
  1301. package/src/components/select/select.styles.ts +0 -361
  1302. package/src/components/select/select.ts +0 -10
  1303. package/src/components/spinner/spinner.component.ts +0 -38
  1304. package/src/components/spinner/spinner.styles.ts +0 -59
  1305. package/src/components/spinner/spinner.ts +0 -10
  1306. package/src/components/switch/switch.component.ts +0 -253
  1307. package/src/components/switch/switch.styles.ts +0 -176
  1308. package/src/components/switch/switch.ts +0 -10
  1309. package/src/components/tab/tab.component.ts +0 -87
  1310. package/src/components/tab/tab.styles.ts +0 -83
  1311. package/src/components/tab/tab.ts +0 -10
  1312. package/src/components/tab-group/tab-group.component.ts +0 -607
  1313. package/src/components/tab-group/tab-group.styles.ts +0 -217
  1314. package/src/components/tab-group/tab-group.ts +0 -10
  1315. package/src/components/tab-panel/tab-panel.component.ts +0 -43
  1316. package/src/components/tab-panel/tab-panel.styles.ts +0 -16
  1317. package/src/components/tab-panel/tab-panel.ts +0 -10
  1318. package/src/components/tag/tag.component.ts +0 -94
  1319. package/src/components/tag/tag.styles.ts +0 -153
  1320. package/src/components/tag/tag.ts +0 -10
  1321. package/src/components/tooltip/tooltip.component.ts +0 -276
  1322. package/src/components/tooltip/tooltip.styles.ts +0 -57
  1323. package/src/components/tooltip/tooltip.ts +0 -10
  1324. package/src/default.css +0 -1005
  1325. package/src/events/events.ts +0 -35
  1326. package/src/events/pc-after-collapse.ts +0 -7
  1327. package/src/events/pc-after-expand.ts +0 -7
  1328. package/src/events/pc-after-hide.ts +0 -7
  1329. package/src/events/pc-after-show.ts +0 -7
  1330. package/src/events/pc-blur.ts +0 -7
  1331. package/src/events/pc-cancel.ts +0 -7
  1332. package/src/events/pc-change.ts +0 -7
  1333. package/src/events/pc-clear.ts +0 -7
  1334. package/src/events/pc-close.ts +0 -7
  1335. package/src/events/pc-collapse.ts +0 -7
  1336. package/src/events/pc-copy.ts +0 -7
  1337. package/src/events/pc-error.ts +0 -7
  1338. package/src/events/pc-expand.ts +0 -7
  1339. package/src/events/pc-finish.ts +0 -7
  1340. package/src/events/pc-focus.ts +0 -7
  1341. package/src/events/pc-hide.ts +0 -7
  1342. package/src/events/pc-hover.ts +0 -10
  1343. package/src/events/pc-initial-focus.ts +0 -7
  1344. package/src/events/pc-input.ts +0 -7
  1345. package/src/events/pc-invalid.ts +0 -7
  1346. package/src/events/pc-lazy-change.ts +0 -7
  1347. package/src/events/pc-lazy-load.ts +0 -7
  1348. package/src/events/pc-load.ts +0 -7
  1349. package/src/events/pc-mutation.ts +0 -7
  1350. package/src/events/pc-remove.ts +0 -7
  1351. package/src/events/pc-reposition.ts +0 -7
  1352. package/src/events/pc-request-close.ts +0 -9
  1353. package/src/events/pc-resize.ts +0 -7
  1354. package/src/events/pc-select.ts +0 -9
  1355. package/src/events/pc-selection-change.ts +0 -10
  1356. package/src/events/pc-show.ts +0 -7
  1357. package/src/events/pc-slide-change.ts +0 -13
  1358. package/src/events/pc-start.ts +0 -7
  1359. package/src/events/pc-tab-hide.ts +0 -7
  1360. package/src/events/pc-tab-show.ts +0 -7
  1361. package/src/global-shims.ts +0 -126
  1362. package/src/global.d.ts +0 -31
  1363. package/src/internal/active-elements.ts +0 -21
  1364. package/src/internal/animate.ts +0 -62
  1365. package/src/internal/close-active-element.ts +0 -7
  1366. package/src/internal/debounce.ts +0 -25
  1367. package/src/internal/default-value.ts +0 -40
  1368. package/src/internal/drag.ts +0 -36
  1369. package/src/internal/emit.ts +0 -19
  1370. package/src/internal/event.ts +0 -12
  1371. package/src/internal/form.ts +0 -389
  1372. package/src/internal/math.ts +0 -14
  1373. package/src/internal/modal.ts +0 -157
  1374. package/src/internal/offset.ts +0 -12
  1375. package/src/internal/scroll.ts +0 -95
  1376. package/src/internal/scrollend-polyfill.ts +0 -99
  1377. package/src/internal/slot.ts +0 -110
  1378. package/src/internal/string.ts +0 -3
  1379. package/src/internal/tabbable.ts +0 -207
  1380. package/src/internal/watch.ts +0 -58
  1381. package/src/native-styles.css +0 -261
  1382. package/src/placer-autoloader.ts +0 -53
  1383. package/src/placer.ts +0 -53
  1384. package/src/style-utilities/fouce.css +0 -13
  1385. package/src/style-utilities/style-utilities.css +0 -2
  1386. package/src/style-utilities/visually-hidden.css +0 -12
  1387. package/src/utilities/animation-registry.ts +0 -72
  1388. package/src/utilities/animation.ts +0 -4
  1389. package/src/utilities/base-path.ts +0 -39
  1390. package/src/utilities/form.ts +0 -41
  1391. package/src/utilities/icon-library.ts +0 -4
  1392. package/src/utility.css +0 -41
@@ -1,5 +1,3938 @@
1
- import { PcCopyButton as PcCopyButton$1 } from './copy-button.component.js';
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
6
+ if (decorator = decorators[i7])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result) __defProp(target, key, result);
9
+ return result;
10
+ };
2
11
 
3
- var PcCopyButton = PcCopyButton$1;
12
+ // node_modules/@lit/reactive-element/css-tag.js
13
+ var t = globalThis;
14
+ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
15
+ var s = Symbol();
16
+ var o = /* @__PURE__ */ new WeakMap();
17
+ var n = class {
18
+ constructor(t5, e9, o6) {
19
+ if (this._$cssResult$ = true, o6 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20
+ this.cssText = t5, this.t = e9;
21
+ }
22
+ get styleSheet() {
23
+ let t5 = this.o;
24
+ const s4 = this.t;
25
+ if (e && void 0 === t5) {
26
+ const e9 = void 0 !== s4 && 1 === s4.length;
27
+ e9 && (t5 = o.get(s4)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e9 && o.set(s4, t5));
28
+ }
29
+ return t5;
30
+ }
31
+ toString() {
32
+ return this.cssText;
33
+ }
34
+ };
35
+ var r = (t5) => new n("string" == typeof t5 ? t5 : t5 + "", void 0, s);
36
+ var S = (s4, o6) => {
37
+ if (e) s4.adoptedStyleSheets = o6.map(((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet));
38
+ else for (const e9 of o6) {
39
+ const o7 = document.createElement("style"), n5 = t.litNonce;
40
+ void 0 !== n5 && o7.setAttribute("nonce", n5), o7.textContent = e9.cssText, s4.appendChild(o7);
41
+ }
42
+ };
43
+ var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
44
+ let e9 = "";
45
+ for (const s4 of t6.cssRules) e9 += s4.cssText;
46
+ return r(e9);
47
+ })(t5) : t5;
4
48
 
5
- export { PcCopyButton$1 as PcCopyButton, PcCopyButton as default };
49
+ // node_modules/@lit/reactive-element/reactive-element.js
50
+ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
51
+ var a = globalThis;
52
+ var c2 = a.trustedTypes;
53
+ var l = c2 ? c2.emptyScript : "";
54
+ var p = a.reactiveElementPolyfillSupport;
55
+ var d = (t5, s4) => t5;
56
+ var u = { toAttribute(t5, s4) {
57
+ switch (s4) {
58
+ case Boolean:
59
+ t5 = t5 ? l : null;
60
+ break;
61
+ case Object:
62
+ case Array:
63
+ t5 = null == t5 ? t5 : JSON.stringify(t5);
64
+ }
65
+ return t5;
66
+ }, fromAttribute(t5, s4) {
67
+ let i7 = t5;
68
+ switch (s4) {
69
+ case Boolean:
70
+ i7 = null !== t5;
71
+ break;
72
+ case Number:
73
+ i7 = null === t5 ? null : Number(t5);
74
+ break;
75
+ case Object:
76
+ case Array:
77
+ try {
78
+ i7 = JSON.parse(t5);
79
+ } catch (t6) {
80
+ i7 = null;
81
+ }
82
+ }
83
+ return i7;
84
+ } };
85
+ var f = (t5, s4) => !i2(t5, s4);
86
+ var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
87
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
88
+ var y = class extends HTMLElement {
89
+ static addInitializer(t5) {
90
+ this._$Ei(), (this.l ?? (this.l = [])).push(t5);
91
+ }
92
+ static get observedAttributes() {
93
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
94
+ }
95
+ static createProperty(t5, s4 = b) {
96
+ if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t5) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t5, s4), !s4.noAccessor) {
97
+ const i7 = Symbol(), h3 = this.getPropertyDescriptor(t5, i7, s4);
98
+ void 0 !== h3 && e2(this.prototype, t5, h3);
99
+ }
100
+ }
101
+ static getPropertyDescriptor(t5, s4, i7) {
102
+ const { get: e9, set: r7 } = h(this.prototype, t5) ?? { get() {
103
+ return this[s4];
104
+ }, set(t6) {
105
+ this[s4] = t6;
106
+ } };
107
+ return { get: e9, set(s5) {
108
+ const h3 = e9?.call(this);
109
+ r7?.call(this, s5), this.requestUpdate(t5, h3, i7);
110
+ }, configurable: true, enumerable: true };
111
+ }
112
+ static getPropertyOptions(t5) {
113
+ return this.elementProperties.get(t5) ?? b;
114
+ }
115
+ static _$Ei() {
116
+ if (this.hasOwnProperty(d("elementProperties"))) return;
117
+ const t5 = n2(this);
118
+ t5.finalize(), void 0 !== t5.l && (this.l = [...t5.l]), this.elementProperties = new Map(t5.elementProperties);
119
+ }
120
+ static finalize() {
121
+ if (this.hasOwnProperty(d("finalized"))) return;
122
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
123
+ const t6 = this.properties, s4 = [...r2(t6), ...o2(t6)];
124
+ for (const i7 of s4) this.createProperty(i7, t6[i7]);
125
+ }
126
+ const t5 = this[Symbol.metadata];
127
+ if (null !== t5) {
128
+ const s4 = litPropertyMetadata.get(t5);
129
+ if (void 0 !== s4) for (const [t6, i7] of s4) this.elementProperties.set(t6, i7);
130
+ }
131
+ this._$Eh = /* @__PURE__ */ new Map();
132
+ for (const [t6, s4] of this.elementProperties) {
133
+ const i7 = this._$Eu(t6, s4);
134
+ void 0 !== i7 && this._$Eh.set(i7, t6);
135
+ }
136
+ this.elementStyles = this.finalizeStyles(this.styles);
137
+ }
138
+ static finalizeStyles(s4) {
139
+ const i7 = [];
140
+ if (Array.isArray(s4)) {
141
+ const e9 = new Set(s4.flat(1 / 0).reverse());
142
+ for (const s5 of e9) i7.unshift(c(s5));
143
+ } else void 0 !== s4 && i7.push(c(s4));
144
+ return i7;
145
+ }
146
+ static _$Eu(t5, s4) {
147
+ const i7 = s4.attribute;
148
+ return false === i7 ? void 0 : "string" == typeof i7 ? i7 : "string" == typeof t5 ? t5.toLowerCase() : void 0;
149
+ }
150
+ constructor() {
151
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
152
+ }
153
+ _$Ev() {
154
+ this._$ES = new Promise(((t5) => this.enableUpdating = t5)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t5) => t5(this)));
155
+ }
156
+ addController(t5) {
157
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t5), void 0 !== this.renderRoot && this.isConnected && t5.hostConnected?.();
158
+ }
159
+ removeController(t5) {
160
+ this._$EO?.delete(t5);
161
+ }
162
+ _$E_() {
163
+ const t5 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
164
+ for (const i7 of s4.keys()) this.hasOwnProperty(i7) && (t5.set(i7, this[i7]), delete this[i7]);
165
+ t5.size > 0 && (this._$Ep = t5);
166
+ }
167
+ createRenderRoot() {
168
+ const t5 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
169
+ return S(t5, this.constructor.elementStyles), t5;
170
+ }
171
+ connectedCallback() {
172
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach(((t5) => t5.hostConnected?.()));
173
+ }
174
+ enableUpdating(t5) {
175
+ }
176
+ disconnectedCallback() {
177
+ this._$EO?.forEach(((t5) => t5.hostDisconnected?.()));
178
+ }
179
+ attributeChangedCallback(t5, s4, i7) {
180
+ this._$AK(t5, i7);
181
+ }
182
+ _$ET(t5, s4) {
183
+ const i7 = this.constructor.elementProperties.get(t5), e9 = this.constructor._$Eu(t5, i7);
184
+ if (void 0 !== e9 && true === i7.reflect) {
185
+ const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s4, i7.type);
186
+ this._$Em = t5, null == h3 ? this.removeAttribute(e9) : this.setAttribute(e9, h3), this._$Em = null;
187
+ }
188
+ }
189
+ _$AK(t5, s4) {
190
+ const i7 = this.constructor, e9 = i7._$Eh.get(t5);
191
+ if (void 0 !== e9 && this._$Em !== e9) {
192
+ const t6 = i7.getPropertyOptions(e9), h3 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
193
+ this._$Em = e9, this[e9] = h3.fromAttribute(s4, t6.type) ?? this._$Ej?.get(e9) ?? null, this._$Em = null;
194
+ }
195
+ }
196
+ requestUpdate(t5, s4, i7) {
197
+ if (void 0 !== t5) {
198
+ const e9 = this.constructor, h3 = this[t5];
199
+ if (i7 ?? (i7 = e9.getPropertyOptions(t5)), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t5) && !this.hasAttribute(e9._$Eu(t5, i7)))) return;
200
+ this.C(t5, s4, i7);
201
+ }
202
+ false === this.isUpdatePending && (this._$ES = this._$EP());
203
+ }
204
+ C(t5, s4, { useDefault: i7, reflect: e9, wrapped: h3 }, r7) {
205
+ i7 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t5) && (this._$Ej.set(t5, r7 ?? s4 ?? this[t5]), true !== h3 || void 0 !== r7) || (this._$AL.has(t5) || (this.hasUpdated || i7 || (s4 = void 0), this._$AL.set(t5, s4)), true === e9 && this._$Em !== t5 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t5));
206
+ }
207
+ async _$EP() {
208
+ this.isUpdatePending = true;
209
+ try {
210
+ await this._$ES;
211
+ } catch (t6) {
212
+ Promise.reject(t6);
213
+ }
214
+ const t5 = this.scheduleUpdate();
215
+ return null != t5 && await t5, !this.isUpdatePending;
216
+ }
217
+ scheduleUpdate() {
218
+ return this.performUpdate();
219
+ }
220
+ performUpdate() {
221
+ if (!this.isUpdatePending) return;
222
+ if (!this.hasUpdated) {
223
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
224
+ for (const [t7, s5] of this._$Ep) this[t7] = s5;
225
+ this._$Ep = void 0;
226
+ }
227
+ const t6 = this.constructor.elementProperties;
228
+ if (t6.size > 0) for (const [s5, i7] of t6) {
229
+ const { wrapped: t7 } = i7, e9 = this[s5];
230
+ true !== t7 || this._$AL.has(s5) || void 0 === e9 || this.C(s5, void 0, i7, e9);
231
+ }
232
+ }
233
+ let t5 = false;
234
+ const s4 = this._$AL;
235
+ try {
236
+ t5 = this.shouldUpdate(s4), t5 ? (this.willUpdate(s4), this._$EO?.forEach(((t6) => t6.hostUpdate?.())), this.update(s4)) : this._$EM();
237
+ } catch (s5) {
238
+ throw t5 = false, this._$EM(), s5;
239
+ }
240
+ t5 && this._$AE(s4);
241
+ }
242
+ willUpdate(t5) {
243
+ }
244
+ _$AE(t5) {
245
+ this._$EO?.forEach(((t6) => t6.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
246
+ }
247
+ _$EM() {
248
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
249
+ }
250
+ get updateComplete() {
251
+ return this.getUpdateComplete();
252
+ }
253
+ getUpdateComplete() {
254
+ return this._$ES;
255
+ }
256
+ shouldUpdate(t5) {
257
+ return true;
258
+ }
259
+ update(t5) {
260
+ this._$Eq && (this._$Eq = this._$Eq.forEach(((t6) => this._$ET(t6, this[t6])))), this._$EM();
261
+ }
262
+ updated(t5) {
263
+ }
264
+ firstUpdated(t5) {
265
+ }
266
+ };
267
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.0");
268
+
269
+ // node_modules/lit-html/lit-html.js
270
+ var t2 = globalThis;
271
+ var i3 = t2.trustedTypes;
272
+ var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
273
+ var e3 = "$lit$";
274
+ var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
275
+ var o3 = "?" + h2;
276
+ var n3 = `<${o3}>`;
277
+ var r3 = document;
278
+ var l2 = () => r3.createComment("");
279
+ var c3 = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5;
280
+ var a2 = Array.isArray;
281
+ var u2 = (t5) => a2(t5) || "function" == typeof t5?.[Symbol.iterator];
282
+ var d2 = "[ \n\f\r]";
283
+ var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
284
+ var v = /-->/g;
285
+ var _ = />/g;
286
+ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
288
+ var p2 = /'/g;
289
+ var g = /"/g;
290
+ var $ = /^(?:script|style|textarea|title)$/i;
291
+ var y2 = (t5) => (i7, ...s4) => ({ _$litType$: t5, strings: i7, values: s4 });
292
+ var x = y2(1);
293
+ var b2 = y2(2);
294
+ var w = y2(3);
295
+ var T = Symbol.for("lit-noChange");
296
+ var E = Symbol.for("lit-nothing");
297
+ var A = /* @__PURE__ */ new WeakMap();
298
+ var C = r3.createTreeWalker(r3, 129);
299
+ function P(t5, i7) {
300
+ if (!a2(t5) || !t5.hasOwnProperty("raw")) throw Error("invalid template strings array");
301
+ return void 0 !== s2 ? s2.createHTML(i7) : i7;
302
+ }
303
+ var V = (t5, i7) => {
304
+ const s4 = t5.length - 1, o6 = [];
305
+ let r7, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c4 = f2;
306
+ for (let i8 = 0; i8 < s4; i8++) {
307
+ const s5 = t5[i8];
308
+ let a3, u3, d3 = -1, y3 = 0;
309
+ for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); ) y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r7 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r7 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r7 = void 0);
310
+ const x2 = c4 === m && t5[i8 + 1].startsWith("/>") ? " " : "";
311
+ l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o6.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i8 : x2);
312
+ }
313
+ return [P(t5, l3 + (t5[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), o6];
314
+ };
315
+ var N = class _N {
316
+ constructor({ strings: t5, _$litType$: s4 }, n5) {
317
+ let r7;
318
+ this.parts = [];
319
+ let c4 = 0, a3 = 0;
320
+ const u3 = t5.length - 1, d3 = this.parts, [f3, v2] = V(t5, s4);
321
+ if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
322
+ const t6 = this.el.content.firstChild;
323
+ t6.replaceWith(...t6.childNodes);
324
+ }
325
+ for (; null !== (r7 = C.nextNode()) && d3.length < u3; ) {
326
+ if (1 === r7.nodeType) {
327
+ if (r7.hasAttributes()) for (const t6 of r7.getAttributeNames()) if (t6.endsWith(e3)) {
328
+ const i7 = v2[a3++], s5 = r7.getAttribute(t6).split(h2), e9 = /([.?@])?(.*)/.exec(i7);
329
+ d3.push({ type: 1, index: c4, name: e9[2], strings: s5, ctor: "." === e9[1] ? H : "?" === e9[1] ? I : "@" === e9[1] ? L : k }), r7.removeAttribute(t6);
330
+ } else t6.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r7.removeAttribute(t6));
331
+ if ($.test(r7.tagName)) {
332
+ const t6 = r7.textContent.split(h2), s5 = t6.length - 1;
333
+ if (s5 > 0) {
334
+ r7.textContent = i3 ? i3.emptyScript : "";
335
+ for (let i7 = 0; i7 < s5; i7++) r7.append(t6[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
336
+ r7.append(t6[s5], l2());
337
+ }
338
+ }
339
+ } else if (8 === r7.nodeType) if (r7.data === o3) d3.push({ type: 2, index: c4 });
340
+ else {
341
+ let t6 = -1;
342
+ for (; -1 !== (t6 = r7.data.indexOf(h2, t6 + 1)); ) d3.push({ type: 7, index: c4 }), t6 += h2.length - 1;
343
+ }
344
+ c4++;
345
+ }
346
+ }
347
+ static createElement(t5, i7) {
348
+ const s4 = r3.createElement("template");
349
+ return s4.innerHTML = t5, s4;
350
+ }
351
+ };
352
+ function S2(t5, i7, s4 = t5, e9) {
353
+ if (i7 === T) return i7;
354
+ let h3 = void 0 !== e9 ? s4._$Co?.[e9] : s4._$Cl;
355
+ const o6 = c3(i7) ? void 0 : i7._$litDirective$;
356
+ return h3?.constructor !== o6 && (h3?._$AO?.(false), void 0 === o6 ? h3 = void 0 : (h3 = new o6(t5), h3._$AT(t5, s4, e9)), void 0 !== e9 ? (s4._$Co ?? (s4._$Co = []))[e9] = h3 : s4._$Cl = h3), void 0 !== h3 && (i7 = S2(t5, h3._$AS(t5, i7.values), h3, e9)), i7;
357
+ }
358
+ var M = class {
359
+ constructor(t5, i7) {
360
+ this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i7;
361
+ }
362
+ get parentNode() {
363
+ return this._$AM.parentNode;
364
+ }
365
+ get _$AU() {
366
+ return this._$AM._$AU;
367
+ }
368
+ u(t5) {
369
+ const { el: { content: i7 }, parts: s4 } = this._$AD, e9 = (t5?.creationScope ?? r3).importNode(i7, true);
370
+ C.currentNode = e9;
371
+ let h3 = C.nextNode(), o6 = 0, n5 = 0, l3 = s4[0];
372
+ for (; void 0 !== l3; ) {
373
+ if (o6 === l3.index) {
374
+ let i8;
375
+ 2 === l3.type ? i8 = new R(h3, h3.nextSibling, this, t5) : 1 === l3.type ? i8 = new l3.ctor(h3, l3.name, l3.strings, this, t5) : 6 === l3.type && (i8 = new z(h3, this, t5)), this._$AV.push(i8), l3 = s4[++n5];
376
+ }
377
+ o6 !== l3?.index && (h3 = C.nextNode(), o6++);
378
+ }
379
+ return C.currentNode = r3, e9;
380
+ }
381
+ p(t5) {
382
+ let i7 = 0;
383
+ for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t5, s4, i7), i7 += s4.strings.length - 2) : s4._$AI(t5[i7])), i7++;
384
+ }
385
+ };
386
+ var R = class _R {
387
+ get _$AU() {
388
+ return this._$AM?._$AU ?? this._$Cv;
389
+ }
390
+ constructor(t5, i7, s4, e9) {
391
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t5, this._$AB = i7, this._$AM = s4, this.options = e9, this._$Cv = e9?.isConnected ?? true;
392
+ }
393
+ get parentNode() {
394
+ let t5 = this._$AA.parentNode;
395
+ const i7 = this._$AM;
396
+ return void 0 !== i7 && 11 === t5?.nodeType && (t5 = i7.parentNode), t5;
397
+ }
398
+ get startNode() {
399
+ return this._$AA;
400
+ }
401
+ get endNode() {
402
+ return this._$AB;
403
+ }
404
+ _$AI(t5, i7 = this) {
405
+ t5 = S2(this, t5, i7), c3(t5) ? t5 === E || null == t5 || "" === t5 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t5 !== this._$AH && t5 !== T && this._(t5) : void 0 !== t5._$litType$ ? this.$(t5) : void 0 !== t5.nodeType ? this.T(t5) : u2(t5) ? this.k(t5) : this._(t5);
406
+ }
407
+ O(t5) {
408
+ return this._$AA.parentNode.insertBefore(t5, this._$AB);
409
+ }
410
+ T(t5) {
411
+ this._$AH !== t5 && (this._$AR(), this._$AH = this.O(t5));
412
+ }
413
+ _(t5) {
414
+ this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t5 : this.T(r3.createTextNode(t5)), this._$AH = t5;
415
+ }
416
+ $(t5) {
417
+ const { values: i7, _$litType$: s4 } = t5, e9 = "number" == typeof s4 ? this._$AC(t5) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
418
+ if (this._$AH?._$AD === e9) this._$AH.p(i7);
419
+ else {
420
+ const t6 = new M(e9, this), s5 = t6.u(this.options);
421
+ t6.p(i7), this.T(s5), this._$AH = t6;
422
+ }
423
+ }
424
+ _$AC(t5) {
425
+ let i7 = A.get(t5.strings);
426
+ return void 0 === i7 && A.set(t5.strings, i7 = new N(t5)), i7;
427
+ }
428
+ k(t5) {
429
+ a2(this._$AH) || (this._$AH = [], this._$AR());
430
+ const i7 = this._$AH;
431
+ let s4, e9 = 0;
432
+ for (const h3 of t5) e9 === i7.length ? i7.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i7[e9], s4._$AI(h3), e9++;
433
+ e9 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e9), i7.length = e9);
434
+ }
435
+ _$AR(t5 = this._$AA.nextSibling, i7) {
436
+ for (this._$AP?.(false, true, i7); t5 && t5 !== this._$AB; ) {
437
+ const i8 = t5.nextSibling;
438
+ t5.remove(), t5 = i8;
439
+ }
440
+ }
441
+ setConnected(t5) {
442
+ void 0 === this._$AM && (this._$Cv = t5, this._$AP?.(t5));
443
+ }
444
+ };
445
+ var k = class {
446
+ get tagName() {
447
+ return this.element.tagName;
448
+ }
449
+ get _$AU() {
450
+ return this._$AM._$AU;
451
+ }
452
+ constructor(t5, i7, s4, e9, h3) {
453
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t5, this.name = i7, this._$AM = e9, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
454
+ }
455
+ _$AI(t5, i7 = this, s4, e9) {
456
+ const h3 = this.strings;
457
+ let o6 = false;
458
+ if (void 0 === h3) t5 = S2(this, t5, i7, 0), o6 = !c3(t5) || t5 !== this._$AH && t5 !== T, o6 && (this._$AH = t5);
459
+ else {
460
+ const e10 = t5;
461
+ let n5, r7;
462
+ for (t5 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r7 = S2(this, e10[s4 + n5], i7, n5), r7 === T && (r7 = this._$AH[n5]), o6 || (o6 = !c3(r7) || r7 !== this._$AH[n5]), r7 === E ? t5 = E : t5 !== E && (t5 += (r7 ?? "") + h3[n5 + 1]), this._$AH[n5] = r7;
463
+ }
464
+ o6 && !e9 && this.j(t5);
465
+ }
466
+ j(t5) {
467
+ t5 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t5 ?? "");
468
+ }
469
+ };
470
+ var H = class extends k {
471
+ constructor() {
472
+ super(...arguments), this.type = 3;
473
+ }
474
+ j(t5) {
475
+ this.element[this.name] = t5 === E ? void 0 : t5;
476
+ }
477
+ };
478
+ var I = class extends k {
479
+ constructor() {
480
+ super(...arguments), this.type = 4;
481
+ }
482
+ j(t5) {
483
+ this.element.toggleAttribute(this.name, !!t5 && t5 !== E);
484
+ }
485
+ };
486
+ var L = class extends k {
487
+ constructor(t5, i7, s4, e9, h3) {
488
+ super(t5, i7, s4, e9, h3), this.type = 5;
489
+ }
490
+ _$AI(t5, i7 = this) {
491
+ if ((t5 = S2(this, t5, i7, 0) ?? E) === T) return;
492
+ const s4 = this._$AH, e9 = t5 === E && s4 !== E || t5.capture !== s4.capture || t5.once !== s4.once || t5.passive !== s4.passive, h3 = t5 !== E && (s4 === E || e9);
493
+ e9 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t5), this._$AH = t5;
494
+ }
495
+ handleEvent(t5) {
496
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t5) : this._$AH.handleEvent(t5);
497
+ }
498
+ };
499
+ var z = class {
500
+ constructor(t5, i7, s4) {
501
+ this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s4;
502
+ }
503
+ get _$AU() {
504
+ return this._$AM._$AU;
505
+ }
506
+ _$AI(t5) {
507
+ S2(this, t5);
508
+ }
509
+ };
510
+ var j = t2.litHtmlPolyfillSupport;
511
+ j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.0");
512
+ var B = (t5, i7, s4) => {
513
+ const e9 = s4?.renderBefore ?? i7;
514
+ let h3 = e9._$litPart$;
515
+ if (void 0 === h3) {
516
+ const t6 = s4?.renderBefore ?? null;
517
+ e9._$litPart$ = h3 = new R(i7.insertBefore(l2(), t6), t6, void 0, s4 ?? {});
518
+ }
519
+ return h3._$AI(t5), h3;
520
+ };
521
+
522
+ // node_modules/lit-element/lit-element.js
523
+ var s3 = globalThis;
524
+ var i4 = class extends y {
525
+ constructor() {
526
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
+ }
528
+ createRenderRoot() {
529
+ var _a;
530
+ const t5 = super.createRenderRoot();
531
+ return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t5.firstChild), t5;
532
+ }
533
+ update(t5) {
534
+ const r7 = this.render();
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this._$Do = B(r7, this.renderRoot, this.renderOptions);
536
+ }
537
+ connectedCallback() {
538
+ super.connectedCallback(), this._$Do?.setConnected(true);
539
+ }
540
+ disconnectedCallback() {
541
+ super.disconnectedCallback(), this._$Do?.setConnected(false);
542
+ }
543
+ render() {
544
+ return T;
545
+ }
546
+ };
547
+ i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
548
+ var o4 = s3.litElementPolyfillSupport;
549
+ o4?.({ LitElement: i4 });
550
+ (s3.litElementVersions ?? (s3.litElementVersions = [])).push("4.2.0");
551
+
552
+ // node_modules/@lit/reactive-element/decorators/custom-element.js
553
+ var t3 = (t5) => (e9, o6) => {
554
+ void 0 !== o6 ? o6.addInitializer((() => {
555
+ customElements.define(t5, e9);
556
+ })) : customElements.define(t5, e9);
557
+ };
558
+
559
+ // node_modules/@lit/reactive-element/decorators/property.js
560
+ var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
561
+ var r4 = (t5 = o5, e9, r7) => {
562
+ const { kind: n5, metadata: i7 } = r7;
563
+ let s4 = globalThis.litPropertyMetadata.get(i7);
564
+ if (void 0 === s4 && globalThis.litPropertyMetadata.set(i7, s4 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t5 = Object.create(t5)).wrapped = true), s4.set(r7.name, t5), "accessor" === n5) {
565
+ const { name: o6 } = r7;
566
+ return { set(r8) {
567
+ const n6 = e9.get.call(this);
568
+ e9.set.call(this, r8), this.requestUpdate(o6, n6, t5);
569
+ }, init(e10) {
570
+ return void 0 !== e10 && this.C(o6, void 0, t5, e10), e10;
571
+ } };
572
+ }
573
+ if ("setter" === n5) {
574
+ const { name: o6 } = r7;
575
+ return function(r8) {
576
+ const n6 = this[o6];
577
+ e9.call(this, r8), this.requestUpdate(o6, n6, t5);
578
+ };
579
+ }
580
+ throw Error("Unsupported decorator location: " + n5);
581
+ };
582
+ function n4(t5) {
583
+ return (e9, o6) => "object" == typeof o6 ? r4(t5, e9, o6) : ((t6, e10, o7) => {
584
+ const r7 = e10.hasOwnProperty(o7);
585
+ return e10.constructor.createProperty(o7, t6), r7 ? Object.getOwnPropertyDescriptor(e10, o7) : void 0;
586
+ })(t5, e9, o6);
587
+ }
588
+
589
+ // node_modules/@lit/reactive-element/decorators/state.js
590
+ function r5(r7) {
591
+ return n4({ ...r7, state: true, attribute: false });
592
+ }
593
+
594
+ // node_modules/@lit/reactive-element/decorators/base.js
595
+ var e4 = (e9, t5, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t5 && Object.defineProperty(e9, t5, c4), c4);
596
+
597
+ // node_modules/@lit/reactive-element/decorators/query.js
598
+ function e5(e9, r7) {
599
+ return (n5, s4, i7) => {
600
+ const o6 = (t5) => t5.renderRoot?.querySelector(e9) ?? null;
601
+ if (r7) {
602
+ const { get: e10, set: r8 } = "object" == typeof s4 ? n5 : i7 ?? (() => {
603
+ const t5 = Symbol();
604
+ return { get() {
605
+ return this[t5];
606
+ }, set(e11) {
607
+ this[t5] = e11;
608
+ } };
609
+ })();
610
+ return e4(n5, s4, { get() {
611
+ let t5 = e10.call(this);
612
+ return void 0 === t5 && (t5 = o6(this), (null !== t5 || this.hasUpdated) && r8.call(this, t5)), t5;
613
+ } });
614
+ }
615
+ return e4(n5, s4, { get() {
616
+ return o6(this);
617
+ } });
618
+ };
619
+ }
620
+
621
+ // src/styles/component-styles/host.css
622
+ var host_default = ":host {\n box-sizing: border-box !important;\n}\n\n:host *,\n:host *::before,\n:host *::after {\n box-sizing: inherit !important;\n}\n\n[hidden] {\n display: none !important;\n}\n";
623
+
624
+ // src/internal/placer-element.ts
625
+ var PlacerElement = class extends i4 {
626
+ constructor() {
627
+ super();
628
+ this.hasRecordedInitialProperties = false;
629
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
630
+ /** A method to set and check custom states. */
631
+ this.customStates = {
632
+ /** Adds or removes the specified custom state. */
633
+ set: (customState, active) => {
634
+ if (!Boolean(this.internals?.states)) {
635
+ return;
636
+ }
637
+ if (active) {
638
+ this.internals.states.add(customState);
639
+ } else {
640
+ this.internals.states.delete(customState);
641
+ }
642
+ },
643
+ /** Determines whether or not the element currently has the specified state. */
644
+ has: (customState) => {
645
+ if (!Boolean(this.internals?.states)) {
646
+ return false;
647
+ }
648
+ return this.internals.states.has(customState);
649
+ }
650
+ };
651
+ try {
652
+ this.internals = this.attachInternals();
653
+ } catch {
654
+ console.error(
655
+ "Element internals are not supported in your browser. Consider using a polyfill."
656
+ );
657
+ }
658
+ this.customStates.set("pc-defined", true);
659
+ let Self = this.constructor;
660
+ for (let [property, spec] of Self.elementProperties) {
661
+ if (spec.default === "inherit" && spec.initial !== void 0 && typeof property === "string") {
662
+ this.customStates.set(
663
+ `initial-${property}-${spec.initial}`,
664
+ true
665
+ );
666
+ }
667
+ }
668
+ }
669
+ /** Override the default `styles` property to fetch and convert string CSS files. Components can override this behavior by setting their own `static styles = []` property. */
670
+ static get styles() {
671
+ const styles = Array.isArray(this.css) ? this.css : this.css ? [this.css] : [];
672
+ return [host_default, ...styles].map(
673
+ (style) => typeof style === "string" ? r(style) : style
674
+ );
675
+ }
676
+ attributeChangedCallback(name, oldValue, newValue) {
677
+ if (!this.hasRecordedInitialProperties) {
678
+ this.constructor.elementProperties.forEach((object, property) => {
679
+ if (typeof property === "string" && object.reflect) {
680
+ const value = this[property];
681
+ if (value != null) {
682
+ this.initialReflectedProperties.set(property, value);
683
+ }
684
+ }
685
+ });
686
+ this.hasRecordedInitialProperties = true;
687
+ }
688
+ super.attributeChangedCallback(name, oldValue, newValue);
689
+ }
690
+ willUpdate(changedProperties) {
691
+ super.willUpdate(changedProperties);
692
+ this.initialReflectedProperties.forEach((value, prop) => {
693
+ if (changedProperties.has(prop) && this[prop] == null) {
694
+ this[prop] = value;
695
+ }
696
+ });
697
+ }
698
+ firstUpdated(changedProperties) {
699
+ super.firstUpdated(changedProperties);
700
+ }
701
+ };
702
+ __decorateClass([
703
+ n4()
704
+ ], PlacerElement.prototype, "lang", 2);
705
+ __decorateClass([
706
+ n4()
707
+ ], PlacerElement.prototype, "dir", 2);
708
+
709
+ // node_modules/lit-html/directive.js
710
+ var t4 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
711
+ var e6 = (t5) => (...e9) => ({ _$litDirective$: t5, values: e9 });
712
+ var i5 = class {
713
+ constructor(t5) {
714
+ }
715
+ get _$AU() {
716
+ return this._$AM._$AU;
717
+ }
718
+ _$AT(t5, e9, i7) {
719
+ this._$Ct = t5, this._$AM = e9, this._$Ci = i7;
720
+ }
721
+ _$AS(t5, e9) {
722
+ return this.update(t5, e9);
723
+ }
724
+ update(t5, e9) {
725
+ return this.render(...e9);
726
+ }
727
+ };
728
+
729
+ // node_modules/lit-html/directives/class-map.js
730
+ var e7 = e6(class extends i5 {
731
+ constructor(t5) {
732
+ if (super(t5), t5.type !== t4.ATTRIBUTE || "class" !== t5.name || t5.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
733
+ }
734
+ render(t5) {
735
+ return " " + Object.keys(t5).filter(((s4) => t5[s4])).join(" ") + " ";
736
+ }
737
+ update(s4, [i7]) {
738
+ if (void 0 === this.st) {
739
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s4.strings && (this.nt = new Set(s4.strings.join(" ").split(/\s/).filter(((t5) => "" !== t5))));
740
+ for (const t5 in i7) i7[t5] && !this.nt?.has(t5) && this.st.add(t5);
741
+ return this.render(i7);
742
+ }
743
+ const r7 = s4.element.classList;
744
+ for (const t5 of this.st) t5 in i7 || (r7.remove(t5), this.st.delete(t5));
745
+ for (const t5 in i7) {
746
+ const s5 = !!i7[t5];
747
+ s5 === this.st.has(t5) || this.nt?.has(t5) || (s5 ? (r7.add(t5), this.st.add(t5)) : (r7.remove(t5), this.st.delete(t5)));
748
+ }
749
+ return T;
750
+ }
751
+ });
752
+
753
+ // src/utilities/animation-registry.ts
754
+ var defaultAnimationRegistry = /* @__PURE__ */ new Map();
755
+ var customAnimationRegistry = /* @__PURE__ */ new WeakMap();
756
+ function ensureAnimation(animation) {
757
+ return animation ?? { keyframes: [], options: { duration: 0 } };
758
+ }
759
+ function getLogicalAnimation(animation, dir) {
760
+ if (dir.toLowerCase() === "rtl") {
761
+ return {
762
+ keyframes: animation.rtlKeyframes || animation.keyframes,
763
+ options: animation.options
764
+ };
765
+ }
766
+ return animation;
767
+ }
768
+ function setDefaultAnimation(animationName, animation) {
769
+ defaultAnimationRegistry.set(animationName, ensureAnimation(animation));
770
+ }
771
+ function getAnimation(element, animationName, options) {
772
+ const customAnimation = customAnimationRegistry.get(element);
773
+ if (customAnimation?.[animationName]) {
774
+ return getLogicalAnimation(customAnimation[animationName], options.dir);
775
+ }
776
+ const defaultAnimation = defaultAnimationRegistry.get(animationName);
777
+ if (defaultAnimation) {
778
+ return getLogicalAnimation(defaultAnimation, options.dir);
779
+ }
780
+ return {
781
+ keyframes: [],
782
+ options: { duration: 0 }
783
+ };
784
+ }
785
+
786
+ // src/translations/index.ts
787
+ var connectedElements = /* @__PURE__ */ new Set();
788
+ var translations = /* @__PURE__ */ new Map();
789
+ var fallback;
790
+ var documentDirection = "ltr";
791
+ var documentLanguage = "en";
792
+ var isClient = typeof MutationObserver !== "undefined" && typeof document !== "undefined" && typeof document.documentElement !== "undefined";
793
+ if (isClient) {
794
+ const documentElementObserver = new MutationObserver(update);
795
+ documentDirection = document.documentElement.dir || "ltr";
796
+ documentLanguage = document.documentElement.lang || navigator.language;
797
+ documentElementObserver.observe(document.documentElement, {
798
+ attributes: true,
799
+ attributeFilter: ["dir", "lang"]
800
+ });
801
+ }
802
+ function registerTranslation(...translation2) {
803
+ translation2.map((t5) => {
804
+ const code = t5.$code.toLowerCase();
805
+ if (translations.has(code)) {
806
+ translations.set(code, { ...translations.get(code), ...t5 });
807
+ } else {
808
+ translations.set(code, t5);
809
+ }
810
+ if (!fallback) {
811
+ fallback = t5;
812
+ }
813
+ });
814
+ update();
815
+ }
816
+ function update() {
817
+ if (isClient) {
818
+ documentDirection = document.documentElement.dir || "ltr";
819
+ documentLanguage = document.documentElement.lang || navigator.language;
820
+ }
821
+ [...connectedElements.keys()].map((element) => {
822
+ if (element instanceof i4 && typeof element.requestUpdate === "function") {
823
+ element.requestUpdate();
824
+ }
825
+ });
826
+ }
827
+ var LocalizeController = class {
828
+ constructor(host) {
829
+ this.host = host;
830
+ this.host.addController(this);
831
+ }
832
+ hostConnected() {
833
+ connectedElements.add(this.host);
834
+ }
835
+ hostDisconnected() {
836
+ connectedElements.delete(this.host);
837
+ }
838
+ /** Gets the host element’s direction as determined by the `dir` attribute. The returned value is lowercase. */
839
+ dir() {
840
+ return `${this.host.dir || documentDirection}`.toLowerCase();
841
+ }
842
+ /** Gets the host element’s language as determined by the `lang` attribute. The returned value is lowercase. */
843
+ lang() {
844
+ return `${this.host.lang || documentLanguage}`.toLowerCase();
845
+ }
846
+ getTranslationData(lang) {
847
+ const locale = new Intl.Locale(lang.replace(/_/g, "-"));
848
+ const language = locale?.language.toLowerCase();
849
+ const region = locale?.region?.toLowerCase() ?? "";
850
+ const primary = translations.get(`${language}-${region}`);
851
+ const secondary = translations.get(language);
852
+ return { locale, language, region, primary, secondary };
853
+ }
854
+ /** Determines if the specified term exists, optionally checking the fallback translation. */
855
+ exists(key, options) {
856
+ const { primary, secondary } = this.getTranslationData(
857
+ options.lang ?? this.lang()
858
+ );
859
+ options = {
860
+ includeFallback: false,
861
+ ...options
862
+ };
863
+ if (primary && primary[key] || secondary && secondary[key] || options.includeFallback && fallback && fallback[key]) {
864
+ return true;
865
+ }
866
+ return false;
867
+ }
868
+ /** Outputs a translated term. */
869
+ term(key, ...args) {
870
+ const { primary, secondary } = this.getTranslationData(this.lang());
871
+ let term;
872
+ if (primary && primary[key]) {
873
+ term = primary[key];
874
+ } else if (secondary && secondary[key]) {
875
+ term = secondary[key];
876
+ } else if (fallback && fallback[key]) {
877
+ term = fallback[key];
878
+ } else {
879
+ console.error(`No translation was found for \u201C${String(key)}\u201D.`);
880
+ return String(key);
881
+ }
882
+ if (typeof term === "function") {
883
+ return term(...args);
884
+ }
885
+ return term;
886
+ }
887
+ /** Outputs a localised date in the specified format. */
888
+ date(dateToFormat, options) {
889
+ dateToFormat = new Date(dateToFormat);
890
+ return new Intl.DateTimeFormat(this.lang(), options).format(
891
+ dateToFormat
892
+ );
893
+ }
894
+ /** Outputs a localised number in the specified format. */
895
+ number(numberToFormat, options) {
896
+ numberToFormat = Number(numberToFormat);
897
+ return isNaN(numberToFormat) ? "" : new Intl.NumberFormat(this.lang(), options).format(
898
+ numberToFormat
899
+ );
900
+ }
901
+ /** Outputs a localised time in relative format. */
902
+ relativeTime(value, unit, options) {
903
+ return new Intl.RelativeTimeFormat(this.lang(), options).format(
904
+ value,
905
+ unit
906
+ );
907
+ }
908
+ };
909
+
910
+ // src/translations/en.ts
911
+ var translation = {
912
+ $code: "en",
913
+ $name: "English",
914
+ $dir: "ltr",
915
+ carousel: "Carousel",
916
+ clearEntry: "Clear entry",
917
+ close: "Close",
918
+ copied: "Copied!",
919
+ copy: "Copy",
920
+ currentValue: "Current value",
921
+ error: "Error",
922
+ goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,
923
+ hidePassword: "Hide password",
924
+ hue: "Hue",
925
+ loading: "Loading\u2026",
926
+ nextSlide: "Next slide",
927
+ numOptionsSelected: (number) => {
928
+ if (number === 0) {
929
+ return "No options selected";
930
+ } else if (number === 1) {
931
+ return "One option selected";
932
+ } else {
933
+ return `${number} options selected`;
934
+ }
935
+ },
936
+ opacity: "Opacity",
937
+ pickAColorFromTheScreen: "Pick a color from the screen",
938
+ previousSlide: "Previous slide",
939
+ progress: "Progress",
940
+ remove: "Remove",
941
+ resize: "Resize",
942
+ scrollableRegion: "Scrollable region",
943
+ scrollToEnd: "Scroll to end",
944
+ scrollToStart: "Scroll to start",
945
+ showPassword: "Show password",
946
+ slideNum: (slide) => `Slide ${slide}`,
947
+ toggleColorFormat: "Toggle color format"
948
+ };
949
+ registerTranslation(translation);
950
+ var en_default = translation;
951
+
952
+ // src/utilities/localize.ts
953
+ var LocalizeController2 = class extends LocalizeController {
954
+ };
955
+ registerTranslation(en_default);
956
+
957
+ // src/internal/emit.ts
958
+ function emit(target, eventName, eventDetail) {
959
+ const { detail, cancelable, ...options } = eventDetail || {};
960
+ const event = new CustomEvent(eventName, {
961
+ bubbles: true,
962
+ cancelable: cancelable !== void 0 ? cancelable : false,
963
+ composed: true,
964
+ detail,
965
+ ...options
966
+ });
967
+ target.dispatchEvent(event);
968
+ return event;
969
+ }
970
+
971
+ // src/utilities/kit-code.ts
972
+ var kitCode = "";
973
+ function setKitCode(code) {
974
+ kitCode = code;
975
+ }
976
+ function getKitCode() {
977
+ if (!kitCode) {
978
+ const element = document.querySelector("[data-fa-kit-code]");
979
+ if (element) {
980
+ setKitCode(element.getAttribute("data-fa-kit-code") || "");
981
+ }
982
+ }
983
+ return kitCode;
984
+ }
985
+
986
+ // src/components/icon/library.default.ts
987
+ var faVersion = "7.1.0";
988
+ function getIconURL(name, iconStyle, autoWidth) {
989
+ const basePath = autoWidth ? "svgs" : "svgs-full";
990
+ const kitCode2 = getKitCode();
991
+ const isPro = kitCode2.length > 0;
992
+ return isPro ? `https://ka-p.fontawesome.com/releases/v${faVersion}/${basePath}/${iconStyle}/${name}.svg?token=${encodeURIComponent(kitCode2)}` : `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@${faVersion}/${basePath}/${iconStyle}/${name}.svg`;
993
+ }
994
+ var library = {
995
+ name: "default",
996
+ resolver: (name, iconStyle = "solid", autoWidth = false) => {
997
+ return getIconURL(name, iconStyle, autoWidth);
998
+ },
999
+ mutator: (svg, hostElement) => {
1000
+ if (hostElement?.iconStyle && !svg.hasAttribute("data-duotone-initialized")) {
1001
+ const { iconStyle } = hostElement;
1002
+ if (iconStyle?.startsWith("duotone") || iconStyle?.startsWith("sharp-duotone") || iconStyle === "jelly-duo-regular" || iconStyle === "notdog-duo-solid" || iconStyle?.startsWith("thumbprint") || iconStyle === "utility-duo-semibold") {
1003
+ const paths = [...svg.querySelectorAll("path")];
1004
+ const primaryPath = paths.find(
1005
+ (path) => !path.hasAttribute("opacity")
1006
+ );
1007
+ const secondaryPath = paths.find(
1008
+ (path) => path.hasAttribute("opacity")
1009
+ );
1010
+ if (!primaryPath || !secondaryPath) {
1011
+ return;
1012
+ }
1013
+ primaryPath.setAttribute("data-duotone-primary", "");
1014
+ secondaryPath.setAttribute("data-duotone-secondary", "");
1015
+ if (hostElement.swapOpacity && primaryPath && secondaryPath) {
1016
+ const originalOpacity = secondaryPath.getAttribute("opacity") || "0.4";
1017
+ primaryPath.style.setProperty(
1018
+ "--fa-primary-opacity",
1019
+ originalOpacity
1020
+ );
1021
+ secondaryPath.style.setProperty(
1022
+ "--fa-secondary-opacity",
1023
+ "1"
1024
+ );
1025
+ }
1026
+ svg.setAttribute("data-duotone-initialized", "");
1027
+ }
1028
+ }
1029
+ }
1030
+ };
1031
+ var library_default_default = library;
1032
+
1033
+ // src/components/icon/library.system.ts
1034
+ var icons = {
1035
+ solid: {
1036
+ "check": `
1037
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1038
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1039
+ <path
1040
+ d="M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z"
1041
+ />
1042
+ </svg>
1043
+ `,
1044
+ "chevron-down": `
1045
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1046
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1047
+ <path
1048
+ d="M297.4 470.6C309.9 483.1 330.2 483.1 342.7 470.6L534.7 278.6C547.2 266.1 547.2 245.8 534.7 233.3C522.2 220.8 501.9 220.8 489.4 233.3L320 402.7L150.6 233.4C138.1 220.9 117.8 220.9 105.3 233.4C92.8 245.9 92.8 266.2 105.3 278.7L297.3 470.7z"
1049
+ />
1050
+ </svg>
1051
+ `,
1052
+ "chevron-left": `
1053
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1054
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1055
+ <path
1056
+ d="M169.4 297.4C156.9 309.9 156.9 330.2 169.4 342.7L361.4 534.7C373.9 547.2 394.2 547.2 406.7 534.7C419.2 522.2 419.2 501.9 406.7 489.4L237.3 320L406.6 150.6C419.1 138.1 419.1 117.8 406.6 105.3C394.1 92.8 373.8 92.8 361.3 105.3L169.3 297.3z"
1057
+ />
1058
+ </svg>
1059
+ `,
1060
+ "chevron-right": `
1061
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1062
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1063
+ <path
1064
+ d="M471.1 297.4C483.6 309.9 483.6 330.2 471.1 342.7L279.1 534.7C266.6 547.2 246.3 547.2 233.8 534.7C221.3 522.2 221.3 501.9 233.8 489.4L403.2 320L233.9 150.6C221.4 138.1 221.4 117.8 233.9 105.3C246.4 92.8 266.7 92.8 279.2 105.3L471.2 297.3z"
1065
+ />
1066
+ </svg>
1067
+ `,
1068
+ "eye-dropper": `
1069
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1070
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1071
+ <path
1072
+ d="M405.6 93.2L304 194.8L294.6 185.4C282.1 172.9 261.8 172.9 249.3 185.4C236.8 197.9 236.8 218.2 249.3 230.7L409.3 390.7C421.8 403.2 442.1 403.2 454.6 390.7C467.1 378.2 467.1 357.9 454.6 345.4L445.2 336L546.8 234.4C585.8 195.4 585.8 132.2 546.8 93.3C507.8 54.4 444.6 54.3 405.7 93.3zM119.4 387.3C104.4 402.3 96 422.7 96 443.9L96 486.3L69.4 526.2C60.9 538.9 62.6 555.8 73.4 566.6C84.2 577.4 101.1 579.1 113.8 570.6L153.7 544L196.1 544C217.3 544 237.7 535.6 252.7 520.6L362.1 411.2L316.8 365.9L207.4 475.3C204.4 478.3 200.3 480 196.1 480L160 480L160 443.9C160 439.7 161.7 435.6 164.7 432.6L274.1 323.2L228.8 277.9L119.4 387.3z"
1073
+ />
1074
+ </svg>
1075
+ `,
1076
+ "grip-vertical": `
1077
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1078
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1079
+ <path
1080
+ d="M288 104C288 81.9 270.1 64 248 64L200 64C177.9 64 160 81.9 160 104L160 152C160 174.1 177.9 192 200 192L248 192C270.1 192 288 174.1 288 152L288 104zM288 296C288 273.9 270.1 256 248 256L200 256C177.9 256 160 273.9 160 296L160 344C160 366.1 177.9 384 200 384L248 384C270.1 384 288 366.1 288 344L288 296zM160 488L160 536C160 558.1 177.9 576 200 576L248 576C270.1 576 288 558.1 288 536L288 488C288 465.9 270.1 448 248 448L200 448C177.9 448 160 465.9 160 488zM480 104C480 81.9 462.1 64 440 64L392 64C369.9 64 352 81.9 352 104L352 152C352 174.1 369.9 192 392 192L440 192C462.1 192 480 174.1 480 152L480 104zM352 296L352 344C352 366.1 369.9 384 392 384L440 384C462.1 384 480 366.1 480 344L480 296C480 273.9 462.1 256 440 256L392 256C369.9 256 352 273.9 352 296zM480 488C480 465.9 462.1 448 440 448L392 448C369.9 448 352 465.9 352 488L352 536C352 558.1 369.9 576 392 576L440 576C462.1 576 480 558.1 480 536L480 488z"
1081
+ />
1082
+ </svg>
1083
+ `,
1084
+ "minus": `
1085
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1086
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1087
+ <path
1088
+ d="M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"
1089
+ />
1090
+ </svg>
1091
+ `,
1092
+ "star": `
1093
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1094
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1095
+ <path
1096
+ d="M341.5 45.1C337.4 37.1 329.1 32 320.1 32C311.1 32 302.8 37.1 298.7 45.1L225.1 189.3L65.2 214.7C56.3 216.1 48.9 222.4 46.1 231C43.3 239.6 45.6 249 51.9 255.4L166.3 369.9L141.1 529.8C139.7 538.7 143.4 547.7 150.7 553C158 558.3 167.6 559.1 175.7 555L320.1 481.6L464.4 555C472.4 559.1 482.1 558.3 489.4 553C496.7 547.7 500.4 538.8 499 529.8L473.7 369.9L588.1 255.4C594.5 249 596.7 239.6 593.9 231C591.1 222.4 583.8 216.1 574.8 214.7L415 189.3L341.5 45.1z"
1097
+ />
1098
+ </svg>
1099
+ `,
1100
+ "user": `
1101
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1102
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1103
+ <path
1104
+ d="M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"
1105
+ />
1106
+ </svg>
1107
+ `,
1108
+ "xmark": `
1109
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1110
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1111
+ <path
1112
+ d="M183.1 137.4C170.6 124.9 150.3 124.9 137.8 137.4C125.3 149.9 125.3 170.2 137.8 182.7L275.2 320L137.9 457.4C125.4 469.9 125.4 490.2 137.9 502.7C150.4 515.2 170.7 515.2 183.2 502.7L320.5 365.3L457.9 502.6C470.4 515.1 490.7 515.1 503.2 502.6C515.7 490.1 515.7 469.8 503.2 457.3L365.8 320L503.1 182.6C515.6 170.1 515.6 149.8 503.1 137.3C490.6 124.8 470.3 124.8 457.8 137.3L320.5 274.7L183.1 137.4z"
1113
+ />
1114
+ </svg>
1115
+ `
1116
+ },
1117
+ regular: {
1118
+ "circle-question": `
1119
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1120
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1121
+ <path
1122
+ d="M528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320zM64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320zM320 240C302.3 240 288 254.3 288 272C288 285.3 277.3 296 264 296C250.7 296 240 285.3 240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1zM288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432z"
1123
+ />
1124
+ </svg>
1125
+ `,
1126
+ "circle-xmark": `
1127
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1128
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1129
+ <path
1130
+ d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM231 231C221.6 240.4 221.6 255.6 231 264.9L286 319.9L231 374.9C221.6 384.3 221.6 399.5 231 408.8C240.4 418.1 255.6 418.2 264.9 408.8L319.9 353.8L374.9 408.8C384.3 418.2 399.5 418.2 408.8 408.8C418.1 399.4 418.2 384.2 408.8 374.9L353.8 319.9L408.8 264.9C418.2 255.5 418.2 240.3 408.8 231C399.4 221.7 384.2 221.6 374.9 231L319.9 286L264.9 231C255.5 221.6 240.3 221.6 231 231z"
1131
+ />
1132
+ </svg>
1133
+ `,
1134
+ "copy": `
1135
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1136
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1137
+ <path
1138
+ d="M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"
1139
+ />
1140
+ </svg>
1141
+ `,
1142
+ "eye": `
1143
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1144
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1145
+ <path
1146
+ d="M320 144C254.8 144 201.2 173.6 160.1 211.7C121.6 247.5 95 290 81.4 320C95 350 121.6 392.5 160.1 428.3C201.2 466.4 254.8 496 320 496C385.2 496 438.8 466.4 479.9 428.3C518.4 392.5 545 350 558.6 320C545 290 518.4 247.5 479.9 211.7C438.8 173.6 385.2 144 320 144zM127.4 176.6C174.5 132.8 239.2 96 320 96C400.8 96 465.5 132.8 512.6 176.6C559.4 220.1 590.7 272 605.6 307.7C608.9 315.6 608.9 324.4 605.6 332.3C590.7 368 559.4 420 512.6 463.4C465.5 507.1 400.8 544 320 544C239.2 544 174.5 507.2 127.4 463.4C80.6 419.9 49.3 368 34.4 332.3C31.1 324.4 31.1 315.6 34.4 307.7C49.3 272 80.6 220 127.4 176.6zM320 400C364.2 400 400 364.2 400 320C400 290.4 383.9 264.5 360 250.7C358.6 310.4 310.4 358.6 250.7 360C264.5 383.9 290.4 400 320 400zM240.4 311.6C242.9 311.9 245.4 312 248 312C283.3 312 312 283.3 312 248C312 245.4 311.8 242.9 311.6 240.4C274.2 244.3 244.4 274.1 240.5 311.5zM286 196.6C296.8 193.6 308.2 192.1 319.9 192.1C328.7 192.1 337.4 193 345.7 194.7C346 194.8 346.2 194.8 346.5 194.9C404.4 207.1 447.9 258.6 447.9 320.1C447.9 390.8 390.6 448.1 319.9 448.1C258.3 448.1 206.9 404.6 194.7 346.7C192.9 338.1 191.9 329.2 191.9 320.1C191.9 309.1 193.3 298.3 195.9 288.1C196.1 287.4 196.2 286.8 196.4 286.2C208.3 242.8 242.5 208.6 285.9 196.7z"
1147
+ />
1148
+ </svg>
1149
+ `,
1150
+ "eye-slash": `
1151
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
1152
+ <!--! Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
1153
+ <path
1154
+ d="M73 39.1C63.6 29.7 48.4 29.7 39.1 39.1C29.8 48.5 29.7 63.7 39 73.1L567 601.1C576.4 610.5 591.6 610.5 600.9 601.1C610.2 591.7 610.3 576.5 600.9 567.2L504.5 470.8C507.2 468.4 509.9 466 512.5 463.6C559.3 420.1 590.6 368.2 605.5 332.5C608.8 324.6 608.8 315.8 605.5 307.9C590.6 272.2 559.3 220.2 512.5 176.8C465.4 133.1 400.7 96.2 319.9 96.2C263.1 96.2 214.3 114.4 173.9 140.4L73 39.1zM208.9 175.1C241 156.2 278.1 144 320 144C385.2 144 438.8 173.6 479.9 211.7C518.4 247.4 545 290 558.5 320C544.9 350 518.3 392.5 479.9 428.3C476.8 431.1 473.7 433.9 470.5 436.7L425.8 392C439.8 371.5 448 346.7 448 320C448 249.3 390.7 192 320 192C293.3 192 268.5 200.2 248 214.2L208.9 175.1zM390.9 357.1L282.9 249.1C294 243.3 306.6 240 320 240C364.2 240 400 275.8 400 320C400 333.4 396.7 346 390.9 357.1zM135.4 237.2L101.4 203.2C68.8 240 46.4 279 34.5 307.7C31.2 315.6 31.2 324.4 34.5 332.3C49.4 368 80.7 420 127.5 463.4C174.6 507.1 239.3 544 320.1 544C357.4 544 391.3 536.1 421.6 523.4L384.2 486C364.2 492.4 342.8 496 320 496C254.8 496 201.2 466.4 160.1 428.3C121.6 392.6 95 350 81.5 320C91.9 296.9 110.1 266.4 135.5 237.2z"
1155
+ />
1156
+ </svg>
1157
+ `
1158
+ }
1159
+ };
1160
+ function dataURI(svg) {
1161
+ return `data:image/svg+xml,${encodeURIComponent(svg)}`;
1162
+ }
1163
+ var systemLibrary = {
1164
+ name: "system",
1165
+ resolver: (name, iconStyle = "solid") => {
1166
+ let collection = icons[iconStyle];
1167
+ let svg = collection[name] ?? icons.regular[name] ?? icons.regular["circle-question"];
1168
+ if (svg) {
1169
+ return dataURI(svg);
1170
+ }
1171
+ return "";
1172
+ }
1173
+ };
1174
+ var library_system_default = systemLibrary;
1175
+
1176
+ // src/components/icon/library.ts
1177
+ var registry = [library_default_default, library_system_default];
1178
+ var watchedIcons = [];
1179
+ function watchIcon(icon) {
1180
+ watchedIcons.push(icon);
1181
+ }
1182
+ function unwatchIcon(icon) {
1183
+ watchedIcons = watchedIcons.filter((element) => element !== icon);
1184
+ }
1185
+ function getIconLibrary(name) {
1186
+ return registry.find((library2) => library2.name === name);
1187
+ }
1188
+
1189
+ // src/internal/watch.ts
1190
+ function watch(propertyName, options) {
1191
+ const resolvedOptions = {
1192
+ waitUntilFirstUpdate: false,
1193
+ ...options
1194
+ };
1195
+ return (proto, decoratedFnName) => {
1196
+ const { update: update2 } = proto;
1197
+ const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
1198
+ proto.update = function(changedProps) {
1199
+ watchedProperties.forEach((property) => {
1200
+ const key = property;
1201
+ if (changedProps.has(key)) {
1202
+ const oldValue = changedProps.get(key);
1203
+ const newValue = this[key];
1204
+ if (oldValue !== newValue) {
1205
+ if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
1206
+ this[decoratedFnName](
1207
+ oldValue,
1208
+ newValue
1209
+ );
1210
+ }
1211
+ }
1212
+ }
1213
+ });
1214
+ update2.call(this, changedProps);
1215
+ };
1216
+ };
1217
+ }
1218
+
1219
+ // src/components/icon/icon.css
1220
+ var icon_default = ':host {\n --fa-primary-color: currentColor;\n --fa-secondary-color: currentColor;\n --fa-primary-opacity: 1;\n --fa-secondary-opacity: 0.4;\n\n display: inline-flex;\n justify-content: center;\n box-sizing: content-box !important;\n inline-size: auto;\n block-size: 1em;\n}\n\nsvg {\n display: inline-block;\n inline-size: auto;\n block-size: inherit;\n fill: currentColor;\n overflow: visible;\n}\n\n/* Fixed\u2010width icons */\n:host([library="default"]:not([auto-width])) svg *,\n:host([library="system"]:not([auto-width])) svg * {\n /* This scaling gets rid of the whitespace around the icon grid. */\n scale: 1.25;\n transform-origin: center;\n}\n\n/* Primary layer */\nsvg path[data-duotone-primary] {\n color: var(--fa-primary-color);\n opacity: var(--fa-primary-opacity);\n}\n\n/* Secondary layer */\nsvg path[data-duotone-secondary] {\n color: var(--fa-secondary-color);\n opacity: var(--fa-secondary-opacity);\n}\n';
1221
+
1222
+ // src/components/icon/icon.ts
1223
+ var CACHEABLE_ERROR = Symbol();
1224
+ var RETRYABLE_ERROR = Symbol();
1225
+ var parser;
1226
+ var iconCache = /* @__PURE__ */ new Map();
1227
+ var PcIcon = class extends PlacerElement {
1228
+ constructor() {
1229
+ super(...arguments);
1230
+ this.svg = null;
1231
+ this.iconStyle = "solid";
1232
+ this.autoWidth = false;
1233
+ this.swapOpacity = false;
1234
+ this.label = "";
1235
+ this.library = "default";
1236
+ /** Given a URL, this function returns the resulting SVG element or an appropriate error icon. */
1237
+ this.resolveIcon = async (url, library2) => {
1238
+ let fileData;
1239
+ if (library2?.spriteSheet) {
1240
+ if (!this.hasUpdated) {
1241
+ await this.updateComplete;
1242
+ }
1243
+ this.svg = x`
1244
+ <svg part="svg">
1245
+ <use part="use" href=${url}></use>
1246
+ </svg>
1247
+ `;
1248
+ await this.updateComplete;
1249
+ const svg = this.shadowRoot.querySelector('[part="svg"]');
1250
+ if (typeof library2.mutator === "function") {
1251
+ library2.mutator(svg, this);
1252
+ }
1253
+ return this.svg;
1254
+ }
1255
+ try {
1256
+ fileData = await fetch(url, { mode: "cors" });
1257
+ if (!fileData.ok) {
1258
+ return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
1259
+ }
1260
+ } catch {
1261
+ return RETRYABLE_ERROR;
1262
+ }
1263
+ try {
1264
+ const div = document.createElement("div");
1265
+ div.innerHTML = await fileData.text();
1266
+ const svg = div.firstElementChild;
1267
+ if (svg?.tagName?.toLowerCase() !== "svg") {
1268
+ return CACHEABLE_ERROR;
1269
+ }
1270
+ if (!parser) {
1271
+ parser = new DOMParser();
1272
+ }
1273
+ const doc = parser.parseFromString(svg.outerHTML, "text/html");
1274
+ const svgElement = doc.body.querySelector("svg");
1275
+ if (!svgElement) {
1276
+ return CACHEABLE_ERROR;
1277
+ }
1278
+ svgElement.part.add("svg");
1279
+ return document.adoptNode(svgElement);
1280
+ } catch {
1281
+ return CACHEABLE_ERROR;
1282
+ }
1283
+ };
1284
+ }
1285
+ connectedCallback() {
1286
+ super.connectedCallback();
1287
+ watchIcon(this);
1288
+ }
1289
+ firstUpdated(changedProperties) {
1290
+ super.firstUpdated(changedProperties);
1291
+ this.setIcon();
1292
+ }
1293
+ disconnectedCallback() {
1294
+ super.disconnectedCallback();
1295
+ unwatchIcon(this);
1296
+ }
1297
+ getIconSource() {
1298
+ const library2 = getIconLibrary(this.library);
1299
+ if (this.name && library2) {
1300
+ return {
1301
+ url: library2.resolver(
1302
+ this.name,
1303
+ this.iconStyle,
1304
+ this.autoWidth
1305
+ ),
1306
+ fromLibrary: true
1307
+ };
1308
+ }
1309
+ return {
1310
+ url: this.src,
1311
+ fromLibrary: false
1312
+ };
1313
+ }
1314
+ handleLabelChange() {
1315
+ const hasLabel = typeof this.label === "string" && this.label.length > 0;
1316
+ if (hasLabel) {
1317
+ this.setAttribute("role", "img");
1318
+ this.setAttribute("aria-label", this.label);
1319
+ this.removeAttribute("aria-hidden");
1320
+ } else {
1321
+ this.removeAttribute("role");
1322
+ this.removeAttribute("aria-label");
1323
+ this.setAttribute("aria-hidden", "true");
1324
+ }
1325
+ }
1326
+ async setIcon() {
1327
+ const { url, fromLibrary } = this.getIconSource();
1328
+ const library2 = fromLibrary ? getIconLibrary(this.library) : void 0;
1329
+ if (!url) {
1330
+ this.svg = null;
1331
+ return;
1332
+ }
1333
+ let iconResolver = iconCache.get(url);
1334
+ if (!iconResolver) {
1335
+ iconResolver = this.resolveIcon(url, library2);
1336
+ iconCache.set(url, iconResolver);
1337
+ }
1338
+ const svg = await iconResolver;
1339
+ if (svg === RETRYABLE_ERROR) {
1340
+ iconCache.delete(url);
1341
+ }
1342
+ if (url !== this.getIconSource().url) {
1343
+ return;
1344
+ }
1345
+ switch (svg) {
1346
+ case RETRYABLE_ERROR:
1347
+ case CACHEABLE_ERROR:
1348
+ this.svg = null;
1349
+ emit(this, "pc-error");
1350
+ break;
1351
+ default:
1352
+ this.svg = svg.cloneNode(true);
1353
+ library2?.mutator?.(this.svg, this);
1354
+ emit(this, "pc-load");
1355
+ }
1356
+ }
1357
+ updated(changedProperties) {
1358
+ super.updated(changedProperties);
1359
+ const library2 = getIconLibrary(this.library);
1360
+ const svg = this.shadowRoot?.querySelector("svg");
1361
+ if (svg) {
1362
+ library2?.mutator?.(svg, this);
1363
+ }
1364
+ }
1365
+ render() {
1366
+ if (this.hasUpdated) {
1367
+ return this.svg;
1368
+ }
1369
+ return x`
1370
+ <svg part="svg" width="16" height="16" fill="currentColor"></svg>
1371
+ `;
1372
+ }
1373
+ };
1374
+ /** @internal This is an internal static property. */
1375
+ PcIcon.css = icon_default;
1376
+ __decorateClass([
1377
+ r5()
1378
+ ], PcIcon.prototype, "svg", 2);
1379
+ __decorateClass([
1380
+ n4({ reflect: true })
1381
+ ], PcIcon.prototype, "name", 2);
1382
+ __decorateClass([
1383
+ n4({ attribute: "icon-style", reflect: true })
1384
+ ], PcIcon.prototype, "iconStyle", 2);
1385
+ __decorateClass([
1386
+ n4({ attribute: "auto-width", type: Boolean, reflect: true })
1387
+ ], PcIcon.prototype, "autoWidth", 2);
1388
+ __decorateClass([
1389
+ n4({ attribute: "swap-opacity", type: Boolean, reflect: true })
1390
+ ], PcIcon.prototype, "swapOpacity", 2);
1391
+ __decorateClass([
1392
+ n4()
1393
+ ], PcIcon.prototype, "src", 2);
1394
+ __decorateClass([
1395
+ n4()
1396
+ ], PcIcon.prototype, "label", 2);
1397
+ __decorateClass([
1398
+ n4({ reflect: true })
1399
+ ], PcIcon.prototype, "library", 2);
1400
+ __decorateClass([
1401
+ watch("label")
1402
+ ], PcIcon.prototype, "handleLabelChange", 1);
1403
+ __decorateClass([
1404
+ watch(["library", "iconStyle", "name", "src", "autoWidth", "swapOpacity"])
1405
+ ], PcIcon.prototype, "setIcon", 1);
1406
+ PcIcon = __decorateClass([
1407
+ t3("pc-icon")
1408
+ ], PcIcon);
1409
+
1410
+ // src/internal/animate.ts
1411
+ function animateTo(element, keyframes, options) {
1412
+ return new Promise((resolve) => {
1413
+ if (options?.duration === Infinity) {
1414
+ throw new Error("Promise\u2010based animations must be finite.");
1415
+ }
1416
+ const animation = element.animate(keyframes, {
1417
+ ...options,
1418
+ duration: prefersReducedMotion() ? 0 : options.duration
1419
+ });
1420
+ animation.addEventListener("cancel", resolve, { once: true });
1421
+ animation.addEventListener("finish", resolve, { once: true });
1422
+ });
1423
+ }
1424
+ function parseDuration(delay) {
1425
+ delay = delay.toString().toLowerCase();
1426
+ if (delay.indexOf("ms") > -1) {
1427
+ return parseFloat(delay);
1428
+ }
1429
+ if (delay.indexOf("s") > -1) {
1430
+ return parseFloat(delay) * 1e3;
1431
+ }
1432
+ return parseFloat(delay);
1433
+ }
1434
+ function prefersReducedMotion() {
1435
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)");
1436
+ return query.matches;
1437
+ }
1438
+ function stopAnimations(element) {
1439
+ return Promise.all(
1440
+ element.getAnimations().map((animation) => {
1441
+ return new Promise((resolve) => {
1442
+ animation.cancel();
1443
+ requestAnimationFrame(resolve);
1444
+ });
1445
+ })
1446
+ );
1447
+ }
1448
+
1449
+ // src/internal/event.ts
1450
+ function waitForEvent(element, eventName) {
1451
+ return new Promise((resolve) => {
1452
+ function done(event) {
1453
+ if (event.target === element) {
1454
+ element.removeEventListener(eventName, done);
1455
+ resolve();
1456
+ }
1457
+ }
1458
+ element.addEventListener(eventName, done);
1459
+ });
1460
+ }
1461
+
1462
+ // node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1463
+ var min = Math.min;
1464
+ var max = Math.max;
1465
+ var round = Math.round;
1466
+ var floor = Math.floor;
1467
+ var createCoords = (v2) => ({
1468
+ x: v2,
1469
+ y: v2
1470
+ });
1471
+ var oppositeSideMap = {
1472
+ left: "right",
1473
+ right: "left",
1474
+ bottom: "top",
1475
+ top: "bottom"
1476
+ };
1477
+ var oppositeAlignmentMap = {
1478
+ start: "end",
1479
+ end: "start"
1480
+ };
1481
+ function clamp(start, value, end) {
1482
+ return max(start, min(value, end));
1483
+ }
1484
+ function evaluate(value, param) {
1485
+ return typeof value === "function" ? value(param) : value;
1486
+ }
1487
+ function getSide(placement) {
1488
+ return placement.split("-")[0];
1489
+ }
1490
+ function getAlignment(placement) {
1491
+ return placement.split("-")[1];
1492
+ }
1493
+ function getOppositeAxis(axis) {
1494
+ return axis === "x" ? "y" : "x";
1495
+ }
1496
+ function getAxisLength(axis) {
1497
+ return axis === "y" ? "height" : "width";
1498
+ }
1499
+ var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
1500
+ function getSideAxis(placement) {
1501
+ return yAxisSides.has(getSide(placement)) ? "y" : "x";
1502
+ }
1503
+ function getAlignmentAxis(placement) {
1504
+ return getOppositeAxis(getSideAxis(placement));
1505
+ }
1506
+ function getAlignmentSides(placement, rects, rtl) {
1507
+ if (rtl === void 0) {
1508
+ rtl = false;
1509
+ }
1510
+ const alignment = getAlignment(placement);
1511
+ const alignmentAxis = getAlignmentAxis(placement);
1512
+ const length = getAxisLength(alignmentAxis);
1513
+ let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
1514
+ if (rects.reference[length] > rects.floating[length]) {
1515
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
1516
+ }
1517
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
1518
+ }
1519
+ function getExpandedPlacements(placement) {
1520
+ const oppositePlacement = getOppositePlacement(placement);
1521
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
1522
+ }
1523
+ function getOppositeAlignmentPlacement(placement) {
1524
+ return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
1525
+ }
1526
+ var lrPlacement = ["left", "right"];
1527
+ var rlPlacement = ["right", "left"];
1528
+ var tbPlacement = ["top", "bottom"];
1529
+ var btPlacement = ["bottom", "top"];
1530
+ function getSideList(side, isStart, rtl) {
1531
+ switch (side) {
1532
+ case "top":
1533
+ case "bottom":
1534
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
1535
+ return isStart ? lrPlacement : rlPlacement;
1536
+ case "left":
1537
+ case "right":
1538
+ return isStart ? tbPlacement : btPlacement;
1539
+ default:
1540
+ return [];
1541
+ }
1542
+ }
1543
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
1544
+ const alignment = getAlignment(placement);
1545
+ let list = getSideList(getSide(placement), direction === "start", rtl);
1546
+ if (alignment) {
1547
+ list = list.map((side) => side + "-" + alignment);
1548
+ if (flipAlignment) {
1549
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
1550
+ }
1551
+ }
1552
+ return list;
1553
+ }
1554
+ function getOppositePlacement(placement) {
1555
+ return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
1556
+ }
1557
+ function expandPaddingObject(padding) {
1558
+ return {
1559
+ top: 0,
1560
+ right: 0,
1561
+ bottom: 0,
1562
+ left: 0,
1563
+ ...padding
1564
+ };
1565
+ }
1566
+ function getPaddingObject(padding) {
1567
+ return typeof padding !== "number" ? expandPaddingObject(padding) : {
1568
+ top: padding,
1569
+ right: padding,
1570
+ bottom: padding,
1571
+ left: padding
1572
+ };
1573
+ }
1574
+ function rectToClientRect(rect) {
1575
+ const {
1576
+ x: x2,
1577
+ y: y3,
1578
+ width,
1579
+ height
1580
+ } = rect;
1581
+ return {
1582
+ width,
1583
+ height,
1584
+ top: y3,
1585
+ left: x2,
1586
+ right: x2 + width,
1587
+ bottom: y3 + height,
1588
+ x: x2,
1589
+ y: y3
1590
+ };
1591
+ }
1592
+
1593
+ // node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1594
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
1595
+ let {
1596
+ reference,
1597
+ floating
1598
+ } = _ref;
1599
+ const sideAxis = getSideAxis(placement);
1600
+ const alignmentAxis = getAlignmentAxis(placement);
1601
+ const alignLength = getAxisLength(alignmentAxis);
1602
+ const side = getSide(placement);
1603
+ const isVertical = sideAxis === "y";
1604
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
1605
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
1606
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
1607
+ let coords;
1608
+ switch (side) {
1609
+ case "top":
1610
+ coords = {
1611
+ x: commonX,
1612
+ y: reference.y - floating.height
1613
+ };
1614
+ break;
1615
+ case "bottom":
1616
+ coords = {
1617
+ x: commonX,
1618
+ y: reference.y + reference.height
1619
+ };
1620
+ break;
1621
+ case "right":
1622
+ coords = {
1623
+ x: reference.x + reference.width,
1624
+ y: commonY
1625
+ };
1626
+ break;
1627
+ case "left":
1628
+ coords = {
1629
+ x: reference.x - floating.width,
1630
+ y: commonY
1631
+ };
1632
+ break;
1633
+ default:
1634
+ coords = {
1635
+ x: reference.x,
1636
+ y: reference.y
1637
+ };
1638
+ }
1639
+ switch (getAlignment(placement)) {
1640
+ case "start":
1641
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
1642
+ break;
1643
+ case "end":
1644
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
1645
+ break;
1646
+ }
1647
+ return coords;
1648
+ }
1649
+ var computePosition = async (reference, floating, config) => {
1650
+ const {
1651
+ placement = "bottom",
1652
+ strategy = "absolute",
1653
+ middleware = [],
1654
+ platform: platform2
1655
+ } = config;
1656
+ const validMiddleware = middleware.filter(Boolean);
1657
+ const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
1658
+ let rects = await platform2.getElementRects({
1659
+ reference,
1660
+ floating,
1661
+ strategy
1662
+ });
1663
+ let {
1664
+ x: x2,
1665
+ y: y3
1666
+ } = computeCoordsFromPlacement(rects, placement, rtl);
1667
+ let statefulPlacement = placement;
1668
+ let middlewareData = {};
1669
+ let resetCount = 0;
1670
+ for (let i7 = 0; i7 < validMiddleware.length; i7++) {
1671
+ const {
1672
+ name,
1673
+ fn
1674
+ } = validMiddleware[i7];
1675
+ const {
1676
+ x: nextX,
1677
+ y: nextY,
1678
+ data,
1679
+ reset
1680
+ } = await fn({
1681
+ x: x2,
1682
+ y: y3,
1683
+ initialPlacement: placement,
1684
+ placement: statefulPlacement,
1685
+ strategy,
1686
+ middlewareData,
1687
+ rects,
1688
+ platform: platform2,
1689
+ elements: {
1690
+ reference,
1691
+ floating
1692
+ }
1693
+ });
1694
+ x2 = nextX != null ? nextX : x2;
1695
+ y3 = nextY != null ? nextY : y3;
1696
+ middlewareData = {
1697
+ ...middlewareData,
1698
+ [name]: {
1699
+ ...middlewareData[name],
1700
+ ...data
1701
+ }
1702
+ };
1703
+ if (reset && resetCount <= 50) {
1704
+ resetCount++;
1705
+ if (typeof reset === "object") {
1706
+ if (reset.placement) {
1707
+ statefulPlacement = reset.placement;
1708
+ }
1709
+ if (reset.rects) {
1710
+ rects = reset.rects === true ? await platform2.getElementRects({
1711
+ reference,
1712
+ floating,
1713
+ strategy
1714
+ }) : reset.rects;
1715
+ }
1716
+ ({
1717
+ x: x2,
1718
+ y: y3
1719
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
1720
+ }
1721
+ i7 = -1;
1722
+ }
1723
+ }
1724
+ return {
1725
+ x: x2,
1726
+ y: y3,
1727
+ placement: statefulPlacement,
1728
+ strategy,
1729
+ middlewareData
1730
+ };
1731
+ };
1732
+ async function detectOverflow(state, options) {
1733
+ var _await$platform$isEle;
1734
+ if (options === void 0) {
1735
+ options = {};
1736
+ }
1737
+ const {
1738
+ x: x2,
1739
+ y: y3,
1740
+ platform: platform2,
1741
+ rects,
1742
+ elements,
1743
+ strategy
1744
+ } = state;
1745
+ const {
1746
+ boundary = "clippingAncestors",
1747
+ rootBoundary = "viewport",
1748
+ elementContext = "floating",
1749
+ altBoundary = false,
1750
+ padding = 0
1751
+ } = evaluate(options, state);
1752
+ const paddingObject = getPaddingObject(padding);
1753
+ const altContext = elementContext === "floating" ? "reference" : "floating";
1754
+ const element = elements[altBoundary ? altContext : elementContext];
1755
+ const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
1756
+ element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
1757
+ boundary,
1758
+ rootBoundary,
1759
+ strategy
1760
+ }));
1761
+ const rect = elementContext === "floating" ? {
1762
+ x: x2,
1763
+ y: y3,
1764
+ width: rects.floating.width,
1765
+ height: rects.floating.height
1766
+ } : rects.reference;
1767
+ const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
1768
+ const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
1769
+ x: 1,
1770
+ y: 1
1771
+ } : {
1772
+ x: 1,
1773
+ y: 1
1774
+ };
1775
+ const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
1776
+ elements,
1777
+ rect,
1778
+ offsetParent,
1779
+ strategy
1780
+ }) : rect);
1781
+ return {
1782
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
1783
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
1784
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
1785
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
1786
+ };
1787
+ }
1788
+ var arrow = (options) => ({
1789
+ name: "arrow",
1790
+ options,
1791
+ async fn(state) {
1792
+ const {
1793
+ x: x2,
1794
+ y: y3,
1795
+ placement,
1796
+ rects,
1797
+ platform: platform2,
1798
+ elements,
1799
+ middlewareData
1800
+ } = state;
1801
+ const {
1802
+ element,
1803
+ padding = 0
1804
+ } = evaluate(options, state) || {};
1805
+ if (element == null) {
1806
+ return {};
1807
+ }
1808
+ const paddingObject = getPaddingObject(padding);
1809
+ const coords = {
1810
+ x: x2,
1811
+ y: y3
1812
+ };
1813
+ const axis = getAlignmentAxis(placement);
1814
+ const length = getAxisLength(axis);
1815
+ const arrowDimensions = await platform2.getDimensions(element);
1816
+ const isYAxis = axis === "y";
1817
+ const minProp = isYAxis ? "top" : "left";
1818
+ const maxProp = isYAxis ? "bottom" : "right";
1819
+ const clientProp = isYAxis ? "clientHeight" : "clientWidth";
1820
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
1821
+ const startDiff = coords[axis] - rects.reference[axis];
1822
+ const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
1823
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
1824
+ if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
1825
+ clientSize = elements.floating[clientProp] || rects.floating[length];
1826
+ }
1827
+ const centerToReference = endDiff / 2 - startDiff / 2;
1828
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
1829
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
1830
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
1831
+ const min$1 = minPadding;
1832
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
1833
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
1834
+ const offset3 = clamp(min$1, center, max2);
1835
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
1836
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
1837
+ return {
1838
+ [axis]: coords[axis] + alignmentOffset,
1839
+ data: {
1840
+ [axis]: offset3,
1841
+ centerOffset: center - offset3 - alignmentOffset,
1842
+ ...shouldAddOffset && {
1843
+ alignmentOffset
1844
+ }
1845
+ },
1846
+ reset: shouldAddOffset
1847
+ };
1848
+ }
1849
+ });
1850
+ var flip = function(options) {
1851
+ if (options === void 0) {
1852
+ options = {};
1853
+ }
1854
+ return {
1855
+ name: "flip",
1856
+ options,
1857
+ async fn(state) {
1858
+ var _middlewareData$arrow, _middlewareData$flip;
1859
+ const {
1860
+ placement,
1861
+ middlewareData,
1862
+ rects,
1863
+ initialPlacement,
1864
+ platform: platform2,
1865
+ elements
1866
+ } = state;
1867
+ const {
1868
+ mainAxis: checkMainAxis = true,
1869
+ crossAxis: checkCrossAxis = true,
1870
+ fallbackPlacements: specifiedFallbackPlacements,
1871
+ fallbackStrategy = "bestFit",
1872
+ fallbackAxisSideDirection = "none",
1873
+ flipAlignment = true,
1874
+ ...detectOverflowOptions
1875
+ } = evaluate(options, state);
1876
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1877
+ return {};
1878
+ }
1879
+ const side = getSide(placement);
1880
+ const initialSideAxis = getSideAxis(initialPlacement);
1881
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
1882
+ const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
1883
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
1884
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
1885
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
1886
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
1887
+ }
1888
+ const placements2 = [initialPlacement, ...fallbackPlacements];
1889
+ const overflow = await detectOverflow(state, detectOverflowOptions);
1890
+ const overflows = [];
1891
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
1892
+ if (checkMainAxis) {
1893
+ overflows.push(overflow[side]);
1894
+ }
1895
+ if (checkCrossAxis) {
1896
+ const sides2 = getAlignmentSides(placement, rects, rtl);
1897
+ overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
1898
+ }
1899
+ overflowsData = [...overflowsData, {
1900
+ placement,
1901
+ overflows
1902
+ }];
1903
+ if (!overflows.every((side2) => side2 <= 0)) {
1904
+ var _middlewareData$flip2, _overflowsData$filter;
1905
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1906
+ const nextPlacement = placements2[nextIndex];
1907
+ if (nextPlacement) {
1908
+ const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
1909
+ if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
1910
+ // overflows the main axis.
1911
+ overflowsData.every((d3) => getSideAxis(d3.placement) === initialSideAxis ? d3.overflows[0] > 0 : true)) {
1912
+ return {
1913
+ data: {
1914
+ index: nextIndex,
1915
+ overflows: overflowsData
1916
+ },
1917
+ reset: {
1918
+ placement: nextPlacement
1919
+ }
1920
+ };
1921
+ }
1922
+ }
1923
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d3) => d3.overflows[0] <= 0).sort((a3, b3) => a3.overflows[1] - b3.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
1924
+ if (!resetPlacement) {
1925
+ switch (fallbackStrategy) {
1926
+ case "bestFit": {
1927
+ var _overflowsData$filter2;
1928
+ const placement2 = (_overflowsData$filter2 = overflowsData.filter((d3) => {
1929
+ if (hasFallbackAxisSideDirection) {
1930
+ const currentSideAxis = getSideAxis(d3.placement);
1931
+ return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
1932
+ // reading directions favoring greater width.
1933
+ currentSideAxis === "y";
1934
+ }
1935
+ return true;
1936
+ }).map((d3) => [d3.placement, d3.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a3, b3) => a3[1] - b3[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
1937
+ if (placement2) {
1938
+ resetPlacement = placement2;
1939
+ }
1940
+ break;
1941
+ }
1942
+ case "initialPlacement":
1943
+ resetPlacement = initialPlacement;
1944
+ break;
1945
+ }
1946
+ }
1947
+ if (placement !== resetPlacement) {
1948
+ return {
1949
+ reset: {
1950
+ placement: resetPlacement
1951
+ }
1952
+ };
1953
+ }
1954
+ }
1955
+ return {};
1956
+ }
1957
+ };
1958
+ };
1959
+ var originSides = /* @__PURE__ */ new Set(["left", "top"]);
1960
+ async function convertValueToCoords(state, options) {
1961
+ const {
1962
+ placement,
1963
+ platform: platform2,
1964
+ elements
1965
+ } = state;
1966
+ const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
1967
+ const side = getSide(placement);
1968
+ const alignment = getAlignment(placement);
1969
+ const isVertical = getSideAxis(placement) === "y";
1970
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
1971
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
1972
+ const rawValue = evaluate(options, state);
1973
+ let {
1974
+ mainAxis,
1975
+ crossAxis,
1976
+ alignmentAxis
1977
+ } = typeof rawValue === "number" ? {
1978
+ mainAxis: rawValue,
1979
+ crossAxis: 0,
1980
+ alignmentAxis: null
1981
+ } : {
1982
+ mainAxis: rawValue.mainAxis || 0,
1983
+ crossAxis: rawValue.crossAxis || 0,
1984
+ alignmentAxis: rawValue.alignmentAxis
1985
+ };
1986
+ if (alignment && typeof alignmentAxis === "number") {
1987
+ crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
1988
+ }
1989
+ return isVertical ? {
1990
+ x: crossAxis * crossAxisMulti,
1991
+ y: mainAxis * mainAxisMulti
1992
+ } : {
1993
+ x: mainAxis * mainAxisMulti,
1994
+ y: crossAxis * crossAxisMulti
1995
+ };
1996
+ }
1997
+ var offset = function(options) {
1998
+ if (options === void 0) {
1999
+ options = 0;
2000
+ }
2001
+ return {
2002
+ name: "offset",
2003
+ options,
2004
+ async fn(state) {
2005
+ var _middlewareData$offse, _middlewareData$arrow;
2006
+ const {
2007
+ x: x2,
2008
+ y: y3,
2009
+ placement,
2010
+ middlewareData
2011
+ } = state;
2012
+ const diffCoords = await convertValueToCoords(state, options);
2013
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
2014
+ return {};
2015
+ }
2016
+ return {
2017
+ x: x2 + diffCoords.x,
2018
+ y: y3 + diffCoords.y,
2019
+ data: {
2020
+ ...diffCoords,
2021
+ placement
2022
+ }
2023
+ };
2024
+ }
2025
+ };
2026
+ };
2027
+ var shift = function(options) {
2028
+ if (options === void 0) {
2029
+ options = {};
2030
+ }
2031
+ return {
2032
+ name: "shift",
2033
+ options,
2034
+ async fn(state) {
2035
+ const {
2036
+ x: x2,
2037
+ y: y3,
2038
+ placement
2039
+ } = state;
2040
+ const {
2041
+ mainAxis: checkMainAxis = true,
2042
+ crossAxis: checkCrossAxis = false,
2043
+ limiter = {
2044
+ fn: (_ref) => {
2045
+ let {
2046
+ x: x3,
2047
+ y: y4
2048
+ } = _ref;
2049
+ return {
2050
+ x: x3,
2051
+ y: y4
2052
+ };
2053
+ }
2054
+ },
2055
+ ...detectOverflowOptions
2056
+ } = evaluate(options, state);
2057
+ const coords = {
2058
+ x: x2,
2059
+ y: y3
2060
+ };
2061
+ const overflow = await detectOverflow(state, detectOverflowOptions);
2062
+ const crossAxis = getSideAxis(getSide(placement));
2063
+ const mainAxis = getOppositeAxis(crossAxis);
2064
+ let mainAxisCoord = coords[mainAxis];
2065
+ let crossAxisCoord = coords[crossAxis];
2066
+ if (checkMainAxis) {
2067
+ const minSide = mainAxis === "y" ? "top" : "left";
2068
+ const maxSide = mainAxis === "y" ? "bottom" : "right";
2069
+ const min2 = mainAxisCoord + overflow[minSide];
2070
+ const max2 = mainAxisCoord - overflow[maxSide];
2071
+ mainAxisCoord = clamp(min2, mainAxisCoord, max2);
2072
+ }
2073
+ if (checkCrossAxis) {
2074
+ const minSide = crossAxis === "y" ? "top" : "left";
2075
+ const maxSide = crossAxis === "y" ? "bottom" : "right";
2076
+ const min2 = crossAxisCoord + overflow[minSide];
2077
+ const max2 = crossAxisCoord - overflow[maxSide];
2078
+ crossAxisCoord = clamp(min2, crossAxisCoord, max2);
2079
+ }
2080
+ const limitedCoords = limiter.fn({
2081
+ ...state,
2082
+ [mainAxis]: mainAxisCoord,
2083
+ [crossAxis]: crossAxisCoord
2084
+ });
2085
+ return {
2086
+ ...limitedCoords,
2087
+ data: {
2088
+ x: limitedCoords.x - x2,
2089
+ y: limitedCoords.y - y3,
2090
+ enabled: {
2091
+ [mainAxis]: checkMainAxis,
2092
+ [crossAxis]: checkCrossAxis
2093
+ }
2094
+ }
2095
+ };
2096
+ }
2097
+ };
2098
+ };
2099
+ var size = function(options) {
2100
+ if (options === void 0) {
2101
+ options = {};
2102
+ }
2103
+ return {
2104
+ name: "size",
2105
+ options,
2106
+ async fn(state) {
2107
+ var _state$middlewareData, _state$middlewareData2;
2108
+ const {
2109
+ placement,
2110
+ rects,
2111
+ platform: platform2,
2112
+ elements
2113
+ } = state;
2114
+ const {
2115
+ apply = () => {
2116
+ },
2117
+ ...detectOverflowOptions
2118
+ } = evaluate(options, state);
2119
+ const overflow = await detectOverflow(state, detectOverflowOptions);
2120
+ const side = getSide(placement);
2121
+ const alignment = getAlignment(placement);
2122
+ const isYAxis = getSideAxis(placement) === "y";
2123
+ const {
2124
+ width,
2125
+ height
2126
+ } = rects.floating;
2127
+ let heightSide;
2128
+ let widthSide;
2129
+ if (side === "top" || side === "bottom") {
2130
+ heightSide = side;
2131
+ widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
2132
+ } else {
2133
+ widthSide = side;
2134
+ heightSide = alignment === "end" ? "top" : "bottom";
2135
+ }
2136
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
2137
+ const maximumClippingWidth = width - overflow.left - overflow.right;
2138
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
2139
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
2140
+ const noShift = !state.middlewareData.shift;
2141
+ let availableHeight = overflowAvailableHeight;
2142
+ let availableWidth = overflowAvailableWidth;
2143
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
2144
+ availableWidth = maximumClippingWidth;
2145
+ }
2146
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
2147
+ availableHeight = maximumClippingHeight;
2148
+ }
2149
+ if (noShift && !alignment) {
2150
+ const xMin = max(overflow.left, 0);
2151
+ const xMax = max(overflow.right, 0);
2152
+ const yMin = max(overflow.top, 0);
2153
+ const yMax = max(overflow.bottom, 0);
2154
+ if (isYAxis) {
2155
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
2156
+ } else {
2157
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
2158
+ }
2159
+ }
2160
+ await apply({
2161
+ ...state,
2162
+ availableWidth,
2163
+ availableHeight
2164
+ });
2165
+ const nextDimensions = await platform2.getDimensions(elements.floating);
2166
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
2167
+ return {
2168
+ reset: {
2169
+ rects: true
2170
+ }
2171
+ };
2172
+ }
2173
+ return {};
2174
+ }
2175
+ };
2176
+ };
2177
+
2178
+ // node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2179
+ function hasWindow() {
2180
+ return typeof window !== "undefined";
2181
+ }
2182
+ function getNodeName(node) {
2183
+ if (isNode(node)) {
2184
+ return (node.nodeName || "").toLowerCase();
2185
+ }
2186
+ return "#document";
2187
+ }
2188
+ function getWindow(node) {
2189
+ var _node$ownerDocument;
2190
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
2191
+ }
2192
+ function getDocumentElement(node) {
2193
+ var _ref;
2194
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
2195
+ }
2196
+ function isNode(value) {
2197
+ if (!hasWindow()) {
2198
+ return false;
2199
+ }
2200
+ return value instanceof Node || value instanceof getWindow(value).Node;
2201
+ }
2202
+ function isElement(value) {
2203
+ if (!hasWindow()) {
2204
+ return false;
2205
+ }
2206
+ return value instanceof Element || value instanceof getWindow(value).Element;
2207
+ }
2208
+ function isHTMLElement(value) {
2209
+ if (!hasWindow()) {
2210
+ return false;
2211
+ }
2212
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
2213
+ }
2214
+ function isShadowRoot(value) {
2215
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
2216
+ return false;
2217
+ }
2218
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
2219
+ }
2220
+ var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
2221
+ function isOverflowElement(element) {
2222
+ const {
2223
+ overflow,
2224
+ overflowX,
2225
+ overflowY,
2226
+ display
2227
+ } = getComputedStyle2(element);
2228
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
2229
+ }
2230
+ var tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
2231
+ function isTableElement(element) {
2232
+ return tableElements.has(getNodeName(element));
2233
+ }
2234
+ var topLayerSelectors = [":popover-open", ":modal"];
2235
+ function isTopLayer(element) {
2236
+ return topLayerSelectors.some((selector) => {
2237
+ try {
2238
+ return element.matches(selector);
2239
+ } catch (_e) {
2240
+ return false;
2241
+ }
2242
+ });
2243
+ }
2244
+ var transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
2245
+ var willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
2246
+ var containValues = ["paint", "layout", "strict", "content"];
2247
+ function isContainingBlock(elementOrCss) {
2248
+ const webkit = isWebKit();
2249
+ const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
2250
+ return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
2251
+ }
2252
+ function getContainingBlock(element) {
2253
+ let currentNode = getParentNode(element);
2254
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2255
+ if (isContainingBlock(currentNode)) {
2256
+ return currentNode;
2257
+ } else if (isTopLayer(currentNode)) {
2258
+ return null;
2259
+ }
2260
+ currentNode = getParentNode(currentNode);
2261
+ }
2262
+ return null;
2263
+ }
2264
+ function isWebKit() {
2265
+ if (typeof CSS === "undefined" || !CSS.supports) return false;
2266
+ return CSS.supports("-webkit-backdrop-filter", "none");
2267
+ }
2268
+ var lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2269
+ function isLastTraversableNode(node) {
2270
+ return lastTraversableNodeNames.has(getNodeName(node));
2271
+ }
2272
+ function getComputedStyle2(element) {
2273
+ return getWindow(element).getComputedStyle(element);
2274
+ }
2275
+ function getNodeScroll(element) {
2276
+ if (isElement(element)) {
2277
+ return {
2278
+ scrollLeft: element.scrollLeft,
2279
+ scrollTop: element.scrollTop
2280
+ };
2281
+ }
2282
+ return {
2283
+ scrollLeft: element.scrollX,
2284
+ scrollTop: element.scrollY
2285
+ };
2286
+ }
2287
+ function getParentNode(node) {
2288
+ if (getNodeName(node) === "html") {
2289
+ return node;
2290
+ }
2291
+ const result = (
2292
+ // Step into the shadow DOM of the parent of a slotted node.
2293
+ node.assignedSlot || // DOM Element detected.
2294
+ node.parentNode || // ShadowRoot detected.
2295
+ isShadowRoot(node) && node.host || // Fallback.
2296
+ getDocumentElement(node)
2297
+ );
2298
+ return isShadowRoot(result) ? result.host : result;
2299
+ }
2300
+ function getNearestOverflowAncestor(node) {
2301
+ const parentNode = getParentNode(node);
2302
+ if (isLastTraversableNode(parentNode)) {
2303
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
2304
+ }
2305
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
2306
+ return parentNode;
2307
+ }
2308
+ return getNearestOverflowAncestor(parentNode);
2309
+ }
2310
+ function getOverflowAncestors(node, list, traverseIframes) {
2311
+ var _node$ownerDocument2;
2312
+ if (list === void 0) {
2313
+ list = [];
2314
+ }
2315
+ if (traverseIframes === void 0) {
2316
+ traverseIframes = true;
2317
+ }
2318
+ const scrollableAncestor = getNearestOverflowAncestor(node);
2319
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
2320
+ const win = getWindow(scrollableAncestor);
2321
+ if (isBody) {
2322
+ const frameElement = getFrameElement(win);
2323
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
2324
+ }
2325
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
2326
+ }
2327
+ function getFrameElement(win) {
2328
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
2329
+ }
2330
+
2331
+ // node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
2332
+ function getCssDimensions(element) {
2333
+ const css = getComputedStyle2(element);
2334
+ let width = parseFloat(css.width) || 0;
2335
+ let height = parseFloat(css.height) || 0;
2336
+ const hasOffset = isHTMLElement(element);
2337
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
2338
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
2339
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
2340
+ if (shouldFallback) {
2341
+ width = offsetWidth;
2342
+ height = offsetHeight;
2343
+ }
2344
+ return {
2345
+ width,
2346
+ height,
2347
+ $: shouldFallback
2348
+ };
2349
+ }
2350
+ function unwrapElement(element) {
2351
+ return !isElement(element) ? element.contextElement : element;
2352
+ }
2353
+ function getScale(element) {
2354
+ const domElement = unwrapElement(element);
2355
+ if (!isHTMLElement(domElement)) {
2356
+ return createCoords(1);
2357
+ }
2358
+ const rect = domElement.getBoundingClientRect();
2359
+ const {
2360
+ width,
2361
+ height,
2362
+ $: $2
2363
+ } = getCssDimensions(domElement);
2364
+ let x2 = ($2 ? round(rect.width) : rect.width) / width;
2365
+ let y3 = ($2 ? round(rect.height) : rect.height) / height;
2366
+ if (!x2 || !Number.isFinite(x2)) {
2367
+ x2 = 1;
2368
+ }
2369
+ if (!y3 || !Number.isFinite(y3)) {
2370
+ y3 = 1;
2371
+ }
2372
+ return {
2373
+ x: x2,
2374
+ y: y3
2375
+ };
2376
+ }
2377
+ var noOffsets = /* @__PURE__ */ createCoords(0);
2378
+ function getVisualOffsets(element) {
2379
+ const win = getWindow(element);
2380
+ if (!isWebKit() || !win.visualViewport) {
2381
+ return noOffsets;
2382
+ }
2383
+ return {
2384
+ x: win.visualViewport.offsetLeft,
2385
+ y: win.visualViewport.offsetTop
2386
+ };
2387
+ }
2388
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
2389
+ if (isFixed === void 0) {
2390
+ isFixed = false;
2391
+ }
2392
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
2393
+ return false;
2394
+ }
2395
+ return isFixed;
2396
+ }
2397
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
2398
+ if (includeScale === void 0) {
2399
+ includeScale = false;
2400
+ }
2401
+ if (isFixedStrategy === void 0) {
2402
+ isFixedStrategy = false;
2403
+ }
2404
+ const clientRect = element.getBoundingClientRect();
2405
+ const domElement = unwrapElement(element);
2406
+ let scale = createCoords(1);
2407
+ if (includeScale) {
2408
+ if (offsetParent) {
2409
+ if (isElement(offsetParent)) {
2410
+ scale = getScale(offsetParent);
2411
+ }
2412
+ } else {
2413
+ scale = getScale(element);
2414
+ }
2415
+ }
2416
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
2417
+ let x2 = (clientRect.left + visualOffsets.x) / scale.x;
2418
+ let y3 = (clientRect.top + visualOffsets.y) / scale.y;
2419
+ let width = clientRect.width / scale.x;
2420
+ let height = clientRect.height / scale.y;
2421
+ if (domElement) {
2422
+ const win = getWindow(domElement);
2423
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
2424
+ let currentWin = win;
2425
+ let currentIFrame = getFrameElement(currentWin);
2426
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
2427
+ const iframeScale = getScale(currentIFrame);
2428
+ const iframeRect = currentIFrame.getBoundingClientRect();
2429
+ const css = getComputedStyle2(currentIFrame);
2430
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
2431
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
2432
+ x2 *= iframeScale.x;
2433
+ y3 *= iframeScale.y;
2434
+ width *= iframeScale.x;
2435
+ height *= iframeScale.y;
2436
+ x2 += left;
2437
+ y3 += top;
2438
+ currentWin = getWindow(currentIFrame);
2439
+ currentIFrame = getFrameElement(currentWin);
2440
+ }
2441
+ }
2442
+ return rectToClientRect({
2443
+ width,
2444
+ height,
2445
+ x: x2,
2446
+ y: y3
2447
+ });
2448
+ }
2449
+ function getWindowScrollBarX(element, rect) {
2450
+ const leftScroll = getNodeScroll(element).scrollLeft;
2451
+ if (!rect) {
2452
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
2453
+ }
2454
+ return rect.left + leftScroll;
2455
+ }
2456
+ function getHTMLOffset(documentElement, scroll) {
2457
+ const htmlRect = documentElement.getBoundingClientRect();
2458
+ const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
2459
+ const y3 = htmlRect.top + scroll.scrollTop;
2460
+ return {
2461
+ x: x2,
2462
+ y: y3
2463
+ };
2464
+ }
2465
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
2466
+ let {
2467
+ elements,
2468
+ rect,
2469
+ offsetParent,
2470
+ strategy
2471
+ } = _ref;
2472
+ const isFixed = strategy === "fixed";
2473
+ const documentElement = getDocumentElement(offsetParent);
2474
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
2475
+ if (offsetParent === documentElement || topLayer && isFixed) {
2476
+ return rect;
2477
+ }
2478
+ let scroll = {
2479
+ scrollLeft: 0,
2480
+ scrollTop: 0
2481
+ };
2482
+ let scale = createCoords(1);
2483
+ const offsets = createCoords(0);
2484
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
2485
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
2486
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
2487
+ scroll = getNodeScroll(offsetParent);
2488
+ }
2489
+ if (isHTMLElement(offsetParent)) {
2490
+ const offsetRect = getBoundingClientRect(offsetParent);
2491
+ scale = getScale(offsetParent);
2492
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
2493
+ offsets.y = offsetRect.y + offsetParent.clientTop;
2494
+ }
2495
+ }
2496
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
2497
+ return {
2498
+ width: rect.width * scale.x,
2499
+ height: rect.height * scale.y,
2500
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
2501
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
2502
+ };
2503
+ }
2504
+ function getClientRects(element) {
2505
+ return Array.from(element.getClientRects());
2506
+ }
2507
+ function getDocumentRect(element) {
2508
+ const html = getDocumentElement(element);
2509
+ const scroll = getNodeScroll(element);
2510
+ const body = element.ownerDocument.body;
2511
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
2512
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
2513
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
2514
+ const y3 = -scroll.scrollTop;
2515
+ if (getComputedStyle2(body).direction === "rtl") {
2516
+ x2 += max(html.clientWidth, body.clientWidth) - width;
2517
+ }
2518
+ return {
2519
+ width,
2520
+ height,
2521
+ x: x2,
2522
+ y: y3
2523
+ };
2524
+ }
2525
+ var SCROLLBAR_MAX = 25;
2526
+ function getViewportRect(element, strategy) {
2527
+ const win = getWindow(element);
2528
+ const html = getDocumentElement(element);
2529
+ const visualViewport = win.visualViewport;
2530
+ let width = html.clientWidth;
2531
+ let height = html.clientHeight;
2532
+ let x2 = 0;
2533
+ let y3 = 0;
2534
+ if (visualViewport) {
2535
+ width = visualViewport.width;
2536
+ height = visualViewport.height;
2537
+ const visualViewportBased = isWebKit();
2538
+ if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
2539
+ x2 = visualViewport.offsetLeft;
2540
+ y3 = visualViewport.offsetTop;
2541
+ }
2542
+ }
2543
+ const windowScrollbarX = getWindowScrollBarX(html);
2544
+ if (windowScrollbarX <= 0) {
2545
+ const doc = html.ownerDocument;
2546
+ const body = doc.body;
2547
+ const bodyStyles = getComputedStyle(body);
2548
+ const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
2549
+ const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
2550
+ if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
2551
+ width -= clippingStableScrollbarWidth;
2552
+ }
2553
+ } else if (windowScrollbarX <= SCROLLBAR_MAX) {
2554
+ width += windowScrollbarX;
2555
+ }
2556
+ return {
2557
+ width,
2558
+ height,
2559
+ x: x2,
2560
+ y: y3
2561
+ };
2562
+ }
2563
+ var absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2564
+ function getInnerBoundingClientRect(element, strategy) {
2565
+ const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
2566
+ const top = clientRect.top + element.clientTop;
2567
+ const left = clientRect.left + element.clientLeft;
2568
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
2569
+ const width = element.clientWidth * scale.x;
2570
+ const height = element.clientHeight * scale.y;
2571
+ const x2 = left * scale.x;
2572
+ const y3 = top * scale.y;
2573
+ return {
2574
+ width,
2575
+ height,
2576
+ x: x2,
2577
+ y: y3
2578
+ };
2579
+ }
2580
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
2581
+ let rect;
2582
+ if (clippingAncestor === "viewport") {
2583
+ rect = getViewportRect(element, strategy);
2584
+ } else if (clippingAncestor === "document") {
2585
+ rect = getDocumentRect(getDocumentElement(element));
2586
+ } else if (isElement(clippingAncestor)) {
2587
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2588
+ } else {
2589
+ const visualOffsets = getVisualOffsets(element);
2590
+ rect = {
2591
+ x: clippingAncestor.x - visualOffsets.x,
2592
+ y: clippingAncestor.y - visualOffsets.y,
2593
+ width: clippingAncestor.width,
2594
+ height: clippingAncestor.height
2595
+ };
2596
+ }
2597
+ return rectToClientRect(rect);
2598
+ }
2599
+ function hasFixedPositionAncestor(element, stopNode) {
2600
+ const parentNode = getParentNode(element);
2601
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
2602
+ return false;
2603
+ }
2604
+ return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
2605
+ }
2606
+ function getClippingElementAncestors(element, cache) {
2607
+ const cachedResult = cache.get(element);
2608
+ if (cachedResult) {
2609
+ return cachedResult;
2610
+ }
2611
+ let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
2612
+ let currentContainingBlockComputedStyle = null;
2613
+ const elementIsFixed = getComputedStyle2(element).position === "fixed";
2614
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
2615
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2616
+ const computedStyle = getComputedStyle2(currentNode);
2617
+ const currentNodeIsContaining = isContainingBlock(currentNode);
2618
+ if (!currentNodeIsContaining && computedStyle.position === "fixed") {
2619
+ currentContainingBlockComputedStyle = null;
2620
+ }
2621
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
2622
+ if (shouldDropCurrentNode) {
2623
+ result = result.filter((ancestor) => ancestor !== currentNode);
2624
+ } else {
2625
+ currentContainingBlockComputedStyle = computedStyle;
2626
+ }
2627
+ currentNode = getParentNode(currentNode);
2628
+ }
2629
+ cache.set(element, result);
2630
+ return result;
2631
+ }
2632
+ function getClippingRect(_ref) {
2633
+ let {
2634
+ element,
2635
+ boundary,
2636
+ rootBoundary,
2637
+ strategy
2638
+ } = _ref;
2639
+ const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
2640
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
2641
+ const firstClippingAncestor = clippingAncestors[0];
2642
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
2643
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
2644
+ accRect.top = max(rect.top, accRect.top);
2645
+ accRect.right = min(rect.right, accRect.right);
2646
+ accRect.bottom = min(rect.bottom, accRect.bottom);
2647
+ accRect.left = max(rect.left, accRect.left);
2648
+ return accRect;
2649
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
2650
+ return {
2651
+ width: clippingRect.right - clippingRect.left,
2652
+ height: clippingRect.bottom - clippingRect.top,
2653
+ x: clippingRect.left,
2654
+ y: clippingRect.top
2655
+ };
2656
+ }
2657
+ function getDimensions(element) {
2658
+ const {
2659
+ width,
2660
+ height
2661
+ } = getCssDimensions(element);
2662
+ return {
2663
+ width,
2664
+ height
2665
+ };
2666
+ }
2667
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
2668
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
2669
+ const documentElement = getDocumentElement(offsetParent);
2670
+ const isFixed = strategy === "fixed";
2671
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
2672
+ let scroll = {
2673
+ scrollLeft: 0,
2674
+ scrollTop: 0
2675
+ };
2676
+ const offsets = createCoords(0);
2677
+ function setLeftRTLScrollbarOffset() {
2678
+ offsets.x = getWindowScrollBarX(documentElement);
2679
+ }
2680
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
2681
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
2682
+ scroll = getNodeScroll(offsetParent);
2683
+ }
2684
+ if (isOffsetParentAnElement) {
2685
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
2686
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
2687
+ offsets.y = offsetRect.y + offsetParent.clientTop;
2688
+ } else if (documentElement) {
2689
+ setLeftRTLScrollbarOffset();
2690
+ }
2691
+ }
2692
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
2693
+ setLeftRTLScrollbarOffset();
2694
+ }
2695
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
2696
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
2697
+ const y3 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
2698
+ return {
2699
+ x: x2,
2700
+ y: y3,
2701
+ width: rect.width,
2702
+ height: rect.height
2703
+ };
2704
+ }
2705
+ function isStaticPositioned(element) {
2706
+ return getComputedStyle2(element).position === "static";
2707
+ }
2708
+ function getTrueOffsetParent(element, polyfill) {
2709
+ if (!isHTMLElement(element) || getComputedStyle2(element).position === "fixed") {
2710
+ return null;
2711
+ }
2712
+ if (polyfill) {
2713
+ return polyfill(element);
2714
+ }
2715
+ let rawOffsetParent = element.offsetParent;
2716
+ if (getDocumentElement(element) === rawOffsetParent) {
2717
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
2718
+ }
2719
+ return rawOffsetParent;
2720
+ }
2721
+ function getOffsetParent(element, polyfill) {
2722
+ const win = getWindow(element);
2723
+ if (isTopLayer(element)) {
2724
+ return win;
2725
+ }
2726
+ if (!isHTMLElement(element)) {
2727
+ let svgOffsetParent = getParentNode(element);
2728
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
2729
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
2730
+ return svgOffsetParent;
2731
+ }
2732
+ svgOffsetParent = getParentNode(svgOffsetParent);
2733
+ }
2734
+ return win;
2735
+ }
2736
+ let offsetParent = getTrueOffsetParent(element, polyfill);
2737
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
2738
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
2739
+ }
2740
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
2741
+ return win;
2742
+ }
2743
+ return offsetParent || getContainingBlock(element) || win;
2744
+ }
2745
+ var getElementRects = async function(data) {
2746
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
2747
+ const getDimensionsFn = this.getDimensions;
2748
+ const floatingDimensions = await getDimensionsFn(data.floating);
2749
+ return {
2750
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
2751
+ floating: {
2752
+ x: 0,
2753
+ y: 0,
2754
+ width: floatingDimensions.width,
2755
+ height: floatingDimensions.height
2756
+ }
2757
+ };
2758
+ };
2759
+ function isRTL(element) {
2760
+ return getComputedStyle2(element).direction === "rtl";
2761
+ }
2762
+ var platform = {
2763
+ convertOffsetParentRelativeRectToViewportRelativeRect,
2764
+ getDocumentElement,
2765
+ getClippingRect,
2766
+ getOffsetParent,
2767
+ getElementRects,
2768
+ getClientRects,
2769
+ getDimensions,
2770
+ getScale,
2771
+ isElement,
2772
+ isRTL
2773
+ };
2774
+ function rectsAreEqual(a3, b3) {
2775
+ return a3.x === b3.x && a3.y === b3.y && a3.width === b3.width && a3.height === b3.height;
2776
+ }
2777
+ function observeMove(element, onMove) {
2778
+ let io = null;
2779
+ let timeoutId;
2780
+ const root = getDocumentElement(element);
2781
+ function cleanup() {
2782
+ var _io;
2783
+ clearTimeout(timeoutId);
2784
+ (_io = io) == null || _io.disconnect();
2785
+ io = null;
2786
+ }
2787
+ function refresh(skip, threshold) {
2788
+ if (skip === void 0) {
2789
+ skip = false;
2790
+ }
2791
+ if (threshold === void 0) {
2792
+ threshold = 1;
2793
+ }
2794
+ cleanup();
2795
+ const elementRectForRootMargin = element.getBoundingClientRect();
2796
+ const {
2797
+ left,
2798
+ top,
2799
+ width,
2800
+ height
2801
+ } = elementRectForRootMargin;
2802
+ if (!skip) {
2803
+ onMove();
2804
+ }
2805
+ if (!width || !height) {
2806
+ return;
2807
+ }
2808
+ const insetTop = floor(top);
2809
+ const insetRight = floor(root.clientWidth - (left + width));
2810
+ const insetBottom = floor(root.clientHeight - (top + height));
2811
+ const insetLeft = floor(left);
2812
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
2813
+ const options = {
2814
+ rootMargin,
2815
+ threshold: max(0, min(1, threshold)) || 1
2816
+ };
2817
+ let isFirstUpdate = true;
2818
+ function handleObserve(entries) {
2819
+ const ratio = entries[0].intersectionRatio;
2820
+ if (ratio !== threshold) {
2821
+ if (!isFirstUpdate) {
2822
+ return refresh();
2823
+ }
2824
+ if (!ratio) {
2825
+ timeoutId = setTimeout(() => {
2826
+ refresh(false, 1e-7);
2827
+ }, 1e3);
2828
+ } else {
2829
+ refresh(false, ratio);
2830
+ }
2831
+ }
2832
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
2833
+ refresh();
2834
+ }
2835
+ isFirstUpdate = false;
2836
+ }
2837
+ try {
2838
+ io = new IntersectionObserver(handleObserve, {
2839
+ ...options,
2840
+ // Handle <iframe>s
2841
+ root: root.ownerDocument
2842
+ });
2843
+ } catch (_e) {
2844
+ io = new IntersectionObserver(handleObserve, options);
2845
+ }
2846
+ io.observe(element);
2847
+ }
2848
+ refresh(true);
2849
+ return cleanup;
2850
+ }
2851
+ function autoUpdate(reference, floating, update2, options) {
2852
+ if (options === void 0) {
2853
+ options = {};
2854
+ }
2855
+ const {
2856
+ ancestorScroll = true,
2857
+ ancestorResize = true,
2858
+ elementResize = typeof ResizeObserver === "function",
2859
+ layoutShift = typeof IntersectionObserver === "function",
2860
+ animationFrame = false
2861
+ } = options;
2862
+ const referenceEl = unwrapElement(reference);
2863
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
2864
+ ancestors.forEach((ancestor) => {
2865
+ ancestorScroll && ancestor.addEventListener("scroll", update2, {
2866
+ passive: true
2867
+ });
2868
+ ancestorResize && ancestor.addEventListener("resize", update2);
2869
+ });
2870
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
2871
+ let reobserveFrame = -1;
2872
+ let resizeObserver = null;
2873
+ if (elementResize) {
2874
+ resizeObserver = new ResizeObserver((_ref) => {
2875
+ let [firstEntry] = _ref;
2876
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
2877
+ resizeObserver.unobserve(floating);
2878
+ cancelAnimationFrame(reobserveFrame);
2879
+ reobserveFrame = requestAnimationFrame(() => {
2880
+ var _resizeObserver;
2881
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
2882
+ });
2883
+ }
2884
+ update2();
2885
+ });
2886
+ if (referenceEl && !animationFrame) {
2887
+ resizeObserver.observe(referenceEl);
2888
+ }
2889
+ resizeObserver.observe(floating);
2890
+ }
2891
+ let frameId;
2892
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
2893
+ if (animationFrame) {
2894
+ frameLoop();
2895
+ }
2896
+ function frameLoop() {
2897
+ const nextRefRect = getBoundingClientRect(reference);
2898
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
2899
+ update2();
2900
+ }
2901
+ prevRefRect = nextRefRect;
2902
+ frameId = requestAnimationFrame(frameLoop);
2903
+ }
2904
+ update2();
2905
+ return () => {
2906
+ var _resizeObserver2;
2907
+ ancestors.forEach((ancestor) => {
2908
+ ancestorScroll && ancestor.removeEventListener("scroll", update2);
2909
+ ancestorResize && ancestor.removeEventListener("resize", update2);
2910
+ });
2911
+ cleanupIo == null || cleanupIo();
2912
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
2913
+ resizeObserver = null;
2914
+ if (animationFrame) {
2915
+ cancelAnimationFrame(frameId);
2916
+ }
2917
+ };
2918
+ }
2919
+ var offset2 = offset;
2920
+ var shift2 = shift;
2921
+ var flip2 = flip;
2922
+ var size2 = size;
2923
+ var arrow2 = arrow;
2924
+ var computePosition2 = (reference, floating, options) => {
2925
+ const cache = /* @__PURE__ */ new Map();
2926
+ const mergedOptions = {
2927
+ platform,
2928
+ ...options
2929
+ };
2930
+ const platformWithCache = {
2931
+ ...mergedOptions.platform,
2932
+ _c: cache
2933
+ };
2934
+ return computePosition(reference, floating, {
2935
+ ...mergedOptions,
2936
+ platform: platformWithCache
2937
+ });
2938
+ };
2939
+
2940
+ // node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
2941
+ function e8(t5) {
2942
+ return i6(t5);
2943
+ }
2944
+ function r6(t5) {
2945
+ return t5.assignedSlot ? t5.assignedSlot : t5.parentNode instanceof ShadowRoot ? t5.parentNode.host : t5.parentNode;
2946
+ }
2947
+ function i6(e9) {
2948
+ for (let t5 = e9; t5; t5 = r6(t5)) if (t5 instanceof Element && "none" === getComputedStyle(t5).display) return null;
2949
+ for (let n5 = r6(e9); n5; n5 = r6(n5)) {
2950
+ if (!(n5 instanceof Element)) continue;
2951
+ const e10 = getComputedStyle(n5);
2952
+ if ("contents" !== e10.display) {
2953
+ if ("static" !== e10.position || isContainingBlock(e10)) return n5;
2954
+ if ("BODY" === n5.tagName) return n5;
2955
+ }
2956
+ }
2957
+ return null;
2958
+ }
2959
+
2960
+ // src/components/popup/popup.css
2961
+ var popup_default = '/*! Popup is a low\u2010level utility built specifically for positioning elements. Do not mistake it for a tooltip or similar because it does not facilitate an accessible experience! Almost every correct usage of it will involve building other components. It should rarely, if ever, occur directly in your HTML. */\n\n:host {\n --arrow-color: var(--pc-color-neutral-fill-normal);\n --arrow-size: var(--pc-tooltip-arrow-size);\n\n /* These properties are computed to account for the arrow\u2019s dimensions\n after being rotated 45\xB0. The constant 0,7071 is derived from sin(45\xB0),\n which is the diagonal size of the arrow\u2019s container after rotating. */\n --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);\n --arrow-padding-offset: calc(\n var(--arrow-size-diagonal) - var(--arrow-size)\n );\n\n display: contents;\n}\n\n.popup {\n position: absolute;\n isolation: isolate;\n max-inline-size: var(--auto-size-available-width, none);\n max-block-size: var(--auto-size-available-height, none);\n will-change: transform, top, left;\n\n /* Reset user agent styles for the popover attribute. */\n :where(&) {\n inset: unset;\n margin: unset;\n padding: unset;\n inline-size: unset;\n block-size: unset;\n /* inline-size and block-size do not affect the width and height\n properties. This is redefined to be sure it is also unset. */\n width: unset;\n height: unset;\n background: unset;\n border: unset;\n overflow: unset;\n }\n}\n\n.fixed {\n position: fixed;\n}\n\n.popup:not(.active) {\n display: none;\n}\n\n.arrow {\n position: absolute;\n inline-size: calc(var(--arrow-size-diagonal) * 2);\n block-size: calc(var(--arrow-size-diagonal) * 2);\n background-color: var(--arrow-color);\n rotate: 45deg;\n z-index: 3;\n}\n\n:host([data-current-placement~="left"]) .arrow {\n rotate: -45deg;\n}\n\n:host([data-current-placement~="right"]) .arrow {\n rotate: 135deg;\n}\n\n:host([data-current-placement~="bottom"]) .arrow {\n rotate: 225deg;\n}\n\n.hover-bridge:not(.hover-bridge-visible) {\n display: none;\n}\n\n.hover-bridge {\n position: fixed;\n inset: 0;\n clip-path: polygon(\n var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),\n var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),\n var(--hover-bridge-bottom-right-x, 0)\n var(--hover-bridge-bottom-right-y, 0),\n var(--hover-bridge-bottom-left-x, 0)\n var(--hover-bridge-bottom-left-y, 0)\n );\n z-index: 899;\n}\n';
2962
+
2963
+ // src/components/popup/popup.ts
2964
+ function isVirtualElement(element) {
2965
+ return element !== null && typeof element === "object" && "getBoundingClientRect" in element && ("contextElement" in element ? element instanceof Element : true);
2966
+ }
2967
+ var supportsPopover = globalThis?.HTMLElement?.prototype.hasOwnProperty("popover");
2968
+ var PcPopup = class extends PlacerElement {
2969
+ constructor() {
2970
+ super(...arguments);
2971
+ this.localize = new LocalizeController2(this);
2972
+ this.active = false;
2973
+ this.placement = "top";
2974
+ this.boundary = "viewport";
2975
+ this.distance = 0;
2976
+ this.skidding = 0;
2977
+ this.arrow = false;
2978
+ this.arrowPlacement = "anchor";
2979
+ this.arrowPadding = 10;
2980
+ this.flip = false;
2981
+ this.flipFallbackPlacements = "";
2982
+ this.flipFallbackStrategy = "best-fit";
2983
+ this.flipPadding = 0;
2984
+ this.shift = false;
2985
+ this.shiftPadding = 0;
2986
+ this.autoSizePadding = 0;
2987
+ this.hoverBridge = false;
2988
+ this.updateHoverBridge = () => {
2989
+ if (this.hoverBridge && this.anchorElement) {
2990
+ const anchorRect = this.anchorElement.getBoundingClientRect();
2991
+ const popupRect = this.popup.getBoundingClientRect();
2992
+ const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
2993
+ let topLeftX = 0;
2994
+ let topLeftY = 0;
2995
+ let topRightX = 0;
2996
+ let topRightY = 0;
2997
+ let bottomLeftX = 0;
2998
+ let bottomLeftY = 0;
2999
+ let bottomRightX = 0;
3000
+ let bottomRightY = 0;
3001
+ if (isVertical) {
3002
+ if (anchorRect.top < popupRect.top) {
3003
+ topLeftX = anchorRect.left;
3004
+ topLeftY = anchorRect.bottom;
3005
+ topRightX = anchorRect.right;
3006
+ topRightY = anchorRect.bottom;
3007
+ bottomLeftX = popupRect.left;
3008
+ bottomLeftY = popupRect.top;
3009
+ bottomRightX = popupRect.right;
3010
+ bottomRightY = popupRect.top;
3011
+ } else {
3012
+ topLeftX = popupRect.left;
3013
+ topLeftY = popupRect.bottom;
3014
+ topRightX = popupRect.right;
3015
+ topRightY = popupRect.bottom;
3016
+ bottomLeftX = anchorRect.left;
3017
+ bottomLeftY = anchorRect.top;
3018
+ bottomRightX = anchorRect.right;
3019
+ bottomRightY = anchorRect.top;
3020
+ }
3021
+ } else {
3022
+ if (anchorRect.left < popupRect.left) {
3023
+ topLeftX = anchorRect.right;
3024
+ topLeftY = anchorRect.top;
3025
+ topRightX = popupRect.left;
3026
+ topRightY = popupRect.top;
3027
+ bottomLeftX = anchorRect.right;
3028
+ bottomLeftY = anchorRect.bottom;
3029
+ bottomRightX = popupRect.left;
3030
+ bottomRightY = popupRect.bottom;
3031
+ } else {
3032
+ topLeftX = popupRect.right;
3033
+ topLeftY = popupRect.top;
3034
+ topRightX = anchorRect.left;
3035
+ topRightY = anchorRect.top;
3036
+ bottomLeftX = popupRect.right;
3037
+ bottomLeftY = popupRect.bottom;
3038
+ bottomRightX = anchorRect.left;
3039
+ bottomRightY = anchorRect.bottom;
3040
+ }
3041
+ }
3042
+ this.style.setProperty(
3043
+ "--hover-bridge-top-left-x",
3044
+ `${topLeftX}px`
3045
+ );
3046
+ this.style.setProperty(
3047
+ "--hover-bridge-top-left-y",
3048
+ `${topLeftY}px`
3049
+ );
3050
+ this.style.setProperty(
3051
+ "--hover-bridge-top-right-x",
3052
+ `${topRightX}px`
3053
+ );
3054
+ this.style.setProperty(
3055
+ "--hover-bridge-top-right-y",
3056
+ `${topRightY}px`
3057
+ );
3058
+ this.style.setProperty(
3059
+ "--hover-bridge-bottom-left-x",
3060
+ `${bottomLeftX}px`
3061
+ );
3062
+ this.style.setProperty(
3063
+ "--hover-bridge-bottom-left-y",
3064
+ `${bottomLeftY}px`
3065
+ );
3066
+ this.style.setProperty(
3067
+ "--hover-bridge-bottom-right-x",
3068
+ `${bottomRightX}px`
3069
+ );
3070
+ this.style.setProperty(
3071
+ "--hover-bridge-bottom-right-y",
3072
+ `${bottomRightY}px`
3073
+ );
3074
+ }
3075
+ };
3076
+ }
3077
+ async connectedCallback() {
3078
+ super.connectedCallback();
3079
+ await this.updateComplete;
3080
+ this.start();
3081
+ }
3082
+ disconnectedCallback() {
3083
+ super.disconnectedCallback();
3084
+ this.stop();
3085
+ }
3086
+ async updated(changedProperties) {
3087
+ super.updated(changedProperties);
3088
+ if (changedProperties.has("active")) {
3089
+ if (this.active) {
3090
+ this.start();
3091
+ } else {
3092
+ this.stop();
3093
+ }
3094
+ }
3095
+ if (changedProperties.has("anchor")) {
3096
+ this.handleAnchorChange();
3097
+ }
3098
+ if (this.active) {
3099
+ await this.updateComplete;
3100
+ this.reposition();
3101
+ }
3102
+ }
3103
+ async handleAnchorChange() {
3104
+ await this.stop();
3105
+ if (this.anchor && typeof this.anchor === "string") {
3106
+ const root = this.getRootNode();
3107
+ this.anchorElement = root.getElementById(this.anchor);
3108
+ } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {
3109
+ this.anchorElement = this.anchor;
3110
+ } else {
3111
+ this.anchorElement = this.querySelector('[slot="anchor"]');
3112
+ }
3113
+ if (this.anchorElement instanceof HTMLSlotElement) {
3114
+ this.anchorElement = this.anchorElement.assignedElements({
3115
+ flatten: true
3116
+ })[0];
3117
+ }
3118
+ if (this.anchorElement) {
3119
+ this.start();
3120
+ }
3121
+ }
3122
+ start() {
3123
+ if (!this.anchorElement || !this.active) {
3124
+ return;
3125
+ }
3126
+ this.popup.showPopover?.();
3127
+ this.cleanup = autoUpdate(this.anchorElement, this.popup, () => {
3128
+ this.reposition();
3129
+ });
3130
+ }
3131
+ async stop() {
3132
+ return new Promise((resolve) => {
3133
+ this.popup.hidePopover?.();
3134
+ if (this.cleanup) {
3135
+ this.cleanup();
3136
+ this.cleanup = void 0;
3137
+ this.removeAttribute("data-current-placement");
3138
+ this.style.removeProperty("--auto-size-available-width");
3139
+ this.style.removeProperty("--auto-size-available-height");
3140
+ requestAnimationFrame(() => resolve());
3141
+ } else {
3142
+ resolve();
3143
+ }
3144
+ });
3145
+ }
3146
+ /** Forces the popup to recalculate and reposition itself. */
3147
+ reposition() {
3148
+ if (!this.active || !this.anchorElement) {
3149
+ return;
3150
+ }
3151
+ const middleware = [
3152
+ offset2({ mainAxis: this.distance, crossAxis: this.skidding })
3153
+ ];
3154
+ if (this.sync) {
3155
+ middleware.push(
3156
+ size2({
3157
+ apply: ({ rects }) => {
3158
+ const syncWidth = this.sync === "width" || this.sync === "both";
3159
+ const syncHeight = this.sync === "height" || this.sync === "both";
3160
+ this.popup.style.inlineSize = syncWidth ? `${rects.reference.width}px` : "";
3161
+ this.popup.style.blockSize = syncHeight ? `${rects.reference.height}px` : "";
3162
+ }
3163
+ })
3164
+ );
3165
+ } else {
3166
+ this.popup.style.inlineSize = "";
3167
+ this.popup.style.blockSize = "";
3168
+ }
3169
+ let defaultBoundary;
3170
+ if (supportsPopover && !isVirtualElement(this.anchor) && this.boundary === "scroll") {
3171
+ defaultBoundary = getOverflowAncestors(
3172
+ this.anchorElement
3173
+ ).filter((element) => element instanceof Element);
3174
+ }
3175
+ if (this.flip) {
3176
+ middleware.push(
3177
+ flip2({
3178
+ boundary: this.flipBoundary || defaultBoundary,
3179
+ // @ts-expect-error — We’re converting the property type of “fallbackPlacements” from a string to an array
3180
+ fallbackPlacements: this.flipFallbackPlacements,
3181
+ fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
3182
+ padding: this.flipPadding
3183
+ })
3184
+ );
3185
+ }
3186
+ if (this.shift) {
3187
+ middleware.push(
3188
+ shift2({
3189
+ boundary: this.shiftBoundary || defaultBoundary,
3190
+ padding: this.shiftPadding
3191
+ })
3192
+ );
3193
+ }
3194
+ if (this.autoSize) {
3195
+ middleware.push(
3196
+ size2({
3197
+ boundary: this.autoSizeBoundary || defaultBoundary,
3198
+ padding: this.autoSizePadding,
3199
+ apply: ({ availableWidth, availableHeight }) => {
3200
+ if (this.autoSize === "vertical" || this.autoSize === "both") {
3201
+ this.style.setProperty(
3202
+ "--auto-size-available-height",
3203
+ `${availableHeight}px`
3204
+ );
3205
+ } else {
3206
+ this.style.removeProperty(
3207
+ "--auto-size-available-height"
3208
+ );
3209
+ }
3210
+ if (this.autoSize === "horizontal" || this.autoSize === "both") {
3211
+ this.style.setProperty(
3212
+ "--auto-size-available-width",
3213
+ `${availableWidth}px`
3214
+ );
3215
+ } else {
3216
+ this.style.removeProperty(
3217
+ "--auto-size-available-width"
3218
+ );
3219
+ }
3220
+ }
3221
+ })
3222
+ );
3223
+ } else {
3224
+ this.style.removeProperty("--auto-size-available-width");
3225
+ this.style.removeProperty("--auto-size-available-height");
3226
+ }
3227
+ if (this.arrow) {
3228
+ middleware.push(
3229
+ arrow2({
3230
+ element: this.arrowElement,
3231
+ padding: this.arrowPadding
3232
+ })
3233
+ );
3234
+ }
3235
+ const getOffsetParent2 = supportsPopover ? (element) => platform.getOffsetParent(element, e8) : platform.getOffsetParent;
3236
+ computePosition2(this.anchorElement, this.popup, {
3237
+ placement: this.placement,
3238
+ middleware,
3239
+ strategy: supportsPopover ? "absolute" : "fixed",
3240
+ platform: {
3241
+ ...platform,
3242
+ getOffsetParent: getOffsetParent2
3243
+ }
3244
+ }).then(({ x: x2, y: y3, middlewareData, placement }) => {
3245
+ const isRTL2 = this.localize.dir() === "rtl";
3246
+ const staticSide = {
3247
+ top: "bottom",
3248
+ right: "left",
3249
+ bottom: "top",
3250
+ left: "right"
3251
+ }[placement.split("-")[0]];
3252
+ this.setAttribute("data-current-placement", placement);
3253
+ Object.assign(this.popup.style, {
3254
+ left: `${x2}px`,
3255
+ top: `${y3}px`
3256
+ });
3257
+ if (this.arrow) {
3258
+ const arrowX = middlewareData.arrow.x;
3259
+ const arrowY = middlewareData.arrow.y;
3260
+ let top = "";
3261
+ let right = "";
3262
+ let bottom = "";
3263
+ let left = "";
3264
+ if (this.arrowPlacement === "start") {
3265
+ const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
3266
+ top = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
3267
+ right = isRTL2 ? value : "";
3268
+ left = isRTL2 ? "" : value;
3269
+ } else if (this.arrowPlacement === "end") {
3270
+ const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
3271
+ right = isRTL2 ? "" : value;
3272
+ left = isRTL2 ? value : "";
3273
+ bottom = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
3274
+ } else if (this.arrowPlacement === "center") {
3275
+ left = typeof arrowX === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
3276
+ top = typeof arrowY === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
3277
+ } else {
3278
+ left = typeof arrowX === "number" ? `${arrowX}px` : "";
3279
+ top = typeof arrowY === "number" ? `${arrowY}px` : "";
3280
+ }
3281
+ Object.assign(this.arrowElement.style, {
3282
+ top,
3283
+ right,
3284
+ bottom,
3285
+ left,
3286
+ [staticSide]: "calc(var(--arrow-size-diagonal) * -1)"
3287
+ });
3288
+ }
3289
+ });
3290
+ requestAnimationFrame(() => this.updateHoverBridge());
3291
+ emit(this, "pc-reposition");
3292
+ }
3293
+ render() {
3294
+ return x`
3295
+ <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
3296
+
3297
+ <span
3298
+ part="hover-bridge"
3299
+ class=${e7({
3300
+ "hover-bridge": true,
3301
+ "hover-bridge-visible": this.hoverBridge && this.active
3302
+ })}
3303
+ ></span>
3304
+
3305
+ <div
3306
+ part="popup"
3307
+ popover="manual"
3308
+ class=${e7({
3309
+ "popup": true,
3310
+ "active": this.active,
3311
+ "fixed": !supportsPopover,
3312
+ "has-arrow": this.arrow
3313
+ })}
3314
+ >
3315
+ <slot></slot>
3316
+ ${this.arrow ? x`
3317
+ <div
3318
+ part="arrow"
3319
+ class="arrow"
3320
+ role="presentation"
3321
+ ></div>
3322
+ ` : ""}
3323
+ </div>
3324
+ `;
3325
+ }
3326
+ };
3327
+ /** @internal This is an internal static property. */
3328
+ PcPopup.css = popup_default;
3329
+ __decorateClass([
3330
+ e5(".popup")
3331
+ ], PcPopup.prototype, "popup", 2);
3332
+ __decorateClass([
3333
+ e5(".arrow")
3334
+ ], PcPopup.prototype, "arrowElement", 2);
3335
+ __decorateClass([
3336
+ n4()
3337
+ ], PcPopup.prototype, "anchor", 2);
3338
+ __decorateClass([
3339
+ n4({ type: Boolean, reflect: true })
3340
+ ], PcPopup.prototype, "active", 2);
3341
+ __decorateClass([
3342
+ n4({ reflect: true })
3343
+ ], PcPopup.prototype, "placement", 2);
3344
+ __decorateClass([
3345
+ n4()
3346
+ ], PcPopup.prototype, "boundary", 2);
3347
+ __decorateClass([
3348
+ n4({ type: Number })
3349
+ ], PcPopup.prototype, "distance", 2);
3350
+ __decorateClass([
3351
+ n4({ type: Number })
3352
+ ], PcPopup.prototype, "skidding", 2);
3353
+ __decorateClass([
3354
+ n4({ type: Boolean })
3355
+ ], PcPopup.prototype, "arrow", 2);
3356
+ __decorateClass([
3357
+ n4({ attribute: "arrow-placement" })
3358
+ ], PcPopup.prototype, "arrowPlacement", 2);
3359
+ __decorateClass([
3360
+ n4({ attribute: "arrow-padding", type: Number })
3361
+ ], PcPopup.prototype, "arrowPadding", 2);
3362
+ __decorateClass([
3363
+ n4({ type: Boolean })
3364
+ ], PcPopup.prototype, "flip", 2);
3365
+ __decorateClass([
3366
+ n4({
3367
+ attribute: "flip-fallback-placements",
3368
+ converter: {
3369
+ fromAttribute: (value) => {
3370
+ return value.split(" ").map((placement) => placement.trim()).filter((placement) => placement !== "");
3371
+ },
3372
+ toAttribute: (value) => {
3373
+ return value.join(" ");
3374
+ }
3375
+ }
3376
+ })
3377
+ ], PcPopup.prototype, "flipFallbackPlacements", 2);
3378
+ __decorateClass([
3379
+ n4({ attribute: "flip-fallback-strategy" })
3380
+ ], PcPopup.prototype, "flipFallbackStrategy", 2);
3381
+ __decorateClass([
3382
+ n4({ type: Object })
3383
+ ], PcPopup.prototype, "flipBoundary", 2);
3384
+ __decorateClass([
3385
+ n4({ attribute: "flip-padding", type: Number })
3386
+ ], PcPopup.prototype, "flipPadding", 2);
3387
+ __decorateClass([
3388
+ n4({ type: Boolean })
3389
+ ], PcPopup.prototype, "shift", 2);
3390
+ __decorateClass([
3391
+ n4({ type: Object })
3392
+ ], PcPopup.prototype, "shiftBoundary", 2);
3393
+ __decorateClass([
3394
+ n4({ attribute: "shift-padding", type: Number })
3395
+ ], PcPopup.prototype, "shiftPadding", 2);
3396
+ __decorateClass([
3397
+ n4({ attribute: "auto-size" })
3398
+ ], PcPopup.prototype, "autoSize", 2);
3399
+ __decorateClass([
3400
+ n4()
3401
+ ], PcPopup.prototype, "sync", 2);
3402
+ __decorateClass([
3403
+ n4({ type: Object })
3404
+ ], PcPopup.prototype, "autoSizeBoundary", 2);
3405
+ __decorateClass([
3406
+ n4({ attribute: "auto-size-padding", type: Number })
3407
+ ], PcPopup.prototype, "autoSizePadding", 2);
3408
+ __decorateClass([
3409
+ n4({ attribute: "hover-bridge", type: Boolean })
3410
+ ], PcPopup.prototype, "hoverBridge", 2);
3411
+ PcPopup = __decorateClass([
3412
+ t3("pc-popup")
3413
+ ], PcPopup);
3414
+
3415
+ // src/components/tooltip/tooltip.css
3416
+ var tooltip_default = ':host {\n --max-width: 30ch;\n --hide-delay: 0s;\n --show-delay: 0.15s;\n\n display: contents;\n}\n\n.tooltip {\n --arrow-size: var(--pc-tooltip-arrow-size);\n --arrow-color: var(--pc-tooltip-background-color);\n box-shadow: var(--pc-shadow-xs);\n}\n\n.tooltip::part(popup) {\n z-index: 1000;\n}\n\n.tooltip[data-current-placement^="top"]::part(popup) {\n transform-origin: bottom;\n}\n\n.tooltip[data-current-placement^="bottom"]::part(popup) {\n transform-origin: top;\n}\n\n.tooltip[data-current-placement^="left"]::part(popup) {\n transform-origin: right;\n}\n\n.tooltip[data-current-placement^="right"]::part(popup) {\n transform-origin: left;\n}\n\n.body {\n display: block;\n inline-size: max-content;\n max-inline-size: var(--max-width);\n padding: var(--pc-tooltip-padding);\n background-color: var(--pc-tooltip-background-color);\n color: var(--pc-tooltip-color);\n border-radius: var(--pc-tooltip-border-radius);\n font-family: var(--pc-tooltip-font-family);\n font-size: var(--pc-tooltip-font-size);\n font-weight: var(--pc-tooltip-font-weight);\n line-height: var(--pc-tooltip-line-height);\n text-align: center;\n white-space: normal;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n box-shadow: var(--pc-shadow-xs);\n}\n';
3417
+
3418
+ // src/components/tooltip/tooltip.ts
3419
+ setDefaultAnimation("tooltip.show", {
3420
+ keyframes: [
3421
+ { opacity: 0, scale: 0.8 },
3422
+ { opacity: 1, scale: 1.05 },
3423
+ { opacity: 1, scale: 1 }
3424
+ ],
3425
+ options: {
3426
+ duration: 220,
3427
+ easing: "ease-out"
3428
+ }
3429
+ });
3430
+ setDefaultAnimation("tooltip.hide", {
3431
+ keyframes: [
3432
+ { opacity: 1, scale: 1 },
3433
+ { opacity: 0, scale: 0.9 }
3434
+ ],
3435
+ options: {
3436
+ duration: 140,
3437
+ easing: "cubic-bezier(0.4, 0, 1, 1)"
3438
+ }
3439
+ });
3440
+ var PcTooltip = class extends PlacerElement {
3441
+ constructor() {
3442
+ super();
3443
+ this.localize = new LocalizeController2(this);
3444
+ this.content = "";
3445
+ this.placement = "top";
3446
+ this.disabled = false;
3447
+ this.distance = 8;
3448
+ this.open = false;
3449
+ this.skidding = 0;
3450
+ this.trigger = "hover focus";
3451
+ this.handleClick = () => {
3452
+ if (this.hasTrigger("click")) {
3453
+ if (this.open) {
3454
+ this.hide();
3455
+ } else {
3456
+ this.show();
3457
+ }
3458
+ }
3459
+ };
3460
+ this.handleFocus = () => {
3461
+ if (this.hasTrigger("focus")) {
3462
+ this.show();
3463
+ }
3464
+ };
3465
+ this.handleBlur = () => {
3466
+ if (this.hasTrigger("focus")) {
3467
+ this.hide();
3468
+ }
3469
+ };
3470
+ this.handleDocumentKeyDown = (event) => {
3471
+ if (event.key === "Escape") {
3472
+ event.stopPropagation();
3473
+ this.hide();
3474
+ }
3475
+ };
3476
+ this.handleMouseOver = () => {
3477
+ if (this.hasTrigger("hover")) {
3478
+ const delay = parseDuration(
3479
+ getComputedStyle(this).getPropertyValue("--show-delay")
3480
+ );
3481
+ clearTimeout(this.hoverTimeout);
3482
+ this.hoverTimeout = window.setTimeout(() => this.show(), delay);
3483
+ }
3484
+ };
3485
+ this.handleMouseOut = () => {
3486
+ if (this.hasTrigger("hover")) {
3487
+ const delay = parseDuration(
3488
+ getComputedStyle(this).getPropertyValue("--hide-delay")
3489
+ );
3490
+ clearTimeout(this.hoverTimeout);
3491
+ this.hoverTimeout = window.setTimeout(() => this.hide(), delay);
3492
+ }
3493
+ };
3494
+ this.addEventListener("click", this.handleClick);
3495
+ this.addEventListener("focus", this.handleFocus, true);
3496
+ this.addEventListener("blur", this.handleBlur, true);
3497
+ this.addEventListener("mouseover", this.handleMouseOver);
3498
+ this.addEventListener("mouseout", this.handleMouseOut);
3499
+ }
3500
+ disconnectedCallback() {
3501
+ super.disconnectedCallback();
3502
+ this.closeWatcher?.destroy();
3503
+ document.removeEventListener("keydown", this.handleDocumentKeyDown);
3504
+ }
3505
+ firstUpdated() {
3506
+ this.body.hidden = !this.open;
3507
+ if (this.open) {
3508
+ this.popup.active = true;
3509
+ this.popup.reposition();
3510
+ }
3511
+ }
3512
+ hasTrigger(triggerType) {
3513
+ const triggers = this.trigger.split(" ");
3514
+ return triggers.includes(triggerType);
3515
+ }
3516
+ async handleOpenChange() {
3517
+ if (this.open) {
3518
+ if (this.disabled) {
3519
+ return;
3520
+ }
3521
+ emit(this, "pc-show");
3522
+ if ("CloseWatcher" in window) {
3523
+ this.closeWatcher?.destroy();
3524
+ this.closeWatcher = new CloseWatcher();
3525
+ this.closeWatcher.onclose = () => {
3526
+ this.hide();
3527
+ };
3528
+ } else {
3529
+ document.addEventListener(
3530
+ "keydown",
3531
+ this.handleDocumentKeyDown
3532
+ );
3533
+ }
3534
+ await stopAnimations(this.body);
3535
+ this.body.hidden = false;
3536
+ this.popup.active = true;
3537
+ const { keyframes, options } = getAnimation(this, "tooltip.show", {
3538
+ dir: this.localize.dir()
3539
+ });
3540
+ await animateTo(this.popup.popup, keyframes, options);
3541
+ this.popup.reposition();
3542
+ emit(this, "pc-after-show");
3543
+ } else {
3544
+ emit(this, "pc-hide");
3545
+ this.closeWatcher?.destroy();
3546
+ document.removeEventListener("keydown", this.handleDocumentKeyDown);
3547
+ await stopAnimations(this.body);
3548
+ const { keyframes, options } = getAnimation(this, "tooltip.hide", {
3549
+ dir: this.localize.dir()
3550
+ });
3551
+ await animateTo(this.popup.popup, keyframes, options);
3552
+ this.popup.active = false;
3553
+ this.body.hidden = true;
3554
+ emit(this, "pc-after-hide");
3555
+ }
3556
+ }
3557
+ async handleOptionsChange() {
3558
+ if (this.hasUpdated) {
3559
+ await this.updateComplete;
3560
+ this.popup.reposition();
3561
+ }
3562
+ }
3563
+ handleDisabledChange() {
3564
+ if (this.disabled && this.open) {
3565
+ this.hide();
3566
+ }
3567
+ }
3568
+ /** Shows the tooltip. */
3569
+ async show() {
3570
+ if (this.open) {
3571
+ return void 0;
3572
+ }
3573
+ this.open = true;
3574
+ return waitForEvent(this, "pc-after-show");
3575
+ }
3576
+ /** Hides the tooltip. */
3577
+ async hide() {
3578
+ if (!this.open) {
3579
+ return void 0;
3580
+ }
3581
+ this.open = false;
3582
+ return waitForEvent(this, "pc-after-hide");
3583
+ }
3584
+ render() {
3585
+ return x`
3586
+ <pc-popup
3587
+ part="base"
3588
+ class=${e7({
3589
+ tooltip: true,
3590
+ open: this.open
3591
+ })}
3592
+ placement=${this.placement}
3593
+ distance=${this.distance}
3594
+ skidding=${this.skidding}
3595
+ flip=""
3596
+ shift=""
3597
+ arrow=""
3598
+ hover-bridge=""
3599
+ exportparts="popup:base-popup, arrow:base__arrow"
3600
+ >
3601
+ <slot slot="anchor" aria-describedby="tooltip"></slot>
3602
+
3603
+ <div
3604
+ part="body"
3605
+ class="body"
3606
+ id="tooltip"
3607
+ role="tooltip"
3608
+ aria-live=${this.open ? "polite" : "off"}
3609
+ >
3610
+ <slot name="content">${this.content}</slot>
3611
+ </div>
3612
+ </pc-popup>
3613
+ `;
3614
+ }
3615
+ };
3616
+ /** @internal This is an internal static property. */
3617
+ PcTooltip.css = tooltip_default;
3618
+ /** @internal This is an internal static property. */
3619
+ PcTooltip.dependencies = { "pc-popup": PcPopup };
3620
+ __decorateClass([
3621
+ e5("slot:not([name])")
3622
+ ], PcTooltip.prototype, "defaultSlot", 2);
3623
+ __decorateClass([
3624
+ e5(".body")
3625
+ ], PcTooltip.prototype, "body", 2);
3626
+ __decorateClass([
3627
+ e5("pc-popup")
3628
+ ], PcTooltip.prototype, "popup", 2);
3629
+ __decorateClass([
3630
+ n4()
3631
+ ], PcTooltip.prototype, "content", 2);
3632
+ __decorateClass([
3633
+ n4()
3634
+ ], PcTooltip.prototype, "placement", 2);
3635
+ __decorateClass([
3636
+ n4({ type: Boolean, reflect: true })
3637
+ ], PcTooltip.prototype, "disabled", 2);
3638
+ __decorateClass([
3639
+ n4({ type: Number })
3640
+ ], PcTooltip.prototype, "distance", 2);
3641
+ __decorateClass([
3642
+ n4({ type: Boolean, reflect: true })
3643
+ ], PcTooltip.prototype, "open", 2);
3644
+ __decorateClass([
3645
+ n4({ type: Number })
3646
+ ], PcTooltip.prototype, "skidding", 2);
3647
+ __decorateClass([
3648
+ n4()
3649
+ ], PcTooltip.prototype, "trigger", 2);
3650
+ __decorateClass([
3651
+ watch("open", { waitUntilFirstUpdate: true })
3652
+ ], PcTooltip.prototype, "handleOpenChange", 1);
3653
+ __decorateClass([
3654
+ watch(["content", "distance", "placement", "skidding"])
3655
+ ], PcTooltip.prototype, "handleOptionsChange", 1);
3656
+ __decorateClass([
3657
+ watch("disabled")
3658
+ ], PcTooltip.prototype, "handleDisabledChange", 1);
3659
+ PcTooltip = __decorateClass([
3660
+ t3("pc-tooltip")
3661
+ ], PcTooltip);
3662
+
3663
+ // src/components/copy-button/copy-button.css
3664
+ var copy_button_default = ":host {\n --error-color: var(--pc-color-danger-on-quiet);\n --success-color: var(--pc-color-success-on-quiet);\n display: inline-block;\n}\n\n.copy-button {\n display: flex;\n align-items: center;\n flex: 0 0 auto;\n background: transparent;\n border: none;\n border-radius: var(--pc-border-radius-m);\n font-size: inherit;\n color: inherit;\n padding: var(--pc-spacing-s);\n cursor: pointer;\n transition: all var(--pc-transition-fast) ease-in-out;\n}\n\n@media (hover: hover) {\n .copy-button:hover:not([disabled]) {\n background-color: color-mix(\n in oklab,\n var(--pc-color-neutral-fill-normal),\n var(--pc-color-mix-hover)\n );\n }\n}\n\n.copy-button:active:not([disabled]) {\n background-color: color-mix(\n in oklab,\n var(--pc-color-neutral-fill-normal),\n var(--pc-color-mix-active)\n );\n}\n\n.copy-button:focus-visible:not([disabled]) {\n background-color: color-mix(\n in oklab,\n var(--pc-color-neutral-fill-normal),\n var(--pc-color-mix-hover)\n );\n}\n\n.state-success .copy-button {\n color: var(--success-color);\n}\n\n.state-error .copy-button {\n color: var(--error-color);\n}\n\n.copy-button:focus-visible {\n outline: var(--pc-focus-ring);\n outline-offset: var(--pc-focus-ring-offset);\n animation: focus-ring-animation var(--pc-transition-medium)\n cubic-bezier(0.33, 1, 0.68, 1);\n}\n\n.copy-button[disabled] {\n opacity: 0.5;\n cursor: not-allowed !important;\n}\n\nslot {\n display: inline-flex;\n}\n\n@keyframes focus-ring-animation {\n 0% {\n outline-width: 0;\n }\n\n 50% {\n outline-width: calc(var(--pc-focus-ring-width) * 2);\n }\n\n 100% {\n outline-width: var(--pc-focus-ring-width);\n }\n}\n";
3665
+
3666
+ // src/components/copy-button/copy-button.ts
3667
+ setDefaultAnimation("copy.in", {
3668
+ keyframes: [
3669
+ { scale: "0.6", opacity: "0" },
3670
+ { scale: "1.1", opacity: "1" },
3671
+ { scale: "0.95", opacity: "1" },
3672
+ { scale: "1", opacity: "1" }
3673
+ ],
3674
+ options: {
3675
+ duration: 350,
3676
+ easing: "cubic-bezier(0.34, 1.56, 0.64, 1)"
3677
+ }
3678
+ });
3679
+ setDefaultAnimation("copy.out", {
3680
+ keyframes: [
3681
+ { scale: "1", opacity: "1" },
3682
+ { scale: "0.85", opacity: "0" }
3683
+ ],
3684
+ options: {
3685
+ duration: 200,
3686
+ easing: "cubic-bezier(0.75, 0, 0.9, 0.05)"
3687
+ }
3688
+ });
3689
+ var PcCopyButton = class extends PlacerElement {
3690
+ constructor() {
3691
+ super(...arguments);
3692
+ this.localize = new LocalizeController2(this);
3693
+ this.isCopying = false;
3694
+ this.status = "rest";
3695
+ this.value = "";
3696
+ this.from = "";
3697
+ this.disabled = false;
3698
+ this.copyLabel = "";
3699
+ this.successLabel = "";
3700
+ this.errorLabel = "";
3701
+ this.feedbackDuration = 1e3;
3702
+ this.tooltipPlacement = "top";
3703
+ }
3704
+ async handleCopy() {
3705
+ if (this.disabled || this.isCopying) {
3706
+ return;
3707
+ }
3708
+ this.isCopying = true;
3709
+ let valueToCopy = this.value;
3710
+ if (this.from) {
3711
+ const root = this.getRootNode();
3712
+ const isProperty = this.from.includes(".");
3713
+ const isAttribute = this.from.includes("[") && this.from.includes("]");
3714
+ let id = this.from;
3715
+ let field = "";
3716
+ if (isProperty) {
3717
+ [id, field] = this.from.trim().split(".");
3718
+ } else if (isAttribute) {
3719
+ [id, field] = this.from.trim().replace(/\]$/, "").split("[");
3720
+ }
3721
+ const target = "getElementById" in root ? root.getElementById(id) : null;
3722
+ if (target) {
3723
+ if (isAttribute) {
3724
+ valueToCopy = target.getAttribute(field) || "";
3725
+ } else if (isProperty) {
3726
+ valueToCopy = target[field] || "";
3727
+ } else {
3728
+ valueToCopy = target.textContent || "";
3729
+ }
3730
+ } else {
3731
+ this.showStatus("error");
3732
+ emit(this, "pc-error");
3733
+ }
3734
+ }
3735
+ if (!valueToCopy) {
3736
+ this.showStatus("error");
3737
+ emit(this, "pc-error");
3738
+ } else {
3739
+ try {
3740
+ await navigator.clipboard.writeText(valueToCopy);
3741
+ this.showStatus("success");
3742
+ emit(this, "pc-copy", {
3743
+ detail: {
3744
+ value: valueToCopy
3745
+ }
3746
+ });
3747
+ } catch {
3748
+ this.showStatus("error");
3749
+ emit(this, "pc-error");
3750
+ }
3751
+ }
3752
+ }
3753
+ async showStatus(status) {
3754
+ const copyLabel = this.copyLabel || this.localize.term("copy");
3755
+ const successLabel = this.successLabel || this.localize.term("copied");
3756
+ const errorLabel = this.errorLabel || this.localize.term("error");
3757
+ const iconToShow = status === "success" ? this.successIcon : this.errorIcon;
3758
+ const showAnimation = getAnimation(this, "copy.in", { dir: "ltr" });
3759
+ const hideAnimation = getAnimation(this, "copy.out", { dir: "ltr" });
3760
+ this.tooltip.content = status === "success" ? successLabel : errorLabel;
3761
+ await this.copyIcon.animate(
3762
+ hideAnimation.keyframes,
3763
+ hideAnimation.options
3764
+ ).finished;
3765
+ this.copyIcon.hidden = true;
3766
+ this.status = status;
3767
+ iconToShow.hidden = false;
3768
+ await iconToShow.animate(showAnimation.keyframes, showAnimation.options).finished;
3769
+ setTimeout(async () => {
3770
+ await iconToShow.animate(
3771
+ hideAnimation.keyframes,
3772
+ hideAnimation.options
3773
+ ).finished;
3774
+ iconToShow.hidden = true;
3775
+ this.status = "rest";
3776
+ this.copyIcon.hidden = false;
3777
+ await this.copyIcon.animate(
3778
+ showAnimation.keyframes,
3779
+ showAnimation.options
3780
+ ).finished;
3781
+ this.tooltip.content = copyLabel;
3782
+ this.isCopying = false;
3783
+ }, this.feedbackDuration);
3784
+ }
3785
+ render() {
3786
+ const copyLabel = this.copyLabel || this.localize.term("copy");
3787
+ return x`
3788
+ <pc-tooltip
3789
+ class=${e7({
3790
+ "copy-button-container": true,
3791
+ "state-success": this.status === "success",
3792
+ "state-error": this.status === "error"
3793
+ })}
3794
+ content=${copyLabel}
3795
+ placement=${this.tooltipPlacement}
3796
+ ?disabled=${this.disabled}
3797
+ exportparts="
3798
+ base:tooltip-base,
3799
+ base-popup:tooltip-base-popup,
3800
+ base-arrow:tooltip-base-arrow,
3801
+ body:tooltip-body
3802
+ "
3803
+ >
3804
+ <button
3805
+ class="copy-button"
3806
+ type="button"
3807
+ part="button"
3808
+ ?disabled=${this.disabled}
3809
+ @click=${this.handleCopy}
3810
+ >
3811
+ <slot part="copy-icon" name="copy-icon">
3812
+ <pc-icon
3813
+ library="system"
3814
+ icon-style="regular"
3815
+ name="copy"
3816
+ ></pc-icon>
3817
+ </slot>
3818
+ <slot part="success-icon" name="success-icon" hidden>
3819
+ <pc-icon
3820
+ library="system"
3821
+ icon-style="solid"
3822
+ name="check"
3823
+ ></pc-icon>
3824
+ </slot>
3825
+ <slot part="error-icon" name="error-icon" hidden>
3826
+ <pc-icon
3827
+ library="system"
3828
+ icon-style="solid"
3829
+ name="xmark"
3830
+ ></pc-icon>
3831
+ </slot>
3832
+ </button>
3833
+ </pc-tooltip>
3834
+ `;
3835
+ }
3836
+ };
3837
+ /** @internal This is an internal static property. */
3838
+ PcCopyButton.css = copy_button_default;
3839
+ /** @internal This is an internal static property. */
3840
+ PcCopyButton.dependencies = { "pc-icon": PcIcon, "pc-tooltip": PcTooltip };
3841
+ __decorateClass([
3842
+ e5('slot[name="copy-icon"]')
3843
+ ], PcCopyButton.prototype, "copyIcon", 2);
3844
+ __decorateClass([
3845
+ e5('slot[name="success-icon"]')
3846
+ ], PcCopyButton.prototype, "successIcon", 2);
3847
+ __decorateClass([
3848
+ e5('slot[name="error-icon"]')
3849
+ ], PcCopyButton.prototype, "errorIcon", 2);
3850
+ __decorateClass([
3851
+ e5("pc-tooltip")
3852
+ ], PcCopyButton.prototype, "tooltip", 2);
3853
+ __decorateClass([
3854
+ r5()
3855
+ ], PcCopyButton.prototype, "isCopying", 2);
3856
+ __decorateClass([
3857
+ r5()
3858
+ ], PcCopyButton.prototype, "status", 2);
3859
+ __decorateClass([
3860
+ n4()
3861
+ ], PcCopyButton.prototype, "value", 2);
3862
+ __decorateClass([
3863
+ n4()
3864
+ ], PcCopyButton.prototype, "from", 2);
3865
+ __decorateClass([
3866
+ n4({ type: Boolean, reflect: true })
3867
+ ], PcCopyButton.prototype, "disabled", 2);
3868
+ __decorateClass([
3869
+ n4({ attribute: "copy-label" })
3870
+ ], PcCopyButton.prototype, "copyLabel", 2);
3871
+ __decorateClass([
3872
+ n4({ attribute: "success-label" })
3873
+ ], PcCopyButton.prototype, "successLabel", 2);
3874
+ __decorateClass([
3875
+ n4({ attribute: "error-label" })
3876
+ ], PcCopyButton.prototype, "errorLabel", 2);
3877
+ __decorateClass([
3878
+ n4({ attribute: "feedback-duration", type: Number })
3879
+ ], PcCopyButton.prototype, "feedbackDuration", 2);
3880
+ __decorateClass([
3881
+ n4({ attribute: "tooltip-placement" })
3882
+ ], PcCopyButton.prototype, "tooltipPlacement", 2);
3883
+ PcCopyButton = __decorateClass([
3884
+ t3("pc-copy-button")
3885
+ ], PcCopyButton);
3886
+ export {
3887
+ PcCopyButton
3888
+ };
3889
+ //! Popup is a low‐level utility built specifically for positioning elements. Do not mistake it for a tooltip or similar because it does not facilitate an accessible experience! Almost every correct usage of it will involve building other components. It should rarely, if ever, occur directly in your HTML.
3890
+ /*! Bundled license information:
3891
+
3892
+ @lit/reactive-element/css-tag.js:
3893
+ (**
3894
+ * @license
3895
+ * Copyright 2019 Google LLC
3896
+ * SPDX-License-Identifier: BSD-3-Clause
3897
+ *)
3898
+
3899
+ @lit/reactive-element/reactive-element.js:
3900
+ lit-html/lit-html.js:
3901
+ lit-element/lit-element.js:
3902
+ @lit/reactive-element/decorators/custom-element.js:
3903
+ @lit/reactive-element/decorators/property.js:
3904
+ @lit/reactive-element/decorators/state.js:
3905
+ @lit/reactive-element/decorators/event-options.js:
3906
+ @lit/reactive-element/decorators/base.js:
3907
+ @lit/reactive-element/decorators/query.js:
3908
+ @lit/reactive-element/decorators/query-all.js:
3909
+ @lit/reactive-element/decorators/query-async.js:
3910
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
3911
+ lit-html/directive.js:
3912
+ (**
3913
+ * @license
3914
+ * Copyright 2017 Google LLC
3915
+ * SPDX-License-Identifier: BSD-3-Clause
3916
+ *)
3917
+
3918
+ lit-html/is-server.js:
3919
+ (**
3920
+ * @license
3921
+ * Copyright 2022 Google LLC
3922
+ * SPDX-License-Identifier: BSD-3-Clause
3923
+ *)
3924
+
3925
+ @lit/reactive-element/decorators/query-assigned-elements.js:
3926
+ (**
3927
+ * @license
3928
+ * Copyright 2021 Google LLC
3929
+ * SPDX-License-Identifier: BSD-3-Clause
3930
+ *)
3931
+
3932
+ lit-html/directives/class-map.js:
3933
+ (**
3934
+ * @license
3935
+ * Copyright 2018 Google LLC
3936
+ * SPDX-License-Identifier: BSD-3-Clause
3937
+ *)
3938
+ */