@supersoniks/concorde 3.2.1 → 3.2.3

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 (1009) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +209 -196
  3. package/concorde-core.es.js +843 -790
  4. package/dist/concorde-core.bundle.js +209 -196
  5. package/dist/concorde-core.es.js +843 -790
  6. package/index.html +0 -0
  7. package/package.json +1 -1
  8. package/scripts/create-search.js +0 -0
  9. package/scripts/generate-routes.js +0 -0
  10. package/src/core/_types/types.ts +0 -0
  11. package/src/core/components/functional/date/date.ts +0 -0
  12. package/src/core/components/functional/functional.ts +0 -0
  13. package/src/core/components/functional/if/if.md +0 -0
  14. package/src/core/components/functional/if/if.test.ts +0 -0
  15. package/src/core/components/functional/list/list.spec.ts +0 -0
  16. package/src/core/components/functional/queue/queue.demo.ts +0 -0
  17. package/src/core/components/functional/router/router.demo.ts +0 -0
  18. package/src/core/components/functional/router/router.md +0 -0
  19. package/src/core/components/functional/router/router.spec.ts +0 -0
  20. package/src/core/components/functional/router/router.ts +0 -0
  21. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  22. package/src/core/components/functional/states/states.demo.ts +0 -0
  23. package/src/core/components/functional/states/states.md +0 -0
  24. package/src/core/components/functional/states/states.spec.ts +0 -0
  25. package/src/core/components/functional/states/states.ts +0 -0
  26. package/src/core/components/functional/submit/submit.ts +0 -0
  27. package/src/core/components/functional/translation/translation.ts +0 -0
  28. package/src/core/components/ui/_css/scroll.ts +0 -0
  29. package/src/core/components/ui/_css/shadow.ts +0 -0
  30. package/src/core/components/ui/_css/size.ts +0 -0
  31. package/src/core/components/ui/_css/type.ts +0 -0
  32. package/src/core/components/ui/alert/alert.md +0 -0
  33. package/src/core/components/ui/alert/alert.ts +0 -0
  34. package/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  35. package/src/core/components/ui/badge/badge.md +0 -0
  36. package/src/core/components/ui/badge/badge.ts +0 -0
  37. package/src/core/components/ui/button/button.md +0 -0
  38. package/src/core/components/ui/button/button.ts +0 -0
  39. package/src/core/components/ui/captcha/captcha.md +0 -0
  40. package/src/core/components/ui/captcha/captcha.ts +0 -0
  41. package/src/core/components/ui/card/card-footer.ts +0 -0
  42. package/src/core/components/ui/card/card-header-descripton.ts +0 -0
  43. package/src/core/components/ui/card/card-header.ts +0 -0
  44. package/src/core/components/ui/card/card-main.ts +0 -0
  45. package/src/core/components/ui/card/card.md +0 -0
  46. package/src/core/components/ui/card/card.ts +0 -0
  47. package/src/core/components/ui/divider/divider.ts +0 -0
  48. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  49. package/src/core/components/ui/form/checkbox/checkbox.ts +0 -6
  50. package/src/core/components/ui/form/css/form-control.ts +0 -0
  51. package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
  52. package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
  53. package/src/core/components/ui/form/fieldset/legend.ts +0 -0
  54. package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
  55. package/src/core/components/ui/form/input/input.md +0 -0
  56. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
  57. package/src/core/components/ui/form/radio/radio.md +0 -0
  58. package/src/core/components/ui/form/radio/radio.ts +1 -11
  59. package/src/core/components/ui/form/select/select.md +0 -0
  60. package/src/core/components/ui/form/switch/switch.md +0 -0
  61. package/src/core/components/ui/form/switch/switch.ts +0 -0
  62. package/src/core/components/ui/form/textarea/textarea.ts +0 -0
  63. package/src/core/components/ui/icon/icons.ts +28 -9
  64. package/src/core/components/ui/image/image.md +0 -0
  65. package/src/core/components/ui/image/image.ts +0 -0
  66. package/src/core/components/ui/loader/loader.md +0 -0
  67. package/src/core/components/ui/loader/loader.ts +0 -0
  68. package/src/core/components/ui/loader/styles/fixed.ts +0 -0
  69. package/src/core/components/ui/loader/styles/inline.ts +0 -0
  70. package/src/core/components/ui/menu/menu.md +46 -5
  71. package/src/core/components/ui/menu/menu.ts +96 -23
  72. package/src/core/components/ui/modal/modal-actions.ts +0 -0
  73. package/src/core/components/ui/modal/modal-close.ts +0 -0
  74. package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
  75. package/src/core/components/ui/modal/modal-title.ts +0 -0
  76. package/src/core/components/ui/modal/modal.md +0 -0
  77. package/src/core/components/ui/modal/modal.ts +4 -4
  78. package/src/core/components/ui/pop/pop.md +0 -0
  79. package/src/core/components/ui/progress/progress.ts +0 -0
  80. package/src/core/components/ui/table/table-tbody.ts +0 -0
  81. package/src/core/components/ui/table/table-th.ts +0 -0
  82. package/src/core/components/ui/table/table.ts +0 -0
  83. package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
  84. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  85. package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
  86. package/src/core/components/ui/theme/theme.ts +0 -0
  87. package/src/core/components/ui/toast/toast-item.ts +0 -0
  88. package/src/core/components/ui/tooltip/tooltip.ts +0 -0
  89. package/src/core/components/ui/ui.ts +0 -0
  90. package/src/core/directives/DataProvider.ts +0 -0
  91. package/src/core/directives/Wording.ts +0 -0
  92. package/src/core/mixins/Fetcher.ts +0 -0
  93. package/src/core/mixins/FormCheckable.ts +0 -0
  94. package/src/core/mixins/TemplatesContainer.ts +0 -0
  95. package/src/core/utils/HTML.ts +0 -0
  96. package/src/core/utils/LocationHandler.ts +0 -0
  97. package/src/core/utils/Objects.ts +0 -0
  98. package/src/core/utils/Utils.ts +0 -0
  99. package/src/core/utils/api.ts +0 -0
  100. package/src/core/utils/route.spec.ts +0 -0
  101. package/src/core/utils/route.ts +0 -0
  102. package/src/docs/code.ts +0 -0
  103. package/src/docs/docs.ts +0 -0
  104. package/src/docs/header/header.ts +0 -0
  105. package/src/docs/layout.ts +0 -0
  106. package/src/docs/navigation/navigation.ts +0 -0
  107. package/src/docs/search/docs-search.json +0 -0
  108. package/src/docs/search/markdown-renderer.ts +0 -0
  109. package/src/docs/search/page.ts +0 -0
  110. package/src/docs/search/search.ts +0 -0
  111. package/src/docs/tailwind/css/tailwind.css +0 -0
  112. package/src/docs/tailwind/css.d.ts +0 -0
  113. package/src/index.ts +0 -0
  114. package/src/test-utils/TestUtils.ts +0 -0
  115. package/src/tsconfig-model.json +0 -0
  116. package/src/tsconfig.json +0 -0
  117. package/tailwind.config.js +0 -0
  118. package/templates-test.html +0 -0
  119. package/vite/config.js +0 -0
  120. package/README.md +0 -163
  121. package/docs/assets/index-C0K6xugr.css +0 -1
  122. package/docs/assets/index-Dgl1lJQo.js +0 -4861
  123. package/docs/css/docs.css +0 -0
  124. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  125. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  126. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  127. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  128. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  129. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  130. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  131. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  132. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  133. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  134. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  135. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  136. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  137. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  138. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  139. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  140. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  141. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  142. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  143. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  144. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  145. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  146. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  147. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  148. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  149. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  150. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  151. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  152. package/docs/img/concorde-icon.svg +0 -5
  153. package/docs/img/concorde-logo.svg +0 -1
  154. package/docs/img/concorde.png +0 -0
  155. package/docs/img/concorde_def.png +0 -0
  156. package/docs/img/concorde_seuil.png.webp +0 -0
  157. package/docs/img/concorde_seuil_invert.png +0 -0
  158. package/docs/img/paul_metrand.jpg +0 -0
  159. package/docs/img/paul_metrand_xs.jpg +0 -0
  160. package/docs/index.html +0 -93
  161. package/docs/src/core/components/functional/date/date.md +0 -290
  162. package/docs/src/core/components/functional/fetch/fetch.md +0 -117
  163. package/docs/src/core/components/functional/if/if.md +0 -16
  164. package/docs/src/core/components/functional/list/list.md +0 -199
  165. package/docs/src/core/components/functional/mix/mix.md +0 -41
  166. package/docs/src/core/components/functional/queue/queue.md +0 -87
  167. package/docs/src/core/components/functional/router/router.md +0 -129
  168. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  169. package/docs/src/core/components/functional/sdui/example.json +0 -99
  170. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  171. package/docs/src/core/components/functional/states/states.md +0 -87
  172. package/docs/src/core/components/functional/submit/submit.md +0 -83
  173. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  174. package/docs/src/core/components/functional/value/value.md +0 -35
  175. package/docs/src/core/components/ui/alert/alert.md +0 -121
  176. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  177. package/docs/src/core/components/ui/badge/badge.md +0 -127
  178. package/docs/src/core/components/ui/button/button.md +0 -182
  179. package/docs/src/core/components/ui/captcha/captcha.md +0 -24
  180. package/docs/src/core/components/ui/card/card.md +0 -97
  181. package/docs/src/core/components/ui/divider/divider.md +0 -35
  182. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -104
  183. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
  184. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  185. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -44
  186. package/docs/src/core/components/ui/form/input/input.md +0 -167
  187. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -131
  188. package/docs/src/core/components/ui/form/radio/radio.md +0 -84
  189. package/docs/src/core/components/ui/form/select/select.md +0 -97
  190. package/docs/src/core/components/ui/form/switch/switch.md +0 -84
  191. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
  192. package/docs/src/core/components/ui/group/group.md +0 -75
  193. package/docs/src/core/components/ui/icon/icon.md +0 -125
  194. package/docs/src/core/components/ui/icon/icons.json +0 -1
  195. package/docs/src/core/components/ui/image/image.md +0 -107
  196. package/docs/src/core/components/ui/link/link.md +0 -43
  197. package/docs/src/core/components/ui/loader/loader.md +0 -67
  198. package/docs/src/core/components/ui/menu/menu.md +0 -288
  199. package/docs/src/core/components/ui/modal/modal.md +0 -123
  200. package/docs/src/core/components/ui/pop/pop.md +0 -96
  201. package/docs/src/core/components/ui/progress/progress.md +0 -63
  202. package/docs/src/core/components/ui/table/table.md +0 -455
  203. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
  204. package/docs/src/docs/_core-concept/overview.md +0 -57
  205. package/docs/src/docs/_core-concept/subscriber.md +0 -76
  206. package/docs/src/docs/_getting-started/concorde-outside.md +0 -143
  207. package/docs/src/docs/_getting-started/create-a-component.md +0 -137
  208. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -174
  209. package/docs/src/docs/_getting-started/pubsub.md +0 -150
  210. package/docs/src/docs/_getting-started/start.md +0 -39
  211. package/docs/src/docs/_getting-started/theming.md +0 -91
  212. package/docs/src/docs/search/docs-search.json +0 -3917
  213. package/docs/src/tag-list.json +0 -1
  214. package/docs/src/tsconfig-model.json +0 -23
  215. package/docs/src/tsconfig.json +0 -918
  216. package/docs/svg/regular/plane.svg +0 -1
  217. package/docs/svg/solid/plane.svg +0 -1
  218. package/mcp-server/COMPARISON-MCP.md +0 -176
  219. package/mcp-server/README-MCP-NODEJS.md +0 -284
  220. package/mcp-server/README-MCP.md +0 -114
  221. package/mcp-server/README.md +0 -127
  222. package/mcp-server/TECHNICAL-DOCS.md +0 -269
  223. package/mcp-server/concorde-mcp-server.js +0 -859
  224. package/mcp-server/concorde-mcp-server.py +0 -801
  225. package/mcp-server/cursor-mcp-config-advanced.json +0 -68
  226. package/mcp-server/cursor-mcp-config-nodejs.json +0 -74
  227. package/mcp-server/cursor-mcp-config.json +0 -11
  228. package/mcp-server/install-mcp-nodejs.sh +0 -104
  229. package/mcp-server/install-mcp.sh +0 -62
  230. package/mcp-server/node_modules/.package-lock.json +0 -133
  231. package/mcp-server/node_modules/@modelcontextprotocol/sdk/LICENSE +0 -7
  232. package/mcp-server/node_modules/@modelcontextprotocol/sdk/README.md +0 -110
  233. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts +0 -2
  234. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts.map +0 -1
  235. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cli.js +0 -129
  236. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cli.js.map +0 -1
  237. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts +0 -773
  238. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts.map +0 -1
  239. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.js +0 -206
  240. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.js.map +0 -1
  241. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts +0 -2
  242. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts.map +0 -1
  243. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js +0 -357
  244. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js.map +0 -1
  245. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts +0 -22
  246. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts.map +0 -1
  247. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js +0 -91
  248. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js.map +0 -1
  249. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts +0 -56
  250. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts.map +0 -1
  251. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js +0 -135
  252. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js.map +0 -1
  253. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts +0 -2
  254. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts.map +0 -1
  255. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js +0 -51
  256. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js.map +0 -1
  257. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts +0 -17
  258. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts.map +0 -1
  259. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js +0 -61
  260. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js.map +0 -1
  261. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts +0 -20
  262. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts.map +0 -1
  263. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js +0 -47
  264. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js.map +0 -1
  265. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts +0 -2
  266. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts.map +0 -1
  267. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js +0 -74
  268. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js.map +0 -1
  269. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts +0 -112
  270. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts.map +0 -1
  271. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.js +0 -182
  272. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.js.map +0 -1
  273. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts +0 -2
  274. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts.map +0 -1
  275. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js +0 -360
  276. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js.map +0 -1
  277. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts +0 -46
  278. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts.map +0 -1
  279. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js +0 -116
  280. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js.map +0 -1
  281. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts +0 -28
  282. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts.map +0 -1
  283. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js +0 -69
  284. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js.map +0 -1
  285. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts +0 -2
  286. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts.map +0 -1
  287. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js +0 -87
  288. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js.map +0 -1
  289. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts +0 -149
  290. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts.map +0 -1
  291. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js +0 -274
  292. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js.map +0 -1
  293. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts +0 -13
  294. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts.map +0 -1
  295. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js +0 -31
  296. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js.map +0 -1
  297. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts +0 -2
  298. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts.map +0 -1
  299. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js +0 -27
  300. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js.map +0 -1
  301. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts +0 -39
  302. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts.map +0 -1
  303. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js +0 -2
  304. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js.map +0 -1
  305. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts +0 -26424
  306. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts.map +0 -1
  307. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/types.js +0 -996
  308. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/types.js.map +0 -1
  309. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.d.ts +0 -5
  310. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.d.ts.map +0 -1
  311. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.js +0 -11
  312. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.js.map +0 -1
  313. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.test.d.ts +0 -2
  314. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.test.d.ts.map +0 -1
  315. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.test.js +0 -14
  316. package/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/utils.test.js.map +0 -1
  317. package/mcp-server/node_modules/@modelcontextprotocol/sdk/package.json +0 -61
  318. package/mcp-server/node_modules/bytes/History.md +0 -97
  319. package/mcp-server/node_modules/bytes/LICENSE +0 -23
  320. package/mcp-server/node_modules/bytes/Readme.md +0 -152
  321. package/mcp-server/node_modules/bytes/index.js +0 -170
  322. package/mcp-server/node_modules/bytes/package.json +0 -42
  323. package/mcp-server/node_modules/content-type/HISTORY.md +0 -29
  324. package/mcp-server/node_modules/content-type/LICENSE +0 -22
  325. package/mcp-server/node_modules/content-type/README.md +0 -94
  326. package/mcp-server/node_modules/content-type/index.js +0 -225
  327. package/mcp-server/node_modules/content-type/package.json +0 -42
  328. package/mcp-server/node_modules/depd/History.md +0 -103
  329. package/mcp-server/node_modules/depd/LICENSE +0 -22
  330. package/mcp-server/node_modules/depd/Readme.md +0 -280
  331. package/mcp-server/node_modules/depd/index.js +0 -538
  332. package/mcp-server/node_modules/depd/lib/browser/index.js +0 -77
  333. package/mcp-server/node_modules/depd/package.json +0 -45
  334. package/mcp-server/node_modules/http-errors/HISTORY.md +0 -180
  335. package/mcp-server/node_modules/http-errors/LICENSE +0 -23
  336. package/mcp-server/node_modules/http-errors/README.md +0 -169
  337. package/mcp-server/node_modules/http-errors/index.js +0 -289
  338. package/mcp-server/node_modules/http-errors/package.json +0 -50
  339. package/mcp-server/node_modules/iconv-lite/Changelog.md +0 -236
  340. package/mcp-server/node_modules/iconv-lite/LICENSE +0 -21
  341. package/mcp-server/node_modules/iconv-lite/README.md +0 -138
  342. package/mcp-server/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  343. package/mcp-server/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  344. package/mcp-server/node_modules/iconv-lite/encodings/index.js +0 -23
  345. package/mcp-server/node_modules/iconv-lite/encodings/internal.js +0 -218
  346. package/mcp-server/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  347. package/mcp-server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  348. package/mcp-server/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  349. package/mcp-server/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  350. package/mcp-server/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  351. package/mcp-server/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  352. package/mcp-server/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  353. package/mcp-server/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  354. package/mcp-server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  355. package/mcp-server/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  356. package/mcp-server/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  357. package/mcp-server/node_modules/iconv-lite/encodings/utf16.js +0 -187
  358. package/mcp-server/node_modules/iconv-lite/encodings/utf32.js +0 -307
  359. package/mcp-server/node_modules/iconv-lite/encodings/utf7.js +0 -283
  360. package/mcp-server/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  361. package/mcp-server/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  362. package/mcp-server/node_modules/iconv-lite/lib/index.d.ts +0 -41
  363. package/mcp-server/node_modules/iconv-lite/lib/index.js +0 -183
  364. package/mcp-server/node_modules/iconv-lite/lib/streams.js +0 -105
  365. package/mcp-server/node_modules/iconv-lite/package.json +0 -59
  366. package/mcp-server/node_modules/inherits/LICENSE +0 -16
  367. package/mcp-server/node_modules/inherits/README.md +0 -42
  368. package/mcp-server/node_modules/inherits/inherits.js +0 -9
  369. package/mcp-server/node_modules/inherits/inherits_browser.js +0 -27
  370. package/mcp-server/node_modules/inherits/package.json +0 -29
  371. package/mcp-server/node_modules/raw-body/HISTORY.md +0 -333
  372. package/mcp-server/node_modules/raw-body/LICENSE +0 -22
  373. package/mcp-server/node_modules/raw-body/README.md +0 -223
  374. package/mcp-server/node_modules/raw-body/SECURITY.md +0 -24
  375. package/mcp-server/node_modules/raw-body/index.d.ts +0 -85
  376. package/mcp-server/node_modules/raw-body/index.js +0 -336
  377. package/mcp-server/node_modules/raw-body/package.json +0 -50
  378. package/mcp-server/node_modules/safer-buffer/LICENSE +0 -21
  379. package/mcp-server/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  380. package/mcp-server/node_modules/safer-buffer/Readme.md +0 -156
  381. package/mcp-server/node_modules/safer-buffer/dangerous.js +0 -58
  382. package/mcp-server/node_modules/safer-buffer/package.json +0 -34
  383. package/mcp-server/node_modules/safer-buffer/safer.js +0 -77
  384. package/mcp-server/node_modules/safer-buffer/tests.js +0 -406
  385. package/mcp-server/node_modules/setprototypeof/LICENSE +0 -13
  386. package/mcp-server/node_modules/setprototypeof/README.md +0 -31
  387. package/mcp-server/node_modules/setprototypeof/index.d.ts +0 -2
  388. package/mcp-server/node_modules/setprototypeof/index.js +0 -17
  389. package/mcp-server/node_modules/setprototypeof/package.json +0 -38
  390. package/mcp-server/node_modules/setprototypeof/test/index.js +0 -24
  391. package/mcp-server/node_modules/statuses/HISTORY.md +0 -82
  392. package/mcp-server/node_modules/statuses/LICENSE +0 -23
  393. package/mcp-server/node_modules/statuses/README.md +0 -136
  394. package/mcp-server/node_modules/statuses/codes.json +0 -65
  395. package/mcp-server/node_modules/statuses/index.js +0 -146
  396. package/mcp-server/node_modules/statuses/package.json +0 -49
  397. package/mcp-server/node_modules/toidentifier/HISTORY.md +0 -9
  398. package/mcp-server/node_modules/toidentifier/LICENSE +0 -21
  399. package/mcp-server/node_modules/toidentifier/README.md +0 -61
  400. package/mcp-server/node_modules/toidentifier/index.js +0 -32
  401. package/mcp-server/node_modules/toidentifier/package.json +0 -38
  402. package/mcp-server/node_modules/unpipe/HISTORY.md +0 -4
  403. package/mcp-server/node_modules/unpipe/LICENSE +0 -22
  404. package/mcp-server/node_modules/unpipe/README.md +0 -43
  405. package/mcp-server/node_modules/unpipe/index.js +0 -69
  406. package/mcp-server/node_modules/unpipe/package.json +0 -27
  407. package/mcp-server/node_modules/zod/LICENSE +0 -21
  408. package/mcp-server/node_modules/zod/README.md +0 -208
  409. package/mcp-server/node_modules/zod/index.cjs +0 -33
  410. package/mcp-server/node_modules/zod/index.d.cts +0 -4
  411. package/mcp-server/node_modules/zod/index.d.ts +0 -4
  412. package/mcp-server/node_modules/zod/index.js +0 -4
  413. package/mcp-server/node_modules/zod/package.json +0 -118
  414. package/mcp-server/node_modules/zod/src/index.ts +0 -4
  415. package/mcp-server/node_modules/zod/src/v3/ZodError.ts +0 -330
  416. package/mcp-server/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  417. package/mcp-server/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  418. package/mcp-server/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  419. package/mcp-server/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  420. package/mcp-server/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  421. package/mcp-server/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  422. package/mcp-server/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  423. package/mcp-server/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  424. package/mcp-server/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  425. package/mcp-server/node_modules/zod/src/v3/errors.ts +0 -13
  426. package/mcp-server/node_modules/zod/src/v3/external.ts +0 -6
  427. package/mcp-server/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  428. package/mcp-server/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  429. package/mcp-server/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  430. package/mcp-server/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  431. package/mcp-server/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  432. package/mcp-server/node_modules/zod/src/v3/helpers/util.ts +0 -224
  433. package/mcp-server/node_modules/zod/src/v3/index.ts +0 -4
  434. package/mcp-server/node_modules/zod/src/v3/locales/en.ts +0 -124
  435. package/mcp-server/node_modules/zod/src/v3/standard-schema.ts +0 -113
  436. package/mcp-server/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  437. package/mcp-server/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  438. package/mcp-server/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  439. package/mcp-server/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  440. package/mcp-server/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  441. package/mcp-server/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  442. package/mcp-server/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  443. package/mcp-server/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  444. package/mcp-server/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  445. package/mcp-server/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  446. package/mcp-server/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  447. package/mcp-server/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  448. package/mcp-server/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  449. package/mcp-server/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  450. package/mcp-server/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  451. package/mcp-server/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  452. package/mcp-server/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  453. package/mcp-server/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  454. package/mcp-server/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  455. package/mcp-server/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  456. package/mcp-server/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  457. package/mcp-server/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  458. package/mcp-server/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  459. package/mcp-server/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  460. package/mcp-server/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  461. package/mcp-server/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  462. package/mcp-server/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  463. package/mcp-server/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  464. package/mcp-server/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  465. package/mcp-server/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  466. package/mcp-server/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  467. package/mcp-server/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  468. package/mcp-server/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  469. package/mcp-server/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  470. package/mcp-server/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  471. package/mcp-server/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  472. package/mcp-server/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  473. package/mcp-server/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  474. package/mcp-server/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  475. package/mcp-server/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  476. package/mcp-server/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  477. package/mcp-server/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  478. package/mcp-server/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  479. package/mcp-server/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  480. package/mcp-server/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  481. package/mcp-server/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  482. package/mcp-server/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  483. package/mcp-server/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  484. package/mcp-server/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  485. package/mcp-server/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  486. package/mcp-server/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  487. package/mcp-server/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  488. package/mcp-server/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  489. package/mcp-server/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  490. package/mcp-server/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  491. package/mcp-server/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  492. package/mcp-server/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  493. package/mcp-server/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  494. package/mcp-server/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  495. package/mcp-server/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  496. package/mcp-server/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  497. package/mcp-server/node_modules/zod/src/v3/types.ts +0 -5136
  498. package/mcp-server/node_modules/zod/src/v4/classic/checks.ts +0 -30
  499. package/mcp-server/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  500. package/mcp-server/node_modules/zod/src/v4/classic/compat.ts +0 -66
  501. package/mcp-server/node_modules/zod/src/v4/classic/errors.ts +0 -75
  502. package/mcp-server/node_modules/zod/src/v4/classic/external.ts +0 -50
  503. package/mcp-server/node_modules/zod/src/v4/classic/index.ts +0 -5
  504. package/mcp-server/node_modules/zod/src/v4/classic/iso.ts +0 -90
  505. package/mcp-server/node_modules/zod/src/v4/classic/parse.ts +0 -33
  506. package/mcp-server/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  507. package/mcp-server/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  508. package/mcp-server/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  509. package/mcp-server/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  510. package/mcp-server/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  511. package/mcp-server/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  512. package/mcp-server/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  513. package/mcp-server/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  514. package/mcp-server/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  515. package/mcp-server/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  516. package/mcp-server/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  517. package/mcp-server/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  518. package/mcp-server/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  519. package/mcp-server/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  520. package/mcp-server/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  521. package/mcp-server/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  522. package/mcp-server/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  523. package/mcp-server/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  524. package/mcp-server/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  525. package/mcp-server/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  526. package/mcp-server/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  527. package/mcp-server/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  528. package/mcp-server/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  529. package/mcp-server/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  530. package/mcp-server/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  531. package/mcp-server/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  532. package/mcp-server/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  533. package/mcp-server/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  534. package/mcp-server/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  535. package/mcp-server/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  536. package/mcp-server/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  537. package/mcp-server/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  538. package/mcp-server/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  539. package/mcp-server/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  540. package/mcp-server/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  541. package/mcp-server/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  542. package/mcp-server/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  543. package/mcp-server/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  544. package/mcp-server/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  545. package/mcp-server/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  546. package/mcp-server/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  547. package/mcp-server/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  548. package/mcp-server/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  549. package/mcp-server/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  550. package/mcp-server/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  551. package/mcp-server/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  552. package/mcp-server/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  553. package/mcp-server/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  554. package/mcp-server/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  555. package/mcp-server/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  556. package/mcp-server/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  557. package/mcp-server/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  558. package/mcp-server/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  559. package/mcp-server/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  560. package/mcp-server/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  561. package/mcp-server/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  562. package/mcp-server/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  563. package/mcp-server/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  564. package/mcp-server/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  565. package/mcp-server/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  566. package/mcp-server/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  567. package/mcp-server/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  568. package/mcp-server/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  569. package/mcp-server/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  570. package/mcp-server/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  571. package/mcp-server/node_modules/zod/src/v4/core/api.ts +0 -1594
  572. package/mcp-server/node_modules/zod/src/v4/core/checks.ts +0 -1283
  573. package/mcp-server/node_modules/zod/src/v4/core/config.ts +0 -15
  574. package/mcp-server/node_modules/zod/src/v4/core/core.ts +0 -134
  575. package/mcp-server/node_modules/zod/src/v4/core/doc.ts +0 -44
  576. package/mcp-server/node_modules/zod/src/v4/core/errors.ts +0 -424
  577. package/mcp-server/node_modules/zod/src/v4/core/function.ts +0 -176
  578. package/mcp-server/node_modules/zod/src/v4/core/index.ts +0 -15
  579. package/mcp-server/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  580. package/mcp-server/node_modules/zod/src/v4/core/parse.ts +0 -94
  581. package/mcp-server/node_modules/zod/src/v4/core/regexes.ts +0 -135
  582. package/mcp-server/node_modules/zod/src/v4/core/registries.ts +0 -96
  583. package/mcp-server/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  584. package/mcp-server/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  585. package/mcp-server/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  586. package/mcp-server/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  587. package/mcp-server/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  588. package/mcp-server/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  589. package/mcp-server/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  590. package/mcp-server/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  591. package/mcp-server/node_modules/zod/src/v4/core/util.ts +0 -775
  592. package/mcp-server/node_modules/zod/src/v4/core/versions.ts +0 -5
  593. package/mcp-server/node_modules/zod/src/v4/core/zsf.ts +0 -323
  594. package/mcp-server/node_modules/zod/src/v4/index.ts +0 -4
  595. package/mcp-server/node_modules/zod/src/v4/locales/ar.ts +0 -125
  596. package/mcp-server/node_modules/zod/src/v4/locales/az.ts +0 -121
  597. package/mcp-server/node_modules/zod/src/v4/locales/be.ts +0 -184
  598. package/mcp-server/node_modules/zod/src/v4/locales/ca.ts +0 -127
  599. package/mcp-server/node_modules/zod/src/v4/locales/cs.ts +0 -142
  600. package/mcp-server/node_modules/zod/src/v4/locales/de.ts +0 -124
  601. package/mcp-server/node_modules/zod/src/v4/locales/en.ts +0 -127
  602. package/mcp-server/node_modules/zod/src/v4/locales/eo.ts +0 -125
  603. package/mcp-server/node_modules/zod/src/v4/locales/es.ts +0 -125
  604. package/mcp-server/node_modules/zod/src/v4/locales/fa.ts +0 -134
  605. package/mcp-server/node_modules/zod/src/v4/locales/fi.ts +0 -131
  606. package/mcp-server/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  607. package/mcp-server/node_modules/zod/src/v4/locales/fr.ts +0 -124
  608. package/mcp-server/node_modules/zod/src/v4/locales/he.ts +0 -125
  609. package/mcp-server/node_modules/zod/src/v4/locales/hu.ts +0 -126
  610. package/mcp-server/node_modules/zod/src/v4/locales/id.ts +0 -125
  611. package/mcp-server/node_modules/zod/src/v4/locales/index.ts +0 -39
  612. package/mcp-server/node_modules/zod/src/v4/locales/it.ts +0 -125
  613. package/mcp-server/node_modules/zod/src/v4/locales/ja.ts +0 -122
  614. package/mcp-server/node_modules/zod/src/v4/locales/kh.ts +0 -126
  615. package/mcp-server/node_modules/zod/src/v4/locales/ko.ts +0 -131
  616. package/mcp-server/node_modules/zod/src/v4/locales/mk.ts +0 -127
  617. package/mcp-server/node_modules/zod/src/v4/locales/ms.ts +0 -124
  618. package/mcp-server/node_modules/zod/src/v4/locales/nl.ts +0 -126
  619. package/mcp-server/node_modules/zod/src/v4/locales/no.ts +0 -124
  620. package/mcp-server/node_modules/zod/src/v4/locales/ota.ts +0 -125
  621. package/mcp-server/node_modules/zod/src/v4/locales/pl.ts +0 -126
  622. package/mcp-server/node_modules/zod/src/v4/locales/ps.ts +0 -133
  623. package/mcp-server/node_modules/zod/src/v4/locales/pt.ts +0 -123
  624. package/mcp-server/node_modules/zod/src/v4/locales/ru.ts +0 -184
  625. package/mcp-server/node_modules/zod/src/v4/locales/sl.ts +0 -126
  626. package/mcp-server/node_modules/zod/src/v4/locales/sv.ts +0 -127
  627. package/mcp-server/node_modules/zod/src/v4/locales/ta.ts +0 -125
  628. package/mcp-server/node_modules/zod/src/v4/locales/th.ts +0 -126
  629. package/mcp-server/node_modules/zod/src/v4/locales/tr.ts +0 -121
  630. package/mcp-server/node_modules/zod/src/v4/locales/ua.ts +0 -126
  631. package/mcp-server/node_modules/zod/src/v4/locales/ur.ts +0 -126
  632. package/mcp-server/node_modules/zod/src/v4/locales/vi.ts +0 -125
  633. package/mcp-server/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  634. package/mcp-server/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  635. package/mcp-server/node_modules/zod/src/v4/mini/checks.ts +0 -32
  636. package/mcp-server/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  637. package/mcp-server/node_modules/zod/src/v4/mini/external.ts +0 -40
  638. package/mcp-server/node_modules/zod/src/v4/mini/index.ts +0 -3
  639. package/mcp-server/node_modules/zod/src/v4/mini/iso.ts +0 -62
  640. package/mcp-server/node_modules/zod/src/v4/mini/parse.ts +0 -1
  641. package/mcp-server/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  642. package/mcp-server/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  643. package/mcp-server/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  644. package/mcp-server/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  645. package/mcp-server/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  646. package/mcp-server/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  647. package/mcp-server/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  648. package/mcp-server/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  649. package/mcp-server/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  650. package/mcp-server/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  651. package/mcp-server/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  652. package/mcp-server/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  653. package/mcp-server/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  654. package/mcp-server/node_modules/zod/src/v4-mini/index.ts +0 -1
  655. package/mcp-server/node_modules/zod/v3/ZodError.cjs +0 -138
  656. package/mcp-server/node_modules/zod/v3/ZodError.d.cts +0 -164
  657. package/mcp-server/node_modules/zod/v3/ZodError.d.ts +0 -164
  658. package/mcp-server/node_modules/zod/v3/ZodError.js +0 -133
  659. package/mcp-server/node_modules/zod/v3/errors.cjs +0 -17
  660. package/mcp-server/node_modules/zod/v3/errors.d.cts +0 -5
  661. package/mcp-server/node_modules/zod/v3/errors.d.ts +0 -5
  662. package/mcp-server/node_modules/zod/v3/errors.js +0 -9
  663. package/mcp-server/node_modules/zod/v3/external.cjs +0 -22
  664. package/mcp-server/node_modules/zod/v3/external.d.cts +0 -6
  665. package/mcp-server/node_modules/zod/v3/external.d.ts +0 -6
  666. package/mcp-server/node_modules/zod/v3/external.js +0 -6
  667. package/mcp-server/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  668. package/mcp-server/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  669. package/mcp-server/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  670. package/mcp-server/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  671. package/mcp-server/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  672. package/mcp-server/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  673. package/mcp-server/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  674. package/mcp-server/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  675. package/mcp-server/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  676. package/mcp-server/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  677. package/mcp-server/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  678. package/mcp-server/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  679. package/mcp-server/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  680. package/mcp-server/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  681. package/mcp-server/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  682. package/mcp-server/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  683. package/mcp-server/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  684. package/mcp-server/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  685. package/mcp-server/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  686. package/mcp-server/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  687. package/mcp-server/node_modules/zod/v3/helpers/util.cjs +0 -137
  688. package/mcp-server/node_modules/zod/v3/helpers/util.d.cts +0 -85
  689. package/mcp-server/node_modules/zod/v3/helpers/util.d.ts +0 -85
  690. package/mcp-server/node_modules/zod/v3/helpers/util.js +0 -133
  691. package/mcp-server/node_modules/zod/v3/index.cjs +0 -33
  692. package/mcp-server/node_modules/zod/v3/index.d.cts +0 -4
  693. package/mcp-server/node_modules/zod/v3/index.d.ts +0 -4
  694. package/mcp-server/node_modules/zod/v3/index.js +0 -4
  695. package/mcp-server/node_modules/zod/v3/locales/en.cjs +0 -111
  696. package/mcp-server/node_modules/zod/v3/locales/en.d.cts +0 -3
  697. package/mcp-server/node_modules/zod/v3/locales/en.d.ts +0 -3
  698. package/mcp-server/node_modules/zod/v3/locales/en.js +0 -109
  699. package/mcp-server/node_modules/zod/v3/standard-schema.cjs +0 -2
  700. package/mcp-server/node_modules/zod/v3/standard-schema.d.cts +0 -102
  701. package/mcp-server/node_modules/zod/v3/standard-schema.d.ts +0 -102
  702. package/mcp-server/node_modules/zod/v3/standard-schema.js +0 -1
  703. package/mcp-server/node_modules/zod/v3/types.cjs +0 -3775
  704. package/mcp-server/node_modules/zod/v3/types.d.cts +0 -1031
  705. package/mcp-server/node_modules/zod/v3/types.d.ts +0 -1031
  706. package/mcp-server/node_modules/zod/v3/types.js +0 -3693
  707. package/mcp-server/node_modules/zod/v4/classic/checks.cjs +0 -32
  708. package/mcp-server/node_modules/zod/v4/classic/checks.d.cts +0 -1
  709. package/mcp-server/node_modules/zod/v4/classic/checks.d.ts +0 -1
  710. package/mcp-server/node_modules/zod/v4/classic/checks.js +0 -1
  711. package/mcp-server/node_modules/zod/v4/classic/coerce.cjs +0 -47
  712. package/mcp-server/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  713. package/mcp-server/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  714. package/mcp-server/node_modules/zod/v4/classic/coerce.js +0 -17
  715. package/mcp-server/node_modules/zod/v4/classic/compat.cjs +0 -57
  716. package/mcp-server/node_modules/zod/v4/classic/compat.d.cts +0 -46
  717. package/mcp-server/node_modules/zod/v4/classic/compat.d.ts +0 -46
  718. package/mcp-server/node_modules/zod/v4/classic/compat.js +0 -27
  719. package/mcp-server/node_modules/zod/v4/classic/errors.cjs +0 -67
  720. package/mcp-server/node_modules/zod/v4/classic/errors.d.cts +0 -30
  721. package/mcp-server/node_modules/zod/v4/classic/errors.d.ts +0 -30
  722. package/mcp-server/node_modules/zod/v4/classic/errors.js +0 -41
  723. package/mcp-server/node_modules/zod/v4/classic/external.cjs +0 -70
  724. package/mcp-server/node_modules/zod/v4/classic/external.d.cts +0 -13
  725. package/mcp-server/node_modules/zod/v4/classic/external.d.ts +0 -13
  726. package/mcp-server/node_modules/zod/v4/classic/external.js +0 -18
  727. package/mcp-server/node_modules/zod/v4/classic/index.cjs +0 -33
  728. package/mcp-server/node_modules/zod/v4/classic/index.d.cts +0 -4
  729. package/mcp-server/node_modules/zod/v4/classic/index.d.ts +0 -4
  730. package/mcp-server/node_modules/zod/v4/classic/index.js +0 -4
  731. package/mcp-server/node_modules/zod/v4/classic/iso.cjs +0 -60
  732. package/mcp-server/node_modules/zod/v4/classic/iso.d.cts +0 -22
  733. package/mcp-server/node_modules/zod/v4/classic/iso.d.ts +0 -22
  734. package/mcp-server/node_modules/zod/v4/classic/iso.js +0 -30
  735. package/mcp-server/node_modules/zod/v4/classic/parse.cjs +0 -32
  736. package/mcp-server/node_modules/zod/v4/classic/parse.d.cts +0 -23
  737. package/mcp-server/node_modules/zod/v4/classic/parse.d.ts +0 -23
  738. package/mcp-server/node_modules/zod/v4/classic/parse.js +0 -6
  739. package/mcp-server/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  740. package/mcp-server/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  741. package/mcp-server/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  742. package/mcp-server/node_modules/zod/v4/classic/schemas.js +0 -1006
  743. package/mcp-server/node_modules/zod/v4/core/api.cjs +0 -1039
  744. package/mcp-server/node_modules/zod/v4/core/api.d.cts +0 -284
  745. package/mcp-server/node_modules/zod/v4/core/api.d.ts +0 -284
  746. package/mcp-server/node_modules/zod/v4/core/api.js +0 -906
  747. package/mcp-server/node_modules/zod/v4/core/checks.cjs +0 -591
  748. package/mcp-server/node_modules/zod/v4/core/checks.d.cts +0 -278
  749. package/mcp-server/node_modules/zod/v4/core/checks.d.ts +0 -278
  750. package/mcp-server/node_modules/zod/v4/core/checks.js +0 -565
  751. package/mcp-server/node_modules/zod/v4/core/core.cjs +0 -67
  752. package/mcp-server/node_modules/zod/v4/core/core.d.cts +0 -49
  753. package/mcp-server/node_modules/zod/v4/core/core.d.ts +0 -49
  754. package/mcp-server/node_modules/zod/v4/core/core.js +0 -61
  755. package/mcp-server/node_modules/zod/v4/core/doc.cjs +0 -39
  756. package/mcp-server/node_modules/zod/v4/core/doc.d.cts +0 -14
  757. package/mcp-server/node_modules/zod/v4/core/doc.d.ts +0 -14
  758. package/mcp-server/node_modules/zod/v4/core/doc.js +0 -35
  759. package/mcp-server/node_modules/zod/v4/core/errors.cjs +0 -226
  760. package/mcp-server/node_modules/zod/v4/core/errors.d.cts +0 -208
  761. package/mcp-server/node_modules/zod/v4/core/errors.d.ts +0 -208
  762. package/mcp-server/node_modules/zod/v4/core/errors.js +0 -195
  763. package/mcp-server/node_modules/zod/v4/core/function.cjs +0 -102
  764. package/mcp-server/node_modules/zod/v4/core/function.d.cts +0 -52
  765. package/mcp-server/node_modules/zod/v4/core/function.d.ts +0 -52
  766. package/mcp-server/node_modules/zod/v4/core/function.js +0 -75
  767. package/mcp-server/node_modules/zod/v4/core/index.cjs +0 -44
  768. package/mcp-server/node_modules/zod/v4/core/index.d.cts +0 -15
  769. package/mcp-server/node_modules/zod/v4/core/index.d.ts +0 -15
  770. package/mcp-server/node_modules/zod/v4/core/index.js +0 -15
  771. package/mcp-server/node_modules/zod/v4/core/json-schema.cjs +0 -2
  772. package/mcp-server/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  773. package/mcp-server/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  774. package/mcp-server/node_modules/zod/v4/core/json-schema.js +0 -1
  775. package/mcp-server/node_modules/zod/v4/core/parse.cjs +0 -87
  776. package/mcp-server/node_modules/zod/v4/core/parse.d.cts +0 -25
  777. package/mcp-server/node_modules/zod/v4/core/parse.d.ts +0 -25
  778. package/mcp-server/node_modules/zod/v4/core/parse.js +0 -57
  779. package/mcp-server/node_modules/zod/v4/core/regexes.cjs +0 -103
  780. package/mcp-server/node_modules/zod/v4/core/regexes.d.cts +0 -62
  781. package/mcp-server/node_modules/zod/v4/core/regexes.d.ts +0 -62
  782. package/mcp-server/node_modules/zod/v4/core/regexes.js +0 -95
  783. package/mcp-server/node_modules/zod/v4/core/registries.cjs +0 -56
  784. package/mcp-server/node_modules/zod/v4/core/registries.d.cts +0 -35
  785. package/mcp-server/node_modules/zod/v4/core/registries.d.ts +0 -35
  786. package/mcp-server/node_modules/zod/v4/core/registries.js +0 -51
  787. package/mcp-server/node_modules/zod/v4/core/schemas.cjs +0 -1748
  788. package/mcp-server/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  789. package/mcp-server/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  790. package/mcp-server/node_modules/zod/v4/core/schemas.js +0 -1717
  791. package/mcp-server/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  792. package/mcp-server/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  793. package/mcp-server/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  794. package/mcp-server/node_modules/zod/v4/core/standard-schema.js +0 -1
  795. package/mcp-server/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  796. package/mcp-server/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  797. package/mcp-server/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  798. package/mcp-server/node_modules/zod/v4/core/to-json-schema.js +0 -849
  799. package/mcp-server/node_modules/zod/v4/core/util.cjs +0 -539
  800. package/mcp-server/node_modules/zod/v4/core/util.d.cts +0 -183
  801. package/mcp-server/node_modules/zod/v4/core/util.d.ts +0 -183
  802. package/mcp-server/node_modules/zod/v4/core/util.js +0 -493
  803. package/mcp-server/node_modules/zod/v4/core/versions.cjs +0 -8
  804. package/mcp-server/node_modules/zod/v4/core/versions.d.cts +0 -5
  805. package/mcp-server/node_modules/zod/v4/core/versions.d.ts +0 -5
  806. package/mcp-server/node_modules/zod/v4/core/versions.js +0 -5
  807. package/mcp-server/node_modules/zod/v4/index.cjs +0 -22
  808. package/mcp-server/node_modules/zod/v4/index.d.cts +0 -3
  809. package/mcp-server/node_modules/zod/v4/index.d.ts +0 -3
  810. package/mcp-server/node_modules/zod/v4/index.js +0 -3
  811. package/mcp-server/node_modules/zod/v4/locales/ar.cjs +0 -142
  812. package/mcp-server/node_modules/zod/v4/locales/ar.d.cts +0 -4
  813. package/mcp-server/node_modules/zod/v4/locales/ar.d.ts +0 -4
  814. package/mcp-server/node_modules/zod/v4/locales/ar.js +0 -116
  815. package/mcp-server/node_modules/zod/v4/locales/az.cjs +0 -141
  816. package/mcp-server/node_modules/zod/v4/locales/az.d.cts +0 -4
  817. package/mcp-server/node_modules/zod/v4/locales/az.d.ts +0 -4
  818. package/mcp-server/node_modules/zod/v4/locales/az.js +0 -115
  819. package/mcp-server/node_modules/zod/v4/locales/be.cjs +0 -190
  820. package/mcp-server/node_modules/zod/v4/locales/be.d.cts +0 -4
  821. package/mcp-server/node_modules/zod/v4/locales/be.d.ts +0 -4
  822. package/mcp-server/node_modules/zod/v4/locales/be.js +0 -164
  823. package/mcp-server/node_modules/zod/v4/locales/ca.cjs +0 -144
  824. package/mcp-server/node_modules/zod/v4/locales/ca.d.cts +0 -4
  825. package/mcp-server/node_modules/zod/v4/locales/ca.d.ts +0 -4
  826. package/mcp-server/node_modules/zod/v4/locales/ca.js +0 -118
  827. package/mcp-server/node_modules/zod/v4/locales/cs.cjs +0 -161
  828. package/mcp-server/node_modules/zod/v4/locales/cs.d.cts +0 -4
  829. package/mcp-server/node_modules/zod/v4/locales/cs.d.ts +0 -4
  830. package/mcp-server/node_modules/zod/v4/locales/cs.js +0 -135
  831. package/mcp-server/node_modules/zod/v4/locales/de.cjs +0 -142
  832. package/mcp-server/node_modules/zod/v4/locales/de.d.cts +0 -4
  833. package/mcp-server/node_modules/zod/v4/locales/de.d.ts +0 -4
  834. package/mcp-server/node_modules/zod/v4/locales/de.js +0 -116
  835. package/mcp-server/node_modules/zod/v4/locales/en.cjs +0 -145
  836. package/mcp-server/node_modules/zod/v4/locales/en.d.cts +0 -5
  837. package/mcp-server/node_modules/zod/v4/locales/en.d.ts +0 -5
  838. package/mcp-server/node_modules/zod/v4/locales/en.js +0 -117
  839. package/mcp-server/node_modules/zod/v4/locales/eo.cjs +0 -144
  840. package/mcp-server/node_modules/zod/v4/locales/eo.d.cts +0 -5
  841. package/mcp-server/node_modules/zod/v4/locales/eo.d.ts +0 -5
  842. package/mcp-server/node_modules/zod/v4/locales/eo.js +0 -116
  843. package/mcp-server/node_modules/zod/v4/locales/es.cjs +0 -143
  844. package/mcp-server/node_modules/zod/v4/locales/es.d.cts +0 -4
  845. package/mcp-server/node_modules/zod/v4/locales/es.d.ts +0 -4
  846. package/mcp-server/node_modules/zod/v4/locales/es.js +0 -117
  847. package/mcp-server/node_modules/zod/v4/locales/fa.cjs +0 -148
  848. package/mcp-server/node_modules/zod/v4/locales/fa.d.cts +0 -4
  849. package/mcp-server/node_modules/zod/v4/locales/fa.d.ts +0 -4
  850. package/mcp-server/node_modules/zod/v4/locales/fa.js +0 -122
  851. package/mcp-server/node_modules/zod/v4/locales/fi.cjs +0 -148
  852. package/mcp-server/node_modules/zod/v4/locales/fi.d.cts +0 -4
  853. package/mcp-server/node_modules/zod/v4/locales/fi.d.ts +0 -4
  854. package/mcp-server/node_modules/zod/v4/locales/fi.js +0 -122
  855. package/mcp-server/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  856. package/mcp-server/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  857. package/mcp-server/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  858. package/mcp-server/node_modules/zod/v4/locales/fr-CA.js +0 -117
  859. package/mcp-server/node_modules/zod/v4/locales/fr.cjs +0 -142
  860. package/mcp-server/node_modules/zod/v4/locales/fr.d.cts +0 -4
  861. package/mcp-server/node_modules/zod/v4/locales/fr.d.ts +0 -4
  862. package/mcp-server/node_modules/zod/v4/locales/fr.js +0 -116
  863. package/mcp-server/node_modules/zod/v4/locales/he.cjs +0 -143
  864. package/mcp-server/node_modules/zod/v4/locales/he.d.cts +0 -4
  865. package/mcp-server/node_modules/zod/v4/locales/he.d.ts +0 -4
  866. package/mcp-server/node_modules/zod/v4/locales/he.js +0 -117
  867. package/mcp-server/node_modules/zod/v4/locales/hu.cjs +0 -143
  868. package/mcp-server/node_modules/zod/v4/locales/hu.d.cts +0 -4
  869. package/mcp-server/node_modules/zod/v4/locales/hu.d.ts +0 -4
  870. package/mcp-server/node_modules/zod/v4/locales/hu.js +0 -117
  871. package/mcp-server/node_modules/zod/v4/locales/id.cjs +0 -142
  872. package/mcp-server/node_modules/zod/v4/locales/id.d.cts +0 -4
  873. package/mcp-server/node_modules/zod/v4/locales/id.d.ts +0 -4
  874. package/mcp-server/node_modules/zod/v4/locales/id.js +0 -116
  875. package/mcp-server/node_modules/zod/v4/locales/index.cjs +0 -84
  876. package/mcp-server/node_modules/zod/v4/locales/index.d.cts +0 -39
  877. package/mcp-server/node_modules/zod/v4/locales/index.d.ts +0 -39
  878. package/mcp-server/node_modules/zod/v4/locales/index.js +0 -39
  879. package/mcp-server/node_modules/zod/v4/locales/it.cjs +0 -143
  880. package/mcp-server/node_modules/zod/v4/locales/it.d.cts +0 -4
  881. package/mcp-server/node_modules/zod/v4/locales/it.d.ts +0 -4
  882. package/mcp-server/node_modules/zod/v4/locales/it.js +0 -117
  883. package/mcp-server/node_modules/zod/v4/locales/ja.cjs +0 -141
  884. package/mcp-server/node_modules/zod/v4/locales/ja.d.cts +0 -4
  885. package/mcp-server/node_modules/zod/v4/locales/ja.d.ts +0 -4
  886. package/mcp-server/node_modules/zod/v4/locales/ja.js +0 -115
  887. package/mcp-server/node_modules/zod/v4/locales/kh.cjs +0 -143
  888. package/mcp-server/node_modules/zod/v4/locales/kh.d.cts +0 -4
  889. package/mcp-server/node_modules/zod/v4/locales/kh.d.ts +0 -4
  890. package/mcp-server/node_modules/zod/v4/locales/kh.js +0 -117
  891. package/mcp-server/node_modules/zod/v4/locales/ko.cjs +0 -147
  892. package/mcp-server/node_modules/zod/v4/locales/ko.d.cts +0 -4
  893. package/mcp-server/node_modules/zod/v4/locales/ko.d.ts +0 -4
  894. package/mcp-server/node_modules/zod/v4/locales/ko.js +0 -121
  895. package/mcp-server/node_modules/zod/v4/locales/mk.cjs +0 -144
  896. package/mcp-server/node_modules/zod/v4/locales/mk.d.cts +0 -4
  897. package/mcp-server/node_modules/zod/v4/locales/mk.d.ts +0 -4
  898. package/mcp-server/node_modules/zod/v4/locales/mk.js +0 -118
  899. package/mcp-server/node_modules/zod/v4/locales/ms.cjs +0 -142
  900. package/mcp-server/node_modules/zod/v4/locales/ms.d.cts +0 -4
  901. package/mcp-server/node_modules/zod/v4/locales/ms.d.ts +0 -4
  902. package/mcp-server/node_modules/zod/v4/locales/ms.js +0 -116
  903. package/mcp-server/node_modules/zod/v4/locales/nl.cjs +0 -143
  904. package/mcp-server/node_modules/zod/v4/locales/nl.d.cts +0 -4
  905. package/mcp-server/node_modules/zod/v4/locales/nl.d.ts +0 -4
  906. package/mcp-server/node_modules/zod/v4/locales/nl.js +0 -117
  907. package/mcp-server/node_modules/zod/v4/locales/no.cjs +0 -142
  908. package/mcp-server/node_modules/zod/v4/locales/no.d.cts +0 -4
  909. package/mcp-server/node_modules/zod/v4/locales/no.d.ts +0 -4
  910. package/mcp-server/node_modules/zod/v4/locales/no.js +0 -116
  911. package/mcp-server/node_modules/zod/v4/locales/ota.cjs +0 -143
  912. package/mcp-server/node_modules/zod/v4/locales/ota.d.cts +0 -4
  913. package/mcp-server/node_modules/zod/v4/locales/ota.d.ts +0 -4
  914. package/mcp-server/node_modules/zod/v4/locales/ota.js +0 -117
  915. package/mcp-server/node_modules/zod/v4/locales/pl.cjs +0 -143
  916. package/mcp-server/node_modules/zod/v4/locales/pl.d.cts +0 -4
  917. package/mcp-server/node_modules/zod/v4/locales/pl.d.ts +0 -4
  918. package/mcp-server/node_modules/zod/v4/locales/pl.js +0 -117
  919. package/mcp-server/node_modules/zod/v4/locales/ps.cjs +0 -148
  920. package/mcp-server/node_modules/zod/v4/locales/ps.d.cts +0 -4
  921. package/mcp-server/node_modules/zod/v4/locales/ps.d.ts +0 -4
  922. package/mcp-server/node_modules/zod/v4/locales/ps.js +0 -122
  923. package/mcp-server/node_modules/zod/v4/locales/pt.cjs +0 -142
  924. package/mcp-server/node_modules/zod/v4/locales/pt.d.cts +0 -4
  925. package/mcp-server/node_modules/zod/v4/locales/pt.d.ts +0 -4
  926. package/mcp-server/node_modules/zod/v4/locales/pt.js +0 -116
  927. package/mcp-server/node_modules/zod/v4/locales/ru.cjs +0 -190
  928. package/mcp-server/node_modules/zod/v4/locales/ru.d.cts +0 -4
  929. package/mcp-server/node_modules/zod/v4/locales/ru.d.ts +0 -4
  930. package/mcp-server/node_modules/zod/v4/locales/ru.js +0 -164
  931. package/mcp-server/node_modules/zod/v4/locales/sl.cjs +0 -143
  932. package/mcp-server/node_modules/zod/v4/locales/sl.d.cts +0 -4
  933. package/mcp-server/node_modules/zod/v4/locales/sl.d.ts +0 -4
  934. package/mcp-server/node_modules/zod/v4/locales/sl.js +0 -117
  935. package/mcp-server/node_modules/zod/v4/locales/sv.cjs +0 -144
  936. package/mcp-server/node_modules/zod/v4/locales/sv.d.cts +0 -4
  937. package/mcp-server/node_modules/zod/v4/locales/sv.d.ts +0 -4
  938. package/mcp-server/node_modules/zod/v4/locales/sv.js +0 -118
  939. package/mcp-server/node_modules/zod/v4/locales/ta.cjs +0 -143
  940. package/mcp-server/node_modules/zod/v4/locales/ta.d.cts +0 -4
  941. package/mcp-server/node_modules/zod/v4/locales/ta.d.ts +0 -4
  942. package/mcp-server/node_modules/zod/v4/locales/ta.js +0 -117
  943. package/mcp-server/node_modules/zod/v4/locales/th.cjs +0 -143
  944. package/mcp-server/node_modules/zod/v4/locales/th.d.cts +0 -4
  945. package/mcp-server/node_modules/zod/v4/locales/th.d.ts +0 -4
  946. package/mcp-server/node_modules/zod/v4/locales/th.js +0 -117
  947. package/mcp-server/node_modules/zod/v4/locales/tr.cjs +0 -143
  948. package/mcp-server/node_modules/zod/v4/locales/tr.d.cts +0 -5
  949. package/mcp-server/node_modules/zod/v4/locales/tr.d.ts +0 -5
  950. package/mcp-server/node_modules/zod/v4/locales/tr.js +0 -115
  951. package/mcp-server/node_modules/zod/v4/locales/ua.cjs +0 -143
  952. package/mcp-server/node_modules/zod/v4/locales/ua.d.cts +0 -4
  953. package/mcp-server/node_modules/zod/v4/locales/ua.d.ts +0 -4
  954. package/mcp-server/node_modules/zod/v4/locales/ua.js +0 -117
  955. package/mcp-server/node_modules/zod/v4/locales/ur.cjs +0 -143
  956. package/mcp-server/node_modules/zod/v4/locales/ur.d.cts +0 -4
  957. package/mcp-server/node_modules/zod/v4/locales/ur.d.ts +0 -4
  958. package/mcp-server/node_modules/zod/v4/locales/ur.js +0 -117
  959. package/mcp-server/node_modules/zod/v4/locales/vi.cjs +0 -142
  960. package/mcp-server/node_modules/zod/v4/locales/vi.d.cts +0 -4
  961. package/mcp-server/node_modules/zod/v4/locales/vi.d.ts +0 -4
  962. package/mcp-server/node_modules/zod/v4/locales/vi.js +0 -116
  963. package/mcp-server/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  964. package/mcp-server/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  965. package/mcp-server/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  966. package/mcp-server/node_modules/zod/v4/locales/zh-CN.js +0 -116
  967. package/mcp-server/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  968. package/mcp-server/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  969. package/mcp-server/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  970. package/mcp-server/node_modules/zod/v4/locales/zh-TW.js +0 -117
  971. package/mcp-server/node_modules/zod/v4/mini/checks.cjs +0 -34
  972. package/mcp-server/node_modules/zod/v4/mini/checks.d.cts +0 -1
  973. package/mcp-server/node_modules/zod/v4/mini/checks.d.ts +0 -1
  974. package/mcp-server/node_modules/zod/v4/mini/checks.js +0 -1
  975. package/mcp-server/node_modules/zod/v4/mini/coerce.cjs +0 -47
  976. package/mcp-server/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  977. package/mcp-server/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  978. package/mcp-server/node_modules/zod/v4/mini/coerce.js +0 -17
  979. package/mcp-server/node_modules/zod/v4/mini/external.cjs +0 -62
  980. package/mcp-server/node_modules/zod/v4/mini/external.d.cts +0 -11
  981. package/mcp-server/node_modules/zod/v4/mini/external.d.ts +0 -11
  982. package/mcp-server/node_modules/zod/v4/mini/external.js +0 -13
  983. package/mcp-server/node_modules/zod/v4/mini/index.cjs +0 -32
  984. package/mcp-server/node_modules/zod/v4/mini/index.d.cts +0 -3
  985. package/mcp-server/node_modules/zod/v4/mini/index.d.ts +0 -3
  986. package/mcp-server/node_modules/zod/v4/mini/index.js +0 -3
  987. package/mcp-server/node_modules/zod/v4/mini/iso.cjs +0 -60
  988. package/mcp-server/node_modules/zod/v4/mini/iso.d.cts +0 -22
  989. package/mcp-server/node_modules/zod/v4/mini/iso.d.ts +0 -22
  990. package/mcp-server/node_modules/zod/v4/mini/iso.js +0 -30
  991. package/mcp-server/node_modules/zod/v4/mini/parse.cjs +0 -8
  992. package/mcp-server/node_modules/zod/v4/mini/parse.d.cts +0 -1
  993. package/mcp-server/node_modules/zod/v4/mini/parse.d.ts +0 -1
  994. package/mcp-server/node_modules/zod/v4/mini/parse.js +0 -1
  995. package/mcp-server/node_modules/zod/v4/mini/schemas.cjs +0 -839
  996. package/mcp-server/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  997. package/mcp-server/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  998. package/mcp-server/node_modules/zod/v4/mini/schemas.js +0 -732
  999. package/mcp-server/node_modules/zod/v4-mini/index.cjs +0 -17
  1000. package/mcp-server/node_modules/zod/v4-mini/index.d.cts +0 -1
  1001. package/mcp-server/node_modules/zod/v4-mini/index.d.ts +0 -1
  1002. package/mcp-server/node_modules/zod/v4-mini/index.js +0 -1
  1003. package/mcp-server/package-lock.json +0 -147
  1004. package/mcp-server/package-mcp.json +0 -40
  1005. package/mcp-server/package.json +0 -40
  1006. package/mcp-server/test-mcp.js +0 -107
  1007. package/mcp-server/test-mcp.py +0 -73
  1008. package/php/get-challenge.php +0 -34
  1009. package/php/some-service.php +0 -42
@@ -1,4 +1,4 @@
1
- (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var kt,L,E,Y;let H=class Ut{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=Ut.getAncestorAttributeValue(t,"token"),s=Ut.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ut.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=Ut.getAncestorAttributeValue(t,"tokenProvider"),c=Ut.getAncestorAttributeValue(t,"eventsApiToken");i||(o=Ut.getAncestorAttributeValue(t,"userName"),n=Ut.getAncestorAttributeValue(t,"password"));const h=Ut.getAncestorAttributeValue(t,"credentials")||void 0,f=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:f,blockUntilDone:d}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ut.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const js=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ls=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,f)=>[Math.floor(h/f),h%f];function o(h,f,d){return new Intl.NumberFormat(h,{style:"unit",unit:f,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Rr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const cs=Mi.charAt(0).toUpperCase()+Mi.slice(1);function hs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Ie(r){return typeof r=="object"&&r!=null}let we="sonic";typeof __SONIC_PREFIX__>"u"&&(we="sonic");const Fs=we=="sonic"?"publisher-proxies-data":we+"-publisher-proxies-data";let zs=(kt=class{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),kt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!T.changed){T.changed=!0,T.saveId++;const i=T.saveId;setTimeout(()=>T.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||this._value_&&t&&hs(this._value_)&&hs(t)&&this._value_.__value===t.__value)return!0;this._value_=Ie(t)?t:{__value:t},this._cachedGet_=void 0;const s=hs(this._value_);if(this._parentKey_&&this.parent){const e=hs(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Ie(this._value_))for(const e in this._value_){const o=t[e],l=Ie(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(T.modifiedCollectore.length>0&&T.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(kt.instancesCounter++,this._instanceCounter_=kt.instancesCounter),kt.instances.set(this._instanceCounter_,this),"<"+we+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+we+"-publisher-proxy>"}},kt.instances=new Map,kt.instancesCounter=0,kt),T=(L=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],L.instance!=null)throw"Singleton / use getInstance";L.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Fs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Fs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=L.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new L)}return L.instance==null?new L:L.instance}static registerInstance(t,i){L.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),L.instances.set(t,i)}static get(t,i){return L.getInstance().get(t,i)}static collectModifiedPublisher(){L.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return L.modifiedCollectore.shift()}static delete(t){return t?L.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const n={},l=new je(n);this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==L.saveId&&t%10!=0))try{if(!L.changed||L.saving)return;L.saving=!0,L.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,e)}if(L.saving=!1,L.changed){L.saveId++;const e=L.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{L.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let f=0;f<c.length;f++)h+=String.fromCharCode(c[f]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,f=>f.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},L.buildDate="Tue Sep 30 2025 08:52:29 GMT+0200 (Central European Summer Time)",L.changed=!1,L.saving=!1,L.saveId=0,L.instance=null,L.instances=new Map,L.modifiedCollectore=[],L);if(typeof window<"u"){const r=window;r[cs+"PublisherManager"]=r[cs+"PublisherManager"]||T}const Ur=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);class je extends zs{constructor(t,i=null,s){super(t,i,s);const e=new Proxy(this,{get:function(o,n){if(Ur.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const l=o._value_[n],c=new je(Ie(l)?l:{__value:l},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,l){if(n=="_value_")return o._value_=l,!0;if(n=="_cachedGet_")return o._cachedGet_=l,!0;if(n=="_assignmentId_")return o._assignmentId_=l,!0;if(n=="_is_savable_")return o._is_savable_=l,!0;if(n=="_expiration_delay_")return o._expiration_delay_=l,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=l,!0;if(n=="_instanceCounter_")return o._instanceCounter_=l,!0;if(!o._proxies_.has(n)){const h=new je({},o,n);h._proxies_.set("_parent_",e),o._proxies_.set(n,h)}return o._value_[n]!==l&&(o._value_[n]=l,o._publishDynamicFilling_(n,l),o._proxies_.get(n)?.set(Ie(l)?l:{__value:l})),!0},deleteProperty:function(o,n){return o._publishDynamicFilling_(n,null),o._proxies_.get(n)?.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,l){return l&&"value"in l&&(o._value_[n]=l.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,i){return t[i]}}class Vr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(we+"-publisher-proxy",Vr)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&T.getInstance().invalidateAll()});let ds=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const i=new MutationObserver(E.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.addPublisherListeners(i)):t.childNodes.forEach(i=>E.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)):t.childNodes.forEach(i=>E.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":E.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{E.onAdded(s)}),i.removedNodes.forEach(s=>{E.onRemoved(s)});break}}static removePublisherListeners(t){const i=E.publisherListeners.get(t);i&&(E.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=T.getInstance().get(i),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const f=h;let d=s;d=E.getSubPublisher(s,f);const m=t,v={publisher:d,onAssign:()=>{const b=l.variables.map(N=>E.getSubPublisher(s,N)?.get());let P=l.expression,S=!1;if(b.length==1&&l.variables[0].join(".")==P.substring(1)){let N=b[0];N===null&&(N=""),m[c]=N;return}for(let N=0;N<b.length;N++){let p=b[N];const u=l.variables[N];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const N=P.indexOf("|");if(N==0)P=ls.js(P.substring(1));else{const p=P.substring(0,N),u=P.substring(N+1),w=ls[p];P=S?"":w?w(u):P}}else P=S?"":P;m[c]=P}};d?.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);ds.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ds);let tt=class Wt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Wt.isObject(l)&&Wt.isObject(c),f=s?l!==c:l!=c;if(h&&!Wt.deepEqual(l,c)||!h&&f)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Wt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Wt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Wt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Wt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Wt.getURLSearchArray(t,"").join("&")}};const dt=tt.traverseDotNotation;/**
1
+ (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var kt,L,E,Y;let H=class Ut{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=Ut.getAncestorAttributeValue(t,"token"),s=Ut.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ut.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=Ut.getAncestorAttributeValue(t,"tokenProvider"),c=Ut.getAncestorAttributeValue(t,"eventsApiToken");i||(o=Ut.getAncestorAttributeValue(t,"userName"),n=Ut.getAncestorAttributeValue(t,"password"));const h=Ut.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ut.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const js=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ls=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Rr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const cs=Mi.charAt(0).toUpperCase()+Mi.slice(1);function hs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Ie(r){return typeof r=="object"&&r!=null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Fs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data";let zs=(kt=class{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),kt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!T.changed){T.changed=!0,T.saveId++;const i=T.saveId;setTimeout(()=>T.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||this._value_&&t&&hs(this._value_)&&hs(t)&&this._value_.__value===t.__value)return!0;this._value_=Ie(t)?t:{__value:t},this._cachedGet_=void 0;const s=hs(this._value_);if(this._parentKey_&&this.parent){const e=hs(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Ie(this._value_))for(const e in this._value_){const o=t[e],l=Ie(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(T.modifiedCollectore.length>0&&T.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(kt.instancesCounter++,this._instanceCounter_=kt.instancesCounter),kt.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}},kt.instances=new Map,kt.instancesCounter=0,kt),T=(L=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],L.instance!=null)throw"Singleton / use getInstance";L.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Fs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Fs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=L.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new L)}return L.instance==null?new L:L.instance}static registerInstance(t,i){L.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),L.instances.set(t,i)}static get(t,i){return L.getInstance().get(t,i)}static collectModifiedPublisher(){L.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return L.modifiedCollectore.shift()}static delete(t){return t?L.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const n={},l=new je(n);this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==L.saveId&&t%10!=0))try{if(!L.changed||L.saving)return;L.saving=!0,L.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,e)}if(L.saving=!1,L.changed){L.saveId++;const e=L.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{L.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},L.buildDate="Fri Oct 10 2025 09:53:53 GMT+0200 (Central European Summer Time)",L.changed=!1,L.saving=!1,L.saveId=0,L.instance=null,L.instances=new Map,L.modifiedCollectore=[],L);if(typeof window<"u"){const r=window;r[cs+"PublisherManager"]=r[cs+"PublisherManager"]||T}const Ur=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);class je extends zs{constructor(t,i=null,s){super(t,i,s);const e=new Proxy(this,{get:function(o,n){if(Ur.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const l=o._value_[n],c=new je(Ie(l)?l:{__value:l},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,l){if(n=="_value_")return o._value_=l,!0;if(n=="_cachedGet_")return o._cachedGet_=l,!0;if(n=="_assignmentId_")return o._assignmentId_=l,!0;if(n=="_is_savable_")return o._is_savable_=l,!0;if(n=="_expiration_delay_")return o._expiration_delay_=l,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=l,!0;if(n=="_instanceCounter_")return o._instanceCounter_=l,!0;if(!o._proxies_.has(n)){const h=new je({},o,n);h._proxies_.set("_parent_",e),o._proxies_.set(n,h)}return o._value_[n]!==l&&(o._value_[n]=l,o._publishDynamicFilling_(n,l),o._proxies_.get(n)?.set(Ie(l)?l:{__value:l})),!0},deleteProperty:function(o,n){return o._publishDynamicFilling_(n,null),o._proxies_.get(n)?.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,l){return l&&"value"in l&&(o._value_[n]=l.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,i){return t[i]}}class Vr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Vr)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&T.getInstance().invalidateAll()});let ds=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const i=new MutationObserver(E.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.addPublisherListeners(i)):t.childNodes.forEach(i=>E.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)):t.childNodes.forEach(i=>E.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":E.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{E.onAdded(s)}),i.removedNodes.forEach(s=>{E.onRemoved(s)});break}}static removePublisherListeners(t){const i=E.publisherListeners.get(t);i&&(E.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=T.getInstance().get(i),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=E.getSubPublisher(s,u);const g=t,v={publisher:d,onAssign:()=>{const b=l.variables.map(N=>E.getSubPublisher(s,N)?.get());let x=l.expression,C=!1;if(b.length==1&&l.variables[0].join(".")==x.substring(1)){let N=b[0];N===null&&(N=""),g[c]=N;return}for(let N=0;N<b.length;N++){let p=b[N];const f=l.variables[N];p===null&&(C=!0,p=void 0),x=x.replace("$"+f.join("."),p)}if(x.indexOf("|")!=-1){const N=x.indexOf("|");if(N==0)x=ls.js(x.substring(1));else{const p=x.substring(0,N),f=x.substring(N+1),w=ls[p];x=C?"":w?w(f):x}}else x=C?"":x;g[c]=x}};d?.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);ds.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ds);let tt=class Kt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Kt.isObject(l)&&Kt.isObject(c),u=s?l!==c:l!=c;if(h&&!Kt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Kt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Kt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Kt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Kt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Kt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -6,11 +6,11 @@
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const ps=globalThis,Rs=ps.ShadowRoot&&(ps.ShadyCSS===void 0||ps.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Us=Symbol(),Ii=new WeakMap;let ji=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==Us)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(Rs&&t===void 0){const s=i!==void 0&&i.length===1;s&&(t=Ii.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ii.set(i,t))}return t}toString(){return this.cssText}};const Br=r=>new ji(typeof r=="string"?r:r+"",void 0,Us),x=(r,...t)=>{const i=r.length===1?r[0]:t.reduce(((s,e,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1]),r[0]);return new ji(i,r,Us)},qr=(r,t)=>{if(Rs)r.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of t){const s=document.createElement("style"),e=ps.litNonce;e!==void 0&&s.setAttribute("nonce",e),s.textContent=i.cssText,r.appendChild(s)}},Fi=Rs?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return Br(i)})(r):r;/**
9
+ */const ps=globalThis,Rs=ps.ShadowRoot&&(ps.ShadyCSS===void 0||ps.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Us=Symbol(),Ii=new WeakMap;let ji=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==Us)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(Rs&&t===void 0){const s=i!==void 0&&i.length===1;s&&(t=Ii.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ii.set(i,t))}return t}toString(){return this.cssText}};const Br=r=>new ji(typeof r=="string"?r:r+"",void 0,Us),P=(r,...t)=>{const i=r.length===1?r[0]:t.reduce(((s,e,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1]),r[0]);return new ji(i,r,Us)},qr=(r,t)=>{if(Rs)r.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of t){const s=document.createElement("style"),e=ps.litNonce;e!==void 0&&s.setAttribute("nonce",e),s.textContent=i.cssText,r.appendChild(s)}},Fi=Rs?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return Br(i)})(r):r;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:Hr,defineProperty:Wr,getOwnPropertyDescriptor:Kr,getOwnPropertyNames:Yr,getOwnPropertySymbols:Xr,getPrototypeOf:Zr}=Object,us=globalThis,zi=us.trustedTypes,Gr=zi?zi.emptyScript:"",Qr=us.reactiveElementPolyfillSupport,Fe=(r,t)=>r,fs={toAttribute(r,t){switch(t){case Boolean:r=r?Gr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let i=r;switch(t){case Boolean:i=r!==null;break;case Number:i=r===null?null:Number(r);break;case Object:case Array:try{i=JSON.parse(r)}catch{i=null}}return i}},Vs=(r,t)=>!Hr(r,t),Ri={attribute:!0,type:String,converter:fs,reflect:!1,useDefault:!1,hasChanged:Vs};Symbol.metadata??=Symbol("metadata"),us.litPropertyMetadata??=new WeakMap;let _e=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Ri){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){const s=Symbol(),e=this.getPropertyDescriptor(t,s,i);e!==void 0&&Wr(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){const{get:e,set:o}=Kr(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:e,set(n){const l=e?.call(this);o?.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ri}static _$Ei(){if(this.hasOwnProperty(Fe("elementProperties")))return;const t=Zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fe("properties"))){const i=this.properties,s=[...Yr(i),...Xr(i)];for(const e of s)this.createProperty(e,i[e])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[s,e]of i)this.elementProperties.set(s,e)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const e=this._$Eu(i,s);e!==void 0&&this._$Eh.set(e,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const e of s)i.unshift(Fi(e))}else t!==void 0&&i.push(Fi(t));return i}static _$Eu(t,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qr(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ET(t,i){const s=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,s);if(e!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:fs).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,i){const s=this.constructor,e=s._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const o=s.getPropertyOptions(e),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:fs;this._$Em=e;const l=n.fromAttribute(i,o.type);this[e]=l??this._$Ej?.get(e)??l,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){const e=this.constructor,o=this[t];if(s??=e.getPropertyOptions(t),!((s.hasChanged??Vs)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:e,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),e===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,o]of this._$Ep)this[e]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[e,o]of s){const{wrapped:n}=o,l=this[e];n!==!0||this._$AL.has(e)||l===void 0||this.C(e,void 0,o,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};_e.elementStyles=[],_e.shadowRootOptions={mode:"open"},_e[Fe("elementProperties")]=new Map,_e[Fe("finalized")]=new Map,Qr?.({ReactiveElement:_e}),(us.reactiveElementVersions??=[]).push("2.1.1");/**
13
+ */const{is:Hr,defineProperty:Wr,getOwnPropertyDescriptor:Kr,getOwnPropertyNames:Yr,getOwnPropertySymbols:Xr,getPrototypeOf:Zr}=Object,us=globalThis,zi=us.trustedTypes,Gr=zi?zi.emptyScript:"",Qr=us.reactiveElementPolyfillSupport,Fe=(r,t)=>r,fs={toAttribute(r,t){switch(t){case Boolean:r=r?Gr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let i=r;switch(t){case Boolean:i=r!==null;break;case Number:i=r===null?null:Number(r);break;case Object:case Array:try{i=JSON.parse(r)}catch{i=null}}return i}},Vs=(r,t)=>!Hr(r,t),Ri={attribute:!0,type:String,converter:fs,reflect:!1,useDefault:!1,hasChanged:Vs};Symbol.metadata??=Symbol("metadata"),us.litPropertyMetadata??=new WeakMap;let xe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Ri){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){const s=Symbol(),e=this.getPropertyDescriptor(t,s,i);e!==void 0&&Wr(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){const{get:e,set:o}=Kr(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:e,set(n){const l=e?.call(this);o?.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ri}static _$Ei(){if(this.hasOwnProperty(Fe("elementProperties")))return;const t=Zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fe("properties"))){const i=this.properties,s=[...Yr(i),...Xr(i)];for(const e of s)this.createProperty(e,i[e])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[s,e]of i)this.elementProperties.set(s,e)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const e=this._$Eu(i,s);e!==void 0&&this._$Eh.set(e,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const e of s)i.unshift(Fi(e))}else t!==void 0&&i.push(Fi(t));return i}static _$Eu(t,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qr(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ET(t,i){const s=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,s);if(e!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:fs).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,i){const s=this.constructor,e=s._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const o=s.getPropertyOptions(e),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:fs;this._$Em=e;const l=n.fromAttribute(i,o.type);this[e]=l??this._$Ej?.get(e)??l,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){const e=this.constructor,o=this[t];if(s??=e.getPropertyOptions(t),!((s.hasChanged??Vs)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:e,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),e===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,o]of this._$Ep)this[e]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[e,o]of s){const{wrapped:n}=o,l=this[e];n!==!0||this._$AL.has(e)||l===void 0||this.C(e,void 0,o,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Fe("elementProperties")]=new Map,xe[Fe("finalized")]=new Map,Qr?.({ReactiveElement:xe}),(us.reactiveElementVersions??=[]).push("2.1.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
@@ -26,7 +26,7 @@
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function xe(r,t){return(i,s,e)=>{const o=n=>n.renderRoot?.querySelector(r)??null;return Bs(i,s,{get(){return o(this)}})}}/**
29
+ */function oe(r,t){return(i,s,e)=>{const o=n=>n.renderRoot?.querySelector(r)??null;return Bs(i,s,{get(){return o(this)}})}}/**
30
30
  * @license
31
31
  * Copyright 2021 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
@@ -38,42 +38,42 @@
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const qs=globalThis,gs=qs.trustedTypes,Ui=gs?gs.createPolicy("lit-html",{createHTML:r=>r}):void 0,Vi="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,Bi="?"+Kt,eo=`<${Bi}>`,oe=document,ze=()=>oe.createComment(""),Re=r=>r===null||typeof r!="object"&&typeof r!="function",Hs=Array.isArray,so=r=>Hs(r)||typeof r?.[Symbol.iterator]=="function",Ws=`[
42
- \f\r]`,Ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qi=/-->/g,Hi=/>/g,ne=RegExp(`>|${Ws}(?:([^\\s"'>=/]+)(${Ws}*=${Ws}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wi=/'/g,Ki=/"/g,Yi=/^(?:script|style|textarea|title)$/i,io=r=>(t,...i)=>({_$litType$:r,strings:t,values:i}),g=io(1),vt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Xi=new WeakMap,ae=oe.createTreeWalker(oe,129);function Zi(r,t){if(!Hs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ui!==void 0?Ui.createHTML(t):t}const ro=(r,t)=>{const i=r.length-1,s=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ue;for(let l=0;l<i;l++){const c=r[l];let h,f,d=-1,m=0;for(;m<c.length&&(n.lastIndex=m,f=n.exec(c),f!==null);)m=n.lastIndex,n===Ue?f[1]==="!--"?n=qi:f[1]!==void 0?n=Hi:f[2]!==void 0?(Yi.test(f[2])&&(e=RegExp("</"+f[2],"g")),n=ne):f[3]!==void 0&&(n=ne):n===ne?f[0]===">"?(n=e??Ue,d=-1):f[1]===void 0?d=-2:(d=n.lastIndex-f[2].length,h=f[1],n=f[3]===void 0?ne:f[3]==='"'?Ki:Wi):n===Ki||n===Wi?n=ne:n===qi||n===Hi?n=Ue:(n=ne,e=void 0);const v=n===ne&&r[l+1].startsWith("/>")?" ":"";o+=n===Ue?c+eo:d>=0?(s.push(h),c.slice(0,d)+Vi+c.slice(d)+Kt+v):c+Kt+(d===-2?l:v)}return[Zi(r,o+(r[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let Ks=class zr{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,f]=ro(t,i);if(this.el=zr.createElement(h,s),ae.currentNode=this.el.content,i===2||i===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=ae.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(Vi)){const m=f[n++],v=e.getAttribute(d).split(Kt),b=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:b[2],strings:v,ctor:b[1]==="."?no:b[1]==="?"?ao:b[1]==="@"?lo:ms}),e.removeAttribute(d)}else d.startsWith(Kt)&&(c.push({type:6,index:o}),e.removeAttribute(d));if(Yi.test(e.tagName)){const d=e.textContent.split(Kt),m=d.length-1;if(m>0){e.textContent=gs?gs.emptyScript:"";for(let v=0;v<m;v++)e.append(d[v],ze()),ae.nextNode(),c.push({type:2,index:++o});e.append(d[m],ze())}}}else if(e.nodeType===8)if(e.data===Bi)c.push({type:2,index:o});else{let d=-1;for(;(d=e.data.indexOf(Kt,d+1))!==-1;)c.push({type:7,index:o}),d+=Kt.length-1}o++}}static createElement(t,i){const s=oe.createElement("template");return s.innerHTML=t,s}};function $e(r,t,i=r,s){if(t===vt)return t;let e=s!==void 0?i._$Co?.[s]:i._$Cl;const o=Re(t)?void 0:t._$litDirective$;return e?.constructor!==o&&(e?._$AO?.(!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,i,s)),s!==void 0?(i._$Co??=[])[s]=e:i._$Cl=e),e!==void 0&&(t=$e(r,e._$AS(r,t.values),e,s)),t}let oo=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??oe).importNode(i,!0);ae.currentNode=e;let o=ae.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ce(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new co(o,this,t)),this._$AV.push(h),c=s[++l]}n!==c?.index&&(o=ae.nextNode(),n++)}return ae.currentNode=oe,e}p(t){let i=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}};class Ce{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=$e(this,t,i),Re(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):so(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==C&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ks.createElement(Zi(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const o=new oo(e,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Xi.get(t.strings);return i===void 0&&Xi.set(t.strings,i=new Ks(t)),i}k(t){Hs(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Ce(this.O(ze()),this.O(ze()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class ms{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,o){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=C}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(o===void 0)t=$e(this,t,i,0),n=!Re(t)||t!==this._$AH&&t!==vt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=$e(this,l[s+c],i,c),h===vt&&(h=this._$AH[c]),n||=!Re(h)||h!==this._$AH[c],h===C?t=C:t!==C&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class no extends ms{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}class ao extends ms{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}}class lo extends ms{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){if((t=$e(this,t,i,0)??C)===vt)return;const s=this._$AH,e=t===C&&s!==C||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==C&&(s===C||e);e&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class co{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const ho={I:Ce},po=qs.litHtmlPolyfillSupport;po?.(Ks,Ce),(qs.litHtmlVersions??=[]).push("3.3.1");const uo=(r,t,i)=>{const s=i?.renderBefore??t;let e=s._$litPart$;if(e===void 0){const o=i?.renderBefore??null;s._$litPart$=e=new Ce(t.insertBefore(ze(),o),o,void 0,i??{})}return e._$AI(r),e};/**
41
+ */const qs=globalThis,ms=qs.trustedTypes,Ui=ms?ms.createPolicy("lit-html",{createHTML:r=>r}):void 0,Vi="$lit$",Yt=`lit$${Math.random().toFixed(9).slice(2)}$`,Bi="?"+Yt,eo=`<${Bi}>`,ne=document,ze=()=>ne.createComment(""),Re=r=>r===null||typeof r!="object"&&typeof r!="function",Hs=Array.isArray,so=r=>Hs(r)||typeof r?.[Symbol.iterator]=="function",Ws=`[
42
+ \f\r]`,Ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qi=/-->/g,Hi=/>/g,ae=RegExp(`>|${Ws}(?:([^\\s"'>=/]+)(${Ws}*=${Ws}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Wi=/'/g,Ki=/"/g,Yi=/^(?:script|style|textarea|title)$/i,io=r=>(t,...i)=>({_$litType$:r,strings:t,values:i}),m=io(1),yt=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Xi=new WeakMap,le=ne.createTreeWalker(ne,129);function Zi(r,t){if(!Hs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ui!==void 0?Ui.createHTML(t):t}const ro=(r,t)=>{const i=r.length-1,s=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ue;for(let l=0;l<i;l++){const c=r[l];let h,u,d=-1,g=0;for(;g<c.length&&(n.lastIndex=g,u=n.exec(c),u!==null);)g=n.lastIndex,n===Ue?u[1]==="!--"?n=qi:u[1]!==void 0?n=Hi:u[2]!==void 0?(Yi.test(u[2])&&(e=RegExp("</"+u[2],"g")),n=ae):u[3]!==void 0&&(n=ae):n===ae?u[0]===">"?(n=e??Ue,d=-1):u[1]===void 0?d=-2:(d=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?ae:u[3]==='"'?Ki:Wi):n===Ki||n===Wi?n=ae:n===qi||n===Hi?n=Ue:(n=ae,e=void 0);const v=n===ae&&r[l+1].startsWith("/>")?" ":"";o+=n===Ue?c+eo:d>=0?(s.push(h),c.slice(0,d)+Vi+c.slice(d)+Yt+v):c+Yt+(d===-2?l:v)}return[Zi(r,o+(r[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let Ks=class zr{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,u]=ro(t,i);if(this.el=zr.createElement(h,s),le.currentNode=this.el.content,i===2||i===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=le.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(Vi)){const g=u[n++],v=e.getAttribute(d).split(Yt),b=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:b[2],strings:v,ctor:b[1]==="."?no:b[1]==="?"?ao:b[1]==="@"?lo:gs}),e.removeAttribute(d)}else d.startsWith(Yt)&&(c.push({type:6,index:o}),e.removeAttribute(d));if(Yi.test(e.tagName)){const d=e.textContent.split(Yt),g=d.length-1;if(g>0){e.textContent=ms?ms.emptyScript:"";for(let v=0;v<g;v++)e.append(d[v],ze()),le.nextNode(),c.push({type:2,index:++o});e.append(d[g],ze())}}}else if(e.nodeType===8)if(e.data===Bi)c.push({type:2,index:o});else{let d=-1;for(;(d=e.data.indexOf(Yt,d+1))!==-1;)c.push({type:7,index:o}),d+=Yt.length-1}o++}}static createElement(t,i){const s=ne.createElement("template");return s.innerHTML=t,s}};function $e(r,t,i=r,s){if(t===yt)return t;let e=s!==void 0?i._$Co?.[s]:i._$Cl;const o=Re(t)?void 0:t._$litDirective$;return e?.constructor!==o&&(e?._$AO?.(!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,i,s)),s!==void 0?(i._$Co??=[])[s]=e:i._$Cl=e),e!==void 0&&(t=$e(r,e._$AS(r,t.values),e,s)),t}let oo=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??ne).importNode(i,!0);le.currentNode=e;let o=le.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ce(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new co(o,this,t)),this._$AV.push(h),c=s[++l]}n!==c?.index&&(o=le.nextNode(),n++)}return le.currentNode=ne,e}p(t){let i=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}};class Ce{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=$e(this,t,i),Re(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==yt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):so(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.T(ne.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ks.createElement(Zi(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const o=new oo(e,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Xi.get(t.strings);return i===void 0&&Xi.set(t.strings,i=new Ks(t)),i}k(t){Hs(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Ce(this.O(ze()),this.O(ze()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class gs{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,o){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(o===void 0)t=$e(this,t,i,0),n=!Re(t)||t!==this._$AH&&t!==yt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=$e(this,l[s+c],i,c),h===yt&&(h=this._$AH[c]),n||=!Re(h)||h!==this._$AH[c],h===S?t=S:t!==S&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class no extends gs{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class ao extends gs{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class lo extends gs{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){if((t=$e(this,t,i,0)??S)===yt)return;const s=this._$AH,e=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==S&&(s===S||e);e&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class co{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const ho={I:Ce},po=qs.litHtmlPolyfillSupport;po?.(Ks,Ce),(qs.litHtmlVersions??=[]).push("3.3.1");const uo=(r,t,i)=>{const s=i?.renderBefore??t;let e=s._$litPart$;if(e===void 0){const o=i?.renderBefore??null;s._$litPart$=e=new Ce(t.insertBefore(ze(),o),o,void 0,i??{})}return e._$AI(r),e};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:fo}=ho,go=r=>r.strings===void 0,Gi=()=>document.createComment(""),Ve=(r,t,i)=>{const s=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(i===void 0){const o=s.insertBefore(Gi(),e),n=s.insertBefore(Gi(),e);i=new fo(o,n,r,r.options)}else{const o=i._$AB.nextSibling,n=i._$AM,l=n!==r;if(l){let c;i._$AQ?.(r),i._$AM=r,i._$AP!==void 0&&(c=r._$AU)!==n._$AU&&i._$AP(c)}if(o!==e||l){let c=i._$AA;for(;c!==o;){const h=c.nextSibling;s.insertBefore(c,e),c=h}}}return i},le=(r,t,i=r)=>(r._$AI(t,i),r),mo={},bo=(r,t=mo)=>r._$AH=t,vo=r=>r._$AH,Ys=r=>{r._$AR(),r._$AA.remove()};/**
47
+ */const{I:fo}=ho,mo=r=>r.strings===void 0,Gi=()=>document.createComment(""),Ve=(r,t,i)=>{const s=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(i===void 0){const o=s.insertBefore(Gi(),e),n=s.insertBefore(Gi(),e);i=new fo(o,n,r,r.options)}else{const o=i._$AB.nextSibling,n=i._$AM,l=n!==r;if(l){let c;i._$AQ?.(r),i._$AM=r,i._$AP!==void 0&&(c=r._$AU)!==n._$AU&&i._$AP(c)}if(o!==e||l){let c=i._$AA;for(;c!==o;){const h=c.nextSibling;s.insertBefore(c,e),c=h}}}return i},ce=(r,t,i=r)=>(r._$AI(t,i),r),go={},bo=(r,t=go)=>r._$AH=t,vo=r=>r._$AH,Ys=r=>{r._$AR(),r._$AA.remove()};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const ce={ATTRIBUTE:1,CHILD:2},Yt=r=>(...t)=>({_$litDirective$:r,values:t});let Se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this._$Ct=t,this._$AM=i,this._$Ci=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/**
51
+ */const he={ATTRIBUTE:1,CHILD:2},Xt=r=>(...t)=>({_$litDirective$:r,values:t});let Se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this._$Ct=t,this._$AM=i,this._$Ci=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const Be=(r,t)=>{const i=r._$AN;if(i===void 0)return!1;for(const s of i)s._$AO?.(t,!1),Be(s,t);return!0},bs=r=>{let t,i;do{if((t=r._$AM)===void 0)break;i=t._$AN,i.delete(r),r=t}while(i?.size===0)},Qi=r=>{for(let t;t=r._$AM;r=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(r))break;i.add(r),_o(t)}};function yo(r){this._$AN!==void 0?(bs(this),this._$AM=r,Qi(this)):this._$AM=r}function wo(r,t=!1,i=0){const s=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(s))for(let o=i;o<s.length;o++)Be(s[o],!1),bs(s[o]);else s!=null&&(Be(s,!1),bs(s));else Be(this,r)}const _o=r=>{r.type==ce.CHILD&&(r._$AP??=wo,r._$AQ??=yo)};class Xs extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,s){super._$AT(t,i,s),Qi(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(Be(this,t),bs(this))}setValue(t){if(go(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
55
+ */const Be=(r,t)=>{const i=r._$AN;if(i===void 0)return!1;for(const s of i)s._$AO?.(t,!1),Be(s,t);return!0},bs=r=>{let t,i;do{if((t=r._$AM)===void 0)break;i=t._$AN,i.delete(r),r=t}while(i?.size===0)},Qi=r=>{for(let t;t=r._$AM;r=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(r))break;i.add(r),_o(t)}};function yo(r){this._$AN!==void 0?(bs(this),this._$AM=r,Qi(this)):this._$AM=r}function wo(r,t=!1,i=0){const s=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(s))for(let o=i;o<s.length;o++)Be(s[o],!1),bs(s[o]);else s!=null&&(Be(s,!1),bs(s));else Be(this,r)}const _o=r=>{r.type==he.CHILD&&(r._$AP??=wo,r._$AQ??=yo)};class Xs extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,s){super._$AT(t,i,s),Qi(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(Be(this,t),bs(this))}setValue(t){if(mo(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */const Zs=globalThis;let y=class extends _e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=uo(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};y._$litElement$=!0,y.finalized=!0,Zs.litElementHydrateSupport?.({LitElement:y});const xo=Zs.litElementPolyfillSupport;xo?.({LitElement:y}),(Zs.litElementVersions??=[]).push("4.2.1");function vs(r){if(typeof r=="function"){const t=r;return T.collectModifiedPublisher(),t(),T.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=T.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])}class Po extends Xs{constructor(t){super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=t.options?.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),vt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=i=>{this.setValue(i)},this.observables=vs(t),this.observables.forEach(i=>{i.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Ji=Yt(Po),$o=Ji,Co=Ji,So=r=>vs(r).values().next().value?.get(),tr=(r,t)=>{const i=vs(r).values().next().value;if(t!==void 0&&i){const s=i.get();tt.isEmpty(s)&&i.set(t)}return i},Ao=tr,er=tr,ko=(r,t)=>{vs(r).values().next().value?.set(t)},U=class U{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){U.tokens.delete(this.serviceURL);return}U.invalidTokens.includes(t)||U.tokens.set(this.serviceURL,t)}get token(){return U.invalidTokens.includes(this._token)?U.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(U.invalidTokens.includes(t)||(U.invalidTokens.push(t),this.token=null))}async handleResult(t,i){U.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const s=t.headers.get("content-type")?.toLowerCase(),e=t.status;let o={};if(!s||s.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}this.addHTTPResponse&&tt.isObject(o)&&(o._sonic_http_response_=t),e===498&&!U.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),i.apiMethod==="get"?o=await this[i.apiMethod](i.path,i.additionalHeaders):o=await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders));const n=T.get("sonic-api");return n.lastResponse={http:t,processed:o},o}async auth(){if(this.token)return;if(U.tokens.has(this.serviceURL)){this.token=U.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const i=new URL(this.serviceURL),s=i.protocol+"//"+i.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:s}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:U.failledTokenUpdates.set(this.serviceURL,!0)}catch{U.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,i){const s=T.get(t),e=new URLSearchParams(i.split("?")[1]||""),o=s.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,f=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),f++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),f++),f>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[d,m]of e.entries()){const v=m.split(",").map(b=>b.trim());for(const b of v)for(const P of n)if(typeof P!="object")isNaN(+P)?P.toString().toLowerCase().includes(m.toLowerCase())&&l.push(P):P===m&&l.push(P);else{const S=P;if(!S[d])continue;isNaN(+S[d])?S[d]?.toString().toLowerCase().includes(b.toLowerCase())&&l.push(P):S[d]===b&&l.push(P)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!U.firstCallDoneFlags.has(this.serviceURL))U.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const i=()=>{[void 0,"loading"].includes(U.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):t(!0)};i()}})}async get(t,i){await this.firstCallDone(),this.blockUntilDone&&U.firstCallDoneFlags.set(this.serviceURL,"loading");const s=/dataProvider\((.*?)\)(.*?)$/;if(s.test(t)){const h=t.match(s);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:i},o=await this.createHeaders(i),n=this.computeURL(t),l=JSON.stringify({url:n,headers:o});if(!U.loadingGetPromises.has(l)){const h=new Promise(async f=>{try{const d=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(d,e);f(m)}catch{f(null)}});U.loadingGetPromises.set(l,h)}const c=await U.loadingGetPromises.get(l);return U.loadingGetPromises.delete(l),c}async createHeaders(t){await this.auth();const i={};return this.token&&(i.Authorization="Bearer "+this.token),i["Accept-Language"]=H.getLanguage(),t&&Object.assign(i,t),i}computeURL(t,i={}){let s="";t.startsWith("http")?s=t:s=this.serviceURL+"/"+t,s.startsWith("http")||(s=window.location.origin+s);const e=new URL(s);for(const o in i)e.searchParams.set(o,i[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,i,s="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:JSON.stringify(i)});return await this.handleResult(l,o)}async submitFormData(t,i,s="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json";const l=new FormData,c=i;for(const f in c)l.set(f,c[f]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:l});return await this.handleResult(h,o)}async put(t,i,s){return this.send(t,i,"PUT",s)}async post(t,i,s){return this.send(t,i,"POST",s)}async patch(t,i,s){return this.send(t,i,"PATCH",s)}async delete(t,i,s){return this.send(t,i,"delete",s)}};U.loadingGetPromises=new Map,U.tokens=new Map,U.invalidTokens=[],U.failledTokenUpdates=new Map,U.firstCallDoneFlags=new Map;let Ae=U;H.getApiConfiguration(document.body||document.documentElement);const Oo=async(r,t)=>{};/**
59
+ */const Zs=globalThis;let y=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=uo(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return yt}};y._$litElement$=!0,y.finalized=!0,Zs.litElementHydrateSupport?.({LitElement:y});const xo=Zs.litElementPolyfillSupport;xo?.({LitElement:y}),(Zs.litElementVersions??=[]).push("4.2.1");function vs(r){if(typeof r=="function"){const t=r;return T.collectModifiedPublisher(),t(),T.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=T.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])}class Po extends Xs{constructor(t){super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=t.options?.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),yt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=i=>{this.setValue(i)},this.observables=vs(t),this.observables.forEach(i=>{i.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Ji=Xt(Po),$o=Ji,Co=Ji,So=r=>vs(r).values().next().value?.get(),tr=(r,t)=>{const i=vs(r).values().next().value;if(t!==void 0&&i){const s=i.get();tt.isEmpty(s)&&i.set(t)}return i},Ao=tr,er=tr,ko=(r,t)=>{vs(r).values().next().value?.set(t)},U=class U{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){U.tokens.delete(this.serviceURL);return}U.invalidTokens.includes(t)||U.tokens.set(this.serviceURL,t)}get token(){return U.invalidTokens.includes(this._token)?U.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(U.invalidTokens.includes(t)||(U.invalidTokens.push(t),this.token=null))}async handleResult(t,i){U.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const s=t.headers.get("content-type")?.toLowerCase(),e=t.status;let o={};if(!s||s.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}this.addHTTPResponse&&tt.isObject(o)&&(o._sonic_http_response_=t),e===498&&!U.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),i.apiMethod==="get"?o=await this[i.apiMethod](i.path,i.additionalHeaders):o=await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders));const n=T.get("sonic-api");return n.lastResponse={http:t,processed:o},o}async auth(){if(this.token)return;if(U.tokens.has(this.serviceURL)){this.token=U.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const i=new URL(this.serviceURL),s=i.protocol+"//"+i.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:s}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:U.failledTokenUpdates.set(this.serviceURL,!0)}catch{U.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,i){const s=T.get(t),e=new URLSearchParams(i.split("?")[1]||""),o=s.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,u=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),u++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),u++),u>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[d,g]of e.entries()){const v=g.split(",").map(b=>b.trim());for(const b of v)for(const x of n)if(typeof x!="object")isNaN(+x)?x.toString().toLowerCase().includes(g.toLowerCase())&&l.push(x):x===g&&l.push(x);else{const C=x;if(!C[d])continue;isNaN(+C[d])?C[d]?.toString().toLowerCase().includes(b.toLowerCase())&&l.push(x):C[d]===b&&l.push(x)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!U.firstCallDoneFlags.has(this.serviceURL))U.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const i=()=>{[void 0,"loading"].includes(U.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):t(!0)};i()}})}async get(t,i){await this.firstCallDone(),this.blockUntilDone&&U.firstCallDoneFlags.set(this.serviceURL,"loading");const s=/dataProvider\((.*?)\)(.*?)$/;if(s.test(t)){const h=t.match(s);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:i},o=await this.createHeaders(i),n=this.computeURL(t),l=JSON.stringify({url:n,headers:o});if(!U.loadingGetPromises.has(l)){const h=new Promise(async u=>{try{const d=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),g=await this.handleResult(d,e);u(g)}catch{u(null)}});U.loadingGetPromises.set(l,h)}const c=await U.loadingGetPromises.get(l);return U.loadingGetPromises.delete(l),c}async createHeaders(t){await this.auth();const i={};return this.token&&(i.Authorization="Bearer "+this.token),i["Accept-Language"]=H.getLanguage(),t&&Object.assign(i,t),i}computeURL(t,i={}){let s="";t.startsWith("http")?s=t:s=this.serviceURL+"/"+t,s.startsWith("http")||(s=window.location.origin+s);const e=new URL(s);for(const o in i)e.searchParams.set(o,i[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,i,s="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:JSON.stringify(i)});return await this.handleResult(l,o)}async submitFormData(t,i,s="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json";const l=new FormData,c=i;for(const u in c)l.set(u,c[u]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:l});return await this.handleResult(h,o)}async put(t,i,s){return this.send(t,i,"PUT",s)}async post(t,i,s){return this.send(t,i,"POST",s)}async patch(t,i,s){return this.send(t,i,"PATCH",s)}async delete(t,i,s){return this.send(t,i,"delete",s)}};U.loadingGetPromises=new Map,U.tokens=new Map,U.invalidTokens=[],U.failledTokenUpdates=new Map,U.firstCallDoneFlags=new Map;let Ae=U;H.getApiConfiguration(document.body||document.documentElement);const Oo=async(r,t)=>{};/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let Gs=class extends Se{constructor(t){if(super(t),this.it=C,t.type!==ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Gs.directiveName="unsafeHTML",Gs.resultType=1;const F=Yt(Gs),Qs=new Map,sr=r=>{if(!r)return null;const t=H.getApiConfiguration(r),i=H.getAncestorAttributeValue(r,"wordingProvider"),s=H.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:i,wordingVersionProvider:s};let o=null;for(const[n,l]of Qs)if(tt.deepEqual(n,e)){o=l;break}return o||(o={api:new Ae(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:s,apiCallKey:e},Qs.set(e,o)),o},ir="",B=class B extends Xs{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=i=>{const s=this.useUnsafeHTML?F(i):i;this.setValue(s)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,i=!1){return this.useUnsafeHTML=i,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),vt}static async callApi(t,i,s=!0,e){if(await T.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,js(B.reloadWordings);const f=Object.keys(B.publisher.get());for(const d of f)B.publisher.get()[d]===ir&&delete B.publisher[d]}if(t){const f=H.getAncestorAttributeValue(t,"wordingVersionProvider");f&&er(f).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+i]!=null;const n=e||sr(t);if(!n)return;if(o&&i!==""){n.translatedKeys.add(i);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&s){window.setTimeout(async()=>{B.callApi(null,i,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+i].get()!=null,!o&&i!==""&&(n.keysToTranslate.add(i),B.publisher["wording_"+i]=ir),l!==n.callIndex)return;const f=Array.from(n.keysToTranslate);if(!f.length)return;const d=c.split("?"),m=d.shift(),v=(d.length>0?d.join("?")+"&":"")+"labels[]="+f.join("&labels[]="),b=m+"?"+v;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(b);for(const S in P)B.publisher["wording_"+S]=P[S]})}static reloadWordings(){for(const t of Qs.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const i=sr(t),s=o=>{};if(!i)return s;if(B.versionProviderHandlers.has(i))return B.versionProviderHandlers.get(i)||s;const e=function(o){if(!i.wordingVersionProvider)return;const l=B.publisher.get().__wording_versions__??[];if(o==null)return;const c=l.find(h=>h.serviceURL===i.api.serviceURL)||{serviceURL:i.api.serviceURL,version:0};l.includes(c)||l.push(c),o!==c.version&&(c.version=o,B.publisher.set({__wording_versions__:l}),B.reloadWordings())};return B.versionProviderHandlers.set(i,e),e}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=T.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let ke=B;const Do=Yt(ke);var Lo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,Ot=(r,t,i,s)=>{for(var e=s>1?void 0:s?Eo(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Lo(t,i,e),e};let ys=!1,Js=new Set;const X=(r,t)=>{var e;const i=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return H.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(f=>f.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const f of h)if(l&&f.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),ke.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const n=this.debug.style;n.position="fixed",n.top="0",n.right="0",n.margin="auto",n.borderRadius=".7rem",n.backgroundColor="#0f1729",n.color="#c5d4f9",n.padding="16px 16px",n.margin="16px 16px",n.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",n.overflowY="auto",n.zIndex="99999999",n.maxHeight="calc(100vh - 32px)",n.fontFamily="Consolas, monospace",n.maxWidth="min(50vw,25rem)",n.fontSize="12px",n.minWidth="300px",n.overflowWrap="break-word",n.resize="vertical"}this.addEventListener("click",n=>{n.ctrlKey&&(n.preventDefault(),ys=!ys)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{ys||this.removeDebugger(),document.body.appendChild(this.debug),Js.add(this.debug)}),this.addEventListener("mouseout",()=>{ys||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let Gs=class extends Se{constructor(t){if(super(t),this.it=S,t.type!==he.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===S||t==null)return this._t=void 0,this.it=t;if(t===yt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Gs.directiveName="unsafeHTML",Gs.resultType=1;const F=Xt(Gs),Qs=new Map,sr=r=>{if(!r)return null;const t=H.getApiConfiguration(r),i=H.getAncestorAttributeValue(r,"wordingProvider"),s=H.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:i,wordingVersionProvider:s};let o=null;for(const[n,l]of Qs)if(tt.deepEqual(n,e)){o=l;break}return o||(o={api:new Ae(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:s,apiCallKey:e},Qs.set(e,o)),o},ir="",B=class B extends Xs{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=i=>{const s=this.useUnsafeHTML?F(i):i;this.setValue(s)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,i=!1){return this.useUnsafeHTML=i,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),yt}static async callApi(t,i,s=!0,e){if(await T.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,js(B.reloadWordings);const u=Object.keys(B.publisher.get());for(const d of u)B.publisher.get()[d]===ir&&delete B.publisher[d]}if(t){const u=H.getAncestorAttributeValue(t,"wordingVersionProvider");u&&er(u).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+i]!=null;const n=e||sr(t);if(!n)return;if(o&&i!==""){n.translatedKeys.add(i);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&s){window.setTimeout(async()=>{B.callApi(null,i,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+i].get()!=null,!o&&i!==""&&(n.keysToTranslate.add(i),B.publisher["wording_"+i]=ir),l!==n.callIndex)return;const u=Array.from(n.keysToTranslate);if(!u.length)return;const d=c.split("?"),g=d.shift(),v=(d.length>0?d.join("?")+"&":"")+"labels[]="+u.join("&labels[]="),b=g+"?"+v;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const x=await h.get(b);for(const C in x)B.publisher["wording_"+C]=x[C]})}static reloadWordings(){for(const t of Qs.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const i=sr(t),s=o=>{};if(!i)return s;if(B.versionProviderHandlers.has(i))return B.versionProviderHandlers.get(i)||s;const e=function(o){if(!i.wordingVersionProvider)return;const l=B.publisher.get().__wording_versions__??[];if(o==null)return;const c=l.find(h=>h.serviceURL===i.api.serviceURL)||{serviceURL:i.api.serviceURL,version:0};l.includes(c)||l.push(c),o!==c.version&&(c.version=o,B.publisher.set({__wording_versions__:l}),B.reloadWordings())};return B.versionProviderHandlers.set(i,e),e}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=T.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let ke=B;const Do=Xt(ke);var Lo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,Ot=(r,t,i,s)=>{for(var e=s>1?void 0:s?Eo(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Lo(t,i,e),e};let ys=!1,Js=new Set;const X=(r,t)=>{var e;const i=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return H.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(u=>u.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const u of h)if(l&&u.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),ke.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const n=this.debug.style;n.position="fixed",n.top="0",n.right="0",n.margin="auto",n.borderRadius=".7rem",n.backgroundColor="#0f1729",n.color="#c5d4f9",n.padding="16px 16px",n.margin="16px 16px",n.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",n.overflowY="auto",n.zIndex="99999999",n.maxHeight="calc(100vh - 32px)",n.fontFamily="Consolas, monospace",n.maxWidth="min(50vw,25rem)",n.fontSize="12px",n.minWidth="300px",n.overflowWrap="break-word",n.resize="vertical"}this.addEventListener("click",n=>{n.ctrlKey&&(n.preventDefault(),ys=!ys)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{ys||this.removeDebugger(),document.body.appendChild(this.debug),Js.add(this.debug)}),this.addEventListener("mouseout",()=>{ys||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
64
64
  <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
65
65
  Variable disponible dans la console<br>
66
66
  ctrl + Clique : épingler / désépingler
67
67
  </div>
68
- <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){Js.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),Js=new Set}getApiConfiguration(){return H.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&ke.callApi(this,l.substring(8));ke.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ds.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=T.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=tt.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Ot([a({type:Number})],i.prototype,"collectDependenciesVersion",2),Ot([a({type:Boolean})],i.prototype,"displayContents",2),Ot([a({type:Boolean})],i.prototype,"noAutoFill",2),Ot([a({type:Boolean})],i.prototype,"forceAutoFill",2),Ot([a({type:Object})],i.prototype,"propertyMap",2),Ot([a({type:String,attribute:"data-title"})],i.prototype,"title",2),Ot([a({reflect:!0})],i.prototype,"dataProvider",2),Ot([a()],i.prototype,"bindPublisher",2),Ot([a()],i.prototype,"props",1),Ot([D()],i.prototype,"shouldRenderLazy",2),i};var No=Object.defineProperty,To=(r,t,i,s)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,i,e)||e);return e&&No(t,i,e),e};const qe=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const s=this.templates||[...this.querySelectorAll("template")];for(const e of s)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=s.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=s),super.connectedCallback()}}return To([a({type:Array})],t.prototype,"templates"),t};var Mo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,W=(r,t,i,s)=>{for(var e=s>1?void 0:s?Io(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Mo(t,i,e),e};const jo="sonic-date";js(()=>z.updateComponentsLanguage());let z=class extends X(qe(y)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){z.dateCompnents.forEach(r=>r.pageLanguage=H.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=this.wording_billet_periode_validite?.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=H.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.dateCompnents.delete(this)}getDatesParts(r,t,i){const s=this.startDateObject;s.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=s.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete i.hour,delete i.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(s,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(s);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=ls.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return C;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return F(`${t.map(i=>{const s=this.templateParts[i.type];if(s){const n=document.importNode(s.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=i.value),n.outerHTML}const e=document.createElement("span");return e.innerText=i.value,e.className=i.type,`<span class="${i.type}">${i.value}</span>`}).join("")}`)}};z.dateCompnents=new Set,W([a()],z.prototype,"wording_billet_periode_validite",1),W([a({type:Boolean})],z.prototype,"designMode",2),W([a({type:String})],z.prototype,"time_zone",2),W([a({type:Number})],z.prototype,"date",2),W([a({type:String})],z.prototype,"date_string",2),W([a({type:String})],z.prototype,"start_date_string",2),W([a({type:String})],z.prototype,"end_date_string",2),W([a({type:Number})],z.prototype,"start_date",2),W([a({type:Number})],z.prototype,"end_date",2),W([a({type:Boolean})],z.prototype,"hide_hours",2),W([a({type:String})],z.prototype,"era",2),W([a({type:String})],z.prototype,"year",2),W([a({type:String})],z.prototype,"month",2),W([a({type:String})],z.prototype,"day",2),W([a({type:String})],z.prototype,"weekday",2),W([a({type:String})],z.prototype,"hour",2),W([a({type:Boolean})],z.prototype,"hour12",2),W([a({type:String})],z.prototype,"minute",2),W([a({type:String})],z.prototype,"language",2),W([a({type:Boolean})],z.prototype,"renderIf",2),W([a({type:Boolean})],z.prototype,"now",2),z=W([_(jo)],z);let et=(Y=class{static listen(){if(!Y.listening)return;const t=document.location?.href.replace(document.location.origin,"");Y.prevURL&&Y.prevURL!=t&&(Y.prevURL=t,Y.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Y.listen)}static offChange(t){const i=Y.listeners.indexOf(t);i!=-1&&(Y.listeners.splice(i,1),Y.listeners.length==0&&(Y.listening=!1))}static onChange(t){Y.listening||(Y.listening=!0,Y.listen()),Y.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const i=t.goBack,s=document.referrer;if(i!=null){const h=document.location.origin,f=(i||h).toString(),m=s.indexOf("http")==0?new URL(s).origin!=h:!1,v=s=="",b=history.length<3,P=v&&b,S=f!=document.location.href;if(m&&S||P){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(f)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href?.toString()||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),l=[];let c="";for(const h of n)h!=c&&l.push(h),c=h;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const i=t.href?.toString()||"";if(t.href&&i.indexOf("http")!=0){const s=new URL(i,document.location.href),e=new URL(t.location||"",document.location.origin);let o=!1;t.autoActive=="strict"?o=s.pathname==e.pathname&&s.hash==e.hash&&s.search==e.search:t.autoActive=="strict-path-only"?o=s.pathname==e.pathname&&s.hash==e.hash:o=e.href.indexOf(s.href)==0,o?t.setAttribute("active","true"):t.removeAttribute("active")}}},Y.listeners=[],Y.listening=!1,Y.prevURL=document.location?.href.replace(document.location.origin,""),Y);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){Js.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),Js=new Set}getApiConfiguration(){return H.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&ke.callApi(this,l.substring(8));ke.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ds.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=T.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=tt.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Ot([a({type:Number})],i.prototype,"collectDependenciesVersion",2),Ot([a({type:Boolean})],i.prototype,"displayContents",2),Ot([a({type:Boolean})],i.prototype,"noAutoFill",2),Ot([a({type:Boolean})],i.prototype,"forceAutoFill",2),Ot([a({type:Object})],i.prototype,"propertyMap",2),Ot([a({type:String,attribute:"data-title"})],i.prototype,"title",2),Ot([a({reflect:!0})],i.prototype,"dataProvider",2),Ot([a()],i.prototype,"bindPublisher",2),Ot([a()],i.prototype,"props",1),Ot([D()],i.prototype,"shouldRenderLazy",2),i};var No=Object.defineProperty,To=(r,t,i,s)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,i,e)||e);return e&&No(t,i,e),e};const qe=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const s=this.templates||[...this.querySelectorAll("template")];for(const e of s)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=s.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=s),super.connectedCallback()}}return To([a({type:Array})],t.prototype,"templates"),t};var Mo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,W=(r,t,i,s)=>{for(var e=s>1?void 0:s?Io(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Mo(t,i,e),e};const jo="sonic-date";js(()=>z.updateComponentsLanguage());let z=class extends X(qe(y)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){z.dateCompnents.forEach(r=>r.pageLanguage=H.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=this.wording_billet_periode_validite?.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=H.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.dateCompnents.delete(this)}getDatesParts(r,t,i){const s=this.startDateObject;s.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=s.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete i.hour,delete i.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(s,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(s);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=ls.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return S;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return F(`${t.map(i=>{const s=this.templateParts[i.type];if(s){const n=document.importNode(s.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=i.value),n.outerHTML}const e=document.createElement("span");return e.innerText=i.value,e.className=i.type,`<span class="${i.type}">${i.value}</span>`}).join("")}`)}};z.dateCompnents=new Set,W([a()],z.prototype,"wording_billet_periode_validite",1),W([a({type:Boolean})],z.prototype,"designMode",2),W([a({type:String})],z.prototype,"time_zone",2),W([a({type:Number})],z.prototype,"date",2),W([a({type:String})],z.prototype,"date_string",2),W([a({type:String})],z.prototype,"start_date_string",2),W([a({type:String})],z.prototype,"end_date_string",2),W([a({type:Number})],z.prototype,"start_date",2),W([a({type:Number})],z.prototype,"end_date",2),W([a({type:Boolean})],z.prototype,"hide_hours",2),W([a({type:String})],z.prototype,"era",2),W([a({type:String})],z.prototype,"year",2),W([a({type:String})],z.prototype,"month",2),W([a({type:String})],z.prototype,"day",2),W([a({type:String})],z.prototype,"weekday",2),W([a({type:String})],z.prototype,"hour",2),W([a({type:Boolean})],z.prototype,"hour12",2),W([a({type:String})],z.prototype,"minute",2),W([a({type:String})],z.prototype,"language",2),W([a({type:Boolean})],z.prototype,"renderIf",2),W([a({type:Boolean})],z.prototype,"now",2),z=W([_(jo)],z);let et=(Y=class{static listen(){if(!Y.listening)return;const t=document.location?.href.replace(document.location.origin,"");Y.prevURL&&Y.prevURL!=t&&(Y.prevURL=t,Y.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Y.listen)}static offChange(t){const i=Y.listeners.indexOf(t);i!=-1&&(Y.listeners.splice(i,1),Y.listeners.length==0&&(Y.listening=!1))}static onChange(t){Y.listening||(Y.listening=!0,Y.listen()),Y.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const i=t.goBack,s=document.referrer;if(i!=null){const h=document.location.origin,u=(i||h).toString(),g=s.indexOf("http")==0?new URL(s).origin!=h:!1,v=s=="",b=history.length<3,x=v&&b,C=u!=document.location.href;if(g&&C||x){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(u)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href?.toString()||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),l=[];let c="";for(const h of n)h!=c&&l.push(h),c=h;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const i=t.href?.toString()||"";if(t.href&&i.indexOf("http")!=0){const s=new URL(i,document.location.href),e=new URL(t.location||"",document.location.origin);let o=!1;t.autoActive=="strict"?o=s.pathname==e.pathname&&s.hash==e.hash&&s.search==e.search:t.autoActive=="strict-path-only"?o=s.pathname==e.pathname&&s.hash==e.hash:o=e.href.indexOf(s.href)==0,o?t.setAttribute("active","true"):t.removeAttribute("active")}}},Y.listeners=[],Y.listening=!1,Y.prevURL=document.location?.href.replace(document.location.origin,""),Y);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const rr="important",Fo=" !"+rr,mt=Yt(class extends Se{constructor(r){if(super(r),r.type!==ce.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce(((t,i)=>{const s=r[i];return s==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(r,[t]){const{style:i}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in t){const e=t[s];if(e!=null){this.ft.add(s);const o=typeof e=="string"&&e.endsWith(Fo);s.includes("-")||o?i.setProperty(s,o?e.slice(0,-11):e,o?rr:""):i[s]=e}}return vt}});var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Dt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ro(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zo(t,i,e),e};const ws=new Map,Oe=r=>{class t extends r{constructor(...s){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(s){this.hasAttribute("name")&&!this.forceAutoFill&&(s=this.getAttribute("name")),this._name=s,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?T.get(this.formDataProvider):null}setFormPublisherValue(s){const e=this.getFormPublisher();e&&dt(e,this.name).set(s)}getFormPublisherValue(){const s=this.getFormPublisher();return s?dt(s,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(s){this.value=s}setFormValueFromPublisher(s){this.value=s}get value(){return this._value}set value(s){s==null&&(s=""),tt.isObject(s)&&Object.prototype.hasOwnProperty.call(s,"__value")&&s._value==null&&(s=""),this._value!=s&&(this._value=s,this.updateDataValue(),this.requestUpdate())}initPublisher(){let s=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&s&&dt(s,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&dt(this.publisher,this._name).onAssign(this.onValueAssign),s=this.getFormPublisher(),this._name&&s&&(dt(s,this._name).onAssign(this.onFormValueAssign),s.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(s){this.value=s.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const s=this.getAncestorAttributeValue("data-keyboard-nav");if(!s)return;const e=s.split(" "),o=e[0];if(!o)return;for(const l of e){ws.has(l)||ws.set(l,[]);const c=ws.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=ws.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",f=n?.filter(v=>{const b=v.shadowRoot?.querySelector(h);if(!b)return!1;const P=window.getComputedStyle(b);return P.display!=="none"&&P.display!==""&&P.pointerEvents!="none"&&P.visibility!=="hidden"&&b.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&f){const v=f.indexOf(this);v==f.length-1?d=f[0]:d=f[v+1]}else if(c.key=="ArrowUp"&&f){const v=f.indexOf(this);v==0?d=f[f.length-1]:d=f[v-1]}const m=d?.shadowRoot?.querySelector(h);m&&m.focus&&(m.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign);const s=this.getFormPublisher();this._name&&s&&(dt(s,this._name).offAssign(this.onFormValueAssign),s.offFormInvalidate(this.onFormDataInValidate))}}return Dt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Dt([a({type:Boolean})],t.prototype,"error",2),Dt([a({type:Boolean})],t.prototype,"autofocus",2),Dt([a({type:Boolean})],t.prototype,"required",2),Dt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Dt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Dt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Dt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Dt([a()],t.prototype,"name",1),Dt([a()],t.prototype,"value",1),t};let Uo=class ye{static areEqual(t,i){return t.length===i.length?t.every((s,e)=>s===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(s=>i=i.concat(s)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const s=(t[0]||{})[i];return t.every(e=>(e||{})[i]==s)}})})}),value:()=>({forKey:i=>ye.from(t.map(s=>s[i]))}),copy:()=>({fromKey:i=>({toKey:s=>{t.forEach(e=>{e[s]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>ye.from(t.map(i)),filter:i=>ye.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const s=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=s.length;e.set(n,l);const c={items:[]};c[i]=n,s.push(c)}s[e.get(n)].items.push(o)}return ye.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(t.map(e=>e[i]))];return ye.from(s.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>{const e=(o,n)=>l=>o[n]!=l[n];return ye.from(t.filter(o=>i.every(e(o,s))))}})})})}}};function Vo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var He={exports:{}},Bo=He.exports,or;function qo(){return or||(or=1,(function(r,t){var i=[].slice;(function(s,e){return t!==null?r.exports=e():s.UrlPattern=e()})(Bo,function(){var s,e,o,n,l,c,h,f,d,m,v,b,P,S,N;return d=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var w,A,k;for(k=[],w=-1,A=p.length;++w<A;)k=k.concat(u(p[w]));return k},S=function(p,u){var w,A,k;for(k="",w=-1,A=p.length;++w<A;)k+=u(p[w]);return k},P=function(p){return new RegExp(p.toString()+"|").exec("").length-1},v=function(p,u){var w,A,k,q,Q;for(q={},w=-1,k=p.length;++w<k;)A=p[w],Q=u[w],Q!=null&&(q[A]!=null?(Array.isArray(q[A])||(q[A]=[q[A]]),q[A].push(Q)):q[A]=Q);return q},s={},s.Result=function(p,u){this.value=p,this.rest=u},s.Tagged=function(p,u){this.tag=p,this.value=u},s.tag=function(p,u){return function(w){var A,k;if(A=u(w),A!=null)return k=new s.Tagged(p,A.value),new s.Result(k,A.rest)}},s.regex=function(p){return function(u){var w,A;if(w=p.exec(u),w!=null)return A=w[0],new s.Result(A,u.slice(A.length))}},s.sequence=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(u){var w,A,k,q,Q,at;for(w=-1,A=p.length,at=[],q=u;++w<A;){if(k=p[w],Q=k(q),Q==null)return;at.push(Q.value),q=Q.rest}return new s.Result(at,q)}},s.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?i.call(arguments,1):[],function(w){var A,k;if(k=s.sequence.apply(s,u)(w),k!=null)return A=k.value,k.value=A[p],k}},s.string=function(p){var u;return u=p.length,function(w){if(w.slice(0,u)===p)return new s.Result(p,w.slice(u))}},s.lazy=function(p){var u;return u=null,function(w){return u==null&&(u=p()),u(w)}},s.baseMany=function(p,u,w,A,k){var q,Q,at,as;for(at=k,as=w?"":[];!(u!=null&&(q=u(at),q!=null)||(Q=p(at),Q==null));)w?as+=Q.value:as.push(Q.value),at=Q.rest;if(!(A&&as.length===0))return new s.Result(as,at)},s.many1=function(p){return function(u){return s.baseMany(p,null,!1,!0,u)}},s.concatMany1Till=function(p,u){return function(w){return s.baseMany(p,u,!0,!0,w)}},s.firstChoice=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(u){var w,A,k,q;for(w=-1,A=p.length;++w<A;)if(k=p[w],q=k(u),q!=null)return q}},b=function(p){var u;return u={},u.wildcard=s.tag("wildcard",s.string(p.wildcardChar)),u.optional=s.tag("optional",s.pick(1,s.string(p.optionalSegmentStartChar),s.lazy(function(){return u.pattern}),s.string(p.optionalSegmentEndChar))),u.name=s.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=s.tag("named",s.pick(1,s.string(p.segmentNameStartChar),s.lazy(function(){return u.name}))),u.escapedChar=s.pick(1,s.string(p.escapeChar),s.regex(/^./)),u.static=s.tag("static",s.concatMany1Till(s.firstChoice(s.lazy(function(){return u.escapedChar}),s.regex(/^./)),s.firstChoice(s.string(p.segmentNameStartChar),s.string(p.optionalSegmentStartChar),s.string(p.optionalSegmentEndChar),u.wildcard))),u.token=s.lazy(function(){return s.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=s.many1(s.lazy(function(){return u.token})),u},f={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,u){if(Array.isArray(p))return S(p,function(w){return c(w,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return d(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},l=function(p,u){return u==null&&(u=f.segmentValueCharset),"^"+c(p,u)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},m=function(p,u,w,A){var k,q,Q,at;if(A==null&&(A=!1),at=p[u],at==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(k=w[u]||0,q=Array.isArray(at)?at.length-1:0,k>q){if(A)throw new Error("too few values provided for key `"+u+"`");return}return Q=Array.isArray(at)?at[k]:at,A&&(w[u]=k+1),Q},o=function(p,u,w){var A,k;if(Array.isArray(p)){for(A=-1,k=p.length;++A<k;)if(o(p[A],u,w))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",w,!1)!=null;case"named":return m(u,p.value,w,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,w)}},N=function(p,u,w){if(Array.isArray(p))return S(p,function(A){return N(A,u,w)});switch(p.tag){case"wildcard":return m(u,"_",w,!0);case"named":return m(u,p.value,w,!0);case"static":return p.value;case"optional":return o(p.value,u,w)?N(p.value,u,w):""}},e=function(p,u){var w,A,k,q,Q;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,u!=null){if(!Array.isArray(u))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(w=P(this.regex),u.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(Q=p.replace(/\s+/g,""),Q!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:u?.escapeChar||f.escapeChar,segmentNameStartChar:u?.segmentNameStartChar||f.segmentNameStartChar,segmentNameCharset:u?.segmentNameCharset||f.segmentNameCharset,segmentValueCharset:u?.segmentValueCharset||f.segmentValueCharset,optionalSegmentStartChar:u?.optionalSegmentStartChar||f.optionalSegmentStartChar,optionalSegmentEndChar:u?.optionalSegmentEndChar||f.optionalSegmentEndChar,wildcardChar:u?.wildcardChar||f.wildcardChar},q=b(A),k=q.pattern(p),k==null)throw new Error("couldn't parse pattern");if(k.rest!=="")throw new Error("could only partially parse pattern");this.ast=k.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,w;return w=this.regex.exec(p),w==null?null:(u=w.slice(1),this.names?v(this.names,u):u)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return N(this.ast,p,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=v,e.P=s,e.newParser=b,e.defaultOptions=f,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=N,e})})(He,He.exports)),He.exports}var Ho=qo();const Vt=Vo(Ho),Wo=Rr,Ko=Uo,Yo=ds,Xo=ls,Xt=H,Zo=et,We=tt,Go=je,st=T,Qo=Ae,Jo=Vt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Wo,Arrays:Ko,DataBindObserver:Yo,Format:Xo,HTML:Xt,LocationHandler:Zo,Objects:We,PublisherProxy:Go,PublisherManager:st,api:Qo,URLPattern:Jo};var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Ke=(r,t,i,s)=>{for(var e=s>1?void 0:s?en(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&tn(t,i,e),e};const ti=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const s=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&s){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=s=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),s=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),s=="noneChecked"&&(this.checked=null),s=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(s){if(this.value==s||(this.hasAttribute("value")&&!this.forceAutoFill&&(s=this.getAttribute("value")),this._value==s)||s==null||(this._value=s,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==s?!0:null),Array.isArray(o)||(o=[]),o.indexOf(s)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(s){if(this.setCheckedValue(s),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,s.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(s){this._checked!=s&&(this._checked=s,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const s=this.checked===!0?this.radio?!0:null:!0;this.checked=s;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let s=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:s;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(s)||(s=[]);const e=s.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(s){if(this.unique||this.radio){this.checked=this.value==s?!0:null;return}Array.isArray(s)||(s=[]),!this.checksAll()&&(this.checked=s.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const s=this.formDataProvider,e=this.getAttribute("name");return!s||!e?null:st.get(s+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const s=this.getCheckAllPublisher();if(s&&(s.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=s.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),s.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ke([a()],t.prototype,"value",1),Ke([a()],t.prototype,"forceAutoFill",2),Ke([a({type:Boolean})],t.prototype,"unique",2),Ke([a({type:Boolean})],t.prototype,"radio",2),Ke([a()],t.prototype,"checked",1),t};/**
72
+ */const rr="important",Fo=" !"+rr,gt=Xt(class extends Se{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce(((t,i)=>{const s=r[i];return s==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(r,[t]){const{style:i}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in t){const e=t[s];if(e!=null){this.ft.add(s);const o=typeof e=="string"&&e.endsWith(Fo);s.includes("-")||o?i.setProperty(s,o?e.slice(0,-11):e,o?rr:""):i[s]=e}}return yt}});var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Dt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ro(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zo(t,i,e),e};const ws=new Map,Oe=r=>{class t extends r{constructor(...s){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(s){this.hasAttribute("name")&&!this.forceAutoFill&&(s=this.getAttribute("name")),this._name=s,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?T.get(this.formDataProvider):null}setFormPublisherValue(s){const e=this.getFormPublisher();e&&pt(e,this.name).set(s)}getFormPublisherValue(){const s=this.getFormPublisher();return s?pt(s,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(s){this.value=s}setFormValueFromPublisher(s){this.value=s}get value(){return this._value}set value(s){s==null&&(s=""),tt.isObject(s)&&Object.prototype.hasOwnProperty.call(s,"__value")&&s._value==null&&(s=""),this._value!=s&&(this._value=s,this.updateDataValue(),this.requestUpdate())}initPublisher(){let s=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&s&&pt(s,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&pt(this.publisher,this._name).onAssign(this.onValueAssign),s=this.getFormPublisher(),this._name&&s&&(pt(s,this._name).onAssign(this.onFormValueAssign),s.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(s){this.value=s.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const s=this.getAncestorAttributeValue("data-keyboard-nav");if(!s)return;const e=s.split(" "),o=e[0];if(!o)return;for(const l of e){ws.has(l)||ws.set(l,[]);const c=ws.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=ws.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=n?.filter(v=>{const b=v.shadowRoot?.querySelector(h);if(!b)return!1;const x=window.getComputedStyle(b);return x.display!=="none"&&x.display!==""&&x.pointerEvents!="none"&&x.visibility!=="hidden"&&b.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const v=u.indexOf(this);v==u.length-1?d=u[0]:d=u[v+1]}else if(c.key=="ArrowUp"&&u){const v=u.indexOf(this);v==0?d=u[u.length-1]:d=u[v-1]}const g=d?.shadowRoot?.querySelector(h);g&&g.focus&&(g.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign);const s=this.getFormPublisher();this._name&&s&&(pt(s,this._name).offAssign(this.onFormValueAssign),s.offFormInvalidate(this.onFormDataInValidate))}}return Dt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Dt([a({type:Boolean})],t.prototype,"error",2),Dt([a({type:Boolean})],t.prototype,"autofocus",2),Dt([a({type:Boolean})],t.prototype,"required",2),Dt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Dt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Dt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Dt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Dt([a()],t.prototype,"name",1),Dt([a()],t.prototype,"value",1),t};let Uo=class we{static areEqual(t,i){return t.length===i.length?t.every((s,e)=>s===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(s=>i=i.concat(s)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const s=(t[0]||{})[i];return t.every(e=>(e||{})[i]==s)}})})}),value:()=>({forKey:i=>we.from(t.map(s=>s[i]))}),copy:()=>({fromKey:i=>({toKey:s=>{t.forEach(e=>{e[s]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>we.from(t.map(i)),filter:i=>we.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const s=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=s.length;e.set(n,l);const c={items:[]};c[i]=n,s.push(c)}s[e.get(n)].items.push(o)}return we.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(t.map(e=>e[i]))];return we.from(s.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>{const e=(o,n)=>l=>o[n]!=l[n];return we.from(t.filter(o=>i.every(e(o,s))))}})})})}}};function Vo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var He={exports:{}},Bo=He.exports,or;function qo(){return or||(or=1,(function(r,t){var i=[].slice;(function(s,e){return t!==null?r.exports=e():s.UrlPattern=e()})(Bo,function(){var s,e,o,n,l,c,h,u,d,g,v,b,x,C,N;return d=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,f){var w,A,k;for(k=[],w=-1,A=p.length;++w<A;)k=k.concat(f(p[w]));return k},C=function(p,f){var w,A,k;for(k="",w=-1,A=p.length;++w<A;)k+=f(p[w]);return k},x=function(p){return new RegExp(p.toString()+"|").exec("").length-1},v=function(p,f){var w,A,k,q,Q;for(q={},w=-1,k=p.length;++w<k;)A=p[w],Q=f[w],Q!=null&&(q[A]!=null?(Array.isArray(q[A])||(q[A]=[q[A]]),q[A].push(Q)):q[A]=Q);return q},s={},s.Result=function(p,f){this.value=p,this.rest=f},s.Tagged=function(p,f){this.tag=p,this.value=f},s.tag=function(p,f){return function(w){var A,k;if(A=f(w),A!=null)return k=new s.Tagged(p,A.value),new s.Result(k,A.rest)}},s.regex=function(p){return function(f){var w,A;if(w=p.exec(f),w!=null)return A=w[0],new s.Result(A,f.slice(A.length))}},s.sequence=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var w,A,k,q,Q,at;for(w=-1,A=p.length,at=[],q=f;++w<A;){if(k=p[w],Q=k(q),Q==null)return;at.push(Q.value),q=Q.rest}return new s.Result(at,q)}},s.pick=function(){var p,f;return p=arguments[0],f=2<=arguments.length?i.call(arguments,1):[],function(w){var A,k;if(k=s.sequence.apply(s,f)(w),k!=null)return A=k.value,k.value=A[p],k}},s.string=function(p){var f;return f=p.length,function(w){if(w.slice(0,f)===p)return new s.Result(p,w.slice(f))}},s.lazy=function(p){var f;return f=null,function(w){return f==null&&(f=p()),f(w)}},s.baseMany=function(p,f,w,A,k){var q,Q,at,as;for(at=k,as=w?"":[];!(f!=null&&(q=f(at),q!=null)||(Q=p(at),Q==null));)w?as+=Q.value:as.push(Q.value),at=Q.rest;if(!(A&&as.length===0))return new s.Result(as,at)},s.many1=function(p){return function(f){return s.baseMany(p,null,!1,!0,f)}},s.concatMany1Till=function(p,f){return function(w){return s.baseMany(p,f,!0,!0,w)}},s.firstChoice=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var w,A,k,q;for(w=-1,A=p.length;++w<A;)if(k=p[w],q=k(f),q!=null)return q}},b=function(p){var f;return f={},f.wildcard=s.tag("wildcard",s.string(p.wildcardChar)),f.optional=s.tag("optional",s.pick(1,s.string(p.optionalSegmentStartChar),s.lazy(function(){return f.pattern}),s.string(p.optionalSegmentEndChar))),f.name=s.regex(new RegExp("^["+p.segmentNameCharset+"]+")),f.named=s.tag("named",s.pick(1,s.string(p.segmentNameStartChar),s.lazy(function(){return f.name}))),f.escapedChar=s.pick(1,s.string(p.escapeChar),s.regex(/^./)),f.static=s.tag("static",s.concatMany1Till(s.firstChoice(s.lazy(function(){return f.escapedChar}),s.regex(/^./)),s.firstChoice(s.string(p.segmentNameStartChar),s.string(p.optionalSegmentStartChar),s.string(p.optionalSegmentEndChar),f.wildcard))),f.token=s.lazy(function(){return s.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=s.many1(s.lazy(function(){return f.token})),f},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,f){if(Array.isArray(p))return C(p,function(w){return c(w,f)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return d(p.value);case"optional":return"(?:"+c(p.value,f)+")?"}},l=function(p,f){return f==null&&(f=u.segmentValueCharset),"^"+c(p,f)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},g=function(p,f,w,A){var k,q,Q,at;if(A==null&&(A=!1),at=p[f],at==null){if(A)throw new Error("no values provided for key `"+f+"`");return}if(k=w[f]||0,q=Array.isArray(at)?at.length-1:0,k>q){if(A)throw new Error("too few values provided for key `"+f+"`");return}return Q=Array.isArray(at)?at[k]:at,A&&(w[f]=k+1),Q},o=function(p,f,w){var A,k;if(Array.isArray(p)){for(A=-1,k=p.length;++A<k;)if(o(p[A],f,w))return!0;return!1}switch(p.tag){case"wildcard":return g(f,"_",w,!1)!=null;case"named":return g(f,p.value,w,!1)!=null;case"static":return!1;case"optional":return o(p.value,f,w)}},N=function(p,f,w){if(Array.isArray(p))return C(p,function(A){return N(A,f,w)});switch(p.tag){case"wildcard":return g(f,"_",w,!0);case"named":return g(f,p.value,w,!0);case"static":return p.value;case"optional":return o(p.value,f,w)?N(p.value,f,w):""}},e=function(p,f){var w,A,k,q,Q;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,f!=null){if(!Array.isArray(f))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(w=x(this.regex),f.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+f.length);this.names=f}return}if(p==="")throw new Error("argument must not be the empty string");if(Q=p.replace(/\s+/g,""),Q!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:f?.escapeChar||u.escapeChar,segmentNameStartChar:f?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:f?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:f?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:f?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:f?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:f?.wildcardChar||u.wildcardChar},q=b(A),k=q.pattern(p),k==null)throw new Error("couldn't parse pattern");if(k.rest!=="")throw new Error("could only partially parse pattern");this.ast=k.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var f,w;return w=this.regex.exec(p),w==null?null:(f=w.slice(1),this.names?v(this.names,f):f)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return N(this.ast,p,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=C,e.regexGroupCount=x,e.keysAndValuesToObject=v,e.P=s,e.newParser=b,e.defaultOptions=u,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=N,e})})(He,He.exports)),He.exports}var Ho=qo();const Vt=Vo(Ho),Wo=Rr,Ko=Uo,Yo=ds,Xo=ls,Zt=H,Zo=et,We=tt,Go=je,st=T,Qo=Ae,Jo=Vt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Wo,Arrays:Ko,DataBindObserver:Yo,Format:Xo,HTML:Zt,LocationHandler:Zo,Objects:We,PublisherProxy:Go,PublisherManager:st,api:Qo,URLPattern:Jo};var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Ke=(r,t,i,s)=>{for(var e=s>1?void 0:s?en(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&tn(t,i,e),e};const ti=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const s=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&s){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=s=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),s=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),s=="noneChecked"&&(this.checked=null),s=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(s){if(this.value==s||(this.hasAttribute("value")&&!this.forceAutoFill&&(s=this.getAttribute("value")),this._value==s)||s==null||(this._value=s,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==s?!0:null),Array.isArray(o)||(o=[]),o.indexOf(s)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(s){if(this.setCheckedValue(s),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,s.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(s){this._checked!=s&&(this._checked=s,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const s=this.checked===!0?this.radio?!0:null:!0;this.checked=s;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let s=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:s;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(s)||(s=[]);const e=s.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(s){if(this.unique||this.radio){this.checked=this.value==s?!0:null;return}Array.isArray(s)||(s=[]),!this.checksAll()&&(this.checked=s.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const s=this.formDataProvider,e=this.getAttribute("name");return!s||!e?null:st.get(s+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const s=this.getCheckAllPublisher();if(s&&(s.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=s.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),s.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ke([a()],t.prototype,"value",1),Ke([a()],t.prototype,"forceAutoFill",2),Ke([a({type:Boolean})],t.prototype,"unique",2),Ke([a({type:Boolean})],t.prototype,"radio",2),Ke([a()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
- */const $=r=>r??C,Lt=x`
76
+ */const $=r=>r??S,Lt=P`
77
77
  /*SIZES*/
78
78
  :host {
79
79
  --sc-_fs: 1rem;
@@ -106,11 +106,11 @@
106
106
  :host([size="inherit"]) {
107
107
  --sc-_fs: 1em;
108
108
  }
109
- `;var sn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,V=(r,t,i,s)=>{for(var e=s>1?void 0:s?rn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sn(t,i,e),e};const on="sonic-button";let I=class extends ti(Oe(X(y))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?et.onChange(this):et.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),et.changeFromComponent(this)}handleChange(r){if(!(r?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r?.preventDefault(),r?.stopPropagation(),et.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),i=t?st.get(t):this.getFormPublisher();i&&i.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&et.updateComponentActiveState(this),r.has("location")&&et.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
109
+ `;var sn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,V=(r,t,i,s)=>{for(var e=s>1?void 0:s?rn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sn(t,i,e),e};const on="sonic-button";let I=class extends ti(Oe(X(y))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?et.onChange(this):et.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),et.changeFromComponent(this)}handleChange(r){if(!(r?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r?.preventDefault(),r?.stopPropagation(),et.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),i=t?st.get(t):this.getFormPublisher();i&&i.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&et.updateComponentActiveState(this),r.has("location")&&et.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=m`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${mt(r)}
113
+ style=${gt(r)}
114
114
  aria-controls=${$(this.ariaControls)}
115
115
  aria-expanded=${$(this.sonicAriaExpanded)}
116
116
  aria-label=${$(this.ariaLabel)}
@@ -130,9 +130,9 @@
130
130
  part="suffix"
131
131
  name="suffix"
132
132
  ></slot>
133
- ${this.loading==!0?g`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}
133
+ ${this.loading==!0?m`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}
134
134
  </button>
135
- `;return this.href?g`<a
135
+ `;return this.href?m`<a
136
136
  href="${this.href}"
137
137
  download=${$(this.download)}
138
138
  target=${$(this.target)}
@@ -140,7 +140,7 @@
140
140
  aria-labelledby=${$(this.ariaLabelledby)}
141
141
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
142
142
  >${t}</a
143
- >`:g`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};I.styles=[Lt,x`
143
+ >`:m`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};I.styles=[Lt,P`
144
144
  * {
145
145
  box-sizing: border-box;
146
146
  }
@@ -510,7 +510,7 @@
510
510
  * @license
511
511
  * Copyright 2017 Google LLC
512
512
  * SPDX-License-Identifier: BSD-3-Clause
513
- */const nr=(r,t,i)=>{const s=new Map;for(let e=t;e<=i;e++)s.set(r[e],e);return s},_s=Yt(class extends Se{constructor(r){if(super(r),r.type!==ce.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,i){let s;i===void 0?i=t:t!==void 0&&(s=t);const e=[],o=[];let n=0;for(const l of r)e[n]=s?s(l,n):n,o[n]=i(l,n),n++;return{values:o,keys:e}}render(r,t,i){return this.dt(r,t,i).values}update(r,[t,i,s]){const e=vo(r),{values:o,keys:n}=this.dt(t,i,s);if(!Array.isArray(e))return this.ut=n,o;const l=this.ut??=[],c=[];let h,f,d=0,m=e.length-1,v=0,b=o.length-1;for(;d<=m&&v<=b;)if(e[d]===null)d++;else if(e[m]===null)m--;else if(l[d]===n[v])c[v]=le(e[d],o[v]),d++,v++;else if(l[m]===n[b])c[b]=le(e[m],o[b]),m--,b--;else if(l[d]===n[b])c[b]=le(e[d],o[b]),Ve(r,c[b+1],e[d]),d++,b--;else if(l[m]===n[v])c[v]=le(e[m],o[v]),Ve(r,e[d],e[m]),m--,v++;else if(h===void 0&&(h=nr(n,v,b),f=nr(l,d,m)),h.has(l[d]))if(h.has(l[m])){const P=f.get(n[v]),S=P!==void 0?e[P]:null;if(S===null){const N=Ve(r,e[d]);le(N,o[v]),c[v]=N}else c[v]=le(S,o[v]),Ve(r,e[d],S),e[P]=null;v++}else Ys(e[m]),m--;else Ys(e[d]),d++;for(;v<=b;){const P=Ve(r,c[b+1]);le(P,o[v]),c[v++]=P}for(;d<=m;){const P=e[d++];P!==null&&Ys(P)}return this.ut=n,bo(r,c),vt}}),nn=new WeakMap;let ar=0;const ei=new Map,lr=new WeakSet,cr=()=>new Promise((r=>requestAnimationFrame(r))),hr=(r,t)=>{const i=r-t;return i===0?void 0:i},dr=(r,t)=>{const i=r/t;return i===1?void 0:i},si={left:(r,t)=>{const i=hr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(r,t)=>{const i=hr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(r,t)=>{let i;t===0&&(t=1,i={width:"1px"});const s=dr(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(r,t)=>{let i;t===0&&(t=1,i={height:"1px"});const s=dr(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},an={duration:333,easing:"ease-in-out"},ln=["left","top","width","height","opacity","color","background"],pr=new WeakMap;class cn extends Xs{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===ce.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){this.l?.(),this.l=void 0}render(t){return C}getController(){return nn.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const s=this.u===void 0;return s&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((e=>this.t=!0)),this.element=t.element,pr.set(this.element,this)),this.optionsOrCallback=i,(s||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=ln,this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const o=i[e]??(si[e]?void 0:s[e]),n=Number(o);t[e]=isNaN(n)?o+"":n})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((s,e)=>{if(Array.isArray(s)){if(Array.isArray(e)&&e.length===s.length&&s.every(((o,n)=>o===e[n])))return!1}else if(e===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await cr;const i=this.O(),s=this.j(this.options.keyframeOptions,i),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,i);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=ei.get(this.options.inId);if(o){ei.delete(this.options.inId);const{from:n,to:l}=this.N(o,e,i);t=this.calculateKeyframes(n,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,ar++,t.forEach((c=>c.zIndex=ar))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&ei.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await cr(),this.i?.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const s=this.m();this.log("stabilizing out");const e=this.A.left-s.left,o=this.A.top-s.top;getComputedStyle(this.element).position!=="static"||e===0&&o===0||(this.element.style.position="relative"),e!==0&&(this.element.style.left=e+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){this.options.onStart?.(this)}didFinish(t){t&&this.options.onComplete?.(this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i?.parentNode){const s=pr.get(i);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=lr.has(this.u);return t||this.u.updateComplete.then((()=>{lr.add(this.u)})),t}j(t,i=this.O()){const s={...an};return i.forEach((e=>Object.assign(s,e.options.keyframeOptions))),Object.assign(s,t),s}N(t,i,s){t={...t},i={...i};const e=s.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let o=1,n=1;return e.length>0&&(e.forEach((l=>{l.width&&(o/=l.width),l.height&&(n/=l.height)})),t.left!==void 0&&i.left!==void 0&&(t.left=o*t.left,i.left=o*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=n*t.top,i.top=n*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){const e={},o={};let n=!1;const l={};for(const c in i){const h=t[c],f=i[c];if(c in si){const d=si[c];if(h===void 0||f===void 0)continue;const m=d(h,f);m.transform!==void 0&&(l[c]=m.value,n=!0,e.transform=`${e.transform??""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(e,m.overrideFrom))}else h!==f&&h!==void 0&&f!==void 0&&(n=!0,e[c]=h,o[c]=f)}return e.transformOrigin=o.transformOrigin=s?"center center":"top left",this.animatingProperties=l,n?[e,o]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished}catch{}e?.remove(this)}return this.didFinish(s),s}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const hn=Yt(cn),dn={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
513
+ */const nr=(r,t,i)=>{const s=new Map;for(let e=t;e<=i;e++)s.set(r[e],e);return s},_s=Xt(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,i){let s;i===void 0?i=t:t!==void 0&&(s=t);const e=[],o=[];let n=0;for(const l of r)e[n]=s?s(l,n):n,o[n]=i(l,n),n++;return{values:o,keys:e}}render(r,t,i){return this.dt(r,t,i).values}update(r,[t,i,s]){const e=vo(r),{values:o,keys:n}=this.dt(t,i,s);if(!Array.isArray(e))return this.ut=n,o;const l=this.ut??=[],c=[];let h,u,d=0,g=e.length-1,v=0,b=o.length-1;for(;d<=g&&v<=b;)if(e[d]===null)d++;else if(e[g]===null)g--;else if(l[d]===n[v])c[v]=ce(e[d],o[v]),d++,v++;else if(l[g]===n[b])c[b]=ce(e[g],o[b]),g--,b--;else if(l[d]===n[b])c[b]=ce(e[d],o[b]),Ve(r,c[b+1],e[d]),d++,b--;else if(l[g]===n[v])c[v]=ce(e[g],o[v]),Ve(r,e[d],e[g]),g--,v++;else if(h===void 0&&(h=nr(n,v,b),u=nr(l,d,g)),h.has(l[d]))if(h.has(l[g])){const x=u.get(n[v]),C=x!==void 0?e[x]:null;if(C===null){const N=Ve(r,e[d]);ce(N,o[v]),c[v]=N}else c[v]=ce(C,o[v]),Ve(r,e[d],C),e[x]=null;v++}else Ys(e[g]),g--;else Ys(e[d]),d++;for(;v<=b;){const x=Ve(r,c[b+1]);ce(x,o[v]),c[v++]=x}for(;d<=g;){const x=e[d++];x!==null&&Ys(x)}return this.ut=n,bo(r,c),yt}}),nn=new WeakMap;let ar=0;const ei=new Map,lr=new WeakSet,cr=()=>new Promise((r=>requestAnimationFrame(r))),hr=(r,t)=>{const i=r-t;return i===0?void 0:i},dr=(r,t)=>{const i=r/t;return i===1?void 0:i},si={left:(r,t)=>{const i=hr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(r,t)=>{const i=hr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(r,t)=>{let i;t===0&&(t=1,i={width:"1px"});const s=dr(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(r,t)=>{let i;t===0&&(t=1,i={height:"1px"});const s=dr(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},an={duration:333,easing:"ease-in-out"},ln=["left","top","width","height","opacity","color","background"],pr=new WeakMap;class cn extends Xs{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===he.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){this.l?.(),this.l=void 0}render(t){return S}getController(){return nn.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const s=this.u===void 0;return s&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((e=>this.t=!0)),this.element=t.element,pr.set(this.element,this)),this.optionsOrCallback=i,(s||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=ln,this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const o=i[e]??(si[e]?void 0:s[e]),n=Number(o);t[e]=isNaN(n)?o+"":n})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((s,e)=>{if(Array.isArray(s)){if(Array.isArray(e)&&e.length===s.length&&s.every(((o,n)=>o===e[n])))return!1}else if(e===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await cr;const i=this.O(),s=this.j(this.options.keyframeOptions,i),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,i);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=ei.get(this.options.inId);if(o){ei.delete(this.options.inId);const{from:n,to:l}=this.N(o,e,i);t=this.calculateKeyframes(n,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,ar++,t.forEach((c=>c.zIndex=ar))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&ei.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await cr(),this.i?.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const s=this.m();this.log("stabilizing out");const e=this.A.left-s.left,o=this.A.top-s.top;getComputedStyle(this.element).position!=="static"||e===0&&o===0||(this.element.style.position="relative"),e!==0&&(this.element.style.left=e+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){this.options.onStart?.(this)}didFinish(t){t&&this.options.onComplete?.(this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i?.parentNode){const s=pr.get(i);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=lr.has(this.u);return t||this.u.updateComplete.then((()=>{lr.add(this.u)})),t}j(t,i=this.O()){const s={...an};return i.forEach((e=>Object.assign(s,e.options.keyframeOptions))),Object.assign(s,t),s}N(t,i,s){t={...t},i={...i};const e=s.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let o=1,n=1;return e.length>0&&(e.forEach((l=>{l.width&&(o/=l.width),l.height&&(n/=l.height)})),t.left!==void 0&&i.left!==void 0&&(t.left=o*t.left,i.left=o*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=n*t.top,i.top=n*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){const e={},o={};let n=!1;const l={};for(const c in i){const h=t[c],u=i[c];if(c in si){const d=si[c];if(h===void 0||u===void 0)continue;const g=d(h,u);g.transform!==void 0&&(l[c]=g.value,n=!0,e.transform=`${e.transform??""} ${g.transform}`,g.overrideFrom!==void 0&&Object.assign(e,g.overrideFrom))}else h!==u&&h!==void 0&&u!==void 0&&(n=!0,e[c]=h,o[c]=u)}return e.transformOrigin=o.transformOrigin=s?"center center":"top left",this.animatingProperties=l,n?[e,o]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished}catch{}e?.remove(this)}return this.didFinish(s),s}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const hn=Xt(cn),dn={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
514
514
  <path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
515
515
  </svg>
516
516
  `,"check-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -546,7 +546,7 @@
546
546
  <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
547
547
  <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
548
548
  </svg>
549
- `}},xs=new Map,Ps={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let ur=!1;function pn(){ur||(ur=!0,Ps.custom.url=document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath")||"",Ps.custom.defaultPrefix=document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")||"")}const fr=sessionStorage.getItem("sonicIconsCache"),Zt=fr?JSON.parse(fr):{icons:{},names:[]},un=100,Ni=class Ni{};Ni.default={get:async t=>{const i=t.library;if(!t.name)return"";const s=t.name,e=dn;if(i=="custom"&&pn(),i&&i in Ps){const o=Ps[i],n=t.prefix||o.defaultPrefix||"",l=e[i]||{};e[i]=l;const c=n+"-"+s;if(l[c])return F(l[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",s);if(Zt.icons[h])return l[c]=Zt.icons[h],F(Zt.icons[h]);if(!xs.has(h)){const d=new Promise(async m=>{try{const v=await fetch(h);if(!v.ok){m(`<b title="Erreur ${v.status}">😶</b>`);return}try{const b=await v.text();m(b)}catch{m(null)}}catch{Oo(),m(null)}});xs.set(h,d)}const f=await xs.get(h);if(xs.delete(h),l[c]=f||"",Zt.icons[h]=f||"",Zt.names.length>un){const d=Zt.names.shift();delete Zt.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Zt)),F(f)}return F(e.core[t.name]||"")}};let ii=Ni;var fn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,Ye=(r,t,i,s)=>{for(var e=s>1?void 0:s?gn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&fn(t,i,e),e};const mn="sonic-icon";let he=class extends y{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await ii.default.get({name:this.name,prefix:this.prefix,library:this.library})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:C}};he.styles=x`
549
+ `}},xs=new Map,Ps={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let ur=!1;function pn(){ur||(ur=!0,Ps.custom.url=document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath")||"",Ps.custom.defaultPrefix=document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")||"")}const fr=sessionStorage.getItem("sonicIconsCache"),Bt=fr?JSON.parse(fr):{icons:{},names:[]},un=100,Ni=class Ni{};Ni.default={get:async t=>{const i=t.library;if(!t.name)return"";const s=t.name,e=dn;if(i=="custom"&&pn(),i&&i in Ps){const o=Ps[i],n=t.prefix||o.defaultPrefix||"",l=e[i]||{};e[i]=l;const c=n+"-"+s;if(l[c])return F(l[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",s);if(Bt.icons[h]){const d=Bt.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,F(d);delete Bt.icons[h]}if(!xs.has(h)){const d=new Promise(async g=>{try{const v=await fetch(h);if(!v.ok){g("");return}try{const b=v.headers.get("content-type")||"";if(!b.includes("image/svg+xml")&&!b.includes("svg")){g("");return}const x=await v.text(),C=/^\s*<svg[\s>]/i.test(x);g(C?x:"")}catch{g("")}}catch{Oo(),g("")}});xs.set(h,d)}const u=await xs.get(h);if(xs.delete(h),l[c]=u||"",u&&/^\s*<svg[\s>]/i.test(u)&&(Bt.icons[h]=u,Bt.names.push(h)),Bt.names.length>un){const d=Bt.names.shift();delete Bt.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Bt)),u?F(u):""}return F(e.core[t.name]||"")}};let ii=Ni;var fn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,Ye=(r,t,i,s)=>{for(var e=s>1?void 0:s?mn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&fn(t,i,e),e};const gn="sonic-icon";let de=class extends y{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await ii.default.get({name:this.name,prefix:this.prefix,library:this.library})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:S}};de.styles=P`
550
550
  :host {
551
551
  line-height: 0.1em;
552
552
  width: fit-content;
@@ -596,7 +596,7 @@
596
596
  :host([size="3xl"]) svg {
597
597
  --_sc-icon-size: 2.8em;
598
598
  }
599
- `,Ye([D()],he.prototype,"iconText",2),Ye([a({type:String})],he.prototype,"name",2),Ye([a({type:String})],he.prototype,"prefix",2),Ye([a({type:String})],he.prototype,"library",2),he=Ye([_(mn)],he);const Xe=x`
599
+ `,Ye([D()],de.prototype,"iconText",2),Ye([a({type:String})],de.prototype,"name",2),Ye([a({type:String})],de.prototype,"prefix",2),Ye([a({type:String})],de.prototype,"library",2),de=Ye([_(gn)],de);const Xe=P`
600
600
  .custom-scroll {
601
601
  overflow: auto !important;
602
602
  overflow-y: overlay !important;
@@ -618,7 +618,7 @@
618
618
  border: solid 0.15rem transparent;
619
619
  }
620
620
  }
621
- `;var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Et=(r,t,i,s)=>{for(var e=s>1?void 0:s?vn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&bn(t,i,e),e};const yn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},wn="sonic-toast-item";let _t=class extends y{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return this.visible?g`<div
621
+ `;var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Et=(r,t,i,s)=>{for(var e=s>1?void 0:s?vn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&bn(t,i,e),e};const yn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},wn="sonic-toast-item";let _t=class extends y{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return S}return this.visible?m`<div
622
622
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
623
623
  >
624
624
  <button
@@ -632,21 +632,21 @@
632
632
  class="sonic-toast-content custom-scroll"
633
633
  style="max-height: ${this.maxHeight} ;"
634
634
  >
635
- ${this.status&&g`<sonic-icon
635
+ ${this.status&&m`<sonic-icon
636
636
  name=${yn[this.status]}
637
637
  class="sonic-toast-icon"
638
638
  size="2xl"
639
639
  ></sonic-icon>`}
640
640
 
641
641
  <div class="sonic-toast-text">
642
- ${this.title?g`<div class="sonic-toast-title">${this.title}</div>`:""}
642
+ ${this.title?m`<div class="sonic-toast-title">${this.title}</div>`:""}
643
643
  ${this.text?F(this.text):""}
644
644
  <slot></slot>
645
645
  </div>
646
646
 
647
647
  ${this.preserve?"":this.autoHide()}
648
648
  </div>
649
- </div>`:C}hide(){if(Xt.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};_t.styles=[Xe,x`
649
+ </div>`:S}hide(){if(Zt.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};_t.styles=[Xe,P`
650
650
  * {
651
651
  box-sizing: border-box;
652
652
  }
@@ -826,7 +826,7 @@
826
826
  opacity: 0.85;
827
827
  pointer-events: none;
828
828
  }
829
- `],Et([a({type:String})],_t.prototype,"title",2),Et([a({type:String})],_t.prototype,"id",2),Et([a({type:String})],_t.prototype,"text",2),Et([a({type:String})],_t.prototype,"status",2),Et([a({type:Boolean})],_t.prototype,"ghost",2),Et([a({type:Boolean})],_t.prototype,"preserve",2),Et([a({type:Boolean})],_t.prototype,"dismissForever",2),Et([a({type:String})],_t.prototype,"maxHeight",2),Et([D()],_t.prototype,"visible",2),_t=Et([_(wn)],_t);const _n=x`
829
+ `],Et([a({type:String})],_t.prototype,"title",2),Et([a({type:String})],_t.prototype,"id",2),Et([a({type:String})],_t.prototype,"text",2),Et([a({type:String})],_t.prototype,"status",2),Et([a({type:Boolean})],_t.prototype,"ghost",2),Et([a({type:Boolean})],_t.prototype,"preserve",2),Et([a({type:Boolean})],_t.prototype,"dismissForever",2),Et([a({type:String})],_t.prototype,"maxHeight",2),Et([D()],_t.prototype,"visible",2),_t=Et([_(wn)],_t);const _n=P`
830
830
  :host {
831
831
  /* POLICES */
832
832
  /*
@@ -897,7 +897,7 @@
897
897
  --sc-contrast-content: #fff;
898
898
  --sc-contrast: #000000;
899
899
  }
900
- `,xn=x`
900
+ `,xn=P`
901
901
  :host([theme="light"]) {
902
902
  /*Boutons*/
903
903
  --sc-primary: var(--sc-base-800);
@@ -926,7 +926,7 @@
926
926
  --sc-base-900: #0f172a;
927
927
  --sc-base-content: var(--sc-base-700);
928
928
  }
929
- `,gr=x`
929
+ `,mr=P`
930
930
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
931
931
  --sc-info: var(--sc-dark-info, #3abff8);
932
932
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -951,17 +951,17 @@
951
951
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
952
952
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
953
953
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
954
- `,Pn=x`
954
+ `,Pn=P`
955
955
  :host([theme="dark"]) {
956
- ${gr}
956
+ ${mr}
957
957
  }
958
958
 
959
959
  @media (prefers-color-scheme: dark) {
960
960
  :host([theme="auto"]) {
961
- ${gr}
961
+ ${mr}
962
962
  }
963
963
  }
964
- `;var $n=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,Ze=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&$n(t,i,e),e};const Sn="sonic-theme";let yt=class extends y{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,yt.instance=this}static getPopContainer(){return yt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const r=document.styleSheets,t=r.length,i=[];for(let e=0;e<t;e++){const o=r[e];o.href&&(o.href.includes("googleapis")||o.href.includes("typekit.net"))&&i.push(o.href)}const s={variables:this.getCssVariables(),fonts:i};st.get("sonic-theme")?.set(s),document.querySelectorAll("iframe").forEach(e=>e.contentWindow?.postMessage({type:"SonicTheme",...s},"*"))}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...yt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const l=n.style;for(const c of l)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),s={};return r.forEach(e=>s[e]=i.getPropertyValue(e)),s}render(){return g`<slot></slot>`}};yt.styles=[xn,Pn,_n,x`
964
+ `;var $n=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,Ze=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&$n(t,i,e),e};const Sn="sonic-theme";let wt=class extends y{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,wt.instance=this}static getPopContainer(){return wt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const r=document.styleSheets,t=r.length,i=[];for(let e=0;e<t;e++){const o=r[e];o.href&&(o.href.includes("googleapis")||o.href.includes("typekit.net"))&&i.push(o.href)}const s={variables:this.getCssVariables(),fonts:i};st.get("sonic-theme")?.set(s),document.querySelectorAll("iframe").forEach(e=>e.contentWindow?.postMessage({type:"SonicTheme",...s},"*"))}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...wt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const l=n.style;for(const c of l)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),s={};return r.forEach(e=>s[e]=i.getPropertyValue(e)),s}render(){return m`<slot></slot>`}};wt.styles=[xn,Pn,_n,P`
965
965
  :host([color]) {
966
966
  color: var(--sc-base-content, #000);
967
967
  }
@@ -993,8 +993,8 @@
993
993
  transition-property: scale, opacity;
994
994
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
995
995
  }
996
- `],Ze([a({type:String,reflect:!0})],yt.prototype,"theme",2),Ze([a({type:Boolean,reflect:!0})],yt.prototype,"background",2),Ze([a({type:Boolean,reflect:!0})],yt.prototype,"color",2),Ze([a({type:Boolean,reflect:!0})],yt.prototype,"font",2),yt=Ze([_(Sn)],yt);var An=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,mr=(r,t,i,s)=>{for(var e=s>1?void 0:s?kn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&An(t,i,e),e};const On="sonic-toast";let O=class extends y{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),O.handleExistingToastDelegation(),this.toasts?g`<div aria-live="polite" style=${mt(i)}>
997
- ${_s(this.toasts,s=>s.id,s=>g`
996
+ `],Ze([a({type:String,reflect:!0})],wt.prototype,"theme",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"background",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"color",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"font",2),wt=Ze([_(Sn)],wt);var An=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,gr=(r,t,i,s)=>{for(var e=s>1?void 0:s?kn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&An(t,i,e),e};const On="sonic-toast";let O=class extends y{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),O.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${gt(i)}>
997
+ ${_s(this.toasts,s=>s.id,s=>m`
998
998
  <sonic-toast-item
999
999
  maxHeight=${t?"none":"10rem"}
1000
1000
  status=${$(s.status)}
@@ -1010,22 +1010,22 @@
1010
1010
  ${s.text?F(s.text):""}
1011
1011
  </sonic-toast-item>
1012
1012
  `)}
1013
- </div>`:C}static removeAll(){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=O.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.ghost))}static removeItemsByStatus(t){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const i=O.getInstance();i&&(i.toasts=i.toasts.filter(s=>s.status!==t))}static removeTemporaryItems(){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=O.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.preserve))}static getInstance(){return O.instance||(O.instance=document.createElement("sonic-toast"),yt.getPopContainer().prepend(O.instance)),O.instance}static add(t){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const i=O.getInstance(),s=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:s,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(i?.toasts.length){const l={...n};for(const c of i.toasts){const h={...c};if(l.id=h.id=0,tt.shallowEqual(l,h))return null}}return i&&(i.toasts=[...i.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=O.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const i=O.getInstance();i&&i.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(i=>(i={...i},delete i.id,!tt.shallowEqual(i,t,!1))))}};O.delegateToasts=!1,mr([a({type:Array})],O.prototype,"toasts",2),O=mr([_(On)],O),typeof window<"u"&&(window[cs+"Toast"]=window[cs+"Toast"]||O);function Dn(){const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="removeItemsByStatus"&&O.removeItemsByStatus(i.data.status),i.data.type=="removeTemporaryItems"&&O.removeTemporaryItems(),i.data.type=="sonicToastAvailable"&&(O.delegateToasts=!0,O.handleExistingToastDelegation()),i.data.type=="addToasts"&&(O.getInstance().toasts=[...O.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&O.removeAll(),i.data.type=="removeToast"&&O.removeItem(i.data.toast),i.data.type=="addToast"&&O.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))i.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}Dn();var Ln=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Ge=(r,t,i,s)=>{for(var e=s>1?void 0:s?En(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ln(t,i,e),e};const Nn=new Set,Tn=new Set,Mn=r=>{for(const t of Tn)t(r)},ri=new Set;let oi=0;js(async()=>{oi++;const r=oi,t=Array.from(ri);for(;t.length>0;){if(r!=oi)return;const i=t.splice(0,4);await Promise.all(i.map(s=>s._fetchData()))}});const ni=(r,t)=>{class i extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ae(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await st.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,tt.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Nn.add(this),Mn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&O.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,l=this.key.split(".");o=tt.traverse(o,l,this.hasAttribute("preserveOtherKeys")),o&&tt.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){super.disconnectedCallback(),ri.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),ri.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),o={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),o);let l=[...(this.shadowRoot?this.shadowRoot:this).children].filter(c=>c.nodeName.toLowerCase()!="style")[0];if(l?.nodeName.toLocaleLowerCase()=="slot"&&(l=[...l.children].filter(c=>c.nodeName.toLowerCase()!="style")[0]),!l||l.nodeName.toLocaleLowerCase()=="template"){l=document.createElement("div");const c=l.style;c.pointerEvents="none",c.width="1px",c.height="1px",this.lazyLoadPlaceHolder=l,this.appendChild(l)}l?this.iObserver.observe(l):this.isFirstLoad&&this._fetchData()}onIntersection(e){for(const o of e)if(o.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return Ge([a()],i.prototype,"noErrorsRecordings",2),Ge([a()],i.prototype,"props",1),Ge([a({type:String})],i.prototype,"endPoint",1),Ge([a()],i.prototype,"requestId",2),Ge([a({type:Number})],i.prototype,"refetchEveryMs",2),i};var In=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,de=(r,t,i,s)=>{for(var e=s>1?void 0:s?jn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&In(t,i,e),e};const $s=r=>{class t extends r{constructor(...s){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),s.reportValidity()}set type(s){this.hasAttribute("type")&&!this.forceAutoFill&&(s=this.getAttribute("type")),this._type=s,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}}return de([a()],t.prototype,"forceAutoFill",2),de([a({type:String})],t.prototype,"type",1),de([a()],t.prototype,"description",1),de([a()],t.prototype,"label",1),de([a({type:String,reflect:!0})],t.prototype,"status",2),de([a({type:Number})],t.prototype,"tabindex",2),de([a({type:String})],t.prototype,"autocomplete",2),t},br=ni,Fn=ti,vr=Oe,yr=$s,Gt=X,ai=qe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:br,FormCheckable:Fn,FormElement:vr,FormInput:yr,Subscriber:Gt,TemplatesContainer:ai};/**
1013
+ </div>`:S}static removeAll(){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=O.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.ghost))}static removeItemsByStatus(t){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const i=O.getInstance();i&&(i.toasts=i.toasts.filter(s=>s.status!==t))}static removeTemporaryItems(){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=O.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.preserve))}static getInstance(){return O.instance||(O.instance=document.createElement("sonic-toast"),wt.getPopContainer().prepend(O.instance)),O.instance}static add(t){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const i=O.getInstance(),s=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:s,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(i?.toasts.length){const l={...n};for(const c of i.toasts){const h={...c};if(l.id=h.id=0,tt.shallowEqual(l,h))return null}}return i&&(i.toasts=[...i.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=O.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(O.delegateToasts){O.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const i=O.getInstance();i&&i.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(i=>(i={...i},delete i.id,!tt.shallowEqual(i,t,!1))))}};O.delegateToasts=!1,gr([a({type:Array})],O.prototype,"toasts",2),O=gr([_(On)],O),typeof window<"u"&&(window[cs+"Toast"]=window[cs+"Toast"]||O);function Dn(){const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="removeItemsByStatus"&&O.removeItemsByStatus(i.data.status),i.data.type=="removeTemporaryItems"&&O.removeTemporaryItems(),i.data.type=="sonicToastAvailable"&&(O.delegateToasts=!0,O.handleExistingToastDelegation()),i.data.type=="addToasts"&&(O.getInstance().toasts=[...O.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&O.removeAll(),i.data.type=="removeToast"&&O.removeItem(i.data.toast),i.data.type=="addToast"&&O.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))i.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}Dn();var Ln=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Ge=(r,t,i,s)=>{for(var e=s>1?void 0:s?En(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ln(t,i,e),e};const Nn=new Set,Tn=new Set,Mn=r=>{for(const t of Tn)t(r)},ri=new Set;let oi=0;js(async()=>{oi++;const r=oi,t=Array.from(ri);for(;t.length>0;){if(r!=oi)return;const i=t.splice(0,4);await Promise.all(i.map(s=>s._fetchData()))}});const ni=(r,t)=>{class i extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ae(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await st.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,tt.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Nn.add(this),Mn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&O.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,l=this.key.split(".");o=tt.traverse(o,l,this.hasAttribute("preserveOtherKeys")),o&&tt.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){super.disconnectedCallback(),ri.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),ri.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),o={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),o);let l=[...(this.shadowRoot?this.shadowRoot:this).children].filter(c=>c.nodeName.toLowerCase()!="style")[0];if(l?.nodeName.toLocaleLowerCase()=="slot"&&(l=[...l.children].filter(c=>c.nodeName.toLowerCase()!="style")[0]),!l||l.nodeName.toLocaleLowerCase()=="template"){l=document.createElement("div");const c=l.style;c.pointerEvents="none",c.width="1px",c.height="1px",this.lazyLoadPlaceHolder=l,this.appendChild(l)}l?this.iObserver.observe(l):this.isFirstLoad&&this._fetchData()}onIntersection(e){for(const o of e)if(o.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return Ge([a()],i.prototype,"noErrorsRecordings",2),Ge([a()],i.prototype,"props",1),Ge([a({type:String})],i.prototype,"endPoint",1),Ge([a()],i.prototype,"requestId",2),Ge([a({type:Number})],i.prototype,"refetchEveryMs",2),i};var In=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,pe=(r,t,i,s)=>{for(var e=s>1?void 0:s?jn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&In(t,i,e),e};const $s=r=>{class t extends r{constructor(...s){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),s.reportValidity()}set type(s){this.hasAttribute("type")&&!this.forceAutoFill&&(s=this.getAttribute("type")),this._type=s,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}}return pe([a()],t.prototype,"forceAutoFill",2),pe([a({type:String})],t.prototype,"type",1),pe([a()],t.prototype,"description",1),pe([a()],t.prototype,"label",1),pe([a({type:String,reflect:!0})],t.prototype,"status",2),pe([a({type:Number})],t.prototype,"tabindex",2),pe([a({type:String})],t.prototype,"autocomplete",2),t},br=ni,Fn=ti,vr=Oe,yr=$s,Gt=X,ai=qe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:br,FormCheckable:Fn,FormElement:vr,FormInput:yr,Subscriber:Gt,TemplatesContainer:ai};/**
1014
1014
  * @license
1015
1015
  * Copyright 2020 Google LLC
1016
1016
  * SPDX-License-Identifier: BSD-3-Clause
1017
- */const Nt=Yt(class extends Se{constructor(r){if(super(r),r.type!==ce.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?vt:(this.vt=r,document.importNode(r.content,!0))}});var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,wr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Rn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zn(t,i,e),e};const Un="sonic-fetch";let Cs=class extends ni(X(ai(y))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return C;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):C}render(){return g`
1017
+ */const Nt=Xt(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?yt:(this.vt=r,document.importNode(r.content,!0))}});var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,wr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Rn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zn(t,i,e),e};const Un="sonic-fetch";let Cs=class extends ni(X(ai(y))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return S;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return m`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):S}render(){return m`
1018
1018
  ${this.renderSkeleton()} ${this.renderLoader()}
1019
- ${this.isLoading?C:g`<slot></slot>`}
1020
- `}};Cs.styles=[x`
1019
+ ${this.isLoading?S:m`<slot></slot>`}
1020
+ `}};Cs.styles=[P`
1021
1021
  :host {
1022
1022
  display: contents;
1023
1023
  }
1024
- `],wr([a()],Cs.prototype,"loader",2),Cs=wr([_(Un)],Cs);var Vn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,_r=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Vn(t,i,e),e};const qn="sonic-if";let Ss=class extends y{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:C}};Ss.styles=x`
1024
+ `],wr([a()],Cs.prototype,"loader",2),Cs=wr([_(Un)],Cs);var Vn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,_r=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Vn(t,i,e),e};const qn="sonic-if";let Ss=class extends y{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?m` <slot></slot> `:S}};Ss.styles=P`
1025
1025
  :host {
1026
1026
  display: contents;
1027
1027
  }
1028
- `,_r([a({type:Boolean})],Ss.prototype,"condition",2),Ss=_r([_(qn)],Ss);const Hn=x`
1028
+ `,_r([a({type:Boolean})],Ss.prototype,"condition",2),Ss=_r([_(qn)],Ss);const Hn=P`
1029
1029
  :host([align="left"]) .sonic-loader--inline {
1030
1030
  margin-left: 0;
1031
1031
  }
@@ -1092,7 +1092,7 @@
1092
1092
  transform: translate(24px, 0);
1093
1093
  }
1094
1094
  }
1095
- `,Wn=x`
1095
+ `,Wn=P`
1096
1096
  @keyframes sonic-loader--fixed {
1097
1097
  0% {
1098
1098
  transform: scale(0);
@@ -1145,14 +1145,14 @@
1145
1145
  height: 5rem;
1146
1146
  animation: sonic-loader--fixed 1s 0s linear infinite;
1147
1147
  }
1148
- `;var Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,li=(r,t,i,s)=>{for(var e=s>1?void 0:s?Yn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Kn(t,i,e),e};const Xn="sonic-loader";let ot=class extends y{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){ot.loader||(ot.loader=document.createElement("sonic-loader"));const t=ot.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=yt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),ot.callCounter++}static hide(){ot.callCounter--,!(ot.callCounter>0)&&ot.loader&&ot.loader.remove()}render(){return g`<div
1148
+ `;var Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,li=(r,t,i,s)=>{for(var e=s>1?void 0:s?Yn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Kn(t,i,e),e};const Xn="sonic-loader";let ot=class extends y{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){ot.loader||(ot.loader=document.createElement("sonic-loader"));const t=ot.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=wt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),ot.callCounter++}static hide(){ot.callCounter--,!(ot.callCounter>0)&&ot.loader&&ot.loader.remove()}render(){return m`<div
1149
1149
  class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
1150
1150
  >
1151
1151
  <div></div>
1152
1152
  <div></div>
1153
1153
  <div></div>
1154
1154
  <div></div>
1155
- </div>`}};ot.styles=[Hn,Wn,x`
1155
+ </div>`}};ot.styles=[Hn,Wn,P`
1156
1156
  :host {
1157
1157
  --sc-_loader-bg: var(--sc-primary, currentColor);
1158
1158
  pointer-events: none;
@@ -1180,7 +1180,7 @@
1180
1180
  opacity: 1;
1181
1181
  }
1182
1182
  }
1183
- `],ot.callCounter=0,li([a({type:String})],ot.prototype,"mode",2),li([a({type:Boolean})],ot.prototype,"noDelay",2),ot=li([_(Xn)],ot);var Zn=Object.getOwnPropertyDescriptor,Gn=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Qn="sonic-subscriber";let xr=class extends X(y){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};xr=Gn([_(Qn)],xr);var Jn=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,At=(r,t,i,s)=>{for(var e=s>1?void 0:s?ta(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Jn(t,i,e),e};const ea="sonic-list";let xt=class extends ni(X(qe(y))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(r){typeof r!="function"&&r!==void 0||(this._items=r,this.requestUpdate())}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return C;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):C}renderSeparator(){if(this.separator)return this.separator();const r=this.templateParts.separator;return r?Nt(r):C}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return g` <div
1183
+ `],ot.callCounter=0,li([a({type:String})],ot.prototype,"mode",2),li([a({type:Boolean})],ot.prototype,"noDelay",2),ot=li([_(Xn)],ot);var Zn=Object.getOwnPropertyDescriptor,Gn=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Qn="sonic-subscriber";let xr=class extends X(y){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return m`<slot></slot> `}};xr=Gn([_(Qn)],xr);var Jn=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,At=(r,t,i,s)=>{for(var e=s>1?void 0:s?ta(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Jn(t,i,e),e};const ea="sonic-list";let xt=class extends ni(X(qe(y))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(r){typeof r!="function"&&r!==void 0||(this._items=r,this.requestUpdate())}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return S;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return m`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):S}renderSeparator(){if(this.separator)return this.separator();const r=this.templateParts.separator;return r?Nt(r):S}renderLoadingState(){return m`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return m` <div
1184
1184
  style="color: var(--sc-base-400);
1185
1185
  font-size: 1.5em;
1186
1186
  margin: 4rem 0;
@@ -1191,36 +1191,36 @@
1191
1191
  ><span class="sonic-no-result-text"
1192
1192
  >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1193
1193
  >
1194
- </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(r)||(i?r=Object.entries(r).map(([s,e])=>({key:s,value:e})):tt.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(s=>s!=null),t&&(r._sonic_http_response_=t),r}updated(r){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(r)}getAllRenderableElements(r){let t=[];function i(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s.getBoundingClientRect();(e.width>0||e.height>0)&&t.push(s),s.childNodes.forEach(i),s.shadowRoot&&s.shadowRoot.childNodes.forEach(i)}}return i(r),t}getDisplayContentsSize(r){const t=this.getAllRenderableElements(r);if(t.length===0)return{width:0,height:0};const i=t.map(l=>l.getBoundingClientRect()),s=Math.min(...i.map(l=>l.left)),e=Math.max(...i.map(l=>l.right)),o=Math.min(...i.map(l=>l.top)),n=Math.max(...i.map(l=>l.bottom));return{width:e-s,height:n-o}}render(){return g`
1194
+ </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(r)||(i?r=Object.entries(r).map(([s,e])=>({key:s,value:e})):tt.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(s=>s!=null),t&&(r._sonic_http_response_=t),r}updated(r){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(r)}getAllRenderableElements(r){let t=[];function i(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s.getBoundingClientRect();(e.width>0||e.height>0)&&t.push(s),s.childNodes.forEach(i),s.shadowRoot&&s.shadowRoot.childNodes.forEach(i)}}return i(r),t}getDisplayContentsSize(r){const t=this.getAllRenderableElements(r);if(t.length===0)return{width:0,height:0};const i=t.map(l=>l.getBoundingClientRect()),s=Math.min(...i.map(l=>l.left)),e=Math.max(...i.map(l=>l.right)),o=Math.min(...i.map(l=>l.top)),n=Math.max(...i.map(l=>l.bottom));return{width:e-s,height:n-o}}render(){return m`
1195
1195
  ${this.renderContent()}
1196
1196
  <div
1197
1197
  style="grid-column: 1 / -1;min-height:${this.isLoading?0:this.loadingSize.height}px; width:0;float:left;display: var(--list-loader-height-display);"
1198
1198
  ></div>
1199
- `}handleProgrammaticTemplates(r,t,i){return this.items?g`<sonic-subscriber
1199
+ `}handleProgrammaticTemplates(r,t,i){return this.items?m`<sonic-subscriber
1200
1200
  ?debug=${this.defferedDebug===!0}
1201
1201
  .bindPublisher=${()=>this.publisher[i]}
1202
1202
  .propertyMap?=${this.itemPropertyMap}
1203
1203
  dataProvider="${this.dataProvider}/list-item/${i}"
1204
1204
  >
1205
1205
  ${this.items(r,t)}
1206
- </sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!tt.isObject(this.props))return g`<div></div>`;const s=this.formatProps();if((s?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return Nt(this.templateParts["no-items"])}const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=s?.length||0,h=s?.slice(this.offset,this.offset+this.limit);return g`
1207
- ${h?.map((f,d)=>{if(f==null)return C;let m=d,v=null;if(typeof f=="object"&&!Array.isArray(f)){n&&(m=f?.key);const u=f[this.templateKey];u&&typeof u=="string"&&(v=this.templateParts[u])}if(m=="_sonic_http_response_"||typeof m!="string"&&typeof m!="number")return C;const b=d>=c-1,P=d%2,S=this.publisher[m],N={key:m,even:P==0,odd:P==1,onlyChild:c==1,firstChild:d==0,lastChild:b};S._key_=m+"",S._metadata_={...S._metadata_.get(),...N};const p=this.handleProgrammaticTemplates(f,N,m);return p?g`${p}${b?C:l}`:(o++,v&&(o=-1),g`
1206
+ </sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!tt.isObject(this.props))return m`<div></div>`;const s=this.formatProps();if((s?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return Nt(this.templateParts["no-items"])}const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=s?.length||0,h=s?.slice(this.offset,this.offset+this.limit);return m`
1207
+ ${h?.map((u,d)=>{if(u==null)return S;let g=d,v=null;if(typeof u=="object"&&!Array.isArray(u)){n&&(g=u?.key);const f=u[this.templateKey];f&&typeof f=="string"&&(v=this.templateParts[f])}if(g=="_sonic_http_response_"||typeof g!="string"&&typeof g!="number")return S;const b=d>=c-1,x=d%2,C=this.publisher[g],N={key:g,even:x==0,odd:x==1,onlyChild:c==1,firstChild:d==0,lastChild:b};C._key_=g+"",C._metadata_={...C._metadata_.get(),...N};const p=this.handleProgrammaticTemplates(u,N,g);return p?m`${p}${b?S:l}`:(o++,v&&(o=-1),m`
1208
1208
  <sonic-subscriber
1209
1209
  ?debug=${this.defferedDebug===!0}
1210
- .bindPublisher=${function(){return S}}
1210
+ .bindPublisher=${function(){return C}}
1211
1211
  .propertyMap?=${this.itemPropertyMap}
1212
- dataProvider="${this.dataProvider}/list-item/${m}"
1212
+ dataProvider="${this.dataProvider}/list-item/${g}"
1213
1213
  >
1214
1214
  ${Nt(v||this.templateList[o%e])}
1215
1215
  </sonic-subscriber>
1216
- ${b?C:l}
1216
+ ${b?S:l}
1217
1217
  `)})}
1218
1218
  `}};At([a({type:Object})],xt.prototype,"itemPropertyMap",2),At([a({type:String})],xt.prototype,"templateKey",2),At([a({type:String})],xt.prototype,"idKey",2),At([a()],xt.prototype,"loader",2),At([a()],xt.prototype,"limit",2),At([a()],xt.prototype,"offset",2),At([a({type:Function})],xt.prototype,"items",1),At([a({type:Function})],xt.prototype,"noItems",2),At([a({type:Function})],xt.prototype,"skeleton",2),At([a({type:Function})],xt.prototype,"separator",2),xt=At([_(ea)],xt);/**
1219
1219
  * @license
1220
1220
  * Copyright 2021 Google LLC
1221
1221
  * SPDX-License-Identifier: BSD-3-Clause
1222
- */function*Pr(r,t){if(r!==void 0){let i=0;for(const s of r)yield t(s,i++)}}var sa=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,it=(r,t,i,s)=>{for(var e=s>1?void 0:s?ia(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sa(t,i,e),e};const ra="sonic-queue";let Z=class extends X(y){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const t=this.dataProviderExpression.split("?");t.shift();const i=new URLSearchParams(t.join("?")),s=this.filterPublisher?.get(),e=this.filteredFields.split(" ");for(const n in s){let l=s[n];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&!e.includes(n)||l==null||l.toString()==="")&&i.set(n,s[n].toString())}const o=i.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const n of this.listDataProviders)T.delete(n);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const n=this.resultCount;this.props=null,this.requestId++,this.resultCount=n,await T.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){for(const r of this.listDataProviders)T.delete(r),this.listDataProviders=[];this.filterPublisher?.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Z.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Xt.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await T.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=T.getInstance().get(r),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(r){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){let t=this.offset;const s=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=r.detail.props?.length||0,!r.detail.isFirstLoad||!r.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,m=d[d.length-1];t=parseInt(m.offset.toString())+parseInt(m.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=r?.detail.fetchedData||{},this.props=d}s>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/s*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const l=new URLSearchParams(o.join("?")),c=this.filterPublisher?.get(),h=this.filteredFields.split(" ");for(const d in c)this.filteredFields&&h.includes(d)||c[d]==null||c[d]==""||l.set(d,c[d]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const f=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];f.resultCount=this.resultCount,f.lastFetchedData=r?.detail.fetchedData||{},this.props=f,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return C;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",g`
1223
- ${Pr(this.props,(t,i)=>{const s=i==0?this.templates:this.templates?.filter(e=>e.getAttribute("data-value")!="no-item");return g`
1222
+ */function*Pr(r,t){if(r!==void 0){let i=0;for(const s of r)yield t(s,i++)}}var sa=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,it=(r,t,i,s)=>{for(var e=s>1?void 0:s?ia(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sa(t,i,e),e};const ra="sonic-queue";let Z=class extends X(y){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const t=this.dataProviderExpression.split("?");t.shift();const i=new URLSearchParams(t.join("?")),s=this.filterPublisher?.get(),e=this.filteredFields.split(" ");for(const n in s){let l=s[n];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&!e.includes(n)||l==null||l.toString()==="")&&i.set(n,s[n].toString())}const o=i.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const n of this.listDataProviders)T.delete(n);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const n=this.resultCount;this.props=null,this.requestId++,this.resultCount=n,await T.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){for(const r of this.listDataProviders)T.delete(r),this.listDataProviders=[];this.filterPublisher?.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Z.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Zt.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await T.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=T.getInstance().get(r),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(r){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){let t=this.offset;const s=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=r.detail.props?.length||0,!r.detail.isFirstLoad||!r.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,g=d[d.length-1];t=parseInt(g.offset.toString())+parseInt(g.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=r?.detail.fetchedData||{},this.props=d}s>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/s*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const l=new URLSearchParams(o.join("?")),c=this.filterPublisher?.get(),h=this.filteredFields.split(" ");for(const d in c)this.filteredFields&&h.includes(d)||c[d]==null||c[d]==""||l.set(d,c[d]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const u=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];u.resultCount=this.resultCount,u.lastFetchedData=r?.detail.fetchedData||{},this.props=u,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return S;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",m`
1223
+ ${Pr(this.props,(t,i)=>{const s=i==0?this.templates:this.templates?.filter(e=>e.getAttribute("data-value")!="no-item");return m`
1224
1224
  <sonic-list
1225
1225
  fetch
1226
1226
  loader="${this.loader}"
@@ -1246,32 +1246,32 @@
1246
1246
  >
1247
1247
  </sonic-list>
1248
1248
  `})}
1249
- `}};Z.instanceCounter=0,it([a({type:Array})],Z.prototype,"templates",2),it([a({type:Function})],Z.prototype,"items",2),it([a({type:Function})],Z.prototype,"noItems",2),it([a({type:Function})],Z.prototype,"skeleton",2),it([a({type:Object})],Z.prototype,"itemPropertyMap",2),it([a()],Z.prototype,"cache",2),it([a()],Z.prototype,"targetRequestDuration",2),it([a()],Z.prototype,"limit",2),it([a()],Z.prototype,"lazyBoundsRatio",2),it([a()],Z.prototype,"offset",2),it([a()],Z.prototype,"resultCount",2),it([a({type:Boolean})],Z.prototype,"noLazyload",2),it([a({type:String})],Z.prototype,"loader",2),it([a()],Z.prototype,"filteredFields",2),it([a({type:String})],Z.prototype,"dataProviderExpression",2),it([a({type:Boolean})],Z.prototype,"invalidateOnPageShow",2),it([a({type:String})],Z.prototype,"idKey",2),Z=it([_(ra)],Z);var oa=Object.defineProperty,na=Object.getOwnPropertyDescriptor,De=(r,t,i,s)=>{for(var e=s>1?void 0:s?na(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&oa(t,i,e),e};const aa="sonic-submit";let Qt=class extends X(y){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async r=>{if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=T.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,ot.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=this.getAttribute("method")?.toLocaleLowerCase()||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),l=n?T.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const f=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||f,m=async()=>{const b={...o};if(delete b.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await this.api?.submitFormData(d,b,s,c);else switch(s){case"put":h=await this.api?.put(d,b,c);break;case"patch":h=await this.api?.patch(d,b,c);break;case"delete":h=await this.api?.delete(d,b,c);break;case"get":const u=new URLSearchParams;if(b)for(const A in b)u.append(A,b[A]);const w="?"+u.toString();h=await this.api?.get(d+w,c);break;default:h=await this.api?.post(d,b,c);break}ot.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const P=this.getAncestorAttributeValue("clearedDataOnSuccess");P&&P.split(" ").forEach(u=>T.get(u).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",N=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&b[S]&&b[N]&&this.saveCredentials(b[S],b[N]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&T.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},v=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(v){v.captchaToken="request_token";const b=P=>{P!="request_token"?(m(),v.captchaToken.offAssign(b)):(ot.hide(),this.disabled=!1)};v.captchaToken.onAssign(b)}else m()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ae(this.getApiConfiguration())}submitNativeForm(){const r=Xt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),i={...T.get(t).get()};delete i.needsCaptchaValidation;for(const e in i){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=i[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const s=document.createElement("input");s.name=this.name,s.style.display="none",s.value=this.value,s.type="submit",r.appendChild(s),s&&s.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(i)}}render(){return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Qt.styles=x`
1249
+ `}};Z.instanceCounter=0,it([a({type:Array})],Z.prototype,"templates",2),it([a({type:Function})],Z.prototype,"items",2),it([a({type:Function})],Z.prototype,"noItems",2),it([a({type:Function})],Z.prototype,"skeleton",2),it([a({type:Object})],Z.prototype,"itemPropertyMap",2),it([a()],Z.prototype,"cache",2),it([a()],Z.prototype,"targetRequestDuration",2),it([a()],Z.prototype,"limit",2),it([a()],Z.prototype,"lazyBoundsRatio",2),it([a()],Z.prototype,"offset",2),it([a()],Z.prototype,"resultCount",2),it([a({type:Boolean})],Z.prototype,"noLazyload",2),it([a({type:String})],Z.prototype,"loader",2),it([a()],Z.prototype,"filteredFields",2),it([a({type:String})],Z.prototype,"dataProviderExpression",2),it([a({type:Boolean})],Z.prototype,"invalidateOnPageShow",2),it([a({type:String})],Z.prototype,"idKey",2),Z=it([_(ra)],Z);var oa=Object.defineProperty,na=Object.getOwnPropertyDescriptor,De=(r,t,i,s)=>{for(var e=s>1?void 0:s?na(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&oa(t,i,e),e};const aa="sonic-submit";let Qt=class extends X(y){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async r=>{if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=T.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,ot.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=this.getAttribute("method")?.toLocaleLowerCase()||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),l=n?T.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const u=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||u,g=async()=>{const b={...o};if(delete b.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await this.api?.submitFormData(d,b,s,c);else switch(s){case"put":h=await this.api?.put(d,b,c);break;case"patch":h=await this.api?.patch(d,b,c);break;case"delete":h=await this.api?.delete(d,b,c);break;case"get":const f=new URLSearchParams;if(b)for(const A in b)f.append(A,b[A]);const w="?"+f.toString();h=await this.api?.get(d+w,c);break;default:h=await this.api?.post(d,b,c);break}ot.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const x=this.getAncestorAttributeValue("clearedDataOnSuccess");x&&x.split(" ").forEach(f=>T.get(f).set({}));const C=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",N=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&b[C]&&b[N]&&this.saveCredentials(b[C],b[N]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&T.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},v=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(v){v.captchaToken="request_token";const b=x=>{x!="request_token"?(g(),v.captchaToken.offAssign(b)):(ot.hide(),this.disabled=!1)};v.captchaToken.onAssign(b)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ae(this.getApiConfiguration())}submitNativeForm(){const r=Zt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),i={...T.get(t).get()};delete i.needsCaptchaValidation;for(const e in i){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=i[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const s=document.createElement("input");s.name=this.name,s.style.display="none",s.value=this.value,s.type="submit",r.appendChild(s),s&&s.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(i)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Qt.styles=P`
1250
1250
  [data-disabled] {
1251
1251
  opacity: 0.3;
1252
1252
  pointer-events: none;
1253
1253
  user-select: none;
1254
1254
  }
1255
- `,De([a({type:String})],Qt.prototype,"submitResultKey",2),De([a({type:Boolean})],Qt.prototype,"disabled",2),De([a({type:String})],Qt.prototype,"endPoint",2),De([a()],Qt.prototype,"name",2),De([a()],Qt.prototype,"value",2),Qt=De([_(aa)],Qt);var la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Qe=(r,t,i,s)=>{for(var e=s>1?void 0:s?ca(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&la(t,i,e),e};const ha="sonic-router";let Le=class extends qe(y){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const r=new URL(this.location,document.location.origin);return r.pathname+r.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const r=[];for(let[t,i]of Object.entries(this.routes)){if(t==="fallback"||!i)continue;const s=new RegExp(this.regExpBasePath+t);if(s.test(this.cleanLocation)){const e=s.exec(this.cleanLocation)||[t];e.shift(),r.push(i([...e]))}else try{const o=new Vt(this.patternBasePath+t).match(this.cleanLocation);if(o){const n=o||{};r.push(i(n))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&r.push(i({}))}}return r.length==0&&this.routes?.fallback&&this.isConnected&&r.push(this.routes.fallback()),r}render(){const r=this.handleroutes();if(r.length>0)return g`${r}`;const t=[];for(const i of this.templatePartsList){const s=i.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+s).test(this.cleanLocation))t.push(i);else try{new Vt(this.patternBasePath+s+"(/*)").match(this.cleanLocation)&&(i.setAttribute("mode","patternMatching"),t.push(i))}catch{this.cleanLocation.indexOf((this.basePath||"")+s.replace(document.location.origin,""))!=-1&&t.push(i)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const i=this.templateList.find(s=>s.hasAttribute("data-fallback"));i&&t.push(i)}return g`${_s(t,(i,s)=>s+new Date().getTime(),i=>{if(i.title&&(document.title=i.title),i.hasAttribute("dataProviderExpression")){let s="";const e=i.getAttribute("dataProviderExpression")||"";if(i.getAttribute("mode")=="patternMatching"){const o=new Vt("(/)*"+(i.getAttribute(this.templateValueAttribute)||"")+"*");s=new Vt(e).stringify(o.match(this.cleanLocation))}else{const o=new RegExp(i.getAttribute(this.templateValueAttribute)||""),n=(this.cleanLocation+"").match(o);n&&(s=n.shift()?.replace(o,e)||"")}return g`<div
1255
+ `,De([a({type:String})],Qt.prototype,"submitResultKey",2),De([a({type:Boolean})],Qt.prototype,"disabled",2),De([a({type:String})],Qt.prototype,"endPoint",2),De([a()],Qt.prototype,"name",2),De([a()],Qt.prototype,"value",2),Qt=De([_(aa)],Qt);var la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Qe=(r,t,i,s)=>{for(var e=s>1?void 0:s?ca(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&la(t,i,e),e};const ha="sonic-router";let Le=class extends qe(y){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const r=new URL(this.location,document.location.origin);return r.pathname+r.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const r=[];for(let[t,i]of Object.entries(this.routes)){if(t==="fallback"||!i)continue;const s=new RegExp(this.regExpBasePath+t);if(s.test(this.cleanLocation)){const e=s.exec(this.cleanLocation)||[t];e.shift(),r.push(i([...e]))}else try{const o=new Vt(this.patternBasePath+t).match(this.cleanLocation);if(o){const n=o||{};r.push(i(n))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&r.push(i({}))}}return r.length==0&&this.routes?.fallback&&this.isConnected&&r.push(this.routes.fallback()),r}render(){const r=this.handleroutes();if(r.length>0)return m`${r}`;const t=[];for(const i of this.templatePartsList){const s=i.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+s).test(this.cleanLocation))t.push(i);else try{new Vt(this.patternBasePath+s+"(/*)").match(this.cleanLocation)&&(i.setAttribute("mode","patternMatching"),t.push(i))}catch{this.cleanLocation.indexOf((this.basePath||"")+s.replace(document.location.origin,""))!=-1&&t.push(i)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const i=this.templateList.find(s=>s.hasAttribute("data-fallback"));i&&t.push(i)}return m`${_s(t,(i,s)=>s+new Date().getTime(),i=>{if(i.title&&(document.title=i.title),i.hasAttribute("dataProviderExpression")){let s="";const e=i.getAttribute("dataProviderExpression")||"";if(i.getAttribute("mode")=="patternMatching"){const o=new Vt("(/)*"+(i.getAttribute(this.templateValueAttribute)||"")+"*");s=new Vt(e).stringify(o.match(this.cleanLocation))}else{const o=new RegExp(i.getAttribute(this.templateValueAttribute)||""),n=(this.cleanLocation+"").match(o);n&&(s=n.shift()?.replace(o,e)||"")}return m`<div
1256
1256
  style="display:contents"
1257
1257
  dataProvider="${s}"
1258
1258
  >
1259
1259
  ${Nt(i)}
1260
- </div>`}return Nt(i)})}`}};Qe([a({type:String})],Le.prototype,"fallBackRoute",2),Qe([a({type:Object})],Le.prototype,"routes",2),Qe([a({type:String})],Le.prototype,"basePath",2),Qe([a()],Le.prototype,"location",1),Le=Qe([_(ha)],Le);var da=Object.getOwnPropertyDescriptor,pa=(r,t,i,s)=>{for(var e=s>1?void 0:s?da(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ua="sonic-redirect";let $r=class extends X(y){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){et.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=tt.traverse(this.props,r);t&&!(tt.isObject(t)&&t)&&et.changeFromComponent(this)}};$r=pa([_(ua)],$r);var fa=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,As=(r,t,i,s)=>{for(var e=s>1?void 0:s?ga(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&fa(t,i,e),e};const ma="sonic-states";let Je=class extends X(qe(y)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(r){if(!this.states)return[];const t=[];for(const[i,s]of Object.entries(this.states)){if(i==="fallback"||!s)continue;const e=new RegExp(i);if(e.test(r)){const o=e.exec(r)||[i];o.shift(),t.push(s([...o]))}else try{const o=new Vt("(/)*"+i+"*");if(o.match(r)){const n=o.match(r)||{};t.push(s(n))}}catch{r.indexOf(i.replace(document.location.origin,""))!=-1&&t.push(s({}))}}return t.length==0&&this.states?.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let r=this.state;(!Array.isArray(r)&&tt.isObject(r)||r===void 0)&&(r="");const t=this.handleStates(r);if(t.length>0)return g`${t}`;const i=[];for(const s of this.templatePartsList){let e=s.getAttribute(this.templateValueAttribute),o=r;if(this.inverted&&(o=e,e=r),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))i.push(s),s.removeAttribute("mode");else{const l=new Vt(e);l.names.length>0&&l.match(o)&&(s.setAttribute("mode","patternMatching"),i.push(s))}}return g`${_s(i,(s,e)=>e+new Date().getTime(),s=>{if(s?.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=r,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=r),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new Vt(l);o=new Vt(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=h.shift()?.replace(c,e))}return g`<div
1260
+ </div>`}return Nt(i)})}`}};Qe([a({type:String})],Le.prototype,"fallBackRoute",2),Qe([a({type:Object})],Le.prototype,"routes",2),Qe([a({type:String})],Le.prototype,"basePath",2),Qe([a()],Le.prototype,"location",1),Le=Qe([_(ha)],Le);var da=Object.getOwnPropertyDescriptor,pa=(r,t,i,s)=>{for(var e=s>1?void 0:s?da(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ua="sonic-redirect";let $r=class extends X(y){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){et.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=tt.traverse(this.props,r);t&&!(tt.isObject(t)&&t)&&et.changeFromComponent(this)}};$r=pa([_(ua)],$r);var fa=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,As=(r,t,i,s)=>{for(var e=s>1?void 0:s?ma(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&fa(t,i,e),e};const ga="sonic-states";let Je=class extends X(qe(y)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(r){if(!this.states)return[];const t=[];for(const[i,s]of Object.entries(this.states)){if(i==="fallback"||!s)continue;const e=new RegExp(i);if(e.test(r)){const o=e.exec(r)||[i];o.shift(),t.push(s([...o]))}else try{const o=new Vt("(/)*"+i+"*");if(o.match(r)){const n=o.match(r)||{};t.push(s(n))}}catch{r.indexOf(i.replace(document.location.origin,""))!=-1&&t.push(s({}))}}return t.length==0&&this.states?.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let r=this.state;(!Array.isArray(r)&&tt.isObject(r)||r===void 0)&&(r="");const t=this.handleStates(r);if(t.length>0)return m`${t}`;const i=[];for(const s of this.templatePartsList){let e=s.getAttribute(this.templateValueAttribute),o=r;if(this.inverted&&(o=e,e=r),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))i.push(s),s.removeAttribute("mode");else{const l=new Vt(e);l.names.length>0&&l.match(o)&&(s.setAttribute("mode","patternMatching"),i.push(s))}}return m`${_s(i,(s,e)=>e+new Date().getTime(),s=>{if(s?.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=r,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=r),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new Vt(l);o=new Vt(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=h.shift()?.replace(c,e))}return m`<div
1261
1261
  style="display:contents"
1262
1262
  dataProvider="${o}"
1263
1263
  >
1264
1264
  ${Nt(s)}
1265
- </div>`}return Nt(s)})}`}};As([a()],Je.prototype,"state",2),As([a({type:Boolean,reflect:!0})],Je.prototype,"inverted",2),As([a({type:Object})],Je.prototype,"states",2),Je=As([_(ma)],Je);var ba=Object.getOwnPropertyDescriptor,va=(r,t,i,s)=>{for(var e=s>1?void 0:s?ba(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ya="sonic-scope";let Cr=class extends y{createRenderRoot(){return this}render(){return g`<slot></slot>`}};Cr=va([_(ya)],Cr);var wa=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Sr=(r,t,i,s)=>{for(var e=s>1?void 0:s?_a(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&wa(t,i,e),e};const xa="sonic-example";let ci=class extends X(y){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};Sr([a()],ci.prototype,"text",2),ci=Sr([_(xa)],ci);const Pa={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class $a{async transform(t,i){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const s in i.library)this.sduiDescriptor.library[s]=i.library[s];for(const s of i.transforms)this.transformAction(s)}transformAction(t){const i=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,i)}getNodesMatchingPatterns(t,i){if(!t)return[];if(!i)return[];const s=i.nodes;if(!s)return[];let e=[],o=0;for(const n of t)for(const l of s)this.nodeMatchesPattern(n,l)&&e.push({parent:i,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),o++;return e}stringMatchesExpression(t,i){return!i||t&&t.match(i)}nodeMatchesPattern(t,i){const s=t,e=i,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],s[c]))return!1;const n=t.attributes,l=i.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1),s.child.nodes&&s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),0,...s.child.nodes)}wrap(t,i){const s={...t.ui};s.nodes||(s.nodes=[]);let e=0;for(const n of i)s.nodes?.push(n.child),e>0&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child),1),e++;const o=i[0]?.parent.nodes?.indexOf(i[0].child);o&&(i[0].parent.nodes?.splice(o,1),i[0].parent.nodes?.splice(o,0,s))}move(t,i){for(const s of i){s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,s.child)}}remap(t,i){for(const s of i){const e={...t.ui};e.attributes||(e.attributes={});const o=s.child.attributes;if(o)for(const d in o)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[d]=o[d]);const n=["libraryKey","innerHTML","prefix","suffix","markup"],l=s.child,c=e;for(const d of n)!Object.prototype.hasOwnProperty.call(e,d)&&l[d]&&(c[d]=l[d]);e.nodes||(e.nodes=[]);const h=s.child.nodes;if(h)for(const d of h)e.nodes.push(d);const f=s.parent.nodes?.indexOf(s.child)||-1;f!=-1&&(s.parent.nodes?.splice(f,1),s.parent.nodes?.splice(f,0,e))}}delete(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1)}insert(t,i){const s=t.after?"after":t.before?"before":"in";i=[],t.after?i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(i=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=i[0];e&&(s=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):e.parent.nodes?.splice(e.parent.nodes.indexOf(e.child)+(s=="after"?1:0),0,{...t.ui}))}}var Ca=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,hi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Sa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ca(t,i,e),e};const Aa="sonic-sdui";let ks=class extends br(Gt(y)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,Pa,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)Xt.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)Xt.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new $a().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(i=>this.appendChild(this.parseChild(i)))}parseChild(r){const t=r.tagName||"div";let{element:i,contentElement:s}=this.handleLibrary(r,t);return this.handleAttributes(r,i),i=this.handleMarkup(r,i),s||(s=i),this.handleChildNodes(r,s,i),this.handleInnerHTML(r,s),r.prefix||r.suffix?this.handlePrefixSuffix(r,i):i}handlePrefixSuffix(r,t){const i=document.createElement("div");return i.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),i.style.display="contents",i}handleChildNodes(r,t,i){if(r.nodes){const s=r.nodes;for(const e of s){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=i.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let i,s;if(r.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(s=i.querySelector(e))}else i=document.createElement(t);return{element:i,contentElement:s}}handleAttributes(r,t){const i=r.attributes;for(const s in i){const e=i[s],o=We.isObject(e)?JSON.stringify(e):e;t.setAttribute(s,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");this.api?.post(i,{labels:[r.innerHTML.substring(8)]}).then(s=>{t&&(t.innerHTML+=s)})}else t&&(t.innerHTML+=r.innerHTML)}};hi([a()],ks.prototype,"sduiKey",2),hi([a()],ks.prototype,"messagesKey",2),ks=hi([_(Aa)],ks);var ka=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ar=(r,t,i,s)=>{for(var e=s>1?void 0:s?Oa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&ka(t,i,e),e};let Os=class extends Gt(y){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const i in r){const s=r[i];if(typeof s=="string"){const e=s.split("."),o=e.shift();if(!o)continue;let n=st.get(o);n=We.traverse(n,e);const l={publisher:n,subscriber:c=>{t[i]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(i,n)}else{this.publisher[i]={};const e=new zs({},t);t._proxies_.set(i,e);const o={publisher:e,subscriber:n=>{t[i]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(s,e)}}}render(){return g`<slot></slot>`}};Os.styles=[x`
1265
+ </div>`}return Nt(s)})}`}};As([a()],Je.prototype,"state",2),As([a({type:Boolean,reflect:!0})],Je.prototype,"inverted",2),As([a({type:Object})],Je.prototype,"states",2),Je=As([_(ga)],Je);var ba=Object.getOwnPropertyDescriptor,va=(r,t,i,s)=>{for(var e=s>1?void 0:s?ba(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ya="sonic-scope";let Cr=class extends y{createRenderRoot(){return this}render(){return m`<slot></slot>`}};Cr=va([_(ya)],Cr);var wa=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Sr=(r,t,i,s)=>{for(var e=s>1?void 0:s?_a(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&wa(t,i,e),e};const xa="sonic-example";let ci=class extends X(y){constructor(){super(...arguments),this.text="Example"}render(){return m`<div>${this.text}</div>`}};Sr([a()],ci.prototype,"text",2),ci=Sr([_(xa)],ci);const Pa={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class $a{async transform(t,i){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const s in i.library)this.sduiDescriptor.library[s]=i.library[s];for(const s of i.transforms)this.transformAction(s)}transformAction(t){const i=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,i)}getNodesMatchingPatterns(t,i){if(!t)return[];if(!i)return[];const s=i.nodes;if(!s)return[];let e=[],o=0;for(const n of t)for(const l of s)this.nodeMatchesPattern(n,l)&&e.push({parent:i,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),o++;return e}stringMatchesExpression(t,i){return!i||t&&t.match(i)}nodeMatchesPattern(t,i){const s=t,e=i,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],s[c]))return!1;const n=t.attributes,l=i.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1),s.child.nodes&&s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),0,...s.child.nodes)}wrap(t,i){const s={...t.ui};s.nodes||(s.nodes=[]);let e=0;for(const n of i)s.nodes?.push(n.child),e>0&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child),1),e++;const o=i[0]?.parent.nodes?.indexOf(i[0].child);o&&(i[0].parent.nodes?.splice(o,1),i[0].parent.nodes?.splice(o,0,s))}move(t,i){for(const s of i){s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,s.child)}}remap(t,i){for(const s of i){const e={...t.ui};e.attributes||(e.attributes={});const o=s.child.attributes;if(o)for(const d in o)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[d]=o[d]);const n=["libraryKey","innerHTML","prefix","suffix","markup"],l=s.child,c=e;for(const d of n)!Object.prototype.hasOwnProperty.call(e,d)&&l[d]&&(c[d]=l[d]);e.nodes||(e.nodes=[]);const h=s.child.nodes;if(h)for(const d of h)e.nodes.push(d);const u=s.parent.nodes?.indexOf(s.child)||-1;u!=-1&&(s.parent.nodes?.splice(u,1),s.parent.nodes?.splice(u,0,e))}}delete(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1)}insert(t,i){const s=t.after?"after":t.before?"before":"in";i=[],t.after?i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(i=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=i[0];e&&(s=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):e.parent.nodes?.splice(e.parent.nodes.indexOf(e.child)+(s=="after"?1:0),0,{...t.ui}))}}var Ca=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,hi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Sa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ca(t,i,e),e};const Aa="sonic-sdui";let ks=class extends br(Gt(y)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,Pa,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)Zt.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)Zt.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new $a().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(i=>this.appendChild(this.parseChild(i)))}parseChild(r){const t=r.tagName||"div";let{element:i,contentElement:s}=this.handleLibrary(r,t);return this.handleAttributes(r,i),i=this.handleMarkup(r,i),s||(s=i),this.handleChildNodes(r,s,i),this.handleInnerHTML(r,s),r.prefix||r.suffix?this.handlePrefixSuffix(r,i):i}handlePrefixSuffix(r,t){const i=document.createElement("div");return i.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),i.style.display="contents",i}handleChildNodes(r,t,i){if(r.nodes){const s=r.nodes;for(const e of s){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=i.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let i,s;if(r.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(s=i.querySelector(e))}else i=document.createElement(t);return{element:i,contentElement:s}}handleAttributes(r,t){const i=r.attributes;for(const s in i){const e=i[s],o=We.isObject(e)?JSON.stringify(e):e;t.setAttribute(s,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");this.api?.post(i,{labels:[r.innerHTML.substring(8)]}).then(s=>{t&&(t.innerHTML+=s)})}else t&&(t.innerHTML+=r.innerHTML)}};hi([a()],ks.prototype,"sduiKey",2),hi([a()],ks.prototype,"messagesKey",2),ks=hi([_(Aa)],ks);var ka=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ar=(r,t,i,s)=>{for(var e=s>1?void 0:s?Oa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&ka(t,i,e),e};let Os=class extends Gt(y){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const i in r){const s=r[i];if(typeof s=="string"){const e=s.split("."),o=e.shift();if(!o)continue;let n=st.get(o);n=We.traverse(n,e);const l={publisher:n,subscriber:c=>{t[i]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(i,n)}else{this.publisher[i]={};const e=new zs({},t);t._proxies_.set(i,e);const o={publisher:e,subscriber:n=>{t[i]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(s,e)}}}render(){return m`<slot></slot>`}};Os.styles=[P`
1266
1266
  :host {
1267
1267
  display: contents;
1268
1268
  }
1269
- `],Ar([a({type:Object})],Os.prototype,"composition",1),Os=Ar([_("sonic-mix")],Os);var Da=Object.getOwnPropertyDescriptor,La=(r,t,i,s)=>{for(var e=s>1?void 0:s?Da(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ea="sonic-value";let kr=class extends Gt(y){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1270
- ><slot name="suffix"></slot>`}};kr=La([_(Ea)],kr);var Na=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,di=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ta(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Na(t,i,e),e};const Ma="sonic-t";let Ds=class extends y{render(){return this.key?g`${Do(this.key,this.unsafeHTML)}`:C}};di([a({type:String})],Ds.prototype,"key",2),di([a({type:Boolean})],Ds.prototype,"unsafeHTML",2),Ds=di([_(Ma)],Ds);var Ia=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,ts=(r,t,i,s)=>{for(var e=s>1?void 0:s?ja(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ia(t,i,e),e};const Fa="sonic-badge";let pe=class extends y{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1269
+ `],Ar([a({type:Object})],Os.prototype,"composition",1),Os=Ar([_("sonic-mix")],Os);var Da=Object.getOwnPropertyDescriptor,La=(r,t,i,s)=>{for(var e=s>1?void 0:s?Da(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ea="sonic-value";let kr=class extends Gt(y){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?m`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:m`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1270
+ ><slot name="suffix"></slot>`}};kr=La([_(Ea)],kr);var Na=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,di=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ta(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Na(t,i,e),e};const Ma="sonic-t";let Ds=class extends y{render(){return this.key?m`${Do(this.key,this.unsafeHTML)}`:S}};di([a({type:String})],Ds.prototype,"key",2),di([a({type:Boolean})],Ds.prototype,"unsafeHTML",2),Ds=di([_(Ma)],Ds);var Ia=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,ts=(r,t,i,s)=>{for(var e=s>1?void 0:s?ja(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ia(t,i,e),e};const Fa="sonic-badge";let ue=class extends y{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return m`
1271
1271
  <slot name="prefix"></slot>
1272
1272
  <slot></slot>
1273
1273
  <slot name="suffix"></slot>
1274
- `}};pe.styles=[Lt,x`
1274
+ `}};ue.styles=[Lt,P`
1275
1275
  :host {
1276
1276
  --sc-badge-gap: 0.3em;
1277
1277
  --sc-badge-py: 0.35em;
@@ -1411,28 +1411,28 @@
1411
1411
  slot[name="prefix"] {
1412
1412
  flex-shrink: 0;
1413
1413
  }
1414
- `],ts([a({type:String,reflect:!0})],pe.prototype,"type",2),ts([a({type:String,reflect:!0})],pe.prototype,"variant",2),ts([a({type:String,reflect:!0})],pe.prototype,"size",2),ts([a({type:Boolean,reflect:!0})],pe.prototype,"ellipsis",2),pe=ts([_(Fa)],pe);class za{static fixBlankLink(t){const s=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{s?.shell.openExternal(t.href)})}}var Ra=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ee=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ua(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ra(t,i,e),e};const Va="sonic-link";let Jt=class extends y{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,et.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(et.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{r.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,za.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),et.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?g`
1414
+ `],ts([a({type:String,reflect:!0})],ue.prototype,"type",2),ts([a({type:String,reflect:!0})],ue.prototype,"variant",2),ts([a({type:String,reflect:!0})],ue.prototype,"size",2),ts([a({type:Boolean,reflect:!0})],ue.prototype,"ellipsis",2),ue=ts([_(Fa)],ue);class za{static fixBlankLink(t){const s=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{s?.shell.openExternal(t.href)})}}var Ra=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ee=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ua(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ra(t,i,e),e};const Va="sonic-link";let Jt=class extends y{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,et.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(et.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{r.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,za.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),et.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?m`
1415
1415
  <a
1416
1416
  href="${this.href}"
1417
- aria-label=${this.ariaLabel||C}
1417
+ aria-label=${this.ariaLabel||S}
1418
1418
  target=${$(this.target)}
1419
1419
  @click=${this.pushState?this.handlePushState:null}
1420
1420
  >
1421
1421
  <slot></slot>
1422
1422
  </a>
1423
- `:g`<slot></slot>`}};Jt.styles=[x`
1423
+ `:m`<slot></slot>`}};Jt.styles=[P`
1424
1424
  a {
1425
1425
  color: inherit;
1426
1426
  text-decoration: none;
1427
1427
  display: contents;
1428
1428
  }
1429
- `],Ee([a({type:String})],Jt.prototype,"href",2),Ee([a({type:String,attribute:"data-aria-label"})],Jt.prototype,"ariaLabel",2),Ee([a({type:String})],Jt.prototype,"autoActive",2),Ee([a({type:String})],Jt.prototype,"target",1),Ee([a({type:Boolean})],Jt.prototype,"pushState",2),Jt=Ee([_(Va)],Jt);var Ba=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Ne=(r,t,i,s)=>{for(var e=s>1?void 0:s?qa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ba(t,i,e),e};const Ha="sonic-progress";let te=class extends y{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return g`
1429
+ `],Ee([a({type:String})],Jt.prototype,"href",2),Ee([a({type:String,attribute:"data-aria-label"})],Jt.prototype,"ariaLabel",2),Ee([a({type:String})],Jt.prototype,"autoActive",2),Ee([a({type:String})],Jt.prototype,"target",1),Ee([a({type:Boolean})],Jt.prototype,"pushState",2),Jt=Ee([_(Va)],Jt);var Ba=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Ne=(r,t,i,s)=>{for(var e=s>1?void 0:s?qa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ba(t,i,e),e};const Ha="sonic-progress";let te=class extends y{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return m`
1430
1430
  <progress value=${$(this.value)} max=${this.max}></progress>
1431
1431
  <div class="slot-container">
1432
1432
  <slot></slot>
1433
1433
  <slot name="remaining"></slot>
1434
1434
  </div>
1435
- `}};te.styles=[Lt,x`
1435
+ `}};te.styles=[Lt,P`
1436
1436
  :host {
1437
1437
  --sc-progress-bg: var(
1438
1438
  --sc-input-bg,
@@ -1544,7 +1544,7 @@
1544
1544
  gap: 0.5em;
1545
1545
  margin-top: 0.15em;
1546
1546
  }
1547
- `],Ne([a({type:Number})],te.prototype,"value",2),Ne([a({type:Number})],te.prototype,"max",2),Ne([a({type:Boolean})],te.prototype,"invert",2),Ne([a({type:String,reflect:!0})],te.prototype,"type",2),Ne([a({type:String,reflect:!0})],te.prototype,"size",2),te=Ne([_(Ha)],te);const Wa=x`
1547
+ `],Ne([a({type:Number})],te.prototype,"value",2),Ne([a({type:Number})],te.prototype,"max",2),Ne([a({type:Boolean})],te.prototype,"invert",2),Ne([a({type:String,reflect:!0})],te.prototype,"type",2),Ne([a({type:String,reflect:!0})],te.prototype,"size",2),te=Ne([_(Ha)],te);const Wa=P`
1548
1548
  .password-toggle {
1549
1549
  color: var(--sc-input-c);
1550
1550
  font-size: var(--sc-input-fs);
@@ -1555,7 +1555,7 @@
1555
1555
  :host([inlineContent]) .has-suffix .password-toggle {
1556
1556
  margin-right: 0;
1557
1557
  }
1558
- `,Ls=x`
1558
+ `,Ls=P`
1559
1559
  :host {
1560
1560
  --sc-label-fs: var(--sc-_fs, 1rem);
1561
1561
  --sc-label-fw: var(--sc-label-font-weight, 500);
@@ -1569,14 +1569,14 @@
1569
1569
  margin-bottom: 0.22em;
1570
1570
  display: block;
1571
1571
  }
1572
- `,Es=x`
1572
+ `,Es=P`
1573
1573
  .form-description {
1574
1574
  color: var(--sc-base-400, var(--sc-base-content, #000));
1575
1575
  font-size: 0.85em;
1576
1576
  margin-top: 0.2em;
1577
1577
  display: block;
1578
1578
  }
1579
- `,pi=x`
1579
+ `,pi=P`
1580
1580
  * {
1581
1581
  box-sizing: border-box;
1582
1582
  }
@@ -1935,7 +1935,7 @@
1935
1935
  * @license
1936
1936
  * Copyright 2018 Google LLC
1937
1937
  * SPDX-License-Identifier: BSD-3-Clause
1938
- */const ui=Yt(class extends Se{constructor(r){if(super(r),r.type!==ce.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((t=>r[t])).join(" ")+" "}update(r,[t]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(const s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}const i=r.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const e=!!t[s];e===this.st.has(s)||this.nt?.has(s)||(e?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return vt}});var Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,R=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ka(t,i,e),e};const Xa="sonic-input";let j=class extends $s(Oe(X(y))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),this.autoActive&&r.has("value")&&(this.active=!!this.value),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1938
+ */const ui=Xt(class extends Se{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((t=>r[t])).join(" ")+" "}update(r,[t]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(const s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}const i=r.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const e=!!t[s];e===this.st.has(s)||this.nt?.has(s)||(e?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return yt}});var Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,R=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Ka(t,i,e),e};const Xa="sonic-input";let j=class extends $s(Oe(X(y))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),this.autoActive&&r.has("value")&&(this.active=!!this.value),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return m`
1939
1939
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1940
1940
  >${this.label?F(this.label):""}<slot
1941
1941
  name="label"
@@ -1976,7 +1976,7 @@
1976
1976
  .name=${this.name}
1977
1977
  .value=${this.value}
1978
1978
  />
1979
- ${this.showPasswordToggle?g`<sonic-button
1979
+ ${this.showPasswordToggle?m`<sonic-button
1980
1980
  shape="circle"
1981
1981
  class="password-toggle"
1982
1982
  @click=${this.togglePasswordVisibility}
@@ -1997,10 +1997,10 @@
1997
1997
  name="description"
1998
1998
  @slotchange=${this.hasSlotOrProps}
1999
1999
  class="${this.hasDescription?"form-description":"hidden"}"
2000
- >${this.description?g`${F(this.description)}`:C}</slot>
2000
+ >${this.description?m`${F(this.description)}`:S}</slot>
2001
2001
  <slot name="list"></slot>
2002
2002
  </div>
2003
- `}};j.styles=[Lt,pi,Ls,Es,Wa,x`
2003
+ `}};j.styles=[Lt,pi,Ls,Es,Wa,P`
2004
2004
  :host([type="hidden"]) {
2005
2005
  appearance: none !important;
2006
2006
  display: none !important;
@@ -2008,7 +2008,7 @@
2008
2008
  :host > .form-control {
2009
2009
  position: relative;
2010
2010
  }
2011
- `],R([a({type:String,reflect:!0})],j.prototype,"size",2),R([a({type:String})],j.prototype,"inputmode",2),R([a({type:String})],j.prototype,"list",2),R([a({type:String})],j.prototype,"placeholder",2),R([a({type:String})],j.prototype,"pattern",2),R([a({type:String})],j.prototype,"min",2),R([a({type:String})],j.prototype,"max",2),R([a({type:Boolean,reflect:!0})],j.prototype,"readonly",2),R([a({type:Number})],j.prototype,"step",2),R([a({type:Number})],j.prototype,"minlength",2),R([a({type:Number})],j.prototype,"maxlength",2),R([a({type:String})],j.prototype,"src",2),R([a({type:Boolean,reflect:!0})],j.prototype,"inlineContent",2),R([a({type:Boolean})],j.prototype,"disableInlineContentFocus",2),R([a({type:Boolean})],j.prototype,"showPasswordToggle",2),R([a({type:Boolean})],j.prototype,"autoActive",2),R([a({type:Boolean,reflect:!0})],j.prototype,"active",2),R([lt({slot:"label",flatten:!0})],j.prototype,"slotLabelNodes",2),R([lt({slot:"description",flatten:!0})],j.prototype,"slotDescriptionNodes",2),R([lt({slot:"suffix",flatten:!0})],j.prototype,"slotSuffixNodes",2),R([lt({slot:"prefix",flatten:!0})],j.prototype,"slotPrefixNodes",2),R([xe("input")],j.prototype,"input",2),R([D()],j.prototype,"hasDescription",2),R([D()],j.prototype,"hasLabel",2),R([D()],j.prototype,"hasSuffix",2),R([D()],j.prototype,"hasPrefix",2),R([D()],j.prototype,"isPassword",2),j=R([_(Xa)],j);const Or=x`
2011
+ `],R([a({type:String,reflect:!0})],j.prototype,"size",2),R([a({type:String})],j.prototype,"inputmode",2),R([a({type:String})],j.prototype,"list",2),R([a({type:String})],j.prototype,"placeholder",2),R([a({type:String})],j.prototype,"pattern",2),R([a({type:String})],j.prototype,"min",2),R([a({type:String})],j.prototype,"max",2),R([a({type:Boolean,reflect:!0})],j.prototype,"readonly",2),R([a({type:Number})],j.prototype,"step",2),R([a({type:Number})],j.prototype,"minlength",2),R([a({type:Number})],j.prototype,"maxlength",2),R([a({type:String})],j.prototype,"src",2),R([a({type:Boolean,reflect:!0})],j.prototype,"inlineContent",2),R([a({type:Boolean})],j.prototype,"disableInlineContentFocus",2),R([a({type:Boolean})],j.prototype,"showPasswordToggle",2),R([a({type:Boolean})],j.prototype,"autoActive",2),R([a({type:Boolean,reflect:!0})],j.prototype,"active",2),R([lt({slot:"label",flatten:!0})],j.prototype,"slotLabelNodes",2),R([lt({slot:"description",flatten:!0})],j.prototype,"slotDescriptionNodes",2),R([lt({slot:"suffix",flatten:!0})],j.prototype,"slotSuffixNodes",2),R([lt({slot:"prefix",flatten:!0})],j.prototype,"slotPrefixNodes",2),R([oe("input")],j.prototype,"input",2),R([D()],j.prototype,"hasDescription",2),R([D()],j.prototype,"hasLabel",2),R([D()],j.prototype,"hasSuffix",2),R([D()],j.prototype,"hasPrefix",2),R([D()],j.prototype,"isPassword",2),j=R([_(Xa)],j);const Or=P`
2012
2012
  /*OMBRE*/
2013
2013
  :host([shadow]) .shadowable,
2014
2014
  :host([shadow="md"]) .shadowable,
@@ -2027,7 +2027,7 @@
2027
2027
  :host([shadow="none"]) .shadowable {
2028
2028
  box-shadow: none;
2029
2029
  }
2030
- `;var Za=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Tt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ga(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Za(t,i,e),e};const Qa="sonic-pop";let rt=class extends y{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=r=>{r.key==="Escape"&&this.open&&(r.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=r.target),this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent?.style?.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){H.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const i=t.style;i.zIndex="999999999";const s=getComputedStyle(t);return s.position!=="relative"&&s.position!=="absolute"&&(i.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),i=t[0];rt.pops.forEach(s=>{const e=t.includes(s),o=t.includes(s.querySelector('[slot="content"]')),n=H.getAncestorAttributeValue(i,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||s.hide()})}connectedCallback(){super.connectedCallback(),rt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),rt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),rt.pops.delete(this),rt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(r){const t=r.split(" "),i=t[0];let s=t[1];const e=5,o=this.getBoundingClientRect(),l=H.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+e,h=Math.max(0,l?.top||0)+e,f=Math.min(window.innerWidth,l?.right||window.innerWidth)-e,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-e,m=o.left,v=o.top;let b=m,P=v,S=this.popContent?.getBoundingClientRect();const N=v-S.height,p=m-S.width,u=m+o.width,w=v+o.height,A=m+(o.width-S.width)*.5,k=v+(o.height-S.height)*.5;switch(i){case"bottom":P=w,s=="center"&&(b=A);break;case"top":P=N,s=="center"&&(b=A);break;case"left":b=p,s=="center"&&(P=k);break;case"right":b=u,s=="center"&&(P=k);break}this.lastContentX+=b-S.x,this.lastContentY+=P-S.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),S=this.popContent?.getBoundingClientRect(),S.x<c&&i=="left"&&(b=u),S.y<h&&i=="top"&&(P=w),S.x+S.width>f&&i=="right"&&(b=p),S.y+S.height>d&&i=="bottom"&&(P=N),this.lastContentX+=b-S.x,this.lastContentY+=P-S.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),S=this.popContent?.getBoundingClientRect(),S.x<c&&(this.lastContentX+=c-S.x),S.y<h&&(this.lastContentY+=h-S.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),S=this.popContent?.getBoundingClientRect(),S.x+S.width>f&&(this.lastContentX+=f-(S.x+S.width)),S.y+S.height>d&&(this.lastContentY+=d-(S.y+S.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
2030
+ `;var Za=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Tt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ga(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Za(t,i,e),e};const Qa="sonic-pop";let rt=class extends y{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=r=>{r.key==="Escape"&&this.open&&(r.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=r.target),this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent?.style?.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){H.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const i=t.style;i.zIndex="999999999";const s=getComputedStyle(t);return s.position!=="relative"&&s.position!=="absolute"&&(i.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),i=t[0];rt.pops.forEach(s=>{const e=t.includes(s),o=t.includes(s.querySelector('[slot="content"]')),n=H.getAncestorAttributeValue(i,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||s.hide()})}connectedCallback(){super.connectedCallback(),rt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),rt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),rt.pops.delete(this),rt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(r){const t=r.split(" "),i=t[0];let s=t[1];const e=5,o=this.getBoundingClientRect(),l=H.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+e,h=Math.max(0,l?.top||0)+e,u=Math.min(window.innerWidth,l?.right||window.innerWidth)-e,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-e,g=o.left,v=o.top;let b=g,x=v,C=this.popContent?.getBoundingClientRect();const N=v-C.height,p=g-C.width,f=g+o.width,w=v+o.height,A=g+(o.width-C.width)*.5,k=v+(o.height-C.height)*.5;switch(i){case"bottom":x=w,s=="center"&&(b=A);break;case"top":x=N,s=="center"&&(b=A);break;case"left":b=p,s=="center"&&(x=k);break;case"right":b=f,s=="center"&&(x=k);break}this.lastContentX+=b-C.x,this.lastContentY+=x-C.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),C=this.popContent?.getBoundingClientRect(),C.x<c&&i=="left"&&(b=f),C.y<h&&i=="top"&&(x=w),C.x+C.width>u&&i=="right"&&(b=p),C.y+C.height>d&&i=="bottom"&&(x=N),this.lastContentX+=b-C.x,this.lastContentY+=x-C.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),C=this.popContent?.getBoundingClientRect(),C.x<c&&(this.lastContentX+=c-C.x),C.y<h&&(this.lastContentY+=h-C.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),C=this.popContent?.getBoundingClientRect(),C.x+C.width>u&&(this.lastContentX+=u-(C.x+C.width)),C.y+C.height>d&&(this.lastContentY+=d-(C.y+C.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return m`
2031
2031
  <slot
2032
2032
  @click=${this.manual?()=>{}:this.toggle}
2033
2033
  @keydown=${this.manual?()=>{}:this.toggle}
@@ -2041,7 +2041,7 @@
2041
2041
  class="shadowable
2042
2042
  ${this.open?"is-open":""}"
2043
2043
  ></slot>
2044
- `}};rt.pops=new Set,rt.styles=[x`
2044
+ `}};rt.pops=new Set,rt.styles=[P`
2045
2045
  :host {
2046
2046
  display: inline-block;
2047
2047
  vertical-align: middle;
@@ -2073,11 +2073,11 @@
2073
2073
  :host([inline]) {
2074
2074
  vertical-align: baseline;
2075
2075
  }
2076
- `,Or],Tt([D()],rt.prototype,"open",2),Tt([xe("slot:not([name=content])")],rt.prototype,"popBtn",2),Tt([xe("slot[name=content]")],rt.prototype,"popContent",2),Tt([a({type:Boolean})],rt.prototype,"noToggle",2),Tt([a({type:Boolean,reflect:!0})],rt.prototype,"inline",2),Tt([a({type:Boolean})],rt.prototype,"manual",2),Tt([a({type:String,reflect:!0})],rt.prototype,"shadow",2),Tt([a({type:String})],rt.prototype,"placement",2),Tt([D()],rt.prototype,"triggerElement",2),rt=Tt([_(Qa)],rt);var Ja=Object.getOwnPropertyDescriptor,tl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ja(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const el="sonic-menu-item";let Dr=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};Dr=tl([_(el)],Dr);/**
2076
+ `,Or],Tt([D()],rt.prototype,"open",2),Tt([oe("slot:not([name=content])")],rt.prototype,"popBtn",2),Tt([oe("slot[name=content]")],rt.prototype,"popContent",2),Tt([a({type:Boolean})],rt.prototype,"noToggle",2),Tt([a({type:Boolean,reflect:!0})],rt.prototype,"inline",2),Tt([a({type:Boolean})],rt.prototype,"manual",2),Tt([a({type:String,reflect:!0})],rt.prototype,"shadow",2),Tt([a({type:String})],rt.prototype,"placement",2),Tt([D()],rt.prototype,"triggerElement",2),rt=Tt([_(Qa)],rt);var Ja=Object.getOwnPropertyDescriptor,tl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ja(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const el="sonic-menu-item";let Dr=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};Dr=tl([_(el)],Dr);/**
2077
2077
  * @license
2078
2078
  * Copyright 2021 Google LLC
2079
2079
  * SPDX-License-Identifier: BSD-3-Clause
2080
- */class Lr{constructor(t,{target:i,config:s,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=s,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var sl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,pt=(r,t,i,s)=>{for(var e=s>1?void 0:s?il(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sl(t,i,e),e};let nt=class extends ai(yr(vr(Gt(y)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Lr(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=(r?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const s=st.get;this.searchPublisher=s(this.searchDataProvider)[r],this.formValuePublisher=dt(s(t),this.name),this.countPublisher=s(this.queueDataProvider).resultCount,this.initCountPublisher=s(this.initQueueDataProvider).resultCount,this.value&&(st.get(this.initSearchDataProvider)[this.name]=this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const r=st.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,i){const s=st.get(r);let e,o=s.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=st.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(r,t){this.querySelector("sonic-input")?.setSelectionRange(r,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}render(){return g`
2080
+ */class Lr{constructor(t,{target:i,config:s,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=s,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var sl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,ut=(r,t,i,s)=>{for(var e=s>1?void 0:s?il(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sl(t,i,e),e};let nt=class extends ai(yr(vr(Gt(y)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Lr(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=(r?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const s=st.get;this.searchPublisher=s(this.searchDataProvider)[r],this.formValuePublisher=pt(s(t),this.name),this.countPublisher=s(this.queueDataProvider).resultCount,this.initCountPublisher=s(this.initQueueDataProvider).resultCount,this.value&&(st.get(this.initSearchDataProvider)[this.name]=this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const r=st.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,i){const s=st.get(r);let e,o=s.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=st.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(r,t){this.querySelector("sonic-input")?.setSelectionRange(r,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}render(){return m`
2081
2081
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2082
2082
  <sonic-input
2083
2083
  class="form-element"
@@ -2104,14 +2104,14 @@
2104
2104
  @slotchange=${this.hasSlotOrProps}
2105
2105
  ></slot>
2106
2106
 
2107
- ${this.select?g`
2107
+ ${this.select?m`
2108
2108
  <sonic-icon
2109
2109
  slot="suffix"
2110
2110
  class="select-chevron"
2111
2111
  name="nav-arrow-down"
2112
2112
  .size=${this.size}
2113
2113
  ></sonic-icon>
2114
- `:C}
2114
+ `:S}
2115
2115
  </sonic-input>
2116
2116
  <sonic-menu
2117
2117
  slot="content"
@@ -2141,7 +2141,7 @@
2141
2141
  </sonic-queue>
2142
2142
  </sonic-menu>
2143
2143
  </sonic-pop>
2144
- `}};nt.styles=[Xe,x`
2144
+ `}};nt.styles=[Xe,P`
2145
2145
  :host {
2146
2146
  display: block;
2147
2147
  }
@@ -2162,7 +2162,7 @@
2162
2162
  min-width: 14rem;
2163
2163
  width: 100%;
2164
2164
  }
2165
- `],pt([a({type:String})],nt.prototype,"size",2),pt([a({type:String})],nt.prototype,"placeholder",2),pt([a()],nt.prototype,"filteredFields",2),pt([a({type:Boolean,reflect:!0})],nt.prototype,"readonly",2),pt([a({type:String})],nt.prototype,"dataProviderExpression",2),pt([a({type:Number})],nt.prototype,"minSearchLength",2),pt([a({type:Boolean})],nt.prototype,"select",2),pt([a({type:String})],nt.prototype,"key",2),pt([a({type:String})],nt.prototype,"searchParameter",2),pt([a({type:String})],nt.prototype,"propertyName",2),pt([lt({slot:"prefix",flatten:!0})],nt.prototype,"slotInputPrefixNodes",2),pt([D()],nt.prototype,"hasInputPrefix",2),pt([D()],nt.prototype,"isPopVisible",2),pt([D()],nt.prototype,"lastValidSearch",2),nt=pt([_("sonic-input-autocomplete")],nt);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,ut=(r,t,i,s)=>{for(var e=s>1?void 0:s?ol(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&rl(t,i,e),e};const nl="sonic-password-helper";let ct=class extends Gt(y){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:g`
2165
+ `],ut([a({type:String})],nt.prototype,"size",2),ut([a({type:String})],nt.prototype,"placeholder",2),ut([a()],nt.prototype,"filteredFields",2),ut([a({type:Boolean,reflect:!0})],nt.prototype,"readonly",2),ut([a({type:String})],nt.prototype,"dataProviderExpression",2),ut([a({type:Number})],nt.prototype,"minSearchLength",2),ut([a({type:Boolean})],nt.prototype,"select",2),ut([a({type:String})],nt.prototype,"key",2),ut([a({type:String})],nt.prototype,"searchParameter",2),ut([a({type:String})],nt.prototype,"propertyName",2),ut([lt({slot:"prefix",flatten:!0})],nt.prototype,"slotInputPrefixNodes",2),ut([D()],nt.prototype,"hasInputPrefix",2),ut([D()],nt.prototype,"isPopVisible",2),ut([D()],nt.prototype,"lastValidSearch",2),nt=ut([_("sonic-input-autocomplete")],nt);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?ol(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&rl(t,i,e),e};const nl="sonic-password-helper";let ct=class extends Gt(y){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?S:m`
2166
2166
  <div>${this.wording_password_helper_decription}</div>
2167
2167
  <div>
2168
2168
  ${this.getIcon(this.hasEnoughChars)}
@@ -2183,11 +2183,11 @@
2183
2183
  ${this.getIcon(this.hasSpecialChar)}
2184
2184
  ${this.wording_password_helper_special_char}
2185
2185
  </div>
2186
- `}};ut([a()],ct.prototype,"name",2),ut([a()],ct.prototype,"minChars",2),ut([D()],ct.prototype,"hasNoChar",2),ut([D()],ct.prototype,"hasEnoughChars",2),ut([D()],ct.prototype,"hasMinuscule",2),ut([D()],ct.prototype,"hasMajuscule",2),ut([D()],ct.prototype,"hasNumber",2),ut([D()],ct.prototype,"hasSpecialChar",2),ut([a()],ct.prototype,"wording_password_helper_decription",2),ut([a()],ct.prototype,"wording_password_helper_min_length",2),ut([a()],ct.prototype,"wording_password_helper_lower_case",2),ut([a()],ct.prototype,"wording_password_helper_upper_case",2),ut([a()],ct.prototype,"wording_password_helper_number",2),ut([a()],ct.prototype,"wording_password_helper_special_char",2),ct=ut([_(nl)],ct);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,ue=(r,t,i,s)=>{for(var e=s>1?void 0:s?ll(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&al(t,i,e),e};const cl="sonic-same-value-helper";let ee=class extends Gt(y){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=dt(r,this.name).get()==dt(r,this.sameValueAs).get())},dt(r,this.name).onAssign(this.checkValue),dt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));dt(r,this.name).offAssign(this.checkValue),dt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:g`
2186
+ `}};ft([a()],ct.prototype,"name",2),ft([a()],ct.prototype,"minChars",2),ft([D()],ct.prototype,"hasNoChar",2),ft([D()],ct.prototype,"hasEnoughChars",2),ft([D()],ct.prototype,"hasMinuscule",2),ft([D()],ct.prototype,"hasMajuscule",2),ft([D()],ct.prototype,"hasNumber",2),ft([D()],ct.prototype,"hasSpecialChar",2),ft([a()],ct.prototype,"wording_password_helper_decription",2),ft([a()],ct.prototype,"wording_password_helper_min_length",2),ft([a()],ct.prototype,"wording_password_helper_lower_case",2),ft([a()],ct.prototype,"wording_password_helper_upper_case",2),ft([a()],ct.prototype,"wording_password_helper_number",2),ft([a()],ct.prototype,"wording_password_helper_special_char",2),ct=ft([_(nl)],ct);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,fe=(r,t,i,s)=>{for(var e=s>1?void 0:s?ll(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&al(t,i,e),e};const cl="sonic-same-value-helper";let ee=class extends Gt(y){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=pt(r,this.name).get()==pt(r,this.sameValueAs).get())},pt(r,this.name).onAssign(this.checkValue),pt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));pt(r,this.name).offAssign(this.checkValue),pt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?S:m`
2187
2187
  <span>
2188
2188
  ${this.areEqual?F(this.descriptionWhenEqual):F(this.descriptionWhenNotEqual)}
2189
2189
  </span>
2190
- `}};ue([a()],ee.prototype,"name",2),ue([a()],ee.prototype,"sameValueAs",2),ue([a()],ee.prototype,"descriptionWhenEqual",2),ue([a()],ee.prototype,"descriptionWhenNotEqual",2),ue([D()],ee.prototype,"areEqual",2),ue([D()],ee.prototype,"hasNoChar",2),ee=ue([_(cl)],ee);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,Bt=(r,t,i,s)=>{for(var e=s>1?void 0:s?dl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hl(t,i,e),e};const pl="sonic-checkbox";let ft=class extends ti($s(Oe(X(y)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r),r.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return g`
2190
+ `}};fe([a()],ee.prototype,"name",2),fe([a()],ee.prototype,"sameValueAs",2),fe([a()],ee.prototype,"descriptionWhenEqual",2),fe([a()],ee.prototype,"descriptionWhenNotEqual",2),fe([D()],ee.prototype,"areEqual",2),fe([D()],ee.prototype,"hasNoChar",2),ee=fe([_(cl)],ee);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,qt=(r,t,i,s)=>{for(var e=s>1?void 0:s?dl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hl(t,i,e),e};const pl="sonic-checkbox";let mt=class extends ti($s(Oe(X(y)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return m`
2191
2191
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2192
2192
 
2193
2193
  <span class="icon-container">
@@ -2211,11 +2211,11 @@
2211
2211
  <div class="checkbox-text ${!this.hasDescription&&!this.hasLabel?"hidden":"checkbox-text"}">
2212
2212
  ${this.label?F(this.label):""}
2213
2213
  <slot @slotchange=${this.hasSlotOrProps}></slot>
2214
- <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?g`${F(this.description)}`:""}</slot>
2214
+ <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?m`${F(this.description)}`:""}</slot>
2215
2215
  </div>
2216
2216
  </label>
2217
2217
  </label>
2218
- `}};ft.styles=[Lt,x`
2218
+ `}};mt.styles=[Lt,P`
2219
2219
  :host {
2220
2220
  --sc-checkbox-border-width: var(--sc-form-border-width);
2221
2221
  --sc-checkbox-border-color: var(
@@ -2337,7 +2337,7 @@
2337
2337
  .hidden {
2338
2338
  display: none;
2339
2339
  }
2340
- `],Bt([a({type:Boolean,reflect:!0})],ft.prototype,"touched",2),Bt([a({type:String})],ft.prototype,"iconName",2),Bt([a({type:String})],ft.prototype,"indeterminateIconName",2),Bt([a({type:Boolean})],ft.prototype,"showAsIndeterminate",2),Bt([a({type:Boolean})],ft.prototype,"hasDescription",2),Bt([a({type:Boolean})],ft.prototype,"hasLabel",2),Bt([lt({flatten:!0})],ft.prototype,"slotLabelNodes",2),Bt([lt({slot:"description",flatten:!0})],ft.prototype,"slotDescriptionNodes",2),ft=Bt([_(pl)],ft);var ul=Object.getOwnPropertyDescriptor,fl=(r,t,i,s)=>{for(var e=s>1?void 0:s?ul(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const gl="sonic-radio";let fi=class extends ft{constructor(){super(),this.radio=!0}willUpdate(r){const t=r.has("type");super.willUpdate(r),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};fi.styles=[ft.styles,x`
2340
+ `],qt([a({type:Boolean,reflect:!0})],mt.prototype,"touched",2),qt([a({type:String})],mt.prototype,"iconName",2),qt([a({type:String})],mt.prototype,"indeterminateIconName",2),qt([a({type:Boolean})],mt.prototype,"showAsIndeterminate",2),qt([a({type:Boolean})],mt.prototype,"hasDescription",2),qt([a({type:Boolean})],mt.prototype,"hasLabel",2),qt([lt({flatten:!0})],mt.prototype,"slotLabelNodes",2),qt([lt({slot:"description",flatten:!0})],mt.prototype,"slotDescriptionNodes",2),mt=qt([_(pl)],mt);var ul=Object.getOwnPropertyDescriptor,fl=(r,t,i,s)=>{for(var e=s>1?void 0:s?ul(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ml="sonic-radio";let fi=class extends mt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};fi.styles=[mt.styles,P`
2341
2341
  :host input {
2342
2342
  border-radius: 50%;
2343
2343
  }
@@ -2353,7 +2353,7 @@
2353
2353
  width: 0.6em;
2354
2354
  width: round(0.6em, 1px);
2355
2355
  }
2356
- `],fi=fl([_(gl)],fi);var ml=Object.getOwnPropertyDescriptor,bl=(r,t,i,s)=>{for(var e=s>1?void 0:s?ml(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const vl="sonic-switch";let gi=class extends ft{constructor(){super(),this.unique=!0}};gi.styles=[ft.styles,x`
2356
+ `],fi=fl([_(ml)],fi);var gl=Object.getOwnPropertyDescriptor,bl=(r,t,i,s)=>{for(var e=s>1?void 0:s?gl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const vl="sonic-switch";let mi=class extends mt{constructor(){super(),this.unique=!0}};mi.styles=[mt.styles,P`
2357
2357
  sonic-icon {
2358
2358
  display: none;
2359
2359
  }
@@ -2418,7 +2418,7 @@
2418
2418
  input + sonic-icon {
2419
2419
  display: none;
2420
2420
  }
2421
- `],gi=bl([_(vl)],gi);var yl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,J=(r,t,i,s)=>{for(var e=s>1?void 0:s?wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&yl(t,i,e),e};const _l="sonic-select";let K=class extends Oe(X(y)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const i of r)i.selected&&(this.value=i[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const r=this.shadowRoot?.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2421
+ `],mi=bl([_(vl)],mi);var yl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,J=(r,t,i,s)=>{for(var e=s>1?void 0:s?wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&yl(t,i,e),e};const _l="sonic-select";let K=class extends Oe(X(y)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const i of r)i.selected&&(this.value=i[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const r=this.shadowRoot?.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return m`
2422
2422
  <label
2423
2423
  for="form-element"
2424
2424
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2446,7 +2446,7 @@
2446
2446
  aria-label=${$(this.ariaLabel)}
2447
2447
  aria-labelledby=${$(this.ariaLabelledby)}
2448
2448
  >
2449
- ${_s(this.options,t=>t[this.valueKey],t=>{const i=this.value==t[this.valueKey];return g`<option
2449
+ ${_s(this.options,t=>t[this.valueKey],t=>{const i=this.value==t[this.valueKey];return m`<option
2450
2450
  ?selected=${i}
2451
2451
  value="${t[this.valueKey]}"
2452
2452
  >
@@ -2467,9 +2467,9 @@
2467
2467
  name="description"
2468
2468
  @slotchange=${this.hasSlotOrProps}
2469
2469
  class="${this.hasDescription?"form-description":"hidden"}"
2470
- >${this.description?g`${F(this.description)}`:""}</slot
2470
+ >${this.description?m`${F(this.description)}`:""}</slot
2471
2471
  >
2472
- `}};K.styles=[Lt,pi,Ls,Es,x`
2472
+ `}};K.styles=[Lt,pi,Ls,Es,P`
2473
2473
  .form-element {
2474
2474
  appearance: none;
2475
2475
  white-space: nowrap;
@@ -2522,7 +2522,7 @@
2522
2522
  :host([multiple]) sonic-icon {
2523
2523
  display: none !important;
2524
2524
  }
2525
- `],J([a({type:String})],K.prototype,"valueKey",2),J([a({type:String})],K.prototype,"wordingKey",2),J([a({type:Boolean})],K.prototype,"multiple",2),J([a({type:String,reflect:!0})],K.prototype,"size",2),J([a({type:Number})],K.prototype,"selectSize",2),J([a({type:String,reflect:!0})],K.prototype,"status",2),J([a({type:Array})],K.prototype,"options",1),J([a({reflect:!0})],K.prototype,"value",1),J([a({type:Boolean})],K.prototype,"forceAutoFill",2),J([a()],K.prototype,"description",1),J([a()],K.prototype,"label",1),J([lt({slot:"label",flatten:!0})],K.prototype,"slotLabelNodes",2),J([lt({slot:"description",flatten:!0})],K.prototype,"slotDescriptionNodes",2),J([lt({slot:"suffix",flatten:!0})],K.prototype,"slotSuffixNodes",2),J([lt({slot:"prefix",flatten:!0})],K.prototype,"slotPrefixNodes",2),J([D()],K.prototype,"hasDescription",2),J([D()],K.prototype,"hasLabel",2),J([D()],K.prototype,"hasSuffix",2),J([D()],K.prototype,"hasPrefix",2),K=J([_(_l)],K);var xl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,bt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Pl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&xl(t,i,e),e};const $l="sonic-textarea";let ht=class extends $s(Oe(X(y))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const r=this.shadowRoot?.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return g`
2525
+ `],J([a({type:String})],K.prototype,"valueKey",2),J([a({type:String})],K.prototype,"wordingKey",2),J([a({type:Boolean})],K.prototype,"multiple",2),J([a({type:String,reflect:!0})],K.prototype,"size",2),J([a({type:Number})],K.prototype,"selectSize",2),J([a({type:String,reflect:!0})],K.prototype,"status",2),J([a({type:Array})],K.prototype,"options",1),J([a({reflect:!0})],K.prototype,"value",1),J([a({type:Boolean})],K.prototype,"forceAutoFill",2),J([a()],K.prototype,"description",1),J([a()],K.prototype,"label",1),J([lt({slot:"label",flatten:!0})],K.prototype,"slotLabelNodes",2),J([lt({slot:"description",flatten:!0})],K.prototype,"slotDescriptionNodes",2),J([lt({slot:"suffix",flatten:!0})],K.prototype,"slotSuffixNodes",2),J([lt({slot:"prefix",flatten:!0})],K.prototype,"slotPrefixNodes",2),J([D()],K.prototype,"hasDescription",2),J([D()],K.prototype,"hasLabel",2),J([D()],K.prototype,"hasSuffix",2),J([D()],K.prototype,"hasPrefix",2),K=J([_(_l)],K);var xl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,bt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Pl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&xl(t,i,e),e};const $l="sonic-textarea";let ht=class extends $s(Oe(X(y))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const r=this.shadowRoot?.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return m`
2526
2526
  <label
2527
2527
  for="${this.id||"form-element"}"
2528
2528
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2554,7 +2554,7 @@
2554
2554
  class="form-element textarea custom-scroll"
2555
2555
  aria-label=${$(this.ariaLabel)}
2556
2556
  aria-labelledby=${$(this.ariaLabelledby)}
2557
- style=${mt(r)}
2557
+ style=${gt(r)}
2558
2558
  >
2559
2559
  ${this.value}</textarea
2560
2560
  >
@@ -2564,14 +2564,14 @@ ${this.value}</textarea
2564
2564
  name="description"
2565
2565
  @slotchange=${this.hasSlotOrProps}
2566
2566
  class="${this.hasDescription?"form-description":"hidden"}"
2567
- >${this.description?g`${F(this.description)}`:""}</slot
2567
+ >${this.description?m`${F(this.description)}`:""}</slot
2568
2568
  >
2569
- `}};ht.styles=[Lt,pi,Ls,Es,Xe,x`
2569
+ `}};ht.styles=[Lt,pi,Ls,Es,Xe,P`
2570
2570
  textarea {
2571
2571
  overflow-y: auto !important;
2572
2572
  font-size: inherit;
2573
2573
  }
2574
- `],bt([a({type:String})],ht.prototype,"size",2),bt([a({type:Number})],ht.prototype,"rows",2),bt([a({type:Number})],ht.prototype,"cols",2),bt([a({type:Number})],ht.prototype,"maxlength",2),bt([a({type:Number})],ht.prototype,"minlength",2),bt([a({type:String})],ht.prototype,"wrap",2),bt([a({type:Boolean})],ht.prototype,"readonly",2),bt([a({type:String})],ht.prototype,"placeholder",2),bt([a({type:String})],ht.prototype,"resize",2),bt([lt({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),bt([lt({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),bt([D()],ht.prototype,"hasDescription",2),bt([D()],ht.prototype,"hasLabel",2),ht=bt([_($l)],ht);var Cl=Object.getOwnPropertyDescriptor,Sl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};let mi=class extends y{render(){return g`<slot></slot>`}};mi.styles=[x`
2574
+ `],bt([a({type:String})],ht.prototype,"size",2),bt([a({type:Number})],ht.prototype,"rows",2),bt([a({type:Number})],ht.prototype,"cols",2),bt([a({type:Number})],ht.prototype,"maxlength",2),bt([a({type:Number})],ht.prototype,"minlength",2),bt([a({type:String})],ht.prototype,"wrap",2),bt([a({type:Boolean})],ht.prototype,"readonly",2),bt([a({type:String})],ht.prototype,"placeholder",2),bt([a({type:String})],ht.prototype,"resize",2),bt([lt({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),bt([lt({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),bt([D()],ht.prototype,"hasDescription",2),bt([D()],ht.prototype,"hasLabel",2),ht=bt([_($l)],ht);var Cl=Object.getOwnPropertyDescriptor,Sl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};let gi=class extends y{render(){return m`<slot></slot>`}};gi.styles=[P`
2575
2575
  :host {
2576
2576
  font-size: 1.15rem;
2577
2577
  line-height: 1.2;
@@ -2588,8 +2588,8 @@ ${this.value}</textarea
2588
2588
  font-size: 1rem;
2589
2589
  }
2590
2590
  }
2591
- `],mi=Sl([_("sonic-legend-description")],mi);var Al=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,fe=(r,t,i,s)=>{for(var e=s>1?void 0:s?kl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Al(t,i,e),e};const Ol="sonic-legend";let qt=class extends y{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return g`<legend part="legend">
2592
- ${this.iconName?g`<div class="icon">
2591
+ `],gi=Sl([_("sonic-legend-description")],gi);var Al=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,me=(r,t,i,s)=>{for(var e=s>1?void 0:s?kl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Al(t,i,e),e};const Ol="sonic-legend";let Ht=class extends y{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return m`<legend part="legend">
2592
+ ${this.iconName?m`<div class="icon">
2593
2593
  <sonic-icon
2594
2594
  name=${this.iconName}
2595
2595
  prefix=${$(this.iconPrefix)}
@@ -2599,13 +2599,13 @@ ${this.value}</textarea
2599
2599
 
2600
2600
  <div class="legend-content">
2601
2601
  ${F(this.label?this.label:"")}
2602
- ${this.description?g`<sonic-legend-description
2602
+ ${this.description?m`<sonic-legend-description
2603
2603
  >${F(this.description)}</sonic-legend-description
2604
2604
  >`:""}
2605
2605
  <slot></slot>
2606
2606
  </div>
2607
2607
  <slot name="suffix"></slot>
2608
- </legend>`}};qt.styles=[x`
2608
+ </legend>`}};Ht.styles=[P`
2609
2609
  :host {
2610
2610
  --sc-legend-font-size: 1.5rem;
2611
2611
  --sc-legend-font-weight: var(--sc-font-weight-base, 400);
@@ -2649,19 +2649,19 @@ ${this.value}</textarea
2649
2649
  .legend-content {
2650
2650
  flex-grow: 1;
2651
2651
  }
2652
- `],fe([a({type:Boolean})],qt.prototype,"forceAutoFill",2),fe([a()],qt.prototype,"description",1),fe([a()],qt.prototype,"label",1),fe([a({type:String})],qt.prototype,"iconName",2),fe([a({type:String})],qt.prototype,"iconLibrary",2),fe([a({type:String})],qt.prototype,"iconPrefix",2),qt=fe([_(Ol)],qt);var Dl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Mt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ll(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Dl(t,i,e),e};const El="sonic-fieldset";let Pt=class extends X(y){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2652
+ `],me([a({type:Boolean})],Ht.prototype,"forceAutoFill",2),me([a()],Ht.prototype,"description",1),me([a()],Ht.prototype,"label",1),me([a({type:String})],Ht.prototype,"iconName",2),me([a({type:String})],Ht.prototype,"iconLibrary",2),me([a({type:String})],Ht.prototype,"iconPrefix",2),Ht=me([_(Ol)],Ht);var Dl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Mt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ll(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Dl(t,i,e),e};const El="sonic-fieldset";let Pt=class extends X(y){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return m`<fieldset
2653
2653
  form="${$(this.form)}"
2654
2654
  ?disabled="${this.disabled}"
2655
2655
  >
2656
- ${this.label?g` <sonic-legend
2656
+ ${this.label?m` <sonic-legend
2657
2657
  label=${$(this.label)}
2658
2658
  description=${$(this.description)}
2659
2659
  iconName=${$(this.iconName)}
2660
2660
  iconPrefix=${$(this.iconPrefix)}
2661
2661
  iconLibrary=${$(this.iconLibrary)}
2662
- ></sonic-legend>`:C}
2662
+ ></sonic-legend>`:S}
2663
2663
  <slot></slot>
2664
- </fieldset>`}};Pt.styles=[x`
2664
+ </fieldset>`}};Pt.styles=[P`
2665
2665
  :host {
2666
2666
  --sc-fieldset-mt: 0;
2667
2667
  --sc-fieldset-mb: 1rem;
@@ -2710,9 +2710,9 @@ ${this.value}</textarea
2710
2710
  ::slotted(sonic-legend:last-child) {
2711
2711
  margin-bottom: 0;
2712
2712
  }
2713
- `],Mt([a({type:Boolean,reflect:!0})],Pt.prototype,"disabled",2),Mt([a({type:String})],Pt.prototype,"form",2),Mt([a({type:String})],Pt.prototype,"label",2),Mt([a({type:String})],Pt.prototype,"description",2),Mt([a({type:String})],Pt.prototype,"iconName",2),Mt([a({type:String})],Pt.prototype,"iconLibrary",2),Mt([a({type:String})],Pt.prototype,"iconPrefix",2),Mt([a({type:Boolean,reflect:!0})],Pt.prototype,"tight",2),Mt([a({type:String,reflect:!0})],Pt.prototype,"variant",2),Pt=Mt([_(El)],Pt);var Nl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,bi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Tl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Nl(t,i,e),e};const Ml="sonic-form-layout";let es=class extends X(y){constructor(){super(...arguments),this._resizeController=new Lr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(i=>t.includes(i.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${ui(r)}>
2713
+ `],Mt([a({type:Boolean,reflect:!0})],Pt.prototype,"disabled",2),Mt([a({type:String})],Pt.prototype,"form",2),Mt([a({type:String})],Pt.prototype,"label",2),Mt([a({type:String})],Pt.prototype,"description",2),Mt([a({type:String})],Pt.prototype,"iconName",2),Mt([a({type:String})],Pt.prototype,"iconLibrary",2),Mt([a({type:String})],Pt.prototype,"iconPrefix",2),Mt([a({type:Boolean,reflect:!0})],Pt.prototype,"tight",2),Mt([a({type:String,reflect:!0})],Pt.prototype,"variant",2),Pt=Mt([_(El)],Pt);var Nl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,bi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Tl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Nl(t,i,e),e};const Ml="sonic-form-layout";let es=class extends X(y){constructor(){super(...arguments),this._resizeController=new Lr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(i=>t.includes(i.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return m`<div class=${ui(r)}>
2714
2714
  <slot @slotchange=${this.onSlotChange}></slot>
2715
- </div>`}};es.styles=[x`
2715
+ </div>`}};es.styles=[P`
2716
2716
  :host {
2717
2717
  display: block;
2718
2718
  }
@@ -2747,7 +2747,7 @@ ${this.value}</textarea
2747
2747
  ::slotted(sonic-divider) {
2748
2748
  --sc-divider-my: 0;
2749
2749
  }
2750
- `],bi([Pe({flatten:!0})],es.prototype,"slottedElements",2),bi([a({type:Boolean})],es.prototype,"oneFormElement",2),es=bi([_(Ml)],es);var Il=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,vi=(r,t,i,s)=>{for(var e=s>1?void 0:s?jl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Il(t,i,e),e};const Fl="sonic-form-actions";let ss=class extends y{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${mt(r)}></slot>`}};ss.styles=[x`
2750
+ `],bi([Pe({flatten:!0})],es.prototype,"slottedElements",2),bi([a({type:Boolean})],es.prototype,"oneFormElement",2),es=bi([_(Ml)],es);var Il=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,vi=(r,t,i,s)=>{for(var e=s>1?void 0:s?jl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Il(t,i,e),e};const Fl="sonic-form-actions";let ss=class extends y{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${gt(r)}></slot>`}};ss.styles=[P`
2751
2751
  :host {
2752
2752
  display: block;
2753
2753
  }
@@ -2756,20 +2756,20 @@ ${this.value}</textarea
2756
2756
  flex-wrap: wrap;
2757
2757
  gap: 0.3rem;
2758
2758
  }
2759
- `],vi([a({type:String})],ss.prototype,"direction",2),vi([a({type:String})],ss.prototype,"justify",2),ss=vi([_(Fl)],ss);var zl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,se=(r,t,i,s)=>{for(var e=s>1?void 0:s?Rl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zl(t,i,e),e};const Ul="sonic-group";let It=class extends y{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((i,s)=>{const e=i;s===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):s===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2759
+ `],vi([a({type:String})],ss.prototype,"direction",2),vi([a({type:String})],ss.prototype,"justify",2),ss=vi([_(Fl)],ss);var zl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,se=(r,t,i,s)=>{for(var e=s>1?void 0:s?Rl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zl(t,i,e),e};const Ul="sonic-group";let It=class extends y{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((i,s)=>{const e=i;s===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):s===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const r={alignItems:this.alignItems};return m`<span class="${this.hasLabel?"form-label":"hidden"}"
2760
2760
  >${this.label?F(this.label):""}<slot
2761
2761
  name="label"
2762
2762
  @slotchange=${this.hasSlotOrProps}
2763
2763
  ></slot
2764
2764
  ></span>
2765
- <slot class="main-slot" style=${mt(r)}></slot>
2765
+ <slot class="main-slot" style=${gt(r)}></slot>
2766
2766
  <slot
2767
2767
  name="description"
2768
2768
  @slotchange=${this.hasSlotOrProps}
2769
2769
  class="${this.hasDescription?"form-description":"hidden"}"
2770
2770
  >
2771
- ${this.description?g`${F(this.description)}`:""}
2772
- </slot>`}};It.styles=[Lt,Ls,Es,x`
2771
+ ${this.description?m`${F(this.description)}`:""}
2772
+ </slot>`}};It.styles=[Lt,Ls,Es,P`
2773
2773
  :host {
2774
2774
  display: inline-block;
2775
2775
  vertical-align: middle;
@@ -2789,16 +2789,16 @@ ${this.value}</textarea
2789
2789
  ::slotted(sonic-select) {
2790
2790
  flex-grow: 1;
2791
2791
  }
2792
- `],se([a({type:String})],It.prototype,"alignItems",2),se([a({type:String})],It.prototype,"label",2),se([a({type:String})],It.prototype,"description",2),se([lt({slot:"label",flatten:!0})],It.prototype,"slotLabelNodes",2),se([lt({slot:"description",flatten:!0})],It.prototype,"slotDescriptionNodes",2),se([D()],It.prototype,"hasDescription",2),se([D()],It.prototype,"hasLabel",2),It=se([_(Ul)],It);var Vl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,jt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Vl(t,i,e),e};const ql="sonic-image";let $t=class extends y{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2792
+ `],se([a({type:String})],It.prototype,"alignItems",2),se([a({type:String})],It.prototype,"label",2),se([a({type:String})],It.prototype,"description",2),se([lt({slot:"label",flatten:!0})],It.prototype,"slotLabelNodes",2),se([lt({slot:"description",flatten:!0})],It.prototype,"slotDescriptionNodes",2),se([D()],It.prototype,"hasDescription",2),se([D()],It.prototype,"hasLabel",2),It=se([_(Ul)],It);var Vl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,jt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Vl(t,i,e),e};const ql="sonic-image";let $t=class extends y{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return m`<div part="image">
2793
2793
  <picture part="picture"
2794
2794
  ><img
2795
2795
  part="img"
2796
2796
  src="${this.src}"
2797
2797
  loading="${this.loading}"
2798
2798
  alt="${this.alt}"
2799
- style=${mt(r)}
2799
+ style=${gt(r)}
2800
2800
  /></picture>
2801
- </div>`}};$t.styles=[x`
2801
+ </div>`}};$t.styles=[P`
2802
2802
  :host {
2803
2803
  --sc-img-radius: 0;
2804
2804
  --sc-img-bg: var(--sc-placeholder-bg, rgba(12, 12, 12, 0.05));
@@ -2872,18 +2872,18 @@ ${this.value}</textarea
2872
2872
  opacity: 1;
2873
2873
  scale: 1;
2874
2874
  }
2875
- `],jt([a({type:String})],$t.prototype,"rounded",2),jt([a({type:String})],$t.prototype,"src",2),jt([a({type:String})],$t.prototype,"alt",2),jt([a({type:String})],$t.prototype,"loading",2),jt([a({type:String,reflect:!0})],$t.prototype,"transition",2),jt([a({type:String})],$t.prototype,"ratio",2),jt([a({type:String})],$t.prototype,"objectPosition",2),jt([a({type:String})],$t.prototype,"imageRendering",2),jt([a({type:Boolean,reflect:!0})],$t.prototype,"cover",2),$t=jt([_(ql)],$t);var Hl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,wt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Hl(t,i,e),e};const Kl="sonic-menu";let gt=class extends y{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(s=>{s.hasAttribute("size")||s.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){this.observer?.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",s=>{r=!0,this.classList.add("active"),t=s.pageX-this.offsetLeft,i=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",s=>{if(!r)return;s.preventDefault();const o=(s.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=i-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",s=>{s.preventDefault(),this.setScrollShadow(this,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",i={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},s={marginLeft:t?"":".55em"};return g`<menu
2875
+ `],jt([a({type:String})],$t.prototype,"rounded",2),jt([a({type:String})],$t.prototype,"src",2),jt([a({type:String})],$t.prototype,"alt",2),jt([a({type:String})],$t.prototype,"loading",2),jt([a({type:String,reflect:!0})],$t.prototype,"transition",2),jt([a({type:String})],$t.prototype,"ratio",2),jt([a({type:String})],$t.prototype,"objectPosition",2),jt([a({type:String})],$t.prototype,"imageRendering",2),jt([a({type:Boolean,reflect:!0})],$t.prototype,"cover",2),$t=jt([_(ql)],$t);var Hl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,vt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Hl(t,i,e),e};const Kl="sonic-menu";let dt=class extends y{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(s=>{s.hasAttribute("size")||s.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(r=>{this.attributeObserver.observe(r,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const r=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");r.length===1&&requestAnimationFrame(()=>{r[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(r){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let r=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",s=>{r=!0,this.classList.add("active"),t=s.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",s=>{if(!r)return;s.preventDefault();const o=(s.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-o,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",s=>{s.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",i={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},s={marginLeft:t?"":".55em"};return m`<menu
2876
2876
  part="menu"
2877
2877
  class="shadowable"
2878
- style=${mt(r)}
2878
+ style=${gt(r)}
2879
2879
  >
2880
- <slot @slotchange=${this.mainSlotChange}></slot>
2880
+ <slot @slotchange=${this.mainSlotChange} id="menu-content"></slot>
2881
2881
  <sonic-pop
2882
- style=${mt(i)}
2882
+ style=${gt(i)}
2883
2883
  class=${this.hasMoreElements?"":"hidden"}
2884
2884
  >
2885
2885
  <sonic-menu-item
2886
- style=${mt(s)}
2886
+ style=${gt(s)}
2887
2887
  class="more-btn"
2888
2888
  shape=${this.moreShape}
2889
2889
  align="center"
@@ -2893,9 +2893,13 @@ ${this.value}</textarea
2893
2893
  name=${t?"more-vert":"more-horiz"}
2894
2894
  ></sonic-icon>
2895
2895
  </sonic-menu-item>
2896
- <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
2896
+ <slot
2897
+ name="more"
2898
+ @slotchange=${this.moreSlotChange}
2899
+ slot="content"
2900
+ ></slot>
2897
2901
  </sonic-pop>
2898
- </menu>`}};gt.styles=[x`
2902
+ </menu>`}};dt.styles=[P`
2899
2903
  :host {
2900
2904
  display: block;
2901
2905
  --sc-menu-gap: 0.15rem;
@@ -2903,9 +2907,8 @@ ${this.value}</textarea
2903
2907
 
2904
2908
  :host > menu {
2905
2909
  display: flex;
2906
- border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
2910
+ padding: 0;
2907
2911
  margin: 0;
2908
- padding: 0.35em;
2909
2912
  }
2910
2913
 
2911
2914
  .hidden {
@@ -2913,26 +2916,34 @@ ${this.value}</textarea
2913
2916
  }
2914
2917
 
2915
2918
  /* SCROLLABLE*/
2916
- :host([scrollable]) {
2919
+ :host([scrollable]) #menu-content {
2917
2920
  scrollbar-width: none;
2921
+ max-width: 100%;
2918
2922
  -ms-overflow-style: none;
2919
- }
2920
- :host([scrollable]) menu > * {
2921
2923
  scroll-snap-align: start;
2922
2924
  white-space: nowrap;
2925
+ display: flex;
2926
+ gap: var(--sc-menu-gap);
2927
+ border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
2928
+ margin: 0;
2929
+ padding: 0.35em;
2930
+ transition: mask-image 0.15s linear;
2923
2931
  }
2924
- :host([scrollable][direction="row"]) {
2932
+
2933
+ :host([scrollable][direction="row"]) #menu-content {
2925
2934
  overflow-x: scroll;
2935
+ scroll-snap-align: start;
2926
2936
  scroll-snap-type: x mandatory;
2927
2937
  }
2928
- :host([scrollable][direction="column"]) {
2938
+ :host([scrollable][direction="column"]) #menu-content {
2929
2939
  overflow-y: scroll;
2940
+ scroll-snap-align: start;
2930
2941
  scroll-snap-type: y mandatory;
2931
2942
  }
2932
2943
  :host([scrollable])::-webkit-scrollbar {
2933
2944
  display: none !important;
2934
2945
  }
2935
- :host([scrollable][direction="row"].shadow-right) {
2946
+ :host([scrollable][direction="row"].shadow-right) #menu-content {
2936
2947
  -webkit-mask-image: linear-gradient(
2937
2948
  to left,
2938
2949
  rgba(0, 0, 0, 0),
@@ -2944,7 +2955,7 @@ ${this.value}</textarea
2944
2955
  rgba(0, 0, 0, 1) 10%
2945
2956
  );
2946
2957
  }
2947
- :host([scrollable][direction="row"].shadow-left) {
2958
+ :host([scrollable][direction="row"].shadow-left) #menu-content {
2948
2959
  -webkit-mask-image: linear-gradient(
2949
2960
  to right,
2950
2961
  rgba(0, 0, 0, 0),
@@ -2956,7 +2967,8 @@ ${this.value}</textarea
2956
2967
  rgba(0, 0, 0, 1) 10%
2957
2968
  );
2958
2969
  }
2959
- :host([scrollable][direction="row"].shadow-left.shadow-right) {
2970
+ :host([scrollable][direction="row"].shadow-left.shadow-right)
2971
+ #menu-content {
2960
2972
  -webkit-mask-image: linear-gradient(
2961
2973
  to right,
2962
2974
  rgba(0, 0, 0, 0) 0%,
@@ -2972,7 +2984,7 @@ ${this.value}</textarea
2972
2984
  rgba(0, 0, 0, 0) 100%
2973
2985
  );
2974
2986
  }
2975
- :host([scrollable][direction="column"].shadow-top) {
2987
+ :host([scrollable][direction="column"].shadow-top) #menu-content {
2976
2988
  -webkit-mask-image: linear-gradient(
2977
2989
  to bottom,
2978
2990
  rgba(0, 0, 0, 0),
@@ -2984,7 +2996,7 @@ ${this.value}</textarea
2984
2996
  rgba(0, 0, 0, 1) 10%
2985
2997
  );
2986
2998
  }
2987
- :host([scrollable][direction="column"].shadow-bottom) {
2999
+ :host([scrollable][direction="column"].shadow-bottom) #menu-content {
2988
3000
  -webkit-mask-image: linear-gradient(
2989
3001
  to top,
2990
3002
  rgba(0, 0, 0, 0),
@@ -2996,7 +3008,8 @@ ${this.value}</textarea
2996
3008
  rgba(0, 0, 0, 1) 10%
2997
3009
  );
2998
3010
  }
2999
- :host([scrollable][direction="column"].shadow-top.shadow-bottom) {
3011
+ :host([scrollable][direction="column"].shadow-top.shadow-bottom)
3012
+ #menu-content {
3000
3013
  -webkit-mask-image: linear-gradient(
3001
3014
  to top,
3002
3015
  rgba(0, 0, 0, 0) 0%,
@@ -3012,25 +3025,25 @@ ${this.value}</textarea
3012
3025
  rgba(0, 0, 0, 0) 100%
3013
3026
  );
3014
3027
  }
3015
- `,Or],wt([a({type:String,reflect:!0})],gt.prototype,"size",2),wt([a({type:String,reflect:!0})],gt.prototype,"direction",2),wt([a({type:String})],gt.prototype,"gap",2),wt([a({type:String,reflect:!0})],gt.prototype,"align",2),wt([a({type:String,reflect:!0})],gt.prototype,"shadow",2),wt([a({type:String})],gt.prototype,"moreShape",2),wt([a({type:Boolean})],gt.prototype,"scrollable",2),wt([a({type:String})],gt.prototype,"minWidth",2),wt([xe("menu")],gt.prototype,"menu",2),wt([Pe({selector:"sonic-menu-item"})],gt.prototype,"menuChildren",2),wt([Pe({slot:"more",selector:"*"})],gt.prototype,"moreElements",2),wt([D()],gt.prototype,"hasMoreElements",2),gt=wt([_(Kl)],gt);var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Er=(r,t,i,s)=>{for(var e=s>1?void 0:s?Xl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Yl(t,i,e),e};const Zl="sonic-modal-actions";let Ns=class extends y{firstUpdated(r){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{Xt.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Ns.styles=[x`
3028
+ `,Or],vt([a({type:String,reflect:!0})],dt.prototype,"size",2),vt([a({type:String,reflect:!0})],dt.prototype,"direction",2),vt([a({type:String})],dt.prototype,"gap",2),vt([a({type:String,reflect:!0})],dt.prototype,"align",2),vt([a({type:String,reflect:!0})],dt.prototype,"shadow",2),vt([a({type:String})],dt.prototype,"moreShape",2),vt([a({type:Boolean})],dt.prototype,"scrollable",2),vt([a({type:String})],dt.prototype,"minWidth",2),vt([oe("menu")],dt.prototype,"menu",2),vt([oe("#menu-content")],dt.prototype,"menuContent",2),vt([Pe({selector:"sonic-menu-item"})],dt.prototype,"menuChildren",2),vt([Pe({slot:"more",selector:"*"})],dt.prototype,"moreElements",2),vt([D()],dt.prototype,"hasMoreElements",2),dt=vt([_(Kl)],dt);var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Er=(r,t,i,s)=>{for(var e=s>1?void 0:s?Xl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Yl(t,i,e),e};const Zl="sonic-modal-actions";let Ns=class extends y{firstUpdated(r){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{Zt.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Ns.styles=[P`
3016
3029
  :host {
3017
3030
  display: flex;
3018
3031
  gap: 0.5rem;
3019
3032
  margin-top: auto;
3020
3033
  padding-top: 1.5rem;
3021
3034
  }
3022
- `],Er([Pe({selector:"sonic-button"})],Ns.prototype,"buttons",2),Ns=Er([_(Zl)],Ns);var Gl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,yi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ql(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Gl(t,i,e),e};const Jl="sonic-modal-close";let Ts=class extends y{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return g`<sonic-button
3035
+ `],Er([Pe({selector:"sonic-button"})],Ns.prototype,"buttons",2),Ns=Er([_(Zl)],Ns);var Gl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,yi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ql(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Gl(t,i,e),e};const Jl="sonic-modal-close";let Ts=class extends y{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return m`<sonic-button
3023
3036
  aria-label=${this.translation[this.lang]}
3024
3037
  reset=${$(this.reset)}
3025
3038
  shape="circle"
3026
3039
  @click=${this.handleClick}
3027
3040
  ><sonic-icon name="cancel" size="lg"></sonic-icon
3028
- ></sonic-button>`}handleClick(){H.getClosestElement(this,"sonic-modal").hide()}};yi([a()],Ts.prototype,"translation",2),yi([a()],Ts.prototype,"reset",2),Ts=yi([_(Jl)],Ts);var tc=Object.getOwnPropertyDescriptor,ec=(r,t,i,s)=>{for(var e=s>1?void 0:s?tc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const sc="sonic-modal-content";let wi=class extends y{render(){return g`<slot></slot>`}};wi.styles=[x`
3041
+ ></sonic-button>`}handleClick(){H.getClosestElement(this,"sonic-modal").hide()}};yi([a()],Ts.prototype,"translation",2),yi([a()],Ts.prototype,"reset",2),Ts=yi([_(Jl)],Ts);var tc=Object.getOwnPropertyDescriptor,ec=(r,t,i,s)=>{for(var e=s>1?void 0:s?tc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const sc="sonic-modal-content";let wi=class extends y{render(){return m`<slot></slot>`}};wi.styles=[P`
3029
3042
  :host {
3030
3043
  display: block;
3031
3044
  width: 100%;
3032
3045
  }
3033
- `],wi=ec([_(sc)],wi);var ic=Object.getOwnPropertyDescriptor,rc=(r,t,i,s)=>{for(var e=s>1?void 0:s?ic(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const oc="sonic-modal-subtitle";let _i=class extends y{render(){return g`<slot></slot>`}};_i.styles=[x`
3046
+ `],wi=ec([_(sc)],wi);var ic=Object.getOwnPropertyDescriptor,rc=(r,t,i,s)=>{for(var e=s>1?void 0:s?ic(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const oc="sonic-modal-subtitle";let _i=class extends y{render(){return m`<slot></slot>`}};_i.styles=[P`
3034
3047
  :host {
3035
3048
  font-size: 1.25rem;
3036
3049
  display: block;
@@ -3042,7 +3055,7 @@ ${this.value}</textarea
3042
3055
  font-weight: var(--sc-headings-font-weight, 700);
3043
3056
  font-style: var(--sc-headings-font-style, normal);
3044
3057
  }
3045
- `],_i=rc([_(oc)],_i);var nc=Object.getOwnPropertyDescriptor,ac=(r,t,i,s)=>{for(var e=s>1?void 0:s?nc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const lc="sonic-modal-title";let xi=class extends y{render(){return g`<slot></slot>`}};xi.styles=[x`
3058
+ `],_i=rc([_(oc)],_i);var nc=Object.getOwnPropertyDescriptor,ac=(r,t,i,s)=>{for(var e=s>1?void 0:s?nc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const lc="sonic-modal-title";let xi=class extends y{render(){return m`<slot></slot>`}};xi.styles=[P`
3046
3059
  :host {
3047
3060
  font-weight: bold;
3048
3061
  font-size: 1.5rem;
@@ -3055,27 +3068,27 @@ ${this.value}</textarea
3055
3068
  font-weight: var(--sc-headings-font-weight, 700);
3056
3069
  font-style: var(--sc-headings-font-style, normal);
3057
3070
  }
3058
- `],xi=ac([_(lc)],xi);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,G=(r,t,i,s)=>{for(var e=s>1?void 0:s?hc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&cc(t,i,e),e};const Nr="sonic-modal";let M=class extends X(y){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(r){const t=document.createElement(Nr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),r.maxWidth&&(t.maxWidth=r?.maxWidth),r.width&&(t.width=r?.width),r.maxHeight&&(t.maxHeight=r?.maxHeight),r.height&&(t.height=r?.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r?.fullScreen),r.effect&&(t.effect=r?.effect),r.noCloseButton&&(t.noCloseButton=!0),r.paddingX&&(t.paddingX=r?.paddingX),r.paddingY&&(t.paddingY=r?.paddingY),r.zIndex&&(t.zIndex=r?.zIndex),yt.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){M.modals.push(this),et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),M.modals.splice(M.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(r){if(this.closeOnLocationChange&&r.has("location")){const t=r.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}r.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),r.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),r.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(r)}updated(r){const t=!r.get("visible")&&this.visible,i=r.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():i&&this._animationState==="visible"&&this.hide()}handleOverlayClick(r){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const r={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState==="visible"?"auto":"none"},t={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return g`
3071
+ `],xi=ac([_(lc)],xi);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,G=(r,t,i,s)=>{for(var e=s>1?void 0:s?hc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&cc(t,i,e),e};const Nr="sonic-modal";let M=class extends X(y){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(r){const t=document.createElement(Nr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),r.maxWidth&&(t.maxWidth=r?.maxWidth),r.width&&(t.width=r?.width),r.maxHeight&&(t.maxHeight=r?.maxHeight),r.height&&(t.height=r?.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r?.fullScreen),r.effect&&(t.effect=r?.effect),r.noCloseButton&&(t.noCloseButton=!0),r.paddingX&&(t.paddingX=r?.paddingX),r.paddingY&&(t.paddingY=r?.paddingY),r.zIndex&&(t.zIndex=r?.zIndex),wt.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){M.modals.push(this),et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),M.modals.splice(M.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(r){if(this.closeOnLocationChange&&r.has("location")){const t=r.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}r.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),r.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),r.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(r)}updated(r){const t=!r.get("visible")&&this.visible,i=r.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():i&&this._animationState==="visible"&&this.hide()}handleOverlayClick(r){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const r={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState!=="hidden"?"auto":"none"},t={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return m`
3059
3072
  <div
3060
3073
  id="backdrop"
3061
3074
  @click=${this.handleOverlayClick}
3062
- style=${mt(t)}
3075
+ style=${gt(t)}
3063
3076
  ></div>
3064
3077
  <dialog
3065
3078
  id="modal"
3066
3079
  part="modal"
3067
3080
  class="custom-scroll"
3068
3081
  aria-modal="true"
3069
- style=${mt(r)}
3082
+ style=${gt(r)}
3070
3083
  >
3071
- ${this._animationState!=="hidden"?g`<div id="modal-content">
3072
- ${!this.forceAction&&!this.noCloseButton?g`<sonic-modal-close></sonic-modal-close>`:C}
3084
+ ${this._animationState!=="hidden"?m`<div id="modal-content">
3085
+ ${!this.forceAction&&!this.noCloseButton?m`<sonic-modal-close></sonic-modal-close>`:S}
3073
3086
  ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
3074
3087
  ${this.modalFragment("content")} ${this.modalFragment("actions")}
3075
3088
  <slot></slot>
3076
- </div>`:C}
3089
+ </div>`:S}
3077
3090
  </dialog>
3078
- `}modalFragment(r){const t=this.options?.[r];if(!t)return C;let i;switch(t instanceof Object?i=t:i=F(t),r){case"title":return g`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${i}</sonic-modal-actions>`;default:return C}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&st.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){M.modals.forEach(r=>{r.dispose()})}handleEscape(r){if(r.key==="Escape"){r.preventDefault();const t=M.modals.filter(i=>i._animationState!=="hidden"&&!i.forceAction);t.length>0&&t[t.length-1].hide()}}animation(r){return new Promise(t=>{const{quartOut:i,linear:s,translateY:e,durationIn:o,durationOut:n,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=r==="in",f=h?o:n,d=!this.fullScreen&&h?100:0;this.fullScreen||(h?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const m=[];this.effect==="slide"&&(m.push(c.animate([{transform:h?e:"translateY(0)"},{transform:h?"translateY(0)":e}],{duration:f,easing:h?i:l,fill:"both",delay:d})),m.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:f,easing:s,fill:"both",delay:d}))),Promise.all(m.map(v=>v.finished)).then(()=>t())})}};M.styles=[Xe,x`
3091
+ `}modalFragment(r){const t=this.options?.[r];if(!t)return S;let i;switch(t instanceof Object?i=t:i=F(t),r){case"title":return m`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return m`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return m`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return m`<sonic-modal-actions>${i}</sonic-modal-actions>`;default:return S}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&st.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){M.modals.forEach(r=>{r.dispose()})}handleEscape(r){if(r.key==="Escape"){r.preventDefault();const t=M.modals.filter(i=>i._animationState!=="hidden"&&!i.forceAction);t.length>0&&t[t.length-1].hide()}}animation(r){return new Promise(t=>{const{quartOut:i,linear:s,translateY:e,durationIn:o,durationOut:n,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=r==="in",u=h?o:n,d=!this.fullScreen&&h?100:0;this.fullScreen||(h?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const g=[];this.effect==="slide"&&(g.push(c.animate([{transform:h?e:"translateY(0)"},{transform:h?"translateY(0)":e}],{duration:u,easing:h?i:l,fill:"both",delay:d})),g.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:u,easing:s,fill:"both",delay:d}))),Promise.all(g.map(v=>v.finished)).then(()=>t())})}};M.styles=[Xe,P`
3079
3092
  :host {
3080
3093
  --sc-modal-py: 2.5rem;
3081
3094
  --sc-modal-px: 1.5rem;
@@ -3152,12 +3165,12 @@ ${this.value}</textarea
3152
3165
  /* Layout des éléments slottés */
3153
3166
  ::slotted(sonic-modal-title),
3154
3167
  sonic-modal-title {
3155
- margin-bottom: 1.75rem;
3168
+ margin-bottom: 1.2rem;
3156
3169
  }
3157
3170
  ::slotted(sonic-modal-subtitle),
3158
3171
  sonic-modal-subtitle {
3159
- margin-bottom: 1.75rem;
3160
- margin-top: -1.25rem;
3172
+ margin-bottom: 1.2rem;
3173
+ margin-top: -1rem;
3161
3174
  }
3162
3175
 
3163
3176
  :host([align="left"]) ::slotted(sonic-modal-title),
@@ -3209,17 +3222,17 @@ ${this.value}</textarea
3209
3222
  :host([rounded="none"]) #modal {
3210
3223
  --sc-img-radius: 0 !important;
3211
3224
  }
3212
- `],M.modals=[],G([a({type:Boolean})],M.prototype,"forceAction",2),G([a({type:Boolean})],M.prototype,"noCloseButton",2),G([a({type:Boolean})],M.prototype,"removeOnHide",2),G([a({type:Boolean})],M.prototype,"removeHashOnHide",2),G([a({type:String,reflect:!0})],M.prototype,"align",2),G([a({type:String})],M.prototype,"paddingX",2),G([a({type:String})],M.prototype,"paddingY",2),G([a({type:String})],M.prototype,"maxWidth",2),G([a({type:String})],M.prototype,"maxHeight",2),G([a({type:String})],M.prototype,"zIndex",2),G([a({type:String})],M.prototype,"width",2),G([a({type:String})],M.prototype,"height",2),G([a({type:String})],M.prototype,"effect",2),G([a({type:Object})],M.prototype,"options",2),G([a({type:Boolean,reflect:!0})],M.prototype,"fullScreen",2),G([a({type:Boolean,reflect:!0})],M.prototype,"visible",2),G([xe("#modal")],M.prototype,"_modalElement",2),G([a({type:Boolean})],M.prototype,"closeOnLocationChange",2),G([D()],M.prototype,"location",2),G([D()],M.prototype,"_animationState",2),M=G([_(Nr)],M),typeof window<"u"&&(window.SonicModal=M);var dc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,Ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?pc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&dc(t,i,e),e};const uc={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},fc="sonic-alert";let Ct=class extends y{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}connectedCallback(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(r)[this.id]&&this.remove()}super.connectedCallback()}render(){return g`
3225
+ `],M.modals=[],G([a({type:Boolean})],M.prototype,"forceAction",2),G([a({type:Boolean})],M.prototype,"noCloseButton",2),G([a({type:Boolean})],M.prototype,"removeOnHide",2),G([a({type:Boolean})],M.prototype,"removeHashOnHide",2),G([a({type:String,reflect:!0})],M.prototype,"align",2),G([a({type:String})],M.prototype,"paddingX",2),G([a({type:String})],M.prototype,"paddingY",2),G([a({type:String})],M.prototype,"maxWidth",2),G([a({type:String})],M.prototype,"maxHeight",2),G([a({type:String})],M.prototype,"zIndex",2),G([a({type:String})],M.prototype,"width",2),G([a({type:String})],M.prototype,"height",2),G([a({type:String})],M.prototype,"effect",2),G([a({type:Object})],M.prototype,"options",2),G([a({type:Boolean,reflect:!0})],M.prototype,"fullScreen",2),G([a({type:Boolean,reflect:!0})],M.prototype,"visible",2),G([oe("#modal")],M.prototype,"_modalElement",2),G([a({type:Boolean})],M.prototype,"closeOnLocationChange",2),G([D()],M.prototype,"location",2),G([D()],M.prototype,"_animationState",2),M=G([_(Nr)],M),typeof window<"u"&&(window.SonicModal=M);var dc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,Ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?pc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&dc(t,i,e),e};const uc={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},fc="sonic-alert";let Ct=class extends y{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}connectedCallback(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(r)[this.id]&&this.remove()}super.connectedCallback()}render(){return m`
3213
3226
  <slot name="icon" class="${this.noIcon?"hidden":""}"
3214
- >${this.noIcon?C:g`<div>
3215
- ${this.status&&g`<sonic-icon name=${uc[this.status]}></sonic-icon>`}
3227
+ >${this.noIcon?S:m`<div>
3228
+ ${this.status&&m`<sonic-icon name=${uc[this.status]}></sonic-icon>`}
3216
3229
  </div>`}</slot
3217
3230
  >
3218
3231
  <div class="content">
3219
- ${this.label?g`<span class="label">${F(this.label)}</span>`:C}
3232
+ ${this.label?m`<span class="label">${F(this.label)}</span>`:S}
3220
3233
  <div>${this.text}<slot></slot></div>
3221
3234
  </div>
3222
- ${this.dismissible?g`<sonic-button
3235
+ ${this.dismissible?m`<sonic-button
3223
3236
  @click=${this.close}
3224
3237
  class="close-btn"
3225
3238
  variant="unstyled"
@@ -3227,8 +3240,8 @@ ${this.value}</textarea
3227
3240
  icon
3228
3241
  >
3229
3242
  <sonic-icon name="cancel"></sonic-icon>
3230
- </sonic-button>`:C}
3231
- `}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};Ct.styles=[Lt,x`
3243
+ </sonic-button>`:S}
3244
+ `}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};Ct.styles=[Lt,P`
3232
3245
  :host {
3233
3246
  --sc_color: var(--sc-base-content, #000);
3234
3247
  --sc_rounded: var(--sc-rounded);
@@ -3315,27 +3328,27 @@ ${this.value}</textarea
3315
3328
  top: 0.4rem;
3316
3329
  right: 0.3rem;
3317
3330
  }
3318
- `],Ft([a({type:String})],Ct.prototype,"label",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"noIcon",2),Ft([a({type:String})],Ct.prototype,"text",2),Ft([a({type:String})],Ct.prototype,"id",2),Ft([a({type:String,reflect:!0})],Ct.prototype,"size",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"dismissible",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"background",2),Ft([a({type:String,reflect:!0})],Ct.prototype,"status",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"dismissForever",2),Ct=Ft([_(fc)],Ct);var gc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,is=(r,t,i,s)=>{for(var e=s>1?void 0:s?mc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&gc(t,i,e),e};const bc="sonic-alert-messages";let ge=class extends X(y){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?g`<div class="container">
3319
- ${Pr(this.messages,r=>r.type=="public"?g`<sonic-alert
3331
+ `],Ft([a({type:String})],Ct.prototype,"label",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"noIcon",2),Ft([a({type:String})],Ct.prototype,"text",2),Ft([a({type:String})],Ct.prototype,"id",2),Ft([a({type:String,reflect:!0})],Ct.prototype,"size",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"dismissible",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"background",2),Ft([a({type:String,reflect:!0})],Ct.prototype,"status",2),Ft([a({type:Boolean,reflect:!0})],Ct.prototype,"dismissForever",2),Ct=Ft([_(fc)],Ct);var mc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,is=(r,t,i,s)=>{for(var e=s>1?void 0:s?gc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&mc(t,i,e),e};const bc="sonic-alert-messages";let ge=class extends X(y){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?m`<div class="container">
3332
+ ${Pr(this.messages,r=>r.type=="public"?m`<sonic-alert
3320
3333
  status=${r.status||"default"}
3321
3334
  text=${$(r.content)}
3322
3335
  size=${this.size}
3323
3336
  ?noIcon=${this.noIcon}
3324
3337
  ?background=${this.background}
3325
- ></sonic-alert>`:C)}
3326
- </div>`:C}};ge.styles=[x`
3338
+ ></sonic-alert>`:S)}
3339
+ </div>`:S}};ge.styles=[P`
3327
3340
  .container {
3328
3341
  display: grid;
3329
3342
  gap: 0.5em;
3330
3343
  grid-template-columns: minmax(0, 1fr);
3331
3344
  width: 100%;
3332
3345
  }
3333
- `],is([a({type:String})],ge.prototype,"size",2),is([a({type:Boolean})],ge.prototype,"background",2),is([a({type:Boolean})],ge.prototype,"noIcon",2),is([a({type:Array})],ge.prototype,"messages",2),ge=is([_(bc)],ge);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Tr=(r,t,i,s)=>{for(var e=s>1?void 0:s?yc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&vc(t,i,e),e};const wc="sonic-toast-message-subscriber";let Pi=class extends X(y){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&O.add({text:t.content||"",status:t.status})})}render(){return C}};Tr([a({type:Array})],Pi.prototype,"messages",1),Pi=Tr([_(wc)],Pi);var _c=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,rs=(r,t,i,s)=>{for(var e=s>1?void 0:s?xc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&_c(t,i,e),e};const Pc="sonic-tooltip";let me=class extends y{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}willUpdate(r){if(r.has("disabled")){const t=r.get("disabled")===!0;this.disabled?this.setAttribute("tabindex","-1"):!this.disabled&&t&&this.removeAttribute("tabindex")}super.willUpdate(r)}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div
3346
+ `],is([a({type:String})],ge.prototype,"size",2),is([a({type:Boolean})],ge.prototype,"background",2),is([a({type:Boolean})],ge.prototype,"noIcon",2),is([a({type:Array})],ge.prototype,"messages",2),ge=is([_(bc)],ge);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Tr=(r,t,i,s)=>{for(var e=s>1?void 0:s?yc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&vc(t,i,e),e};const wc="sonic-toast-message-subscriber";let Pi=class extends X(y){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&O.add({text:t.content||"",status:t.status})})}render(){return S}};Tr([a({type:Array})],Pi.prototype,"messages",1),Pi=Tr([_(wc)],Pi);var _c=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,rs=(r,t,i,s)=>{for(var e=s>1?void 0:s?xc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&_c(t,i,e),e};const Pc="sonic-tooltip";let be=class extends y{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}willUpdate(r){if(r.has("disabled")){const t=r.get("disabled")===!0;this.disabled?this.setAttribute("tabindex","-1"):!this.disabled&&t&&this.removeAttribute("tabindex")}super.willUpdate(r)}render(){const r=this.disabled||this.label==""?"disabled":"";return m`<div
3334
3347
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3335
3348
  class="tooltip ${r}"
3336
3349
  >
3337
3350
  <slot></slot>
3338
- </div>`}};me.styles=[x`
3351
+ </div>`}};be.styles=[P`
3339
3352
  :host {
3340
3353
  position: relative;
3341
3354
  display: inline-flex;
@@ -3442,11 +3455,11 @@ ${this.value}</textarea
3442
3455
  bottom: 0;
3443
3456
  left: var(--sc-tooltip-position);
3444
3457
  }
3445
- `],rs([a({type:String})],me.prototype,"label",2),rs([a({type:String,reflect:!0})],me.prototype,"placement",2),rs([a({type:Boolean})],me.prototype,"disabled",2),rs([a({type:Boolean})],me.prototype,"focusable",2),me=rs([_(Pc)],me);var $c=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,zt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&$c(t,i,e),e};const Sc="sonic-divider";let St=class extends y{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){super.firstUpdated(r),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return g`<div part="divider">
3458
+ `],rs([a({type:String})],be.prototype,"label",2),rs([a({type:String,reflect:!0})],be.prototype,"placement",2),rs([a({type:Boolean})],be.prototype,"disabled",2),rs([a({type:Boolean})],be.prototype,"focusable",2),be=rs([_(Pc)],be);var $c=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,zt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&$c(t,i,e),e};const Sc="sonic-divider";let St=class extends y{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){super.firstUpdated(r),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return m`<div part="divider">
3446
3459
  <span class="text"
3447
3460
  >${F(this.label?this.label:"")}<slot></slot
3448
3461
  ></span>
3449
- </div>`}};St.styles=[x`
3462
+ </div>`}};St.styles=[P`
3450
3463
  :host {
3451
3464
  --sc-divider-my: 0.5rem;
3452
3465
  --sc-divider-mx: 0;
@@ -3577,7 +3590,7 @@ ${this.value}</textarea
3577
3590
  :host([dashed]) {
3578
3591
  --sc-divider-border-style: dashed;
3579
3592
  }
3580
- `],zt([lt({flatten:!0})],St.prototype,"slotNodes",2),zt([xe("div")],St.prototype,"divider",2),zt([a({type:String})],St.prototype,"label",2),zt([a({type:String,reflect:!0})],St.prototype,"size",2),zt([a({type:String,reflect:!0})],St.prototype,"align",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"vertical",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"noMargin",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"dashed",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"dotted",2),St=zt([_(Sc)],St);var Ac=Object.getOwnPropertyDescriptor,kc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ac(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Oc="sonic-card-header-description";let $i=class extends y{render(){return g`<slot></slot>`}};$i.styles=[x`
3593
+ `],zt([lt({flatten:!0})],St.prototype,"slotNodes",2),zt([oe("div")],St.prototype,"divider",2),zt([a({type:String})],St.prototype,"label",2),zt([a({type:String,reflect:!0})],St.prototype,"size",2),zt([a({type:String,reflect:!0})],St.prototype,"align",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"vertical",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"noMargin",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"dashed",2),zt([a({type:Boolean,reflect:!0})],St.prototype,"dotted",2),St=zt([_(Sc)],St);var Ac=Object.getOwnPropertyDescriptor,kc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ac(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Oc="sonic-card-header-description";let $i=class extends y{render(){return m`<slot></slot>`}};$i.styles=[P`
3581
3594
  :host() {
3582
3595
  display: block;
3583
3596
  font-size: 0.7em;
@@ -3585,16 +3598,16 @@ ${this.value}</textarea
3585
3598
  font-family: var(--sc-font-family-base, sans-serif);
3586
3599
  font-weight: var(--sc-font-style-base, normal);
3587
3600
  }
3588
- `],$i=kc([_(Oc)],$i);var Dc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Ci=(r,t,i,s)=>{for(var e=s>1?void 0:s?Lc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Dc(t,i,e),e};const Ec="sonic-card-header";let os=class extends y{render(){return g`
3601
+ `],$i=kc([_(Oc)],$i);var Dc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Ci=(r,t,i,s)=>{for(var e=s>1?void 0:s?Lc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Dc(t,i,e),e};const Ec="sonic-card-header";let os=class extends y{render(){return m`
3589
3602
  <div class="header-content">
3590
3603
  ${F(this.label)}
3591
- ${this.description?g`<sonic-card-header-description
3604
+ ${this.description?m`<sonic-card-header-description
3592
3605
  >${F(this.description)}</sonic-card-header-description
3593
- >`:C}
3606
+ >`:S}
3594
3607
  <slot></slot>
3595
3608
  </div>
3596
3609
  <slot name="suffix"></slot>
3597
- `}};os.styles=[x`
3610
+ `}};os.styles=[P`
3598
3611
  :host {
3599
3612
  --sc-card-header-mb: 1.35rem;
3600
3613
  --sc-card-header-font-size: 1.875rem;
@@ -3632,15 +3645,15 @@ ${this.value}</textarea
3632
3645
  ::slotted(sonic-card-header-description) {
3633
3646
  margin-top: 0.1em;
3634
3647
  }
3635
- `],Ci([a()],os.prototype,"label",2),Ci([a()],os.prototype,"description",2),os=Ci([_(Ec)],os);var Nc=Object.getOwnPropertyDescriptor,Tc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Nc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Mc="sonic-card-main";let Si=class extends y{render(){return g`<slot></slot>`}};Si.styles=[x`
3648
+ `],Ci([a()],os.prototype,"label",2),Ci([a()],os.prototype,"description",2),os=Ci([_(Ec)],os);var Nc=Object.getOwnPropertyDescriptor,Tc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Nc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Mc="sonic-card-main";let Si=class extends y{render(){return m`<slot></slot>`}};Si.styles=[P`
3636
3649
  :host {
3637
3650
  display: block;
3638
3651
  }
3639
- `],Si=Tc([_(Mc)],Si);var Ic=Object.getOwnPropertyDescriptor,jc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ic(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Fc="sonic-card-footer";let Ai=class extends y{render(){return g` <slot></slot> `}};Ai.styles=[x`
3652
+ `],Si=Tc([_(Mc)],Si);var Ic=Object.getOwnPropertyDescriptor,jc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ic(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Fc="sonic-card-footer";let Ai=class extends y{render(){return m` <slot></slot> `}};Ai.styles=[P`
3640
3653
  :host {
3641
3654
  display: block;
3642
3655
  }
3643
- `],Ai=jc([_(Fc)],Ai);const ki=x`
3656
+ `],Ai=jc([_(Fc)],Ai);const ki=P`
3644
3657
  :host {
3645
3658
  --sc-_color: inherit;
3646
3659
  color: var(--sc-_color);
@@ -3665,7 +3678,7 @@ ${this.value}</textarea
3665
3678
  .inherit-color {
3666
3679
  color: var(--sc-_color);
3667
3680
  }
3668
- `,zc=x`
3681
+ `,zc=P`
3669
3682
  :host {
3670
3683
  --sc-_color: inherit;
3671
3684
  --sc-_bg: inherit;
@@ -3728,7 +3741,7 @@ ${this.value}</textarea
3728
3741
  .inherit-bg {
3729
3742
  color: inherit;
3730
3743
  }
3731
- `;var Rc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Mr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Uc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Rc(t,i,e),e};const Vc="sonic-card";let Ms=class extends y{constructor(){super(...arguments),this.type="base"}render(){return g`<slot></slot> `}};Ms.styles=[zc,x`
3744
+ `;var Rc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Mr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Uc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Rc(t,i,e),e};const Vc="sonic-card";let Ms=class extends y{constructor(){super(...arguments),this.type="base"}render(){return m`<slot></slot> `}};Ms.styles=[zc,P`
3732
3745
  * {
3733
3746
  box-sizing: border-box;
3734
3747
  }
@@ -3758,7 +3771,7 @@ ${this.value}</textarea
3758
3771
  box-shadow: var(--sc-_shadow);
3759
3772
  color: var(--sc-_color);
3760
3773
  }
3761
- `],Mr([a({type:String,reflect:!0})],Ms.prototype,"type",2),Ms=Mr([_(Vc)],Ms);var Bc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,ns=(r,t,i,s)=>{for(var e=s>1?void 0:s?qc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Bc(t,i,e),e};const Hc="sonic-tr";let be=class extends X(y){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return g`<slot></slot>`}};be.styles=[ki,x`
3774
+ `],Mr([a({type:String,reflect:!0})],Ms.prototype,"type",2),Ms=Mr([_(Vc)],Ms);var Bc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,ns=(r,t,i,s)=>{for(var e=s>1?void 0:s?qc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Bc(t,i,e),e};const Hc="sonic-tr";let ve=class extends X(y){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return m`<slot></slot>`}};ve.styles=[ki,P`
3762
3775
  :host {
3763
3776
  display: table-row;
3764
3777
  }
@@ -3776,14 +3789,14 @@ ${this.value}</textarea
3776
3789
  :host(:hover) {
3777
3790
  background: var(--sc-table-hover-bg) !important;
3778
3791
  }
3779
- `],ns([a({type:Object})],be.prototype,"_metadata_",2),ns([a({type:Boolean,reflect:!0})],be.prototype,"even",2),ns([a({type:Boolean,reflect:!0})],be.prototype,"odd",2),ns([a({type:Boolean,reflect:!0})],be.prototype,"last",2),be=ns([_(Hc)],be);var Wc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,ve=(r,t,i,s)=>{for(var e=s>1?void 0:s?Kc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Wc(t,i,e),e};const Yc="sonic-th";let Ht=class extends y{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th
3792
+ `],ns([a({type:Object})],ve.prototype,"_metadata_",2),ns([a({type:Boolean,reflect:!0})],ve.prototype,"even",2),ns([a({type:Boolean,reflect:!0})],ve.prototype,"odd",2),ns([a({type:Boolean,reflect:!0})],ve.prototype,"last",2),ve=ns([_(Hc)],ve);var Wc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,ye=(r,t,i,s)=>{for(var e=s>1?void 0:s?Kc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Wc(t,i,e),e};const Yc="sonic-th";let Wt=class extends y{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<th
3780
3793
  part="th"
3781
- style=${mt(r)}
3794
+ style=${gt(r)}
3782
3795
  colspan=${$(this.colSpan)}
3783
3796
  rowspan=${$(this.rowSpan)}
3784
3797
  >
3785
3798
  <slot></slot>
3786
- </th> `}};Ht.styles=[ki,x`
3799
+ </th> `}};Wt.styles=[ki,P`
3787
3800
  :host {
3788
3801
  display: contents;
3789
3802
  background: var(--sc-table-bg);
@@ -3806,9 +3819,9 @@ ${this.value}</textarea
3806
3819
  :host([noBorder]) th {
3807
3820
  border-bottom: none;
3808
3821
  }
3809
- `],ve([a({type:Number})],Ht.prototype,"colSpan",2),ve([a({type:Number})],Ht.prototype,"rowSpan",2),ve([a({type:String})],Ht.prototype,"align",2),ve([a({type:String})],Ht.prototype,"minWidth",2),ve([a({type:String})],Ht.prototype,"maxWidth",2),ve([a({type:String})],Ht.prototype,"width",2),Ht=ve([_(Yc)],Ht);var Xc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Xc(t,i,e),e};const Gc="sonic-td";let Rt=class extends y{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${mt(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3822
+ `],ye([a({type:Number})],Wt.prototype,"colSpan",2),ye([a({type:Number})],Wt.prototype,"rowSpan",2),ye([a({type:String})],Wt.prototype,"align",2),ye([a({type:String})],Wt.prototype,"minWidth",2),ye([a({type:String})],Wt.prototype,"maxWidth",2),ye([a({type:String})],Wt.prototype,"width",2),Wt=ye([_(Yc)],Wt);var Xc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Xc(t,i,e),e};const Gc="sonic-td";let Rt=class extends y{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${gt(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3810
3823
  <slot></slot>
3811
- </td>`}};Rt.styles=[ki,x`
3824
+ </td>`}};Rt.styles=[ki,P`
3812
3825
  :host {
3813
3826
  display: contents;
3814
3827
  }
@@ -3821,13 +3834,13 @@ ${this.value}</textarea
3821
3834
  border-right: var(--sc-table-td-border-r, none);
3822
3835
  border-left: var(--sc-table-td-border-l, none);
3823
3836
  }
3824
- `],ie([a({type:Number})],Rt.prototype,"colSpan",2),ie([a({type:Number})],Rt.prototype,"rowSpan",2),ie([a({type:String})],Rt.prototype,"align",2),ie([a({type:String})],Rt.prototype,"vAlign",2),ie([a({type:String})],Rt.prototype,"minWidth",2),ie([a({type:String})],Rt.prototype,"maxWidth",2),ie([a({type:String})],Rt.prototype,"width",2),Rt=ie([_(Gc)],Rt);var Qc=Object.getOwnPropertyDescriptor,Jc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Qc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const th="sonic-thead";let Oi=class extends y{render(){return g`<slot></slot>`}};Oi.styles=[x`
3837
+ `],ie([a({type:Number})],Rt.prototype,"colSpan",2),ie([a({type:Number})],Rt.prototype,"rowSpan",2),ie([a({type:String})],Rt.prototype,"align",2),ie([a({type:String})],Rt.prototype,"vAlign",2),ie([a({type:String})],Rt.prototype,"minWidth",2),ie([a({type:String})],Rt.prototype,"maxWidth",2),ie([a({type:String})],Rt.prototype,"width",2),Rt=ie([_(Gc)],Rt);var Qc=Object.getOwnPropertyDescriptor,Jc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Qc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const th="sonic-thead";let Oi=class extends y{render(){return m`<slot></slot>`}};Oi.styles=[P`
3825
3838
  :host {
3826
3839
  display: table-header-group;
3827
3840
  }
3828
- `],Oi=Jc([_(th)],Oi);var eh=Object.getOwnPropertyDescriptor,sh=(r,t,i,s)=>{for(var e=s>1?void 0:s?eh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ih="sonic-tbody";let Di=class extends y{render(){return g`<tbody part="tbody">
3841
+ `],Oi=Jc([_(th)],Oi);var eh=Object.getOwnPropertyDescriptor,sh=(r,t,i,s)=>{for(var e=s>1?void 0:s?eh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ih="sonic-tbody";let Di=class extends y{render(){return m`<tbody part="tbody">
3829
3842
  <slot></slot>
3830
- </tbody>`}};Di.styles=[x`
3843
+ </tbody>`}};Di.styles=[P`
3831
3844
  :host {
3832
3845
  display: table-row-group;
3833
3846
  }
@@ -3844,29 +3857,29 @@ ${this.value}</textarea
3844
3857
  border-bottom: var(--sc-form-border-width) solid
3845
3858
  var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
3846
3859
  }
3847
- `],Di=sh([_(ih)],Di);var rh=Object.getOwnPropertyDescriptor,oh=(r,t,i,s)=>{for(var e=s>1?void 0:s?rh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const nh="sonic-tfoot";let Li=class extends y{render(){return g`<tfoot>
3860
+ `],Di=sh([_(ih)],Di);var rh=Object.getOwnPropertyDescriptor,oh=(r,t,i,s)=>{for(var e=s>1?void 0:s?rh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const nh="sonic-tfoot";let Li=class extends y{render(){return m`<tfoot>
3848
3861
  <slot></slot>
3849
- </tfoot>`}};Li.styles=[x`
3862
+ </tfoot>`}};Li.styles=[P`
3850
3863
  :host {
3851
3864
  display: contents;
3852
3865
  }
3853
- `],Li=oh([_(nh)],Li);var ah=Object.getOwnPropertyDescriptor,lh=(r,t,i,s)=>{for(var e=s>1?void 0:s?ah(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ch="sonic-caption";let Ei=class extends y{render(){return g`<slot></slot>`}};Ei.styles=[x`
3866
+ `],Li=oh([_(nh)],Li);var ah=Object.getOwnPropertyDescriptor,lh=(r,t,i,s)=>{for(var e=s>1?void 0:s?ah(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ch="sonic-caption";let Ei=class extends y{render(){return m`<slot></slot>`}};Ei.styles=[P`
3854
3867
  :host {
3855
3868
  display: table-caption;
3856
3869
  font-size: 0.75rem;
3857
3870
  color: var(--sc-table-caption-color);
3858
3871
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3859
3872
  }
3860
- `],Ei=lh([_(ch)],Ei);var hh=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,Te=(r,t,i,s)=>{for(var e=s>1?void 0:s?dh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hh(t,i,e),e};const ph="sonic-table";let re=class extends y{render(){const r={maxHeight:this.maxHeight};return g`
3873
+ `],Ei=lh([_(ch)],Ei);var hh=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,Te=(r,t,i,s)=>{for(var e=s>1?void 0:s?dh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hh(t,i,e),e};const ph="sonic-table";let re=class extends y{render(){const r={maxHeight:this.maxHeight};return m`
3861
3874
  <div
3862
3875
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3863
- style=${mt(r)}
3876
+ style=${gt(r)}
3864
3877
  >
3865
3878
  <div class="table">
3866
3879
  <slot></slot>
3867
3880
  </div>
3868
3881
  </div>
3869
- `}};re.styles=[Xe,Lt,x`
3882
+ `}};re.styles=[Xe,Lt,P`
3870
3883
  :host {
3871
3884
  --sc-table-fw: var(--sc-font-weight-base, 400);
3872
3885
  --sc-table-fst: var(--sc-font-style-base, normal);
@@ -3911,7 +3924,7 @@ ${this.value}</textarea
3911
3924
  --sc-table-td-border-b: var(--sc-table-bw) solid
3912
3925
  var(--sc-table-border-color);
3913
3926
  }
3914
- `],Te([a({type:String,reflect:!0})],re.prototype,"size",2),Te([a({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Te([a({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Te([a({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Te([a({type:String})],re.prototype,"maxHeight",2),re=Te([_(ph)],re);const Ir="AES-CBC",uh=256;async function fh(){return crypto.subtle.generateKey({name:Ir,length:uh},!0,["encrypt","decrypt"])}function gh(r){return btoa(String.fromCharCode(...new Uint8Array(r)))}async function mh(r,t,i){const s=new TextEncoder().encode(r),e=await crypto.subtle.encrypt({name:Ir,iv:i.buffer},t,s);return gh(e)}const bh=x`
3927
+ `],Te([a({type:String,reflect:!0})],re.prototype,"size",2),Te([a({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Te([a({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Te([a({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Te([a({type:String})],re.prototype,"maxHeight",2),re=Te([_(ph)],re);const Ir="AES-CBC",uh=256;async function fh(){return crypto.subtle.generateKey({name:Ir,length:uh},!0,["encrypt","decrypt"])}function mh(r){return btoa(String.fromCharCode(...new Uint8Array(r)))}async function gh(r,t,i){const s=new TextEncoder().encode(r),e=await crypto.subtle.encrypt({name:Ir,iv:i.buffer},t,s);return mh(e)}const bh=P`
3915
3928
  @keyframes altcha-spinner {
3916
3929
  to {
3917
3930
  transform: rotate(360deg);
@@ -4134,7 +4147,7 @@ ${this.value}</textarea
4134
4147
  animation: altcha-spinner 0.75s infinite linear;
4135
4148
  transform-origin: center;
4136
4149
  }
4137
- `;var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Is=(r,t,i,s)=>{for(var e=s>1?void 0:s?yh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&vh(t,i,e),e};const wh="supersoniks_altcha",_h="Si2\\]X8M4!n9DCLd";let jr=!1;const xh="sonic-captcha";let Me=class extends Gt(y){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!jr){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://eu.altcha.org/js/latest/altcha.min.js",jr=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=st.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken="",this.formPublisher.needsCaptchaValidation=!1),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey=this.key,this.formPublisher.captchaToken=t.get("altcha")?.toString()||""}async generateEncryptedKey(){if(this.key)return;const r=await fh(),t=new TextEncoder().encode(_h),i=await mh(wh,r,t);this.key=i}render(){if(!this.key)return C;const t=Xt.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return g`
4150
+ `;var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Is=(r,t,i,s)=>{for(var e=s>1?void 0:s?yh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&vh(t,i,e),e};const wh="supersoniks_altcha",_h="Si2\\]X8M4!n9DCLd";let jr=!1;const xh="sonic-captcha";let Me=class extends Gt(y){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!jr){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://eu.altcha.org/js/latest/altcha.min.js",jr=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=st.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken="",this.formPublisher.needsCaptchaValidation=!1),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey=this.key,this.formPublisher.captchaToken=t.get("altcha")?.toString()||""}async generateEncryptedKey(){if(this.key)return;const r=await fh(),t=new TextEncoder().encode(_h),i=await gh(wh,r,t);this.key=i}render(){if(!this.key)return S;const t=Zt.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return m`
4138
4151
  <form>
4139
4152
  <altcha-widget
4140
4153
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -4146,7 +4159,7 @@ ${this.value}</textarea
4146
4159
  ></altcha-widget>
4147
4160
  </form>
4148
4161
  <slot></slot>
4149
- `}};Me.styles=[bh,x`
4162
+ `}};Me.styles=[bh,P`
4150
4163
  :host {
4151
4164
  --altcha-border-width: var(--sc-border-width, 1px);
4152
4165
  --altcha-border-radius: var(--sc-rounded);
@@ -4165,4 +4178,4 @@ ${this.value}</textarea
4165
4178
  --altcha-color-footer-bg: var(--sc-base-100, #000);
4166
4179
  --altcha-max-width: 260px;
4167
4180
  }
4168
- `],Is([a()],Me.prototype,"key",2),Is([a()],Me.prototype,"action",2),Is([a({type:Number})],Me.prototype,"zIndex",2),Me=Is([_(xh)],Me),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function Ph(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function $h(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Fr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=Ph,r.__onDisconnected__=$h;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function Ch(r){const t=r.split(".");if(t.length==0)return function(){};const i=t.shift()||"";let s=T.get(i);return s=We.traverse(s,t),function(e,o){if(!e)return;let n;Fr(e),e.__onConnected__(l=>{n=c=>{l[o]=c},s.onAssign(n)}),e.__onDisconnected__(()=>{s.offAssign(n)})}}function Sh(...r){const t=[],i=[];for(let s=0;s<r.length;s++){const o=r[s].split(".");if(o.length==0)continue;const n=o.shift()||"";let l=T.get(n);l=We.traverse(l,o);const c=new Set,h=f=>{t[s]=f,t.filter(d=>d!==null).length==r.length&&c.forEach(d=>d(...t))};i.push({publisher:l,onAssign:h,callbacks:c})}return function(s,e,o){Fr(s);let n;s.__onConnected__(l=>{for(const c of i)n=o.value.bind(l),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),s.__onDisconnected__(()=>{for(const l of i)l.callbacks.delete(n),l.publisher.offAssign(l.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Ch,onAssing:Sh},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:er,dataProvider:Ao,sub:Co,subscribe:$o,get:So,set:ko};const Ah=O,kh=M;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ah,SonicModal:kh};const Oh=window;Oh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));
4181
+ `],Is([a()],Me.prototype,"key",2),Is([a()],Me.prototype,"action",2),Is([a({type:Number})],Me.prototype,"zIndex",2),Me=Is([_(xh)],Me),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function Ph(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function $h(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Fr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=Ph,r.__onDisconnected__=$h;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function Ch(r){const t=r.split(".");if(t.length==0)return function(){};const i=t.shift()||"";let s=T.get(i);return s=We.traverse(s,t),function(e,o){if(!e)return;let n;Fr(e),e.__onConnected__(l=>{n=c=>{l[o]=c},s.onAssign(n)}),e.__onDisconnected__(()=>{s.offAssign(n)})}}function Sh(...r){const t=[],i=[];for(let s=0;s<r.length;s++){const o=r[s].split(".");if(o.length==0)continue;const n=o.shift()||"";let l=T.get(n);l=We.traverse(l,o);const c=new Set,h=u=>{t[s]=u,t.filter(d=>d!==null).length==r.length&&c.forEach(d=>d(...t))};i.push({publisher:l,onAssign:h,callbacks:c})}return function(s,e,o){Fr(s);let n;s.__onConnected__(l=>{for(const c of i)n=o.value.bind(l),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),s.__onDisconnected__(()=>{for(const l of i)l.callbacks.delete(n),l.publisher.offAssign(l.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Ch,onAssing:Sh},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:er,dataProvider:Ao,sub:Co,subscribe:$o,get:So,set:ko};const Ah=O,kh=M;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ah,SonicModal:kh};const Oh=window;Oh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));