@mojawork/ui-docs 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/README.md +22 -0
  2. package/bin/serve.mjs +73 -0
  3. package/catalog/atoms/background.md +130 -0
  4. package/catalog/atoms/barcode.md +285 -0
  5. package/catalog/atoms/buzzer.md +210 -0
  6. package/catalog/atoms/card.md +174 -0
  7. package/catalog/atoms/chart.md +236 -0
  8. package/catalog/atoms/clock.md +252 -0
  9. package/catalog/atoms/copy-value.md +203 -0
  10. package/catalog/atoms/image-grid.md +208 -0
  11. package/catalog/atoms/image-slider.md +216 -0
  12. package/catalog/atoms/lang-selector.md +237 -0
  13. package/catalog/atoms/mosaic.md +366 -0
  14. package/catalog/atoms/placeholder.md +157 -0
  15. package/catalog/atoms/qr-code.md +334 -0
  16. package/catalog/atoms/rating.md +176 -0
  17. package/catalog/atoms/reader-doc.md +404 -0
  18. package/catalog/atoms/text-animate.md +122 -0
  19. package/catalog/atoms/thumb.md +153 -0
  20. package/catalog/atoms/timer.md +111 -0
  21. package/catalog/atoms/typewriter.md +132 -0
  22. package/catalog/cdk/splitter.md +63 -0
  23. package/catalog/cdk/table.md +188 -0
  24. package/catalog/forms/autocomplete.md +304 -0
  25. package/catalog/forms/checkbox.md +218 -0
  26. package/catalog/forms/input.md +193 -0
  27. package/catalog/forms/slider.md +142 -0
  28. package/catalog/forms/switch.md +188 -0
  29. package/catalog/guide.json +1209 -0
  30. package/catalog/layout/header.md +167 -0
  31. package/catalog/layout/main.md +158 -0
  32. package/catalog/layout/media-screen.md +163 -0
  33. package/catalog/layout/nav.md +181 -0
  34. package/catalog/layout/overlay.md +256 -0
  35. package/catalog/layout/spinner.md +94 -0
  36. package/catalog/layout/splitter.md +331 -0
  37. package/catalog/layout/tabs.md +144 -0
  38. package/catalog/layout/top-scroll-bottom.md +98 -0
  39. package/catalog/manifest.json +482 -0
  40. package/catalog/mcp.json +44 -0
  41. package/catalog/molecules/image-editor.md +285 -0
  42. package/catalog/usage.md +137 -0
  43. package/catalog/version.json +4 -0
  44. package/package.json +10 -0
  45. package/storybook/1183.da25800b.iframe.bundle.js +1 -0
  46. package/storybook/1255.2abec879.iframe.bundle.js +2 -0
  47. package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
  48. package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
  49. package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
  50. package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
  51. package/storybook/2089.32694489.iframe.bundle.js +1 -0
  52. package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
  53. package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
  54. package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
  55. package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
  56. package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
  57. package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
  58. package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
  59. package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
  60. package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
  61. package/storybook/3899.55560628.iframe.bundle.js +2 -0
  62. package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
  63. package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
  64. package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
  65. package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
  66. package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
  67. package/storybook/4425.368129b3.iframe.bundle.js +2 -0
  68. package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
  69. package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
  70. package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
  71. package/storybook/4555.066c242d.iframe.bundle.js +1 -0
  72. package/storybook/4755.e4656207.iframe.bundle.js +23 -0
  73. package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
  74. package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
  75. package/storybook/4935.8959522b.iframe.bundle.js +1 -0
  76. package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
  77. package/storybook/5944.810cb147.iframe.bundle.js +1 -0
  78. package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
  79. package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
  80. package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
  81. package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
  82. package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
  83. package/storybook/660.18f0458e.iframe.bundle.js +1 -0
  84. package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
  85. package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
  86. package/storybook/7749.2a853795.iframe.bundle.js +1 -0
  87. package/storybook/8051.719eb790.iframe.bundle.js +1 -0
  88. package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
  89. package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
  90. package/storybook/871.428deceb.iframe.bundle.js +1 -0
  91. package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
  92. package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
  93. package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
  94. package/storybook/9560.668052f3.iframe.bundle.js +7 -0
  95. package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
  96. package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
  97. package/storybook/9850.28367747.iframe.bundle.js +1 -0
  98. package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
  99. package/storybook/MaterialIcons-Regular.woff2 +0 -0
  100. package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
  101. package/storybook/PetMe64.ttf +0 -0
  102. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
  103. package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
  104. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
  105. package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
  106. package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
  107. package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
  108. package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
  109. package/storybook/assets/fonts/PetMe64.ttf +0 -0
  110. package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
  111. package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
  112. package/storybook/assets/ui/documents/demo.pdf +42 -0
  113. package/storybook/assets/ui/i18n/de-DE.json +1 -0
  114. package/storybook/assets/ui/i18n/en-EN.json +2 -0
  115. package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
  116. package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
  117. package/storybook/assets/ui/images/600x600.png +0 -0
  118. package/storybook/assets/ui/images/600x800.png +0 -0
  119. package/storybook/assets/ui/images/800x600.png +0 -0
  120. package/storybook/assets/ui/images/unknown.gif +0 -0
  121. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
  122. package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
  123. package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
  124. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
  125. package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
  126. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
  127. package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
  128. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
  129. package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
  130. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
  131. package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
  132. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
  133. package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
  134. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
  135. package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
  136. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
  137. package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
  138. package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
  139. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
  140. package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
  141. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
  142. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
  143. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
  144. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
  145. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
  146. package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
  147. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
  148. package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
  149. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
  150. package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
  151. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
  152. package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
  153. package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
  154. package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
  155. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
  156. package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
  157. package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
  158. package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
  159. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
  160. package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
  161. package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
  162. package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
  163. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
  164. package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
  165. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
  166. package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
  167. package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
  168. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
  169. package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
  170. package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
  171. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
  172. package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
  173. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
  174. package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
  175. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
  176. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
  177. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
  178. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
  179. package/storybook/favicon-wrapper.svg +46 -0
  180. package/storybook/favicon.svg +1 -0
  181. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
  182. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
  183. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
  184. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
  185. package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
  186. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
  187. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
  188. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
  189. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
  190. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
  191. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
  192. package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
  193. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
  194. package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
  195. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
  196. package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
  197. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
  198. package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
  199. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
  200. package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
  201. package/storybook/iframe.html +558 -0
  202. package/storybook/index.html +155 -0
  203. package/storybook/index.json +1 -0
  204. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
  205. package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
  206. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
  207. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
  208. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
  209. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
  210. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
  211. package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
  212. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
  213. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
  214. package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
  215. package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
  216. package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
  217. package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
  218. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
  219. package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
  220. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
  221. package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
  222. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
  223. package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
  224. package/storybook/main.2d116a57.iframe.bundle.js +1 -0
  225. package/storybook/main.a402659c6a0734088d14.css +2101 -0
  226. package/storybook/mocker-runtime-injected.js +1 -0
  227. package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
  228. package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
  229. package/storybook/nunito-sans-bold-italic.woff2 +0 -0
  230. package/storybook/nunito-sans-bold.woff2 +0 -0
  231. package/storybook/nunito-sans-italic.woff2 +0 -0
  232. package/storybook/nunito-sans-regular.woff2 +0 -0
  233. package/storybook/project.json +1 -0
  234. package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
  235. package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
  236. package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
  237. package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
  238. package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  239. package/storybook/sb-common-assets/favicon.svg +1 -0
  240. package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  241. package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  242. package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  243. package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  244. package/storybook/sb-manager/globals-runtime.js +76714 -0
  245. package/storybook/sb-manager/globals.js +24 -0
  246. package/storybook/sb-manager/manager-stores.js +23 -0
  247. package/storybook/sb-manager/runtime.js +27451 -0
  248. package/storybook/sb-preview/globals.js +20 -0
  249. package/storybook/sb-preview/runtime.js +35491 -0
  250. package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
  251. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
  252. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
  253. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
  254. package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
  255. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
  256. package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
  257. package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
  258. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
  259. package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
  260. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
  261. package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
  262. package/storybook/version.json +4 -0
  263. package/version.json +4 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 9045.a50616e9.iframe.bundle.js.LICENSE.txt */
2
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9045],{"./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{br:()=>toObservable,ot:()=>toSignal,pQ:()=>takeUntilDestroyed});var rxjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Observable.js"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"),rxjs_operators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"),_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs");function takeUntilDestroyed(destroyRef){destroyRef||(ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(takeUntilDestroyed),destroyRef=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz));const destroyed$=new rxjs__WEBPACK_IMPORTED_MODULE_0__.c(subscriber=>{if(destroyRef.destroyed)return void subscriber.next();return destroyRef.onDestroy(subscriber.next.bind(subscriber))});return source=>source.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.Q)(destroyed$))}function toObservable(source,options){ngDevMode&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toObservable);const injector=options?.injector??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.zZn),subject=new rxjs__WEBPACK_IMPORTED_MODULE_1__.m(1),watcher=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.QZP)(()=>{let value;try{value=source()}catch(err){return void(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.error(err))}(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.next(value))},{injector,manualCleanup:!0});return injector.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz).onDestroy(()=>{watcher.destroy(),subject.complete()}),subject.asObservable()}function toSignal(source,options){"undefined"!=typeof ngDevMode&&ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.tdH)(toSignal,"Invoking `toSignal` causes new subscriptions every time. Consider moving `toSignal` outside of the reactive context and read the signal value where needed.");const requiresCleanup=!options?.manualCleanup;ngDevMode&&requiresCleanup&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toSignal);const cleanupRef=requiresCleanup?options?.injector?.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz)??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz):null,equal=function makeToSignalEqual(userEquality=Object.is){return(a,b)=>1===a.kind&&1===b.kind&&userEquality(a.value,b.value)}(options?.equal);let state,destroyUnregisterFn;state=options?.requireSync?(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:0},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0}):(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:1,value:options?.initialValue},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0});const sub=source.subscribe({next:value=>state.set({kind:1,value}),error:error=>{state.set({kind:2,error}),destroyUnregisterFn?.()},complete:()=>{destroyUnregisterFn?.()}});if(options?.requireSync&&0===state().kind)throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");return destroyUnregisterFn=cleanupRef?.onDestroy(sub.unsubscribe.bind(sub)),(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.EW)(()=>{const current=state();switch(current.kind){case 1:return current.value;case 2:throw current.error;case 0:throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:options?.equal,...ngDevMode?createDebugNameObject(options?.debugName,"source"):void 0})}function createDebugNameObject(toSignalDebugName,internalSignalDebugName){return{debugName:`toSignal${toSignalDebugName?"#"+toSignalDebugName:""}.${internalSignalDebugName}`}}},"./libs/ui/.storybook/demos/header/header.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>UiInternHeaderComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var header_componentngResource=__webpack_require__("./libs/ui/.storybook/demos/header/header.component.css?ngResource"),header_componentngResource_default=__webpack_require__.n(header_componentngResource),_common_module_chunk=__webpack_require__("./node_modules/@angular/common/fesm2022/_common_module-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),ui_config_types=__webpack_require__("./libs/ui/src/config/ui-config.types.ts"),layout_service=__webpack_require__("./libs/ui/src/lib/layout/_service/layout.service.ts");let UiInternHeaderComponent=class UiInternHeaderComponent{layoutService=(0,_effect_chunk2.WQX)(layout_service.u);theme=(0,core.input)(null);display=(0,core.input)(!1,{transform:core.booleanAttribute});onTop=(0,core.input)(!1,{transform:core.booleanAttribute});ngOnInit(){this.layoutService.handleTheme(this.theme(),ui_config_types.Q)}ngOnDestroy(){this.layoutService.handleTheme("theme-light",ui_config_types.Q)}setTheme(){this.layoutService.handleTheme(null,ui_config_types.Q)}static propDecorators={theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],display:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"display",required:!1,transform:void 0}]}],onTop:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"onTop",required:!1,transform:void 0}]}]}};UiInternHeaderComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-intern-header",template:'@if (display()) {\n <button class="ui" [class._on-top]="onTop()" (click)="setTheme()">\n switch Theme\n </button>\n}\n',encapsulation:_debug_node_chunk.gXe.Emulated,standalone:!0,imports:[_common_module_chunk.MD],styles:[header_componentngResource_default()]})],UiInternHeaderComponent)},"./libs/ui/src/config/ui-config.types.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>uiConfigStorybookCssPrefix,y:()=>uiConfigTypes});const uiConfigStorybookCssPrefix="ui-storybook ",uiConfigTypes={mainID:"ui-main",mainClass:"ui-main",storeName:"ui-layout"}},"./libs/ui/src/lib/atoms/image.mock.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function uiImageMock(){const mock=Array.from({length:25},(_,index)=>({title:`Number: ${index+1}`,alt:`number-${index+1}`,src:{default:`https://moja.work/media/pictures/numbers/10/numbers-0${String(index+1).padStart(2,"0")}.png`,medium:`https://moja.work/media/pictures/numbers/25/numbers-0${String(index+1).padStart(2,"0")}.png`,max:`https://moja.work/media/pictures/numbers/50/numbers-0${String(index+1).padStart(2,"0")}.png`}}));return mock[3].src.default="",mock[3].src.medium="",mock[3].src.max="",mock[3].title="no image on purpose",mock[3].alt="number-4, no image",mock}__webpack_require__.d(__webpack_exports__,{W:()=>uiImageMock})},"./libs/ui/src/lib/helpers/resize-signal.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>uiResizeSignal});var rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"),fromEvent=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js"),scheduler_async=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/scheduler/async.js"),lift=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/lift.js"),OperatorSubscriber=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js"),innerFrom=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js");var timer=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/timer.js");function throttleTime(duration,scheduler,config){void 0===scheduler&&(scheduler=scheduler_async.E);var duration$=(0,timer.O)(duration,scheduler);return function throttle(durationSelector,config){return(0,lift.N)(function(source,subscriber){var _a=null!=config?config:{},_b=_a.leading,leading=void 0===_b||_b,_c=_a.trailing,trailing=void 0!==_c&&_c,hasValue=!1,sendValue=null,throttled=null,isComplete=!1,endThrottling=function(){null==throttled||throttled.unsubscribe(),throttled=null,trailing&&(send(),isComplete&&subscriber.complete())},cleanupThrottling=function(){throttled=null,isComplete&&subscriber.complete()},startThrottle=function(value){return throttled=(0,innerFrom.Tg)(durationSelector(value)).subscribe((0,OperatorSubscriber._)(subscriber,endThrottling,cleanupThrottling))},send=function(){if(hasValue){hasValue=!1;var value=sendValue;sendValue=null,subscriber.next(value),!isComplete&&startThrottle(value)}};source.subscribe((0,OperatorSubscriber._)(subscriber,function(value){hasValue=!0,sendValue=value,(!throttled||throttled.closed)&&(leading?send():startThrottle(value))},function(){isComplete=!0,(!(trailing&&hasValue&&throttled)||throttled.closed)&&subscriber.complete()}))})}(function(){return duration$},config)}function uiResizeSignal(throttle=100){return(0,rxjs_interop.ot)((0,fromEvent.R)(window,"resize").pipe(throttleTime(throttle)))}},"./libs/ui/src/lib/layout/_service/layout.service.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>UiLayoutService});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@ngx-pwa/local-storage/fesm2022/ngx-pwa-local-storage.mjs"),_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./libs/ui/src/config/ui-config.types.ts");let UiLayoutService=class UiLayoutService{storage=(0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.WQX)(_ngx_pwa_local_storage__WEBPACK_IMPORTED_MODULE_3__.AX);settings={cssPrefix:"",theme:null,zoom:null,fullscreen:null,direction:"center",layoutSize:null};setStorage(){this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}handleInit(config){this.settings.cssPrefix=config.cssPrefix,this.settings.theme=config.theme,this.settings.zoom=config.zoom?"zoom":"x-zoom",this.settings.fullscreen=config.fullscreen?"fullscreen":"x-fullscreen",this.handleFullScreen(this.settings.fullscreen),this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data),this.setStorage(),this.setTheme(null)})}setTheme(theme){document.body.className=theme?`${this.settings.cssPrefix} ${theme}`:`${this.settings.cssPrefix} ${this.settings.theme}`}getTheme(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.theme}getMainClass(){return`${_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.mainClass} ${this.settings.zoom} ${this.settings.fullscreen}`}handleFullScreen(init){init?this.settings.fullscreen=init:"fullscreen"===this.settings.fullscreen?this.settings.fullscreen="x-fullscreen":this.settings.fullscreen="fullscreen",this.setStorage()}handleZoom(init){init?this.settings.zoom=init:"zoom"===this.settings.zoom?this.settings.zoom="x-zoom":this.settings.zoom="zoom",this.setStorage()}handleTheme(theme,prefix){return prefix&&(this.settings.cssPrefix=prefix),theme?(this.setTheme(theme),this.settings.theme=theme):(this.settings.theme="theme-light"===this.settings.theme?"theme-dark":"theme-light",this.setTheme(null)),this.setStorage(),this.settings.theme}handleDirection(type){this.settings.direction=type,this.setStorage()}setLayoutSize(sizes){this.settings.layoutSize=sizes,this.storage.set(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName,this.settings).subscribe()}getLayoutSize(){return this.storage.get(_config_ui_config_types__WEBPACK_IMPORTED_MODULE_4__.y.storeName).subscribe(data=>{data&&(this.settings=data)}),this.settings.layoutSize}};UiLayoutService=(0,tslib__WEBPACK_IMPORTED_MODULE_0__.Cg)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__._qm)({providedIn:"root"})],UiLayoutService)},"./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>takeUntil});var _util_lift__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/lift.js"),_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js"),_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js"),_util_noop__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/noop.js");function takeUntil(notifier){return(0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.N)(function(source,subscriber){(0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.Tg)(notifier).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__._)(subscriber,function(){return subscriber.complete()},_util_noop__WEBPACK_IMPORTED_MODULE_3__.l)),!subscriber.closed&&source.subscribe(subscriber)})}},"./libs/ui/.storybook/demos/header/header.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"/* The intern header is reduced to just the theme switch button, pinned to the */\n/* bottom-left corner of the Storybook canvas. */\nbutton {\n position: fixed;\n bottom: calc(var(--ui-spacer) * 0.5);\n left: calc(var(--ui-spacer) * 0.5);\n z-index: 1000;\n\n &._on-top {\n z-index: 10000;\n }\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Angular v21.2.17
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */
@@ -0,0 +1,7 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9560],{"./node_modules/storybook/dist/_browser-chunks/WithTooltip-7X4HQR7L.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{WithTooltip:()=>WithToolTipState,WithTooltipPure:()=>DeprecatedPure});var _chunk_242VQQM5_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-242VQQM5.js"),_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-LE2LTDW3.js"),_chunk_DRQKCCAG_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-DRQKCCAG.js"),_chunk_IMSF75WX_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-IMSF75WX.js"),react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-dom/index.js"),storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("storybook/internal/client-logger"),_storybook_global__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("@storybook/global"),storybook_theming__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/storybook/dist/theming/index.js"),storybook_theming__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/storybook/dist/_browser-chunks/chunk-IH6QJILI.js"),require_react_fast_compare=(0,_chunk_IMSF75WX_js__WEBPACK_IMPORTED_MODULE_3__.P$)({"../../node_modules/react-fast-compare/index.js"(exports,module){var hasElementType=typeof Element<"u",hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return!1;var length,i,keys,it;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!==i--;)if(!equal(a[i],b[i]))return!1;return!0}if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;for(it=a.entries();!(i=it.next()).done;)if(!equal(i.value[1],b.get(i.value[0])))return!1;return!0}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!==i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof b.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof b.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!==i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;if(hasElementType&&a instanceof Element)return!1;for(i=length;0!==i--;)if(("_owner"!==keys[i]&&"__v"!==keys[i]&&"__o"!==keys[i]||!a.$$typeof)&&!equal(a[keys[i]],b[keys[i]]))return!1;return!0}return a!=a&&b!=b}module.exports=function(a,b){try{return equal(a,b)}catch(error){if((error.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw error}}}}),require_warning=(0,_chunk_IMSF75WX_js__WEBPACK_IMPORTED_MODULE_3__.P$)({"../../node_modules/warning/warning.js"(exports,module){var warning2=function(){};module.exports=warning2}}),import_memoizerific=(0,_chunk_IMSF75WX_js__WEBPACK_IMPORTED_MODULE_3__.f1)((0,_chunk_DRQKCCAG_js__WEBPACK_IMPORTED_MODULE_2__.a)(),1),fromEntries=(react__WEBPACK_IMPORTED_MODULE_4__.createContext(),react__WEBPACK_IMPORTED_MODULE_4__.createContext(),function(entries){return entries.reduce(function(acc,_ref){var key=_ref[0],value=_ref[1];return acc[key]=value,acc},{})}),useIsomorphicLayoutEffect=typeof window<"u"&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_4__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_4__.useEffect,top="top",bottom="bottom",right="right",left="left",basePlacements=[top,bottom,right,left],variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-start",placement+"-end"])},[]),placements=[].concat(basePlacements,["auto"]).reduce(function(acc,placement){return acc.concat([placement,placement+"-start",placement+"-end"])},[]),modifierPhases=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getWindow(node){if(null==node)return window;if("[object Window]"!==node.toString()){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){return node instanceof getWindow(node).Element||node instanceof Element}function isHTMLElement(node){return node instanceof getWindow(node).HTMLElement||node instanceof HTMLElement}function isShadowRoot(node){return!(typeof ShadowRoot>"u")&&(node instanceof getWindow(node).ShadowRoot||node instanceof ShadowRoot)}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value=attributes[name2];!1===value?element.removeAttribute(name2):element.setAttribute(name2,!0===value?"":value)}))})},effect:function effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},style=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]).reduce(function(style2,property){return style2[property]="",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}},requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return null!=uaData&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){void 0===includeScale&&(includeScale=!1),void 0===isFixedStrategy&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var visualViewport=(isElement(element)?getWindow(element):window).visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return"html"===getNodeName(element)?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return isHTMLElement(element)&&"fixed"!==getComputedStyle(element).position?element.offsetParent:null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&"static"===getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&("html"===getNodeName(offsetParent)||"body"===getNodeName(offsetParent)&&"static"===getComputedStyle(offsetParent).position)?window2:offsetParent||function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(element)&&"fixed"===getComputedStyle(element).position)return null;var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if("none"!==css.transform||"none"!==css.perspective||"paint"===css.contain||-1!==["transform","perspective"].indexOf(css.willChange)||isFirefox&&"filter"===css.willChange||isFirefox&&css.filter&&"none"!==css.filter)return currentNode;currentNode=currentNode.parentNode}return null}(element)||window2}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min2,value,max2){return max(min2,min(value,max2))}function mergePaddingObject(paddingObject){return Object.assign({},{top:0,right:0,bottom:0,left:0},paddingObject)}function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value,hashMap},{})}var arrow_default={name:"arrow",enabled:!0,phase:"main",fn:function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),len=[left,right].indexOf(basePlacement)>=0?"height":"width";if(arrowElement&&popperOffsets2){var paddingObject=function(padding,state){return mergePaddingObject("number"!=typeof(padding="function"==typeof padding?padding(Object.assign({},state.rects,{placement:state.placement})):padding)?padding:expandToHashMap(padding,basePlacements))}(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp="y"===axis?top:left,maxProp="y"===axis?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?"y"===axis?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min2=paddingObject[minProp],max2=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min2,center,max2),axisProp=axis;state.modifiersData[name]=((_state$modifiersData$={})[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$)}},effect:function effect2(_ref2){var state=_ref2.state,_options$element=_ref2.options.element,arrowElement=void 0===_options$element?"[data-popper-arrow]":_options$element;null!=arrowElement&&("string"==typeof arrowElement&&!(arrowElement=state.elements.popper.querySelector(arrowElement))||contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=void 0===_offsets$x?0:_offsets$x,_offsets$y=offsets.y,y=void 0===_offsets$y?0:_offsets$y,_ref3="function"==typeof roundOffsets?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&("static"!==getComputedStyle(offsetParent=getDocumentElement(popper2)).position&&"absolute"===position&&(heightProp="scrollHeight",widthProp="scrollWidth")),placement===top||(placement===left||placement===right)&&"end"===variation)sideY=bottom,y-=(isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp])-popperRect.height,y*=gpuAcceleration?1:-1;if(placement===left||(placement===top||placement===bottom)&&"end"===variation)sideX=right,x-=(isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp])-popperRect.width,x*=gpuAcceleration?1:-1}var _Object$assign,commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=!0===roundOffsets?function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}({x,y},getWindow(popper2)):{x,y};return x=_ref4.x,y=_ref4.y,gpuAcceleration?Object.assign({},commonStyles,((_Object$assign={})[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign)):Object.assign({},commonStyles,((_Object$assign2={})[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}var computeStyles_default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=void 0===_options$gpuAccelerat||_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=void 0===_options$adaptive||_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=void 0===_options$roundOffsets||_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:"fixed"===state.options.strategy};null!=state.modifiersData.popperOffsets&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),null!=state.modifiersData.arrow&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})},data:{}},passive={passive:!0};var eventListeners_default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function effect3(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=void 0===_options$scroll||_options$scroll,_options$resize=options.resize,resize=void 0===_options$resize||_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive)}),resize&&window2.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive)}),resize&&window2.removeEventListener("resize",instance.update,passive)}},data:{}},hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var hash2={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash2[matched]})}function getWindowScroll(node){var win=getWindow(node);return{scrollLeft:win.pageXOffset,scrollTop:win.pageYOffset}}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;void 0===list&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===(null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getClientRectFromMixedType(element,clippingParent,strategy){return"viewport"===clippingParent?rectToClientRect(function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&"fixed"===strategy)&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width,height,x:x+getWindowScrollBarX(element),y}}(element,strategy)):isElement(clippingParent)?function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,"fixed"===strategy);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(clippingParent,strategy):rectToClientRect(function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body,width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return"rtl"===getComputedStyle(body||html).direction&&(x+=max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}(getDocumentElement(element)))}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents="clippingParents"===boundary?function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),clipperElement=["absolute","fixed"].indexOf(getComputedStyle(element).position)>=0&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&"body"!==getNodeName(clippingParent)}):[]}(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=max(rect.top,accRect.top),accRect.right=min(rect.right,accRect.right),accRect.bottom=min(rect.bottom,accRect.bottom),accRect.left=max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function computeOffsets(_ref){var offsets,reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2;switch(basePlacement){case top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(null!=mainAxis){var len="y"===mainAxis?"height":"width";switch(variation){case"start":offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case"end":offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2)}}return offsets}function detectOverflow(state,options){void 0===options&&(options={});var _options=options,_options$placement=_options.placement,placement=void 0===_options$placement?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=void 0===_options$strategy?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=void 0===_options$boundary?"clippingParents":_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=void 0===_options$rootBoundary?"viewport":_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=void 0===_options$elementConte?"popper":_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=void 0!==_options$altBoundary&&_options$altBoundary,_options$padding=_options.padding,padding=void 0===_options$padding?0:_options$padding,paddingObject=mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,basePlacements)),altContext="popper"===elementContext?"reference":"popper",popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect="popper"===elementContext?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if("popper"===elementContext&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply})}return overflowOffsets}var flip_default={name:"flip",enabled:!0,phase:"main",fn:function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0===_options$altAxis||_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=void 0===_options$flipVariatio||_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),fallbackPlacements=specifiedFallbackPlacements||(basePlacement===preferredPlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:function getExpandedFallbackPlacements(placement){if("auto"===getBasePlacement(placement))return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}(preferredPlacement)),placements2=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat("auto"===getBasePlacement(placement2)?function computeAutoPlacement(state,options){void 0===options&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=void 0===_options$allowedAutoP?placements:_options$allowedAutoP,variation=getVariation(placement),placements2=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements2.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});0===allowedPlacements.length&&(allowedPlacements=placements2);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements2[0],i=0;i<placements2.length;i++){var placement=placements2[i],_basePlacement=getBasePlacement(placement),isStartVariation="start"===getVariation(placement),isVertical=[top,bottom].indexOf(_basePlacement)>=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var _loop=function(_i2){var fittingPlacement=placements2.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=flipVariations?3:1;_i>0;_i--){if("break"===_loop(_i))break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(overflow,rect,preventedOffsets){return void 0===preventedOffsets&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some(function(side){return overflow[side]>=0})}var hide_default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}};var offset_default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=void 0===_options$offset?[0,0]:_options$offset,data=placements.reduce(function(acc,placement){return acc[placement]=function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1,_ref="function"==typeof offset2?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;null!=state.modifiersData.popperOffsets&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}};var popperOffsets_default={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})},data:{}};var preventOverflow_default={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0!==_options$altAxis&&_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=void 0===_options$tether||_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=void 0===_options$tetherOffset?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=function getAltAxis(axis){return"x"===axis?"y":"x"}(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue="function"==typeof tetherOffset?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue="number"==typeof tetherOffsetValue?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide="y"===mainAxis?top:left,altSide="y"===mainAxis?bottom:right,len="y"===mainAxis?"height":"width",offset2=popperOffsets2[mainAxis],min2=offset2+overflow[mainSide],max2=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen="start"===variation?referenceRect[len]:popperRect[len],maxLen="start"===variation?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?"y"===mainAxis?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=null!=(_offsetModifierState$=offsetModifierState?.[mainAxis])?_offsetModifierState$:0,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?min(min2,offset2+minOffset-offsetModifierValue-clientOffset):min2,offset2,tether?max(max2,tetherMax):max2);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2}if(checkAltAxis){var _offsetModifierState$2,_mainSide="x"===mainAxis?top:left,_altSide="x"===mainAxis?bottom:right,_offset=popperOffsets2[altAxis],_len="y"===altAxis?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=-1!==[top,left].indexOf(basePlacement),_offsetModifierValue=null!=(_offsetModifierState$2=offsetModifierState?.[altAxis])?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v}(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}},requiresIfExists:["offset"]};function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){void 0===isFixed&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return 1!==scaleX||1!==scaleY}(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==getNodeName(offsetParent)||isScrollParent(documentElement))&&(scroll=function getNodeScroll(node){return node!==getWindow(node)&&isHTMLElement(node)?function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}(node):getWindowScroll(node)}(offsetParent)),isHTMLElement(offsetParent)?((offsets=getBoundingClientRect(offsetParent,!0)).x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function order(modifiers){var map=new Map,visited=new Set,result=[];function sort(modifier){visited.add(modifier.name),[].concat(modifier.requires||[],modifier.requiresIfExists||[]).forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}}),result.push(modifier)}return modifiers.forEach(function(modifier){map.set(modifier.name,modifier)}),modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier)}),result}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some(function(element){return!(element&&"function"==typeof element.getBoundingClientRect)})}function popperGenerator(generatorOptions){void 0===generatorOptions&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers3=void 0===_generatorOptions$def?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=void 0===_generatorOptions$def2?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){void 0===options&&(options=defaultOptions);var fn2,pending,state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2="function"==typeof setOptionsAction?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}(function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}([].concat(defaultModifiers3,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),function runModifierEffects(){state.orderedModifiers.forEach(function(_ref){var name=_ref.name,_ref$options=_ref.options,options2=void 0===_ref$options?{}:_ref$options,effect4=_ref.effect;if("function"==typeof effect4){var cleanupFn=effect4({state,name,instance,options:options2}),noopFn=function(){};effectCleanupFns.push(cleanupFn||noopFn)}})}(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),"fixed"===state.options.strategy),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;index<state.orderedModifiers.length;index++)if(!0!==state.reset){var _state$orderedModifie=state.orderedModifiers[index],fn2=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=void 0===_state$orderedModifie2?{}:_state$orderedModifie2,name=_state$orderedModifie.name;"function"==typeof fn2&&(state=fn2({state,options:_options,name,instance})||state)}else state.reset=!1,index=-1}}},update:(fn2=function(){return new Promise(function(resolve){instance.forceUpdate(),resolve(state)})},function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn2())})})),pending}),destroy:function(){cleanupModifierEffects(),isDestroyed=!0}};if(!areValidElements(reference2,popper2))return instance;function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn2){return fn2()}),effectCleanupFns=[]}return instance.setOptions(options).then(function(state2){!isDestroyed&&options.onFirstUpdate&&options.onFirstUpdate(state2)}),instance}}popperGenerator(),popperGenerator({defaultModifiers:[eventListeners_default,popperOffsets_default,computeStyles_default,applyStyles_default]});var createPopper3=popperGenerator({defaultModifiers:[eventListeners_default,popperOffsets_default,computeStyles_default,applyStyles_default,offset_default,flip_default,preventOverflow_default,arrow_default,hide_default]}),import_react_fast_compare=(0,_chunk_IMSF75WX_js__WEBPACK_IMPORTED_MODULE_3__.f1)(require_react_fast_compare()),EMPTY_MODIFIERS=[];(0,_chunk_IMSF75WX_js__WEBPACK_IMPORTED_MODULE_3__.f1)(require_warning());function useGetLatest(val){var ref=react__WEBPACK_IMPORTED_MODULE_4__.useRef(val);return ref.current=val,react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function(){return ref.current},[])}var noop=function(){};function generateBoundingClientRect(x,y){return void 0===x&&(x=0),void 0===y&&(y=0),function(){return{width:0,height:0,top:y,right:x,bottom:y,left:x,x:0,y:0,toJSON:function(){return null}}}}var _excluded=["styles","attributes"],virtualElement={getBoundingClientRect:generateBoundingClientRect()},defaultConfig={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function usePopperTooltip(config,popperOptions){var _popperProps$state,_popperProps$state$mo,_popperProps$state$mo2;void 0===config&&(config={}),void 0===popperOptions&&(popperOptions={});var finalConfig=Object.keys(defaultConfig).reduce(function(config2,key){var _extends2;return(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({},config2,((_extends2={})[key]=void 0!==config2[key]?config2[key]:defaultConfig[key],_extends2))},config),defaultModifiers3=react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function(){return[{name:"offset",options:{offset:finalConfig.offset}}]},Array.isArray(finalConfig.offset)?finalConfig.offset:[]),finalPopperOptions=(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({},popperOptions,{placement:popperOptions.placement||finalConfig.placement,modifiers:popperOptions.modifiers||defaultModifiers3}),_React$useState=react__WEBPACK_IMPORTED_MODULE_4__.useState(null),triggerRef=_React$useState[0],setTriggerRef=_React$useState[1],_React$useState2=react__WEBPACK_IMPORTED_MODULE_4__.useState(null),tooltipRef=_React$useState2[0],setTooltipRef=_React$useState2[1],_useControlledState=function useControlledState(_ref){var initial=_ref.initial,value=_ref.value,_ref$onChange=_ref.onChange,onChange=void 0===_ref$onChange?noop:_ref$onChange;if(void 0===initial&&void 0===value)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var _React$useState=react__WEBPACK_IMPORTED_MODULE_4__.useState(initial),state=_React$useState[0],setState=_React$useState[1],getLatest=useGetLatest(state),set=react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function(updater){var state2=getLatest(),updatedState="function"==typeof updater?updater(state2):updater;"function"==typeof updatedState.persist&&updatedState.persist(),setState(updatedState),"function"==typeof onChange&&onChange(updatedState)},[getLatest,onChange]),isControlled=void 0!==value;return[isControlled?value:state,isControlled?onChange:set]}({initial:finalConfig.defaultVisible,value:finalConfig.visible,onChange:finalConfig.onVisibleChange}),visible=_useControlledState[0],setVisible=_useControlledState[1],timer=react__WEBPACK_IMPORTED_MODULE_4__.useRef();react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){return function(){return clearTimeout(timer.current)}},[]);var _usePopper=function(referenceElement,popperElement,options){void 0===options&&(options={});var prevOptions=react__WEBPACK_IMPORTED_MODULE_4__.useRef(null),optionsWithDefaults={onFirstUpdate:options.onFirstUpdate,placement:options.placement||"bottom",strategy:options.strategy||"absolute",modifiers:options.modifiers||EMPTY_MODIFIERS},_React$useState=react__WEBPACK_IMPORTED_MODULE_4__.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1],updateStateModifier=react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(_ref){var state2=_ref.state,elements=Object.keys(state2.elements);react_dom__WEBPACK_IMPORTED_MODULE_5__.flushSync(function(){setState({styles:fromEntries(elements.map(function(element){return[element,state2.styles[element]||{}]})),attributes:fromEntries(elements.map(function(element){return[element,state2.attributes[element]]}))})})},requires:["computeStyles"]}},[]),popperOptions=react__WEBPACK_IMPORTED_MODULE_4__.useMemo(function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:!1}])};return(0,import_react_fast_compare.default)(prevOptions.current,newOptions)?prevOptions.current||newOptions:(prevOptions.current=newOptions,newOptions)},[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]),popperInstanceRef=react__WEBPACK_IMPORTED_MODULE_4__.useRef();return useIsomorphicLayoutEffect(function(){popperInstanceRef.current&&popperInstanceRef.current.setOptions(popperOptions)},[popperOptions]),useIsomorphicLayoutEffect(function(){if(null!=referenceElement&&null!=popperElement){var popperInstance=(options.createPopper||createPopper3)(referenceElement,popperElement,popperOptions);return popperInstanceRef.current=popperInstance,function(){popperInstance.destroy(),popperInstanceRef.current=null}}},[referenceElement,popperElement,options.createPopper]),{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}}(finalConfig.followCursor?virtualElement:triggerRef,tooltipRef,finalPopperOptions),styles=_usePopper.styles,attributes=_usePopper.attributes,popperProps=(0,_chunk_242VQQM5_js__WEBPACK_IMPORTED_MODULE_0__.i)(_usePopper,_excluded),update=popperProps.update,getLatest=useGetLatest({visible,triggerRef,tooltipRef,finalConfig}),isTriggeredBy=react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function(trigger){return Array.isArray(finalConfig.trigger)?finalConfig.trigger.includes(trigger):finalConfig.trigger===trigger},Array.isArray(finalConfig.trigger)?finalConfig.trigger:[finalConfig.trigger]),hideTooltip=react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function(){clearTimeout(timer.current),timer.current=window.setTimeout(function(){return setVisible(!1)},finalConfig.delayHide)},[finalConfig.delayHide,setVisible]),showTooltip=react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function(){clearTimeout(timer.current),timer.current=window.setTimeout(function(){return setVisible(!0)},finalConfig.delayShow)},[finalConfig.delayShow,setVisible]),toggleTooltip=react__WEBPACK_IMPORTED_MODULE_4__.useCallback(function(){getLatest().visible?hideTooltip():showTooltip()},[getLatest,hideTooltip,showTooltip]);react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(getLatest().finalConfig.closeOnOutsideClick){var handleClickOutside=function(event){var _event$composedPath,_getLatest=getLatest(),tooltipRef2=_getLatest.tooltipRef,triggerRef2=_getLatest.triggerRef,target=(null==event.composedPath||null==(_event$composedPath=event.composedPath())?void 0:_event$composedPath[0])||event.target;target instanceof Node&&null!=tooltipRef2&&null!=triggerRef2&&!tooltipRef2.contains(target)&&!triggerRef2.contains(target)&&hideTooltip()};return document.addEventListener("mousedown",handleClickOutside),function(){return document.removeEventListener("mousedown",handleClickOutside)}}},[getLatest,hideTooltip]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=triggerRef&&isTriggeredBy("click"))return triggerRef.addEventListener("click",toggleTooltip),function(){return triggerRef.removeEventListener("click",toggleTooltip)}},[triggerRef,isTriggeredBy,toggleTooltip]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=triggerRef&&isTriggeredBy("double-click"))return triggerRef.addEventListener("dblclick",toggleTooltip),function(){return triggerRef.removeEventListener("dblclick",toggleTooltip)}},[triggerRef,isTriggeredBy,toggleTooltip]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=triggerRef&&isTriggeredBy("right-click")){var preventDefaultAndToggle=function(event){event.preventDefault(),toggleTooltip()};return triggerRef.addEventListener("contextmenu",preventDefaultAndToggle),function(){return triggerRef.removeEventListener("contextmenu",preventDefaultAndToggle)}}},[triggerRef,isTriggeredBy,toggleTooltip]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=triggerRef&&isTriggeredBy("focus"))return triggerRef.addEventListener("focus",showTooltip),triggerRef.addEventListener("blur",hideTooltip),function(){triggerRef.removeEventListener("focus",showTooltip),triggerRef.removeEventListener("blur",hideTooltip)}},[triggerRef,isTriggeredBy,showTooltip,hideTooltip]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=triggerRef&&isTriggeredBy("hover"))return triggerRef.addEventListener("mouseenter",showTooltip),triggerRef.addEventListener("mouseleave",hideTooltip),function(){triggerRef.removeEventListener("mouseenter",showTooltip),triggerRef.removeEventListener("mouseleave",hideTooltip)}},[triggerRef,isTriggeredBy,showTooltip,hideTooltip]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=tooltipRef&&isTriggeredBy("hover")&&getLatest().finalConfig.interactive)return tooltipRef.addEventListener("mouseenter",showTooltip),tooltipRef.addEventListener("mouseleave",hideTooltip),function(){tooltipRef.removeEventListener("mouseenter",showTooltip),tooltipRef.removeEventListener("mouseleave",hideTooltip)}},[tooltipRef,isTriggeredBy,showTooltip,hideTooltip,getLatest]);var isReferenceHidden=null==popperProps||null==(_popperProps$state=popperProps.state)||null==(_popperProps$state$mo=_popperProps$state.modifiersData)||null==(_popperProps$state$mo2=_popperProps$state$mo.hide)?void 0:_popperProps$state$mo2.isReferenceHidden;react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){finalConfig.closeOnTriggerHidden&&isReferenceHidden&&hideTooltip()},[finalConfig.closeOnTriggerHidden,hideTooltip,isReferenceHidden]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(finalConfig.followCursor&&null!=triggerRef)return triggerRef.addEventListener("mousemove",setMousePosition),function(){return triggerRef.removeEventListener("mousemove",setMousePosition)};function setMousePosition(_ref){var clientX=_ref.clientX,clientY=_ref.clientY;virtualElement.getBoundingClientRect=generateBoundingClientRect(clientX,clientY),update?.()}},[finalConfig.followCursor,triggerRef,update]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(function(){if(null!=tooltipRef&&null!=update&&null!=finalConfig.mutationObserverOptions){var observer=new MutationObserver(update);return observer.observe(tooltipRef,finalConfig.mutationObserverOptions),function(){return observer.disconnect()}}},[finalConfig.mutationObserverOptions,tooltipRef,update]);return(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({getArrowProps:function(args){return void 0===args&&(args={}),(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({},args,attributes.arrow,{style:(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({},args.style,styles.arrow),"data-popper-arrow":!0})},getTooltipProps:function(args){return void 0===args&&(args={}),(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({},args,{style:(0,_chunk_LE2LTDW3_js__WEBPACK_IMPORTED_MODULE_1__.r)({},args.style,styles.popper)},attributes.popper,{"data-popper-interactive":finalConfig.interactive})},setTooltipRef,setTriggerRef,tooltipRef,triggerRef,visible},popperProps)}var{document:document2}=_storybook_global__WEBPACK_IMPORTED_MODULE_7__.global,match=(0,import_memoizerific.default)(1e3)((requests,actual,value,fallback=0)=>actual.split("-")[0]===requests?value:fallback),Arrow=storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({position:"absolute",borderStyle:"solid"},({placement})=>{let x=0,y=0;switch(!0){case placement.startsWith("left")||placement.startsWith("right"):y=8;break;case placement.startsWith("top")||placement.startsWith("bottom"):x=8}return{transform:`translate3d(${x}px, ${y}px, 0px)`}},({theme,color,placement})=>({bottom:`${match("top",placement,"-8px","auto")}`,top:`${match("bottom",placement,"-8px","auto")}`,right:`${match("left",placement,"-8px","auto")}`,left:`${match("right",placement,"-8px","auto")}`,borderBottomWidth:`${match("top",placement,"0",8)}px`,borderTopWidth:`${match("bottom",placement,"0",8)}px`,borderRightWidth:`${match("left",placement,"0",8)}px`,borderLeftWidth:`${match("right",placement,"0",8)}px`,borderTopColor:match("top",placement,theme.color[color]||color||"light"===theme.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_9__.Zt)(theme.background.app):theme.background.app,"transparent"),borderBottomColor:match("bottom",placement,theme.color[color]||color||"light"===theme.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_9__.Zt)(theme.background.app):theme.background.app,"transparent"),borderLeftColor:match("left",placement,theme.color[color]||color||"light"===theme.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_9__.Zt)(theme.background.app):theme.background.app,"transparent"),borderRightColor:match("right",placement,theme.color[color]||color||"light"===theme.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_9__.Zt)(theme.background.app):theme.background.app,"transparent")})),Wrapper=storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(({hidden})=>({display:hidden?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"}),({theme,color,hasChrome})=>hasChrome?{background:color&&theme.color[color]||color||"light"===theme.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_9__.Zt)(theme.background.app):theme.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:theme.appBorderRadius+2,fontSize:theme.typography.size.s1}:{}),Tooltip=react__WEBPACK_IMPORTED_MODULE_4__.forwardRef(({placement="top",hasChrome=!0,children,arrowProps={},tooltipRef,color,withArrows,...props},ref)=>react__WEBPACK_IMPORTED_MODULE_4__.createElement(Wrapper,{"data-testid":"tooltip",hasChrome,ref,...props,color},hasChrome&&withArrows&&react__WEBPACK_IMPORTED_MODULE_4__.createElement(Arrow,{placement,...arrowProps,color}),children));Tooltip.displayName="Tooltip";var TargetContainer=storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div`
2
+ display: inline-block;
3
+ cursor: ${props=>"hover"===props.trigger||props.trigger?.includes("hover")?"default":"pointer"};
4
+ `,TargetSvgContainer=storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.g`
5
+ cursor: ${props=>"hover"===props.trigger||props.trigger?.includes("hover")?"default":"pointer"};
6
+ `,WithTooltipPure=({svg=!1,trigger="click",closeOnOutsideClick=!1,placement="top",modifiers=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome=!0,defaultVisible=!1,withArrows,offset:offset2,tooltip,children,closeOnTriggerHidden,mutationObserverOptions,delayHide="hover"===trigger?200:0,visible,interactive,delayShow="hover"===trigger?400:0,strategy,followCursor,onVisibleChange,portalContainer,...props})=>{let Container=svg?TargetSvgContainer:TargetContainer,{getArrowProps,getTooltipProps,setTooltipRef,setTriggerRef,visible:isVisible,state}=usePopperTooltip({trigger,placement,defaultVisible,delayHide,interactive,closeOnOutsideClick,closeOnTriggerHidden,onVisibleChange,delayShow,followCursor,mutationObserverOptions,visible,offset:offset2},{modifiers,strategy}),portalTarget=("string"==typeof portalContainer?document2.querySelector(portalContainer):portalContainer)||document2.body,tooltipComponent=isVisible?react__WEBPACK_IMPORTED_MODULE_4__.createElement(Tooltip,{placement:state?.placement,ref:setTooltipRef,hasChrome,arrowProps:getArrowProps(),withArrows,...getTooltipProps()},"function"==typeof tooltip?tooltip({onHide:()=>onVisibleChange(!1)}):tooltip):null;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_4__.createElement(Container,{trigger,ref:setTriggerRef,...props},children),isVisible&&react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal(tooltipComponent,portalTarget))},WithToolTipState=({startOpen=!1,onVisibleChange:onChange,...rest})=>{let[tooltipShown,setTooltipShown]=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(startOpen),onVisibilityChange=(0,react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(visibility=>{onChange&&!1===onChange(visibility)||setTooltipShown(visibility)},[onChange]);return(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(()=>{let hide2=()=>onVisibilityChange(!1),handleKeyDown=e=>{"Escape"===e.key&&hide2()};document2.addEventListener("keydown",handleKeyDown,!1);let iframes=Array.from(document2.getElementsByTagName("iframe")),unbinders=[];return iframes.forEach(iframe=>{let bind=()=>{try{iframe.contentWindow.document&&(iframe.contentWindow.document.addEventListener("click",hide2),unbinders.push(()=>{try{iframe.contentWindow.document.removeEventListener("click",hide2)}catch{}}))}catch{}};bind(),iframe.addEventListener("load",bind),unbinders.push(()=>{iframe.removeEventListener("load",bind)})}),()=>{document2.removeEventListener("keydown",handleKeyDown),unbinders.forEach(unbind=>{unbind()})}}),react__WEBPACK_IMPORTED_MODULE_4__.createElement(WithTooltipPure,{...rest,visible:tooltipShown,onVisibleChange:onVisibilityChange})},DeprecatedPure=props=>((0,storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_6__.deprecate)("WithTooltipPure is deprecated and will be removed in Storybook 11. Please use WithTooltip instead."),react__WEBPACK_IMPORTED_MODULE_4__.createElement(WithTooltipPure,{"data-deprecated":"WithTooltipPure",...props}))}}]);
7
+ //# sourceMappingURL=9560.668052f3.iframe.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"9560.668052f3.iframe.bundle.js","mappings":";;AA4+CA;AACA;AACA;AACA","sources":["webpack://moja-work/./node_modules/storybook/dist/_browser-chunks/WithTooltip-7X4HQR7L.js"],"sourcesContent":["import {\n _objectWithoutPropertiesLoose\n} from \"./chunk-242VQQM5.js\";\nimport {\n _extends\n} from \"./chunk-LE2LTDW3.js\";\nimport {\n require_memoizerific\n} from \"./chunk-DRQKCCAG.js\";\nimport {\n __commonJS,\n __toESM\n} from \"./chunk-IMSF75WX.js\";\n\n// ../../node_modules/react-fast-compare/index.js\nvar require_react_fast_compare = __commonJS({\n \"../../node_modules/react-fast-compare/index.js\"(exports, module) {\n var hasElementType = typeof Element < \"u\", hasMap = typeof Map == \"function\", hasSet = typeof Set == \"function\", hasArrayBuffer = typeof ArrayBuffer == \"function\" && !!ArrayBuffer.isView;\n function equal(a, b) {\n if (a === b) return !0;\n if (a && b && typeof a == \"object\" && typeof b == \"object\") {\n if (a.constructor !== b.constructor) return !1;\n var length, i, keys;\n if (Array.isArray(a)) {\n if (length = a.length, length != b.length) return !1;\n for (i = length; i-- !== 0; )\n if (!equal(a[i], b[i])) return !1;\n return !0;\n }\n var it;\n if (hasMap && a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) return !1;\n for (it = a.entries(); !(i = it.next()).done; )\n if (!b.has(i.value[0])) return !1;\n for (it = a.entries(); !(i = it.next()).done; )\n if (!equal(i.value[1], b.get(i.value[0]))) return !1;\n return !0;\n }\n if (hasSet && a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) return !1;\n for (it = a.entries(); !(i = it.next()).done; )\n if (!b.has(i.value[0])) return !1;\n return !0;\n }\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n if (length = a.length, length != b.length) return !1;\n for (i = length; i-- !== 0; )\n if (a[i] !== b[i]) return !1;\n return !0;\n }\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf == \"function\" && typeof b.valueOf == \"function\") return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString == \"function\" && typeof b.toString == \"function\") return a.toString() === b.toString();\n if (keys = Object.keys(a), length = keys.length, length !== Object.keys(b).length) return !1;\n for (i = length; i-- !== 0; )\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return !1;\n if (hasElementType && a instanceof Element) return !1;\n for (i = length; i-- !== 0; )\n if (!((keys[i] === \"_owner\" || keys[i] === \"__v\" || keys[i] === \"__o\") && a.$$typeof) && !equal(a[keys[i]], b[keys[i]]))\n return !1;\n return !0;\n }\n return a !== a && b !== b;\n }\n module.exports = function(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message || \"\").match(/stack|recursion/i))\n return console.warn(\"react-fast-compare cannot handle circular refs\"), !1;\n throw error;\n }\n };\n }\n});\n\n// ../../node_modules/warning/warning.js\nvar require_warning = __commonJS({\n \"../../node_modules/warning/warning.js\"(exports, module) {\n \"use strict\";\n var __DEV__ = process.env.NODE_ENV !== \"production\", warning2 = function() {\n };\n __DEV__ && (printWarning = function(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++)\n args[key - 1] = arguments[key];\n var argIndex = 0, message = \"Warning: \" + format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n typeof console < \"u\" && console.error(message);\n try {\n throw new Error(message);\n } catch {\n }\n }, warning2 = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++)\n args[key - 2] = arguments[key];\n if (format === void 0)\n throw new Error(\n \"`warning(condition, format, ...args)` requires a warning message argument\"\n );\n condition || printWarning.apply(null, [format].concat(args));\n });\n var printWarning;\n module.exports = warning2;\n }\n});\n\n// src/components/components/tooltip/WithTooltip.tsx\nvar import_memoizerific = __toESM(require_memoizerific(), 1);\nimport React7, { useCallback as useCallback4, useEffect as useEffect6, useState as useState5 } from \"react\";\nimport ReactDOM2 from \"react-dom\";\nimport { deprecate } from \"storybook/internal/client-logger\";\nimport { global } from \"@storybook/global\";\n\n// ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js\nimport * as React6 from \"react\";\n\n// ../../node_modules/react-popper/lib/esm/Popper.js\nimport * as React4 from \"react\";\n\n// ../../node_modules/react-popper/lib/esm/Manager.js\nimport * as React from \"react\";\nvar ManagerReferenceNodeContext = React.createContext(), ManagerReferenceNodeSetterContext = React.createContext();\n\n// ../../node_modules/react-popper/lib/esm/utils.js\nimport * as React2 from \"react\";\nvar fromEntries = function(entries) {\n return entries.reduce(function(acc, _ref) {\n var key = _ref[0], value = _ref[1];\n return acc[key] = value, acc;\n }, {});\n}, useIsomorphicLayoutEffect = typeof window < \"u\" && window.document && window.document.createElement ? React2.useLayoutEffect : React2.useEffect;\n\n// ../../node_modules/react-popper/lib/esm/usePopper.js\nimport * as React3 from \"react\";\nimport * as ReactDOM from \"react-dom\";\n\n// ../../node_modules/@popperjs/core/lib/enums.js\nvar top = \"top\", bottom = \"bottom\", right = \"right\", left = \"left\", auto = \"auto\", basePlacements = [top, bottom, right, left], start = \"start\", end = \"end\", clippingParents = \"clippingParents\", viewport = \"viewport\", popper = \"popper\", reference = \"reference\", variationPlacements = basePlacements.reduce(function(acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []), placements = [].concat(basePlacements, [auto]).reduce(function(acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []), beforeRead = \"beforeRead\", read = \"read\", afterRead = \"afterRead\", beforeMain = \"beforeMain\", main = \"main\", afterMain = \"afterMain\", beforeWrite = \"beforeWrite\", write = \"write\", afterWrite = \"afterWrite\", modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js\nfunction getNodeName(element) {\n return element ? (element.nodeName || \"\").toLowerCase() : null;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js\nfunction getWindow(node) {\n if (node == null)\n return window;\n if (node.toString() !== \"[object Window]\") {\n var ownerDocument = node.ownerDocument;\n return ownerDocument && ownerDocument.defaultView || window;\n }\n return node;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\nfunction isShadowRoot(node) {\n if (typeof ShadowRoot > \"u\")\n return !1;\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\n// ../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function(name) {\n var style = state.styles[name] || {}, attributes = state.attributes[name] || {}, element = state.elements[name];\n !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(name2) {\n var value = attributes[name2];\n value === !1 ? element.removeAttribute(name2) : element.setAttribute(name2, value === !0 ? \"\" : value);\n }));\n });\n}\nfunction effect(_ref2) {\n var state = _ref2.state, initialStyles = {\n popper: {\n position: state.options.strategy,\n left: \"0\",\n top: \"0\",\n margin: \"0\"\n },\n arrow: {\n position: \"absolute\"\n },\n reference: {}\n };\n return Object.assign(state.elements.popper.style, initialStyles.popper), state.styles = initialStyles, state.elements.arrow && Object.assign(state.elements.arrow.style, initialStyles.arrow), function() {\n Object.keys(state.elements).forEach(function(name) {\n var element = state.elements[name], attributes = state.attributes[name] || {}, styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]), style = styleProperties.reduce(function(style2, property) {\n return style2[property] = \"\", style2;\n }, {});\n !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(attribute) {\n element.removeAttribute(attribute);\n }));\n });\n };\n}\nvar applyStyles_default = {\n name: \"applyStyles\",\n enabled: !0,\n phase: \"write\",\n fn: applyStyles,\n effect,\n requires: [\"computeStyles\"]\n};\n\n// ../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js\nfunction getBasePlacement(placement) {\n return placement.split(\"-\")[0];\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/math.js\nvar max = Math.max, min = Math.min, round = Math.round;\n\n// ../../node_modules/@popperjs/core/lib/utils/userAgent.js\nfunction getUAString() {\n var uaData = navigator.userAgentData;\n return uaData != null && uaData.brands && Array.isArray(uaData.brands) ? uaData.brands.map(function(item) {\n return item.brand + \"/\" + item.version;\n }).join(\" \") : navigator.userAgent;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js\nfunction isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy) {\n includeScale === void 0 && (includeScale = !1), isFixedStrategy === void 0 && (isFixedStrategy = !1);\n var clientRect = element.getBoundingClientRect(), scaleX = 1, scaleY = 1;\n includeScale && isHTMLElement(element) && (scaleX = element.offsetWidth > 0 && round(clientRect.width) / element.offsetWidth || 1, scaleY = element.offsetHeight > 0 && round(clientRect.height) / element.offsetHeight || 1);\n var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport, addVisualOffsets = !isLayoutViewport() && isFixedStrategy, x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX, y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY, width = clientRect.width / scaleX, height = clientRect.height / scaleY;\n return {\n width,\n height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x,\n y\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js\nfunction getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element), width = element.offsetWidth, height = element.offsetHeight;\n return Math.abs(clientRect.width - width) <= 1 && (width = clientRect.width), Math.abs(clientRect.height - height) <= 1 && (height = clientRect.height), {\n x: element.offsetLeft,\n y: element.offsetTop,\n width,\n height\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/contains.js\nfunction contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode();\n if (parent.contains(child))\n return !0;\n if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n do {\n if (next && parent.isSameNode(next))\n return !0;\n next = next.parentNode || next.host;\n } while (next);\n }\n return !1;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js\nfunction isTableElement(element) {\n return [\"table\", \"td\", \"th\"].indexOf(getNodeName(element)) >= 0;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js\nfunction getDocumentElement(element) {\n return ((isElement(element) ? element.ownerDocument : (\n // $FlowFixMe[prop-missing]\n element.document\n )) || window.document).documentElement;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js\nfunction getParentNode(element) {\n return getNodeName(element) === \"html\" ? element : (\n // this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || // DOM Element detected\n (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element)\n );\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js\nfunction getTrueOffsetParent(element) {\n return !isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === \"fixed\" ? null : element.offsetParent;\n}\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString()), isIE = /Trident/i.test(getUAString());\n if (isIE && isHTMLElement(element)) {\n var elementCss = getComputedStyle(element);\n if (elementCss.position === \"fixed\")\n return null;\n }\n var currentNode = getParentNode(element);\n for (isShadowRoot(currentNode) && (currentNode = currentNode.host); isHTMLElement(currentNode) && [\"html\", \"body\"].indexOf(getNodeName(currentNode)) < 0; ) {\n var css = getComputedStyle(currentNode);\n if (css.transform !== \"none\" || css.perspective !== \"none\" || css.contain === \"paint\" || [\"transform\", \"perspective\"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === \"filter\" || isFirefox && css.filter && css.filter !== \"none\")\n return currentNode;\n currentNode = currentNode.parentNode;\n }\n return null;\n}\nfunction getOffsetParent(element) {\n for (var window2 = getWindow(element), offsetParent = getTrueOffsetParent(element); offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === \"static\"; )\n offsetParent = getTrueOffsetParent(offsetParent);\n return offsetParent && (getNodeName(offsetParent) === \"html\" || getNodeName(offsetParent) === \"body\" && getComputedStyle(offsetParent).position === \"static\") ? window2 : offsetParent || getContainingBlock(element) || window2;\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js\nfunction getMainAxisFromPlacement(placement) {\n return [\"top\", \"bottom\"].indexOf(placement) >= 0 ? \"x\" : \"y\";\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/within.js\nfunction within(min2, value, max2) {\n return max(min2, min(value, max2));\n}\nfunction withinMaxClamp(min2, value, max2) {\n var v = within(min2, value, max2);\n return v > max2 ? max2 : v;\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js\nfunction getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js\nfunction mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js\nfunction expandToHashMap(value, keys) {\n return keys.reduce(function(hashMap, key) {\n return hashMap[key] = value, hashMap;\n }, {});\n}\n\n// ../../node_modules/@popperjs/core/lib/modifiers/arrow.js\nvar toPaddingObject = function(padding, state) {\n return padding = typeof padding == \"function\" ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding, mergePaddingObject(typeof padding != \"number\" ? padding : expandToHashMap(padding, basePlacements));\n};\nfunction arrow(_ref) {\n var _state$modifiersData$, state = _ref.state, name = _ref.name, options = _ref.options, arrowElement = state.elements.arrow, popperOffsets2 = state.modifiersData.popperOffsets, basePlacement = getBasePlacement(state.placement), axis = getMainAxisFromPlacement(basePlacement), isVertical = [left, right].indexOf(basePlacement) >= 0, len = isVertical ? \"height\" : \"width\";\n if (!(!arrowElement || !popperOffsets2)) {\n var paddingObject = toPaddingObject(options.padding, state), arrowRect = getLayoutRect(arrowElement), minProp = axis === \"y\" ? top : left, maxProp = axis === \"y\" ? bottom : right, endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets2[axis] - state.rects.popper[len], startDiff = popperOffsets2[axis] - state.rects.reference[axis], arrowOffsetParent = getOffsetParent(arrowElement), clientSize = arrowOffsetParent ? axis === \"y\" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0, centerToReference = endDiff / 2 - startDiff / 2, min2 = paddingObject[minProp], max2 = clientSize - arrowRect[len] - paddingObject[maxProp], center = clientSize / 2 - arrowRect[len] / 2 + centerToReference, offset2 = within(min2, center, max2), axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$);\n }\n}\nfunction effect2(_ref2) {\n var state = _ref2.state, options = _ref2.options, _options$element = options.element, arrowElement = _options$element === void 0 ? \"[data-popper-arrow]\" : _options$element;\n arrowElement != null && (typeof arrowElement == \"string\" && (arrowElement = state.elements.popper.querySelector(arrowElement), !arrowElement) || contains(state.elements.popper, arrowElement) && (state.elements.arrow = arrowElement));\n}\nvar arrow_default = {\n name: \"arrow\",\n enabled: !0,\n phase: \"main\",\n fn: arrow,\n effect: effect2,\n requires: [\"popperOffsets\"],\n requiresIfExists: [\"preventOverflow\"]\n};\n\n// ../../node_modules/@popperjs/core/lib/utils/getVariation.js\nfunction getVariation(placement) {\n return placement.split(\"-\")[1];\n}\n\n// ../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js\nvar unsetSides = {\n top: \"auto\",\n right: \"auto\",\n bottom: \"auto\",\n left: \"auto\"\n};\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x, y = _ref.y, dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\nfunction mapToStyles(_ref2) {\n var _Object$assign2, popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed, _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y, _ref3 = typeof roundOffsets == \"function\" ? roundOffsets({\n x,\n y\n }) : {\n x,\n y\n };\n x = _ref3.x, y = _ref3.y;\n var hasX = offsets.hasOwnProperty(\"x\"), hasY = offsets.hasOwnProperty(\"y\"), sideX = left, sideY = top, win = window;\n if (adaptive) {\n var offsetParent = getOffsetParent(popper2), heightProp = \"clientHeight\", widthProp = \"clientWidth\";\n if (offsetParent === getWindow(popper2) && (offsetParent = getDocumentElement(popper2), getComputedStyle(offsetParent).position !== \"static\" && position === \"absolute\" && (heightProp = \"scrollHeight\", widthProp = \"scrollWidth\")), offsetParent = offsetParent, placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : (\n // $FlowFixMe[prop-missing]\n offsetParent[heightProp]\n );\n y -= offsetY - popperRect.height, y *= gpuAcceleration ? 1 : -1;\n }\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : (\n // $FlowFixMe[prop-missing]\n offsetParent[widthProp]\n );\n x -= offsetX - popperRect.width, x *= gpuAcceleration ? 1 : -1;\n }\n }\n var commonStyles = Object.assign({\n position\n }, adaptive && unsetSides), _ref4 = roundOffsets === !0 ? roundOffsetsByDPR({\n x,\n y\n }, getWindow(popper2)) : {\n x,\n y\n };\n if (x = _ref4.x, y = _ref4.y, gpuAcceleration) {\n var _Object$assign;\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? \"0\" : \"\", _Object$assign[sideX] = hasX ? \"0\" : \"\", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : \"\", _Object$assign2[sideX] = hasX ? x + \"px\" : \"\", _Object$assign2.transform = \"\", _Object$assign2));\n}\nfunction computeStyles(_ref5) {\n var state = _ref5.state, options = _ref5.options, _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? !0 : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? !0 : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? !0 : _options$roundOffsets, commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration,\n isFixed: state.options.strategy === \"fixed\"\n };\n state.modifiersData.popperOffsets != null && (state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive,\n roundOffsets\n })))), state.modifiersData.arrow != null && (state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: \"absolute\",\n adaptive: !1,\n roundOffsets\n })))), state.attributes.popper = Object.assign({}, state.attributes.popper, {\n \"data-popper-placement\": state.placement\n });\n}\nvar computeStyles_default = {\n name: \"computeStyles\",\n enabled: !0,\n phase: \"beforeWrite\",\n fn: computeStyles,\n data: {}\n};\n\n// ../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js\nvar passive = {\n passive: !0\n};\nfunction effect3(_ref) {\n var state = _ref.state, instance = _ref.instance, options = _ref.options, _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? !0 : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? !0 : _options$resize, window2 = getWindow(state.elements.popper), scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n return scroll && scrollParents.forEach(function(scrollParent) {\n scrollParent.addEventListener(\"scroll\", instance.update, passive);\n }), resize && window2.addEventListener(\"resize\", instance.update, passive), function() {\n scroll && scrollParents.forEach(function(scrollParent) {\n scrollParent.removeEventListener(\"scroll\", instance.update, passive);\n }), resize && window2.removeEventListener(\"resize\", instance.update, passive);\n };\n}\nvar eventListeners_default = {\n name: \"eventListeners\",\n enabled: !0,\n phase: \"write\",\n fn: function() {\n },\n effect: effect3,\n data: {}\n};\n\n// ../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js\nvar hash = {\n left: \"right\",\n right: \"left\",\n bottom: \"top\",\n top: \"bottom\"\n};\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function(matched) {\n return hash[matched];\n });\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js\nvar hash2 = {\n start: \"end\",\n end: \"start\"\n};\nfunction getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function(matched) {\n return hash2[matched];\n });\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js\nfunction getWindowScroll(node) {\n var win = getWindow(node), scrollLeft = win.pageXOffset, scrollTop = win.pageYOffset;\n return {\n scrollLeft,\n scrollTop\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js\nfunction getWindowScrollBarX(element) {\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js\nfunction getViewportRect(element, strategy) {\n var win = getWindow(element), html = getDocumentElement(element), visualViewport = win.visualViewport, width = html.clientWidth, height = html.clientHeight, x = 0, y = 0;\n if (visualViewport) {\n width = visualViewport.width, height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n (layoutViewport || !layoutViewport && strategy === \"fixed\") && (x = visualViewport.offsetLeft, y = visualViewport.offsetTop);\n }\n return {\n width,\n height,\n x: x + getWindowScrollBarX(element),\n y\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js\nfunction getDocumentRect(element) {\n var _element$ownerDocumen, html = getDocumentElement(element), winScroll = getWindowScroll(element), body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body, width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0), height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0), x = -winScroll.scrollLeft + getWindowScrollBarX(element), y = -winScroll.scrollTop;\n return getComputedStyle(body || html).direction === \"rtl\" && (x += max(html.clientWidth, body ? body.clientWidth : 0) - width), {\n width,\n height,\n x,\n y\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js\nfunction isScrollParent(element) {\n var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js\nfunction getScrollParent(node) {\n return [\"html\", \"body\", \"#document\"].indexOf(getNodeName(node)) >= 0 ? node.ownerDocument.body : isHTMLElement(node) && isScrollParent(node) ? node : getScrollParent(getParentNode(node));\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js\nfunction listScrollParents(element, list) {\n var _element$ownerDocumen;\n list === void 0 && (list = []);\n var scrollParent = getScrollParent(element), isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body), win = getWindow(scrollParent), target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent, updatedList = list.concat(target);\n return isBody ? updatedList : (\n // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)))\n );\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js\nfunction rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, !1, strategy === \"fixed\");\n return rect.top = rect.top + element.clientTop, rect.left = rect.left + element.clientLeft, rect.bottom = rect.top + element.clientHeight, rect.right = rect.left + element.clientWidth, rect.width = element.clientWidth, rect.height = element.clientHeight, rect.x = rect.left, rect.y = rect.top, rect;\n}\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n}\nfunction getClippingParents(element) {\n var clippingParents2 = listScrollParents(getParentNode(element)), canEscapeClipping = [\"absolute\", \"fixed\"].indexOf(getComputedStyle(element).position) >= 0, clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n return isElement(clipperElement) ? clippingParents2.filter(function(clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== \"body\";\n }) : [];\n}\nfunction getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === \"clippingParents\" ? getClippingParents(element) : [].concat(boundary), clippingParents2 = [].concat(mainClippingParents, [rootBoundary]), firstClippingParent = clippingParents2[0], clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n return accRect.top = max(rect.top, accRect.top), accRect.right = min(rect.right, accRect.right), accRect.bottom = min(rect.bottom, accRect.bottom), accRect.left = max(rect.left, accRect.left), accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n return clippingRect.width = clippingRect.right - clippingRect.left, clippingRect.height = clippingRect.bottom - clippingRect.top, clippingRect.x = clippingRect.left, clippingRect.y = clippingRect.top, clippingRect;\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/computeOffsets.js\nfunction computeOffsets(_ref) {\n var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement, basePlacement = placement ? getBasePlacement(placement) : null, variation = placement ? getVariation(placement) : null, commonX = reference2.x + reference2.width / 2 - element.width / 2, commonY = reference2.y + reference2.height / 2 - element.height / 2, offsets;\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference2.y - element.height\n };\n break;\n case bottom:\n offsets = {\n x: commonX,\n y: reference2.y + reference2.height\n };\n break;\n case right:\n offsets = {\n x: reference2.x + reference2.width,\n y: commonY\n };\n break;\n case left:\n offsets = {\n x: reference2.x - element.width,\n y: commonY\n };\n break;\n default:\n offsets = {\n x: reference2.x,\n y: reference2.y\n };\n }\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n if (mainAxis != null) {\n var len = mainAxis === \"y\" ? \"height\" : \"width\";\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2);\n break;\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2);\n break;\n default:\n }\n }\n return offsets;\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/detectOverflow.js\nfunction detectOverflow(state, options) {\n options === void 0 && (options = {});\n var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? !1 : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding, paddingObject = mergePaddingObject(typeof padding != \"number\" ? padding : expandToHashMap(padding, basePlacements)), altContext = elementContext === popper ? reference : popper, popperRect = state.rects.popper, element = state.elements[altBoundary ? altContext : elementContext], clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy), referenceClientRect = getBoundingClientRect(state.elements.reference), popperOffsets2 = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: \"absolute\",\n placement\n }), popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2)), elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect, overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n }, offsetData = state.modifiersData.offset;\n if (elementContext === popper && offsetData) {\n var offset2 = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function(key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1, axis = [top, bottom].indexOf(key) >= 0 ? \"y\" : \"x\";\n overflowOffsets[key] += offset2[axis] * multiply;\n });\n }\n return overflowOffsets;\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js\nfunction computeAutoPlacement(state, options) {\n options === void 0 && (options = {});\n var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP, variation = getVariation(placement), placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {\n return getVariation(placement2) === variation;\n }) : basePlacements, allowedPlacements = placements2.filter(function(placement2) {\n return allowedAutoPlacements.indexOf(placement2) >= 0;\n });\n allowedPlacements.length === 0 && (allowedPlacements = placements2);\n var overflows = allowedPlacements.reduce(function(acc, placement2) {\n return acc[placement2] = detectOverflow(state, {\n placement: placement2,\n boundary,\n rootBoundary,\n padding\n })[getBasePlacement(placement2)], acc;\n }, {});\n return Object.keys(overflows).sort(function(a, b) {\n return overflows[a] - overflows[b];\n });\n}\n\n// ../../node_modules/@popperjs/core/lib/modifiers/flip.js\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto)\n return [];\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\nfunction flip(_ref) {\n var state = _ref.state, options = _ref.options, name = _ref.name;\n if (!state.modifiersData[name]._skip) {\n for (var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !0 : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? !0 : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements, preferredPlacement = state.options.placement, basePlacement = getBasePlacement(preferredPlacement), isBasePlacement = basePlacement === preferredPlacement, fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement)), placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) {\n return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state, {\n placement: placement2,\n boundary,\n rootBoundary,\n padding,\n flipVariations,\n allowedAutoPlacements\n }) : placement2);\n }, []), referenceRect = state.rects.reference, popperRect = state.rects.popper, checksMap = /* @__PURE__ */ new Map(), makeFallbackChecks = !0, firstFittingPlacement = placements2[0], i = 0; i < placements2.length; i++) {\n var placement = placements2[i], _basePlacement = getBasePlacement(placement), isStartVariation = getVariation(placement) === start, isVertical = [top, bottom].indexOf(_basePlacement) >= 0, len = isVertical ? \"width\" : \"height\", overflow = detectOverflow(state, {\n placement,\n boundary,\n rootBoundary,\n altBoundary,\n padding\n }), mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n referenceRect[len] > popperRect[len] && (mainVariationSide = getOppositePlacement(mainVariationSide));\n var altVariationSide = getOppositePlacement(mainVariationSide), checks = [];\n if (checkMainAxis && checks.push(overflow[_basePlacement] <= 0), checkAltAxis && checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0), checks.every(function(check) {\n return check;\n })) {\n firstFittingPlacement = placement, makeFallbackChecks = !1;\n break;\n }\n checksMap.set(placement, checks);\n }\n if (makeFallbackChecks)\n for (var numberOfChecks = flipVariations ? 3 : 1, _loop = function(_i2) {\n var fittingPlacement = placements2.find(function(placement2) {\n var checks2 = checksMap.get(placement2);\n if (checks2)\n return checks2.slice(0, _i2).every(function(check) {\n return check;\n });\n });\n if (fittingPlacement)\n return firstFittingPlacement = fittingPlacement, \"break\";\n }, _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n if (_ret === \"break\") break;\n }\n state.placement !== firstFittingPlacement && (state.modifiersData[name]._skip = !0, state.placement = firstFittingPlacement, state.reset = !0);\n }\n}\nvar flip_default = {\n name: \"flip\",\n enabled: !0,\n phase: \"main\",\n fn: flip,\n requiresIfExists: [\"offset\"],\n data: {\n _skip: !1\n }\n};\n\n// ../../node_modules/@popperjs/core/lib/modifiers/hide.js\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n return preventedOffsets === void 0 && (preventedOffsets = {\n x: 0,\n y: 0\n }), {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function(side) {\n return overflow[side] >= 0;\n });\n}\nfunction hide(_ref) {\n var state = _ref.state, name = _ref.name, referenceRect = state.rects.reference, popperRect = state.rects.popper, preventedOffsets = state.modifiersData.preventOverflow, referenceOverflow = detectOverflow(state, {\n elementContext: \"reference\"\n }), popperAltOverflow = detectOverflow(state, {\n altBoundary: !0\n }), referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets,\n popperEscapeOffsets,\n isReferenceHidden,\n hasPopperEscaped\n }, state.attributes.popper = Object.assign({}, state.attributes.popper, {\n \"data-popper-reference-hidden\": isReferenceHidden,\n \"data-popper-escaped\": hasPopperEscaped\n });\n}\nvar hide_default = {\n name: \"hide\",\n enabled: !0,\n phase: \"main\",\n requiresIfExists: [\"preventOverflow\"],\n fn: hide\n};\n\n// ../../node_modules/@popperjs/core/lib/modifiers/offset.js\nfunction distanceAndSkiddingToXY(placement, rects, offset2) {\n var basePlacement = getBasePlacement(placement), invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1, _ref = typeof offset2 == \"function\" ? offset2(Object.assign({}, rects, {\n placement\n })) : offset2, skidding = _ref[0], distance = _ref[1];\n return skidding = skidding || 0, distance = (distance || 0) * invertDistance, [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\nfunction offset(_ref2) {\n var state = _ref2.state, options = _ref2.options, name = _ref2.name, _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset, data = placements.reduce(function(acc, placement) {\n return acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2), acc;\n }, {}), _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;\n state.modifiersData.popperOffsets != null && (state.modifiersData.popperOffsets.x += x, state.modifiersData.popperOffsets.y += y), state.modifiersData[name] = data;\n}\nvar offset_default = {\n name: \"offset\",\n enabled: !0,\n phase: \"main\",\n requires: [\"popperOffsets\"],\n fn: offset\n};\n\n// ../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js\nfunction popperOffsets(_ref) {\n var state = _ref.state, name = _ref.name;\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: \"absolute\",\n placement: state.placement\n });\n}\nvar popperOffsets_default = {\n name: \"popperOffsets\",\n enabled: !0,\n phase: \"read\",\n fn: popperOffsets,\n data: {}\n};\n\n// ../../node_modules/@popperjs/core/lib/utils/getAltAxis.js\nfunction getAltAxis(axis) {\n return axis === \"x\" ? \"y\" : \"x\";\n}\n\n// ../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js\nfunction preventOverflow(_ref) {\n var state = _ref.state, options = _ref.options, name = _ref.name, _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? !0 : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? !1 : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? !0 : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset, overflow = detectOverflow(state, {\n boundary,\n rootBoundary,\n padding,\n altBoundary\n }), basePlacement = getBasePlacement(state.placement), variation = getVariation(state.placement), isBasePlacement = !variation, mainAxis = getMainAxisFromPlacement(basePlacement), altAxis = getAltAxis(mainAxis), popperOffsets2 = state.modifiersData.popperOffsets, referenceRect = state.rects.reference, popperRect = state.rects.popper, tetherOffsetValue = typeof tetherOffset == \"function\" ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset, normalizedTetherOffsetValue = typeof tetherOffsetValue == \"number\" ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue), offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null, data = {\n x: 0,\n y: 0\n };\n if (popperOffsets2) {\n if (checkMainAxis) {\n var _offsetModifierState$, mainSide = mainAxis === \"y\" ? top : left, altSide = mainAxis === \"y\" ? bottom : right, len = mainAxis === \"y\" ? \"height\" : \"width\", offset2 = popperOffsets2[mainAxis], min2 = offset2 + overflow[mainSide], max2 = offset2 - overflow[altSide], additive = tether ? -popperRect[len] / 2 : 0, minLen = variation === start ? referenceRect[len] : popperRect[len], maxLen = variation === start ? -popperRect[len] : -referenceRect[len], arrowElement = state.elements.arrow, arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n }, arrowPaddingObject = state.modifiersData[\"arrow#persistent\"] ? state.modifiersData[\"arrow#persistent\"].padding : getFreshSideObject(), arrowPaddingMin = arrowPaddingObject[mainSide], arrowPaddingMax = arrowPaddingObject[altSide], arrowLen = within(0, referenceRect[len], arrowRect[len]), minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis, maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis, arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow), clientOffset = arrowOffsetParent ? mainAxis === \"y\" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0, offsetModifierValue = (_offsetModifierState$ = offsetModifierState?.[mainAxis]) != null ? _offsetModifierState$ : 0, tetherMin = offset2 + minOffset - offsetModifierValue - clientOffset, tetherMax = offset2 + maxOffset - offsetModifierValue, preventedOffset = within(tether ? min(min2, tetherMin) : min2, offset2, tether ? max(max2, tetherMax) : max2);\n popperOffsets2[mainAxis] = preventedOffset, data[mainAxis] = preventedOffset - offset2;\n }\n if (checkAltAxis) {\n var _offsetModifierState$2, _mainSide = mainAxis === \"x\" ? top : left, _altSide = mainAxis === \"x\" ? bottom : right, _offset = popperOffsets2[altAxis], _len = altAxis === \"y\" ? \"height\" : \"width\", _min = _offset + overflow[_mainSide], _max = _offset - overflow[_altSide], isOriginSide = [top, left].indexOf(basePlacement) !== -1, _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState?.[altAxis]) != null ? _offsetModifierState$2 : 0, _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis, _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max, _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n popperOffsets2[altAxis] = _preventedOffset, data[altAxis] = _preventedOffset - _offset;\n }\n state.modifiersData[name] = data;\n }\n}\nvar preventOverflow_default = {\n name: \"preventOverflow\",\n enabled: !0,\n phase: \"main\",\n fn: preventOverflow,\n requiresIfExists: [\"offset\"]\n};\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js\nfunction getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js\nfunction getNodeScroll(node) {\n return node === getWindow(node) || !isHTMLElement(node) ? getWindowScroll(node) : getHTMLElementScroll(node);\n}\n\n// ../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect(), scaleX = round(rect.width) / element.offsetWidth || 1, scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n}\nfunction getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n isFixed === void 0 && (isFixed = !1);\n var isOffsetParentAnElement = isHTMLElement(offsetParent), offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent), documentElement = getDocumentElement(offsetParent), rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed), scroll = {\n scrollLeft: 0,\n scrollTop: 0\n }, offsets = {\n x: 0,\n y: 0\n };\n return (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) && ((getNodeName(offsetParent) !== \"body\" || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) && (scroll = getNodeScroll(offsetParent)), isHTMLElement(offsetParent) ? (offsets = getBoundingClientRect(offsetParent, !0), offsets.x += offsetParent.clientLeft, offsets.y += offsetParent.clientTop) : documentElement && (offsets.x = getWindowScrollBarX(documentElement))), {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/orderModifiers.js\nfunction order(modifiers) {\n var map = /* @__PURE__ */ new Map(), visited = /* @__PURE__ */ new Set(), result = [];\n modifiers.forEach(function(modifier) {\n map.set(modifier.name, modifier);\n });\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function(dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n depModifier && sort(depModifier);\n }\n }), result.push(modifier);\n }\n return modifiers.forEach(function(modifier) {\n visited.has(modifier.name) || sort(modifier);\n }), result;\n}\nfunction orderModifiers(modifiers) {\n var orderedModifiers = order(modifiers);\n return modifierPhases.reduce(function(acc, phase) {\n return acc.concat(orderedModifiers.filter(function(modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/debounce.js\nfunction debounce(fn2) {\n var pending;\n return function() {\n return pending || (pending = new Promise(function(resolve) {\n Promise.resolve().then(function() {\n pending = void 0, resolve(fn2());\n });\n })), pending;\n };\n}\n\n// ../../node_modules/@popperjs/core/lib/utils/mergeByName.js\nfunction mergeByName(modifiers) {\n var merged = modifiers.reduce(function(merged2, current) {\n var existing = merged2[current.name];\n return merged2[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current, merged2;\n }, {});\n return Object.keys(merged).map(function(key) {\n return merged[key];\n });\n}\n\n// ../../node_modules/@popperjs/core/lib/createPopper.js\nvar DEFAULT_OPTIONS = {\n placement: \"bottom\",\n modifiers: [],\n strategy: \"absolute\"\n};\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)\n args[_key] = arguments[_key];\n return !args.some(function(element) {\n return !(element && typeof element.getBoundingClientRect == \"function\");\n });\n}\nfunction popperGenerator(generatorOptions) {\n generatorOptions === void 0 && (generatorOptions = {});\n var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers3 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function(reference2, popper2, options) {\n options === void 0 && (options = defaultOptions);\n var state = {\n placement: \"bottom\",\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference2,\n popper: popper2\n },\n attributes: {},\n styles: {}\n }, effectCleanupFns = [], isDestroyed = !1, instance = {\n state,\n setOptions: function(setOptionsAction) {\n var options2 = typeof setOptionsAction == \"function\" ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects(), state.options = Object.assign({}, defaultOptions, state.options, options2), state.scrollParents = {\n reference: isElement(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],\n popper: listScrollParents(popper2)\n };\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers3, state.options.modifiers)));\n return state.orderedModifiers = orderedModifiers.filter(function(m) {\n return m.enabled;\n }), runModifierEffects(), instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function() {\n if (!isDestroyed) {\n var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;\n if (areValidElements(reference3, popper3)) {\n state.rects = {\n reference: getCompositeRect(reference3, getOffsetParent(popper3), state.options.strategy === \"fixed\"),\n popper: getLayoutRect(popper3)\n }, state.reset = !1, state.placement = state.options.placement, state.orderedModifiers.forEach(function(modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === !0) {\n state.reset = !1, index = -1;\n continue;\n }\n var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;\n typeof fn2 == \"function\" && (state = fn2({\n state,\n options: _options,\n name,\n instance\n }) || state);\n }\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function() {\n return new Promise(function(resolve) {\n instance.forceUpdate(), resolve(state);\n });\n }),\n destroy: function() {\n cleanupModifierEffects(), isDestroyed = !0;\n }\n };\n if (!areValidElements(reference2, popper2))\n return instance;\n instance.setOptions(options).then(function(state2) {\n !isDestroyed && options.onFirstUpdate && options.onFirstUpdate(state2);\n });\n function runModifierEffects() {\n state.orderedModifiers.forEach(function(_ref) {\n var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect4 = _ref.effect;\n if (typeof effect4 == \"function\") {\n var cleanupFn = effect4({\n state,\n name,\n instance,\n options: options2\n }), noopFn = function() {\n };\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function(fn2) {\n return fn2();\n }), effectCleanupFns = [];\n }\n return instance;\n };\n}\nvar createPopper = popperGenerator();\n\n// ../../node_modules/@popperjs/core/lib/popper-lite.js\nvar defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default], createPopper2 = popperGenerator({\n defaultModifiers\n});\n\n// ../../node_modules/@popperjs/core/lib/popper.js\nvar defaultModifiers2 = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default, offset_default, flip_default, preventOverflow_default, arrow_default, hide_default], createPopper3 = popperGenerator({\n defaultModifiers: defaultModifiers2\n});\n\n// ../../node_modules/react-popper/lib/esm/usePopper.js\nvar import_react_fast_compare = __toESM(require_react_fast_compare());\nvar EMPTY_MODIFIERS = [], usePopper = function(referenceElement, popperElement, options) {\n options === void 0 && (options = {});\n var prevOptions = React3.useRef(null), optionsWithDefaults = {\n onFirstUpdate: options.onFirstUpdate,\n placement: options.placement || \"bottom\",\n strategy: options.strategy || \"absolute\",\n modifiers: options.modifiers || EMPTY_MODIFIERS\n }, _React$useState = React3.useState({\n styles: {\n popper: {\n position: optionsWithDefaults.strategy,\n left: \"0\",\n top: \"0\"\n },\n arrow: {\n position: \"absolute\"\n }\n },\n attributes: {}\n }), state = _React$useState[0], setState = _React$useState[1], updateStateModifier = React3.useMemo(function() {\n return {\n name: \"updateState\",\n enabled: !0,\n phase: \"write\",\n fn: function(_ref) {\n var state2 = _ref.state, elements = Object.keys(state2.elements);\n ReactDOM.flushSync(function() {\n setState({\n styles: fromEntries(elements.map(function(element) {\n return [element, state2.styles[element] || {}];\n })),\n attributes: fromEntries(elements.map(function(element) {\n return [element, state2.attributes[element]];\n }))\n });\n });\n },\n requires: [\"computeStyles\"]\n };\n }, []), popperOptions = React3.useMemo(function() {\n var newOptions = {\n onFirstUpdate: optionsWithDefaults.onFirstUpdate,\n placement: optionsWithDefaults.placement,\n strategy: optionsWithDefaults.strategy,\n modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, {\n name: \"applyStyles\",\n enabled: !1\n }])\n };\n return (0, import_react_fast_compare.default)(prevOptions.current, newOptions) ? prevOptions.current || newOptions : (prevOptions.current = newOptions, newOptions);\n }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]), popperInstanceRef = React3.useRef();\n return useIsomorphicLayoutEffect(function() {\n popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions);\n }, [popperOptions]), useIsomorphicLayoutEffect(function() {\n if (!(referenceElement == null || popperElement == null)) {\n var createPopper4 = options.createPopper || createPopper3, popperInstance = createPopper4(referenceElement, popperElement, popperOptions);\n return popperInstanceRef.current = popperInstance, function() {\n popperInstance.destroy(), popperInstanceRef.current = null;\n };\n }\n }, [referenceElement, popperElement, options.createPopper]), {\n state: popperInstanceRef.current ? popperInstanceRef.current.state : null,\n styles: state.styles,\n attributes: state.attributes,\n update: popperInstanceRef.current ? popperInstanceRef.current.update : null,\n forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null\n };\n};\n\n// ../../node_modules/react-popper/lib/esm/Reference.js\nvar import_warning = __toESM(require_warning());\nimport * as React5 from \"react\";\n\n// ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js\nfunction useGetLatest(val) {\n var ref = React6.useRef(val);\n return ref.current = val, React6.useCallback(function() {\n return ref.current;\n }, []);\n}\nvar noop = function() {\n};\nfunction useControlledState(_ref) {\n var initial = _ref.initial, value = _ref.value, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop : _ref$onChange;\n if (initial === void 0 && value === void 0)\n throw new TypeError('Either \"value\" or \"initial\" variable must be set. Now both are undefined');\n var _React$useState = React6.useState(initial), state = _React$useState[0], setState = _React$useState[1], getLatest = useGetLatest(state), set = React6.useCallback(function(updater) {\n var state2 = getLatest(), updatedState = typeof updater == \"function\" ? updater(state2) : updater;\n typeof updatedState.persist == \"function\" && updatedState.persist(), setState(updatedState), typeof onChange == \"function\" && onChange(updatedState);\n }, [getLatest, onChange]), isControlled = value !== void 0;\n return [isControlled ? value : state, isControlled ? onChange : set];\n}\nfunction generateBoundingClientRect(x, y) {\n return x === void 0 && (x = 0), y === void 0 && (y = 0), function() {\n return {\n width: 0,\n height: 0,\n top: y,\n right: x,\n bottom: y,\n left: x,\n x: 0,\n y: 0,\n toJSON: function() {\n return null;\n }\n };\n };\n}\nvar _excluded = [\"styles\", \"attributes\"], virtualElement = {\n getBoundingClientRect: generateBoundingClientRect()\n}, defaultConfig = {\n closeOnOutsideClick: !0,\n closeOnTriggerHidden: !1,\n defaultVisible: !1,\n delayHide: 0,\n delayShow: 0,\n followCursor: !1,\n interactive: !1,\n mutationObserverOptions: {\n attributes: !0,\n childList: !0,\n subtree: !0\n },\n offset: [0, 6],\n trigger: \"hover\"\n};\nfunction usePopperTooltip(config, popperOptions) {\n var _popperProps$state, _popperProps$state$mo, _popperProps$state$mo2;\n config === void 0 && (config = {}), popperOptions === void 0 && (popperOptions = {});\n var finalConfig = Object.keys(defaultConfig).reduce(function(config2, key) {\n var _extends2;\n return _extends({}, config2, (_extends2 = {}, _extends2[key] = config2[key] !== void 0 ? config2[key] : defaultConfig[key], _extends2));\n }, config), defaultModifiers3 = React6.useMemo(\n function() {\n return [{\n name: \"offset\",\n options: {\n offset: finalConfig.offset\n }\n }];\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(finalConfig.offset) ? finalConfig.offset : []\n ), finalPopperOptions = _extends({}, popperOptions, {\n placement: popperOptions.placement || finalConfig.placement,\n modifiers: popperOptions.modifiers || defaultModifiers3\n }), _React$useState = React6.useState(null), triggerRef = _React$useState[0], setTriggerRef = _React$useState[1], _React$useState2 = React6.useState(null), tooltipRef = _React$useState2[0], setTooltipRef = _React$useState2[1], _useControlledState = useControlledState({\n initial: finalConfig.defaultVisible,\n value: finalConfig.visible,\n onChange: finalConfig.onVisibleChange\n }), visible = _useControlledState[0], setVisible = _useControlledState[1], timer = React6.useRef();\n React6.useEffect(function() {\n return function() {\n return clearTimeout(timer.current);\n };\n }, []);\n var _usePopper = usePopper(finalConfig.followCursor ? virtualElement : triggerRef, tooltipRef, finalPopperOptions), styles = _usePopper.styles, attributes = _usePopper.attributes, popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded), update = popperProps.update, getLatest = useGetLatest({\n visible,\n triggerRef,\n tooltipRef,\n finalConfig\n }), isTriggeredBy = React6.useCallback(\n function(trigger) {\n return Array.isArray(finalConfig.trigger) ? finalConfig.trigger.includes(trigger) : finalConfig.trigger === trigger;\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger]\n ), hideTooltip = React6.useCallback(function() {\n clearTimeout(timer.current), timer.current = window.setTimeout(function() {\n return setVisible(!1);\n }, finalConfig.delayHide);\n }, [finalConfig.delayHide, setVisible]), showTooltip = React6.useCallback(function() {\n clearTimeout(timer.current), timer.current = window.setTimeout(function() {\n return setVisible(!0);\n }, finalConfig.delayShow);\n }, [finalConfig.delayShow, setVisible]), toggleTooltip = React6.useCallback(function() {\n getLatest().visible ? hideTooltip() : showTooltip();\n }, [getLatest, hideTooltip, showTooltip]);\n React6.useEffect(function() {\n if (getLatest().finalConfig.closeOnOutsideClick) {\n var handleClickOutside = function(event) {\n var _event$composedPath, _getLatest = getLatest(), tooltipRef2 = _getLatest.tooltipRef, triggerRef2 = _getLatest.triggerRef, target = (event.composedPath == null || (_event$composedPath = event.composedPath()) == null ? void 0 : _event$composedPath[0]) || event.target;\n target instanceof Node && tooltipRef2 != null && triggerRef2 != null && !tooltipRef2.contains(target) && !triggerRef2.contains(target) && hideTooltip();\n };\n return document.addEventListener(\"mousedown\", handleClickOutside), function() {\n return document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }\n }, [getLatest, hideTooltip]), React6.useEffect(function() {\n if (!(triggerRef == null || !isTriggeredBy(\"click\")))\n return triggerRef.addEventListener(\"click\", toggleTooltip), function() {\n return triggerRef.removeEventListener(\"click\", toggleTooltip);\n };\n }, [triggerRef, isTriggeredBy, toggleTooltip]), React6.useEffect(function() {\n if (!(triggerRef == null || !isTriggeredBy(\"double-click\")))\n return triggerRef.addEventListener(\"dblclick\", toggleTooltip), function() {\n return triggerRef.removeEventListener(\"dblclick\", toggleTooltip);\n };\n }, [triggerRef, isTriggeredBy, toggleTooltip]), React6.useEffect(function() {\n if (!(triggerRef == null || !isTriggeredBy(\"right-click\"))) {\n var preventDefaultAndToggle = function(event) {\n event.preventDefault(), toggleTooltip();\n };\n return triggerRef.addEventListener(\"contextmenu\", preventDefaultAndToggle), function() {\n return triggerRef.removeEventListener(\"contextmenu\", preventDefaultAndToggle);\n };\n }\n }, [triggerRef, isTriggeredBy, toggleTooltip]), React6.useEffect(function() {\n if (!(triggerRef == null || !isTriggeredBy(\"focus\")))\n return triggerRef.addEventListener(\"focus\", showTooltip), triggerRef.addEventListener(\"blur\", hideTooltip), function() {\n triggerRef.removeEventListener(\"focus\", showTooltip), triggerRef.removeEventListener(\"blur\", hideTooltip);\n };\n }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React6.useEffect(function() {\n if (!(triggerRef == null || !isTriggeredBy(\"hover\")))\n return triggerRef.addEventListener(\"mouseenter\", showTooltip), triggerRef.addEventListener(\"mouseleave\", hideTooltip), function() {\n triggerRef.removeEventListener(\"mouseenter\", showTooltip), triggerRef.removeEventListener(\"mouseleave\", hideTooltip);\n };\n }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React6.useEffect(function() {\n if (!(tooltipRef == null || !isTriggeredBy(\"hover\") || !getLatest().finalConfig.interactive))\n return tooltipRef.addEventListener(\"mouseenter\", showTooltip), tooltipRef.addEventListener(\"mouseleave\", hideTooltip), function() {\n tooltipRef.removeEventListener(\"mouseenter\", showTooltip), tooltipRef.removeEventListener(\"mouseleave\", hideTooltip);\n };\n }, [tooltipRef, isTriggeredBy, showTooltip, hideTooltip, getLatest]);\n var isReferenceHidden = popperProps == null || (_popperProps$state = popperProps.state) == null || (_popperProps$state$mo = _popperProps$state.modifiersData) == null || (_popperProps$state$mo2 = _popperProps$state$mo.hide) == null ? void 0 : _popperProps$state$mo2.isReferenceHidden;\n React6.useEffect(function() {\n finalConfig.closeOnTriggerHidden && isReferenceHidden && hideTooltip();\n }, [finalConfig.closeOnTriggerHidden, hideTooltip, isReferenceHidden]), React6.useEffect(function() {\n if (!finalConfig.followCursor || triggerRef == null) return;\n function setMousePosition(_ref) {\n var clientX = _ref.clientX, clientY = _ref.clientY;\n virtualElement.getBoundingClientRect = generateBoundingClientRect(clientX, clientY), update?.();\n }\n return triggerRef.addEventListener(\"mousemove\", setMousePosition), function() {\n return triggerRef.removeEventListener(\"mousemove\", setMousePosition);\n };\n }, [finalConfig.followCursor, triggerRef, update]), React6.useEffect(function() {\n if (!(tooltipRef == null || update == null || finalConfig.mutationObserverOptions == null)) {\n var observer = new MutationObserver(update);\n return observer.observe(tooltipRef, finalConfig.mutationObserverOptions), function() {\n return observer.disconnect();\n };\n }\n }, [finalConfig.mutationObserverOptions, tooltipRef, update]);\n var getTooltipProps = function(args) {\n return args === void 0 && (args = {}), _extends({}, args, {\n style: _extends({}, args.style, styles.popper)\n }, attributes.popper, {\n \"data-popper-interactive\": finalConfig.interactive\n });\n }, getArrowProps = function(args) {\n return args === void 0 && (args = {}), _extends({}, args, attributes.arrow, {\n style: _extends({}, args.style, styles.arrow),\n \"data-popper-arrow\": !0\n });\n };\n return _extends({\n getArrowProps,\n getTooltipProps,\n setTooltipRef,\n setTriggerRef,\n tooltipRef,\n triggerRef,\n visible\n }, popperProps);\n}\n\n// src/components/components/tooltip/WithTooltip.tsx\nimport { lighten, styled } from \"storybook/theming\";\nvar { document: document2 } = global, match = (0, import_memoizerific.default)(1e3)(\n (requests, actual, value, fallback = 0) => actual.split(\"-\")[0] === requests ? value : fallback\n), ArrowSpacing = 8, Arrow = styled.div(\n {\n position: \"absolute\",\n borderStyle: \"solid\"\n },\n ({ placement }) => {\n let x = 0, y = 0;\n switch (!0) {\n case (placement.startsWith(\"left\") || placement.startsWith(\"right\")): {\n y = 8;\n break;\n }\n case (placement.startsWith(\"top\") || placement.startsWith(\"bottom\")): {\n x = 8;\n break;\n }\n default:\n }\n return { transform: `translate3d(${x}px, ${y}px, 0px)` };\n },\n ({ theme, color, placement }) => ({\n bottom: `${match(\"top\", placement, `${ArrowSpacing * -1}px`, \"auto\")}`,\n top: `${match(\"bottom\", placement, `${ArrowSpacing * -1}px`, \"auto\")}`,\n right: `${match(\"left\", placement, `${ArrowSpacing * -1}px`, \"auto\")}`,\n left: `${match(\"right\", placement, `${ArrowSpacing * -1}px`, \"auto\")}`,\n borderBottomWidth: `${match(\"top\", placement, \"0\", ArrowSpacing)}px`,\n borderTopWidth: `${match(\"bottom\", placement, \"0\", ArrowSpacing)}px`,\n borderRightWidth: `${match(\"left\", placement, \"0\", ArrowSpacing)}px`,\n borderLeftWidth: `${match(\"right\", placement, \"0\", ArrowSpacing)}px`,\n borderTopColor: match(\n \"top\",\n placement,\n theme.color[color] || color || theme.base === \"light\" ? lighten(theme.background.app) : theme.background.app,\n \"transparent\"\n ),\n borderBottomColor: match(\n \"bottom\",\n placement,\n theme.color[color] || color || theme.base === \"light\" ? lighten(theme.background.app) : theme.background.app,\n \"transparent\"\n ),\n borderLeftColor: match(\n \"left\",\n placement,\n theme.color[color] || color || theme.base === \"light\" ? lighten(theme.background.app) : theme.background.app,\n \"transparent\"\n ),\n borderRightColor: match(\n \"right\",\n placement,\n theme.color[color] || color || theme.base === \"light\" ? lighten(theme.background.app) : theme.background.app,\n \"transparent\"\n )\n })\n), Wrapper = styled.div(\n ({ hidden }) => ({\n display: hidden ? \"none\" : \"inline-block\",\n zIndex: 2147483647,\n colorScheme: \"light dark\"\n }),\n ({ theme, color, hasChrome }) => hasChrome ? {\n background: color && theme.color[color] || color || theme.base === \"light\" ? lighten(theme.background.app) : theme.background.app,\n filter: `\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n `,\n borderRadius: theme.appBorderRadius + 2,\n fontSize: theme.typography.size.s1\n } : {}\n), Tooltip = React7.forwardRef(\n ({\n placement = \"top\",\n hasChrome = !0,\n children,\n arrowProps = {},\n tooltipRef,\n color,\n withArrows,\n ...props\n }, ref) => React7.createElement(Wrapper, { \"data-testid\": \"tooltip\", hasChrome, ref, ...props, color }, hasChrome && withArrows && React7.createElement(Arrow, { placement, ...arrowProps, color }), children)\n);\nTooltip.displayName = \"Tooltip\";\nvar TargetContainer = styled.div`\n display: inline-block;\n cursor: ${(props) => props.trigger === \"hover\" || props.trigger?.includes(\"hover\") ? \"default\" : \"pointer\"};\n`, TargetSvgContainer = styled.g`\n cursor: ${(props) => props.trigger === \"hover\" || props.trigger?.includes(\"hover\") ? \"default\" : \"pointer\"};\n`, WithTooltipPure = ({\n svg = !1,\n trigger = \"click\",\n closeOnOutsideClick = !1,\n placement = \"top\",\n modifiers = [\n {\n name: \"preventOverflow\",\n options: {\n padding: 8\n }\n },\n {\n name: \"offset\",\n options: {\n offset: [8, 8]\n }\n },\n {\n name: \"arrow\",\n options: {\n padding: 8\n }\n }\n ],\n hasChrome = !0,\n defaultVisible = !1,\n withArrows,\n offset: offset2,\n tooltip,\n children,\n closeOnTriggerHidden,\n mutationObserverOptions,\n delayHide = trigger === \"hover\" ? 200 : 0,\n visible,\n interactive,\n delayShow = trigger === \"hover\" ? 400 : 0,\n strategy,\n followCursor,\n onVisibleChange,\n portalContainer,\n ...props\n}) => {\n let Container = svg ? TargetSvgContainer : TargetContainer, {\n getArrowProps,\n getTooltipProps,\n setTooltipRef,\n setTriggerRef,\n visible: isVisible,\n state\n } = usePopperTooltip(\n {\n trigger,\n placement,\n defaultVisible,\n delayHide,\n interactive,\n closeOnOutsideClick,\n closeOnTriggerHidden,\n onVisibleChange,\n delayShow,\n followCursor,\n mutationObserverOptions,\n visible,\n offset: offset2\n },\n {\n modifiers,\n strategy\n }\n ), portalTarget = (typeof portalContainer == \"string\" ? document2.querySelector(portalContainer) : portalContainer) || document2.body, tooltipComponent = isVisible ? React7.createElement(\n Tooltip,\n {\n placement: state?.placement,\n ref: setTooltipRef,\n hasChrome,\n arrowProps: getArrowProps(),\n withArrows,\n ...getTooltipProps()\n },\n typeof tooltip == \"function\" ? tooltip({ onHide: () => onVisibleChange(!1) }) : tooltip\n ) : null;\n return React7.createElement(React7.Fragment, null, React7.createElement(Container, { trigger, ref: setTriggerRef, ...props }, children), isVisible && ReactDOM2.createPortal(tooltipComponent, portalTarget));\n}, WithToolTipState = ({\n startOpen = !1,\n onVisibleChange: onChange,\n ...rest\n}) => {\n let [tooltipShown, setTooltipShown] = useState5(startOpen), onVisibilityChange = useCallback4(\n (visibility) => {\n onChange && onChange(visibility) === !1 || setTooltipShown(visibility);\n },\n [onChange]\n );\n return useEffect6(() => {\n let hide2 = () => onVisibilityChange(!1), handleKeyDown = (e) => {\n e.key === \"Escape\" && hide2();\n };\n document2.addEventListener(\"keydown\", handleKeyDown, !1);\n let iframes = Array.from(document2.getElementsByTagName(\"iframe\")), unbinders = [];\n return iframes.forEach((iframe) => {\n let bind = () => {\n try {\n iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener(\"click\", hide2), unbinders.push(() => {\n try {\n iframe.contentWindow.document.removeEventListener(\"click\", hide2);\n } catch {\n }\n }));\n } catch {\n }\n };\n bind(), iframe.addEventListener(\"load\", bind), unbinders.push(() => {\n iframe.removeEventListener(\"load\", bind);\n });\n }), () => {\n document2.removeEventListener(\"keydown\", handleKeyDown), unbinders.forEach((unbind) => {\n unbind();\n });\n };\n }), React7.createElement(WithTooltipPure, { ...rest, visible: tooltipShown, onVisibleChange: onVisibilityChange });\n}, DeprecatedPure = (props) => (deprecate(\n \"WithTooltipPure is deprecated and will be removed in Storybook 11. Please use WithTooltip instead.\"\n), React7.createElement(WithTooltipPure, { \"data-deprecated\": \"WithTooltipPure\", ...props })), DeprecatedState = (props) => (deprecate(\n \"WithToolTipState is deprecated and will be removed in Storybook 11. Please use WithTooltip instead.\"\n), React7.createElement(WithToolTipState, { \"data-deprecated\": \"WithToolTipState\", ...props }));\nexport {\n Tooltip,\n DeprecatedState as WithToolTipState,\n WithToolTipState as WithTooltip,\n DeprecatedPure as WithTooltipPure\n};\n"],"names":[],"sourceRoot":""}
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[973],{"./node_modules/@angular/cdk/fesm2022/table.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{N0:()=>CdkTableModule});var _debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),Subject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Subject.js"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js"),isObservable=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/util/isObservable.js"),of=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/of.js"),combineLatest=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js"),animationFrame=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js"),asap=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/scheduler/asap.js"),takeUntil=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"),auditTime=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/auditTime.js"),_directionality_chunk=__webpack_require__("./node_modules/@angular/cdk/fesm2022/_directionality-chunk.mjs"),scrolling=__webpack_require__("./node_modules/@angular/cdk/fesm2022/scrolling.mjs"),_recycle_view_repeater_strategy_chunk=__webpack_require__("./node_modules/@angular/cdk/fesm2022/_recycle-view-repeater-strategy-chunk.mjs");class _DisposeViewRepeaterStrategy{applyChanges(changes,viewContainerRef,itemContextFactory,itemValueResolver,itemViewChanged){changes.forEachOperation((record,adjustedPreviousIndex,currentIndex)=>{let view,operation;if(null==record.previousIndex){const insertContext=itemContextFactory(record,adjustedPreviousIndex,currentIndex);view=viewContainerRef.createEmbeddedView(insertContext.templateRef,insertContext.context,insertContext.index),operation=_recycle_view_repeater_strategy_chunk.Q3.INSERTED}else null==currentIndex?(viewContainerRef.remove(adjustedPreviousIndex),operation=_recycle_view_repeater_strategy_chunk.Q3.REMOVED):(view=viewContainerRef.get(adjustedPreviousIndex),viewContainerRef.move(view,currentIndex),operation=_recycle_view_repeater_strategy_chunk.Q3.MOVED);itemViewChanged&&itemViewChanged({context:view?.context,operation,record})})}detach(){}}var _platform_chunk=__webpack_require__("./node_modules/@angular/cdk/fesm2022/_platform-chunk.mjs"),_data_source_chunk=__webpack_require__("./node_modules/@angular/cdk/fesm2022/_data-source-chunk.mjs");const _c0=[[["caption"]],[["colgroup"],["col"]],"*"],_c1=["caption","colgroup, col","*"];function CdkTable_Conditional_2_Template(rf,ctx){1&rf&&_debug_node_chunk.SdG(0,2)}function CdkTable_Conditional_3_Template(rf,ctx){1&rf&&(_debug_node_chunk.j41(0,"thead",0),_debug_node_chunk.eu8(1,1),_debug_node_chunk.k0s(),_debug_node_chunk.j41(2,"tbody",0),_debug_node_chunk.eu8(3,2)(4,3),_debug_node_chunk.k0s(),_debug_node_chunk.j41(5,"tfoot",0),_debug_node_chunk.eu8(6,4),_debug_node_chunk.k0s())}function CdkTable_Conditional_4_Template(rf,ctx){1&rf&&_debug_node_chunk.eu8(0,1)(1,2)(2,3)(3,4)}function CdkTextColumn_th_1_Template(rf,ctx){if(1&rf&&(_debug_node_chunk.j41(0,"th",3),_debug_node_chunk.EFF(1),_debug_node_chunk.k0s()),2&rf){const ctx_r0=_debug_node_chunk.XpG();_debug_node_chunk.xc7("text-align",ctx_r0.justify),_debug_node_chunk.R7$(),_debug_node_chunk.SpI(" ",ctx_r0.headerText," ")}}function CdkTextColumn_td_2_Template(rf,ctx){if(1&rf&&(_debug_node_chunk.j41(0,"td",4),_debug_node_chunk.EFF(1),_debug_node_chunk.k0s()),2&rf){const data_r2=ctx.$implicit,ctx_r0=_debug_node_chunk.XpG();_debug_node_chunk.xc7("text-align",ctx_r0.justify),_debug_node_chunk.R7$(),_debug_node_chunk.SpI(" ",ctx_r0.dataAccessor(data_r2,ctx_r0.name)," ")}}const CDK_TABLE=new _effect_chunk2.nKC("CDK_TABLE"),TEXT_COLUMN_OPTIONS=new _effect_chunk2.nKC("text-column-options");class CdkCellDef{template=(0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q);constructor(){}static ɵfac=function CdkCellDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkCellDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkCellDef,selectors:[["","cdkCellDef",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkCellDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkCellDef]"}]}],()=>[],null);class CdkHeaderCellDef{template=(0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q);constructor(){}static ɵfac=function CdkHeaderCellDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkHeaderCellDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkHeaderCellDef,selectors:[["","cdkHeaderCellDef",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkHeaderCellDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkHeaderCellDef]"}]}],()=>[],null);class CdkFooterCellDef{template=(0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q);constructor(){}static ɵfac=function CdkFooterCellDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkFooterCellDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkFooterCellDef,selectors:[["","cdkFooterCellDef",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkFooterCellDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkFooterCellDef]"}]}],()=>[],null);class CdkColumnDef{_table=(0,_effect_chunk2.WQX)(CDK_TABLE,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(name){this._setNameInput(name)}_name;get sticky(){return this._sticky}set sticky(value){value!==this._sticky&&(this._sticky=value,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(value){value!==this._stickyEnd&&(this._stickyEnd=value,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){const hasStickyChanged=this._hasStickyChanged;return this.resetStickyChanged(),hasStickyChanged}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(value){value&&(this._name=value,this.cssClassFriendlyName=value.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static ɵfac=function CdkColumnDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkColumnDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkColumnDef,selectors:[["","cdkColumnDef",""]],contentQueries:function CdkColumnDef_ContentQueries(rf,ctx,dirIndex){if(1&rf&&_debug_node_chunk.wni(dirIndex,CdkCellDef,5)(dirIndex,CdkHeaderCellDef,5)(dirIndex,CdkFooterCellDef,5),2&rf){let _t;_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx.cell=_t.first),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx.headerCell=_t.first),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx.footerCell=_t.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",core.booleanAttribute],stickyEnd:[2,"stickyEnd","stickyEnd",core.booleanAttribute]}})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkColumnDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkColumnDef]"}]}],()=>[],{name:[{type:_debug_node_chunk.pde,args:["cdkColumnDef"]}],sticky:[{type:_debug_node_chunk.pde,args:[{transform:core.booleanAttribute}]}],stickyEnd:[{type:_debug_node_chunk.pde,args:[{transform:core.booleanAttribute}]}],cell:[{type:core.ContentChild,args:[CdkCellDef]}],headerCell:[{type:core.ContentChild,args:[CdkHeaderCellDef]}],footerCell:[{type:core.ContentChild,args:[CdkFooterCellDef]}]});class BaseCdkCell{constructor(columnDef,elementRef){elementRef.nativeElement.classList.add(...columnDef._columnCssClassName)}}class CdkHeaderCell extends BaseCdkCell{constructor(){super((0,_effect_chunk2.WQX)(CdkColumnDef),(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT))}static ɵfac=function CdkHeaderCell_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkHeaderCell)};static ɵdir=_debug_node_chunk.FsC({type:CdkHeaderCell,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[_debug_node_chunk.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkHeaderCell,[{type:_debug_node_chunk.WLR,args:[{selector:"cdk-header-cell, th[cdk-header-cell]",host:{class:"cdk-header-cell",role:"columnheader"}}]}],()=>[],null);class CdkFooterCell extends BaseCdkCell{constructor(){const columnDef=(0,_effect_chunk2.WQX)(CdkColumnDef),elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);super(columnDef,elementRef);const role=columnDef._table?._getCellRole();role&&elementRef.nativeElement.setAttribute("role",role)}static ɵfac=function CdkFooterCell_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkFooterCell)};static ɵdir=_debug_node_chunk.FsC({type:CdkFooterCell,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[_debug_node_chunk.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkFooterCell,[{type:_debug_node_chunk.WLR,args:[{selector:"cdk-footer-cell, td[cdk-footer-cell]",host:{class:"cdk-footer-cell"}}]}],()=>[],null);class CdkCell extends BaseCdkCell{constructor(){const columnDef=(0,_effect_chunk2.WQX)(CdkColumnDef),elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);super(columnDef,elementRef);const role=columnDef._table?._getCellRole();role&&elementRef.nativeElement.setAttribute("role",role)}static ɵfac=function CdkCell_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkCell)};static ɵdir=_debug_node_chunk.FsC({type:CdkCell,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[_debug_node_chunk.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkCell,[{type:_debug_node_chunk.WLR,args:[{selector:"cdk-cell, td[cdk-cell]",host:{class:"cdk-cell"}}]}],()=>[],null);const CDK_ROW_TEMPLATE="<ng-container cdkCellOutlet></ng-container>";class BaseRowDef{template=(0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q);_differs=(0,_effect_chunk2.WQX)(core.IterableDiffers);columns;_columnsDiffer;constructor(){}ngOnChanges(changes){if(!this._columnsDiffer){const columns=changes.columns&&changes.columns.currentValue||[];this._columnsDiffer=this._differs.find(columns).create(),this._columnsDiffer.diff(columns)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(column){return this instanceof CdkHeaderRowDef?column.headerCell.template:this instanceof CdkFooterRowDef?column.footerCell.template:column.cell.template}static ɵfac=function BaseRowDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||BaseRowDef)};static ɵdir=_debug_node_chunk.FsC({type:BaseRowDef,features:[_debug_node_chunk.OA$]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(BaseRowDef,[{type:_debug_node_chunk.WLR}],()=>[],null);class CdkHeaderRowDef extends BaseRowDef{_table=(0,_effect_chunk2.WQX)(CDK_TABLE,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(value){value!==this._sticky&&(this._sticky=value,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q),(0,_effect_chunk2.WQX)(core.IterableDiffers))}ngOnChanges(changes){super.ngOnChanges(changes)}hasStickyChanged(){const hasStickyChanged=this._hasStickyChanged;return this.resetStickyChanged(),hasStickyChanged}resetStickyChanged(){this._hasStickyChanged=!1}static ɵfac=function CdkHeaderRowDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkHeaderRowDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkHeaderRowDef,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",core.booleanAttribute]},features:[_debug_node_chunk.Vt3,_debug_node_chunk.OA$]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkHeaderRowDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkHeaderRowDef]",inputs:[{name:"columns",alias:"cdkHeaderRowDef"}]}]}],()=>[],{sticky:[{type:_debug_node_chunk.pde,args:[{alias:"cdkHeaderRowDefSticky",transform:core.booleanAttribute}]}]});class CdkFooterRowDef extends BaseRowDef{_table=(0,_effect_chunk2.WQX)(CDK_TABLE,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(value){value!==this._sticky&&(this._sticky=value,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q),(0,_effect_chunk2.WQX)(core.IterableDiffers))}ngOnChanges(changes){super.ngOnChanges(changes)}hasStickyChanged(){const hasStickyChanged=this._hasStickyChanged;return this.resetStickyChanged(),hasStickyChanged}resetStickyChanged(){this._hasStickyChanged=!1}static ɵfac=function CdkFooterRowDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkFooterRowDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkFooterRowDef,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",core.booleanAttribute]},features:[_debug_node_chunk.Vt3,_debug_node_chunk.OA$]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkFooterRowDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkFooterRowDef]",inputs:[{name:"columns",alias:"cdkFooterRowDef"}]}]}],()=>[],{sticky:[{type:_debug_node_chunk.pde,args:[{alias:"cdkFooterRowDefSticky",transform:core.booleanAttribute}]}]});class CdkRowDef extends BaseRowDef{_table=(0,_effect_chunk2.WQX)(CDK_TABLE,{optional:!0});when;constructor(){super((0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q),(0,_effect_chunk2.WQX)(core.IterableDiffers))}static ɵfac=function CdkRowDef_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkRowDef)};static ɵdir=_debug_node_chunk.FsC({type:CdkRowDef,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[_debug_node_chunk.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkRowDef,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkRowDef]",inputs:[{name:"columns",alias:"cdkRowDefColumns"},{name:"when",alias:"cdkRowDefWhen"}]}]}],()=>[],null);class CdkCellOutlet{_viewContainer=(0,_effect_chunk2.WQX)(_debug_node_chunk.c1b);cells;context;static mostRecentCellOutlet=null;constructor(){CdkCellOutlet.mostRecentCellOutlet=this}ngOnDestroy(){CdkCellOutlet.mostRecentCellOutlet===this&&(CdkCellOutlet.mostRecentCellOutlet=null)}static ɵfac=function CdkCellOutlet_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkCellOutlet)};static ɵdir=_debug_node_chunk.FsC({type:CdkCellOutlet,selectors:[["","cdkCellOutlet",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkCellOutlet,[{type:_debug_node_chunk.WLR,args:[{selector:"[cdkCellOutlet]"}]}],()=>[],null);class CdkHeaderRow{static ɵfac=function CdkHeaderRow_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkHeaderRow)};static ɵcmp=_debug_node_chunk.VBU({type:CdkHeaderRow,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function CdkHeaderRow_Template(rf,ctx){1&rf&&_debug_node_chunk.eu8(0,0)},dependencies:[CdkCellOutlet],encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkHeaderRow,[{type:_debug_node_chunk.uAl,args:[{selector:"cdk-header-row, tr[cdk-header-row]",template:CDK_ROW_TEMPLATE,host:{class:"cdk-header-row",role:"row"},changeDetection:_debug_node_chunk.Ngq.Default,encapsulation:_debug_node_chunk.gXe.None,imports:[CdkCellOutlet]}]}],null,null);class CdkFooterRow{static ɵfac=function CdkFooterRow_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkFooterRow)};static ɵcmp=_debug_node_chunk.VBU({type:CdkFooterRow,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function CdkFooterRow_Template(rf,ctx){1&rf&&_debug_node_chunk.eu8(0,0)},dependencies:[CdkCellOutlet],encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkFooterRow,[{type:_debug_node_chunk.uAl,args:[{selector:"cdk-footer-row, tr[cdk-footer-row]",template:CDK_ROW_TEMPLATE,host:{class:"cdk-footer-row",role:"row"},changeDetection:_debug_node_chunk.Ngq.Default,encapsulation:_debug_node_chunk.gXe.None,imports:[CdkCellOutlet]}]}],null,null);class CdkRow{static ɵfac=function CdkRow_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkRow)};static ɵcmp=_debug_node_chunk.VBU({type:CdkRow,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function CdkRow_Template(rf,ctx){1&rf&&_debug_node_chunk.eu8(0,0)},dependencies:[CdkCellOutlet],encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkRow,[{type:_debug_node_chunk.uAl,args:[{selector:"cdk-row, tr[cdk-row]",template:CDK_ROW_TEMPLATE,host:{class:"cdk-row",role:"row"},changeDetection:_debug_node_chunk.Ngq.Default,encapsulation:_debug_node_chunk.gXe.None,imports:[CdkCellOutlet]}]}],null,null);class CdkNoDataRow{templateRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.C4Q);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static ɵfac=function CdkNoDataRow_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkNoDataRow)};static ɵdir=_debug_node_chunk.FsC({type:CdkNoDataRow,selectors:[["ng-template","cdkNoDataRow",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkNoDataRow,[{type:_debug_node_chunk.WLR,args:[{selector:"ng-template[cdkNoDataRow]"}]}],()=>[],null);const STICKY_DIRECTIONS=["top","bottom","left","right"];class StickyStyler{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(entries=>this._updateCachedSizes(entries)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(_isNativeHtmlTable,_stickCellCss,_isBrowser=!0,_needsPositionStickyOnElement=!0,direction,_positionListener,_tableInjector){this._isNativeHtmlTable=_isNativeHtmlTable,this._stickCellCss=_stickCellCss,this._isBrowser=_isBrowser,this._needsPositionStickyOnElement=_needsPositionStickyOnElement,this.direction=direction,this._positionListener=_positionListener,this._tableInjector=_tableInjector,this._borderCellCss={top:`${_stickCellCss}-border-elem-top`,bottom:`${_stickCellCss}-border-elem-bottom`,left:`${_stickCellCss}-border-elem-left`,right:`${_stickCellCss}-border-elem-right`}}clearStickyPositioning(rows,stickyDirections){(stickyDirections.includes("left")||stickyDirections.includes("right"))&&this._removeFromStickyColumnReplayQueue(rows);const elementsToClear=[];for(const row of rows)row.nodeType===row.ELEMENT_NODE&&elementsToClear.push(row,...Array.from(row.children));(0,_debug_node_chunk.mal)({write:()=>{for(const element of elementsToClear)this._removeStickyStyle(element,stickyDirections)}},{injector:this._tableInjector})}updateStickyColumns(rows,stickyStartStates,stickyEndStates,recalculateCellWidths=!0,replay=!0){if(!rows.length||!this._isBrowser||!stickyStartStates.some(state=>state)&&!stickyEndStates.some(state=>state))return this._positionListener?.stickyColumnsUpdated({sizes:[]}),void this._positionListener?.stickyEndColumnsUpdated({sizes:[]});const firstRow=rows[0],numCells=firstRow.children.length,isRtl="rtl"===this.direction,start=isRtl?"right":"left",end=isRtl?"left":"right",lastStickyStart=stickyStartStates.lastIndexOf(!0),firstStickyEnd=stickyEndStates.indexOf(!0);let cellWidths,startPositions,endPositions;replay&&this._updateStickyColumnReplayQueue({rows:[...rows],stickyStartStates:[...stickyStartStates],stickyEndStates:[...stickyEndStates]}),(0,_debug_node_chunk.mal)({earlyRead:()=>{cellWidths=this._getCellWidths(firstRow,recalculateCellWidths),startPositions=this._getStickyStartColumnPositions(cellWidths,stickyStartStates),endPositions=this._getStickyEndColumnPositions(cellWidths,stickyEndStates)},write:()=>{for(const row of rows)for(let i=0;i<numCells;i++){const cell=row.children[i];stickyStartStates[i]&&this._addStickyStyle(cell,start,startPositions[i],i===lastStickyStart),stickyEndStates[i]&&this._addStickyStyle(cell,end,endPositions[i],i===firstStickyEnd)}this._positionListener&&cellWidths.some(w=>!!w)&&(this._positionListener.stickyColumnsUpdated({sizes:-1===lastStickyStart?[]:cellWidths.slice(0,lastStickyStart+1).map((width,index)=>stickyStartStates[index]?width:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===firstStickyEnd?[]:cellWidths.slice(firstStickyEnd).map((width,index)=>stickyEndStates[index+firstStickyEnd]?width:null).reverse()}))}},{injector:this._tableInjector})}stickRows(rowsToStick,stickyStates,position){if(!this._isBrowser)return;const rows="bottom"===position?rowsToStick.slice().reverse():rowsToStick,states="bottom"===position?stickyStates.slice().reverse():stickyStates,stickyOffsets=[],stickyCellHeights=[],elementsToStick=[];(0,_debug_node_chunk.mal)({earlyRead:()=>{for(let rowIndex=0,stickyOffset=0;rowIndex<rows.length;rowIndex++){if(!states[rowIndex])continue;stickyOffsets[rowIndex]=stickyOffset;const row=rows[rowIndex];elementsToStick[rowIndex]=this._isNativeHtmlTable?Array.from(row.children):[row];const height=this._retrieveElementSize(row).height;stickyOffset+=height,stickyCellHeights[rowIndex]=height}},write:()=>{const borderedRowIndex=states.lastIndexOf(!0);for(let rowIndex=0;rowIndex<rows.length;rowIndex++){if(!states[rowIndex])continue;const offset=stickyOffsets[rowIndex],isBorderedRowIndex=rowIndex===borderedRowIndex;for(const element of elementsToStick[rowIndex])this._addStickyStyle(element,position,offset,isBorderedRowIndex)}"top"===position?this._positionListener?.stickyHeaderRowsUpdated({sizes:stickyCellHeights,offsets:stickyOffsets,elements:elementsToStick}):this._positionListener?.stickyFooterRowsUpdated({sizes:stickyCellHeights,offsets:stickyOffsets,elements:elementsToStick})}},{injector:this._tableInjector})}updateStickyFooterContainer(tableElement,stickyStates){this._isNativeHtmlTable&&(0,_debug_node_chunk.mal)({write:()=>{const tfoot=tableElement.querySelector("tfoot");tfoot&&(stickyStates.some(state=>!state)?this._removeStickyStyle(tfoot,["bottom"]):this._addStickyStyle(tfoot,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(element,stickyDirections){if(!element.classList.contains(this._stickCellCss))return;for(const dir of stickyDirections)element.style[dir]="",element.classList.remove(this._borderCellCss[dir]);STICKY_DIRECTIONS.some(dir=>-1===stickyDirections.indexOf(dir)&&element.style[dir])?element.style.zIndex=this._getCalculatedZIndex(element):(element.style.zIndex="",this._needsPositionStickyOnElement&&(element.style.position=""),element.classList.remove(this._stickCellCss))}_addStickyStyle(element,dir,dirValue,isBorderElement){element.classList.add(this._stickCellCss),isBorderElement&&element.classList.add(this._borderCellCss[dir]),element.style[dir]=`${dirValue}px`,element.style.zIndex=this._getCalculatedZIndex(element),this._needsPositionStickyOnElement&&(element.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(element){const zIndexIncrements={top:100,bottom:10,left:1,right:1};let zIndex=0;for(const dir of STICKY_DIRECTIONS)element.style[dir]&&(zIndex+=zIndexIncrements[dir]);return zIndex?`${zIndex}`:""}_getCellWidths(row,recalculateCellWidths=!0){if(!recalculateCellWidths&&this._cachedCellWidths.length)return this._cachedCellWidths;const cellWidths=[],firstRowCells=row.children;for(let i=0;i<firstRowCells.length;i++){const cell=firstRowCells[i];cellWidths.push(this._retrieveElementSize(cell).width)}return this._cachedCellWidths=cellWidths,cellWidths}_getStickyStartColumnPositions(widths,stickyStates){const positions=[];let nextPosition=0;for(let i=0;i<widths.length;i++)stickyStates[i]&&(positions[i]=nextPosition,nextPosition+=widths[i]);return positions}_getStickyEndColumnPositions(widths,stickyStates){const positions=[];let nextPosition=0;for(let i=widths.length;i>0;i--)stickyStates[i]&&(positions[i]=nextPosition,nextPosition+=widths[i]);return positions}_retrieveElementSize(element){const cachedSize=this._elemSizeCache.get(element);if(cachedSize)return cachedSize;const clientRect=element.getBoundingClientRect(),size={width:clientRect.width,height:clientRect.height};return this._resizeObserver?(this._elemSizeCache.set(element,size),this._resizeObserver.observe(element,{box:"border-box"}),size):size}_updateStickyColumnReplayQueue(params){this._removeFromStickyColumnReplayQueue(params.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(params)}_removeFromStickyColumnReplayQueue(rows){const rowsSet=new Set(rows);for(const update of this._updatedStickyColumnsParamsToReplay)update.rows=update.rows.filter(row=>!rowsSet.has(row));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(update=>!!update.rows.length)}_updateCachedSizes(entries){let needsColumnUpdate=!1;for(const entry of entries){const newEntry=entry.borderBoxSize?.length?{width:entry.borderBoxSize[0].inlineSize,height:entry.borderBoxSize[0].blockSize}:{width:entry.contentRect.width,height:entry.contentRect.height};newEntry.width!==this._elemSizeCache.get(entry.target)?.width&&isCell(entry.target)&&(needsColumnUpdate=!0),this._elemSizeCache.set(entry.target,newEntry)}needsColumnUpdate&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(const update of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(update.rows,update.stickyStartStates,update.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}}function isCell(element){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(klass=>element.classList.contains(klass))}function getTableUnknownColumnError(id){return Error(`Could not find column with id "${id}".`)}const STICKY_POSITIONING_LISTENER=new _effect_chunk2.nKC("STICKY_POSITIONING_LISTENER");class CdkRecycleRows{static ɵfac=function CdkRecycleRows_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkRecycleRows)};static ɵdir=_debug_node_chunk.FsC({type:CdkRecycleRows,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkRecycleRows,[{type:_debug_node_chunk.WLR,args:[{selector:"cdk-table[recycleRows], table[cdk-table][recycleRows]"}]}],null,null);class DataRowOutlet{viewContainer=(0,_effect_chunk2.WQX)(_debug_node_chunk.c1b);elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);constructor(){const table=(0,_effect_chunk2.WQX)(CDK_TABLE);table._rowOutlet=this,table._outletAssigned()}static ɵfac=function DataRowOutlet_Factory(__ngFactoryType__){return new(__ngFactoryType__||DataRowOutlet)};static ɵdir=_debug_node_chunk.FsC({type:DataRowOutlet,selectors:[["","rowOutlet",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(DataRowOutlet,[{type:_debug_node_chunk.WLR,args:[{selector:"[rowOutlet]"}]}],()=>[],null);class HeaderRowOutlet{viewContainer=(0,_effect_chunk2.WQX)(_debug_node_chunk.c1b);elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);constructor(){const table=(0,_effect_chunk2.WQX)(CDK_TABLE);table._headerRowOutlet=this,table._outletAssigned()}static ɵfac=function HeaderRowOutlet_Factory(__ngFactoryType__){return new(__ngFactoryType__||HeaderRowOutlet)};static ɵdir=_debug_node_chunk.FsC({type:HeaderRowOutlet,selectors:[["","headerRowOutlet",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(HeaderRowOutlet,[{type:_debug_node_chunk.WLR,args:[{selector:"[headerRowOutlet]"}]}],()=>[],null);class FooterRowOutlet{viewContainer=(0,_effect_chunk2.WQX)(_debug_node_chunk.c1b);elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);constructor(){const table=(0,_effect_chunk2.WQX)(CDK_TABLE);table._footerRowOutlet=this,table._outletAssigned()}static ɵfac=function FooterRowOutlet_Factory(__ngFactoryType__){return new(__ngFactoryType__||FooterRowOutlet)};static ɵdir=_debug_node_chunk.FsC({type:FooterRowOutlet,selectors:[["","footerRowOutlet",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(FooterRowOutlet,[{type:_debug_node_chunk.WLR,args:[{selector:"[footerRowOutlet]"}]}],()=>[],null);class NoDataRowOutlet{viewContainer=(0,_effect_chunk2.WQX)(_debug_node_chunk.c1b);elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);constructor(){const table=(0,_effect_chunk2.WQX)(CDK_TABLE);table._noDataRowOutlet=this,table._outletAssigned()}static ɵfac=function NoDataRowOutlet_Factory(__ngFactoryType__){return new(__ngFactoryType__||NoDataRowOutlet)};static ɵdir=_debug_node_chunk.FsC({type:NoDataRowOutlet,selectors:[["","noDataRowOutlet",""]]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(NoDataRowOutlet,[{type:_debug_node_chunk.WLR,args:[{selector:"[noDataRowOutlet]"}]}],()=>[],null);class CdkTable{_differs=(0,_effect_chunk2.WQX)(core.IterableDiffers);_changeDetectorRef=(0,_effect_chunk2.WQX)(core.ChangeDetectorRef);_elementRef=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);_dir=(0,_effect_chunk2.WQX)(_directionality_chunk.dS,{optional:!0});_platform=(0,_effect_chunk2.WQX)(_platform_chunk.O);_viewRepeater;_viewportRuler=(0,_effect_chunk2.WQX)(scrolling.Xj);_injector=(0,_effect_chunk2.WQX)(_effect_chunk2.zZn);_virtualScrollViewport=(0,_effect_chunk2.WQX)(scrolling.m8,{optional:!0,host:!0});_positionListener=(0,_effect_chunk2.WQX)(STICKY_POSITIONING_LISTENER,{optional:!0})||(0,_effect_chunk2.WQX)(STICKY_POSITIONING_LISTENER,{optional:!0,skipSelf:!0});_document=(0,_effect_chunk2.WQX)(_effect_chunk2.qQL);_data;_renderedRange;_onDestroy=new Subject.B;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Subject.B;_footerRowStickyUpdates=new Subject.B;_disableVirtualScrolling=!1;_getCellRole(){if(void 0===this._cellRoleInternal){const tableRole=this._elementRef.nativeElement.getAttribute("role");return"grid"===tableRole||"treegrid"===tableRole?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(fn){"undefined"!=typeof ngDevMode&&!ngDevMode||null==fn||"function"==typeof fn||console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`),this._trackByFn=fn}_trackByFn;get dataSource(){return this._dataSource}set dataSource(dataSource){this._dataSource!==dataSource&&(this._switchDataSource(dataSource),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Subject.B;_dataStream=new Subject.B;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(value){this._multiTemplateDataRows=value,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return!!this._virtualScrollEnabled()||this._fixedLayout}set fixedLayout(value){this._fixedLayout=value,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new _effect_chunk2.bkB;viewChange=new BehaviorSubject.t({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){(0,_effect_chunk2.WQX)(new core.HostAttributeToken("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName,this._dataDiffer=this._differs.find([]).create((_i,dataRow)=>this.trackBy?this.trackBy(dataRow.dataIndex,dataRow.data):dataRow)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe((0,takeUntil.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new _recycle_view_repeater_strategy_chunk.DQ:new _DisposeViewRepeaterStrategy,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(def=>{def?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),(0,_data_source_chunk.y)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const changes=this._dataDiffer.diff(this._renderRows);if(!changes)return this._updateNoDataRow(),void this.contentChanged.next();const viewContainer=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(changes,viewContainer,(record,_adjustedPreviousIndex,currentIndex)=>this._getEmbeddedViewArgs(record.item,currentIndex),record=>record.item.data,change=>{change.operation===_recycle_view_repeater_strategy_chunk.Q3.INSERTED&&change.context&&this._renderCellTemplateForItem(change.record.item.rowDef,change.context)}),this._updateRowIndexContext(),changes.forEachIdentityChange(record=>{viewContainer.get(record.currentIndex).context.$implicit=record.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(columnDef){this._customColumnDefs.add(columnDef)}removeColumnDef(columnDef){this._customColumnDefs.delete(columnDef)}addRowDef(rowDef){this._customRowDefs.add(rowDef)}removeRowDef(rowDef){this._customRowDefs.delete(rowDef)}addHeaderRowDef(headerRowDef){this._customHeaderRowDefs.add(headerRowDef),this._headerRowDefChanged=!0}removeHeaderRowDef(headerRowDef){this._customHeaderRowDefs.delete(headerRowDef),this._headerRowDefChanged=!0}addFooterRowDef(footerRowDef){this._customFooterRowDefs.add(footerRowDef),this._footerRowDefChanged=!0}removeFooterRowDef(footerRowDef){this._customFooterRowDefs.delete(footerRowDef),this._footerRowDefChanged=!0}setNoDataRow(noDataRow){this._customNoDataRow=noDataRow}updateStickyHeaderRowStyles(){const headerRows=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const thead=closestTableSection(this._headerRowOutlet,"thead");thead&&(thead.style.display=headerRows.length?"":"none")}const stickyStates=this._headerRowDefs.map(def=>def.sticky);this._stickyStyler.clearStickyPositioning(headerRows,["top"]),this._stickyStyler.stickRows(headerRows,stickyStates,"top"),this._headerRowDefs.forEach(def=>def.resetStickyChanged())}updateStickyFooterRowStyles(){const footerRows=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const tfoot=closestTableSection(this._footerRowOutlet,"tfoot");tfoot&&(tfoot.style.display=footerRows.length?"":"none")}const stickyStates=this._footerRowDefs.map(def=>def.sticky);this._stickyStyler.clearStickyPositioning(footerRows,["bottom"]),this._stickyStyler.stickRows(footerRows,stickyStates,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,stickyStates),this._footerRowDefs.forEach(def=>def.resetStickyChanged())}updateStickyColumnStyles(){const headerRows=this._getRenderedRows(this._headerRowOutlet),dataRows=this._getRenderedRows(this._rowOutlet),footerRows=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...headerRows,...dataRows,...footerRows],["left","right"]),this._stickyColumnStylesNeedReset=!1),headerRows.forEach((headerRow,i)=>{this._addStickyColumnStyles([headerRow],this._headerRowDefs[i])}),this._rowDefs.forEach(rowDef=>{const rows=[];for(let i=0;i<dataRows.length;i++)this._renderRows[i].rowDef===rowDef&&rows.push(dataRows[i]);this._addStickyColumnStyles(rows,rowDef)}),footerRows.forEach((footerRow,i)=>{this._addStickyColumnStyles([footerRow],this._footerRowDefs[i])}),Array.from(this._columnDefsByName.values()).forEach(def=>def.resetStickyChanged())}stickyColumnsUpdated(update){this._positionListener?.stickyColumnsUpdated(update)}stickyEndColumnsUpdated(update){this._positionListener?.stickyEndColumnsUpdated(update)}stickyHeaderRowsUpdated(update){this._headerRowStickyUpdates.next(update),this._positionListener?.stickyHeaderRowsUpdated(update)}stickyFooterRowsUpdated(update){this._footerRowStickyUpdates.next(update),this._positionListener?.stickyFooterRowsUpdated(update)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length&&("undefined"==typeof ngDevMode||ngDevMode))throw function getTableMissingRowDefsError(){return Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.")}();const rowDefsChanged=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||rowDefsChanged,this._forceRecalculateCellWidths=rowDefsChanged,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];const renderRows=[],end=Math.min(this._data.length,this._renderedRange.end),prevCachedRenderRows=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=this._renderedRange.start;i<end;i++){const data=this._data[i],renderRowsForData=this._getRenderRowsForData(data,i,prevCachedRenderRows.get(data));this._cachedRenderRowsMap.has(data)||this._cachedRenderRowsMap.set(data,new WeakMap);for(let j=0;j<renderRowsForData.length;j++){let renderRow=renderRowsForData[j];const cache=this._cachedRenderRowsMap.get(renderRow.data);cache.has(renderRow.rowDef)?cache.get(renderRow.rowDef).push(renderRow):cache.set(renderRow.rowDef,[renderRow]),renderRows.push(renderRow)}}return renderRows}_getRenderRowsForData(data,dataIndex,cache){return this._getRowDefs(data,dataIndex).map(rowDef=>{const cachedRenderRows=cache&&cache.has(rowDef)?cache.get(rowDef):[];if(cachedRenderRows.length){const dataRow=cachedRenderRows.shift();return dataRow.dataIndex=dataIndex,dataRow}return{data,rowDef,dataIndex}})}_cacheColumnDefs(){this._columnDefsByName.clear();mergeArrayAndSet(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(columnDef=>{if(this._columnDefsByName.has(columnDef.name)&&("undefined"==typeof ngDevMode||ngDevMode))throw function getTableDuplicateColumnNameError(name){return Error(`Duplicate column definition name provided: "${name}".`)}(columnDef.name);this._columnDefsByName.set(columnDef.name,columnDef)})}_cacheRowDefs(){this._headerRowDefs=mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const defaultRowDefs=this._rowDefs.filter(def=>!def.when);if("undefined"==typeof ngDevMode||ngDevMode){if(this._virtualScrollEnabled()&&this._rowDefs.some(def=>def.when))throw new Error("Conditional row definitions via the `when` input are not supported when virtual scrolling is enabled, at the moment.");if(!this.multiTemplateDataRows&&defaultRowDefs.length>1)throw function getTableMultipleDefaultRowDefsError(){return Error("There can only be one default row without a when predicate function. Or set `multiTemplateDataRows`.")}()}this._defaultRowDef=defaultRowDefs[0]}_renderUpdatedColumns(){const columnsDiffReducer=(acc,def)=>{const diff=!!def.getColumnsDiff();return acc||diff},dataColumnsChanged=this._rowDefs.reduce(columnsDiffReducer,!1);dataColumnsChanged&&this._forceRenderDataRows();const headerColumnsChanged=this._headerRowDefs.reduce(columnsDiffReducer,!1);headerColumnsChanged&&this._forceRenderHeaderRows();const footerColumnsChanged=this._footerRowDefs.reduce(columnsDiffReducer,!1);return footerColumnsChanged&&this._forceRenderFooterRows(),dataColumnsChanged||headerColumnsChanged||footerColumnsChanged}_switchDataSource(dataSource){this._data=[],(0,_data_source_chunk.y)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),dataSource||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=dataSource}_observeRenderChanges(){if(!this.dataSource)return;let dataStream;if((0,_data_source_chunk.y)(this.dataSource)?dataStream=this.dataSource.connect(this):(0,isObservable.A)(this.dataSource)?dataStream=this.dataSource:Array.isArray(this.dataSource)&&(dataStream=(0,of.of)(this.dataSource)),void 0===dataStream&&("undefined"==typeof ngDevMode||ngDevMode))throw function getTableUnknownDataSourceError(){return Error("Provided data source did not match an array, Observable, or DataSource")}();this._renderChangeSubscription=(0,combineLatest.z)([dataStream,this.viewChange]).pipe((0,takeUntil.Q)(this._onDestroy)).subscribe(([data,range])=>{this._data=data||[],this._renderedRange=range,this._dataStream.next(data),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((def,i)=>this._renderRow(this._headerRowOutlet,def,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((def,i)=>this._renderRow(this._footerRowOutlet,def,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(rows,rowDef){const columnDefs=Array.from(rowDef?.columns||[]).map(columnName=>{const columnDef=this._columnDefsByName.get(columnName);if(!columnDef&&("undefined"==typeof ngDevMode||ngDevMode))throw getTableUnknownColumnError(columnName);return columnDef}),stickyStartStates=columnDefs.map(columnDef=>columnDef.sticky),stickyEndStates=columnDefs.map(columnDef=>columnDef.stickyEnd);this._stickyStyler.updateStickyColumns(rows,stickyStartStates,stickyEndStates,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(rowOutlet){const renderedRows=[];for(let i=0;i<rowOutlet.viewContainer.length;i++){const viewRef=rowOutlet.viewContainer.get(i);renderedRows.push(viewRef.rootNodes[0])}return renderedRows}_getRowDefs(data,dataIndex){if(1===this._rowDefs.length)return[this._rowDefs[0]];let rowDefs=[];if(this.multiTemplateDataRows)rowDefs=this._rowDefs.filter(def=>!def.when||def.when(dataIndex,data));else{let rowDef=this._rowDefs.find(def=>def.when&&def.when(dataIndex,data))||this._defaultRowDef;rowDef&&rowDefs.push(rowDef)}if(!rowDefs.length&&("undefined"==typeof ngDevMode||ngDevMode))throw function getTableMissingMatchingRowDefError(data){return Error(`Could not find a matching row definition for the provided row data: ${JSON.stringify(data)}`)}(data);return rowDefs}_getEmbeddedViewArgs(renderRow,index){const rowDef=renderRow.rowDef,context={$implicit:renderRow.data};return{templateRef:rowDef.template,context,index}}_renderRow(outlet,rowDef,index,context={}){const view=outlet.viewContainer.createEmbeddedView(rowDef.template,context,index);return this._renderCellTemplateForItem(rowDef,context),view}_renderCellTemplateForItem(rowDef,context){for(let cellTemplate of this._getCellTemplates(rowDef))CdkCellOutlet.mostRecentCellOutlet&&CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate,context);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const viewContainer=this._rowOutlet.viewContainer;for(let renderIndex=0,count=viewContainer.length;renderIndex<count;renderIndex++){const context=viewContainer.get(renderIndex).context;context.count=count,context.first=0===renderIndex,context.last=renderIndex===count-1,context.even=renderIndex%2==0,context.odd=!context.even,this.multiTemplateDataRows?(context.dataIndex=this._renderRows[renderIndex].dataIndex,context.renderIndex=renderIndex):context.index=this._renderRows[renderIndex].dataIndex}}_getCellTemplates(rowDef){return rowDef&&rowDef.columns?Array.from(rowDef.columns,columnId=>{const column=this._columnDefsByName.get(columnId);if(!column&&("undefined"==typeof ngDevMode||ngDevMode))throw getTableUnknownColumnError(columnId);return rowDef.extractCellTemplate(column)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const stickyCheckReducer=(acc,d)=>acc||d.hasStickyChanged();this._headerRowDefs.reduce(stickyCheckReducer,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(stickyCheckReducer,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(stickyCheckReducer,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){const direction=this._dir?this._dir.value:"ltr",injector=this._injector;this._stickyStyler=new StickyStyler(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,direction,this,injector),(this._dir?this._dir.change:(0,of.of)()).pipe((0,takeUntil.Q)(this._onDestroy)).subscribe(value=>{this._stickyStyler.direction=value,this.updateStickyColumnStyles()})}_setupVirtualScrolling(viewport){const virtualScrollScheduler="undefined"!=typeof requestAnimationFrame?animationFrame.X:asap.$;this.viewChange.next({start:0,end:0}),viewport.renderedRangeStream.pipe((0,auditTime.Z)(0,virtualScrollScheduler),(0,takeUntil.Q)(this._onDestroy)).subscribe(this.viewChange),viewport.attach({dataStream:this._dataStream,measureRangeSize:(range,orientation)=>this._measureRangeSize(range,orientation)}),(0,combineLatest.z)([viewport.renderedContentOffset,this._headerRowStickyUpdates]).pipe((0,takeUntil.Q)(this._onDestroy)).subscribe(([offsetFromTop,update])=>{if(update.sizes&&update.offsets&&update.elements)for(let i=0;i<update.elements.length;i++){const cells=update.elements[i];if(cells){const current=update.offsets[i],offset=0!==offsetFromTop?Math.max(offsetFromTop-current,current):-current;for(const cell of cells)cell.style.top=-offset+"px"}}}),(0,combineLatest.z)([viewport.renderedContentOffset,this._footerRowStickyUpdates]).pipe((0,takeUntil.Q)(this._onDestroy)).subscribe(([offsetFromTop,update])=>{if(update.sizes&&update.offsets&&update.elements)for(let i=0;i<update.elements.length;i++){const cells=update.elements[i];if(cells)for(const cell of cells)cell.style.bottom=`${offsetFromTop+update.offsets[i]}px`}})}_getOwnDefs(items){return items.filter(item=>!item._table||item._table===this)}_updateNoDataRow(){const noDataRow=this._customNoDataRow||this._noDataRow;if(!noDataRow)return;const shouldShow=0===this._rowOutlet.viewContainer.length;if(shouldShow===this._isShowingNoDataRow)return;const container=this._noDataRowOutlet.viewContainer;if(shouldShow){const view=container.createEmbeddedView(noDataRow.templateRef),rootNode=view.rootNodes[0];if(1===view.rootNodes.length&&rootNode?.nodeType===this._document.ELEMENT_NODE){rootNode.setAttribute("role","row"),rootNode.classList.add(...noDataRow._contentClassNames);const cells=rootNode.querySelectorAll(noDataRow._cellSelector);for(let i=0;i<cells.length;i++)cells[i].classList.add(...noDataRow._cellClassNames)}}else container.clear();this._isShowingNoDataRow=shouldShow,this._changeDetectorRef.markForCheck()}_measureRangeSize(range,orientation){if(range.start>=range.end||"vertical"!==orientation)return 0;const renderedRange=this.viewChange.value,viewContainerRef=this._rowOutlet.viewContainer;if((range.start<renderedRange.start||range.end>renderedRange.end)&&("undefined"==typeof ngDevMode||ngDevMode))throw Error("Error: attempted to measure an item that isn't rendered.");const renderedStartIndex=range.start-renderedRange.start,rangeLen=range.end-range.start;let firstNode,lastNode;for(let i=0;i<rangeLen;i++){const view=viewContainerRef.get(i+renderedStartIndex);if(view&&view.rootNodes.length){firstNode=lastNode=view.rootNodes[0];break}}for(let i=rangeLen-1;i>-1;i--){const view=viewContainerRef.get(i+renderedStartIndex);if(view&&view.rootNodes.length){lastNode=view.rootNodes[view.rootNodes.length-1];break}}const startRect=firstNode?.getBoundingClientRect?.(),endRect=lastNode?.getBoundingClientRect?.();return startRect&&endRect?endRect.bottom-startRect.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&null!=this._virtualScrollViewport}static ɵfac=function CdkTable_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkTable)};static ɵcmp=_debug_node_chunk.VBU({type:CdkTable,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function CdkTable_ContentQueries(rf,ctx,dirIndex){if(1&rf&&_debug_node_chunk.wni(dirIndex,CdkNoDataRow,5)(dirIndex,CdkColumnDef,5)(dirIndex,CdkRowDef,5)(dirIndex,CdkHeaderRowDef,5)(dirIndex,CdkFooterRowDef,5),2&rf){let _t;_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx._noDataRow=_t.first),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx._contentColumnDefs=_t),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx._contentRowDefs=_t),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx._contentHeaderRowDefs=_t),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx._contentFooterRowDefs=_t)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function CdkTable_HostBindings(rf,ctx){2&rf&&_debug_node_chunk.AVh("cdk-table-fixed-layout",ctx.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",core.booleanAttribute],fixedLayout:[2,"fixedLayout","fixedLayout",core.booleanAttribute],recycleRows:[2,"recycleRows","recycleRows",core.booleanAttribute]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[_debug_node_chunk.Jv_([{provide:CDK_TABLE,useExisting:CdkTable},{provide:STICKY_POSITIONING_LISTENER,useValue:null}])],ngContentSelectors:_c1,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function CdkTable_Template(rf,ctx){1&rf&&(_debug_node_chunk.NAR(_c0),_debug_node_chunk.SdG(0),_debug_node_chunk.SdG(1,1),_debug_node_chunk.nVh(2,CdkTable_Conditional_2_Template,1,0),_debug_node_chunk.nVh(3,CdkTable_Conditional_3_Template,7,0)(4,CdkTable_Conditional_4_Template,4,0)),2&rf&&(_debug_node_chunk.R7$(2),_debug_node_chunk.vxM(ctx._isServer?2:-1),_debug_node_chunk.R7$(),_debug_node_chunk.vxM(ctx._isNativeHtmlTable?3:4))},dependencies:[HeaderRowOutlet,DataRowOutlet,NoDataRowOutlet,FooterRowOutlet],styles:[".cdk-table-fixed-layout {\n table-layout: fixed;\n}\n"],encapsulation:2})}function mergeArrayAndSet(array,set){return array.concat(Array.from(set))}function closestTableSection(outlet,section){const uppercaseSection=section.toUpperCase();let current=outlet.viewContainer.element.nativeElement;for(;current;){const nodeName=1===current.nodeType?current.nodeName:null;if(nodeName===uppercaseSection)return current;if("TABLE"===nodeName)break;current=current.parentNode}return null}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkTable,[{type:_debug_node_chunk.uAl,args:[{selector:"cdk-table, table[cdk-table]",exportAs:"cdkTable",template:'\n <ng-content select="caption"/>\n <ng-content select="colgroup, col"/>\n\n \x3c!--\n Unprojected content throws a hydration error so we need this to capture it.\n It gets removed on the client so it doesn\'t affect the layout.\n --\x3e\n @if (_isServer) {\n <ng-content/>\n }\n\n @if (_isNativeHtmlTable) {\n <thead role="rowgroup">\n <ng-container headerRowOutlet/>\n </thead>\n <tbody role="rowgroup">\n <ng-container rowOutlet/>\n <ng-container noDataRowOutlet/>\n </tbody>\n <tfoot role="rowgroup">\n <ng-container footerRowOutlet/>\n </tfoot>\n } @else {\n <ng-container headerRowOutlet/>\n <ng-container rowOutlet/>\n <ng-container noDataRowOutlet/>\n <ng-container footerRowOutlet/>\n }\n ',host:{class:"cdk-table","[class.cdk-table-fixed-layout]":"fixedLayout"},encapsulation:_debug_node_chunk.gXe.None,changeDetection:_debug_node_chunk.Ngq.Default,providers:[{provide:CDK_TABLE,useExisting:CdkTable},{provide:STICKY_POSITIONING_LISTENER,useValue:null}],imports:[HeaderRowOutlet,DataRowOutlet,NoDataRowOutlet,FooterRowOutlet],styles:[".cdk-table-fixed-layout {\n table-layout: fixed;\n}\n"]}]}],()=>[],{trackBy:[{type:_debug_node_chunk.pde}],dataSource:[{type:_debug_node_chunk.pde}],multiTemplateDataRows:[{type:_debug_node_chunk.pde,args:[{transform:core.booleanAttribute}]}],fixedLayout:[{type:_debug_node_chunk.pde,args:[{transform:core.booleanAttribute}]}],recycleRows:[{type:_debug_node_chunk.pde,args:[{transform:core.booleanAttribute}]}],contentChanged:[{type:_debug_node_chunk.k7i}],_contentColumnDefs:[{type:core.ContentChildren,args:[CdkColumnDef,{descendants:!0}]}],_contentRowDefs:[{type:core.ContentChildren,args:[CdkRowDef,{descendants:!0}]}],_contentHeaderRowDefs:[{type:core.ContentChildren,args:[CdkHeaderRowDef,{descendants:!0}]}],_contentFooterRowDefs:[{type:core.ContentChildren,args:[CdkFooterRowDef,{descendants:!0}]}],_noDataRow:[{type:core.ContentChild,args:[CdkNoDataRow]}]});class CdkTextColumn{_table=(0,_effect_chunk2.WQX)(CdkTable,{optional:!0});_options=(0,_effect_chunk2.WQX)(TEXT_COLUMN_OPTIONS,{optional:!0});get name(){return this._name}set name(name){this._name=name,this._syncColumnDefName()}_name;headerText;dataAccessor;justify="start";columnDef;cell;headerCell;constructor(){this._options=this._options||{}}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((data,name)=>data[name])),this._table)this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef);else if("undefined"==typeof ngDevMode||ngDevMode)throw function getTableTextColumnMissingParentTableError(){return Error("Text column could not find a parent table for registration.")}()}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const name=this.name;if(!name&&("undefined"==typeof ngDevMode||ngDevMode))throw function getTableTextColumnMissingNameError(){return Error("Table text column must have a name.")}();return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(name):name[0].toUpperCase()+name.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static ɵfac=function CdkTextColumn_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkTextColumn)};static ɵcmp=_debug_node_chunk.VBU({type:CdkTextColumn,selectors:[["cdk-text-column"]],viewQuery:function CdkTextColumn_Query(rf,ctx){if(1&rf&&_debug_node_chunk.GBs(CdkColumnDef,7)(CdkCellDef,7)(CdkHeaderCellDef,7),2&rf){let _t;_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx.columnDef=_t.first),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx.cell=_t.first),_debug_node_chunk.mGM(_t=_debug_node_chunk.lsd())&&(ctx.headerCell=_t.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function CdkTextColumn_Template(rf,ctx){1&rf&&(_debug_node_chunk.qex(0,0),_debug_node_chunk.DNE(1,CdkTextColumn_th_1_Template,2,3,"th",1)(2,CdkTextColumn_td_2_Template,2,3,"td",2),_debug_node_chunk.bVm())},dependencies:[CdkColumnDef,CdkHeaderCellDef,CdkHeaderCell,CdkCellDef,CdkCell],encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkTextColumn,[{type:_debug_node_chunk.uAl,args:[{selector:"cdk-text-column",template:'\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef="let data" [style.text-align]="justify">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n ',encapsulation:_debug_node_chunk.gXe.None,changeDetection:_debug_node_chunk.Ngq.Default,imports:[CdkColumnDef,CdkHeaderCellDef,CdkHeaderCell,CdkCellDef,CdkCell]}]}],()=>[],{name:[{type:_debug_node_chunk.pde}],headerText:[{type:_debug_node_chunk.pde}],dataAccessor:[{type:_debug_node_chunk.pde}],justify:[{type:_debug_node_chunk.pde}],columnDef:[{type:core.ViewChild,args:[CdkColumnDef,{static:!0}]}],cell:[{type:core.ViewChild,args:[CdkCellDef,{static:!0}]}],headerCell:[{type:core.ViewChild,args:[CdkHeaderCellDef,{static:!0}]}]});const EXPORTED_DECLARATIONS=[CdkTable,CdkRowDef,CdkCellDef,CdkCellOutlet,CdkHeaderCellDef,CdkFooterCellDef,CdkColumnDef,CdkCell,CdkRow,CdkHeaderCell,CdkFooterCell,CdkHeaderRow,CdkHeaderRowDef,CdkFooterRow,CdkFooterRowDef,DataRowOutlet,HeaderRowOutlet,FooterRowOutlet,CdkTextColumn,CdkNoDataRow,CdkRecycleRows,NoDataRowOutlet];class CdkTableModule{static ɵfac=function CdkTableModule_Factory(__ngFactoryType__){return new(__ngFactoryType__||CdkTableModule)};static ɵmod=_debug_node_chunk.$C({type:CdkTableModule,imports:[scrolling.E9,CdkTable,CdkRowDef,CdkCellDef,CdkCellOutlet,CdkHeaderCellDef,CdkFooterCellDef,CdkColumnDef,CdkCell,CdkRow,CdkHeaderCell,CdkFooterCell,CdkHeaderRow,CdkHeaderRowDef,CdkFooterRow,CdkFooterRowDef,DataRowOutlet,HeaderRowOutlet,FooterRowOutlet,CdkTextColumn,CdkNoDataRow,CdkRecycleRows,NoDataRowOutlet],exports:[CdkTable,CdkRowDef,CdkCellDef,CdkCellOutlet,CdkHeaderCellDef,CdkFooterCellDef,CdkColumnDef,CdkCell,CdkRow,CdkHeaderCell,CdkFooterCell,CdkHeaderRow,CdkHeaderRowDef,CdkFooterRow,CdkFooterRowDef,DataRowOutlet,HeaderRowOutlet,FooterRowOutlet,CdkTextColumn,CdkNoDataRow,CdkRecycleRows,NoDataRowOutlet]});static ɵinj=_effect_chunk2.G2t({imports:[scrolling.E9]})}("undefined"==typeof ngDevMode||ngDevMode)&&_debug_node_chunk.cDI(CdkTableModule,[{type:_debug_node_chunk.UQu,args:[{exports:EXPORTED_DECLARATIONS,imports:[scrolling.E9,...EXPORTED_DECLARATIONS]}]}],null,null)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[9850],{"../web-components/dist/esm/AbstractID3Parser-CJNjdhVf.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:()=>AbstractID3Parser});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../web-components/dist/esm/mwork-banner.mwork-basic-interpreter.mwork-music-player-CKnbZ8Ik.js"),_ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../web-components/dist/esm/ID3v2Parser-DLpVzYcQ.js");const debug=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.c)("music-metadata:parser:ID3");class AbstractID3Parser extends _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.B{constructor(){super(...arguments),this.id3parser=new _ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_2__.I}static startsWithID3v2Header(tokenizer){return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){return"ID3"===(yield tokenizer.peekToken(_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.L)).fileIdentifier})()}parse(){var _this=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){try{yield _this.parseID3v2()}catch(err){if(!(err instanceof _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.E))throw err;debug("End-of-stream")}})()}finalize(){}parseID3v2(){var _this2=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){if(yield _this2.tryReadId3v2Headers(),debug("End of ID3v2 header, go to MPEG-parser: pos=%s",_this2.tokenizer.position),yield _this2.postId3v2Parse(),_this2.options.skipPostHeaders&&_this2.metadata.hasAny())_this2.finalize();else{const id3v1parser=new _mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.M(_this2.metadata,_this2.tokenizer,_this2.options);yield id3v1parser.parse(),_this2.finalize()}})()}tryReadId3v2Headers(){var _this3=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){if("ID3"===(yield _this3.tokenizer.peekToken(_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.L)).fileIdentifier)return debug("Found ID3v2 header, pos=%s",_this3.tokenizer.position),yield _this3.id3parser.parse(_this3.metadata,_this3.tokenizer,_this3.options),_this3.tryReadId3v2Headers()})()}}},"../web-components/dist/esm/DsfParser-CDJQ0v7D.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DsdContentParseError:()=>DsdContentParseError,DsfParser:()=>DsfParser});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../web-components/dist/esm/mwork-banner.mwork-basic-interpreter.mwork-music-player-CKnbZ8Ik.js"),_AbstractID3Parser_CJNjdhVf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../web-components/dist/esm/AbstractID3Parser-CJNjdhVf.js"),_ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../web-components/dist/esm/ID3v2Parser-DLpVzYcQ.js");__webpack_require__("../web-components/dist/esm/index-BCPpAKCl.js");const ChunkHeader={len:12,get:(buf,off)=>({id:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.F.get(buf,off),size:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.h.get(buf,off+4)})},DsdChunk={len:16,get:(buf,off)=>({fileSize:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.o.get(buf,off),metadataPointer:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.o.get(buf,off+8)})},FormatChunk={len:40,get:(buf,off)=>({formatVersion:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off),formatID:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off+4),channelType:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off+8),channelNum:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off+12),samplingFrequency:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off+16),bitsPerSample:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off+20),sampleCount:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.o.get(buf,off+24),blockSizePerChannel:_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.p.get(buf,off+32)})},debug=(0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.c)("music-metadata:parser:DSF");class DsdContentParseError extends((0,_mwork_banner_mwork_basic_interpreter_mwork_music_player_CKnbZ8Ik_js__WEBPACK_IMPORTED_MODULE_1__.m)("DSD")){}class DsfParser extends _AbstractID3Parser_CJNjdhVf_js__WEBPACK_IMPORTED_MODULE_2__.A{postId3v2Parse(){var _this=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){const p0=_this.tokenizer.position,chunkHeader=yield _this.tokenizer.readToken(ChunkHeader);if("DSD "!==chunkHeader.id)throw new DsdContentParseError("Invalid chunk signature");_this.metadata.setFormat("container","DSF"),_this.metadata.setFormat("lossless",!0),_this.metadata.setAudioOnly();const dsdChunk=yield _this.tokenizer.readToken(DsdChunk);if(dsdChunk.metadataPointer!==BigInt(0))return debug(`expect ID3v2 at offset=${dsdChunk.metadataPointer}`),yield _this.parseChunks(dsdChunk.fileSize-chunkHeader.size),yield _this.tokenizer.ignore(Number(dsdChunk.metadataPointer)-_this.tokenizer.position-p0),(new _ID3v2Parser_DLpVzYcQ_js__WEBPACK_IMPORTED_MODULE_3__.I).parse(_this.metadata,_this.tokenizer,_this.options);debug("No ID3v2 tag present")})()}parseChunks(bytesRemaining){var _this2=this;return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){for(;bytesRemaining>=ChunkHeader.len;){const chunkHeader=yield _this2.tokenizer.readToken(ChunkHeader);if(debug(`Parsing chunk name=${chunkHeader.id} size=${chunkHeader.size}`),"fmt "===chunkHeader.id){const formatChunk=yield _this2.tokenizer.readToken(FormatChunk);_this2.metadata.setFormat("numberOfChannels",formatChunk.channelNum),_this2.metadata.setFormat("sampleRate",formatChunk.samplingFrequency),_this2.metadata.setFormat("bitsPerSample",formatChunk.bitsPerSample),_this2.metadata.setFormat("numberOfSamples",formatChunk.sampleCount),_this2.metadata.setFormat("duration",Number(formatChunk.sampleCount)/formatChunk.samplingFrequency);const bitrate=formatChunk.bitsPerSample*formatChunk.samplingFrequency*formatChunk.channelNum;return void _this2.metadata.setFormat("bitrate",bitrate)}_this2.tokenizer.ignore(Number(chunkHeader.size)-ChunkHeader.len),bytesRemaining-=chunkHeader.size}})()}}}}]);