@aquera/nile-elements 1.3.0-beta-1.1 → 1.3.0-beta-1.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 (389) hide show
  1. package/README.md +1 -0
  2. package/demo/index.html +269 -34
  3. package/dist/assets/nile-elements-4b5c262d.css +1 -0
  4. package/dist/{fixture-54600b35.cjs.js → fixture-1c49c014.cjs.js} +2 -2
  5. package/dist/{fixture-73855806.cjs.js.map → fixture-1c49c014.cjs.js.map} +1 -1
  6. package/dist/{fixture-9871e8a9.esm.js → fixture-985bba12.esm.js} +1 -1
  7. package/dist/{fixture-73855806.cjs.js → fixture-d1470b58.cjs.js} +2 -2
  8. package/dist/{fixture-54600b35.cjs.js.map → fixture-d1470b58.cjs.js.map} +1 -1
  9. package/dist/{fixture-5b79f853.cjs.js → fixture-dff65c89.cjs.js} +2 -2
  10. package/dist/{fixture-c1d78368.cjs.js.map → fixture-dff65c89.cjs.js.map} +1 -1
  11. package/dist/index.cjs.js +1 -1
  12. package/dist/index.esm.js +1 -1
  13. package/dist/index.js +280 -280
  14. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  15. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  16. package/dist/nile-auto-complete/index.cjs.js +1 -1
  17. package/dist/nile-auto-complete/index.esm.js +1 -1
  18. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  20. package/dist/nile-auto-complete/nile-auto-complete.esm.js +2 -2
  21. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  26. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  34. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  35. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  36. package/dist/nile-card/nile-card.test.esm.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  38. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  39. package/dist/nile-chip/index.cjs.js +1 -1
  40. package/dist/nile-chip/index.esm.js +1 -1
  41. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  42. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  43. package/dist/nile-chip/nile-chip.esm.js +2 -2
  44. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  45. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  46. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  47. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  48. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  49. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  50. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  51. package/dist/nile-dropdown/index.cjs.js +1 -1
  52. package/dist/nile-dropdown/index.esm.js +1 -1
  53. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  54. package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
  55. package/dist/nile-dropdown/nile-dropdown.esm.js +2 -2
  56. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  57. package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +1 -1
  58. package/dist/nile-dropdown/nile-dropdown.test.esm.js +6 -6
  59. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  60. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  61. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  62. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  63. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  64. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  65. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  66. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  67. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  68. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  69. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  70. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  71. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  72. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  73. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  74. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  75. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  76. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  77. package/dist/nile-inline-edit/index.cjs.js +1 -1
  78. package/dist/nile-inline-edit/index.esm.js +1 -1
  79. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  80. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  81. package/dist/nile-inline-edit/nile-inline-edit.esm.js +4 -4
  82. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  83. package/dist/nile-input/nile-input.test.esm.js +1 -1
  84. package/dist/nile-light-tooltip/index.esm.js +1 -0
  85. package/dist/nile-light-tooltip/nile-light-tooltip.css.esm.js +6 -0
  86. package/dist/nile-light-tooltip/nile-light-tooltip.esm.js +1 -0
  87. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  88. package/dist/nile-link/nile-link.test.esm.js +1 -1
  89. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  90. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  91. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  92. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  93. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  94. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  95. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  96. package/dist/nile-popover/index.cjs.js +1 -1
  97. package/dist/nile-popover/index.esm.js +1 -1
  98. package/dist/nile-popover/nile-popover.cjs.js +3 -3
  99. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  100. package/dist/nile-popover/nile-popover.esm.js +4 -4
  101. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  102. package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
  103. package/dist/nile-popover/nile-popover.test.esm.js +4 -4
  104. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  105. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  106. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  107. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  108. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  109. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  110. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  111. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  112. package/dist/nile-select/index.cjs.js +1 -1
  113. package/dist/nile-select/index.esm.js +1 -1
  114. package/dist/nile-select/nile-select.cjs.js +1 -1
  115. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  116. package/dist/nile-select/nile-select.esm.js +2 -2
  117. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  118. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  119. package/dist/nile-select/nile-select.test.esm.js +1 -1
  120. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  121. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  122. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  123. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  124. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  125. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  126. package/dist/nile-tooltip/index.cjs.js +1 -1
  127. package/dist/nile-tooltip/index.esm.js +1 -1
  128. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  129. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  130. package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
  131. package/dist/nile-virtual-select/index.cjs.js +1 -1
  132. package/dist/nile-virtual-select/index.esm.js +1 -1
  133. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  134. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  135. package/dist/nile-virtual-select/nile-virtual-select.esm.js +13 -13
  136. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  137. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  138. package/dist/src/nile-auto-complete/nile-auto-complete.d.ts +4 -0
  139. package/dist/src/nile-auto-complete/nile-auto-complete.js +41 -0
  140. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  141. package/dist/src/nile-chip/nile-chip.d.ts +4 -0
  142. package/dist/src/nile-chip/nile-chip.js +47 -0
  143. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  144. package/dist/src/nile-dropdown/nile-dropdown.d.ts +4 -1
  145. package/dist/src/nile-dropdown/nile-dropdown.js +38 -1
  146. package/dist/src/nile-dropdown/nile-dropdown.js.map +1 -1
  147. package/dist/src/nile-inline-edit/nile-inline-edit.d.ts +0 -8
  148. package/dist/src/nile-inline-edit/nile-inline-edit.js +1 -47
  149. package/dist/src/nile-inline-edit/nile-inline-edit.js.map +1 -1
  150. package/dist/src/nile-light-tooltip/index.d.ts +1 -0
  151. package/dist/src/nile-light-tooltip/index.js +2 -0
  152. package/dist/src/nile-light-tooltip/index.js.map +1 -0
  153. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.d.ts +12 -0
  154. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js +18 -0
  155. package/dist/src/nile-light-tooltip/nile-light-tooltip.css.js.map +1 -0
  156. package/dist/src/nile-light-tooltip/nile-light-tooltip.d.ts +40 -0
  157. package/dist/src/nile-light-tooltip/nile-light-tooltip.js +101 -0
  158. package/dist/src/nile-light-tooltip/nile-light-tooltip.js.map +1 -0
  159. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.d.ts +5 -1
  160. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js +44 -0
  161. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js.map +1 -1
  162. package/dist/src/nile-menu/virtual-menu-search-manager.d.ts +11 -0
  163. package/dist/src/nile-menu/virtual-menu-search-manager.js +43 -0
  164. package/dist/src/nile-menu/virtual-menu-search-manager.js.map +1 -0
  165. package/dist/src/nile-popover/nile-popover.d.ts +4 -0
  166. package/dist/src/nile-popover/nile-popover.js +40 -0
  167. package/dist/src/nile-popover/nile-popover.js.map +1 -1
  168. package/dist/src/nile-select/nile-select.d.ts +1 -5
  169. package/dist/src/nile-select/nile-select.js +28 -67
  170. package/dist/src/nile-select/nile-select.js.map +1 -1
  171. package/dist/src/nile-tooltip/nile-tooltip.d.ts +3 -0
  172. package/dist/src/nile-tooltip/nile-tooltip.js +38 -0
  173. package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
  174. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +2 -5
  175. package/dist/src/nile-virtual-select/nile-virtual-select.js +29 -66
  176. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  177. package/dist/src/utilities/visibility-manager.d.ts +20 -0
  178. package/dist/src/utilities/visibility-manager.js +64 -0
  179. package/dist/src/utilities/visibility-manager.js.map +1 -0
  180. package/dist/src/version.js +1 -1
  181. package/dist/src/version.js.map +1 -1
  182. package/dist/tsconfig.tsbuildinfo +1 -1
  183. package/dist/utilities/visibility-manager.cjs.js +2 -0
  184. package/dist/utilities/visibility-manager.cjs.js.map +1 -0
  185. package/dist/utilities/visibility-manager.esm.js +1 -0
  186. package/package.json +2 -2
  187. package/src/nile-auto-complete/nile-auto-complete.ts +44 -0
  188. package/src/nile-chip/nile-chip.ts +53 -0
  189. package/src/nile-dropdown/nile-dropdown.ts +40 -1
  190. package/src/nile-inline-edit/nile-inline-edit.ts +1 -59
  191. package/src/nile-lite-tooltip/nile-lite-tooltip.ts +52 -1
  192. package/src/nile-popover/nile-popover.ts +44 -0
  193. package/src/nile-select/nile-select.ts +31 -87
  194. package/src/nile-tooltip/nile-tooltip.ts +39 -0
  195. package/src/nile-virtual-select/nile-virtual-select.ts +32 -87
  196. package/src/utilities/visibility-manager.ts +104 -0
  197. package/vscode-html-custom-data.json +69 -13
  198. package/dist/fixture-5b79f853.cjs.js.map +0 -1
  199. package/dist/fixture-90b199c4.esm.js +0 -569
  200. package/dist/fixture-c1d78368.cjs.js +0 -395
  201. package/dist/fixture-cf7bfcf5.esm.js +0 -569
  202. package/dist/fixture-dbd66009.cjs.js +0 -395
  203. package/dist/fixture-dbd66009.cjs.js.map +0 -1
  204. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +0 -2
  205. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +0 -1
  206. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +0 -1
  207. package/dist/nile-inline-edit/nile-inline-edit-utils.cjs.js +0 -2
  208. package/dist/nile-inline-edit/nile-inline-edit-utils.cjs.js.map +0 -1
  209. package/dist/nile-inline-edit/nile-inline-edit-utils.esm.js +0 -1
  210. package/dist/nile-sidebar/index.cjs.js +0 -2
  211. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  212. package/dist/nile-sidebar/index.esm.js +0 -75
  213. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  214. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  215. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  216. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  217. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  218. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  219. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  220. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  221. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  222. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  223. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  224. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  225. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  226. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  227. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  228. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  229. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  230. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  231. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  232. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  233. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  234. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  235. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  236. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  237. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  238. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  239. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  240. package/dist/nile-virtual-select/group-manager.cjs.js +0 -2
  241. package/dist/nile-virtual-select/group-manager.cjs.js.map +0 -1
  242. package/dist/nile-virtual-select/group-manager.esm.js +0 -1
  243. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +0 -2
  244. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +0 -1
  245. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +0 -231
  246. package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
  247. package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
  248. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
  249. package/dist/src/internal/portal-manager.d.ts +0 -53
  250. package/dist/src/internal/portal-manager.js +0 -196
  251. package/dist/src/internal/portal-manager.js.map +0 -1
  252. package/dist/src/internal/portal.d.ts +0 -60
  253. package/dist/src/internal/portal.js +0 -199
  254. package/dist/src/internal/portal.js.map +0 -1
  255. package/dist/src/internal/resizable-helper.d.ts +0 -59
  256. package/dist/src/internal/resizable-helper.js +0 -115
  257. package/dist/src/internal/resizable-helper.js.map +0 -1
  258. package/dist/src/internal/resizable-styles.d.ts +0 -16
  259. package/dist/src/internal/resizable-styles.js +0 -144
  260. package/dist/src/internal/resizable-styles.js.map +0 -1
  261. package/dist/src/internal/virtualizer-error-handler.d.ts +0 -30
  262. package/dist/src/internal/virtualizer-error-handler.js +0 -82
  263. package/dist/src/internal/virtualizer-error-handler.js.map +0 -1
  264. package/dist/src/lib/index.d.ts +0 -7
  265. package/dist/src/lib/index.js +0 -8
  266. package/dist/src/lib/index.js.map +0 -1
  267. package/dist/src/lib/virtualize.d.ts +0 -32
  268. package/dist/src/lib/virtualize.js +0 -105
  269. package/dist/src/lib/virtualize.js.map +0 -1
  270. package/dist/src/lib/virtualize.test.d.ts +0 -7
  271. package/dist/src/lib/virtualize.test.js +0 -57
  272. package/dist/src/lib/virtualize.test.js.map +0 -1
  273. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  274. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  275. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  276. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  277. package/dist/src/nile-code-editor/Old_theme copy.d.ts +0 -191
  278. package/dist/src/nile-code-editor/Old_theme copy.js +0 -193
  279. package/dist/src/nile-code-editor/Old_theme copy.js.map +0 -1
  280. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  281. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +0 -675
  282. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +0 -1
  283. package/dist/src/nile-code-editor/theme copy.d.ts +0 -191
  284. package/dist/src/nile-code-editor/theme copy.js +0 -193
  285. package/dist/src/nile-code-editor/theme copy.js.map +0 -1
  286. package/dist/src/nile-grid/data-processor.d.ts +0 -37
  287. package/dist/src/nile-grid/data-processor.js +0 -122
  288. package/dist/src/nile-grid/data-processor.js.map +0 -1
  289. package/dist/src/nile-grid/event-handlers.d.ts +0 -35
  290. package/dist/src/nile-grid/event-handlers.js +0 -158
  291. package/dist/src/nile-grid/event-handlers.js.map +0 -1
  292. package/dist/src/nile-grid/renderer.d.ts +0 -8
  293. package/dist/src/nile-grid/renderer.js +0 -78
  294. package/dist/src/nile-grid/renderer.js.map +0 -1
  295. package/dist/src/nile-grid/resize-handler.d.ts +0 -4
  296. package/dist/src/nile-grid/resize-handler.js +0 -36
  297. package/dist/src/nile-grid/resize-handler.js.map +0 -1
  298. package/dist/src/nile-grid/types.d.ts +0 -32
  299. package/dist/src/nile-grid/types.js +0 -2
  300. package/dist/src/nile-grid/types.js.map +0 -1
  301. package/dist/src/nile-grid/utils.d.ts +0 -4
  302. package/dist/src/nile-grid/utils.js +0 -32
  303. package/dist/src/nile-grid/utils.js.map +0 -1
  304. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  305. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  306. package/dist/src/nile-inline-edit/nile-inline-edit-utils.d.ts +0 -20
  307. package/dist/src/nile-inline-edit/nile-inline-edit-utils.js +0 -70
  308. package/dist/src/nile-inline-edit/nile-inline-edit-utils.js.map +0 -1
  309. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  310. package/dist/src/nile-menu/portal-manager.d.ts +0 -39
  311. package/dist/src/nile-menu/portal-manager.js +0 -340
  312. package/dist/src/nile-menu/portal-manager.js.map +0 -1
  313. package/dist/src/nile-menu/portal-utils.d.ts +0 -21
  314. package/dist/src/nile-menu/portal-utils.js +0 -128
  315. package/dist/src/nile-menu/portal-utils.js.map +0 -1
  316. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  317. package/dist/src/nile-popover/popover-portal-handler.d.ts +0 -21
  318. package/dist/src/nile-popover/popover-portal-handler.js +0 -106
  319. package/dist/src/nile-popover/popover-portal-handler.js.map +0 -1
  320. package/dist/src/nile-portal-wrapper/index.d.ts +0 -1
  321. package/dist/src/nile-portal-wrapper/index.js +0 -2
  322. package/dist/src/nile-portal-wrapper/index.js.map +0 -1
  323. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +0 -47
  324. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +0 -451
  325. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +0 -1
  326. package/dist/src/nile-select/body-append-manager.d.ts +0 -90
  327. package/dist/src/nile-select/body-append-manager.js +0 -298
  328. package/dist/src/nile-select/body-append-manager.js.map +0 -1
  329. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +0 -9
  330. package/dist/src/nile-table-body/virtual-scroll-helper.js +0 -24
  331. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +0 -1
  332. package/dist/src/nile-virtual-select/body-append-helper.d.ts +0 -16
  333. package/dist/src/nile-virtual-select/body-append-helper.js +0 -95
  334. package/dist/src/nile-virtual-select/body-append-helper.js.map +0 -1
  335. package/dist/src/nile-virtual-select/group-manager.d.ts +0 -32
  336. package/dist/src/nile-virtual-select/group-manager.js +0 -134
  337. package/dist/src/nile-virtual-select/group-manager.js.map +0 -1
  338. package/dist/src/nile-virtual-select/portal-utils.d.ts +0 -65
  339. package/dist/src/nile-virtual-select/portal-utils.js +0 -376
  340. package/dist/src/nile-virtual-select/portal-utils.js.map +0 -1
  341. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +0 -273
  342. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +0 -1305
  343. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +0 -1
  344. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +0 -21
  345. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +0 -56
  346. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +0 -1
  347. package/dist/src/nile-virtual-select-disabled/index.d.ts +0 -1
  348. package/dist/src/nile-virtual-select-disabled/index.js +0 -2
  349. package/dist/src/nile-virtual-select-disabled/index.js.map +0 -1
  350. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +0 -12
  351. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +0 -538
  352. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +0 -1
  353. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +0 -299
  354. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +0 -1441
  355. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +0 -1
  356. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +0 -7
  357. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +0 -631
  358. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +0 -1
  359. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +0 -45
  360. package/dist/src/nile-virtual-select-disabled/portal-manager.js +0 -333
  361. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +0 -1
  362. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +0 -16
  363. package/dist/src/nile-virtual-select-disabled/renderer.js +0 -79
  364. package/dist/src/nile-virtual-select-disabled/renderer.js.map +0 -1
  365. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +0 -12
  366. package/dist/src/nile-virtual-select-disabled/search-manager.js +0 -40
  367. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +0 -1
  368. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +0 -12
  369. package/dist/src/nile-virtual-select-disabled/selection-manager.js +0 -64
  370. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +0 -1
  371. package/dist/src/nile-virtual-select-disabled/types.d.ts +0 -50
  372. package/dist/src/nile-virtual-select-disabled/types.js +0 -8
  373. package/dist/src/nile-virtual-select-disabled/types.js.map +0 -1
  374. package/dist/src/nile-virtual-table-body/index.d.ts +0 -2
  375. package/dist/src/nile-virtual-table-body/index.js +0 -3
  376. package/dist/src/nile-virtual-table-body/index.js.map +0 -1
  377. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +0 -1
  378. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +0 -44
  379. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +0 -1
  380. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +0 -50
  381. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +0 -135
  382. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +0 -1
  383. package/dist/src/nile-virtual-table-body/renderer.d.ts +0 -16
  384. package/dist/src/nile-virtual-table-body/renderer.js +0 -49
  385. package/dist/src/nile-virtual-table-body/renderer.js.map +0 -1
  386. package/dist/src/utilities/stepper-utils.d.ts +0 -71
  387. package/dist/src/utilities/stepper-utils.js +0 -108
  388. package/dist/src/utilities/stepper-utils.js.map +0 -1
  389. package/src/nile-inline-edit/nile-inline-edit-utils.ts +0 -94
@@ -1 +1 @@
1
- import{__decorate as t}from"tslib";import{property as n,customElement as e}from"lit/decorators.js";import{s as i}from"./nile-lite-tooltip.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import{p as o,a as u}from"./utils.esm.js";import"lit";var a="top",c="bottom",f="right",s="left",d="auto",l=[a,c,f,s],p="start",v="end",h="viewport",m="popper",b=l.reduce((function(t,n){return t.concat([n+"-"+p,n+"-"+v])}),[]),y=[].concat(l,[d]).reduce((function(t,n){return t.concat([n,n+"-"+p,n+"-"+v])}),[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function w(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function O(t){return t instanceof x(t).Element||t instanceof Element}function j(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function T(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}var k={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},i=n.attributes[t]||{},r=n.elements[t];j(r)&&w(r)&&(Object.assign(r.style,e),Object.keys(i).forEach((function(t){var n=i[t];!1===n?r.removeAttribute(t):r.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var i=n.elements[t],r=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});j(i)&&w(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function C(t){return t.split("-")[0]}var S=Math.max,M=Math.min,B=Math.round;function A(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function R(){return!/^((?!chrome|android).)*safari/i.test(A())}function E(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&j(t)&&(r=t.offsetWidth>0&&B(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&B(i.height)/t.offsetHeight||1);var u=(O(t)?x(t):window).visualViewport,a=!R()&&e,c=(i.left+(a&&u?u.offsetLeft:0))/r,f=(i.top+(a&&u?u.offsetTop:0))/o,s=i.width/r,d=i.height/o;return{width:s,height:d,top:f,right:c+s,bottom:f+d,left:c,x:c,y:f}}function H(t){var n=E(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function q(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&T(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function U(t){return x(t).getComputedStyle(t)}function W(t){return["table","td","th"].indexOf(w(t))>=0}function z(t){return((O(t)?t.ownerDocument:t.document)||window.document).documentElement}function L(t){return"html"===w(t)?t:t.assignedSlot||t.parentNode||(T(t)?t.host:null)||z(t)}function I(t){return j(t)&&"fixed"!==U(t).position?t.offsetParent:null}function P(t){for(var n=x(t),e=I(t);e&&W(e)&&"static"===U(e).position;)e=I(e);return e&&("html"===w(e)||"body"===w(e)&&"static"===U(e).position)?n:e||function(t){var n=/firefox/i.test(A());if(/Trident/i.test(A())&&j(t)&&"fixed"===U(t).position)return null;var e=L(t);for(T(e)&&(e=e.host);j(e)&&["html","body"].indexOf(w(e))<0;){var i=U(e);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||n&&"filter"===i.willChange||n&&i.filter&&"none"!==i.filter)return e;e=e.parentNode}return null}(t)||n}function D(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function N(t,n,e){return S(t,M(n,e))}function F(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}var V={name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,u=e.modifiersData.popperOffsets,d=C(e.placement),p=D(d),v=[s,f].indexOf(d)>=0?"height":"width";if(o&&u){var h=function(t,n){return F("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:$(t,l))}(r.padding,e),m=H(o),b="y"===p?a:s,y="y"===p?c:f,g=e.rects.reference[v]+e.rects.reference[p]-u[p]-e.rects.popper[v],w=u[p]-e.rects.reference[p],x=P(o),O=x?"y"===p?x.clientHeight||0:x.clientWidth||0:0,j=g/2-w/2,T=h[b],k=O-m[v]-h[y],S=O/2-m[v]/2+j,M=N(T,S,k),B=p;e.modifiersData[i]=((n={})[B]=M,n.centerOffset=M-S,n)}},effect:function(t){var n=t.state,e=t.options.element,i=void 0===e?"[data-popper-arrow]":e;null!=i&&("string"!=typeof i||(i=n.elements.popper.querySelector(i)))&&q(n.elements.popper,i)&&(n.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function X(t){return t.split("-")[1]}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(t){var n,e=t.popper,i=t.popperRect,r=t.placement,o=t.variation,u=t.offsets,d=t.position,l=t.gpuAcceleration,p=t.adaptive,h=t.roundOffsets,m=t.isFixed,b=u.x,y=void 0===b?0:b,g=u.y,w=void 0===g?0:g,O="function"==typeof h?h({x:y,y:w}):{x:y,y:w};y=O.x,w=O.y;var j=u.hasOwnProperty("x"),T=u.hasOwnProperty("y"),k=s,C=a,S=window;if(p){var M=P(e),A="clientHeight",R="clientWidth";if(M===x(e)&&"static"!==U(M=z(e)).position&&"absolute"===d&&(A="scrollHeight",R="scrollWidth"),r===a||(r===s||r===f)&&o===v)C=c,w-=(m&&M===S&&S.visualViewport?S.visualViewport.height:M[A])-i.height,w*=l?1:-1;if(r===s||(r===a||r===c)&&o===v)k=f,y-=(m&&M===S&&S.visualViewport?S.visualViewport.width:M[R])-i.width,y*=l?1:-1}var E,H=Object.assign({position:d},p&&Y),q=!0===h?function(t,n){var e=t.x,i=t.y,r=n.devicePixelRatio||1;return{x:B(e*r)/r||0,y:B(i*r)/r||0}}({x:y,y:w},x(e)):{x:y,y:w};return y=q.x,w=q.y,l?Object.assign({},H,((E={})[C]=T?"0":"",E[k]=j?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",E)):Object.assign({},H,((n={})[C]=T?w+"px":"",n[k]=j?y+"px":"",n.transform="",n))}var _={passive:!0};var G={left:"right",right:"left",bottom:"top",top:"bottom"};function K(t){return t.replace(/left|right|bottom|top/g,(function(t){return G[t]}))}var Q={start:"end",end:"start"};function Z(t){return t.replace(/start|end/g,(function(t){return Q[t]}))}function tt(t){var n=x(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function nt(t){return E(z(t)).left+tt(t).scrollLeft}function et(t){var n=U(t),e=n.overflow,i=n.overflowX,r=n.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+i)}function it(t){return["html","body","#document"].indexOf(w(t))>=0?t.ownerDocument.body:j(t)&&et(t)?t:it(L(t))}function rt(t,n){var e;void 0===n&&(n=[]);var i=it(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=x(i),u=r?[o].concat(o.visualViewport||[],et(i)?i:[]):i,a=n.concat(u);return r?a:a.concat(rt(L(u)))}function ot(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ut(t,n,e){return n===h?ot(function(t,n){var e=x(t),i=z(t),r=e.visualViewport,o=i.clientWidth,u=i.clientHeight,a=0,c=0;if(r){o=r.width,u=r.height;var f=R();(f||!f&&"fixed"===n)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:o,height:u,x:a+nt(t),y:c}}(t,e)):O(n)?function(t,n){var e=E(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):ot(function(t){var n,e=z(t),i=tt(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=S(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=S(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+nt(t),c=-i.scrollTop;return"rtl"===U(r||e).direction&&(a+=S(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:u,x:a,y:c}}(z(t)))}function at(t,n,e,i){var r="clippingParents"===n?function(t){var n=rt(L(t)),e=["absolute","fixed"].indexOf(U(t).position)>=0&&j(t)?P(t):t;return O(e)?n.filter((function(t){return O(t)&&q(t,e)&&"body"!==w(t)})):[]}(t):[].concat(n),o=[].concat(r,[e]),u=o[0],a=o.reduce((function(n,e){var r=ut(t,e,i);return n.top=S(r.top,n.top),n.right=M(r.right,n.right),n.bottom=M(r.bottom,n.bottom),n.left=S(r.left,n.left),n}),ut(t,u,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ct(t){var n,e=t.reference,i=t.element,r=t.placement,o=r?C(r):null,u=r?X(r):null,d=e.x+e.width/2-i.width/2,l=e.y+e.height/2-i.height/2;switch(o){case a:n={x:d,y:e.y-i.height};break;case c:n={x:d,y:e.y+e.height};break;case f:n={x:e.x+e.width,y:l};break;case s:n={x:e.x-i.width,y:l};break;default:n={x:e.x,y:e.y}}var h=o?D(o):null;if(null!=h){var m="y"===h?"height":"width";switch(u){case p:n[h]=n[h]-(e[m]/2-i[m]/2);break;case v:n[h]=n[h]+(e[m]/2-i[m]/2)}}return n}function ft(t,n){void 0===n&&(n={});var e=n,i=e.placement,r=void 0===i?t.placement:i,o=e.strategy,u=void 0===o?t.strategy:o,s=e.boundary,d=void 0===s?"clippingParents":s,p=e.rootBoundary,v=void 0===p?h:p,b=e.elementContext,y=void 0===b?m:b,g=e.altBoundary,w=void 0!==g&&g,x=e.padding,j=void 0===x?0:x,T=F("number"!=typeof j?j:$(j,l)),k=y===m?"reference":m,C=t.rects.popper,S=t.elements[w?k:y],M=at(O(S)?S:S.contextElement||z(t.elements.popper),d,v,u),B=E(t.elements.reference),A=ct({reference:B,element:C,strategy:"absolute",placement:r}),R=ot(Object.assign({},C,A)),H=y===m?R:B,q={top:M.top-H.top+T.top,bottom:H.bottom-M.bottom+T.bottom,left:M.left-H.left+T.left,right:H.right-M.right+T.right},U=t.modifiersData.offset;if(y===m&&U){var W=U[r];Object.keys(q).forEach((function(t){var n=[f,c].indexOf(t)>=0?1:-1,e=[a,c].indexOf(t)>=0?"y":"x";q[t]+=W[e]*n}))}return q}function st(t,n){void 0===n&&(n={});var e=n,i=e.placement,r=e.boundary,o=e.rootBoundary,u=e.padding,a=e.flipVariations,c=e.allowedAutoPlacements,f=void 0===c?y:c,s=X(i),d=s?a?b:b.filter((function(t){return X(t)===s})):l,p=d.filter((function(t){return f.indexOf(t)>=0}));0===p.length&&(p=d);var v=p.reduce((function(n,e){return n[e]=ft(t,{placement:e,boundary:r,rootBoundary:o,padding:u})[C(e)],n}),{});return Object.keys(v).sort((function(t,n){return v[t]-v[n]}))}var dt={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,u=e.altAxis,l=void 0===u||u,v=e.fallbackPlacements,h=e.padding,m=e.boundary,b=e.rootBoundary,y=e.altBoundary,g=e.flipVariations,w=void 0===g||g,x=e.allowedAutoPlacements,O=n.options.placement,j=C(O),T=v||(j===O||!w?[K(O)]:function(t){if(C(t)===d)return[];var n=K(t);return[Z(t),n,Z(n)]}(O)),k=[O].concat(T).reduce((function(t,e){return t.concat(C(e)===d?st(n,{placement:e,boundary:m,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:x}):e)}),[]),S=n.rects.reference,M=n.rects.popper,B=new Map,A=!0,R=k[0],E=0;E<k.length;E++){var H=k[E],q=C(H),U=X(H)===p,W=[a,c].indexOf(q)>=0,z=W?"width":"height",L=ft(n,{placement:H,boundary:m,rootBoundary:b,altBoundary:y,padding:h}),I=W?U?f:s:U?c:a;S[z]>M[z]&&(I=K(I));var P=K(I),D=[];if(o&&D.push(L[q]<=0),l&&D.push(L[I]<=0,L[P]<=0),D.every((function(t){return t}))){R=H,A=!1;break}B.set(H,D)}if(A)for(var N=function(t){var n=k.find((function(n){var e=B.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return R=n,"break"},F=w?3:1;F>0;F--){if("break"===N(F))break}n.placement!==R&&(n.modifiersData[i]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lt(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function pt(t){return[a,f,c,s].some((function(n){return t[n]>=0}))}var vt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.options,i=t.name,r=e.offset,o=void 0===r?[0,0]:r,u=y.reduce((function(t,e){return t[e]=function(t,n,e){var i=C(t),r=[s,a].indexOf(i)>=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,u=o[0],c=o[1];return u=u||0,c=(c||0)*r,[s,f].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}(e,n.rects,o),t}),{}),c=u[n.placement],d=c.x,l=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=d,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=u}};var ht={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,u=e.altAxis,d=void 0!==u&&u,l=e.boundary,v=e.rootBoundary,h=e.altBoundary,m=e.padding,b=e.tether,y=void 0===b||b,g=e.tetherOffset,w=void 0===g?0:g,x=ft(n,{boundary:l,rootBoundary:v,padding:m,altBoundary:h}),O=C(n.placement),j=X(n.placement),T=!j,k=D(O),B="x"===k?"y":"x",A=n.modifiersData.popperOffsets,R=n.rects.reference,E=n.rects.popper,q="function"==typeof w?w(Object.assign({},n.rects,{placement:n.placement})):w,U="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,z={x:0,y:0};if(A){if(o){var L,I="y"===k?a:s,F="y"===k?c:f,$="y"===k?"height":"width",V=A[k],Y=V+x[I],J=V-x[F],_=y?-E[$]/2:0,G=j===p?R[$]:E[$],K=j===p?-E[$]:-R[$],Q=n.elements.arrow,Z=y&&Q?H(Q):{width:0,height:0},tt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},nt=tt[I],et=tt[F],it=N(0,R[$],Z[$]),rt=T?R[$]/2-_-it-nt-U.mainAxis:G-it-nt-U.mainAxis,ot=T?-R[$]/2+_+it+et+U.mainAxis:K+it+et+U.mainAxis,ut=n.elements.arrow&&P(n.elements.arrow),at=ut?"y"===k?ut.clientTop||0:ut.clientLeft||0:0,ct=null!=(L=null==W?void 0:W[k])?L:0,st=V+ot-ct,dt=N(y?M(Y,V+rt-ct-at):Y,V,y?S(J,st):J);A[k]=dt,z[k]=dt-V}if(d){var lt,pt="x"===k?a:s,vt="x"===k?c:f,ht=A[B],mt="y"===B?"height":"width",bt=ht+x[pt],yt=ht-x[vt],gt=-1!==[a,s].indexOf(O),wt=null!=(lt=null==W?void 0:W[B])?lt:0,xt=gt?bt:ht-R[mt]-E[mt]-wt+U.altAxis,Ot=gt?ht+R[mt]+E[mt]-wt-U.altAxis:yt,jt=y&&gt?function(t,n,e){var i=N(t,n,e);return i>e?e:i}(xt,ht,Ot):N(y?xt:bt,ht,y?Ot:yt);A[B]=jt,z[B]=jt-ht}n.modifiersData[i]=z}},requiresIfExists:["offset"]};function mt(t,n,e){void 0===e&&(e=!1);var i,r,o=j(n),u=j(n)&&function(t){var n=t.getBoundingClientRect(),e=B(n.width)/t.offsetWidth||1,i=B(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),a=z(n),c=E(t,u,e),f={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!e)&&(("body"!==w(n)||et(a))&&(f=(i=n)!==x(i)&&j(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:tt(i)),j(n)?((s=E(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):a&&(s.x=nt(a))),{x:c.left+f.scrollLeft-s.x,y:c.top+f.scrollTop-s.y,width:c.width,height:c.height}}function bt(t){var n=new Map,e=new Set,i=[];function r(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var i=n.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||r(t)})),i}var yt={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function wt(t){void 0===t&&(t={});var n=t,e=n.defaultModifiers,i=void 0===e?[]:e,r=n.defaultOptions,o=void 0===r?yt:r;return function(t,n,e){void 0===e&&(e=o);var r,u,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},yt,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],f=!1,s={state:a,setOptions:function(e){var r="function"==typeof e?e(a.options):e;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:O(t)?rt(t):t.contextElement?rt(t.contextElement):[],popper:rt(n)};var u,f,l=function(t){var n=bt(t);return g.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((u=[].concat(i,a.options.modifiers),f=u.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(f).map((function(t){return f[t]}))));return a.orderedModifiers=l.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var n=t.name,e=t.options,i=void 0===e?{}:e,r=t.effect;if("function"==typeof r){var o=r({state:a,name:n,instance:s,options:i}),u=function(){};c.push(o||u)}})),s.update()},forceUpdate:function(){if(!f){var t=a.elements,n=t.reference,e=t.popper;if(gt(n,e)){a.rects={reference:mt(n,P(e),"fixed"===a.options.strategy),popper:H(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,u=r.options,c=void 0===u?{}:u,d=r.name;"function"==typeof o&&(a=o({state:a,options:c,name:d,instance:s})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){s.forceUpdate(),t(a)}))},function(){return u||(u=new Promise((function(t){Promise.resolve().then((function(){u=void 0,t(r())}))}))),u}),destroy:function(){d(),f=!0}};if(!gt(t,n))return s;function d(){c.forEach((function(t){return t()})),c=[]}return s.setOptions(e).then((function(t){!f&&e.onFirstUpdate&&e.onFirstUpdate(t)})),s}}var xt=wt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,u=i.resize,a=void 0===u||u,c=x(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&f.forEach((function(t){t.addEventListener("scroll",e.update,_)})),a&&c.addEventListener("resize",e.update,_),function(){o&&f.forEach((function(t){t.removeEventListener("scroll",e.update,_)})),a&&c.removeEventListener("resize",e.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state,e=t.name;n.modifiersData[e]=ct({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,i=e.gpuAcceleration,r=void 0===i||i,o=e.adaptive,u=void 0===o||o,a=e.roundOffsets,c=void 0===a||a,f={placement:C(n.placement),variation:X(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,J(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:u,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,J(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},k,vt,dt,ht,V,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,i=n.rects.reference,r=n.rects.popper,o=n.modifiersData.preventOverflow,u=ft(n,{elementContext:"reference"}),a=ft(n,{altBoundary:!0}),c=lt(u,i),f=lt(a,r,o),s=pt(c),d=pt(f);n.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:s,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]}),Ot='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',jt="tippy-content",Tt="tippy-arrow",kt="tippy-svg-arrow",Ct={passive:!0,capture:!0},St=function(){return document.body};function Mt(t,n,e){if(Array.isArray(t)){var i=t[n];return null==i?Array.isArray(e)?e[n]:e:i}return t}function Bt(t,n){var e={}.toString.call(t);return 0===e.indexOf("[object")&&e.indexOf(n+"]")>-1}function At(t,n){return"function"==typeof t?t.apply(void 0,n):t}function Rt(t,n){return 0===n?t:function(i){clearTimeout(e),e=setTimeout((function(){t(i)}),n)};var e}function Et(t){return[].concat(t)}function Ht(t,n){-1===t.indexOf(n)&&t.push(n)}function qt(t){return[].slice.call(t)}function Ut(t){return Object.keys(t).reduce((function(n,e){return void 0!==t[e]&&(n[e]=t[e]),n}),{})}function Wt(){return document.createElement("div")}function zt(t){return["Element","Fragment"].some((function(n){return Bt(t,n)}))}function Lt(t){return Bt(t,"MouseEvent")}function It(t){return zt(t)?[t]:function(t){return Bt(t,"NodeList")}(t)?qt(t):Array.isArray(t)?t:qt(document.querySelectorAll(t))}function Pt(t,n){t.forEach((function(t){t&&(t.style.transitionDuration=n+"ms")}))}function Dt(t,n){t.forEach((function(t){t&&t.setAttribute("data-state",n)}))}function Nt(t){var n,e=Et(t)[0];return null!=e&&null!=(n=e.ownerDocument)&&n.body?e.ownerDocument:document}function Ft(t,n,e){var i=n+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(n){t[i](n,e)}))}function $t(t,n){for(var e=n;e;){var i;if(t.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var Vt={isTouch:!1},Xt=0;function Yt(){Vt.isTouch||(Vt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Jt))}function Jt(){var t=performance.now();t-Xt<20&&(Vt.isTouch=!1,document.removeEventListener("mousemove",Jt)),Xt=t}function _t(){var t,n=document.activeElement;if((t=n)&&t._tippy&&t._tippy.reference===t){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}var Gt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Kt=Object.assign({appendTo:St,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Qt=Object.keys(Kt);function Zt(t){var n=(t.plugins||[]).reduce((function(n,e){var i,r=e.name,o=e.defaultValue;r&&(n[r]=void 0!==t[r]?t[r]:null!=(i=Kt[r])?i:o);return n}),{});return Object.assign({},t,n)}function tn(t,n){var e=Object.assign({},n,{content:At(n.content,[t])},n.ignoreAttributes?{}:function(t,n){return(n?Object.keys(Zt(Object.assign({},Kt,{plugins:n}))):Qt).reduce((function(n,e){var i=(t.getAttribute("data-tippy-"+e)||"").trim();if(!i)return n;if("content"===e)n[e]=i;else try{n[e]=JSON.parse(i)}catch(t){n[e]=i}return n}),{})}(t,n.plugins));return e.aria=Object.assign({},Kt.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?n.interactive:e.aria.expanded,content:"auto"===e.aria.content?n.interactive?null:"describedby":e.aria.content},e}function nn(t,n){t.innerHTML=n}function en(t){var n=Wt();return!0===t?n.className=Tt:(n.className=kt,zt(t)?n.appendChild(t):nn(n,t)),n}function rn(t,n){zt(n.content)?(nn(t,""),t.appendChild(n.content)):"function"!=typeof n.content&&(n.allowHTML?nn(t,n.content):t.textContent=n.content)}function on(t){var n=t.firstElementChild,e=qt(n.children);return{box:n,content:e.find((function(t){return t.classList.contains(jt)})),arrow:e.find((function(t){return t.classList.contains(Tt)||t.classList.contains(kt)})),backdrop:e.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function un(t){var n=Wt(),e=Wt();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=Wt();function r(e,i){var r=on(n),o=r.box,u=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),e.content===i.content&&e.allowHTML===i.allowHTML||rn(u,t.props),i.arrow?a?e.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(en(i.arrow))):o.appendChild(en(i.arrow)):a&&o.removeChild(a)}return i.className=jt,i.setAttribute("data-state","hidden"),rn(i,t.props),n.appendChild(e),e.appendChild(i),r(t.props,t.props),{popper:n,onUpdate:r}}un.$$tippy=!0;var an=1,cn=[],fn=[];function sn(t,n){var e,i,r,o,u,a,c,f,s=tn(t,Object.assign({},Kt,Zt(Ut(n)))),d=!1,l=!1,p=!1,v=!1,h=[],m=Rt(Y,s.interactiveDebounce),b=an++,y=(f=s.plugins).filter((function(t,n){return f.indexOf(t)===n})),g={id:b,reference:t,popper:Wt(),popperInstance:null,props:s,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(n){if(g.state.isDestroyed)return;H("onBeforeUpdate",[g,n]),V();var e=g.props,i=tn(t,Object.assign({},e,Ut(n),{ignoreAttributes:!0}));g.props=i,$(),e.interactiveDebounce!==i.interactiveDebounce&&(W(),m=Rt(Y,i.interactiveDebounce));e.triggerTarget&&!i.triggerTarget?Et(e.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");U(),E(),O&&O(e,i);g.popperInstance&&(K(),Z().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));H("onAfterUpdate",[g,n])},setContent:function(t){g.setProps({content:t})},show:function(){var t=g.state.isVisible,n=g.state.isDestroyed,e=!g.state.isEnabled,i=Vt.isTouch&&!g.props.touch,r=Mt(g.props.duration,0,Kt.duration);if(t||n||e||i)return;if(M().hasAttribute("disabled"))return;if(H("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,S()&&(x.style.visibility="visible");E(),P(),g.state.isMounted||(x.style.transition="none");if(S()){var o=A();Pt([o.box,o.content],0)}a=function(){var t;if(g.state.isVisible&&!v){if(v=!0,x.offsetHeight,x.style.transition=g.props.moveTransition,S()&&g.props.animation){var n=A(),e=n.box,i=n.content;Pt([e,i],r),Dt([e,i],"visible")}q(),U(),Ht(fn,g),null==(t=g.popperInstance)||t.forceUpdate(),H("onMount",[g]),g.props.animation&&S()&&function(t,n){N(t,n)}(r,(function(){g.state.isShown=!0,H("onShown",[g])}))}},function(){var t,n=g.props.appendTo,e=M();t=g.props.interactive&&n===St||"parent"===n?e.parentNode:At(n,[e]);t.contains(x)||t.appendChild(x);g.state.isMounted=!0,K()}()},hide:function(){var t=!g.state.isVisible,n=g.state.isDestroyed,e=!g.state.isEnabled,i=Mt(g.props.duration,1,Kt.duration);if(t||n||e)return;if(H("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,v=!1,d=!1,S()&&(x.style.visibility="hidden");if(W(),D(),E(!0),S()){var r=A(),o=r.box,u=r.content;g.props.animation&&(Pt([o,u],i),Dt([o,u],"hidden"))}q(),U(),g.props.animation?S()&&function(t,n){N(t,(function(){!g.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&n()}))}(i,g.unmount):g.unmount()},hideWithInteractivity:function(t){B().addEventListener("mousemove",m),Ht(cn,m),m(t)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){g.state.isVisible&&g.hide();if(!g.state.isMounted)return;Q(),Z().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);fn=fn.filter((function(t){return t!==g})),g.state.isMounted=!1,H("onHidden",[g])},destroy:function(){if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),V(),delete t._tippy,g.state.isDestroyed=!0,H("onDestroy",[g])}};if(!s.render)return g;var w=s.render(g),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+g.id,g.popper=x,t._tippy=g,x._tippy=g;var j=y.map((function(t){return t.fn(g)})),T=t.hasAttribute("aria-expanded");return $(),U(),E(),H("onCreate",[g]),s.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&B().addEventListener("mousemove",m)})),g;function k(){var t=g.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===k()[0]}function S(){var t;return!(null==(t=g.props.render)||!t.$$tippy)}function M(){return c||t}function B(){var t=M().parentNode;return t?Nt(t):document}function A(){return on(x)}function R(t){return g.state.isMounted&&!g.state.isVisible||Vt.isTouch||o&&"focus"===o.type?0:Mt(g.props.delay,t?0:1,Kt.delay)}function E(t){void 0===t&&(t=!1),x.style.pointerEvents=g.props.interactive&&!t?"":"none",x.style.zIndex=""+g.props.zIndex}function H(t,n,e){var i;(void 0===e&&(e=!0),j.forEach((function(e){e[t]&&e[t].apply(e,n)})),e)&&(i=g.props)[t].apply(i,n)}function q(){var n=g.props.aria;if(n.content){var e="aria-"+n.content,i=x.id;Et(g.props.triggerTarget||t).forEach((function(t){var n=t.getAttribute(e);if(g.state.isVisible)t.setAttribute(e,n?n+" "+i:i);else{var r=n&&n.replace(i,"").trim();r?t.setAttribute(e,r):t.removeAttribute(e)}}))}}function U(){!T&&g.props.aria.expanded&&Et(g.props.triggerTarget||t).forEach((function(t){g.props.interactive?t.setAttribute("aria-expanded",g.state.isVisible&&t===M()?"true":"false"):t.removeAttribute("aria-expanded")}))}function W(){B().removeEventListener("mousemove",m),cn=cn.filter((function(t){return t!==m}))}function z(n){if(!Vt.isTouch||!p&&"mousedown"!==n.type){var e=n.composedPath&&n.composedPath()[0]||n.target;if(!g.props.interactive||!$t(x,e)){if(Et(g.props.triggerTarget||t).some((function(t){return $t(t,e)}))){if(Vt.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[g,n]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),l=!0,setTimeout((function(){l=!1})),g.state.isMounted||D())}}}function L(){p=!0}function I(){p=!1}function P(){var t=B();t.addEventListener("mousedown",z,!0),t.addEventListener("touchend",z,Ct),t.addEventListener("touchstart",I,Ct),t.addEventListener("touchmove",L,Ct)}function D(){var t=B();t.removeEventListener("mousedown",z,!0),t.removeEventListener("touchend",z,Ct),t.removeEventListener("touchstart",I,Ct),t.removeEventListener("touchmove",L,Ct)}function N(t,n){var e=A().box;function i(t){t.target===e&&(Ft(e,"remove",i),n())}if(0===t)return n();Ft(e,"remove",u),Ft(e,"add",i),u=i}function F(n,e,i){void 0===i&&(i=!1),Et(g.props.triggerTarget||t).forEach((function(t){t.addEventListener(n,e,i),h.push({node:t,eventType:n,handler:e,options:i})}))}function $(){var t;C()&&(F("touchstart",X,{passive:!0}),F("touchend",J,{passive:!0})),(t=g.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(F(t,X),t){case"mouseenter":F("mouseleave",J);break;case"focus":F(Gt?"focusout":"blur",_);break;case"focusin":F("focusout",_)}}))}function V(){h.forEach((function(t){var n=t.node,e=t.eventType,i=t.handler,r=t.options;n.removeEventListener(e,i,r)})),h=[]}function X(t){var n,e=!1;if(g.state.isEnabled&&!G(t)&&!l){var i="focus"===(null==(n=o)?void 0:n.type);o=t,c=t.currentTarget,U(),!g.state.isVisible&&Lt(t)&&cn.forEach((function(n){return n(t)})),"click"===t.type&&(g.props.trigger.indexOf("mouseenter")<0||d)&&!1!==g.props.hideOnClick&&g.state.isVisible?e=!0:tt(t),"click"===t.type&&(d=!e),e&&!i&&nt(t)}}function Y(t){var n=t.target,e=M().contains(n)||x.contains(n);if("mousemove"!==t.type||!e){var i=Z().concat(x).map((function(t){var n,e=null==(n=t._tippy.popperInstance)?void 0:n.state;return e?{popperRect:t.getBoundingClientRect(),popperState:e,props:s}:null})).filter(Boolean);(function(t,n){var e=n.clientX,i=n.clientY;return t.every((function(t){var n=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,u=r.placement.split("-")[0],a=r.modifiersData.offset;if(!a)return!0;var c="bottom"===u?a.top.y:0,f="top"===u?a.bottom.y:0,s="right"===u?a.left.x:0,d="left"===u?a.right.x:0,l=n.top-i+c>o,p=i-n.bottom-f>o,v=n.left-e+s>o,h=e-n.right-d>o;return l||p||v||h}))})(i,t)&&(W(),nt(t))}}function J(t){G(t)||g.props.trigger.indexOf("click")>=0&&d||(g.props.interactive?g.hideWithInteractivity(t):nt(t))}function _(t){g.props.trigger.indexOf("focusin")<0&&t.target!==M()||g.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||nt(t)}function G(t){return!!Vt.isTouch&&C()!==t.type.indexOf("touch")>=0}function K(){Q();var n=g.props,e=n.popperOptions,i=n.placement,r=n.offset,o=n.getReferenceClientRect,u=n.moveTransition,c=S()?on(x).arrow:null,f=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:t,s={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var n=t.state;if(S()){var e=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?e.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+t]?e.setAttribute("data-"+t,""):e.removeAttribute("data-"+t)})),n.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},s];S()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==e?void 0:e.modifiers)||[]),g.popperInstance=xt(f,x,Object.assign({},e,{placement:i,onFirstUpdate:a,modifiers:d}))}function Q(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Z(){return qt(x.querySelectorAll("[data-tippy-root]"))}function tt(t){g.clearDelayTimeouts(),t&&H("onTrigger",[g,t]),P();var n=R(!0),i=k(),r=i[0],o=i[1];Vt.isTouch&&"hold"===r&&o&&(n=o),n?e=setTimeout((function(){g.show()}),n):g.show()}function nt(t){if(g.clearDelayTimeouts(),H("onUntrigger",[g,t]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&d)){var n=R(!1);n?i=setTimeout((function(){g.state.isVisible&&g.hide()}),n):r=requestAnimationFrame((function(){g.hide()}))}}else D()}}function dn(t,n){void 0===n&&(n={});var e=Kt.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",Yt,Ct),window.addEventListener("blur",_t);var i=Object.assign({},n,{plugins:e}),r=It(t).reduce((function(t,n){var e=n&&sn(n,i);return e&&t.push(e),t}),[]);return zt(t)?r[0]:r}dn.defaultProps=Kt,dn.setDefaultProps=function(t){Object.keys(t).forEach((function(n){Kt[n]=t[n]}))},dn.currentInput=Vt;var ln=Object.assign({},k,{effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow)}}),pn=function(t,n){var e;void 0===n&&(n={});var i,r=t,o=[],u=[],a=n.overrides,c=[],f=!1;function s(){u=r.map((function(t){return Et(t.props.triggerTarget||t.reference)})).reduce((function(t,n){return t.concat(n)}),[])}function d(){o=r.map((function(t){return t.reference}))}function l(t){r.forEach((function(n){t?n.enable():n.disable()}))}function p(t){return r.map((function(n){var e=n.setProps;return n.setProps=function(r){e(r),n.reference===i&&t.setProps(r)},function(){n.setProps=e}}))}function v(t,n){var e=u.indexOf(n);if(n!==i){i=n;var c=(a||[]).concat("content").reduce((function(t,n){return t[n]=r[e].props[n],t}),{});t.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var t;return null==(t=o[e])?void 0:t.getBoundingClientRect()}}))}}l(!1),d(),s();var h,m,b,y={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){i=null},onClickOutside:function(t){t.props.showOnCreate&&!f&&(f=!0,i=null)},onShow:function(t){t.props.showOnCreate&&!f&&(f=!0,v(t,o[0]))},onTrigger:function(t,n){v(t,n.currentTarget)}}}},g=dn(Wt(),Object.assign({},(h=n,m=["overrides"],b=Object.assign({},h),m.forEach((function(t){delete b[t]})),b),{plugins:[y].concat(n.plugins||[]),triggerTarget:u,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat((null==(e=n.popperOptions)?void 0:e.modifiers)||[],[ln])})})),w=g.show;g.show=function(t){if(w(),!i&&null==t)return v(g,o[0]);if(!i||null!=t){if("number"==typeof t)return o[t]&&v(g,o[t]);if(r.indexOf(t)>=0){var n=t.reference;return v(g,n)}return o.indexOf(t)>=0?v(g,t):void 0}},g.showNext=function(){var t=o[0];if(!i)return g.show(0);var n=o.indexOf(i);g.show(o[n+1]||t)},g.showPrevious=function(){var t=o[o.length-1];if(!i)return g.show(t);var n=o.indexOf(i),e=o[n-1]||t;g.show(e)};var x=g.setProps;return g.setProps=function(t){a=t.overrides||a,x(t)},g.setInstances=function(t){l(!0),c.forEach((function(t){return t()})),r=t,l(!1),d(),s(),c=p(g),g.setProps({triggerTarget:u})},c=p(g),g},vn={clientX:0,clientY:0},hn=[];function mn(t){var n=t.clientX,e=t.clientY;vn={clientX:n,clientY:e}}var bn={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,e=Nt(t.props.triggerTarget||n),i=!1,r=!1,o=!0,u=t.props;function a(){return"initial"===t.props.followCursor&&t.state.isVisible}function c(){e.addEventListener("mousemove",d)}function f(){e.removeEventListener("mousemove",d)}function s(){i=!0,t.setProps({getReferenceClientRect:null}),i=!1}function d(e){var i=!e.target||n.contains(e.target),r=t.props.followCursor,o=e.clientX,u=e.clientY,a=n.getBoundingClientRect(),c=o-a.left,f=u-a.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=n.getBoundingClientRect(),e=o,i=u;"initial"===r&&(e=t.left+c,i=t.top+f);var a="horizontal"===r?t.top:i,s="vertical"===r?t.right:e,d="horizontal"===r?t.bottom:i,l="vertical"===r?t.left:e;return{width:s-l,height:d-a,top:a,right:s,bottom:d,left:l}}})}function l(){t.props.followCursor&&(hn.push({instance:t,doc:e}),function(t){t.addEventListener("mousemove",mn)}(e))}function p(){0===(hn=hn.filter((function(n){return n.instance!==t}))).filter((function(t){return t.doc===e})).length&&function(t){t.removeEventListener("mousemove",mn)}(e)}return{onCreate:l,onDestroy:p,onBeforeUpdate:function(){u=t.props},onAfterUpdate:function(n,e){var o=e.followCursor;i||void 0!==o&&u.followCursor!==o&&(p(),o?(l(),!t.state.isMounted||r||a()||c()):(f(),s()))},onMount:function(){t.props.followCursor&&!r&&(o&&(d(vn),o=!1),a()||c())},onTrigger:function(t,n){Lt(n)&&(vn={clientX:n.clientX,clientY:n.clientY}),r="focus"===n.type},onHidden:function(){t.props.followCursor&&(s(),f(),o=!0)}}}};dn.setDefaultProps({render:un});let yn=class extends r{static get styles(){return[i]}createRenderRoot(){return this}constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.enableRecursiveMode=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2}firstUpdated(){this.attachTooltip()}refresh(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const t={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"lite",animation:"fade",interactive:this.interactive,arrow:Ot,duration:o(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:!1,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:u(this.followCursor),plugins:u(this.followCursor)?[bn]:[],onShow:t=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:t,target:t.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:t,target:t.reference}}))},onHide:t=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:t,target:t.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:t,target:t.reference}}))}};if(this.for){if(this.singleton&&!this.for.startsWith("#")&&!document.getElementById(this.for)){const n=Array.from(document.querySelectorAll(`.${this.for}`));if(n.length>0)return this.tooltipInstances=n.map((n=>{const e=dn(n,{...t,content:n.getAttribute("content")||this.content});return e.popper.querySelector(".tippy-box")?.classList.add(this.size),e})),this.singletonInstance=pn(this.tooltipInstances,{delay:[75,0],arrow:Ot,moveTransition:"transform 0.15s ease-out"}),void(this.open&&queueMicrotask((()=>this.singletonInstance?.show())))}const n=document.getElementById(this.for);if(this.singleton&&n){const e=Array.from(n.querySelectorAll("[content]"));if(e.length>0)return this.tooltipInstances=e.map((n=>{const e=dn(n,{...t,content:n.getAttribute("content")||this.content});return e.popper.querySelector(".tippy-box")?.classList.add(this.size),e})),this.singletonInstance=pn(this.tooltipInstances,{delay:[75,0],arrow:Ot,moveTransition:"transform 0.15s ease-out"}),void(this.open&&queueMicrotask((()=>this.singletonInstance?.show())))}if(this.targetEl=document.getElementById(this.for),!this.targetEl)return;this.id||(this.generatedId=`nile-tooltip-${Math.random().toString(36).slice(2,9)}`,this.id=this.generatedId),this.prevDescribedby=this.targetEl.getAttribute("aria-describedby");const e=this.prevDescribedby?`${this.prevDescribedby} ${this.id}`:this.id;return this.targetEl.setAttribute("aria-describedby",e),this.singleInstance=dn(this.targetEl,t),this.size&&this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}if(this.enableRecursiveMode){const n=Array.from(this.querySelectorAll("*"));n.length>0&&(this.tooltipInstances=n.map((n=>{const e=n,i=e.getAttribute("content")||this.content,r=dn(e,{...t,content:i});return r.popper.querySelector(".tippy-box")?.classList.add(this.size),r})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=pn(this.tooltipInstances,{delay:[75,0],arrow:Ot,moveTransition:"transform 0.15s ease-out"})),this.open&&(this.singletonInstance?this.singletonInstance.show():this.tooltipInstances.forEach((t=>t.show()))))}else{const n=this.firstElementChild;if(n){const e=n.getAttribute("content")||this.content,i=dn(n,{...t,content:e});i.popper.querySelector(".tippy-box")?.classList.add(this.size),this.tooltipInstances=[i],this.open&&i.show()}}}destroyTooltips(){if(this.tooltipInstances?.forEach((t=>t.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const t=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((t=>t!==this.id)).join(" ").trim();t?this.targetEl.setAttribute("aria-describedby",t):this.targetEl.removeAttribute("aria-describedby")}}disconnectedCallback(){super.disconnectedCallback(),this.destroyTooltips()}updated(t){super.updated(t),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((n=>t.has(n)))&&this.attachTooltip(),t.has("open")&&(this.open?(this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((t=>t.show()))):(this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((t=>t.hide()))))}};t([n({type:String,attribute:"for"})],yn.prototype,"for",void 0),t([n({type:String,reflect:!0})],yn.prototype,"content",void 0),t([n({type:String,reflect:!0})],yn.prototype,"size",void 0),t([n({type:String,reflect:!0})],yn.prototype,"duration",void 0),t([n({type:Boolean,reflect:!0})],yn.prototype,"interactive",void 0),t([n({type:String})],yn.prototype,"placement",void 0),t([n({type:Boolean})],yn.prototype,"disabled",void 0),t([n({type:Number})],yn.prototype,"distance",void 0),t([n({type:Number})],yn.prototype,"skidding",void 0),t([n({type:Boolean,reflect:!0})],yn.prototype,"open",void 0),t([n({type:String})],yn.prototype,"trigger",void 0),t([n({type:Boolean,reflect:!0})],yn.prototype,"allowHTML",void 0),t([n({type:String,reflect:!0,attribute:!0})],yn.prototype,"followCursor",void 0),t([n({type:String,reflect:!0,attribute:!0})],yn.prototype,"arrow",void 0),t([n({type:Boolean,reflect:!0})],yn.prototype,"singleton",void 0),t([n({type:Boolean,reflect:!0})],yn.prototype,"enableRecursiveMode",void 0),t([n({type:String,reflect:!0})],yn.prototype,"delay",void 0),t([n({type:String,reflect:!0})],yn.prototype,"maxWidth",void 0),t([n({type:Number})],yn.prototype,"zIndex",void 0),t([n({type:[Boolean,String],reflect:!0})],yn.prototype,"hideOnClick",void 0),t([n({type:Boolean,reflect:!0})],yn.prototype,"inertia",void 0),t([n({type:Number})],yn.prototype,"interactiveBorder",void 0),yn=t([e("nile-lite-tooltip")],yn);export{yn as N};
1
+ import{__decorate as t}from"tslib";import{property as n,customElement as e}from"lit/decorators.js";import{s as i}from"./nile-lite-tooltip.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{p as r,a as u}from"./utils.esm.js";import{V as a}from"../utilities/visibility-manager.esm.js";import"lit";var c="top",f="bottom",s="right",d="left",l="auto",p=[c,f,s,d],v="start",h="end",m="viewport",b="popper",y=p.reduce((function(t,n){return t.concat([n+"-"+v,n+"-"+h])}),[]),g=[].concat(p,[l]).reduce((function(t,n){return t.concat([n,n+"-"+v,n+"-"+h])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function O(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function j(t){return t instanceof x(t).Element||t instanceof Element}function T(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function k(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}var C={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},i=n.attributes[t]||{},o=n.elements[t];T(o)&&O(o)&&(Object.assign(o.style,e),Object.keys(i).forEach((function(t){var n=i[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var i=n.elements[t],o=n.attributes[t]||{},r=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});T(i)&&O(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function S(t){return t.split("-")[0]}var B=Math.max,M=Math.min,A=Math.round;function E(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function R(){return!/^((?!chrome|android).)*safari/i.test(E())}function H(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),o=1,r=1;n&&T(t)&&(o=t.offsetWidth>0&&A(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&A(i.height)/t.offsetHeight||1);var u=(j(t)?x(t):window).visualViewport,a=!R()&&e,c=(i.left+(a&&u?u.offsetLeft:0))/o,f=(i.top+(a&&u?u.offsetTop:0))/r,s=i.width/o,d=i.height/r;return{width:s,height:d,top:f,right:c+s,bottom:f+d,left:c,x:c,y:f}}function q(t){var n=H(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function U(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&k(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function W(t){return x(t).getComputedStyle(t)}function z(t){return["table","td","th"].indexOf(O(t))>=0}function L(t){return((j(t)?t.ownerDocument:t.document)||window.document).documentElement}function D(t){return"html"===O(t)?t:t.assignedSlot||t.parentNode||(k(t)?t.host:null)||L(t)}function I(t){return T(t)&&"fixed"!==W(t).position?t.offsetParent:null}function P(t){for(var n=x(t),e=I(t);e&&z(e)&&"static"===W(e).position;)e=I(e);return e&&("html"===O(e)||"body"===O(e)&&"static"===W(e).position)?n:e||function(t){var n=/firefox/i.test(E());if(/Trident/i.test(E())&&T(t)&&"fixed"===W(t).position)return null;var e=D(t);for(k(e)&&(e=e.host);T(e)&&["html","body"].indexOf(O(e))<0;){var i=W(e);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||n&&"filter"===i.willChange||n&&i.filter&&"none"!==i.filter)return e;e=e.parentNode}return null}(t)||n}function N(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function F(t,n,e){return B(t,M(n,e))}function V(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}var X={name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,i=t.name,o=t.options,r=e.elements.arrow,u=e.modifiersData.popperOffsets,a=S(e.placement),l=N(a),v=[d,s].indexOf(a)>=0?"height":"width";if(r&&u){var h=function(t,n){return V("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:$(t,p))}(o.padding,e),m=q(r),b="y"===l?c:d,y="y"===l?f:s,g=e.rects.reference[v]+e.rects.reference[l]-u[l]-e.rects.popper[v],w=u[l]-e.rects.reference[l],O=P(r),x=O?"y"===l?O.clientHeight||0:O.clientWidth||0:0,j=g/2-w/2,T=h[b],k=x-m[v]-h[y],C=x/2-m[v]/2+j,B=F(T,C,k),M=l;e.modifiersData[i]=((n={})[M]=B,n.centerOffset=B-C,n)}},effect:function(t){var n=t.state,e=t.options.element,i=void 0===e?"[data-popper-arrow]":e;null!=i&&("string"!=typeof i||(i=n.elements.popper.querySelector(i)))&&U(n.elements.popper,i)&&(n.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Y(t){return t.split("-")[1]}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(t){var n,e=t.popper,i=t.popperRect,o=t.placement,r=t.variation,u=t.offsets,a=t.position,l=t.gpuAcceleration,p=t.adaptive,v=t.roundOffsets,m=t.isFixed,b=u.x,y=void 0===b?0:b,g=u.y,w=void 0===g?0:g,O="function"==typeof v?v({x:y,y:w}):{x:y,y:w};y=O.x,w=O.y;var j=u.hasOwnProperty("x"),T=u.hasOwnProperty("y"),k=d,C=c,S=window;if(p){var B=P(e),M="clientHeight",E="clientWidth";if(B===x(e)&&"static"!==W(B=L(e)).position&&"absolute"===a&&(M="scrollHeight",E="scrollWidth"),o===c||(o===d||o===s)&&r===h)C=f,w-=(m&&B===S&&S.visualViewport?S.visualViewport.height:B[M])-i.height,w*=l?1:-1;if(o===d||(o===c||o===f)&&r===h)k=s,y-=(m&&B===S&&S.visualViewport?S.visualViewport.width:B[E])-i.width,y*=l?1:-1}var R,H=Object.assign({position:a},p&&J),q=!0===v?function(t,n){var e=t.x,i=t.y,o=n.devicePixelRatio||1;return{x:A(e*o)/o||0,y:A(i*o)/o||0}}({x:y,y:w},x(e)):{x:y,y:w};return y=q.x,w=q.y,l?Object.assign({},H,((R={})[C]=T?"0":"",R[k]=j?"0":"",R.transform=(S.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",R)):Object.assign({},H,((n={})[C]=T?w+"px":"",n[k]=j?y+"px":"",n.transform="",n))}var G={passive:!0};var K={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(t){return t.replace(/left|right|bottom|top/g,(function(t){return K[t]}))}var Z={start:"end",end:"start"};function tt(t){return t.replace(/start|end/g,(function(t){return Z[t]}))}function nt(t){var n=x(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function et(t){return H(L(t)).left+nt(t).scrollLeft}function it(t){var n=W(t),e=n.overflow,i=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+i)}function ot(t){return["html","body","#document"].indexOf(O(t))>=0?t.ownerDocument.body:T(t)&&it(t)?t:ot(D(t))}function rt(t,n){var e;void 0===n&&(n=[]);var i=ot(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=x(i),u=o?[r].concat(r.visualViewport||[],it(i)?i:[]):i,a=n.concat(u);return o?a:a.concat(rt(D(u)))}function ut(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function at(t,n,e){return n===m?ut(function(t,n){var e=x(t),i=L(t),o=e.visualViewport,r=i.clientWidth,u=i.clientHeight,a=0,c=0;if(o){r=o.width,u=o.height;var f=R();(f||!f&&"fixed"===n)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:u,x:a+et(t),y:c}}(t,e)):j(n)?function(t,n){var e=H(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):ut(function(t){var n,e=L(t),i=nt(t),o=null==(n=t.ownerDocument)?void 0:n.body,r=B(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=B(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+et(t),c=-i.scrollTop;return"rtl"===W(o||e).direction&&(a+=B(e.clientWidth,o?o.clientWidth:0)-r),{width:r,height:u,x:a,y:c}}(L(t)))}function ct(t,n,e,i){var o="clippingParents"===n?function(t){var n=rt(D(t)),e=["absolute","fixed"].indexOf(W(t).position)>=0&&T(t)?P(t):t;return j(e)?n.filter((function(t){return j(t)&&U(t,e)&&"body"!==O(t)})):[]}(t):[].concat(n),r=[].concat(o,[e]),u=r[0],a=r.reduce((function(n,e){var o=at(t,e,i);return n.top=B(o.top,n.top),n.right=M(o.right,n.right),n.bottom=M(o.bottom,n.bottom),n.left=B(o.left,n.left),n}),at(t,u,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ft(t){var n,e=t.reference,i=t.element,o=t.placement,r=o?S(o):null,u=o?Y(o):null,a=e.x+e.width/2-i.width/2,l=e.y+e.height/2-i.height/2;switch(r){case c:n={x:a,y:e.y-i.height};break;case f:n={x:a,y:e.y+e.height};break;case s:n={x:e.x+e.width,y:l};break;case d:n={x:e.x-i.width,y:l};break;default:n={x:e.x,y:e.y}}var p=r?N(r):null;if(null!=p){var m="y"===p?"height":"width";switch(u){case v:n[p]=n[p]-(e[m]/2-i[m]/2);break;case h:n[p]=n[p]+(e[m]/2-i[m]/2)}}return n}function st(t,n){void 0===n&&(n={});var e=n,i=e.placement,o=void 0===i?t.placement:i,r=e.strategy,u=void 0===r?t.strategy:r,a=e.boundary,d=void 0===a?"clippingParents":a,l=e.rootBoundary,v=void 0===l?m:l,h=e.elementContext,y=void 0===h?b:h,g=e.altBoundary,w=void 0!==g&&g,O=e.padding,x=void 0===O?0:O,T=V("number"!=typeof x?x:$(x,p)),k=y===b?"reference":b,C=t.rects.popper,S=t.elements[w?k:y],B=ct(j(S)?S:S.contextElement||L(t.elements.popper),d,v,u),M=H(t.elements.reference),A=ft({reference:M,element:C,strategy:"absolute",placement:o}),E=ut(Object.assign({},C,A)),R=y===b?E:M,q={top:B.top-R.top+T.top,bottom:R.bottom-B.bottom+T.bottom,left:B.left-R.left+T.left,right:R.right-B.right+T.right},U=t.modifiersData.offset;if(y===b&&U){var W=U[o];Object.keys(q).forEach((function(t){var n=[s,f].indexOf(t)>=0?1:-1,e=[c,f].indexOf(t)>=0?"y":"x";q[t]+=W[e]*n}))}return q}function dt(t,n){void 0===n&&(n={});var e=n,i=e.placement,o=e.boundary,r=e.rootBoundary,u=e.padding,a=e.flipVariations,c=e.allowedAutoPlacements,f=void 0===c?g:c,s=Y(i),d=s?a?y:y.filter((function(t){return Y(t)===s})):p,l=d.filter((function(t){return f.indexOf(t)>=0}));0===l.length&&(l=d);var v=l.reduce((function(n,e){return n[e]=st(t,{placement:e,boundary:o,rootBoundary:r,padding:u})[S(e)],n}),{});return Object.keys(v).sort((function(t,n){return v[t]-v[n]}))}var lt={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var o=e.mainAxis,r=void 0===o||o,u=e.altAxis,a=void 0===u||u,p=e.fallbackPlacements,h=e.padding,m=e.boundary,b=e.rootBoundary,y=e.altBoundary,g=e.flipVariations,w=void 0===g||g,O=e.allowedAutoPlacements,x=n.options.placement,j=S(x),T=p||(j===x||!w?[Q(x)]:function(t){if(S(t)===l)return[];var n=Q(t);return[tt(t),n,tt(n)]}(x)),k=[x].concat(T).reduce((function(t,e){return t.concat(S(e)===l?dt(n,{placement:e,boundary:m,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:O}):e)}),[]),C=n.rects.reference,B=n.rects.popper,M=new Map,A=!0,E=k[0],R=0;R<k.length;R++){var H=k[R],q=S(H),U=Y(H)===v,W=[c,f].indexOf(q)>=0,z=W?"width":"height",L=st(n,{placement:H,boundary:m,rootBoundary:b,altBoundary:y,padding:h}),D=W?U?s:d:U?f:c;C[z]>B[z]&&(D=Q(D));var I=Q(D),P=[];if(r&&P.push(L[q]<=0),a&&P.push(L[D]<=0,L[I]<=0),P.every((function(t){return t}))){E=H,A=!1;break}M.set(H,P)}if(A)for(var N=function(t){var n=k.find((function(n){var e=M.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return E=n,"break"},F=w?3:1;F>0;F--){if("break"===N(F))break}n.placement!==E&&(n.modifiersData[i]._skip=!0,n.placement=E,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pt(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function vt(t){return[c,s,f,d].some((function(n){return t[n]>=0}))}var ht={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.options,i=t.name,o=e.offset,r=void 0===o?[0,0]:o,u=g.reduce((function(t,e){return t[e]=function(t,n,e){var i=S(t),o=[d,c].indexOf(i)>=0?-1:1,r="function"==typeof e?e(Object.assign({},n,{placement:t})):e,u=r[0],a=r[1];return u=u||0,a=(a||0)*o,[d,s].indexOf(i)>=0?{x:a,y:u}:{x:u,y:a}}(e,n.rects,r),t}),{}),a=u[n.placement],f=a.x,l=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=f,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=u}};var mt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,i=t.name,o=e.mainAxis,r=void 0===o||o,u=e.altAxis,a=void 0!==u&&u,l=e.boundary,p=e.rootBoundary,h=e.altBoundary,m=e.padding,b=e.tether,y=void 0===b||b,g=e.tetherOffset,w=void 0===g?0:g,O=st(n,{boundary:l,rootBoundary:p,padding:m,altBoundary:h}),x=S(n.placement),j=Y(n.placement),T=!j,k=N(x),C="x"===k?"y":"x",A=n.modifiersData.popperOffsets,E=n.rects.reference,R=n.rects.popper,H="function"==typeof w?w(Object.assign({},n.rects,{placement:n.placement})):w,U="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,z={x:0,y:0};if(A){if(r){var L,D="y"===k?c:d,I="y"===k?f:s,V="y"===k?"height":"width",$=A[k],X=$+O[D],J=$-O[I],_=y?-R[V]/2:0,G=j===v?E[V]:R[V],K=j===v?-R[V]:-E[V],Q=n.elements.arrow,Z=y&&Q?q(Q):{width:0,height:0},tt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},nt=tt[D],et=tt[I],it=F(0,E[V],Z[V]),ot=T?E[V]/2-_-it-nt-U.mainAxis:G-it-nt-U.mainAxis,rt=T?-E[V]/2+_+it+et+U.mainAxis:K+it+et+U.mainAxis,ut=n.elements.arrow&&P(n.elements.arrow),at=ut?"y"===k?ut.clientTop||0:ut.clientLeft||0:0,ct=null!=(L=null==W?void 0:W[k])?L:0,ft=$+rt-ct,dt=F(y?M(X,$+ot-ct-at):X,$,y?B(J,ft):J);A[k]=dt,z[k]=dt-$}if(a){var lt,pt="x"===k?c:d,vt="x"===k?f:s,ht=A[C],mt="y"===C?"height":"width",bt=ht+O[pt],yt=ht-O[vt],gt=-1!==[c,d].indexOf(x),wt=null!=(lt=null==W?void 0:W[C])?lt:0,Ot=gt?bt:ht-E[mt]-R[mt]-wt+U.altAxis,xt=gt?ht+E[mt]+R[mt]-wt-U.altAxis:yt,jt=y&&gt?function(t,n,e){var i=F(t,n,e);return i>e?e:i}(Ot,ht,xt):F(y?Ot:bt,ht,y?xt:yt);A[C]=jt,z[C]=jt-ht}n.modifiersData[i]=z}},requiresIfExists:["offset"]};function bt(t,n,e){void 0===e&&(e=!1);var i,o,r=T(n),u=T(n)&&function(t){var n=t.getBoundingClientRect(),e=A(n.width)/t.offsetWidth||1,i=A(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),a=L(n),c=H(t,u,e),f={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!e)&&(("body"!==O(n)||it(a))&&(f=(i=n)!==x(i)&&T(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:nt(i)),T(n)?((s=H(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):a&&(s.x=et(a))),{x:c.left+f.scrollLeft-s.x,y:c.top+f.scrollTop-s.y,width:c.width,height:c.height}}function yt(t){var n=new Map,e=new Set,i=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var i=n.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),i}var gt={placement:"bottom",modifiers:[],strategy:"absolute"};function wt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ot(t){void 0===t&&(t={});var n=t,e=n.defaultModifiers,i=void 0===e?[]:e,o=n.defaultOptions,r=void 0===o?gt:o;return function(t,n,e){void 0===e&&(e=r);var o,u,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},gt,r),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],f=!1,s={state:a,setOptions:function(e){var o="function"==typeof e?e(a.options):e;d(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:j(t)?rt(t):t.contextElement?rt(t.contextElement):[],popper:rt(n)};var u,f,l=function(t){var n=yt(t);return w.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((u=[].concat(i,a.options.modifiers),f=u.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(f).map((function(t){return f[t]}))));return a.orderedModifiers=l.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var n=t.name,e=t.options,i=void 0===e?{}:e,o=t.effect;if("function"==typeof o){var r=o({state:a,name:n,instance:s,options:i}),u=function(){};c.push(r||u)}})),s.update()},forceUpdate:function(){if(!f){var t=a.elements,n=t.reference,e=t.popper;if(wt(n,e)){a.rects={reference:bt(n,P(e),"fixed"===a.options.strategy),popper:q(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,u=o.options,c=void 0===u?{}:u,d=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:d,instance:s})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){s.forceUpdate(),t(a)}))},function(){return u||(u=new Promise((function(t){Promise.resolve().then((function(){u=void 0,t(o())}))}))),u}),destroy:function(){d(),f=!0}};if(!wt(t,n))return s;function d(){c.forEach((function(t){return t()})),c=[]}return s.setOptions(e).then((function(t){!f&&e.onFirstUpdate&&e.onFirstUpdate(t)})),s}}var xt=Ot({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,u=i.resize,a=void 0===u||u,c=x(n.elements.popper),f=[].concat(n.scrollParents.reference,n.scrollParents.popper);return r&&f.forEach((function(t){t.addEventListener("scroll",e.update,G)})),a&&c.addEventListener("resize",e.update,G),function(){r&&f.forEach((function(t){t.removeEventListener("scroll",e.update,G)})),a&&c.removeEventListener("resize",e.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state,e=t.name;n.modifiersData[e]=ft({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,i=e.gpuAcceleration,o=void 0===i||i,r=e.adaptive,u=void 0===r||r,a=e.roundOffsets,c=void 0===a||a,f={placement:S(n.placement),variation:Y(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,_(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:u,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,_(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},C,ht,lt,mt,X,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,i=n.rects.reference,o=n.rects.popper,r=n.modifiersData.preventOverflow,u=st(n,{elementContext:"reference"}),a=st(n,{altBoundary:!0}),c=pt(u,i),f=pt(a,o,r),s=vt(c),d=vt(f);n.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:s,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]}),jt='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Tt="tippy-content",kt="tippy-arrow",Ct="tippy-svg-arrow",St={passive:!0,capture:!0},Bt=function(){return document.body};function Mt(t,n,e){if(Array.isArray(t)){var i=t[n];return null==i?Array.isArray(e)?e[n]:e:i}return t}function At(t,n){var e={}.toString.call(t);return 0===e.indexOf("[object")&&e.indexOf(n+"]")>-1}function Et(t,n){return"function"==typeof t?t.apply(void 0,n):t}function Rt(t,n){return 0===n?t:function(i){clearTimeout(e),e=setTimeout((function(){t(i)}),n)};var e}function Ht(t){return[].concat(t)}function qt(t,n){-1===t.indexOf(n)&&t.push(n)}function Ut(t){return[].slice.call(t)}function Wt(t){return Object.keys(t).reduce((function(n,e){return void 0!==t[e]&&(n[e]=t[e]),n}),{})}function zt(){return document.createElement("div")}function Lt(t){return["Element","Fragment"].some((function(n){return At(t,n)}))}function Dt(t){return At(t,"MouseEvent")}function It(t){return Lt(t)?[t]:function(t){return At(t,"NodeList")}(t)?Ut(t):Array.isArray(t)?t:Ut(document.querySelectorAll(t))}function Pt(t,n){t.forEach((function(t){t&&(t.style.transitionDuration=n+"ms")}))}function Nt(t,n){t.forEach((function(t){t&&t.setAttribute("data-state",n)}))}function Ft(t){var n,e=Ht(t)[0];return null!=e&&null!=(n=e.ownerDocument)&&n.body?e.ownerDocument:document}function Vt(t,n,e){var i=n+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(n){t[i](n,e)}))}function $t(t,n){for(var e=n;e;){var i;if(t.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var Xt={isTouch:!1},Yt=0;function Jt(){Xt.isTouch||(Xt.isTouch=!0,window.performance&&document.addEventListener("mousemove",_t))}function _t(){var t=performance.now();t-Yt<20&&(Xt.isTouch=!1,document.removeEventListener("mousemove",_t)),Yt=t}function Gt(){var t,n=document.activeElement;if((t=n)&&t._tippy&&t._tippy.reference===t){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}var Kt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Qt=Object.assign({appendTo:Bt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Zt=Object.keys(Qt);function tn(t){var n=(t.plugins||[]).reduce((function(n,e){var i,o=e.name,r=e.defaultValue;o&&(n[o]=void 0!==t[o]?t[o]:null!=(i=Qt[o])?i:r);return n}),{});return Object.assign({},t,n)}function nn(t,n){var e=Object.assign({},n,{content:Et(n.content,[t])},n.ignoreAttributes?{}:function(t,n){return(n?Object.keys(tn(Object.assign({},Qt,{plugins:n}))):Zt).reduce((function(n,e){var i=(t.getAttribute("data-tippy-"+e)||"").trim();if(!i)return n;if("content"===e)n[e]=i;else try{n[e]=JSON.parse(i)}catch(t){n[e]=i}return n}),{})}(t,n.plugins));return e.aria=Object.assign({},Qt.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?n.interactive:e.aria.expanded,content:"auto"===e.aria.content?n.interactive?null:"describedby":e.aria.content},e}function en(t,n){t.innerHTML=n}function on(t){var n=zt();return!0===t?n.className=kt:(n.className=Ct,Lt(t)?n.appendChild(t):en(n,t)),n}function rn(t,n){Lt(n.content)?(en(t,""),t.appendChild(n.content)):"function"!=typeof n.content&&(n.allowHTML?en(t,n.content):t.textContent=n.content)}function un(t){var n=t.firstElementChild,e=Ut(n.children);return{box:n,content:e.find((function(t){return t.classList.contains(Tt)})),arrow:e.find((function(t){return t.classList.contains(kt)||t.classList.contains(Ct)})),backdrop:e.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function an(t){var n=zt(),e=zt();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=zt();function o(e,i){var o=un(n),r=o.box,u=o.content,a=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),e.content===i.content&&e.allowHTML===i.allowHTML||rn(u,t.props),i.arrow?a?e.arrow!==i.arrow&&(r.removeChild(a),r.appendChild(on(i.arrow))):r.appendChild(on(i.arrow)):a&&r.removeChild(a)}return i.className=Tt,i.setAttribute("data-state","hidden"),rn(i,t.props),n.appendChild(e),e.appendChild(i),o(t.props,t.props),{popper:n,onUpdate:o}}an.$$tippy=!0;var cn=1,fn=[],sn=[];function dn(t,n){var e,i,o,r,u,a,c,f,s=nn(t,Object.assign({},Qt,tn(Wt(n)))),d=!1,l=!1,p=!1,v=!1,h=[],m=Rt(Y,s.interactiveDebounce),b=cn++,y=(f=s.plugins).filter((function(t,n){return f.indexOf(t)===n})),g={id:b,reference:t,popper:zt(),popperInstance:null,props:s,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(n){if(g.state.isDestroyed)return;H("onBeforeUpdate",[g,n]),$();var e=g.props,i=nn(t,Object.assign({},e,Wt(n),{ignoreAttributes:!0}));g.props=i,V(),e.interactiveDebounce!==i.interactiveDebounce&&(W(),m=Rt(Y,i.interactiveDebounce));e.triggerTarget&&!i.triggerTarget?Ht(e.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");U(),R(),x&&x(e,i);g.popperInstance&&(K(),Z().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));H("onAfterUpdate",[g,n])},setContent:function(t){g.setProps({content:t})},show:function(){var t=g.state.isVisible,n=g.state.isDestroyed,e=!g.state.isEnabled,i=Xt.isTouch&&!g.props.touch,o=Mt(g.props.duration,0,Qt.duration);if(t||n||e||i)return;if(B().hasAttribute("disabled"))return;if(H("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,S()&&(O.style.visibility="visible");R(),I(),g.state.isMounted||(O.style.transition="none");if(S()){var r=A();Pt([r.box,r.content],0)}a=function(){var t;if(g.state.isVisible&&!v){if(v=!0,O.offsetHeight,O.style.transition=g.props.moveTransition,S()&&g.props.animation){var n=A(),e=n.box,i=n.content;Pt([e,i],o),Nt([e,i],"visible")}q(),U(),qt(sn,g),null==(t=g.popperInstance)||t.forceUpdate(),H("onMount",[g]),g.props.animation&&S()&&function(t,n){N(t,n)}(o,(function(){g.state.isShown=!0,H("onShown",[g])}))}},function(){var t,n=g.props.appendTo,e=B();t=g.props.interactive&&n===Bt||"parent"===n?e.parentNode:Et(n,[e]);t.contains(O)||t.appendChild(O);g.state.isMounted=!0,K()}()},hide:function(){var t=!g.state.isVisible,n=g.state.isDestroyed,e=!g.state.isEnabled,i=Mt(g.props.duration,1,Qt.duration);if(t||n||e)return;if(H("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,v=!1,d=!1,S()&&(O.style.visibility="hidden");if(W(),P(),R(!0),S()){var o=A(),r=o.box,u=o.content;g.props.animation&&(Pt([r,u],i),Nt([r,u],"hidden"))}q(),U(),g.props.animation?S()&&function(t,n){N(t,(function(){!g.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&n()}))}(i,g.unmount):g.unmount()},hideWithInteractivity:function(t){M().addEventListener("mousemove",m),qt(fn,m),m(t)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){g.state.isVisible&&g.hide();if(!g.state.isMounted)return;Q(),Z().forEach((function(t){t._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);sn=sn.filter((function(t){return t!==g})),g.state.isMounted=!1,H("onHidden",[g])},destroy:function(){if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),$(),delete t._tippy,g.state.isDestroyed=!0,H("onDestroy",[g])}};if(!s.render)return g;var w=s.render(g),O=w.popper,x=w.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+g.id,g.popper=O,t._tippy=g,O._tippy=g;var j=y.map((function(t){return t.fn(g)})),T=t.hasAttribute("aria-expanded");return V(),U(),R(),H("onCreate",[g]),s.showOnCreate&&tt(),O.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",m)})),g;function k(){var t=g.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===k()[0]}function S(){var t;return!(null==(t=g.props.render)||!t.$$tippy)}function B(){return c||t}function M(){var t=B().parentNode;return t?Ft(t):document}function A(){return un(O)}function E(t){return g.state.isMounted&&!g.state.isVisible||Xt.isTouch||r&&"focus"===r.type?0:Mt(g.props.delay,t?0:1,Qt.delay)}function R(t){void 0===t&&(t=!1),O.style.pointerEvents=g.props.interactive&&!t?"":"none",O.style.zIndex=""+g.props.zIndex}function H(t,n,e){var i;(void 0===e&&(e=!0),j.forEach((function(e){e[t]&&e[t].apply(e,n)})),e)&&(i=g.props)[t].apply(i,n)}function q(){var n=g.props.aria;if(n.content){var e="aria-"+n.content,i=O.id;Ht(g.props.triggerTarget||t).forEach((function(t){var n=t.getAttribute(e);if(g.state.isVisible)t.setAttribute(e,n?n+" "+i:i);else{var o=n&&n.replace(i,"").trim();o?t.setAttribute(e,o):t.removeAttribute(e)}}))}}function U(){!T&&g.props.aria.expanded&&Ht(g.props.triggerTarget||t).forEach((function(t){g.props.interactive?t.setAttribute("aria-expanded",g.state.isVisible&&t===B()?"true":"false"):t.removeAttribute("aria-expanded")}))}function W(){M().removeEventListener("mousemove",m),fn=fn.filter((function(t){return t!==m}))}function z(n){if(!Xt.isTouch||!p&&"mousedown"!==n.type){var e=n.composedPath&&n.composedPath()[0]||n.target;if(!g.props.interactive||!$t(O,e)){if(Ht(g.props.triggerTarget||t).some((function(t){return $t(t,e)}))){if(Xt.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[g,n]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),l=!0,setTimeout((function(){l=!1})),g.state.isMounted||P())}}}function L(){p=!0}function D(){p=!1}function I(){var t=M();t.addEventListener("mousedown",z,!0),t.addEventListener("touchend",z,St),t.addEventListener("touchstart",D,St),t.addEventListener("touchmove",L,St)}function P(){var t=M();t.removeEventListener("mousedown",z,!0),t.removeEventListener("touchend",z,St),t.removeEventListener("touchstart",D,St),t.removeEventListener("touchmove",L,St)}function N(t,n){var e=A().box;function i(t){t.target===e&&(Vt(e,"remove",i),n())}if(0===t)return n();Vt(e,"remove",u),Vt(e,"add",i),u=i}function F(n,e,i){void 0===i&&(i=!1),Ht(g.props.triggerTarget||t).forEach((function(t){t.addEventListener(n,e,i),h.push({node:t,eventType:n,handler:e,options:i})}))}function V(){var t;C()&&(F("touchstart",X,{passive:!0}),F("touchend",J,{passive:!0})),(t=g.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(F(t,X),t){case"mouseenter":F("mouseleave",J);break;case"focus":F(Kt?"focusout":"blur",_);break;case"focusin":F("focusout",_)}}))}function $(){h.forEach((function(t){var n=t.node,e=t.eventType,i=t.handler,o=t.options;n.removeEventListener(e,i,o)})),h=[]}function X(t){var n,e=!1;if(g.state.isEnabled&&!G(t)&&!l){var i="focus"===(null==(n=r)?void 0:n.type);r=t,c=t.currentTarget,U(),!g.state.isVisible&&Dt(t)&&fn.forEach((function(n){return n(t)})),"click"===t.type&&(g.props.trigger.indexOf("mouseenter")<0||d)&&!1!==g.props.hideOnClick&&g.state.isVisible?e=!0:tt(t),"click"===t.type&&(d=!e),e&&!i&&nt(t)}}function Y(t){var n=t.target,e=B().contains(n)||O.contains(n);if("mousemove"!==t.type||!e){var i=Z().concat(O).map((function(t){var n,e=null==(n=t._tippy.popperInstance)?void 0:n.state;return e?{popperRect:t.getBoundingClientRect(),popperState:e,props:s}:null})).filter(Boolean);(function(t,n){var e=n.clientX,i=n.clientY;return t.every((function(t){var n=t.popperRect,o=t.popperState,r=t.props.interactiveBorder,u=o.placement.split("-")[0],a=o.modifiersData.offset;if(!a)return!0;var c="bottom"===u?a.top.y:0,f="top"===u?a.bottom.y:0,s="right"===u?a.left.x:0,d="left"===u?a.right.x:0,l=n.top-i+c>r,p=i-n.bottom-f>r,v=n.left-e+s>r,h=e-n.right-d>r;return l||p||v||h}))})(i,t)&&(W(),nt(t))}}function J(t){G(t)||g.props.trigger.indexOf("click")>=0&&d||(g.props.interactive?g.hideWithInteractivity(t):nt(t))}function _(t){g.props.trigger.indexOf("focusin")<0&&t.target!==B()||g.props.interactive&&t.relatedTarget&&O.contains(t.relatedTarget)||nt(t)}function G(t){return!!Xt.isTouch&&C()!==t.type.indexOf("touch")>=0}function K(){Q();var n=g.props,e=n.popperOptions,i=n.placement,o=n.offset,r=n.getReferenceClientRect,u=n.moveTransition,c=S()?un(O).arrow:null,f=r?{getBoundingClientRect:r,contextElement:r.contextElement||B()}:t,s={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var n=t.state;if(S()){var e=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?e.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+t]?e.setAttribute("data-"+t,""):e.removeAttribute("data-"+t)})),n.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},s];S()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==e?void 0:e.modifiers)||[]),g.popperInstance=xt(f,O,Object.assign({},e,{placement:i,onFirstUpdate:a,modifiers:d}))}function Q(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Z(){return Ut(O.querySelectorAll("[data-tippy-root]"))}function tt(t){g.clearDelayTimeouts(),t&&H("onTrigger",[g,t]),I();var n=E(!0),i=k(),o=i[0],r=i[1];Xt.isTouch&&"hold"===o&&r&&(n=r),n?e=setTimeout((function(){g.show()}),n):g.show()}function nt(t){if(g.clearDelayTimeouts(),H("onUntrigger",[g,t]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&d)){var n=E(!1);n?i=setTimeout((function(){g.state.isVisible&&g.hide()}),n):o=requestAnimationFrame((function(){g.hide()}))}}else P()}}function ln(t,n){void 0===n&&(n={});var e=Qt.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",Jt,St),window.addEventListener("blur",Gt);var i=Object.assign({},n,{plugins:e}),o=It(t).reduce((function(t,n){var e=n&&dn(n,i);return e&&t.push(e),t}),[]);return Lt(t)?o[0]:o}ln.defaultProps=Qt,ln.setDefaultProps=function(t){Object.keys(t).forEach((function(n){Qt[n]=t[n]}))},ln.currentInput=Xt;var pn=Object.assign({},C,{effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow)}}),vn=function(t,n){var e;void 0===n&&(n={});var i,o=t,r=[],u=[],a=n.overrides,c=[],f=!1;function s(){u=o.map((function(t){return Ht(t.props.triggerTarget||t.reference)})).reduce((function(t,n){return t.concat(n)}),[])}function d(){r=o.map((function(t){return t.reference}))}function l(t){o.forEach((function(n){t?n.enable():n.disable()}))}function p(t){return o.map((function(n){var e=n.setProps;return n.setProps=function(o){e(o),n.reference===i&&t.setProps(o)},function(){n.setProps=e}}))}function v(t,n){var e=u.indexOf(n);if(n!==i){i=n;var c=(a||[]).concat("content").reduce((function(t,n){return t[n]=o[e].props[n],t}),{});t.setProps(Object.assign({},c,{getReferenceClientRect:"function"==typeof c.getReferenceClientRect?c.getReferenceClientRect:function(){var t;return null==(t=r[e])?void 0:t.getBoundingClientRect()}}))}}l(!1),d(),s();var h,m,b,y={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){i=null},onClickOutside:function(t){t.props.showOnCreate&&!f&&(f=!0,i=null)},onShow:function(t){t.props.showOnCreate&&!f&&(f=!0,v(t,r[0]))},onTrigger:function(t,n){v(t,n.currentTarget)}}}},g=ln(zt(),Object.assign({},(h=n,m=["overrides"],b=Object.assign({},h),m.forEach((function(t){delete b[t]})),b),{plugins:[y].concat(n.plugins||[]),triggerTarget:u,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat((null==(e=n.popperOptions)?void 0:e.modifiers)||[],[pn])})})),w=g.show;g.show=function(t){if(w(),!i&&null==t)return v(g,r[0]);if(!i||null!=t){if("number"==typeof t)return r[t]&&v(g,r[t]);if(o.indexOf(t)>=0){var n=t.reference;return v(g,n)}return r.indexOf(t)>=0?v(g,t):void 0}},g.showNext=function(){var t=r[0];if(!i)return g.show(0);var n=r.indexOf(i);g.show(r[n+1]||t)},g.showPrevious=function(){var t=r[r.length-1];if(!i)return g.show(t);var n=r.indexOf(i),e=r[n-1]||t;g.show(e)};var O=g.setProps;return g.setProps=function(t){a=t.overrides||a,O(t)},g.setInstances=function(t){l(!0),c.forEach((function(t){return t()})),o=t,l(!1),d(),s(),c=p(g),g.setProps({triggerTarget:u})},c=p(g),g},hn={clientX:0,clientY:0},mn=[];function bn(t){var n=t.clientX,e=t.clientY;hn={clientX:n,clientY:e}}var yn={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,e=Ft(t.props.triggerTarget||n),i=!1,o=!1,r=!0,u=t.props;function a(){return"initial"===t.props.followCursor&&t.state.isVisible}function c(){e.addEventListener("mousemove",d)}function f(){e.removeEventListener("mousemove",d)}function s(){i=!0,t.setProps({getReferenceClientRect:null}),i=!1}function d(e){var i=!e.target||n.contains(e.target),o=t.props.followCursor,r=e.clientX,u=e.clientY,a=n.getBoundingClientRect(),c=r-a.left,f=u-a.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=n.getBoundingClientRect(),e=r,i=u;"initial"===o&&(e=t.left+c,i=t.top+f);var a="horizontal"===o?t.top:i,s="vertical"===o?t.right:e,d="horizontal"===o?t.bottom:i,l="vertical"===o?t.left:e;return{width:s-l,height:d-a,top:a,right:s,bottom:d,left:l}}})}function l(){t.props.followCursor&&(mn.push({instance:t,doc:e}),function(t){t.addEventListener("mousemove",bn)}(e))}function p(){0===(mn=mn.filter((function(n){return n.instance!==t}))).filter((function(t){return t.doc===e})).length&&function(t){t.removeEventListener("mousemove",bn)}(e)}return{onCreate:l,onDestroy:p,onBeforeUpdate:function(){u=t.props},onAfterUpdate:function(n,e){var r=e.followCursor;i||void 0!==r&&u.followCursor!==r&&(p(),r?(l(),!t.state.isMounted||o||a()||c()):(f(),s()))},onMount:function(){t.props.followCursor&&!o&&(r&&(d(hn),r=!1),a()||c())},onTrigger:function(t,n){Dt(n)&&(hn={clientX:n.clientX,clientY:n.clientY}),o="focus"===n.type},onHidden:function(){t.props.followCursor&&(s(),f(),r=!0)}}}};ln.setDefaultProps({render:an});let gn=class extends o{static get styles(){return[i]}createRenderRoot(){return this}constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.enableRecursiveMode=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2,this.enableVisibilityEffect=!1,this.enableTabClose=!1}firstUpdated(){this.attachTooltip();const t=this.for&&document.getElementById(this.for)||this.firstElementChild;this.visibilityManager=new a({host:this,target:t,enableVisibilityEffect:this.enableVisibilityEffect,enableTabClose:this.enableTabClose,isOpen:()=>this.open,onAnchorOutOfView:()=>{this.open=!1,this.hideAllTooltips(),this.emit("nile-visibility-change",{visible:!1,reason:"anchor-out-of-view"})},onDocumentHidden:()=>{this.open=!1,this.hideAllTooltips(),this.emit("nile-visibility-change",{visible:!1,reason:"document-hidden"})},emit:(t,n)=>this.emit(`nile-${t}`,n)})}refresh(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const t={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"lite",animation:"fade",interactive:this.interactive,arrow:jt,duration:r(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:!1,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:u(this.followCursor),plugins:u(this.followCursor)?[yn]:[],onShow:t=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:t,target:t.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:t,target:t.reference}}))},onHide:t=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:t,target:t.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:t,target:t.reference}}))}};if(this.for){if(this.singleton&&!this.for.startsWith("#")&&!document.getElementById(this.for)){const n=Array.from(document.querySelectorAll(`.${this.for}`));if(n.length>0)return this.tooltipInstances=n.map((n=>{const e=ln(n,{...t,content:n.getAttribute("content")||this.content});return e.popper.querySelector(".tippy-box")?.classList.add(this.size),e})),this.singletonInstance=vn(this.tooltipInstances,{delay:[75,0],arrow:jt,moveTransition:"transform 0.15s ease-out"}),void(this.open&&queueMicrotask((()=>this.singletonInstance?.show())))}const n=document.getElementById(this.for);if(this.singleton&&n){const e=Array.from(n.querySelectorAll("[content]"));if(e.length>0)return this.tooltipInstances=e.map((n=>{const e=ln(n,{...t,content:n.getAttribute("content")||this.content});return e.popper.querySelector(".tippy-box")?.classList.add(this.size),e})),this.singletonInstance=vn(this.tooltipInstances,{delay:[75,0],arrow:jt,moveTransition:"transform 0.15s ease-out"}),void(this.open&&queueMicrotask((()=>this.singletonInstance?.show())))}if(this.targetEl=document.getElementById(this.for),!this.targetEl)return;this.id||(this.generatedId=`nile-tooltip-${Math.random().toString(36).slice(2,9)}`,this.id=this.generatedId),this.prevDescribedby=this.targetEl.getAttribute("aria-describedby");const e=this.prevDescribedby?`${this.prevDescribedby} ${this.id}`:this.id;return this.targetEl.setAttribute("aria-describedby",e),this.singleInstance=ln(this.targetEl,t),this.size&&this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}if(this.enableRecursiveMode){const n=Array.from(this.querySelectorAll("*"));n.length>0&&(this.tooltipInstances=n.map((n=>{const e=n,i=e.getAttribute("content")||this.content,o=ln(e,{...t,content:i});return o.popper.querySelector(".tippy-box")?.classList.add(this.size),o})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=vn(this.tooltipInstances,{delay:[75,0],arrow:jt,moveTransition:"transform 0.15s ease-out"})),this.open&&(this.singletonInstance?this.singletonInstance.show():this.tooltipInstances.forEach((t=>t.show()))))}else{const n=this.firstElementChild;if(n){const e=n.getAttribute("content")||this.content,i=ln(n,{...t,content:e});i.popper.querySelector(".tippy-box")?.classList.add(this.size),this.tooltipInstances=[i],this.open&&i.show()}}}destroyTooltips(){if(this.tooltipInstances?.forEach((t=>t.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const t=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((t=>t!==this.id)).join(" ").trim();t?this.targetEl.setAttribute("aria-describedby",t):this.targetEl.removeAttribute("aria-describedby")}}hideAllTooltips(){this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((t=>t.hide()))}disconnectedCallback(){super.disconnectedCallback(),this.visibilityManager?.cleanup(),this.destroyTooltips()}updated(t){super.updated(t),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((n=>t.has(n)))&&this.attachTooltip(),t.has("open")&&(this.open?(this.visibilityManager?.setup(),this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((t=>t.show()))):(this.visibilityManager?.cleanup(),this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((t=>t.hide()))))}};t([n({type:String,attribute:"for"})],gn.prototype,"for",void 0),t([n({type:String,reflect:!0})],gn.prototype,"content",void 0),t([n({type:String,reflect:!0})],gn.prototype,"size",void 0),t([n({type:String,reflect:!0})],gn.prototype,"duration",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"interactive",void 0),t([n({type:String})],gn.prototype,"placement",void 0),t([n({type:Boolean})],gn.prototype,"disabled",void 0),t([n({type:Number})],gn.prototype,"distance",void 0),t([n({type:Number})],gn.prototype,"skidding",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"open",void 0),t([n({type:String})],gn.prototype,"trigger",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"allowHTML",void 0),t([n({type:String,reflect:!0,attribute:!0})],gn.prototype,"followCursor",void 0),t([n({type:String,reflect:!0,attribute:!0})],gn.prototype,"arrow",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"singleton",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"enableRecursiveMode",void 0),t([n({type:String,reflect:!0})],gn.prototype,"delay",void 0),t([n({type:String,reflect:!0})],gn.prototype,"maxWidth",void 0),t([n({type:Number})],gn.prototype,"zIndex",void 0),t([n({type:[Boolean,String],reflect:!0})],gn.prototype,"hideOnClick",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"inertia",void 0),t([n({type:Number})],gn.prototype,"interactiveBorder",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"enableVisibilityEffect",void 0),t([n({type:Boolean,reflect:!0})],gn.prototype,"enableTabClose",void 0),gn=t([e("nile-lite-tooltip")],gn);export{gn as N};
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-loader.cjs.js","tslib","lit/decorators.js","./nile-loader.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var i,a,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){i=_fixture005CjsJs.f;a=_fixture005CjsJs.a;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLoaderCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLoaderCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileLoader",function(){it('should default to size "lg" if no size is provided',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context2.sent;a(l.size).to.equal("lg");case 4:case"end":return _context2.stop();}},_callee);}))),it("should apply size classes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return["sm","md","lg"].forEach(/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(l){var r;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-loader size=\"","\"></nile-loader>"])),l));case 2:r=_context3.sent.shadowRoot.querySelector(".loader__container");a(r.classList.contains("loader__container--".concat(l))).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x){return _ref3.apply(this,arguments);};}());case 2:case"end":return _context4.stop();}},_callee3);}))),it('should have a default variant of "v1"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context5.sent.shadowRoot.querySelector(".nile-loader__v1");a(l).to.exist;case 4:case"end":return _context5.stop();}},_callee4);}))),it("should render the correct variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-loader variant=\"v2\"></nile-loader>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".nile-loader__v2");a(l).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it("should display label if provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-loader label=\"Loading...\"></nile-loader>"]))));case 2:l=_context7.sent.shadowRoot.querySelector(".loader__label");a(l).to.exist,a(l===null||l===void 0?void 0:l.textContent).to.equal("Loading...");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should handle margin property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var l;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-loader margin=\"10px\"></nile-loader>"]))));case 2:l=_context8.sent.shadowRoot.querySelector(".nile-loader__v1");a(l===null||l===void 0?void 0:l.getAttribute("style")).to.contain("margin: 10px");case 4:case"end":return _context8.stop();}},_callee7);}))),it("should render the v3 variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-loader variant=\"v3\"></nile-loader>"]))));case 2:l=_context9.sent.shadowRoot.querySelector(".nile-loader__v3");a(l).to.exist;case 4:case"end":return _context9.stop();}},_callee8);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-loader.cjs.js","tslib","lit/decorators.js","./nile-loader.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var i,a,e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture005CjsJs){i=_fixture005CjsJs.f;a=_fixture005CjsJs.a;},function(_litStaticHtmlJs){},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){},function(_nileLoaderCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileLoaderCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileLoader",function(){it('should default to size "lg" if no size is provided',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(e(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context2.sent;a(l.size).to.equal("lg");case 4:case"end":return _context2.stop();}},_callee);}))),it("should apply size classes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return["sm","md","lg"].forEach(/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(l){var r;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-loader size=\"","\"></nile-loader>"])),l));case 2:r=_context3.sent.shadowRoot.querySelector(".loader__container");a(r.classList.contains("loader__container--".concat(l))).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}));return function(_x){return _ref3.apply(this,arguments);};}());case 2:case"end":return _context4.stop();}},_callee3);}))),it('should have a default variant of "v1"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-loader></nile-loader>"]))));case 2:l=_context5.sent.shadowRoot.querySelector(".nile-loader__v1");a(l).to.exist;case 4:case"end":return _context5.stop();}},_callee4);}))),it("should render the correct variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-loader variant=\"v2\"></nile-loader>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".nile-loader__v2");a(l).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it("should display label if provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-loader label=\"Loading...\"></nile-loader>"]))));case 2:l=_context7.sent.shadowRoot.querySelector(".loader__label");a(l).to.exist,a(l===null||l===void 0?void 0:l.textContent).to.equal("Loading...");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should handle margin property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var l;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-loader margin=\"10px\"></nile-loader>"]))));case 2:l=_context8.sent.shadowRoot.querySelector(".nile-loader__v1");a(l===null||l===void 0?void 0:l.getAttribute("style")).to.contain("margin: 10px");case 4:case"end":return _context8.stop();}},_callee7);}))),it("should render the v3 variant",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-loader variant=\"v3\"></nile-loader>"]))));case 2:l=_context9.sent.shadowRoot.querySelector(".nile-loader__v3");a(l).to.exist;case 4:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-loader.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as e,a as i}from"../fixture-9871e8a9.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as a}from"lit";import"lit/directives/unsafe-html.js";import"./nile-loader.esm.js";import"tslib";import"lit/decorators.js";import"./nile-loader.css.esm.js";import"lit/directives/class-map.js";describe("NileLoader",(()=>{it('should default to size "lg" if no size is provided',(async()=>{const l=await e(a`<nile-loader></nile-loader>`);i(l.size).to.equal("lg")})),it("should apply size classes correctly",(async()=>{await["sm","md","lg"].forEach((async l=>{const r=(await e(a`<nile-loader size="${l}"></nile-loader>`)).shadowRoot.querySelector(".loader__container");i(r.classList.contains(`loader__container--${l}`)).to.be.true}))})),it('should have a default variant of "v1"',(async()=>{const l=(await e(a`<nile-loader></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l).to.exist})),it("should render the correct variant",(async()=>{const l=(await e(a`<nile-loader variant="v2"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v2");i(l).to.exist})),it("should display label if provided",(async()=>{const l=(await e(a`<nile-loader label="Loading..."></nile-loader>`)).shadowRoot.querySelector(".loader__label");i(l).to.exist,i(l?.textContent).to.equal("Loading...")})),it("should handle margin property",(async()=>{const l=(await e(a`<nile-loader margin="10px"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l?.getAttribute("style")).to.contain("margin: 10px")})),it("should render the v3 variant",(async()=>{const l=(await e(a`<nile-loader variant="v3"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v3");i(l).to.exist}))}));
1
+ import{f as e,a as i}from"../fixture-985bba12.esm.js";import"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import{html as a}from"lit";import"lit/directives/unsafe-html.js";import"./nile-loader.esm.js";import"tslib";import"lit/decorators.js";import"./nile-loader.css.esm.js";import"lit/directives/class-map.js";describe("NileLoader",(()=>{it('should default to size "lg" if no size is provided',(async()=>{const l=await e(a`<nile-loader></nile-loader>`);i(l.size).to.equal("lg")})),it("should apply size classes correctly",(async()=>{await["sm","md","lg"].forEach((async l=>{const r=(await e(a`<nile-loader size="${l}"></nile-loader>`)).shadowRoot.querySelector(".loader__container");i(r.classList.contains(`loader__container--${l}`)).to.be.true}))})),it('should have a default variant of "v1"',(async()=>{const l=(await e(a`<nile-loader></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l).to.exist})),it("should render the correct variant",(async()=>{const l=(await e(a`<nile-loader variant="v2"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v2");i(l).to.exist})),it("should display label if provided",(async()=>{const l=(await e(a`<nile-loader label="Loading..."></nile-loader>`)).shadowRoot.querySelector(".loader__label");i(l).to.exist,i(l?.textContent).to.equal("Loading...")})),it("should handle margin property",(async()=>{const l=(await e(a`<nile-loader margin="10px"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v1");i(l?.getAttribute("style")).to.contain("margin: 10px")})),it("should render the v3 variant",(async()=>{const l=(await e(a`<nile-loader variant="v3"></nile-loader>`)).shadowRoot.querySelector(".nile-loader__v3");i(l).to.exist}))}));
@@ -1,2 +1,2 @@
1
- System.register(["./nile-popover.cjs.js","tslib","../css-tag-bb10c0fa.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","lit","../internal/nile-element.cjs.js","../internal/watch.cjs.js","./portal-manager.cjs.js","../floating-ui.dom-007bbe96.cjs.js","./portal-utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nilePopoverCjsJs){_export("NilePopover",_nilePopoverCjsJs.N);},function(_tslib){},function(_cssTag004CjsJs){},function(_litHtml003CjsJs){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){},function(_portalManagerCjsJs){},function(_floatingUiDom001CjsJs){},function(_portalUtilsCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-popover.cjs.js","tslib","../css-tag-bb10c0fa.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","lit","../internal/nile-element.cjs.js","../internal/watch.cjs.js","./portal-manager.cjs.js","../floating-ui.dom-007bbe96.cjs.js","./portal-utils.cjs.js","../utilities/visibility-manager.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nilePopoverCjsJs){_export("NilePopover",_nilePopoverCjsJs.N);},function(_tslib){},function(_cssTag004CjsJs){},function(_litHtml003CjsJs){},function(_litDecoratorsJs){},function(_nilePopoverCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){},function(_portalManagerCjsJs){},function(_floatingUiDom001CjsJs){},function(_portalUtilsCjsJs){},function(_utilitiesVisibilityManagerCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NilePopover}from"./nile-popover.esm.js";import"tslib";import"../css-tag-dc564feb.esm.js";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./nile-popover.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";import"./portal-manager.esm.js";import"../floating-ui.dom-cc9126da.esm.js";import"./portal-utils.esm.js";
1
+ export{N as NilePopover}from"./nile-popover.esm.js";import"tslib";import"../css-tag-dc564feb.esm.js";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./nile-popover.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";import"./portal-manager.esm.js";import"../floating-ui.dom-cc9126da.esm.js";import"./portal-utils.esm.js";import"../utilities/visibility-manager.esm.js";
@@ -1,10 +1,10 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","../css-tag-bb10c0fa.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","./portal-manager.cjs.js","lit","../floating-ui.dom-007bbe96.cjs.js","./portal-utils.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,h,o,r,n,a,l,c,p,d,_Symbol$metadata,_w$litPropertyMetadat,_w$reactiveElementVer,_globalThis$litElemen,_globalThis$litElemen2,_templateObject,_templateObject2,_templateObject3,u,m,f,v,b,y,w,g,j,P,$,C,S,_,k,E,O,A;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n){function n(){return _n.apply(this,arguments);}n.toString=function(){return _n.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_cssTag004CjsJs){i=_cssTag004CjsJs.c;s=_cssTag004CjsJs.S;},function(_litHtml003CjsJs){e=_litHtml003CjsJs.B;h=_litHtml003CjsJs.T;o=_litHtml003CjsJs.x;},function(_litDecoratorsJs){r=_litDecoratorsJs.property;n=_litDecoratorsJs.state;a=_litDecoratorsJs.customElement;},function(_nilePopoverCssCjsJs){l=_nilePopoverCssCjsJs.s;},function(_internalNileElementCjsJs){c=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){p=_internalWatchCjsJs.w;},function(_portalManagerCjsJs){d=_portalManagerCjsJs.P;},function(_lit){},function(_floatingUiDom001CjsJs){},function(_portalUtilsCjsJs){}],execute:function execute(){/**
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","../css-tag-bb10c0fa.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./nile-popover.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","./portal-manager.cjs.js","../utilities/visibility-manager.cjs.js","lit","../floating-ui.dom-007bbe96.cjs.js","./portal-utils.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,h,o,r,n,a,l,c,p,d,u,_Symbol$metadata,_g$litPropertyMetadat,_g$reactiveElementVer,_globalThis$litElemen,_globalThis$litElemen2,_templateObject,_templateObject2,_templateObject3,f,m,b,v,y,w,g,j,P,$,C,S,_,k,O,E,A,B;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n){function n(){return _n.apply(this,arguments);}n.toString=function(){return _n.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_cssTag004CjsJs){i=_cssTag004CjsJs.c;s=_cssTag004CjsJs.S;},function(_litHtml003CjsJs){e=_litHtml003CjsJs.B;h=_litHtml003CjsJs.T;o=_litHtml003CjsJs.x;},function(_litDecoratorsJs){r=_litDecoratorsJs.property;n=_litDecoratorsJs.state;a=_litDecoratorsJs.customElement;},function(_nilePopoverCssCjsJs){l=_nilePopoverCssCjsJs.s;},function(_internalNileElementCjsJs){c=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){p=_internalWatchCjsJs.w;},function(_portalManagerCjsJs){d=_portalManagerCjsJs.P;},function(_utilitiesVisibilityManagerCjsJs){u=_utilitiesVisibilityManagerCjsJs.V;},function(_lit){},function(_floatingUiDom001CjsJs){},function(_portalUtilsCjsJs){}],execute:function execute(){/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */u=Object.is,m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,y=Object.getPrototypeOf,w=globalThis,g=w.trustedTypes,j=g?g.emptyScript:"",P=w.reactiveElementPolyfillSupport,$=function $(t,i){return t;},C={toAttribute:function toAttribute(t,i){switch(i){case Boolean:t=t?j:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t;},fromAttribute:function fromAttribute(t,i){var s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s;}},S=function S(t,i){return!u(t,i);},_={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:S};(_Symbol$metadata=Symbol.metadata)!==null&&_Symbol$metadata!==void 0?_Symbol$metadata:Symbol.metadata=Symbol("metadata"),(_w$litPropertyMetadat=w.litPropertyMetadata)!==null&&_w$litPropertyMetadat!==void 0?_w$litPropertyMetadat:w.litPropertyMetadata=new WeakMap();k=/*#__PURE__*/function(_HTMLElement){function k(){var _this;_classCallCheck(this,k);_this=_callSuper(this,k),_this._$Ep=void 0,_this.isUpdatePending=!1,_this.hasUpdated=!1,_this._$Em=null,_this._$Ev();return _this;}_inherits(k,_HTMLElement);return _createClass(k,[{key:"_$Ev",value:function _$Ev(){var _this2=this,_this$constructor$l;this._$ES=new Promise(function(t){return _this2.enableUpdating=t;}),this._$AL=new Map(),this._$E_(),this.requestUpdate(),(_this$constructor$l=this.constructor.l)===null||_this$constructor$l===void 0?void 0:_this$constructor$l.forEach(function(t){return t(_this2);});}},{key:"addController",value:function addController(t){var _this$_$EO,_t$hostConnected;((_this$_$EO=this._$EO)!==null&&_this$_$EO!==void 0?_this$_$EO:this._$EO=new Set()).add(t),void 0!==this.renderRoot&&this.isConnected&&((_t$hostConnected=t.hostConnected)===null||_t$hostConnected===void 0?void 0:_t$hostConnected.call(t));}},{key:"removeController",value:function removeController(t){var _this$_$EO2;(_this$_$EO2=this._$EO)===null||_this$_$EO2===void 0||_this$_$EO2["delete"](t);}},{key:"_$E_",value:function _$E_(){var t=new Map(),i=this.constructor.elementProperties;var _iterator=_createForOfIteratorHelper(i.keys()),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _s=_step.value;this.hasOwnProperty(_s)&&(t.set(_s,this[_s]),delete this[_s]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}t.size>0&&(this._$Ep=t);}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$shadowRoot;var t=(_this$shadowRoot=this.shadowRoot)!==null&&_this$shadowRoot!==void 0?_this$shadowRoot:this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t;}},{key:"connectedCallback",value:function connectedCallback(){var _this$renderRoot,_this$_$EO3;(_this$renderRoot=this.renderRoot)!==null&&_this$renderRoot!==void 0?_this$renderRoot:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(_this$_$EO3=this._$EO)===null||_this$_$EO3===void 0?void 0:_this$_$EO3.forEach(function(t){var _t$hostConnected2;return(_t$hostConnected2=t.hostConnected)===null||_t$hostConnected2===void 0?void 0:_t$hostConnected2.call(t);});}},{key:"enableUpdating",value:function enableUpdating(t){}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$EO4;(_this$_$EO4=this._$EO)===null||_this$_$EO4===void 0||_this$_$EO4.forEach(function(t){var _t$hostDisconnected;return(_t$hostDisconnected=t.hostDisconnected)===null||_t$hostDisconnected===void 0?void 0:_t$hostDisconnected.call(t);});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(t,i,s){this._$AK(t,s);}},{key:"_$EC",value:function _$EC(t,i){var s=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,s);if(void 0!==e&&!0===s.reflect){var _s$converter;var _h=(void 0!==((_s$converter=s.converter)===null||_s$converter===void 0?void 0:_s$converter.toAttribute)?s.converter:C).toAttribute(i,s.type);this._$Em=t,null==_h?this.removeAttribute(e):this.setAttribute(e,_h),this._$Em=null;}}},{key:"_$AK",value:function _$AK(t,i){var s=this.constructor,e=s._$Eh.get(t);if(void 0!==e&&this._$Em!==e){var _t$converter;var _t=s.getPropertyOptions(e),_h2="function"==typeof _t.converter?{fromAttribute:_t.converter}:void 0!==((_t$converter=_t.converter)===null||_t$converter===void 0?void 0:_t$converter.fromAttribute)?_t.converter:C;this._$Em=e,this[e]=_h2.fromAttribute(i,_t.type),this._$Em=null;}}},{key:"requestUpdate",value:function requestUpdate(t,i,s){if(void 0!==t){var _s$hasChanged;if(s!==null&&s!==void 0?s:s=this.constructor.getPropertyOptions(t),!((_s$hasChanged=s.hasChanged)!==null&&_s$hasChanged!==void 0?_s$hasChanged:S)(this[t],i))return;this.P(t,i,s);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}},{key:"P",value:function P(t,i,s){var _this$_$Ej;this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$Em!==t&&((_this$_$Ej=this._$Ej)!==null&&_this$_$Ej!==void 0?_this$_$Ej:this._$Ej=new Set()).add(t);}},{key:"_$ET",value:function(){var _$ET2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var t;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:this.isUpdatePending=!0;_context.prev=1;_context.next=4;return this._$ES;case 4:_context.next=9;break;case 6:_context.prev=6;_context.t0=_context["catch"](1);Promise.reject(_context.t0);case 9:t=this.scheduleUpdate();_context.t1=null!=t;if(!_context.t1){_context.next=14;break;}_context.next=14;return t;case 14:return _context.abrupt("return",!this.isUpdatePending);case 15:case"end":return _context.stop();}},_callee,this,[[1,6]]);}));function _$ET(){return _$ET2.apply(this,arguments);}return _$ET;}()},{key:"scheduleUpdate",value:function scheduleUpdate(){return this.performUpdate();}},{key:"performUpdate",value:function performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var _this$renderRoot2;if((_this$renderRoot2=this.renderRoot)!==null&&_this$renderRoot2!==void 0?_this$renderRoot2:this.renderRoot=this.createRenderRoot(),this._$Ep){var _iterator2=_createForOfIteratorHelper(this._$Ep),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),_t2=_step2$value[0],_i=_step2$value[1];this[_t2]=_i;}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}this._$Ep=void 0;}var _t3=this.constructor.elementProperties;if(_t3.size>0){var _iterator3=_createForOfIteratorHelper(_t3),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _step3$value=_slicedToArray(_step3.value,2),_i2=_step3$value[0],_s2=_step3$value[1];!0!==_s2.wrapped||this._$AL.has(_i2)||void 0===this[_i2]||this.P(_i2,this[_i2],_s2);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}var t=!1;var i=this._$AL;try{var _this$_$EO5;t=this.shouldUpdate(i),t?(this.willUpdate(i),(_this$_$EO5=this._$EO)!==null&&_this$_$EO5!==void 0&&_this$_$EO5.forEach(function(t){var _t$hostUpdate;return(_t$hostUpdate=t.hostUpdate)===null||_t$hostUpdate===void 0?void 0:_t$hostUpdate.call(t);}),this.update(i)):this._$EU();}catch(i){throw t=!1,this._$EU(),i;}t&&this._$AE(i);}},{key:"willUpdate",value:function willUpdate(t){}},{key:"_$AE",value:function _$AE(t){var _this$_$EO6;(_this$_$EO6=this._$EO)!==null&&_this$_$EO6!==void 0&&_this$_$EO6.forEach(function(t){var _t$hostUpdated;return(_t$hostUpdated=t.hostUpdated)===null||_t$hostUpdated===void 0?void 0:_t$hostUpdated.call(t);}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}},{key:"_$EU",value:function _$EU(){this._$AL=new Map(),this.isUpdatePending=!1;}},{key:"updateComplete",get:function get(){return this.getUpdateComplete();}},{key:"getUpdateComplete",value:function getUpdateComplete(){return this._$ES;}},{key:"shouldUpdate",value:function shouldUpdate(t){return!0;}},{key:"update",value:function update(t){var _this3=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return _this3._$EC(t,_this3[t]);})),this._$EU();}},{key:"updated",value:function updated(t){}},{key:"firstUpdated",value:function firstUpdated(t){}}],[{key:"addInitializer",value:function addInitializer(t){var _this$l;this._$Ei(),((_this$l=this.l)!==null&&_this$l!==void 0?_this$l:this.l=[]).push(t);}},{key:"observedAttributes",get:function get(){return this.finalize(),this._$Eh&&_toConsumableArray(this._$Eh.keys());}},{key:"createProperty",value:function createProperty(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:_;if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){var _s3=Symbol(),_e=this.getPropertyDescriptor(t,_s3,i);void 0!==_e&&m(this.prototype,t,_e);}}},{key:"getPropertyDescriptor",value:function getPropertyDescriptor(t,i,s){var _f;var _ref=(_f=f(this.prototype,t))!==null&&_f!==void 0?_f:{get:function get(){return this[i];},set:function set(t){this[i]=t;}},e=_ref.get,h=_ref.set;return{get:function get(){return e===null||e===void 0?void 0:e.call(this);},set:function set(i){var o=e===null||e===void 0?void 0:e.call(this);h.call(this,i),this.requestUpdate(t,o,s);},configurable:!0,enumerable:!0};}},{key:"getPropertyOptions",value:function getPropertyOptions(t){var _this$elementProperti;return(_this$elementProperti=this.elementProperties.get(t))!==null&&_this$elementProperti!==void 0?_this$elementProperti:_;}},{key:"_$Ei",value:function _$Ei(){if(this.hasOwnProperty($("elementProperties")))return;var t=y(this);t.finalize(),void 0!==t.l&&(this.l=_toConsumableArray(t.l)),this.elementProperties=new Map(t.elementProperties);}},{key:"finalize",value:function finalize(){if(this.hasOwnProperty($("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($("properties"))){var _t4=this.properties,_i3=[].concat(_toConsumableArray(v(_t4)),_toConsumableArray(b(_t4)));var _iterator4=_createForOfIteratorHelper(_i3),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _s4=_step4.value;this.createProperty(_s4,_t4[_s4]);}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}var t=this[Symbol.metadata];if(null!==t){var _i4=litPropertyMetadata.get(t);if(void 0!==_i4){var _iterator5=_createForOfIteratorHelper(_i4),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),_t5=_step5$value[0],_s5=_step5$value[1];this.elementProperties.set(_t5,_s5);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}}this._$Eh=new Map();var _iterator6=_createForOfIteratorHelper(this.elementProperties),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _step6$value=_slicedToArray(_step6.value,2),_t6=_step6$value[0],_i5=_step6$value[1];var _s6=this._$Eu(_t6,_i5);void 0!==_s6&&this._$Eh.set(_s6,_t6);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}this.elementStyles=this.finalizeStyles(this.styles);}},{key:"finalizeStyles",value:function finalizeStyles(t){var s=[];if(Array.isArray(t)){var _e2=new Set(t.flat(1/0).reverse());var _iterator7=_createForOfIteratorHelper(_e2),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _t7=_step7.value;s.unshift(i(_t7));}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}else void 0!==t&&s.push(i(t));return s;}},{key:"_$Eu",value:function _$Eu(t,i){var s=i.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[$("elementProperties")]=new Map(),k[$("finalized")]=new Map(),P!==null&&P!==void 0&&P({ReactiveElement:k}),((_w$reactiveElementVer=w.reactiveElementVersions)!==null&&_w$reactiveElementVer!==void 0?_w$reactiveElementVer:w.reactiveElementVersions=[]).push("2.0.4");/**
5
+ */f=Object.is,m=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,w=Object.getPrototypeOf,g=globalThis,j=g.trustedTypes,P=j?j.emptyScript:"",$=g.reactiveElementPolyfillSupport,C=function C(t,i){return t;},S={toAttribute:function toAttribute(t,i){switch(i){case Boolean:t=t?P:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t;},fromAttribute:function fromAttribute(t,i){var s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t);}catch(t){s=null;}}return s;}},_=function _(t,i){return!f(t,i);},k={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:_};(_Symbol$metadata=Symbol.metadata)!==null&&_Symbol$metadata!==void 0?_Symbol$metadata:Symbol.metadata=Symbol("metadata"),(_g$litPropertyMetadat=g.litPropertyMetadata)!==null&&_g$litPropertyMetadat!==void 0?_g$litPropertyMetadat:g.litPropertyMetadata=new WeakMap();O=/*#__PURE__*/function(_HTMLElement){function O(){var _this;_classCallCheck(this,O);_this=_callSuper(this,O),_this._$Ep=void 0,_this.isUpdatePending=!1,_this.hasUpdated=!1,_this._$Em=null,_this._$Ev();return _this;}_inherits(O,_HTMLElement);return _createClass(O,[{key:"_$Ev",value:function _$Ev(){var _this2=this,_this$constructor$l;this._$ES=new Promise(function(t){return _this2.enableUpdating=t;}),this._$AL=new Map(),this._$E_(),this.requestUpdate(),(_this$constructor$l=this.constructor.l)===null||_this$constructor$l===void 0?void 0:_this$constructor$l.forEach(function(t){return t(_this2);});}},{key:"addController",value:function addController(t){var _this$_$EO,_t$hostConnected;((_this$_$EO=this._$EO)!==null&&_this$_$EO!==void 0?_this$_$EO:this._$EO=new Set()).add(t),void 0!==this.renderRoot&&this.isConnected&&((_t$hostConnected=t.hostConnected)===null||_t$hostConnected===void 0?void 0:_t$hostConnected.call(t));}},{key:"removeController",value:function removeController(t){var _this$_$EO2;(_this$_$EO2=this._$EO)===null||_this$_$EO2===void 0||_this$_$EO2["delete"](t);}},{key:"_$E_",value:function _$E_(){var t=new Map(),i=this.constructor.elementProperties;var _iterator=_createForOfIteratorHelper(i.keys()),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _s=_step.value;this.hasOwnProperty(_s)&&(t.set(_s,this[_s]),delete this[_s]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}t.size>0&&(this._$Ep=t);}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$shadowRoot;var t=(_this$shadowRoot=this.shadowRoot)!==null&&_this$shadowRoot!==void 0?_this$shadowRoot:this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t;}},{key:"connectedCallback",value:function connectedCallback(){var _this$renderRoot,_this$_$EO3;(_this$renderRoot=this.renderRoot)!==null&&_this$renderRoot!==void 0?_this$renderRoot:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(_this$_$EO3=this._$EO)===null||_this$_$EO3===void 0?void 0:_this$_$EO3.forEach(function(t){var _t$hostConnected2;return(_t$hostConnected2=t.hostConnected)===null||_t$hostConnected2===void 0?void 0:_t$hostConnected2.call(t);});}},{key:"enableUpdating",value:function enableUpdating(t){}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$EO4;(_this$_$EO4=this._$EO)===null||_this$_$EO4===void 0||_this$_$EO4.forEach(function(t){var _t$hostDisconnected;return(_t$hostDisconnected=t.hostDisconnected)===null||_t$hostDisconnected===void 0?void 0:_t$hostDisconnected.call(t);});}},{key:"attributeChangedCallback",value:function attributeChangedCallback(t,i,s){this._$AK(t,s);}},{key:"_$EC",value:function _$EC(t,i){var s=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,s);if(void 0!==e&&!0===s.reflect){var _s$converter;var _h=(void 0!==((_s$converter=s.converter)===null||_s$converter===void 0?void 0:_s$converter.toAttribute)?s.converter:S).toAttribute(i,s.type);this._$Em=t,null==_h?this.removeAttribute(e):this.setAttribute(e,_h),this._$Em=null;}}},{key:"_$AK",value:function _$AK(t,i){var s=this.constructor,e=s._$Eh.get(t);if(void 0!==e&&this._$Em!==e){var _t$converter;var _t=s.getPropertyOptions(e),_h2="function"==typeof _t.converter?{fromAttribute:_t.converter}:void 0!==((_t$converter=_t.converter)===null||_t$converter===void 0?void 0:_t$converter.fromAttribute)?_t.converter:S;this._$Em=e,this[e]=_h2.fromAttribute(i,_t.type),this._$Em=null;}}},{key:"requestUpdate",value:function requestUpdate(t,i,s){if(void 0!==t){var _s$hasChanged;if(s!==null&&s!==void 0?s:s=this.constructor.getPropertyOptions(t),!((_s$hasChanged=s.hasChanged)!==null&&_s$hasChanged!==void 0?_s$hasChanged:_)(this[t],i))return;this.P(t,i,s);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}},{key:"P",value:function P(t,i,s){var _this$_$Ej;this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$Em!==t&&((_this$_$Ej=this._$Ej)!==null&&_this$_$Ej!==void 0?_this$_$Ej:this._$Ej=new Set()).add(t);}},{key:"_$ET",value:function(){var _$ET2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var t;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:this.isUpdatePending=!0;_context.prev=1;_context.next=4;return this._$ES;case 4:_context.next=9;break;case 6:_context.prev=6;_context.t0=_context["catch"](1);Promise.reject(_context.t0);case 9:t=this.scheduleUpdate();_context.t1=null!=t;if(!_context.t1){_context.next=14;break;}_context.next=14;return t;case 14:return _context.abrupt("return",!this.isUpdatePending);case 15:case"end":return _context.stop();}},_callee,this,[[1,6]]);}));function _$ET(){return _$ET2.apply(this,arguments);}return _$ET;}()},{key:"scheduleUpdate",value:function scheduleUpdate(){return this.performUpdate();}},{key:"performUpdate",value:function performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var _this$renderRoot2;if((_this$renderRoot2=this.renderRoot)!==null&&_this$renderRoot2!==void 0?_this$renderRoot2:this.renderRoot=this.createRenderRoot(),this._$Ep){var _iterator2=_createForOfIteratorHelper(this._$Ep),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),_t2=_step2$value[0],_i=_step2$value[1];this[_t2]=_i;}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}this._$Ep=void 0;}var _t3=this.constructor.elementProperties;if(_t3.size>0){var _iterator3=_createForOfIteratorHelper(_t3),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _step3$value=_slicedToArray(_step3.value,2),_i2=_step3$value[0],_s2=_step3$value[1];!0!==_s2.wrapped||this._$AL.has(_i2)||void 0===this[_i2]||this.P(_i2,this[_i2],_s2);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}var t=!1;var i=this._$AL;try{var _this$_$EO5;t=this.shouldUpdate(i),t?(this.willUpdate(i),(_this$_$EO5=this._$EO)!==null&&_this$_$EO5!==void 0&&_this$_$EO5.forEach(function(t){var _t$hostUpdate;return(_t$hostUpdate=t.hostUpdate)===null||_t$hostUpdate===void 0?void 0:_t$hostUpdate.call(t);}),this.update(i)):this._$EU();}catch(i){throw t=!1,this._$EU(),i;}t&&this._$AE(i);}},{key:"willUpdate",value:function willUpdate(t){}},{key:"_$AE",value:function _$AE(t){var _this$_$EO6;(_this$_$EO6=this._$EO)!==null&&_this$_$EO6!==void 0&&_this$_$EO6.forEach(function(t){var _t$hostUpdated;return(_t$hostUpdated=t.hostUpdated)===null||_t$hostUpdated===void 0?void 0:_t$hostUpdated.call(t);}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}},{key:"_$EU",value:function _$EU(){this._$AL=new Map(),this.isUpdatePending=!1;}},{key:"updateComplete",get:function get(){return this.getUpdateComplete();}},{key:"getUpdateComplete",value:function getUpdateComplete(){return this._$ES;}},{key:"shouldUpdate",value:function shouldUpdate(t){return!0;}},{key:"update",value:function update(t){var _this3=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return _this3._$EC(t,_this3[t]);})),this._$EU();}},{key:"updated",value:function updated(t){}},{key:"firstUpdated",value:function firstUpdated(t){}}],[{key:"addInitializer",value:function addInitializer(t){var _this$l;this._$Ei(),((_this$l=this.l)!==null&&_this$l!==void 0?_this$l:this.l=[]).push(t);}},{key:"observedAttributes",get:function get(){return this.finalize(),this._$Eh&&_toConsumableArray(this._$Eh.keys());}},{key:"createProperty",value:function createProperty(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:k;if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){var _s3=Symbol(),_e=this.getPropertyDescriptor(t,_s3,i);void 0!==_e&&m(this.prototype,t,_e);}}},{key:"getPropertyDescriptor",value:function getPropertyDescriptor(t,i,s){var _b;var _ref=(_b=b(this.prototype,t))!==null&&_b!==void 0?_b:{get:function get(){return this[i];},set:function set(t){this[i]=t;}},e=_ref.get,h=_ref.set;return{get:function get(){return e===null||e===void 0?void 0:e.call(this);},set:function set(i){var o=e===null||e===void 0?void 0:e.call(this);h.call(this,i),this.requestUpdate(t,o,s);},configurable:!0,enumerable:!0};}},{key:"getPropertyOptions",value:function getPropertyOptions(t){var _this$elementProperti;return(_this$elementProperti=this.elementProperties.get(t))!==null&&_this$elementProperti!==void 0?_this$elementProperti:k;}},{key:"_$Ei",value:function _$Ei(){if(this.hasOwnProperty(C("elementProperties")))return;var t=w(this);t.finalize(),void 0!==t.l&&(this.l=_toConsumableArray(t.l)),this.elementProperties=new Map(t.elementProperties);}},{key:"finalize",value:function finalize(){if(this.hasOwnProperty(C("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(C("properties"))){var _t4=this.properties,_i3=[].concat(_toConsumableArray(v(_t4)),_toConsumableArray(y(_t4)));var _iterator4=_createForOfIteratorHelper(_i3),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _s4=_step4.value;this.createProperty(_s4,_t4[_s4]);}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}var t=this[Symbol.metadata];if(null!==t){var _i4=litPropertyMetadata.get(t);if(void 0!==_i4){var _iterator5=_createForOfIteratorHelper(_i4),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),_t5=_step5$value[0],_s5=_step5$value[1];this.elementProperties.set(_t5,_s5);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}}this._$Eh=new Map();var _iterator6=_createForOfIteratorHelper(this.elementProperties),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _step6$value=_slicedToArray(_step6.value,2),_t6=_step6$value[0],_i5=_step6$value[1];var _s6=this._$Eu(_t6,_i5);void 0!==_s6&&this._$Eh.set(_s6,_t6);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}this.elementStyles=this.finalizeStyles(this.styles);}},{key:"finalizeStyles",value:function finalizeStyles(t){var s=[];if(Array.isArray(t)){var _e2=new Set(t.flat(1/0).reverse());var _iterator7=_createForOfIteratorHelper(_e2),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _t7=_step7.value;s.unshift(i(_t7));}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}}else void 0!==t&&s.push(i(t));return s;}},{key:"_$Eu",value:function _$Eu(t,i){var s=i.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[C("elementProperties")]=new Map(),O[C("finalized")]=new Map(),$!==null&&$!==void 0&&$({ReactiveElement:O}),((_g$reactiveElementVer=g.reactiveElementVersions)!==null&&_g$reactiveElementVer!==void 0?_g$reactiveElementVer:g.reactiveElementVersions=[]).push("2.0.4");/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */E=/*#__PURE__*/function(_k){function E(){var _this4;_classCallCheck(this,E);_this4=_callSuper(this,E,arguments),_this4.renderOptions={host:_assertThisInitialized(_this4)},_this4._$Do=void 0;return _this4;}_inherits(E,_k);return _createClass(E,[{key:"createRenderRoot",value:function createRenderRoot(){var _this$renderOptions,_this$renderOptions$r;var t=_superPropGet(E,"createRenderRoot",this,3)([]);return(_this$renderOptions$r=(_this$renderOptions=this.renderOptions).renderBefore)!==null&&_this$renderOptions$r!==void 0?_this$renderOptions$r:_this$renderOptions.renderBefore=t.firstChild,t;}},{key:"update",value:function update(t){var i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),_superPropGet(E,"update",this,3)([t]),this._$Do=e(i,this.renderRoot,this.renderOptions);}},{key:"connectedCallback",value:function connectedCallback(){var _this$_$Do;_superPropGet(E,"connectedCallback",this,3)([]),(_this$_$Do=this._$Do)===null||_this$_$Do===void 0?void 0:_this$_$Do.setConnected(!0);}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$Do2;_superPropGet(E,"disconnectedCallback",this,3)([]),(_this$_$Do2=this._$Do)===null||_this$_$Do2===void 0?void 0:_this$_$Do2.setConnected(!1);}},{key:"render",value:function render(){return h;}}]);}(k);E._$litElement$=!0,E.finalized=!0,(_globalThis$litElemen=globalThis.litElementHydrateSupport)===null||_globalThis$litElemen===void 0?void 0:_globalThis$litElemen.call(globalThis,{LitElement:E});O=globalThis.litElementPolyfillSupport;O!==null&&O!==void 0&&O({LitElement:E}),((_globalThis$litElemen2=globalThis.litElementVersions)!==null&&_globalThis$litElemen2!==void 0?_globalThis$litElemen2:globalThis.litElementVersions=[]).push("4.1.1");_export("N",A=/*#__PURE__*/function(_c){function A(){var _this5;_classCallCheck(this,A);_this5=_callSuper(this,A,arguments),_this5.placement="top",_this5.distance=18,_this5.preventOverlayClose=!1,_this5.arrow=!0,_this5.title="",_this5.open=!1,_this5.isShow=!1,_this5.arrowPlacement="anchor",_this5.portalManager=null,_this5.hoist=!1,_this5.portal=!1,_this5.flip=!1,_this5.handleClick=function(){_this5.isShow=!_this5.isShow;document.querySelectorAll("nile-popover").forEach(function(t){t!==_assertThisInitialized(_this5)&&(t.isShow=!1);});},_this5.handleDocumentClick=function(){_this5.isShow&&!_this5.preventOverlayClose&&(_this5.isShow=!1);};return _this5;}_inherits(A,_c);return _createClass(A,[{key:"connectedCallback",value:function connectedCallback(){var _this6=this;_superPropGet(A,"connectedCallback",this,3)([]),this.emit("nile-init"),document.addEventListener("click",this.handleDocumentClick),requestAnimationFrame(function(){_this6.portal&&!_this6.portalManager&&(_this6.portalManager=new d(_this6));});}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(A,"disconnectedCallback",this,3)([]),this.emit("nile-destroy"),document.removeEventListener("click",this.handleDocumentClick),this.portalManager&&(this.portalManager.cleanupPortalAppend(),this.portalManager=null);}},{key:"updated",value:function updated(t){t.has("open")&&(this.isShow=this.open),t.has("portal")&&(this.portal&&!this.portalManager?this.portalManager=new d(this):!this.portal&&this.portalManager&&(this.portalManager.cleanupPortalAppend(),this.portalManager=null));}},{key:"handleShowHide",value:function handleShowHide(){this.isShow?(this.emit("nile-show"),this.portal&&this.portalManager?this.portalManager.setupPortalAppend():this.portal&&!this.portalManager&&(this.portalManager=new d(this),this.portalManager.setupPortalAppend())):(this.emit("nile-hide"),this.portal&&this.portalManager&&this.portalManager.cleanupPortalAppend());}},{key:"render",value:function render(){var t=this.isShow&&!(this.portal&&this.portalManager);return o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popup\n active\n .arrow=\"","\"\n distance=\"","\"\n placement=\"","\"\n @click=","\n arrowPlacement=\"","\"\n .flip=\"","\"\n shift\n strategy=","\n >\n <slot\n slot=\"anchor\"\n name=\"anchor\"\n aria-describedby=\"tooltip\"\n @click=","\n ></slot>\n ","\n </nile-popup>\n "])),this.arrow&&this.isShow&&!this.portal,this.distance,this.placement,function(t){return t.stopPropagation();},this.arrowPlacement,this.flip,this.hoist?"fixed":"absolute",this.handleClick,t?o(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <div part=\"popover\" class=\"popover__box\">\n <slot name=\"title\" class=\"popover__title\">","</slot>\n <slot part=\"base\"></slot>\n <slot name=\"action\" class=\"popover__action\"> </slot>\n </div>"])),this.title):o(_templateObject3||(_templateObject3=_taggedTemplateLiteral([""]))));}},{key:"updatePortalContent",value:function updatePortalContent(){this.portalManager&&this.portalManager.updatePortalAppendPosition();}},{key:"forceReposition",value:function forceReposition(){this.portalManager&&this.portalManager.forceReposition();}},{key:"getCurrentPlacement",value:function getCurrentPlacement(){return this.portalManager?this.portalManager.getCurrentPlacement():this.placement;}},{key:"isPositioningOptimal",value:function isPositioningOptimal(){return!this.portalManager||this.portalManager.isPositioningOptimal();}}],[{key:"styles",get:function get(){return[l];}}]);}(c));t([r()],A.prototype,"placement",void 0),t([r({type:Number})],A.prototype,"distance",void 0),t([r({type:Boolean,reflect:!0})],A.prototype,"preventOverlayClose",void 0),t([r({type:Boolean,attribute:"arrow"})],A.prototype,"arrow",void 0),t([r({type:String})],A.prototype,"title",void 0),t([r({type:Boolean})],A.prototype,"open",void 0),t([n()],A.prototype,"isShow",void 0),t([r({attribute:"arrow-placement"})],A.prototype,"arrowPlacement",void 0),t([r({type:Boolean})],A.prototype,"hoist",void 0),t([r({type:Boolean})],A.prototype,"portal",void 0),t([r({type:Boolean})],A.prototype,"flip",void 0),t([p("isShow")],A.prototype,"handleShowHide",null),_export("N",A=t([a("nile-popover")],A));}};});
9
+ */E=/*#__PURE__*/function(_O){function E(){var _this4;_classCallCheck(this,E);_this4=_callSuper(this,E,arguments),_this4.renderOptions={host:_assertThisInitialized(_this4)},_this4._$Do=void 0;return _this4;}_inherits(E,_O);return _createClass(E,[{key:"createRenderRoot",value:function createRenderRoot(){var _this$renderOptions,_this$renderOptions$r;var t=_superPropGet(E,"createRenderRoot",this,3)([]);return(_this$renderOptions$r=(_this$renderOptions=this.renderOptions).renderBefore)!==null&&_this$renderOptions$r!==void 0?_this$renderOptions$r:_this$renderOptions.renderBefore=t.firstChild,t;}},{key:"update",value:function update(t){var i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),_superPropGet(E,"update",this,3)([t]),this._$Do=e(i,this.renderRoot,this.renderOptions);}},{key:"connectedCallback",value:function connectedCallback(){var _this$_$Do;_superPropGet(E,"connectedCallback",this,3)([]),(_this$_$Do=this._$Do)===null||_this$_$Do===void 0?void 0:_this$_$Do.setConnected(!0);}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_$Do2;_superPropGet(E,"disconnectedCallback",this,3)([]),(_this$_$Do2=this._$Do)===null||_this$_$Do2===void 0?void 0:_this$_$Do2.setConnected(!1);}},{key:"render",value:function render(){return h;}}]);}(O);E._$litElement$=!0,E.finalized=!0,(_globalThis$litElemen=globalThis.litElementHydrateSupport)===null||_globalThis$litElemen===void 0?void 0:_globalThis$litElemen.call(globalThis,{LitElement:E});A=globalThis.litElementPolyfillSupport;A!==null&&A!==void 0&&A({LitElement:E}),((_globalThis$litElemen2=globalThis.litElementVersions)!==null&&_globalThis$litElemen2!==void 0?_globalThis$litElemen2:globalThis.litElementVersions=[]).push("4.1.1");_export("N",B=/*#__PURE__*/function(_c){function B(){var _this5;_classCallCheck(this,B);_this5=_callSuper(this,B,arguments),_this5.placement="top",_this5.distance=18,_this5.preventOverlayClose=!1,_this5.arrow=!0,_this5.title="",_this5.open=!1,_this5.isShow=!1,_this5.arrowPlacement="anchor",_this5.portalManager=null,_this5.enableVisibilityEffect=!1,_this5.enableTabClose=!1,_this5.hoist=!1,_this5.portal=!1,_this5.flip=!1,_this5.handleClick=function(){_this5.isShow=!_this5.isShow;document.querySelectorAll("nile-popover").forEach(function(t){t!==_assertThisInitialized(_this5)&&(t.isShow=!1);});},_this5.handleDocumentClick=function(){_this5.isShow&&!_this5.preventOverlayClose&&(_this5.isShow=!1);};return _this5;}_inherits(B,_c);return _createClass(B,[{key:"connectedCallback",value:function connectedCallback(){var _this6=this;_superPropGet(B,"connectedCallback",this,3)([]),this.emit("nile-init"),document.addEventListener("click",this.handleDocumentClick),requestAnimationFrame(function(){_this6.portal&&!_this6.portalManager&&(_this6.portalManager=new d(_this6));});}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$visibilityManag;_superPropGet(B,"disconnectedCallback",this,3)([]),this.emit("nile-destroy"),(_this$visibilityManag=this.visibilityManager)!==null&&_this$visibilityManag!==void 0&&_this$visibilityManag.cleanup(),document.removeEventListener("click",this.handleDocumentClick),this.portalManager&&(this.portalManager.cleanupPortalAppend(),this.portalManager=null);}},{key:"firstUpdated",value:function(){var _firstUpdated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t){var _superPropGet2,_this7=this;var i,s;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:(_superPropGet2=_superPropGet(B,"firstUpdated",this,3))!==null&&_superPropGet2!==void 0&&_superPropGet2([t]);_context2.next=3;return this.updateComplete;case 3:i=this.renderRoot.querySelector('slot[name="anchor"]'),s=i===null||i===void 0?void 0:i.assignedElements({flatten:!0})[0];this.visibilityManager=new u({host:this,target:s||null,enableVisibilityEffect:this.enableVisibilityEffect,enableTabClose:this.enableTabClose,isOpen:function isOpen(){return _this7.isShow;},onAnchorOutOfView:function onAnchorOutOfView(){_this7.isShow=!1,_this7.emit("nile-visibility-change",{visible:!1,reason:"anchor-out-of-view"});},onDocumentHidden:function onDocumentHidden(){_this7.isShow=!1,_this7.emit("nile-visibility-change",{visible:!1,reason:"document-hidden"});},emit:function emit(t,i){return _this7.emit("nile-".concat(t),i);}});case 5:case"end":return _context2.stop();}},_callee2,this);}));function firstUpdated(_x){return _firstUpdated.apply(this,arguments);}return firstUpdated;}()},{key:"updated",value:function updated(t){t.has("open")&&(this.isShow=this.open),t.has("portal")&&(this.portal&&!this.portalManager?this.portalManager=new d(this):!this.portal&&this.portalManager&&(this.portalManager.cleanupPortalAppend(),this.portalManager=null));}},{key:"handleShowHide",value:function handleShowHide(){var _this$visibilityManag2,_this$visibilityManag3;this.isShow?(this.emit("nile-show"),(_this$visibilityManag2=this.visibilityManager)!==null&&_this$visibilityManag2!==void 0&&_this$visibilityManag2.setup(),this.portal&&this.portalManager?this.portalManager.setupPortalAppend():this.portal&&!this.portalManager&&(this.portalManager=new d(this),this.portalManager.setupPortalAppend())):(this.emit("nile-hide"),(_this$visibilityManag3=this.visibilityManager)!==null&&_this$visibilityManag3!==void 0&&_this$visibilityManag3.cleanup(),this.portal&&this.portalManager&&this.portalManager.cleanupPortalAppend());}},{key:"render",value:function render(){var t=this.isShow&&!(this.portal&&this.portalManager);return o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-popup\n active\n .arrow=\"","\"\n distance=\"","\"\n placement=\"","\"\n @click=","\n arrowPlacement=\"","\"\n .flip=\"","\"\n shift\n strategy=","\n >\n <slot\n slot=\"anchor\"\n name=\"anchor\"\n aria-describedby=\"tooltip\"\n @click=","\n ></slot>\n ","\n </nile-popup>\n "])),this.arrow&&this.isShow&&!this.portal,this.distance,this.placement,function(t){return t.stopPropagation();},this.arrowPlacement,this.flip,this.hoist?"fixed":"absolute",this.handleClick,t?o(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <div part=\"popover\" class=\"popover__box\">\n <slot name=\"title\" class=\"popover__title\">","</slot>\n <slot part=\"base\"></slot>\n <slot name=\"action\" class=\"popover__action\"> </slot>\n </div>"])),this.title):o(_templateObject3||(_templateObject3=_taggedTemplateLiteral([""]))));}},{key:"updatePortalContent",value:function updatePortalContent(){this.portalManager&&this.portalManager.updatePortalAppendPosition();}},{key:"forceReposition",value:function forceReposition(){this.portalManager&&this.portalManager.forceReposition();}},{key:"getCurrentPlacement",value:function getCurrentPlacement(){return this.portalManager?this.portalManager.getCurrentPlacement():this.placement;}},{key:"isPositioningOptimal",value:function isPositioningOptimal(){return!this.portalManager||this.portalManager.isPositioningOptimal();}}],[{key:"styles",get:function get(){return[l];}}]);}(c));t([r()],B.prototype,"placement",void 0),t([r({type:Number})],B.prototype,"distance",void 0),t([r({type:Boolean,reflect:!0})],B.prototype,"preventOverlayClose",void 0),t([r({type:Boolean,attribute:"arrow"})],B.prototype,"arrow",void 0),t([r({type:String})],B.prototype,"title",void 0),t([r({type:Boolean})],B.prototype,"open",void 0),t([n()],B.prototype,"isShow",void 0),t([r({attribute:"arrow-placement"})],B.prototype,"arrowPlacement",void 0),t([r({type:Boolean,reflect:!0})],B.prototype,"enableVisibilityEffect",void 0),t([r({type:Boolean,reflect:!0})],B.prototype,"enableTabClose",void 0),t([r({type:Boolean})],B.prototype,"hoist",void 0),t([r({type:Boolean})],B.prototype,"portal",void 0),t([r({type:Boolean})],B.prototype,"flip",void 0),t([p("isShow")],B.prototype,"handleShowHide",null),_export("N",B=t([a("nile-popover")],B));}};});
10
10
  //# sourceMappingURL=nile-popover.cjs.js.map