@sme.up/ketchup2 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/dist/{arc-MUYNnJxV.cjs → arc-CYi2lpSd.cjs} +1 -1
  2. package/dist/{arc-D80gVCcI.js → arc-yUAZoqJP.js} +2 -2
  3. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +1 -0
  4. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +3 -0
  5. package/dist/architectureDiagram-3BPJPVTR-C8DI7_Rn.cjs +36 -0
  6. package/dist/{architectureDiagram-3BPJPVTR-EFK4DMha.js → architectureDiagram-3BPJPVTR-CMX2LiQK.js} +91 -90
  7. package/dist/array-DZSRzHA_.cjs +1 -0
  8. package/dist/assets/{imageListAssets.d.ts → shapeListAssets.d.ts} +9 -3
  9. package/dist/assets/shapeListAssets.d.ts.map +1 -0
  10. package/dist/assets/svg/check_box.svg +1 -0
  11. package/dist/assets/svg/check_box_outline_blank.svg +1 -0
  12. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  13. package/dist/basic-components/barcode/barcode-types.d.ts +13 -2
  14. package/dist/basic-components/barcode/barcode-types.d.ts.map +1 -1
  15. package/dist/basic-components/barcode/barcode.d.ts.map +1 -1
  16. package/dist/basic-components/barcode-generator/barcode-generator-types.d.ts +38 -0
  17. package/dist/basic-components/barcode-generator/barcode-generator-types.d.ts.map +1 -0
  18. package/dist/basic-components/barcode-generator/barcode-generator-utils.d.ts +6 -0
  19. package/dist/basic-components/barcode-generator/barcode-generator-utils.d.ts.map +1 -0
  20. package/dist/basic-components/barcode-generator/barcode-generator.d.ts +3 -0
  21. package/dist/basic-components/barcode-generator/barcode-generator.d.ts.map +1 -0
  22. package/dist/basic-components/card/card-slot-resolver.d.ts +6 -0
  23. package/dist/basic-components/card/card-slot-resolver.d.ts.map +1 -0
  24. package/dist/basic-components/card/card-types.d.ts +43 -0
  25. package/dist/basic-components/card/card-types.d.ts.map +1 -0
  26. package/dist/basic-components/card/card.d.ts +5 -0
  27. package/dist/basic-components/card/card.d.ts.map +1 -0
  28. package/dist/basic-components/card/flow/aside/index.d.ts +2 -0
  29. package/dist/basic-components/card/flow/aside/index.d.ts.map +1 -0
  30. package/dist/basic-components/card/flow/compact/index.d.ts +2 -0
  31. package/dist/basic-components/card/flow/compact/index.d.ts.map +1 -0
  32. package/dist/basic-components/card/flow/editorial/index.d.ts +2 -0
  33. package/dist/basic-components/card/flow/editorial/index.d.ts.map +1 -0
  34. package/dist/basic-components/card/flow/minimal/index.d.ts +2 -0
  35. package/dist/basic-components/card/flow/minimal/index.d.ts.map +1 -0
  36. package/dist/basic-components/card/flow/overlay/index.d.ts +2 -0
  37. package/dist/basic-components/card/flow/overlay/index.d.ts.map +1 -0
  38. package/dist/basic-components/card/flow/shared/flow-layout.d.ts +4 -0
  39. package/dist/basic-components/card/flow/shared/flow-layout.d.ts.map +1 -0
  40. package/dist/basic-components/card/flow/split/index.d.ts +2 -0
  41. package/dist/basic-components/card/flow/split/index.d.ts.map +1 -0
  42. package/dist/basic-components/card/flow/spotlight/index.d.ts +2 -0
  43. package/dist/basic-components/card/flow/spotlight/index.d.ts.map +1 -0
  44. package/dist/basic-components/card/flow/tiles/index.d.ts +2 -0
  45. package/dist/basic-components/card/flow/tiles/index.d.ts.map +1 -0
  46. package/dist/basic-components/card/layout-registry.d.ts +4 -0
  47. package/dist/basic-components/card/layout-registry.d.ts.map +1 -0
  48. package/dist/basic-components/card/positional/collaborator/index.d.ts +4 -0
  49. package/dist/basic-components/card/positional/collaborator/index.d.ts.map +1 -0
  50. package/dist/basic-components/card/positional/detailed-object/index.d.ts +5 -0
  51. package/dist/basic-components/card/positional/detailed-object/index.d.ts.map +1 -0
  52. package/dist/basic-components/card/positional/financial/index.d.ts +4 -0
  53. package/dist/basic-components/card/positional/financial/index.d.ts.map +1 -0
  54. package/dist/basic-components/card/positional/folder-grid/index.d.ts +4 -0
  55. package/dist/basic-components/card/positional/folder-grid/index.d.ts.map +1 -0
  56. package/dist/basic-components/card/positional/hero/index.d.ts +4 -0
  57. package/dist/basic-components/card/positional/hero/index.d.ts.map +1 -0
  58. package/dist/basic-components/card/positional/product/index.d.ts +4 -0
  59. package/dist/basic-components/card/positional/product/index.d.ts.map +1 -0
  60. package/dist/basic-components/card/positional/shared/object-card.d.ts +24 -0
  61. package/dist/basic-components/card/positional/shared/object-card.d.ts.map +1 -0
  62. package/dist/basic-components/card/positional/shared/utils.d.ts +26 -0
  63. package/dist/basic-components/card/positional/shared/utils.d.ts.map +1 -0
  64. package/dist/basic-components/card/positional/simple-object/index.d.ts +5 -0
  65. package/dist/basic-components/card/positional/simple-object/index.d.ts.map +1 -0
  66. package/dist/basic-components/card/positional/tooltip/index.d.ts +4 -0
  67. package/dist/basic-components/card/positional/tooltip/index.d.ts.map +1 -0
  68. package/dist/basic-components/card/positional/trend/index.d.ts +4 -0
  69. package/dist/basic-components/card/positional/trend/index.d.ts.map +1 -0
  70. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  71. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  72. package/dist/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts +4 -1
  73. package/dist/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts.map +1 -1
  74. package/dist/basic-components/date-picker/date-picker.d.ts.map +1 -1
  75. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  76. package/dist/basic-components/image/image.d.ts.map +1 -1
  77. package/dist/basic-components/image-cell/image-cell-types.d.ts +4 -0
  78. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  79. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  80. package/dist/basic-components/password/password.d.ts.map +1 -1
  81. package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts +3 -3
  82. package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts.map +1 -1
  83. package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts +4 -5
  84. package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts.map +1 -1
  85. package/dist/basic-components/qr-code/qr-code-renderer.d.ts +3 -3
  86. package/dist/basic-components/qr-code/qr-code-renderer.d.ts.map +1 -1
  87. package/dist/basic-components/qr-code/qr-code-types.d.ts +29 -58
  88. package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -1
  89. package/dist/basic-components/qr-code/qr-code.d.ts +2 -3
  90. package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -1
  91. package/dist/basic-components/textfield/textfield-types.d.ts +2 -1
  92. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  93. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  94. package/dist/{blockDiagram-GPEHLZMM-CuzoKhJT.cjs → blockDiagram-GPEHLZMM-C7mogpj_.cjs} +1 -1
  95. package/dist/{blockDiagram-GPEHLZMM-C3UgY0Z5.js → blockDiagram-GPEHLZMM-fcAaH_Ka.js} +21 -19
  96. package/dist/{c4Diagram-AAUBKEIU-klnmEOUo.js → c4Diagram-AAUBKEIU-BUOgTWLR.js} +5 -5
  97. package/dist/{c4Diagram-AAUBKEIU-DU8uXbgK.cjs → c4Diagram-AAUBKEIU-BjsHAdap.cjs} +1 -1
  98. package/dist/cell-NyD4Bcyq.js +6457 -0
  99. package/dist/cell-dpOG-xr_.cjs +6 -0
  100. package/dist/channel-BzP1tmYc.cjs +1 -0
  101. package/dist/{channel-BbRDdbmM.js → channel-CAhFwf6U.js} +1 -1
  102. package/dist/{chunk-2J33WTMH-EmvF7iYC.js → chunk-2J33WTMH-BulZYTKs.js} +2 -2
  103. package/dist/{chunk-2J33WTMH-PlcpVW8G.cjs → chunk-2J33WTMH-DIfvCbWZ.cjs} +1 -1
  104. package/dist/{chunk-3OPIFGDE-C7wE5oN7.js → chunk-3OPIFGDE-BYuWDDGY.js} +7 -7
  105. package/dist/{chunk-3OPIFGDE-CT5oNC5X.cjs → chunk-3OPIFGDE-Ohf7vgmX.cjs} +2 -2
  106. package/dist/{chunk-4BX2VUAB-BO1KRGb1.js → chunk-4BX2VUAB-B74FMcxr.js} +1 -1
  107. package/dist/chunk-4BX2VUAB-DdliHvKq.cjs +1 -0
  108. package/dist/{chunk-55IACEB6-b_Ivgrk-.js → chunk-55IACEB6-D5PlvtBC.js} +1 -1
  109. package/dist/chunk-55IACEB6-DzCdT-ru.cjs +1 -0
  110. package/dist/{chunk-5ZQYHXKU-BMnKD7Zq.cjs → chunk-5ZQYHXKU-35HHGVyc.cjs} +2 -2
  111. package/dist/{chunk-5ZQYHXKU-C4uam08j.js → chunk-5ZQYHXKU-BvO58_5C.js} +3 -3
  112. package/dist/chunk-727SXJPM-BCv3AEZb.cjs +206 -0
  113. package/dist/{chunk-727SXJPM-Dof0vDVV.js → chunk-727SXJPM-BDsxon3G.js} +73 -70
  114. package/dist/{chunk-AQP2D5EJ-DdWeFQ4O.cjs → chunk-AQP2D5EJ-CPbTYzEZ.cjs} +2 -2
  115. package/dist/{chunk-AQP2D5EJ-N9ii4fwJ.js → chunk-AQP2D5EJ-Cp3ieoZF.js} +6 -6
  116. package/dist/{chunk-BSJP7CBP-Bx5APwBA.js → chunk-BSJP7CBP-BjkTjHJ6.js} +1 -1
  117. package/dist/{chunk-BSJP7CBP-CaeBFqNU.cjs → chunk-BSJP7CBP-DtjFXF0S.cjs} +1 -1
  118. package/dist/{chunk-CSCIHK7Q-9WKhcDqw.js → chunk-CSCIHK7Q-Drr_NBLR.js} +598 -1146
  119. package/dist/chunk-CSCIHK7Q-WWTYrQLt.cjs +122 -0
  120. package/dist/chunk-Dqa2HsxW.js +20 -0
  121. package/dist/{chunk-FMBD7UC4-CiO_59ls.cjs → chunk-FMBD7UC4-BLLpskYF.cjs} +2 -2
  122. package/dist/{chunk-FMBD7UC4-BbggSGOg.js → chunk-FMBD7UC4-Cia16Ryi.js} +1 -1
  123. package/dist/{chunk-KSCS5N6A-DO8jEi0y.cjs → chunk-KSCS5N6A-DSWnBtbV.cjs} +2 -2
  124. package/dist/{chunk-KSCS5N6A-BY1s4eGg.js → chunk-KSCS5N6A-pd39ksIM.js} +10 -10
  125. package/dist/{chunk-L5ZTLDWV-D3UwMopa.js → chunk-L5ZTLDWV-DXk-PQPS.js} +3 -3
  126. package/dist/{chunk-L5ZTLDWV-BE9udiOh.cjs → chunk-L5ZTLDWV-sRcGREMv.cjs} +1 -1
  127. package/dist/chunk-LZXEDZCA-4kbGESh2.cjs +1 -0
  128. package/dist/{chunk-LZXEDZCA-KzBFuWPU.js → chunk-LZXEDZCA-oQMllZja.js} +9 -9
  129. package/dist/{chunk-ND2GUHAM-CHTke4K8.js → chunk-ND2GUHAM-CKQ1Jk8O.js} +3 -3
  130. package/dist/{chunk-ND2GUHAM-DdBSZTft.cjs → chunk-ND2GUHAM-See9KDdJ.cjs} +1 -1
  131. package/dist/{chunk-NNHCCRGN-D_orSz6n.js → chunk-NNHCCRGN-BB1q5NkR.js} +32 -16
  132. package/dist/{chunk-NNHCCRGN-aKMHXBzL.cjs → chunk-NNHCCRGN-qV8bfiMQ.cjs} +13 -13
  133. package/dist/{chunk-NZK2D7GU-BVOINLmx.js → chunk-NZK2D7GU-CqugOMaJ.js} +2 -2
  134. package/dist/{chunk-NZK2D7GU-_twqedIe.cjs → chunk-NZK2D7GU-FNVK0iHI.cjs} +1 -1
  135. package/dist/{chunk-O5CBEL6O-VsMF4aZB.js → chunk-O5CBEL6O-BIU6TcWp.js} +3 -3
  136. package/dist/{chunk-O5CBEL6O-CDvi2oZo.cjs → chunk-O5CBEL6O-BU_i0jbb.cjs} +2 -2
  137. package/dist/{chunk-QZHKN3VN-CHjRGMI2.cjs → chunk-QZHKN3VN-DPdobKra.cjs} +1 -1
  138. package/dist/{chunk-QZHKN3VN-DCddt14Q.js → chunk-QZHKN3VN-cS9OamWo.js} +1 -1
  139. package/dist/{chunk-WU5MYG2G-mQn7Wt-i.js → chunk-WU5MYG2G-BL6T82Hi.js} +2 -2
  140. package/dist/chunk-WU5MYG2G-qi7ZaL3o.cjs +1 -0
  141. package/dist/{chunk-XPW4576I-BCowsgDU.js → chunk-XPW4576I-B9aC8EBY.js} +1 -1
  142. package/dist/{chunk-XPW4576I-D_mwgMVU.cjs → chunk-XPW4576I-Dsm0jctf.cjs} +2 -2
  143. package/dist/chunk-mLOUI7ql.cjs +1 -0
  144. package/dist/classDiagram-4FO5ZUOK-Dc-Jypl3.js +29 -0
  145. package/dist/classDiagram-4FO5ZUOK-Dqxk6PU-.cjs +1 -0
  146. package/dist/classDiagram-v2-Q7XG4LA2-DZ44tKmY.js +29 -0
  147. package/dist/classDiagram-v2-Q7XG4LA2-Dqxk6PU-.cjs +1 -0
  148. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  149. package/dist/components/input-panel/assets/data.d.ts +1 -0
  150. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  151. package/dist/components/input-panel/input-panel-types.d.ts +5 -0
  152. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  153. package/dist/components/input-panel/input-panel-utils.d.ts +1 -0
  154. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  155. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  156. package/dist/components/pdf/pdf-utils.d.ts +1 -1
  157. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  158. package/dist/components/{image-list → shape-list}/components/error-boundary.d.ts +1 -1
  159. package/dist/components/{image-list → shape-list}/components/error-boundary.d.ts.map +1 -1
  160. package/dist/components/shape-list/components/shape-list-drill-down.d.ts +4 -0
  161. package/dist/components/shape-list/components/shape-list-drill-down.d.ts.map +1 -0
  162. package/dist/components/{image-list/components/image-list-command-panel.d.ts → shape-list/components/toolbar/command-panel.d.ts} +4 -4
  163. package/dist/components/shape-list/components/toolbar/command-panel.d.ts.map +1 -0
  164. package/dist/components/{image-list/components/image-list-command-trigger.d.ts → shape-list/components/toolbar/command-trigger.d.ts} +4 -4
  165. package/dist/components/shape-list/components/toolbar/command-trigger.d.ts.map +1 -0
  166. package/dist/components/shape-list/components/toolbar/filter-picker.d.ts +14 -0
  167. package/dist/components/shape-list/components/toolbar/filter-picker.d.ts.map +1 -0
  168. package/dist/components/shape-list/components/toolbar/json-viewer.d.ts +11 -0
  169. package/dist/components/shape-list/components/toolbar/json-viewer.d.ts.map +1 -0
  170. package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts +15 -0
  171. package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts.map +1 -0
  172. package/dist/components/shape-list/components/toolbar/sort-picker.d.ts +14 -0
  173. package/dist/components/shape-list/components/toolbar/sort-picker.d.ts.map +1 -0
  174. package/dist/components/shape-list/context/shape-list-context.d.ts +31 -0
  175. package/dist/components/shape-list/context/shape-list-context.d.ts.map +1 -0
  176. package/dist/components/shape-list/context/shape-list-filter-context.d.ts +9 -0
  177. package/dist/components/shape-list/context/shape-list-filter-context.d.ts.map +1 -0
  178. package/dist/components/shape-list/context/shape-list-sort-context.d.ts +9 -0
  179. package/dist/components/shape-list/context/shape-list-sort-context.d.ts.map +1 -0
  180. package/dist/components/{image-list/image-list-state-context.d.ts → shape-list/context/shape-list-state-context.d.ts} +2 -2
  181. package/dist/components/shape-list/context/shape-list-state-context.d.ts.map +1 -0
  182. package/dist/components/{image-list → shape-list}/hooks/useCommandPickers.d.ts.map +1 -1
  183. package/dist/components/shape-list/hooks/useLazyShapeData.d.ts +35 -0
  184. package/dist/components/shape-list/hooks/useLazyShapeData.d.ts.map +1 -0
  185. package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts +2 -0
  186. package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts.map +1 -0
  187. package/dist/components/{image-list → shape-list}/hooks/useNavigation.d.ts +1 -1
  188. package/dist/components/{image-list → shape-list}/hooks/useNavigation.d.ts.map +1 -1
  189. package/dist/components/{image-list → shape-list}/hooks/useSelection.d.ts +4 -4
  190. package/dist/components/{image-list → shape-list}/hooks/useSelection.d.ts.map +1 -1
  191. package/dist/components/{image-list → shape-list}/hooks/useStripOverflow.d.ts.map +1 -1
  192. package/dist/components/shape-list/items/node-content.d.ts +47 -0
  193. package/dist/components/shape-list/items/node-content.d.ts.map +1 -0
  194. package/dist/components/shape-list/items/shape.d.ts +20 -0
  195. package/dist/components/shape-list/items/shape.d.ts.map +1 -0
  196. package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts +13 -0
  197. package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts.map +1 -0
  198. package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts +4 -0
  199. package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts.map +1 -0
  200. package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts +7 -0
  201. package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts.map +1 -0
  202. package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts +11 -0
  203. package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts.map +1 -0
  204. package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts +18 -0
  205. package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts.map +1 -0
  206. package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts +8 -0
  207. package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts.map +1 -0
  208. package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts +6 -0
  209. package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts.map +1 -0
  210. package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts +13 -0
  211. package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts.map +1 -0
  212. package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts +9 -0
  213. package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts.map +1 -0
  214. package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts +4 -0
  215. package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts.map +1 -0
  216. package/dist/components/{image-list/components → shape-list/navigation-modes/_shared/strip}/strip-child-popup.d.ts +1 -1
  217. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts.map +1 -0
  218. package/dist/components/{image-list/components → shape-list/navigation-modes/_shared/strip}/strip-item.d.ts +1 -1
  219. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts.map +1 -0
  220. package/dist/components/{image-list/components → shape-list/navigation-modes/_shared/strip}/strip-overflow-button.d.ts +1 -1
  221. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts.map +1 -0
  222. package/dist/components/shape-list/navigation-modes/catalog/index.d.ts +3 -0
  223. package/dist/components/shape-list/navigation-modes/catalog/index.d.ts.map +1 -0
  224. package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts +5 -0
  225. package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts.map +1 -0
  226. package/dist/components/shape-list/navigation-modes/compact/index.d.ts +3 -0
  227. package/dist/components/shape-list/navigation-modes/compact/index.d.ts.map +1 -0
  228. package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts +5 -0
  229. package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts.map +1 -0
  230. package/dist/components/shape-list/navigation-modes/explorer/index.d.ts +4 -0
  231. package/dist/components/shape-list/navigation-modes/explorer/index.d.ts.map +1 -0
  232. package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts +5 -0
  233. package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts.map +1 -0
  234. package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts +5 -0
  235. package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts.map +1 -0
  236. package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts +3 -0
  237. package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts.map +1 -0
  238. package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts +5 -0
  239. package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts.map +1 -0
  240. package/dist/components/shape-list/navigation-modes/modal/index.d.ts +3 -0
  241. package/dist/components/shape-list/navigation-modes/modal/index.d.ts.map +1 -0
  242. package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts +5 -0
  243. package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts.map +1 -0
  244. package/dist/components/shape-list/navigation-modes/rail/index.d.ts +3 -0
  245. package/dist/components/shape-list/navigation-modes/rail/index.d.ts.map +1 -0
  246. package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts +11 -0
  247. package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts.map +1 -0
  248. package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts +3 -0
  249. package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts.map +1 -0
  250. package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts +11 -0
  251. package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts.map +1 -0
  252. package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts +3 -0
  253. package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts.map +1 -0
  254. package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts +5 -0
  255. package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts.map +1 -0
  256. package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts +3 -0
  257. package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts.map +1 -0
  258. package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts +5 -0
  259. package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts.map +1 -0
  260. package/dist/components/shape-list/navigation-modes/workspace/index.d.ts +3 -0
  261. package/dist/components/shape-list/navigation-modes/workspace/index.d.ts.map +1 -0
  262. package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts +11 -0
  263. package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts.map +1 -0
  264. package/dist/components/shape-list/shape-list.d.ts +5 -0
  265. package/dist/components/shape-list/shape-list.d.ts.map +1 -0
  266. package/dist/components/shape-list/slots/renderers/brand.d.ts +6 -0
  267. package/dist/components/shape-list/slots/renderers/brand.d.ts.map +1 -0
  268. package/dist/components/shape-list/slots/renderers/cta.d.ts +9 -0
  269. package/dist/components/shape-list/slots/renderers/cta.d.ts.map +1 -0
  270. package/dist/components/shape-list/slots/renderers/icon.d.ts +11 -0
  271. package/dist/components/shape-list/slots/renderers/icon.d.ts.map +1 -0
  272. package/dist/components/shape-list/slots/renderers/section-header.d.ts +7 -0
  273. package/dist/components/shape-list/slots/renderers/section-header.d.ts.map +1 -0
  274. package/dist/components/shape-list/slots/renderers/shape-cell.d.ts +9 -0
  275. package/dist/components/shape-list/slots/renderers/shape-cell.d.ts.map +1 -0
  276. package/dist/components/shape-list/slots/slot-config.d.ts +7 -0
  277. package/dist/components/shape-list/slots/slot-config.d.ts.map +1 -0
  278. package/dist/components/shape-list/slots/slot-model.d.ts +6 -0
  279. package/dist/components/shape-list/slots/slot-model.d.ts.map +1 -0
  280. package/dist/components/shape-list/slots/slot-node.d.ts +9 -0
  281. package/dist/components/shape-list/slots/slot-node.d.ts.map +1 -0
  282. package/dist/components/shape-list/slots/slot-render-utils.d.ts +11 -0
  283. package/dist/components/shape-list/slots/slot-render-utils.d.ts.map +1 -0
  284. package/dist/components/shape-list/slots/slot-types.d.ts +151 -0
  285. package/dist/components/shape-list/slots/slot-types.d.ts.map +1 -0
  286. package/dist/components/shape-list/slots/test/slot-model.test.d.ts +2 -0
  287. package/dist/components/shape-list/slots/test/slot-model.test.d.ts.map +1 -0
  288. package/dist/components/shape-list/types/shape-list-types.d.ts +181 -0
  289. package/dist/components/shape-list/types/shape-list-types.d.ts.map +1 -0
  290. package/dist/components/shape-list/utils/column-utils.d.ts +9 -0
  291. package/dist/components/shape-list/utils/column-utils.d.ts.map +1 -0
  292. package/dist/components/{image-list/image-list-debug-utils.d.ts → shape-list/utils/debug-utils.d.ts} +6 -6
  293. package/dist/components/shape-list/utils/debug-utils.d.ts.map +1 -0
  294. package/dist/components/shape-list/utils/filter-utils.d.ts +12 -0
  295. package/dist/components/shape-list/utils/filter-utils.d.ts.map +1 -0
  296. package/dist/components/shape-list/utils/keyboard-utils.d.ts +12 -0
  297. package/dist/components/shape-list/utils/keyboard-utils.d.ts.map +1 -0
  298. package/dist/components/shape-list/utils/navigation-options.d.ts +30 -0
  299. package/dist/components/shape-list/utils/navigation-options.d.ts.map +1 -0
  300. package/dist/components/shape-list/utils/node-utils.d.ts +12 -0
  301. package/dist/components/shape-list/utils/node-utils.d.ts.map +1 -0
  302. package/dist/components/shape-list/utils/sort-utils.d.ts +13 -0
  303. package/dist/components/shape-list/utils/sort-utils.d.ts.map +1 -0
  304. package/dist/components/shape-list/utils/typeahead-utils.d.ts +28 -0
  305. package/dist/components/shape-list/utils/typeahead-utils.d.ts.map +1 -0
  306. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  307. package/dist/cose-bilkent-S5V4N54A-BxQyjZqX.cjs +1 -0
  308. package/dist/{cose-bilkent-S5V4N54A-Bfb7U01p.js → cose-bilkent-S5V4N54A-DZmA7Nat.js} +27 -26
  309. package/dist/{cytoscape.esm-VShrX2U1.js → cytoscape.esm-BU21wl3m.js} +17 -17
  310. package/dist/{cytoscape.esm-BzblyxzZ.cjs → cytoscape.esm-CElDUMAx.cjs} +4 -4
  311. package/dist/{dagre-Cg4CV48I.js → dagre-3-RnF0EK.js} +1 -1
  312. package/dist/{dagre-CC68z3y6.cjs → dagre-B2BBwKNb.cjs} +1 -1
  313. package/dist/{dagre-BM42HDAG-D87Rv2R4.js → dagre-BM42HDAG-DwRqEen8.js} +11 -11
  314. package/dist/{dagre-BM42HDAG-BhbA1R8l.cjs → dagre-BM42HDAG-E2Jw6uLH.cjs} +1 -1
  315. package/dist/{defaultLocale-Bj_Ndo9V.cjs → defaultLocale-u9yUoUmE.cjs} +1 -1
  316. package/dist/{diagram-2AECGRRQ-OSYCK0tv.js → diagram-2AECGRRQ-BITzWXbn.js} +8 -8
  317. package/dist/{diagram-2AECGRRQ-C6vI3yau.cjs → diagram-2AECGRRQ-BkwGTiAT.cjs} +1 -1
  318. package/dist/{diagram-5GNKFQAL-BS9rRMAe.cjs → diagram-5GNKFQAL-CvMOQgoH.cjs} +1 -1
  319. package/dist/{diagram-5GNKFQAL-DnquluB9.js → diagram-5GNKFQAL-bsRwDc-2.js} +9 -9
  320. package/dist/{diagram-KO2AKTUF-CjA_KTJj.cjs → diagram-KO2AKTUF-DKGDs9Ax.cjs} +2 -2
  321. package/dist/{diagram-KO2AKTUF-CFi6eQYd.js → diagram-KO2AKTUF-DwTH3Hoo.js} +8 -8
  322. package/dist/{diagram-LMA3HP47-DBwSTp2j.cjs → diagram-LMA3HP47-BojSLu6w.cjs} +1 -1
  323. package/dist/{diagram-LMA3HP47-Cwm5bzeM.js → diagram-LMA3HP47-nYPIM4Uq.js} +8 -8
  324. package/dist/{diagram-OG6HWLK6-DvGk1j55.js → diagram-OG6HWLK6-CPzvG6Xi.js} +12 -12
  325. package/dist/{diagram-OG6HWLK6-BdLnbUYy.cjs → diagram-OG6HWLK6-bHqMXqif.cjs} +1 -1
  326. package/dist/{dist-9MKIBfY4.js → dist-BEmBi80K.js} +1 -1
  327. package/dist/dist-Dwq87x4R.cjs +1 -0
  328. package/dist/{erDiagram-TEJ5UH35-B17mqgD_.js → erDiagram-TEJ5UH35-BxeM1F9k.js} +13 -13
  329. package/dist/{erDiagram-TEJ5UH35-NlRiP_bX.cjs → erDiagram-TEJ5UH35-CqUBZsAh.cjs} +1 -1
  330. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +1 -0
  331. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +3 -0
  332. package/dist/flowDiagram-I6XJVG4X-DsjMn89E.cjs +162 -0
  333. package/dist/{flowDiagram-I6XJVG4X-C2G6Tgw_.js → flowDiagram-I6XJVG4X-Dx5d6cgt.js} +97 -96
  334. package/dist/functional-components/action/action-types.d.ts +5 -1
  335. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  336. package/dist/functional-components/action/action-utils.d.ts +1 -2
  337. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  338. package/dist/functional-components/action/action.d.ts.map +1 -1
  339. package/dist/functional-components/action-list/action-list-types.d.ts +2 -2
  340. package/dist/functional-components/badge/badge-assets.d.ts +3 -3
  341. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  342. package/dist/functional-components/shape/index.d.ts +9 -0
  343. package/dist/functional-components/shape/index.d.ts.map +1 -0
  344. package/dist/functional-components/shape/shape-map.d.ts +3 -0
  345. package/dist/functional-components/shape/shape-map.d.ts.map +1 -0
  346. package/dist/functional-components/shape/shape-registry.d.ts +25 -0
  347. package/dist/functional-components/shape/shape-registry.d.ts.map +1 -0
  348. package/dist/functional-components/shape/shape-resolver.d.ts +61 -0
  349. package/dist/functional-components/shape/shape-resolver.d.ts.map +1 -0
  350. package/dist/functional-components/shape/shape-types.d.ts +55 -0
  351. package/dist/functional-components/shape/shape-types.d.ts.map +1 -0
  352. package/dist/functional-components/shape/shape.d.ts +5 -0
  353. package/dist/functional-components/shape/shape.d.ts.map +1 -0
  354. package/dist/functional-components/shape/slot-resolver.d.ts +24 -0
  355. package/dist/functional-components/shape/slot-resolver.d.ts.map +1 -0
  356. package/dist/functional-components/shape/slot-types.d.ts +27 -0
  357. package/dist/functional-components/shape/slot-types.d.ts.map +1 -0
  358. package/dist/functional-components/shape/useSlotResolver.d.ts +13 -0
  359. package/dist/functional-components/shape/useSlotResolver.d.ts.map +1 -0
  360. package/dist/{ganttDiagram-6RSMTGT7-Bb6bqcaS.js → ganttDiagram-6RSMTGT7-CFuwKLrB.js} +192 -191
  361. package/dist/ganttDiagram-6RSMTGT7-CG_knKFc.cjs +292 -0
  362. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +3 -0
  363. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +1 -0
  364. package/dist/{gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs → gitGraphDiagram-PVQCEYII-B-VOfNjd.cjs} +1 -1
  365. package/dist/{gitGraphDiagram-PVQCEYII-DiJUr7lO.js → gitGraphDiagram-PVQCEYII-B2CaQTP_.js} +8 -8
  366. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  367. package/dist/{graphlib-B1zohIOM.js → graphlib-VMWSbyYi.js} +2 -1
  368. package/dist/index.d.ts +96 -10
  369. package/dist/index.d.ts.map +1 -1
  370. package/dist/info-J43DQDTF-DC3N8SoX.js +3 -0
  371. package/dist/info-J43DQDTF-jRjlWVKj.cjs +1 -0
  372. package/dist/{infoDiagram-5YYISTIA-fhwEAAjF.cjs → infoDiagram-5YYISTIA-22jaR465.cjs} +1 -1
  373. package/dist/{infoDiagram-5YYISTIA-C8P9DHlE.js → infoDiagram-5YYISTIA-CM-al6Jc.js} +4 -4
  374. package/dist/{init-CEL65JUo.cjs → init-07zIhv_j.cjs} +1 -1
  375. package/dist/{ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs → ishikawaDiagram-YF4QCWOH-CSRSkgHx.cjs} +1 -1
  376. package/dist/{ishikawaDiagram-YF4QCWOH-rqNbTKZp.js → ishikawaDiagram-YF4QCWOH-CfOvUIo-.js} +5 -5
  377. package/dist/{journeyDiagram-JHISSGLW-peUJlm3L.js → journeyDiagram-JHISSGLW-BMECXtd1.js} +5 -5
  378. package/dist/{journeyDiagram-JHISSGLW-BhHdd4y3.cjs → journeyDiagram-JHISSGLW-P42eSNEh.cjs} +1 -1
  379. package/dist/jsx-runtime-DCATrIRp.js +183 -0
  380. package/dist/jsx-runtime-DtVwqYNW.cjs +6 -0
  381. package/dist/{kanban-definition-UN3LZRKU-DLxDqiQn.js → kanban-definition-UN3LZRKU-DCzfGTs4.js} +10 -10
  382. package/dist/{kanban-definition-UN3LZRKU-TUg1x5yJ.cjs → kanban-definition-UN3LZRKU-DplPe2EX.cjs} +1 -1
  383. package/dist/ketchup2.cjs.js +102 -113
  384. package/dist/ketchup2.css +1 -1
  385. package/dist/ketchup2.es.js +42603 -47531
  386. package/dist/{line-BhAnxCE8.js → line-0G6sJTVA.js} +3 -3
  387. package/dist/{line-CpcTW4h-.cjs → line-CLmmMPn2.cjs} +1 -1
  388. package/dist/{linear-lSeWuvgy.js → linear-BNWgac81.js} +3 -3
  389. package/dist/{linear-D0eFmsG1.cjs → linear-yBssgUAc.cjs} +1 -1
  390. package/dist/locale/en/translation.json.d.ts +13 -2
  391. package/dist/locale/it/translation.json.d.ts +13 -2
  392. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +3 -0
  393. package/dist/mermaid-parser.core-D6xVjl2t.js +373 -0
  394. package/dist/{mindmap-definition-RKZ34NQL-D9BOsg5W.cjs → mindmap-definition-RKZ34NQL-DbK4qO1Z.cjs} +1 -1
  395. package/dist/{mindmap-definition-RKZ34NQL-DHkmUkxh.js → mindmap-definition-RKZ34NQL-DpX8ksst.js} +13 -13
  396. package/dist/{ordinal-BnUYNBtU.cjs → ordinal-CUPR-p0T.cjs} +1 -1
  397. package/dist/{ordinal-MD9_ORcM.js → ordinal-D_ZgubzR.js} +1 -1
  398. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +1 -0
  399. package/dist/packet-YPE3B663-D2JW2EUF.js +3 -0
  400. package/dist/{path-CRahBUHI.cjs → path-Kklx0M1v.cjs} +1 -1
  401. package/dist/pie-LRSECV5Y-BHyd33ZA.js +3 -0
  402. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +1 -0
  403. package/dist/{pieDiagram-4H26LBE5-ByA7ytZx.js → pieDiagram-4H26LBE5-CCgLxjTB.js} +13 -13
  404. package/dist/{pieDiagram-4H26LBE5-CrLJh4L9.cjs → pieDiagram-4H26LBE5-DAhjc9WT.cjs} +1 -1
  405. package/dist/purify.es-9OKVhuci.js +735 -0
  406. package/dist/purify.es-hdXGOu6N.cjs +3 -0
  407. package/dist/{quadrantDiagram-W4KKPZXB-CalC_db_.cjs → quadrantDiagram-W4KKPZXB-BBEQhVJy.cjs} +1 -1
  408. package/dist/{quadrantDiagram-W4KKPZXB-CHHpmu1l.js → quadrantDiagram-W4KKPZXB-Bgw66PrU.js} +3 -3
  409. package/dist/radar-GUYGQ44K-BpJWFTCm.js +3 -0
  410. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +1 -0
  411. package/dist/{requirementDiagram-4Y6WPE33-BVcDFSx8.js → requirementDiagram-4Y6WPE33-BzNEhq-x.js} +12 -12
  412. package/dist/{requirementDiagram-4Y6WPE33-SsePLT8d.cjs → requirementDiagram-4Y6WPE33-L_lL0BcB.cjs} +1 -1
  413. package/dist/{rough.esm-BEA_SCZB.cjs → rough.esm-r0QOSzHM.cjs} +1 -1
  414. package/dist/{sankeyDiagram-5OEKKPKP-C-ODz9lV.js → sankeyDiagram-5OEKKPKP-06MsaQmt.js} +3 -3
  415. package/dist/{sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs → sankeyDiagram-5OEKKPKP-Dy9K3F81.cjs} +1 -1
  416. package/dist/{sequenceDiagram-3UESZ5HK-DEVLteqD.cjs → sequenceDiagram-3UESZ5HK-C69YSjBM.cjs} +2 -2
  417. package/dist/{sequenceDiagram-3UESZ5HK-Cnc0aDO4.js → sequenceDiagram-3UESZ5HK-QEaDF4MY.js} +21 -21
  418. package/dist/src-CFBvxm_0.cjs +1 -0
  419. package/dist/{src-v9RrE_4h.js → src-GDFuItmC.js} +569 -581
  420. package/dist/{stateDiagram-AJRCARHV-CuHe6Iji.js → stateDiagram-AJRCARHV-BTzCb_Q-.js} +16 -16
  421. package/dist/{stateDiagram-AJRCARHV-D_yPvIRw.cjs → stateDiagram-AJRCARHV-CBbDL4Ct.cjs} +1 -1
  422. package/dist/stateDiagram-v2-BHNVJYJU-BrQR0oUL.cjs +1 -0
  423. package/dist/stateDiagram-v2-BHNVJYJU-C7E3JbTB.js +27 -0
  424. package/dist/{timeline-definition-PNZ67QCA-Cynbc96w.cjs → timeline-definition-PNZ67QCA-DJ9VKw6h.cjs} +1 -1
  425. package/dist/{timeline-definition-PNZ67QCA-Bj1BItRB.js → timeline-definition-PNZ67QCA-DoD4D5kw.js} +5 -5
  426. package/dist/treeView-BLDUP644-C9tQMbiq.js +3 -0
  427. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +1 -0
  428. package/dist/treemap-LRROVOQU-2aferAph.cjs +1 -0
  429. package/dist/treemap-LRROVOQU-CBv3oGC3.js +3 -0
  430. package/dist/types/data-structures.d.ts +4 -0
  431. package/dist/types/data-structures.d.ts.map +1 -1
  432. package/dist/types/translation.d.ts +14 -3
  433. package/dist/types/translation.d.ts.map +1 -1
  434. package/dist/useObjectProtocol-3BhpCUjG.cjs +3 -0
  435. package/dist/useObjectProtocol-DZdggHDN.js +4333 -0
  436. package/dist/utils/objects.d.ts +2 -0
  437. package/dist/utils/objects.d.ts.map +1 -1
  438. package/dist/{v4-CA8ev9YY.cjs → v4-Dyp-SQ1c.cjs} +1 -1
  439. package/dist/{vennDiagram-CIIHVFJN-Dm4D6omA.cjs → vennDiagram-CIIHVFJN-DeRVKdRG.cjs} +2 -2
  440. package/dist/{vennDiagram-CIIHVFJN-CdmcxixA.js → vennDiagram-CIIHVFJN-Du1h-z8K.js} +5 -5
  441. package/dist/wardley-L42UT6IY-CIM0_V5T.js +3 -0
  442. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +1 -0
  443. package/dist/{wardleyDiagram-YWT4CUSO-C-DdutxP.cjs → wardleyDiagram-YWT4CUSO-CaaSvy6n.cjs} +1 -1
  444. package/dist/{wardleyDiagram-YWT4CUSO-D1o116Wi.js → wardleyDiagram-YWT4CUSO-CjOm3Xnp.js} +8 -8
  445. package/dist/{xychartDiagram-2RQKCTM6-D0D4PIQS.cjs → xychartDiagram-2RQKCTM6-CWncieig.cjs} +1 -1
  446. package/dist/{xychartDiagram-2RQKCTM6-Byw7djcg.js → xychartDiagram-2RQKCTM6-D0hXWFFN.js} +9 -9
  447. package/package.json +27 -24
  448. package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +0 -3
  449. package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +0 -1
  450. package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +0 -36
  451. package/dist/array-Cx1JwiGD.cjs +0 -1
  452. package/dist/assets/imageListAssets.d.ts.map +0 -1
  453. package/dist/basic-components/qr-code/qr-code-helpers.d.ts +0 -15
  454. package/dist/basic-components/qr-code/qr-code-helpers.d.ts.map +0 -1
  455. package/dist/channel-intTktDQ.cjs +0 -1
  456. package/dist/chunk-4BX2VUAB-CtDGlaPx.cjs +0 -1
  457. package/dist/chunk-4EGX6M5U-BMVrizoY.js +0 -35
  458. package/dist/chunk-4EGX6M5U-VENLmgBt.cjs +0 -1
  459. package/dist/chunk-55IACEB6-VJP3Osm7.cjs +0 -1
  460. package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +0 -1
  461. package/dist/chunk-5DO6E6H7-QuTLwcim.js +0 -23
  462. package/dist/chunk-727SXJPM-DTmqhRKX.cjs +0 -206
  463. package/dist/chunk-BR22UD5L-CS6hURQQ.js +0 -64
  464. package/dist/chunk-BR22UD5L-wI1vkyAT.cjs +0 -1
  465. package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +0 -123
  466. package/dist/chunk-FHYWG6QK-CfRqYwCI.js +0 -23
  467. package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +0 -1
  468. package/dist/chunk-LZXEDZCA-Dpz_wx3M.cjs +0 -1
  469. package/dist/chunk-MPE355IW-4bpROspE.js +0 -23
  470. package/dist/chunk-MPE355IW-CxPw_dPP.cjs +0 -1
  471. package/dist/chunk-MZUSXYTE-DA5mUG5B.js +0 -30
  472. package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +0 -1
  473. package/dist/chunk-N66VUXT2-DSbygtq1.cjs +0 -1
  474. package/dist/chunk-N66VUXT2-pDZ1b-B3.js +0 -54
  475. package/dist/chunk-PUPMXCY4-CKjhJQnN.js +0 -23
  476. package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +0 -1
  477. package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +0 -1
  478. package/dist/chunk-UIBZB4QT-BvFllM0Q.js +0 -23
  479. package/dist/chunk-WCWK7LTN-D_C1as0Y.js +0 -31
  480. package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +0 -1
  481. package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +0 -1
  482. package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +0 -1
  483. package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +0 -29
  484. package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +0 -29
  485. package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +0 -1
  486. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +0 -1
  487. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +0 -1
  488. package/dist/components/image-list/components/image-list-drill-down.d.ts +0 -4
  489. package/dist/components/image-list/components/image-list-drill-down.d.ts.map +0 -1
  490. package/dist/components/image-list/components/image-list-filter-picker.d.ts +0 -14
  491. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +0 -1
  492. package/dist/components/image-list/components/image-list-h-strip.d.ts +0 -5
  493. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +0 -1
  494. package/dist/components/image-list/components/image-list-json-viewer.d.ts +0 -11
  495. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +0 -1
  496. package/dist/components/image-list/components/image-list-menu.d.ts +0 -5
  497. package/dist/components/image-list/components/image-list-menu.d.ts.map +0 -1
  498. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +0 -15
  499. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +0 -1
  500. package/dist/components/image-list/components/image-list-sort-picker.d.ts +0 -14
  501. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +0 -1
  502. package/dist/components/image-list/components/image-list-v-strip.d.ts +0 -5
  503. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +0 -1
  504. package/dist/components/image-list/components/items/image-list-card-item.d.ts +0 -5
  505. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +0 -1
  506. package/dist/components/image-list/components/items/image-list-folder-item.d.ts +0 -5
  507. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +0 -1
  508. package/dist/components/image-list/components/items/image-list-item.d.ts +0 -5
  509. package/dist/components/image-list/components/items/image-list-item.d.ts.map +0 -1
  510. package/dist/components/image-list/components/menu-nav-item.d.ts +0 -5
  511. package/dist/components/image-list/components/menu-nav-item.d.ts.map +0 -1
  512. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts +0 -5
  513. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +0 -1
  514. package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts +0 -5
  515. package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts.map +0 -1
  516. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts +0 -5
  517. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +0 -1
  518. package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts +0 -5
  519. package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts.map +0 -1
  520. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts +0 -5
  521. package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts.map +0 -1
  522. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts +0 -5
  523. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +0 -1
  524. package/dist/components/image-list/components/strip-child-popup.d.ts.map +0 -1
  525. package/dist/components/image-list/components/strip-item.d.ts.map +0 -1
  526. package/dist/components/image-list/components/strip-overflow-button.d.ts.map +0 -1
  527. package/dist/components/image-list/image-list-column-utils.d.ts +0 -9
  528. package/dist/components/image-list/image-list-column-utils.d.ts.map +0 -1
  529. package/dist/components/image-list/image-list-context.d.ts +0 -29
  530. package/dist/components/image-list/image-list-context.d.ts.map +0 -1
  531. package/dist/components/image-list/image-list-debug-utils.d.ts.map +0 -1
  532. package/dist/components/image-list/image-list-filter-context.d.ts +0 -9
  533. package/dist/components/image-list/image-list-filter-context.d.ts.map +0 -1
  534. package/dist/components/image-list/image-list-filter-utils.d.ts +0 -12
  535. package/dist/components/image-list/image-list-filter-utils.d.ts.map +0 -1
  536. package/dist/components/image-list/image-list-sort-context.d.ts +0 -9
  537. package/dist/components/image-list/image-list-sort-context.d.ts.map +0 -1
  538. package/dist/components/image-list/image-list-sort-utils.d.ts +0 -13
  539. package/dist/components/image-list/image-list-sort-utils.d.ts.map +0 -1
  540. package/dist/components/image-list/image-list-state-context.d.ts.map +0 -1
  541. package/dist/components/image-list/image-list-types.d.ts +0 -196
  542. package/dist/components/image-list/image-list-types.d.ts.map +0 -1
  543. package/dist/components/image-list/image-list-utils.d.ts +0 -83
  544. package/dist/components/image-list/image-list-utils.d.ts.map +0 -1
  545. package/dist/components/image-list/image-list.d.ts +0 -5
  546. package/dist/components/image-list/image-list.d.ts.map +0 -1
  547. package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +0 -1
  548. package/dist/dist-DC1YYeHc.cjs +0 -1
  549. package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +0 -3
  550. package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +0 -1
  551. package/dist/flowDiagram-I6XJVG4X-ChI_6giU.cjs +0 -162
  552. package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +0 -292
  553. package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +0 -1
  554. package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +0 -3
  555. package/dist/graphlib-B5AXIZA4.cjs +0 -1
  556. package/dist/info-J43DQDTF-CLRXRK49.js +0 -3
  557. package/dist/info-J43DQDTF-CmpcAuH-.cjs +0 -1
  558. package/dist/mermaid-parser.core-Dz33ts1l.js +0 -74
  559. package/dist/mermaid-parser.core-HQxPJrkY.cjs +0 -3
  560. package/dist/packet-YPE3B663-BwjweAZY.cjs +0 -1
  561. package/dist/packet-YPE3B663-D1Hr9AQm.js +0 -3
  562. package/dist/pie-LRSECV5Y-CpDfN1P0.js +0 -3
  563. package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +0 -1
  564. package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +0 -1
  565. package/dist/radar-GUYGQ44K-ByzrmbOz.js +0 -3
  566. package/dist/src-BgvDIw01.cjs +0 -1
  567. package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +0 -1
  568. package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +0 -27
  569. package/dist/treeView-BLDUP644-CxLhpd93.js +0 -3
  570. package/dist/treeView-BLDUP644-DMwVx0AR.cjs +0 -1
  571. package/dist/treemap-LRROVOQU-BqmiLdFI.js +0 -3
  572. package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +0 -1
  573. package/dist/wardley-L42UT6IY-C7UjBmVh.js +0 -3
  574. package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +0 -1
  575. /package/dist/{array-CBdkHBGa.js → array-CApNbSU9.js} +0 -0
  576. /package/dist/components/{image-list → shape-list}/hooks/useCommandPickers.d.ts +0 -0
  577. /package/dist/components/{image-list → shape-list}/hooks/useStripOverflow.d.ts +0 -0
  578. /package/dist/{defaultLocale-dGy1YRID.js → defaultLocale-DnzPsei5.js} +0 -0
  579. /package/dist/{init-B7h4SEX5.js → init-MwSGRDIl.js} +0 -0
  580. /package/dist/{katex-HkVgAsLB.cjs → katex-CkiTumqg.cjs} +0 -0
  581. /package/dist/{katex-DWDh1q_h.js → katex-D-2KeLwt.js} +0 -0
  582. /package/dist/{path-CAXMhBzK.js → path-DGNPZRdx.js} +0 -0
  583. /package/dist/{rough.esm-TWNWL4Us.js → rough.esm-rcMoXTJj.js} +0 -0
  584. /package/dist/{v4-BpDBEhLK.js → v4-BK7K-jy_.js} +0 -0
@@ -0,0 +1,4333 @@
1
+ import { r as e, t } from "./chunk-Dqa2HsxW.js";
2
+ import { t as n } from "./jsx-runtime-DCATrIRp.js";
3
+ import * as r from "react";
4
+ import i, { useCallback as a, useContext as o, useEffect as s, useId as c, useLayoutEffect as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
5
+ import { createPortal as p } from "react-dom";
6
+ //#region src/styles/globals.module.css
7
+ var m = {
8
+ "smp-justify-center": "_smp-justify-center_a8pvg_1",
9
+ "smp-justify-end": "_smp-justify-end_a8pvg_1",
10
+ "smp-justify-start": "_smp-justify-start_a8pvg_1",
11
+ "smp-justify-between": "_smp-justify-between_a8pvg_1",
12
+ "smp-justify-around": "_smp-justify-around_a8pvg_1",
13
+ "smp-justify-evenly": "_smp-justify-evenly_a8pvg_1",
14
+ "smp-items-center": "_smp-items-center_a8pvg_1",
15
+ "smp-items-end": "_smp-items-end_a8pvg_1",
16
+ "smp-items-start": "_smp-items-start_a8pvg_1",
17
+ "smp-gap-0": "_smp-gap-0_a8pvg_1",
18
+ "smp-gap-1": "_smp-gap-1_a8pvg_1",
19
+ "smp-gap-2": "_smp-gap-2_a8pvg_1",
20
+ "smp-gap-3": "_smp-gap-3_a8pvg_1",
21
+ "smp-gap-4": "_smp-gap-4_a8pvg_1",
22
+ "smp-gap-5": "_smp-gap-5_a8pvg_1",
23
+ "smp-gap-6": "_smp-gap-6_a8pvg_1",
24
+ "smp-gap-7": "_smp-gap-7_a8pvg_1",
25
+ "smp-gap-8": "_smp-gap-8_a8pvg_1",
26
+ "smp-gap-9": "_smp-gap-9_a8pvg_1",
27
+ "smp-gap-10": "_smp-gap-10_a8pvg_1",
28
+ "smp-gap-11": "_smp-gap-11_a8pvg_1",
29
+ "smp-gap-12": "_smp-gap-12_a8pvg_1",
30
+ "smp-gap-13": "_smp-gap-13_a8pvg_1",
31
+ "smp-gap-14": "_smp-gap-14_a8pvg_1",
32
+ "smp-gap-15": "_smp-gap-15_a8pvg_1",
33
+ "smp-grid-cols-1": "_smp-grid-cols-1_a8pvg_1",
34
+ "smp-grid-cols-2": "_smp-grid-cols-2_a8pvg_1",
35
+ "smp-grid-cols-3": "_smp-grid-cols-3_a8pvg_1",
36
+ "smp-grid-cols-4": "_smp-grid-cols-4_a8pvg_1",
37
+ "smp-grid-cols-5": "_smp-grid-cols-5_a8pvg_1",
38
+ "smp-grid-cols-6": "_smp-grid-cols-6_a8pvg_1",
39
+ "smp-grid-cols-7": "_smp-grid-cols-7_a8pvg_1",
40
+ "smp-grid-cols-8": "_smp-grid-cols-8_a8pvg_1",
41
+ "smp-grid-cols-9": "_smp-grid-cols-9_a8pvg_1",
42
+ "smp-grid-cols-10": "_smp-grid-cols-10_a8pvg_1",
43
+ "smp-grid-cols-11": "_smp-grid-cols-11_a8pvg_1",
44
+ "smp-grid-cols-12": "_smp-grid-cols-12_a8pvg_1",
45
+ "smp-grid-rows-1": "_smp-grid-rows-1_a8pvg_1",
46
+ "smp-grid-rows-2": "_smp-grid-rows-2_a8pvg_1",
47
+ "smp-grid-rows-3": "_smp-grid-rows-3_a8pvg_1",
48
+ "smp-grid-rows-4": "_smp-grid-rows-4_a8pvg_1",
49
+ "smp-grid-rows-5": "_smp-grid-rows-5_a8pvg_1",
50
+ "smp-grid-rows-6": "_smp-grid-rows-6_a8pvg_1",
51
+ "smp-grid-rows-7": "_smp-grid-rows-7_a8pvg_1",
52
+ "smp-grid-rows-8": "_smp-grid-rows-8_a8pvg_1",
53
+ "smp-grid-rows-9": "_smp-grid-rows-9_a8pvg_1",
54
+ "smp-grid-rows-10": "_smp-grid-rows-10_a8pvg_1",
55
+ "smp-grid-rows-11": "_smp-grid-rows-11_a8pvg_1",
56
+ "smp-grid-rows-12": "_smp-grid-rows-12_a8pvg_1",
57
+ "smp-col-start-1": "_smp-col-start-1_a8pvg_1",
58
+ "smp-col-end-1": "_smp-col-end-1_a8pvg_1",
59
+ "smp-col-span-1": "_smp-col-span-1_a8pvg_1",
60
+ "smp-col-start-2": "_smp-col-start-2_a8pvg_1",
61
+ "smp-col-end-2": "_smp-col-end-2_a8pvg_1",
62
+ "smp-col-span-2": "_smp-col-span-2_a8pvg_1",
63
+ "smp-col-start-3": "_smp-col-start-3_a8pvg_1",
64
+ "smp-col-end-3": "_smp-col-end-3_a8pvg_1",
65
+ "smp-col-span-3": "_smp-col-span-3_a8pvg_1",
66
+ "smp-col-start-4": "_smp-col-start-4_a8pvg_1",
67
+ "smp-col-end-4": "_smp-col-end-4_a8pvg_1",
68
+ "smp-col-span-4": "_smp-col-span-4_a8pvg_1",
69
+ "smp-col-start-5": "_smp-col-start-5_a8pvg_1",
70
+ "smp-col-end-5": "_smp-col-end-5_a8pvg_1",
71
+ "smp-col-span-5": "_smp-col-span-5_a8pvg_1",
72
+ "smp-col-start-6": "_smp-col-start-6_a8pvg_1",
73
+ "smp-col-end-6": "_smp-col-end-6_a8pvg_1",
74
+ "smp-col-span-6": "_smp-col-span-6_a8pvg_1",
75
+ "smp-col-start-7": "_smp-col-start-7_a8pvg_1",
76
+ "smp-col-end-7": "_smp-col-end-7_a8pvg_1",
77
+ "smp-col-span-7": "_smp-col-span-7_a8pvg_1",
78
+ "smp-col-start-8": "_smp-col-start-8_a8pvg_1",
79
+ "smp-col-end-8": "_smp-col-end-8_a8pvg_1",
80
+ "smp-col-span-8": "_smp-col-span-8_a8pvg_1",
81
+ "smp-col-start-9": "_smp-col-start-9_a8pvg_1",
82
+ "smp-col-end-9": "_smp-col-end-9_a8pvg_1",
83
+ "smp-col-span-9": "_smp-col-span-9_a8pvg_1",
84
+ "smp-col-start-10": "_smp-col-start-10_a8pvg_1",
85
+ "smp-col-end-10": "_smp-col-end-10_a8pvg_1",
86
+ "smp-col-span-10": "_smp-col-span-10_a8pvg_1",
87
+ "smp-col-start-11": "_smp-col-start-11_a8pvg_1",
88
+ "smp-col-end-11": "_smp-col-end-11_a8pvg_1",
89
+ "smp-col-span-11": "_smp-col-span-11_a8pvg_1",
90
+ "smp-col-start-12": "_smp-col-start-12_a8pvg_1",
91
+ "smp-col-end-12": "_smp-col-end-12_a8pvg_1",
92
+ "smp-col-span-12": "_smp-col-span-12_a8pvg_1",
93
+ "smp-col-start-13": "_smp-col-start-13_a8pvg_1",
94
+ "smp-col-end-13": "_smp-col-end-13_a8pvg_1",
95
+ "smp-col-span-13": "_smp-col-span-13_a8pvg_1",
96
+ "smp-col-start-14": "_smp-col-start-14_a8pvg_1",
97
+ "smp-col-end-14": "_smp-col-end-14_a8pvg_1",
98
+ "smp-col-span-14": "_smp-col-span-14_a8pvg_1",
99
+ "smp-col-start-15": "_smp-col-start-15_a8pvg_1",
100
+ "smp-col-end-15": "_smp-col-end-15_a8pvg_1",
101
+ "smp-col-span-15": "_smp-col-span-15_a8pvg_1",
102
+ "smp-col-start-16": "_smp-col-start-16_a8pvg_1",
103
+ "smp-col-end-16": "_smp-col-end-16_a8pvg_1",
104
+ "smp-col-span-16": "_smp-col-span-16_a8pvg_1",
105
+ "smp-col-start-17": "_smp-col-start-17_a8pvg_1",
106
+ "smp-col-end-17": "_smp-col-end-17_a8pvg_1",
107
+ "smp-col-span-17": "_smp-col-span-17_a8pvg_1",
108
+ "smp-col-start-18": "_smp-col-start-18_a8pvg_1",
109
+ "smp-col-end-18": "_smp-col-end-18_a8pvg_1",
110
+ "smp-col-span-18": "_smp-col-span-18_a8pvg_1",
111
+ "smp-col-start-19": "_smp-col-start-19_a8pvg_1",
112
+ "smp-col-end-19": "_smp-col-end-19_a8pvg_1",
113
+ "smp-col-span-19": "_smp-col-span-19_a8pvg_1",
114
+ "smp-col-start-20": "_smp-col-start-20_a8pvg_1",
115
+ "smp-col-end-20": "_smp-col-end-20_a8pvg_1",
116
+ "smp-col-span-20": "_smp-col-span-20_a8pvg_1",
117
+ "smp-col-start-21": "_smp-col-start-21_a8pvg_1",
118
+ "smp-col-end-21": "_smp-col-end-21_a8pvg_1",
119
+ "smp-col-span-21": "_smp-col-span-21_a8pvg_1",
120
+ "smp-col-start-22": "_smp-col-start-22_a8pvg_1",
121
+ "smp-col-end-22": "_smp-col-end-22_a8pvg_1",
122
+ "smp-col-span-22": "_smp-col-span-22_a8pvg_1",
123
+ "smp-col-start-23": "_smp-col-start-23_a8pvg_1",
124
+ "smp-col-end-23": "_smp-col-end-23_a8pvg_1",
125
+ "smp-col-span-23": "_smp-col-span-23_a8pvg_1",
126
+ "smp-col-start-24": "_smp-col-start-24_a8pvg_1",
127
+ "smp-col-end-24": "_smp-col-end-24_a8pvg_1",
128
+ "smp-col-span-24": "_smp-col-span-24_a8pvg_1",
129
+ "smp-row-start-1": "_smp-row-start-1_a8pvg_1",
130
+ "smp-row-end-1": "_smp-row-end-1_a8pvg_1",
131
+ "smp-row-span-1": "_smp-row-span-1_a8pvg_1",
132
+ "smp-row-start-2": "_smp-row-start-2_a8pvg_1",
133
+ "smp-row-end-2": "_smp-row-end-2_a8pvg_1",
134
+ "smp-row-span-2": "_smp-row-span-2_a8pvg_1",
135
+ "smp-row-start-3": "_smp-row-start-3_a8pvg_1",
136
+ "smp-row-end-3": "_smp-row-end-3_a8pvg_1",
137
+ "smp-row-span-3": "_smp-row-span-3_a8pvg_1",
138
+ "smp-row-start-4": "_smp-row-start-4_a8pvg_1",
139
+ "smp-row-end-4": "_smp-row-end-4_a8pvg_1",
140
+ "smp-row-span-4": "_smp-row-span-4_a8pvg_1",
141
+ "smp-row-start-5": "_smp-row-start-5_a8pvg_1",
142
+ "smp-row-end-5": "_smp-row-end-5_a8pvg_1",
143
+ "smp-row-span-5": "_smp-row-span-5_a8pvg_1",
144
+ "smp-row-start-6": "_smp-row-start-6_a8pvg_1",
145
+ "smp-row-end-6": "_smp-row-end-6_a8pvg_1",
146
+ "smp-row-span-6": "_smp-row-span-6_a8pvg_1",
147
+ "smp-row-start-7": "_smp-row-start-7_a8pvg_1",
148
+ "smp-row-end-7": "_smp-row-end-7_a8pvg_1",
149
+ "smp-row-span-7": "_smp-row-span-7_a8pvg_1",
150
+ "smp-row-start-8": "_smp-row-start-8_a8pvg_1",
151
+ "smp-row-end-8": "_smp-row-end-8_a8pvg_1",
152
+ "smp-row-span-8": "_smp-row-span-8_a8pvg_1",
153
+ "smp-row-start-9": "_smp-row-start-9_a8pvg_1",
154
+ "smp-row-end-9": "_smp-row-end-9_a8pvg_1",
155
+ "smp-row-span-9": "_smp-row-span-9_a8pvg_1",
156
+ "smp-row-start-10": "_smp-row-start-10_a8pvg_1",
157
+ "smp-row-end-10": "_smp-row-end-10_a8pvg_1",
158
+ "smp-row-span-10": "_smp-row-span-10_a8pvg_1",
159
+ "smp-row-start-11": "_smp-row-start-11_a8pvg_1",
160
+ "smp-row-end-11": "_smp-row-end-11_a8pvg_1",
161
+ "smp-row-span-11": "_smp-row-span-11_a8pvg_1",
162
+ "smp-row-start-12": "_smp-row-start-12_a8pvg_1",
163
+ "smp-row-end-12": "_smp-row-end-12_a8pvg_1",
164
+ "smp-row-span-12": "_smp-row-span-12_a8pvg_1",
165
+ "smp-row-start-13": "_smp-row-start-13_a8pvg_1",
166
+ "smp-row-end-13": "_smp-row-end-13_a8pvg_1",
167
+ "smp-row-span-13": "_smp-row-span-13_a8pvg_1",
168
+ "smp-row-start-14": "_smp-row-start-14_a8pvg_1",
169
+ "smp-row-end-14": "_smp-row-end-14_a8pvg_1",
170
+ "smp-row-span-14": "_smp-row-span-14_a8pvg_1",
171
+ "smp-row-start-15": "_smp-row-start-15_a8pvg_1",
172
+ "smp-row-end-15": "_smp-row-end-15_a8pvg_1",
173
+ "smp-row-span-15": "_smp-row-span-15_a8pvg_1",
174
+ "smp-row-start-16": "_smp-row-start-16_a8pvg_1",
175
+ "smp-row-end-16": "_smp-row-end-16_a8pvg_1",
176
+ "smp-row-span-16": "_smp-row-span-16_a8pvg_1",
177
+ "smp-row-start-17": "_smp-row-start-17_a8pvg_1",
178
+ "smp-row-end-17": "_smp-row-end-17_a8pvg_1",
179
+ "smp-row-span-17": "_smp-row-span-17_a8pvg_1",
180
+ "smp-row-start-18": "_smp-row-start-18_a8pvg_1",
181
+ "smp-row-end-18": "_smp-row-end-18_a8pvg_1",
182
+ "smp-row-span-18": "_smp-row-span-18_a8pvg_1",
183
+ "smp-row-start-19": "_smp-row-start-19_a8pvg_1",
184
+ "smp-row-end-19": "_smp-row-end-19_a8pvg_1",
185
+ "smp-row-span-19": "_smp-row-span-19_a8pvg_1",
186
+ "smp-row-start-20": "_smp-row-start-20_a8pvg_1",
187
+ "smp-row-end-20": "_smp-row-end-20_a8pvg_1",
188
+ "smp-row-span-20": "_smp-row-span-20_a8pvg_1",
189
+ "smp-row-start-21": "_smp-row-start-21_a8pvg_1",
190
+ "smp-row-end-21": "_smp-row-end-21_a8pvg_1",
191
+ "smp-row-span-21": "_smp-row-span-21_a8pvg_1",
192
+ "smp-row-start-22": "_smp-row-start-22_a8pvg_1",
193
+ "smp-row-end-22": "_smp-row-end-22_a8pvg_1",
194
+ "smp-row-span-22": "_smp-row-span-22_a8pvg_1",
195
+ "smp-row-start-23": "_smp-row-start-23_a8pvg_1",
196
+ "smp-row-end-23": "_smp-row-end-23_a8pvg_1",
197
+ "smp-row-span-23": "_smp-row-span-23_a8pvg_1",
198
+ "smp-row-start-24": "_smp-row-start-24_a8pvg_1",
199
+ "smp-row-end-24": "_smp-row-end-24_a8pvg_1",
200
+ "smp-row-span-24": "_smp-row-span-24_a8pvg_1"
201
+ };
202
+ //#endregion
203
+ //#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
204
+ function h(e, t) {
205
+ if (e == null) return {};
206
+ var n = {};
207
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
208
+ if (t.indexOf(r) !== -1) continue;
209
+ n[r] = e[r];
210
+ }
211
+ return n;
212
+ }
213
+ //#endregion
214
+ //#region node_modules/@babel/runtime/helpers/esm/extends.js
215
+ function g() {
216
+ return g = Object.assign ? Object.assign.bind() : function(e) {
217
+ for (var t = 1; t < arguments.length; t++) {
218
+ var n = arguments[t];
219
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
220
+ }
221
+ return e;
222
+ }, g.apply(null, arguments);
223
+ }
224
+ //#endregion
225
+ //#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
226
+ function _(e, t) {
227
+ return _ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
228
+ return e.__proto__ = t, e;
229
+ }, _(e, t);
230
+ }
231
+ //#endregion
232
+ //#region node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
233
+ function v(e, t) {
234
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, _(e, t);
235
+ }
236
+ //#endregion
237
+ //#region node_modules/tslib/tslib.es6.mjs
238
+ function y(e, t, n) {
239
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
240
+ return e.concat(a || Array.prototype.slice.call(t));
241
+ }
242
+ //#endregion
243
+ //#region node_modules/@tanem/svg-injector/dist/svg-injector.esm.js
244
+ var b = (/* @__PURE__ */ t(((e) => {
245
+ var t = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, n = /\\([\u000b\u0020-\u00ff])/g, r = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
246
+ e.parse = i;
247
+ function i(e) {
248
+ if (!e) throw TypeError("argument string is required");
249
+ var i = typeof e == "object" ? a(e) : e;
250
+ if (typeof i != "string") throw TypeError("argument string is required to be a string");
251
+ var s = i.indexOf(";"), c = s === -1 ? i.trim() : i.slice(0, s).trim();
252
+ if (!r.test(c)) throw TypeError("invalid media type");
253
+ var l = new o(c.toLowerCase());
254
+ if (s !== -1) {
255
+ var u, d, f;
256
+ for (t.lastIndex = s; d = t.exec(i);) {
257
+ if (d.index !== s) throw TypeError("invalid parameter format");
258
+ s += d[0].length, u = d[1].toLowerCase(), f = d[2], f.charCodeAt(0) === 34 && (f = f.slice(1, -1), f.indexOf("\\") !== -1 && (f = f.replace(n, "$1"))), l.parameters[u] = f;
259
+ }
260
+ if (s !== i.length) throw TypeError("invalid parameter format");
261
+ }
262
+ return l;
263
+ }
264
+ function a(e) {
265
+ var t;
266
+ if (typeof e.getHeader == "function" ? t = e.getHeader("content-type") : typeof e.headers == "object" && (t = e.headers && e.headers["content-type"]), typeof t != "string") throw TypeError("content-type header is missing from object");
267
+ return t;
268
+ }
269
+ function o(e) {
270
+ this.parameters = Object.create(null), this.type = e;
271
+ }
272
+ })))(), x = "http://www.w3.org/2000/svg", S = function(e, t) {
273
+ var n = e.querySelector("#" + CSS.escape(t));
274
+ if (n?.tagName.toLowerCase() !== "symbol") return null;
275
+ for (var r = document.createElementNS(x, "svg"), i = n.attributes, a = 0, o = i.length; a < o; a++) {
276
+ var s = i[a];
277
+ s.name !== "id" && r.setAttribute(s.name, s.value);
278
+ }
279
+ for (var c = n.childNodes, a = 0, o = c.length; a < o; a++) r.appendChild(c[a].cloneNode(!0));
280
+ return r;
281
+ }, C = /* @__PURE__ */ new Map(), w = function(e) {
282
+ return e.cloneNode(!0);
283
+ }, T = function() {
284
+ return window.location.protocol === "file:";
285
+ }, E = function(e, t, n) {
286
+ var r = new XMLHttpRequest();
287
+ r.onreadystatechange = function() {
288
+ try {
289
+ if (!/\.svg/i.test(e) && r.readyState === 2) {
290
+ var t = r.getResponseHeader("Content-Type");
291
+ if (!t) throw Error("Content type not found");
292
+ var i = (0, b.parse)(t).type;
293
+ if (!(i === "image/svg+xml" || i === "text/plain")) throw Error(`Invalid content type: ${i}`);
294
+ }
295
+ if (r.readyState === 4) {
296
+ if (r.status === 404 || r.responseXML === null) throw Error(T() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
297
+ if (r.status === 200 || T() && r.status === 0) n(null, r);
298
+ else throw Error("There was a problem injecting the SVG: " + r.status + " " + r.statusText);
299
+ }
300
+ } catch (e) {
301
+ if (r.abort(), e instanceof Error) n(e, r);
302
+ else throw e;
303
+ }
304
+ }, r.open("GET", e), r.withCredentials = t, r.overrideMimeType && r.overrideMimeType("image/svg+xml"), r.send();
305
+ }, D = {}, O = function(e, t) {
306
+ D[e] ?? (D[e] = []), D[e].push(t);
307
+ }, k = function(e) {
308
+ var t = D[e];
309
+ if (t) for (var n = function(n, r) {
310
+ setTimeout(function() {
311
+ if (Array.isArray(D[e])) {
312
+ var r = C.get(e), i = t[n];
313
+ if (!i) return;
314
+ r instanceof SVGSVGElement && i(null, w(r)), r instanceof Error && i(r), n === t.length - 1 && delete D[e];
315
+ }
316
+ }, 0);
317
+ }, r = 0, i = t.length; r < i; r++) n(r);
318
+ }, A = function(e, t, n) {
319
+ if (C.has(e)) {
320
+ var r = C.get(e);
321
+ if (r === void 0) {
322
+ O(e, n);
323
+ return;
324
+ }
325
+ if (r instanceof SVGSVGElement) {
326
+ n(null, w(r));
327
+ return;
328
+ }
329
+ }
330
+ C.set(e, void 0), O(e, n), E(e, t, function(t, n) {
331
+ t ? C.set(e, t) : n.responseXML?.documentElement instanceof SVGSVGElement && C.set(e, n.responseXML.documentElement), k(e);
332
+ });
333
+ }, ee = function(e, t, n) {
334
+ E(e, t, function(e, t) {
335
+ e ? n(e) : t.responseXML?.documentElement instanceof SVGSVGElement && n(null, t.responseXML.documentElement);
336
+ });
337
+ }, j = "data:image/svg+xml", M = function(e) {
338
+ if (!e.startsWith(j)) return null;
339
+ var t = e.slice(j.length), n;
340
+ if (t.startsWith(";base64,")) try {
341
+ n = atob(t.slice(8));
342
+ } catch {
343
+ return /* @__PURE__ */ Error("Invalid base64 in data URL");
344
+ }
345
+ else if (t.startsWith(",")) try {
346
+ n = decodeURIComponent(t.slice(1));
347
+ } catch {
348
+ return /* @__PURE__ */ Error("Invalid encoding in data URL");
349
+ }
350
+ else if (t.startsWith(";charset=utf-8,")) try {
351
+ n = decodeURIComponent(t.slice(15));
352
+ } catch {
353
+ return /* @__PURE__ */ Error("Invalid encoding in data URL");
354
+ }
355
+ else return /* @__PURE__ */ Error("Unsupported data URL format");
356
+ var r = new DOMParser().parseFromString(n, "image/svg+xml"), i = r.querySelector("parsererror");
357
+ return i ? /* @__PURE__ */ Error("Data URL SVG parse error: " + i.textContent.trim()) : r.documentElement instanceof SVGSVGElement ? r.documentElement : /* @__PURE__ */ Error("Data URL did not contain a valid SVG element");
358
+ }, te = 0, ne = function() {
359
+ return ++te;
360
+ }, N = [], re = {}, ie = "http://www.w3.org/2000/svg", ae = "http://www.w3.org/1999/xlink", oe = function(e, t, n, r, i, a, o) {
361
+ var s = e.getAttribute("data-src") ?? e.getAttribute("src");
362
+ if (!s) {
363
+ o(/* @__PURE__ */ Error("Invalid data-src or src attribute"));
364
+ return;
365
+ }
366
+ if (N.indexOf(e) !== -1) {
367
+ N.splice(N.indexOf(e), 1), e = null;
368
+ return;
369
+ }
370
+ N.push(e), e.setAttribute("src", "");
371
+ var c = s.indexOf("#"), l = c === -1 ? s : s.slice(0, c), u = c === -1 ? null : s.slice(c + 1), d = M(l);
372
+ if (d instanceof Error) {
373
+ N.splice(N.indexOf(e), 1), e = null, o(d);
374
+ return;
375
+ }
376
+ var f = function(r, i) {
377
+ if (!i) {
378
+ N.splice(N.indexOf(e), 1), e = null, o(r);
379
+ return;
380
+ }
381
+ var c = i;
382
+ if (u) {
383
+ var d = S(i, u);
384
+ if (!d) {
385
+ N.splice(N.indexOf(e), 1), e = null, o(/* @__PURE__ */ Error(`Symbol "${u}" not found in ${l}`));
386
+ return;
387
+ }
388
+ c = d;
389
+ }
390
+ var f = e.getAttribute("id");
391
+ f && c.setAttribute("id", f);
392
+ var p = e.getAttribute("title");
393
+ p && c.setAttribute("title", p);
394
+ var m = e.getAttribute("width");
395
+ m && c.setAttribute("width", m);
396
+ var h = e.getAttribute("height");
397
+ h && c.setAttribute("height", h);
398
+ var g = Array.from(new Set(y(y(y([], (c.getAttribute("class") ?? "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") ?? "").split(" "), !0))).join(" ").trim();
399
+ c.setAttribute("class", g);
400
+ var _ = e.getAttribute("style");
401
+ _ && c.setAttribute("style", _), c.setAttribute("data-src", s);
402
+ var v = [].filter.call(e.attributes, function(e) {
403
+ return /^data-\w[\w-]*$/.test(e.name);
404
+ });
405
+ if (Array.prototype.forEach.call(v, function(e) {
406
+ e.name && e.value && c.setAttribute(e.name, e.value);
407
+ }), n) {
408
+ var b = {
409
+ clipPath: ["clip-path"],
410
+ "color-profile": ["color-profile"],
411
+ cursor: ["cursor"],
412
+ filter: ["filter"],
413
+ linearGradient: ["fill", "stroke"],
414
+ marker: [
415
+ "marker",
416
+ "marker-start",
417
+ "marker-mid",
418
+ "marker-end"
419
+ ],
420
+ mask: ["mask"],
421
+ path: [],
422
+ pattern: ["fill", "stroke"],
423
+ radialGradient: ["fill", "stroke"]
424
+ }, x = function(e, t) {
425
+ return e.replace(/url\((['"]?)\s*#([^\s'"\)]+)\s*\1\)/g, function(e, n, r) {
426
+ var i = t[r];
427
+ return i ? `url(#${i})` : e;
428
+ });
429
+ }, C = function(e, t) {
430
+ if (!e.startsWith("#")) return e;
431
+ var n = t[e.slice(1)];
432
+ return n ? "#" + n : e;
433
+ }, w, T, E, D, O, k = [], A = {};
434
+ Object.keys(b).forEach(function(e) {
435
+ w = e, T = c.querySelectorAll(w + "[id]");
436
+ for (var t = 0, n = T.length; t < n; t++) {
437
+ var r = T[t];
438
+ D = r.id, O = D + "-" + ne(), A[D] = O, k.push({
439
+ element: r,
440
+ currentId: D,
441
+ newId: O
442
+ });
443
+ }
444
+ }), Object.keys(b).forEach(function(e) {
445
+ E = b[e];
446
+ var t;
447
+ Array.prototype.forEach.call(E, function(e) {
448
+ t = c.querySelectorAll("[" + e + "]");
449
+ for (var n = 0, r = t.length; n < r; n++) {
450
+ var i = t[n], a = i.getAttribute(e);
451
+ if (a) {
452
+ var o = x(a, A);
453
+ o !== a && i.setAttribute(e, o);
454
+ }
455
+ }
456
+ });
457
+ });
458
+ for (var ee = c.querySelectorAll("*"), j = 0, M = ee.length; j < M; j++) {
459
+ var te = ee[j], oe = te.getAttribute("href");
460
+ if (oe) {
461
+ var se = C(oe, A);
462
+ se !== oe && te.setAttribute("href", se);
463
+ }
464
+ var ce = te.getAttributeNS(ae, "href");
465
+ if (ce) {
466
+ var le = C(ce, A);
467
+ le !== ce && te.setAttributeNS(ae, "href", le);
468
+ }
469
+ }
470
+ for (var ue = c.querySelectorAll("[style]"), de = 0, fe = ue.length; de < fe; de++) {
471
+ var pe = ue[de], me = pe.getAttribute("style");
472
+ if (me) {
473
+ var P = x(me, A);
474
+ P !== me && pe.setAttribute("style", P);
475
+ }
476
+ }
477
+ for (var he = c.querySelectorAll("style"), F = 0, ge = he.length; F < ge; F++) {
478
+ var I = he[F], _e = I.textContent;
479
+ if (_e) {
480
+ var L = x(_e, A);
481
+ L !== _e && (I.textContent = L);
482
+ }
483
+ }
484
+ for (var R = 0, ve = k.length; R < ve; R++) k[R].element.id = k[R].newId;
485
+ }
486
+ c.removeAttribute("xmlns:a");
487
+ for (var ye = c.querySelectorAll("script"), z = [], be, xe, Se = 0, B = ye.length; Se < B; Se++) {
488
+ var V = ye[Se];
489
+ xe = V.getAttribute("type"), (!xe || xe === "application/ecmascript" || xe === "application/javascript" || xe === "text/javascript") && (be = V.innerText || V.textContent, be && z.push(be), c.removeChild(V));
490
+ }
491
+ if (z.length > 0 && (t === "always" || t === "once" && !re[s])) {
492
+ for (var H = 0, Ce = z.length; H < Ce; H++) Function(z[H])(window);
493
+ re[s] = !0;
494
+ }
495
+ var we = c.querySelectorAll("style");
496
+ if (Array.prototype.forEach.call(we, function(e) {
497
+ e.textContent += "";
498
+ }), c.setAttribute("xmlns", ie), c.setAttribute("xmlns:xlink", ae), a(c), !e.parentNode) {
499
+ N.splice(N.indexOf(e), 1), e = null, o(/* @__PURE__ */ Error("Parent node is null"));
500
+ return;
501
+ }
502
+ e.parentNode.replaceChild(c, e), N.splice(N.indexOf(e), 1), e = null, o(null, c);
503
+ };
504
+ if (d) {
505
+ setTimeout(function() {
506
+ f(null, d);
507
+ }, 0);
508
+ return;
509
+ }
510
+ (r ? A : ee)(l, i, f);
511
+ }, se = function(e, t) {
512
+ var n = t === void 0 ? {} : t, r = n.afterAll, i = r === void 0 ? function() {} : r, a = n.afterEach, o = a === void 0 ? function() {} : a, s = n.beforeEach, c = s === void 0 ? function() {} : s, l = n.cacheRequests, u = l === void 0 ? !0 : l, d = n.evalScripts, f = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, m = p === void 0 ? !1 : p, h = n.renumerateIRIElements, g = h === void 0 ? !0 : h;
513
+ if (e && "length" in e) for (var _ = 0, v = 0, y = e.length; v < y; v++) {
514
+ var b = e[v];
515
+ b && oe(b, f, g, u, m, c, function(t, n) {
516
+ o(t, n), e && "length" in e && e.length === ++_ && i(_);
517
+ });
518
+ }
519
+ else e ? oe(e, f, g, u, m, c, function(t, n) {
520
+ o(t, n), i(1), e = null;
521
+ }) : i(0);
522
+ }, ce = /* @__PURE__ */ t(((e) => {
523
+ var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
524
+ function b(e) {
525
+ if (typeof e == "object" && e) {
526
+ var t = e.$$typeof;
527
+ switch (t) {
528
+ case n: switch (e = e.type, e) {
529
+ case l:
530
+ case u:
531
+ case i:
532
+ case o:
533
+ case a:
534
+ case f: return e;
535
+ default: switch (e &&= e.$$typeof, e) {
536
+ case c:
537
+ case d:
538
+ case h:
539
+ case m:
540
+ case s: return e;
541
+ default: return t;
542
+ }
543
+ }
544
+ case r: return t;
545
+ }
546
+ }
547
+ }
548
+ function x(e) {
549
+ return b(e) === u;
550
+ }
551
+ e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
552
+ return x(e) || b(e) === l;
553
+ }, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
554
+ return b(e) === c;
555
+ }, e.isContextProvider = function(e) {
556
+ return b(e) === s;
557
+ }, e.isElement = function(e) {
558
+ return typeof e == "object" && !!e && e.$$typeof === n;
559
+ }, e.isForwardRef = function(e) {
560
+ return b(e) === d;
561
+ }, e.isFragment = function(e) {
562
+ return b(e) === i;
563
+ }, e.isLazy = function(e) {
564
+ return b(e) === h;
565
+ }, e.isMemo = function(e) {
566
+ return b(e) === m;
567
+ }, e.isPortal = function(e) {
568
+ return b(e) === r;
569
+ }, e.isProfiler = function(e) {
570
+ return b(e) === o;
571
+ }, e.isStrictMode = function(e) {
572
+ return b(e) === a;
573
+ }, e.isSuspense = function(e) {
574
+ return b(e) === f;
575
+ }, e.isValidElementType = function(e) {
576
+ return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
577
+ }, e.typeOf = b;
578
+ })), le = /* @__PURE__ */ t(((e) => {
579
+ process.env.NODE_ENV !== "production" && (function() {
580
+ var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
581
+ function b(e) {
582
+ return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
583
+ }
584
+ function x(e) {
585
+ if (typeof e == "object" && e) {
586
+ var t = e.$$typeof;
587
+ switch (t) {
588
+ case n:
589
+ var p = e.type;
590
+ switch (p) {
591
+ case l:
592
+ case u:
593
+ case i:
594
+ case o:
595
+ case a:
596
+ case f: return p;
597
+ default:
598
+ var g = p && p.$$typeof;
599
+ switch (g) {
600
+ case c:
601
+ case d:
602
+ case h:
603
+ case m:
604
+ case s: return g;
605
+ default: return t;
606
+ }
607
+ }
608
+ case r: return t;
609
+ }
610
+ }
611
+ }
612
+ var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, ee = r, j = o, M = a, te = f, ne = !1;
613
+ function N(e) {
614
+ return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), re(e) || x(e) === l;
615
+ }
616
+ function re(e) {
617
+ return x(e) === u;
618
+ }
619
+ function ie(e) {
620
+ return x(e) === c;
621
+ }
622
+ function ae(e) {
623
+ return x(e) === s;
624
+ }
625
+ function oe(e) {
626
+ return typeof e == "object" && !!e && e.$$typeof === n;
627
+ }
628
+ function se(e) {
629
+ return x(e) === d;
630
+ }
631
+ function ce(e) {
632
+ return x(e) === i;
633
+ }
634
+ function le(e) {
635
+ return x(e) === h;
636
+ }
637
+ function ue(e) {
638
+ return x(e) === m;
639
+ }
640
+ function de(e) {
641
+ return x(e) === r;
642
+ }
643
+ function fe(e) {
644
+ return x(e) === o;
645
+ }
646
+ function pe(e) {
647
+ return x(e) === a;
648
+ }
649
+ function me(e) {
650
+ return x(e) === f;
651
+ }
652
+ e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = ee, e.Profiler = j, e.StrictMode = M, e.Suspense = te, e.isAsyncMode = N, e.isConcurrentMode = re, e.isContextConsumer = ie, e.isContextProvider = ae, e.isElement = oe, e.isForwardRef = se, e.isFragment = ce, e.isLazy = le, e.isMemo = ue, e.isPortal = de, e.isProfiler = fe, e.isStrictMode = pe, e.isSuspense = me, e.isValidElementType = b, e.typeOf = x;
653
+ })();
654
+ })), ue = /* @__PURE__ */ t(((e, t) => {
655
+ process.env.NODE_ENV === "production" ? t.exports = ce() : t.exports = le();
656
+ })), de = /* @__PURE__ */ t(((e, t) => {
657
+ var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
658
+ function a(e) {
659
+ if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
660
+ return Object(e);
661
+ }
662
+ function o() {
663
+ try {
664
+ if (!Object.assign) return !1;
665
+ var e = /* @__PURE__ */ new String("abc");
666
+ if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") return !1;
667
+ for (var t = {}, n = 0; n < 10; n++) t["_" + String.fromCharCode(n)] = n;
668
+ if (Object.getOwnPropertyNames(t).map(function(e) {
669
+ return t[e];
670
+ }).join("") !== "0123456789") return !1;
671
+ var r = {};
672
+ return "abcdefghijklmnopqrst".split("").forEach(function(e) {
673
+ r[e] = e;
674
+ }), Object.keys(Object.assign({}, r)).join("") === "abcdefghijklmnopqrst";
675
+ } catch {
676
+ return !1;
677
+ }
678
+ }
679
+ t.exports = o() ? Object.assign : function(e, t) {
680
+ for (var o, s = a(e), c, l = 1; l < arguments.length; l++) {
681
+ for (var u in o = Object(arguments[l]), o) r.call(o, u) && (s[u] = o[u]);
682
+ if (n) {
683
+ c = n(o);
684
+ for (var d = 0; d < c.length; d++) i.call(o, c[d]) && (s[c[d]] = o[c[d]]);
685
+ }
686
+ }
687
+ return s;
688
+ };
689
+ })), fe = /* @__PURE__ */ t(((e, t) => {
690
+ t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
691
+ })), pe = /* @__PURE__ */ t(((e, t) => {
692
+ t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
693
+ })), me = /* @__PURE__ */ t(((e, t) => {
694
+ var n = function() {};
695
+ if (process.env.NODE_ENV !== "production") {
696
+ var r = fe(), i = {}, a = pe();
697
+ n = function(e) {
698
+ var t = "Warning: " + e;
699
+ typeof console < "u" && console.error(t);
700
+ try {
701
+ throw Error(t);
702
+ } catch {}
703
+ };
704
+ }
705
+ function o(e, t, o, s, c) {
706
+ if (process.env.NODE_ENV !== "production") {
707
+ for (var l in e) if (a(e, l)) {
708
+ var u;
709
+ try {
710
+ if (typeof e[l] != "function") {
711
+ var d = Error((s || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
712
+ throw d.name = "Invariant Violation", d;
713
+ }
714
+ u = e[l](t, l, s, o, null, r);
715
+ } catch (e) {
716
+ u = e;
717
+ }
718
+ if (u && !(u instanceof Error) && n((s || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), u instanceof Error && !(u.message in i)) {
719
+ i[u.message] = !0;
720
+ var f = c ? c() : "";
721
+ n("Failed " + o + " type: " + u.message + (f ?? ""));
722
+ }
723
+ }
724
+ }
725
+ }
726
+ o.resetWarningCache = function() {
727
+ process.env.NODE_ENV !== "production" && (i = {});
728
+ }, t.exports = o;
729
+ })), P = /* @__PURE__ */ t(((e, t) => {
730
+ var n = ue(), r = de(), i = fe(), a = pe(), o = me(), s = function() {};
731
+ process.env.NODE_ENV !== "production" && (s = function(e) {
732
+ var t = "Warning: " + e;
733
+ typeof console < "u" && console.error(t);
734
+ try {
735
+ throw Error(t);
736
+ } catch {}
737
+ });
738
+ function c() {
739
+ return null;
740
+ }
741
+ t.exports = function(e, t) {
742
+ var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
743
+ function d(e) {
744
+ var t = e && (l && e[l] || e[u]);
745
+ if (typeof t == "function") return t;
746
+ }
747
+ var f = "<<anonymous>>", p = {
748
+ array: _("array"),
749
+ bigint: _("bigint"),
750
+ bool: _("boolean"),
751
+ func: _("function"),
752
+ number: _("number"),
753
+ object: _("object"),
754
+ string: _("string"),
755
+ symbol: _("symbol"),
756
+ any: v(),
757
+ arrayOf: y,
758
+ element: b(),
759
+ elementType: x(),
760
+ instanceOf: S,
761
+ node: E(),
762
+ objectOf: w,
763
+ oneOf: C,
764
+ oneOfType: T,
765
+ shape: O,
766
+ exact: k
767
+ };
768
+ function m(e, t) {
769
+ return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
770
+ }
771
+ function h(e, t) {
772
+ this.message = e, this.data = t && typeof t == "object" ? t : {}, this.stack = "";
773
+ }
774
+ h.prototype = Error.prototype;
775
+ function g(e) {
776
+ if (process.env.NODE_ENV !== "production") var n = {}, r = 0;
777
+ function a(a, o, c, l, u, d, p) {
778
+ if (l ||= f, d ||= c, p !== i) {
779
+ if (t) {
780
+ var m = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
781
+ throw m.name = "Invariant Violation", m;
782
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
783
+ var g = l + ":" + c;
784
+ !n[g] && r < 3 && (s("You are manually calling a React.PropTypes validation function for the `" + d + "` prop on `" + l + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), n[g] = !0, r++);
785
+ }
786
+ }
787
+ return o[c] == null ? a ? o[c] === null ? new h("The " + u + " `" + d + "` is marked as required " + ("in `" + l + "`, but its value is `null`.")) : new h("The " + u + " `" + d + "` is marked as required in " + ("`" + l + "`, but its value is `undefined`.")) : null : e(o, c, l, u, d);
788
+ }
789
+ var o = a.bind(null, !1);
790
+ return o.isRequired = a.bind(null, !0), o;
791
+ }
792
+ function _(e) {
793
+ function t(t, n, r, i, a, o) {
794
+ var s = t[n];
795
+ if (j(s) !== e) {
796
+ var c = M(s);
797
+ return new h("Invalid " + i + " `" + a + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected ") + ("`" + e + "`."), { expectedType: e });
798
+ }
799
+ return null;
800
+ }
801
+ return g(t);
802
+ }
803
+ function v() {
804
+ return g(c);
805
+ }
806
+ function y(e) {
807
+ function t(t, n, r, a, o) {
808
+ if (typeof e != "function") return new h("Property `" + o + "` of component `" + r + "` has invalid PropType notation inside arrayOf.");
809
+ var s = t[n];
810
+ if (!Array.isArray(s)) {
811
+ var c = j(s);
812
+ return new h("Invalid " + a + " `" + o + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected an array."));
813
+ }
814
+ for (var l = 0; l < s.length; l++) {
815
+ var u = e(s, l, r, a, o + "[" + l + "]", i);
816
+ if (u instanceof Error) return u;
817
+ }
818
+ return null;
819
+ }
820
+ return g(t);
821
+ }
822
+ function b() {
823
+ function t(t, n, r, i, a) {
824
+ var o = t[n];
825
+ if (!e(o)) {
826
+ var s = j(o);
827
+ return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement."));
828
+ }
829
+ return null;
830
+ }
831
+ return g(t);
832
+ }
833
+ function x() {
834
+ function e(e, t, r, i, a) {
835
+ var o = e[t];
836
+ if (!n.isValidElementType(o)) {
837
+ var s = j(o);
838
+ return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement type."));
839
+ }
840
+ return null;
841
+ }
842
+ return g(e);
843
+ }
844
+ function S(e) {
845
+ function t(t, n, r, i, a) {
846
+ if (!(t[n] instanceof e)) {
847
+ var o = e.name || f, s = ne(t[n]);
848
+ return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected ") + ("instance of `" + o + "`."));
849
+ }
850
+ return null;
851
+ }
852
+ return g(t);
853
+ }
854
+ function C(e) {
855
+ if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), c;
856
+ function t(t, n, r, i, a) {
857
+ for (var o = t[n], s = 0; s < e.length; s++) if (m(o, e[s])) return null;
858
+ var c = JSON.stringify(e, function(e, t) {
859
+ return M(t) === "symbol" ? String(t) : t;
860
+ });
861
+ return new h("Invalid " + i + " `" + a + "` of value `" + String(o) + "` " + ("supplied to `" + r + "`, expected one of " + c + "."));
862
+ }
863
+ return g(t);
864
+ }
865
+ function w(e) {
866
+ function t(t, n, r, o, s) {
867
+ if (typeof e != "function") return new h("Property `" + s + "` of component `" + r + "` has invalid PropType notation inside objectOf.");
868
+ var c = t[n], l = j(c);
869
+ if (l !== "object") return new h("Invalid " + o + " `" + s + "` of type " + ("`" + l + "` supplied to `" + r + "`, expected an object."));
870
+ for (var u in c) if (a(c, u)) {
871
+ var d = e(c, u, r, o, s + "." + u, i);
872
+ if (d instanceof Error) return d;
873
+ }
874
+ return null;
875
+ }
876
+ return g(t);
877
+ }
878
+ function T(e) {
879
+ if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), c;
880
+ for (var t = 0; t < e.length; t++) {
881
+ var n = e[t];
882
+ if (typeof n != "function") return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(n) + " at index " + t + "."), c;
883
+ }
884
+ function r(t, n, r, o, s) {
885
+ for (var c = [], l = 0; l < e.length; l++) {
886
+ var u = e[l], d = u(t, n, r, o, s, i);
887
+ if (d == null) return null;
888
+ d.data && a(d.data, "expectedType") && c.push(d.data.expectedType);
889
+ }
890
+ var f = c.length > 0 ? ", expected one of type [" + c.join(", ") + "]" : "";
891
+ return new h("Invalid " + o + " `" + s + "` supplied to " + ("`" + r + "`" + f + "."));
892
+ }
893
+ return g(r);
894
+ }
895
+ function E() {
896
+ function e(e, t, n, r, i) {
897
+ return A(e[t]) ? null : new h("Invalid " + r + " `" + i + "` supplied to " + ("`" + n + "`, expected a ReactNode."));
898
+ }
899
+ return g(e);
900
+ }
901
+ function D(e, t, n, r, i) {
902
+ return new h((e || "React class") + ": " + t + " type `" + n + "." + r + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + i + "`.");
903
+ }
904
+ function O(e) {
905
+ function t(t, n, r, a, o) {
906
+ var s = t[n], c = j(s);
907
+ if (c !== "object") return new h("Invalid " + a + " `" + o + "` of type `" + c + "` " + ("supplied to `" + r + "`, expected `object`."));
908
+ for (var l in e) {
909
+ var u = e[l];
910
+ if (typeof u != "function") return D(r, a, o, l, M(u));
911
+ var d = u(s, l, r, a, o + "." + l, i);
912
+ if (d) return d;
913
+ }
914
+ return null;
915
+ }
916
+ return g(t);
917
+ }
918
+ function k(e) {
919
+ function t(t, n, o, s, c) {
920
+ var l = t[n], u = j(l);
921
+ if (u !== "object") return new h("Invalid " + s + " `" + c + "` of type `" + u + "` " + ("supplied to `" + o + "`, expected `object`."));
922
+ for (var d in r({}, t[n], e)) {
923
+ var f = e[d];
924
+ if (a(e, d) && typeof f != "function") return D(o, s, c, d, M(f));
925
+ if (!f) return new h("Invalid " + s + " `" + c + "` key `" + d + "` supplied to `" + o + "`.\nBad object: " + JSON.stringify(t[n], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e), null, " "));
926
+ var p = f(l, d, o, s, c + "." + d, i);
927
+ if (p) return p;
928
+ }
929
+ return null;
930
+ }
931
+ return g(t);
932
+ }
933
+ function A(t) {
934
+ switch (typeof t) {
935
+ case "number":
936
+ case "string":
937
+ case "undefined": return !0;
938
+ case "boolean": return !t;
939
+ case "object":
940
+ if (Array.isArray(t)) return t.every(A);
941
+ if (t === null || e(t)) return !0;
942
+ var n = d(t);
943
+ if (n) {
944
+ var r = n.call(t), i;
945
+ if (n !== t.entries) {
946
+ for (; !(i = r.next()).done;) if (!A(i.value)) return !1;
947
+ } else for (; !(i = r.next()).done;) {
948
+ var a = i.value;
949
+ if (a && !A(a[1])) return !1;
950
+ }
951
+ } else return !1;
952
+ return !0;
953
+ default: return !1;
954
+ }
955
+ }
956
+ function ee(e, t) {
957
+ return e === "symbol" ? !0 : t ? t["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && t instanceof Symbol : !1;
958
+ }
959
+ function j(e) {
960
+ var t = typeof e;
961
+ return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : ee(t, e) ? "symbol" : t;
962
+ }
963
+ function M(e) {
964
+ if (e == null) return "" + e;
965
+ var t = j(e);
966
+ if (t === "object") {
967
+ if (e instanceof Date) return "date";
968
+ if (e instanceof RegExp) return "regexp";
969
+ }
970
+ return t;
971
+ }
972
+ function te(e) {
973
+ var t = M(e);
974
+ switch (t) {
975
+ case "array":
976
+ case "object": return "an " + t;
977
+ case "boolean":
978
+ case "date":
979
+ case "regexp": return "a " + t;
980
+ default: return t;
981
+ }
982
+ }
983
+ function ne(e) {
984
+ return !e.constructor || !e.constructor.name ? f : e.constructor.name;
985
+ }
986
+ return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
987
+ };
988
+ })), he = /* @__PURE__ */ t(((e, t) => {
989
+ var n = fe();
990
+ function r() {}
991
+ function i() {}
992
+ i.resetWarningCache = r, t.exports = function() {
993
+ function e(e, t, r, i, a, o) {
994
+ if (o !== n) {
995
+ var s = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
996
+ throw s.name = "Invariant Violation", s;
997
+ }
998
+ }
999
+ e.isRequired = e;
1000
+ function t() {
1001
+ return e;
1002
+ }
1003
+ var a = {
1004
+ array: e,
1005
+ bigint: e,
1006
+ bool: e,
1007
+ func: e,
1008
+ number: e,
1009
+ object: e,
1010
+ string: e,
1011
+ symbol: e,
1012
+ any: e,
1013
+ arrayOf: t,
1014
+ element: e,
1015
+ elementType: e,
1016
+ instanceOf: t,
1017
+ node: e,
1018
+ objectOf: t,
1019
+ oneOf: t,
1020
+ oneOfType: t,
1021
+ shape: t,
1022
+ exact: t,
1023
+ checkPropTypes: i,
1024
+ resetWarningCache: r
1025
+ };
1026
+ return a.PropTypes = a, a;
1027
+ };
1028
+ })), F = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
1029
+ if (process.env.NODE_ENV !== "production") {
1030
+ var n = ue();
1031
+ t.exports = P()(n.isElement, !0);
1032
+ } else t.exports = he()();
1033
+ })))()), ge = function(e) {
1034
+ return (e?.ownerDocument || document).defaultView || window;
1035
+ }, I = function(e, t) {
1036
+ for (var n in e) if (!(n in t)) return !0;
1037
+ for (var r in t) if (e[r] !== t[r]) return !0;
1038
+ return !1;
1039
+ }, _e = [
1040
+ "afterInjection",
1041
+ "beforeInjection",
1042
+ "desc",
1043
+ "evalScripts",
1044
+ "fallback",
1045
+ "httpRequestWithCredentials",
1046
+ "loading",
1047
+ "renumerateIRIElements",
1048
+ "src",
1049
+ "title",
1050
+ "useRequestCache",
1051
+ "wrapper"
1052
+ ], L = "http://www.w3.org/2000/svg", R = "http://www.w3.org/1999/xlink", ve = "react-svg-" + Math.random().toString(36).slice(2, 6), ye = 0, z = /*#__PURE__*/ function(e) {
1053
+ function t() {
1054
+ var t, n = [...arguments];
1055
+ return t = e.call.apply(e, [this].concat(n)) || this, t.initialState = {
1056
+ hasError: !1,
1057
+ isLoading: !0
1058
+ }, t.state = t.initialState, t._isMounted = !1, t.reactWrapper = void 0, t.nonReactWrapper = void 0, t.refCallback = function(e) {
1059
+ t.reactWrapper = e;
1060
+ }, t;
1061
+ }
1062
+ v(t, e);
1063
+ var n = t.prototype;
1064
+ return n.renderSVG = function() {
1065
+ var e = this;
1066
+ /* istanbul ignore else */
1067
+ if (this.reactWrapper instanceof ge(this.reactWrapper).Node) {
1068
+ var t = this.props, n = t.desc, r = t.evalScripts, i = t.httpRequestWithCredentials, a = t.renumerateIRIElements, o = t.src, s = t.title, c = t.useRequestCache, l = this.props.onError, u = this.props.beforeInjection, d = this.props.afterInjection, f = this.props.wrapper, p, m;
1069
+ f === "svg" ? (p = document.createElementNS(L, f), p.setAttribute("xmlns", L), p.setAttribute("xmlns:xlink", R), m = document.createElementNS(L, f)) : (p = document.createElement(f), m = document.createElement(f)), p.appendChild(m), m.dataset.src = o, this.nonReactWrapper = this.reactWrapper.appendChild(p);
1070
+ var h = function(t) {
1071
+ if (e.removeSVG(), !e._isMounted) {
1072
+ l(t);
1073
+ return;
1074
+ }
1075
+ e.setState(function() {
1076
+ return {
1077
+ hasError: !0,
1078
+ isLoading: !1
1079
+ };
1080
+ }, function() {
1081
+ l(t);
1082
+ });
1083
+ };
1084
+ se(m, {
1085
+ afterEach: function(t, n) {
1086
+ if (t) {
1087
+ h(t);
1088
+ return;
1089
+ }
1090
+ e._isMounted && e.setState(function() {
1091
+ return { isLoading: !1 };
1092
+ }, function() {
1093
+ try {
1094
+ d(n);
1095
+ } catch (e) {
1096
+ h(e);
1097
+ }
1098
+ });
1099
+ },
1100
+ beforeEach: function(e) {
1101
+ e.setAttribute("role", "img");
1102
+ var t = [], r = [];
1103
+ if (s) {
1104
+ var i = e.querySelector(":scope > title");
1105
+ i && e.removeChild(i);
1106
+ var a = ve + "-title-" + ++ye, o = document.createElementNS(L, "title");
1107
+ o.id = a, o.textContent = s, e.prepend(o), t.push(a);
1108
+ }
1109
+ if (n) {
1110
+ var c = e.querySelector(":scope > desc");
1111
+ c && e.removeChild(c);
1112
+ var l = ve + "-desc-" + ++ye, d = document.createElementNS(L, "desc");
1113
+ d.id = l, d.textContent = n;
1114
+ var f = e.querySelector(":scope > title");
1115
+ f ? f.after(d) : e.prepend(d), r.push(l);
1116
+ }
1117
+ t.length > 0 && e.setAttribute("aria-labelledby", t.join(" ")), r.length > 0 && e.setAttribute("aria-describedby", r.join(" "));
1118
+ try {
1119
+ u(e);
1120
+ } catch (e) {
1121
+ h(e);
1122
+ }
1123
+ },
1124
+ cacheRequests: c,
1125
+ evalScripts: r,
1126
+ httpRequestWithCredentials: i,
1127
+ renumerateIRIElements: a
1128
+ });
1129
+ }
1130
+ }, n.removeSVG = function() {
1131
+ var e;
1132
+ (e = this.nonReactWrapper) != null && e.parentNode && (this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper), this.nonReactWrapper = null);
1133
+ }, n.componentDidMount = function() {
1134
+ this._isMounted = !0, this.renderSVG();
1135
+ }, n.componentDidUpdate = function(e) {
1136
+ var t = this;
1137
+ I(g({}, e), this.props) && this.setState(function() {
1138
+ return t.initialState;
1139
+ }, function() {
1140
+ t.removeSVG(), t.renderSVG();
1141
+ });
1142
+ }, n.componentWillUnmount = function() {
1143
+ this._isMounted = !1, this.removeSVG();
1144
+ }, n.render = function() {
1145
+ var e = this.props;
1146
+ e.afterInjection, e.beforeInjection, e.desc, e.evalScripts;
1147
+ var t = e.fallback;
1148
+ e.httpRequestWithCredentials;
1149
+ var n = e.loading;
1150
+ e.renumerateIRIElements, e.src, e.title, e.useRequestCache;
1151
+ var i = e.wrapper, a = h(e, _e), o = i;
1152
+ return /*#__PURE__*/ r.createElement(o, g({}, a, { ref: this.refCallback }, i === "svg" ? {
1153
+ xmlns: L,
1154
+ xmlnsXlink: R
1155
+ } : {}), this.state.isLoading && n && /*#__PURE__*/ r.createElement(n, null), this.state.hasError && t && /*#__PURE__*/ r.createElement(t, null));
1156
+ }, t;
1157
+ }(r.Component);
1158
+ z.defaultProps = {
1159
+ afterInjection: function() {},
1160
+ beforeInjection: function() {},
1161
+ desc: "",
1162
+ evalScripts: "never",
1163
+ fallback: null,
1164
+ httpRequestWithCredentials: !1,
1165
+ loading: null,
1166
+ onError: function() {},
1167
+ renumerateIRIElements: !0,
1168
+ title: "",
1169
+ useRequestCache: !0,
1170
+ wrapper: "div"
1171
+ }, z.propTypes = {
1172
+ afterInjection: F.func,
1173
+ beforeInjection: F.func,
1174
+ desc: F.string,
1175
+ evalScripts: F.oneOf([
1176
+ "always",
1177
+ "once",
1178
+ "never"
1179
+ ]),
1180
+ fallback: F.oneOfType([
1181
+ F.func,
1182
+ F.object,
1183
+ F.string
1184
+ ]),
1185
+ httpRequestWithCredentials: F.bool,
1186
+ loading: F.oneOfType([
1187
+ F.func,
1188
+ F.object,
1189
+ F.string
1190
+ ]),
1191
+ onError: F.func,
1192
+ renumerateIRIElements: F.bool,
1193
+ src: F.string.isRequired,
1194
+ title: F.string,
1195
+ useRequestCache: F.bool,
1196
+ wrapper: F.oneOf([
1197
+ "div",
1198
+ "span",
1199
+ "svg"
1200
+ ])
1201
+ };
1202
+ //#endregion
1203
+ //#region src/config/paths.ts
1204
+ var be = { assets: "/" }, xe = (e) => {
1205
+ be = {
1206
+ ...be,
1207
+ ...e
1208
+ };
1209
+ }, Se = (e) => {
1210
+ let t = `${be.assets}/${e}`.replace(/\/+/g, "/");
1211
+ return t.endsWith(".svg") ? t : t + ".svg";
1212
+ }, B = {
1213
+ "smp-icon": "_smp-icon_n5y85_1",
1214
+ "smp-icon-rotated": "_smp-icon-rotated_n5y85_14",
1215
+ "smp-icon-base": "_smp-icon-base_n5y85_18",
1216
+ "smp-icon-interactable": "_smp-icon-interactable_n5y85_21",
1217
+ "smp-icon-onBase": "_smp-icon-onBase_n5y85_34",
1218
+ "smp-icon-primary": "_smp-icon-primary_n5y85_39",
1219
+ "smp-icon-onPrimary": "_smp-icon-onPrimary_n5y85_43",
1220
+ "smp-icon-info": "_smp-icon-info_n5y85_48",
1221
+ "smp-icon-onInfo": "_smp-icon-onInfo_n5y85_52",
1222
+ "smp-icon-onInfoLight": "_smp-icon-onInfoLight_n5y85_56",
1223
+ "smp-icon-danger": "_smp-icon-danger_n5y85_62",
1224
+ "smp-icon-onDanger": "_smp-icon-onDanger_n5y85_66",
1225
+ "smp-icon-onDangerLight": "_smp-icon-onDangerLight_n5y85_70",
1226
+ "smp-icon-warning": "_smp-icon-warning_n5y85_76",
1227
+ "smp-icon-onWarning": "_smp-icon-onWarning_n5y85_80",
1228
+ "smp-icon-onWarningLight": "_smp-icon-onWarningLight_n5y85_84",
1229
+ "smp-icon-success": "_smp-icon-success_n5y85_89",
1230
+ "smp-icon-onSuccess": "_smp-icon-onSuccess_n5y85_93",
1231
+ "smp-icon-onSuccessLight": "_smp-icon-onSuccessLight_n5y85_97",
1232
+ "smp-icon-spin": "_smp-icon-spin_n5y85_105",
1233
+ "smp-image-interactable": "_smp-image-interactable_n5y85_110"
1234
+ }, V = n(), H = (e) => e === "auto", Ce = (e, t) => H(e) ? void 0 : e || t, we = (e, t) => {
1235
+ let n = {};
1236
+ return H(e) && (n.width = "auto"), H(t) && (n.height = "auto"), Object.keys(n).length ? n : void 0;
1237
+ }, Te = (e) => e?.toLowerCase().endsWith(".svg") || !e?.includes("/"), Ee = (e) => e?.startsWith("http") || e?.startsWith("/"), De = (e) => !!e && e.trim() !== "", U = i.memo(({ icon: e, width: t, height: n, placeholderIcon: r, color: i, disabled: a, state: o = "base", rotated: s = !1, onClick: c, isInteractable: l = !1, spin: u = !1, title: f, tabIndex: p, link: m }) => {
1238
+ let [h, g] = d(!1), _ = {
1239
+ img: `${B[l ? "smp-image-interactable" : ""]}`,
1240
+ svg: `${B["smp-icon"]} ${o && !i ? `${B[`smp-icon-${o}`]}` : ""} ${s ? B["smp-icon-rotated"] : ""} ${l ? B["smp-icon-interactable"] : ""} ${u ? B["smp-icon-spin"] : ""}`
1241
+ }, v = (e) => {
1242
+ !a && l && c && c(e);
1243
+ }, y = (e) => {
1244
+ !a && l && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), v(e));
1245
+ }, b = De(e) && !h ? e : r, x = Ce(t, "1rem"), S = Ce(n, "1rem"), C = we(t, n);
1246
+ if (!De(b)) return /* @__PURE__ */ (0, V.jsx)("svg", {
1247
+ xmlns: "http://www.w3.org/2000/svg",
1248
+ width: x,
1249
+ height: S,
1250
+ style: C,
1251
+ role: "application",
1252
+ "aria-disabled": a,
1253
+ className: _.svg,
1254
+ onClick: v,
1255
+ onKeyDown: y,
1256
+ tabIndex: p
1257
+ });
1258
+ let w = Te(b), T = Ee(b) ? b : Se(`assets/svg/${b}`), E = () => /* @__PURE__ */ (0, V.jsx)(z, {
1259
+ src: T,
1260
+ onError: () => g(!0),
1261
+ width: x,
1262
+ height: S,
1263
+ style: C,
1264
+ wrapper: "svg",
1265
+ title: f,
1266
+ role: "application",
1267
+ fill: i,
1268
+ "aria-disabled": a,
1269
+ className: _.svg,
1270
+ onClick: v,
1271
+ onKeyDown: y,
1272
+ tabIndex: p
1273
+ }), D = () => /* @__PURE__ */ (0, V.jsx)("img", {
1274
+ src: b,
1275
+ width: t || "14px",
1276
+ height: n || "auto",
1277
+ alt: f,
1278
+ onError: () => g(!0),
1279
+ onClick: v,
1280
+ className: _.img,
1281
+ title: f,
1282
+ onKeyDown: (e) => {
1283
+ (e.key === "Enter" || e.key === " ") && v(e);
1284
+ }
1285
+ });
1286
+ return (() => {
1287
+ let e = m?.startsWith("https://") || m?.startsWith("http://") || m?.startsWith("#") || m?.startsWith("/"), r = w ? E() : D(), i = f ? /* @__PURE__ */ (0, V.jsx)("span", {
1288
+ title: f,
1289
+ style: {
1290
+ display: "inline-flex",
1291
+ width: t,
1292
+ height: n
1293
+ },
1294
+ children: r
1295
+ }) : r;
1296
+ return e ? /* @__PURE__ */ (0, V.jsx)("a", {
1297
+ href: m,
1298
+ children: i
1299
+ }) : i;
1300
+ })();
1301
+ });
1302
+ //#endregion
1303
+ //#region src/functional-components/portal-wrapper.tsx
1304
+ function Oe({ children: e }) {
1305
+ return f(() => () => {}, () => !0, () => !1) ? p(e, document.body) : null;
1306
+ }
1307
+ //#endregion
1308
+ //#region src/hooks/useFloating.tsx
1309
+ function ke({ position: e = "bottom", open: t = !1 }) {
1310
+ let n = u(null), r = u(null), i = u(null), [o, s] = d(0), c = a(() => {
1311
+ let t = n.current, a = r.current;
1312
+ if (!t || !a) return;
1313
+ let { top: o, left: c, width: l, height: u } = t.getBoundingClientRect();
1314
+ s(l);
1315
+ let d = a.offsetHeight, f = a.offsetWidth;
1316
+ if (f === 0 || d === 0) {
1317
+ i.current && requestAnimationFrame(i.current);
1318
+ return;
1319
+ }
1320
+ let p = window.scrollY, m = window.scrollX, h = window.innerWidth, g = window.innerHeight, _ = o + p, v = c + m, y = e, b = {
1321
+ top: o - d < 0,
1322
+ bottom: o + u + d > g,
1323
+ left: c - f < 0,
1324
+ right: c + l + f > h
1325
+ };
1326
+ switch (e) {
1327
+ case "top":
1328
+ b.top && !b.bottom && (y = "bottom");
1329
+ break;
1330
+ case "bottom":
1331
+ b.bottom && !b.top && (y = "top");
1332
+ break;
1333
+ case "left":
1334
+ b.left && !b.right && (y = "right");
1335
+ break;
1336
+ case "right":
1337
+ b.right && !b.left && (y = "left");
1338
+ break;
1339
+ }
1340
+ switch (y) {
1341
+ case "top":
1342
+ _ = o + p - d;
1343
+ break;
1344
+ case "bottom":
1345
+ _ = o + p + u;
1346
+ break;
1347
+ case "left":
1348
+ v = c + m - f;
1349
+ break;
1350
+ case "right":
1351
+ v = c + m + l;
1352
+ break;
1353
+ }
1354
+ _ = Math.max(p, Math.min(_, p + g - d)), v = Math.max(m, Math.min(v, m + h - f)), requestAnimationFrame(() => {
1355
+ a.style.transform = `translate(${v}px, ${_}px)`, a.style.opacity = "1", a.style.visibility = "visible";
1356
+ });
1357
+ }, [e]);
1358
+ return l(() => {
1359
+ i.current = c;
1360
+ }, [c]), l(() => {
1361
+ if (!t) return;
1362
+ let e, i = () => {
1363
+ let t = n.current, a = r.current;
1364
+ t && a ? c() : e = requestAnimationFrame(i);
1365
+ };
1366
+ e = requestAnimationFrame(i);
1367
+ let a = new MutationObserver(() => {
1368
+ c();
1369
+ });
1370
+ return r.current && a.observe(r.current, {
1371
+ childList: !0,
1372
+ subtree: !0
1373
+ }), window.addEventListener("resize", c), window.addEventListener("scroll", c, !0), () => {
1374
+ cancelAnimationFrame(e), window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0), a.disconnect();
1375
+ };
1376
+ }, [c, t]), {
1377
+ anchorRef: n,
1378
+ targetRef: r,
1379
+ anchorWidth: o
1380
+ };
1381
+ }
1382
+ //#endregion
1383
+ //#region src/functional-components/label/label.module.css
1384
+ var Ae = {
1385
+ "smp-label": "_smp-label_eciaa_1",
1386
+ "smp-label-disabled": "_smp-label-disabled_eciaa_6",
1387
+ "smp-label-wrapper": "_smp-label-wrapper_eciaa_10"
1388
+ }, je = {
1389
+ "smp-helper-text": "_smp-helper-text_19lg0_1",
1390
+ "smp-helper-text-danger": "_smp-helper-text-danger_19lg0_5",
1391
+ "smp-helper-text-success": "_smp-helper-text-success_19lg0_9",
1392
+ "smp-helper-text-disabled": "_smp-helper-text-disabled_19lg0_13"
1393
+ }, Me = ({ helperText: e, disabled: t, state: n, id: r }) => /* @__PURE__ */ (0, V.jsx)("label", {
1394
+ "data-component": "helper-text",
1395
+ className: { container: `${je["smp-helper-text"]} ${t ? je["smp-helper-text-disabled"] : ""} ${n ? je[`smp-helper-text-${n}`] : ""}` }.container,
1396
+ id: r,
1397
+ children: e
1398
+ }), Ne = { "smp-helper-tooltip": "_smp-helper-tooltip_1xlcq_1" }, Pe = ({ helperTooltip: e, ref: t }) => /* @__PURE__ */ (0, V.jsx)("div", {
1399
+ className: { container: `${Ne["smp-helper-tooltip"]}` }.container,
1400
+ ref: t,
1401
+ children: /* @__PURE__ */ (0, V.jsx)(Me, { helperText: e })
1402
+ }), Fe = ({ label: e, disabled: t, htmlFor: n, helper: r = "" }) => {
1403
+ let [i, a] = d(!1), { anchorRef: o, targetRef: s } = ke({
1404
+ position: "right",
1405
+ open: i
1406
+ }), c = {
1407
+ container: `${Ae["smp-label"]} ${t ? Ae["smp-label-disabled"] : ""}`,
1408
+ labelWrapper: Ae["smp-label-wrapper"],
1409
+ tooltip: Ae["smp-label-helper-tooltip"]
1410
+ };
1411
+ return /* @__PURE__ */ (0, V.jsxs)("div", {
1412
+ className: c.labelWrapper,
1413
+ children: [
1414
+ /* @__PURE__ */ (0, V.jsx)("label", {
1415
+ className: c.container,
1416
+ htmlFor: n,
1417
+ children: e
1418
+ }),
1419
+ r && /* @__PURE__ */ (0, V.jsx)("div", {
1420
+ ref: o,
1421
+ onMouseEnter: () => a(!0),
1422
+ onMouseLeave: () => a(!1),
1423
+ "smp-id": "icon-helper",
1424
+ children: /* @__PURE__ */ (0, V.jsx)(U, {
1425
+ icon: "info_outline",
1426
+ tabIndex: 0,
1427
+ width: 14,
1428
+ isInteractable: !0,
1429
+ onClick: () => {
1430
+ a((e) => !e);
1431
+ }
1432
+ })
1433
+ }),
1434
+ /* @__PURE__ */ (0, V.jsx)(Oe, { children: i && r && /* @__PURE__ */ (0, V.jsx)(Pe, {
1435
+ helperTooltip: r,
1436
+ ref: s
1437
+ }) })
1438
+ ]
1439
+ });
1440
+ }, Ie = (e) => ({
1441
+ extraSmall: 12,
1442
+ small: 14,
1443
+ base: 18,
1444
+ large: 20,
1445
+ extraLarge: 24
1446
+ })[e], Le = {
1447
+ base: {
1448
+ ghost: "base",
1449
+ outlined: "base",
1450
+ raised: "base"
1451
+ },
1452
+ danger: {
1453
+ ghost: "danger",
1454
+ outlined: "danger",
1455
+ raised: "onDanger"
1456
+ },
1457
+ primary: {
1458
+ ghost: "primary",
1459
+ outlined: "primary",
1460
+ raised: "onPrimary"
1461
+ }
1462
+ }, Re = (e, t) => Le[e][t], W = {
1463
+ "smp-button-label-wrapper": "_smp-button-label-wrapper_15bak_1",
1464
+ "smp-button-container": "_smp-button-container_15bak_8",
1465
+ "smp-button-extraSmall": "_smp-button-extraSmall_15bak_25",
1466
+ "smp-button-small": "_smp-button-small_15bak_30",
1467
+ "smp-button-base": "_smp-button-base_15bak_35",
1468
+ "smp-button-large": "_smp-button-large_15bak_40",
1469
+ "smp-button-extraLarge": "_smp-button-extraLarge_15bak_45",
1470
+ "smp-button-FillSpace": "_smp-button-FillSpace_15bak_50",
1471
+ "smp-button-squared": "_smp-button-squared_15bak_54",
1472
+ "smp-buttonType-raised": "_smp-buttonType-raised_15bak_61",
1473
+ "smp-buttonVariant-base": "_smp-buttonVariant-base_15bak_63",
1474
+ "smp-buttonActive": "_smp-buttonActive_15bak_85",
1475
+ "smp-buttonVariant-primary": "_smp-buttonVariant-primary_15bak_92",
1476
+ "smp-buttonVariant-danger": "_smp-buttonVariant-danger_15bak_121",
1477
+ "smp-buttonExt-oneButton-horizontal": "_smp-buttonExt-oneButton-horizontal_15bak_161",
1478
+ "smp-buttonExt-oneButton-vertical": "_smp-buttonExt-oneButton-vertical_15bak_171",
1479
+ "smp-buttonType-outlined": "_smp-buttonType-outlined_15bak_194",
1480
+ "smp-buttonType-ghost": "_smp-buttonType-ghost_15bak_269"
1481
+ }, ze = (e) => e == null ? !1 : typeof e == "string" ? e.toLocaleLowerCase() == "yes" || e.toLocaleLowerCase() == "true" : e, Be = {
1482
+ success: "onSuccessLight",
1483
+ info: "onInfoLight",
1484
+ error: "onDangerLight",
1485
+ warning: "onWarningLight"
1486
+ }, Ve = {
1487
+ "smp-badge": "_smp-badge_1chsi_2",
1488
+ "smp-badge-text": "_smp-badge-text_1chsi_20"
1489
+ }, He = (e, t, n) => t ? `${e ?? "info"} badge for ${t}${n ? `: ${n}` : ""}` : `${e ?? "info"} badge${n ? `: ${n}` : ""}`, Ue = (e) => {
1490
+ let t = [], n = 0;
1491
+ for (; n < e.length;) {
1492
+ for (; n < e.length && e[n] === " ";) n++;
1493
+ if (e.substring(n, n + 2) === "B(") {
1494
+ n += 2;
1495
+ let r = {
1496
+ Txt: "",
1497
+ Typ: "info",
1498
+ Col: "",
1499
+ Ico: "",
1500
+ Pos: "TopRight"
1501
+ };
1502
+ for (; n < e.length && e[n] !== ")";) {
1503
+ for (; n < e.length && e[n] === " ";) n++;
1504
+ let t = e.substring(n).match(/^(Col|Pos|Txt|Ico|Typ)\(/);
1505
+ if (t) {
1506
+ let i = t[1];
1507
+ n += t[0].length;
1508
+ let a = 1, o = n;
1509
+ for (; n < e.length && a > 0;) e[n] === "(" && a++, e[n] === ")" && a--, a > 0 && n++;
1510
+ let s = e.substring(o, n);
1511
+ i === "Typ" ? r[i] = We(s) : i === "Pos" ? r[i] = Ge(s) : r[i] = s || "", n++;
1512
+ } else n++;
1513
+ }
1514
+ t.push(r), n++;
1515
+ } else n++;
1516
+ }
1517
+ return t;
1518
+ }, We = (e) => Ke(e) ? e : "info", Ge = (e) => qe(e) ? e : "TopRight", Ke = (e) => e !== "" && [
1519
+ "success",
1520
+ "info",
1521
+ "error",
1522
+ "warning"
1523
+ ].includes(e), qe = (e) => e !== "" && [
1524
+ "TopRight",
1525
+ "TopLeft",
1526
+ "BottomRight",
1527
+ "BottomLeft",
1528
+ "Inline"
1529
+ ].includes(e), Je = {
1530
+ titleLarge: "h2",
1531
+ title: "h3",
1532
+ body: "h6",
1533
+ label: "label",
1534
+ code: "code",
1535
+ link: "a"
1536
+ }, G = {
1537
+ "smp-typography": "_smp-typography_1id6k_2",
1538
+ "smp-typography-title": "_smp-typography-title_1id6k_15",
1539
+ "smp-typography-titleLarge": "_smp-typography-titleLarge_1id6k_19",
1540
+ "smp-typography-label": "_smp-typography-label_1id6k_23",
1541
+ "smp-typography-body": "_smp-typography-body_1id6k_27",
1542
+ "smp-text-number": "_smp-text-number_1id6k_30",
1543
+ "smp-typography-base": "_smp-typography-base_1id6k_36",
1544
+ "smp-typography-danger": "_smp-typography-danger_1id6k_40",
1545
+ "smp-typography-disabled": "_smp-typography-disabled_1id6k_45",
1546
+ "smp-typography-left": "_smp-typography-left_1id6k_50",
1547
+ "smp-typography-center": "_smp-typography-center_1id6k_54",
1548
+ "smp-typography-right": "_smp-typography-right_1id6k_58",
1549
+ "smp-typography-toolbar": "_smp-typography-toolbar_1id6k_63",
1550
+ "smp-text-negative": "_smp-text-negative_1id6k_68",
1551
+ "smp-typography-ellipsis": "_smp-typography-ellipsis_1id6k_73"
1552
+ }, Ye = "smp-toolbar", Xe = [
1553
+ "ArrowDown",
1554
+ "ArrowUp",
1555
+ "ArrowRight",
1556
+ "ArrowLeft",
1557
+ "Enter",
1558
+ "Escape"
1559
+ ], Ze = (e) => e.replace(`${Ye}-`, "").split("-").map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)), Qe = (e) => e.replace(`${Ye}-`, "").split("-"), $e = (e, t) => t ? `${t}-${e}` : `${Ye}-${e}`, et = (e, t) => `${e}-radio${t}`, tt = (e) => !!e.fun && e.forcedLeaf === !1 && !(e.children && e.children.length > 0), nt = (e, t, n, r) => {
1560
+ if (!e || t.length === 0) return e;
1561
+ let i = { ...e };
1562
+ i.children = [...e.children ?? []];
1563
+ let a = i.children, o = [], s = [];
1564
+ for (let e = 0; e < t.length; e++) {
1565
+ let c = t[e], l = a[c];
1566
+ if (!l) break;
1567
+ let u = { ...l };
1568
+ if (e === t.length - 1) {
1569
+ if (a[c] = n(u), r) {
1570
+ let t = a.map((e, t) => t === c ? a[t] : r({ ...e }));
1571
+ if (e === 0) i.children = t;
1572
+ else {
1573
+ let e = o[o.length - 1], n = s[s.length - 1];
1574
+ e[n] = {
1575
+ ...e[n],
1576
+ children: t
1577
+ };
1578
+ }
1579
+ }
1580
+ } else u.children = [...u.children ?? []], a[c] = u, o.push(a), s.push(c), a = u.children;
1581
+ }
1582
+ return i;
1583
+ }, rt = (e, t) => {
1584
+ e.current.has(t) && requestAnimationFrame(() => {
1585
+ e.current.get(t)?.focus();
1586
+ });
1587
+ }, it = (e) => e.includes("radio"), at = (e) => parseInt(it(e) ? e.replace("radio", "") : e), ot = (e) => e.split("-").slice(0, -1).join("-"), st = (e) => e.replace(/-radio\d+$/, ""), ct = (e, t, n) => `${ot(e)}-${t ? "radio" : ""}${n}`, lt = (e, t) => {
1588
+ let n = t.current.keys().filter((t) => t.startsWith(`${e}-radio`)).toArray().length;
1589
+ return n > 0 ? et(e, n - 1) : null;
1590
+ }, ut = (e, t, n, r) => {
1591
+ let i = t[t.length - 1], a = it(i), o = at(i);
1592
+ if (isNaN(o)) return null;
1593
+ let s = ct(e, a, o + n);
1594
+ if (r.current.has(s)) return s;
1595
+ if (a) {
1596
+ let i = parseInt(t[t.length - 2]);
1597
+ if (!isNaN(i)) {
1598
+ let t = ct(ot(e), !1, i + n);
1599
+ if (r.current.has(t)) return t;
1600
+ }
1601
+ } else if (n === 1) {
1602
+ let e = et(s, 0);
1603
+ if (r.current.has(e)) return e;
1604
+ } else return lt(s, r);
1605
+ return null;
1606
+ }, dt = (e) => (e.children?.length ?? 0) > 0;
1607
+ //#endregion
1608
+ //#region src/components/toolbar/toolbar-utils/useKeyboardNavigation.ts
1609
+ function ft(e, t, n, r, i) {
1610
+ return { handleKeyDown: a(async (a, o, s) => {
1611
+ if (!Xe.includes(a.key)) return;
1612
+ a.preventDefault(), a.stopPropagation();
1613
+ let c = t.current.get(s), l = Qe(s);
1614
+ if (c) switch (a.key) {
1615
+ case "ArrowDown":
1616
+ case "ArrowUp": {
1617
+ let e = ut(s, l, a.key === "ArrowDown" ? 1 : -1, t);
1618
+ e && rt(t, e);
1619
+ break;
1620
+ }
1621
+ case "ArrowRight": {
1622
+ n(o, s);
1623
+ let e = $e(0, s);
1624
+ rt(t, t.current.has(e) ? e : et(e, 0));
1625
+ break;
1626
+ }
1627
+ case "ArrowLeft":
1628
+ case "Escape": {
1629
+ let n = ot(st(s));
1630
+ if (t.current.has(n)) {
1631
+ let r = Ze(n);
1632
+ e((e) => e && nt(e, r, (e) => ({
1633
+ ...e,
1634
+ isExpanded: !1
1635
+ }))), rt(t, n);
1636
+ } else i?.();
1637
+ break;
1638
+ }
1639
+ case "Enter":
1640
+ !dt(o) && !tt(o) && r?.(o);
1641
+ break;
1642
+ }
1643
+ }, [
1644
+ n,
1645
+ t,
1646
+ e,
1647
+ r,
1648
+ i
1649
+ ]) };
1650
+ }
1651
+ //#endregion
1652
+ //#region src/types/data-structures.ts
1653
+ var K = {
1654
+ ACTION: "ACT",
1655
+ AUTOCOMPLETE: "ACP",
1656
+ BUTTON_LIST: "BTL",
1657
+ CHART: "GRA",
1658
+ BREADCRUMBS: "BRD",
1659
+ BARCODE: "BCD",
1660
+ BUTTON: "BTN",
1661
+ CHECKBOX: "CHK",
1662
+ CHIP: "CHI",
1663
+ COLOR_PICKER: "CLP",
1664
+ COMBOBOX: "CMB",
1665
+ DATE: "CAL",
1666
+ EDITOR: "EDT",
1667
+ GAUGE: "GAU",
1668
+ ICON: "ICO",
1669
+ IMAGE: "IMG",
1670
+ INPUT_CHECKBOX: "INC",
1671
+ INPUT_FIELD: "INF",
1672
+ INPUT_NUMBER: "INR",
1673
+ KNOB: "KNB",
1674
+ LABEL: "LBL",
1675
+ MEMO: "MEM",
1676
+ MULTI_AUTOCOMPLETE: "AML",
1677
+ MULTI_SELECT: "SML",
1678
+ MULTI_COMBOBOX: "CML",
1679
+ MULTI_CONFIG: "CFM",
1680
+ OBJECT: "OBJ",
1681
+ PROGRESS_BAR: "PGB",
1682
+ RADIO: "RAD",
1683
+ RATING: "RTG",
1684
+ SELECT: "SEL",
1685
+ SPOTLIGHT: "SPL",
1686
+ SWITCH: "SWT",
1687
+ TABLE: "TBL",
1688
+ TEXT_FIELD: "ITX",
1689
+ BUTTON_GROUP: "BTO",
1690
+ TIME: "TIM",
1691
+ TIMEPICKER: "TPK",
1692
+ BOOLEAN_BUTTON: "BNB",
1693
+ SLIDER: "SLD",
1694
+ FILE_UPLOAD: "FUP",
1695
+ FILE_READER: "FRE",
1696
+ COMMAND_EXECUTE: "RUN",
1697
+ ONE_BUTTON: "BTO",
1698
+ PASSWORD: "PWD",
1699
+ SPINNER: "SPN",
1700
+ DECODE: "DEC",
1701
+ TREE: "TRE"
1702
+ }, q = /* @__PURE__ */ function(e) {
1703
+ return e.INPUT_PANEL = "InputPanel", e.BOX = "Box", e.DATA_TABLE = "DataTable", e.IMAGE_LIST = "ImageList", e.SHAPE_LIST = "ShapeList", e.FIELD = "Field", e.TREE = "Tree", e.APPBAR = "AppBar", e.NO_COMPONENT = "NoComponent", e;
1704
+ }({}), pt = {
1705
+ SMEUP_DATA_TREE: "SmeupDataTree",
1706
+ SMEUP_DATA_TABLE: "SmeupDataTable",
1707
+ SMEUP_MESSAGE: "SmeupMessage"
1708
+ }, mt = {
1709
+ CODE_ONLY: "CodeOnly",
1710
+ DESC_ONLY: "DescOnly",
1711
+ BOTH: "Both",
1712
+ CODE_AND_DESC: "CodeAndDesc",
1713
+ DESC_AND_CODE: "DescAndCode"
1714
+ }, ht = {
1715
+ INFO: "INFO",
1716
+ ERROR: "ERROR",
1717
+ QUEST: "QUEST",
1718
+ WARNING: "WARNING",
1719
+ UNAUTHORIZED: "UNAUTHORIZED"
1720
+ }, gt = {
1721
+ TN: "TN",
1722
+ PN: "PN",
1723
+ TM: "TM",
1724
+ PM: "PM",
1725
+ HH: "HH",
1726
+ TS: "TS",
1727
+ PS: "PS",
1728
+ PT: "PT",
1729
+ TT: "TT",
1730
+ IN: "IN"
1731
+ }, _t = {
1732
+ COMPLETED: "Completed",
1733
+ PAUSED: "Paused",
1734
+ ERROR: "Error",
1735
+ ON_LOADING: "OnLoading"
1736
+ }, vt = {
1737
+ obj: {
1738
+ t: "",
1739
+ p: ""
1740
+ },
1741
+ fun: "",
1742
+ isEditable: !1,
1743
+ shape: K.TEXT_FIELD,
1744
+ icon: "error",
1745
+ decode: "No data found",
1746
+ value: ""
1747
+ };
1748
+ K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD, K.TEXT_FIELD;
1749
+ //#endregion
1750
+ //#region src/components/toolbar/toolbar-utils/useToolbarInteractions.ts
1751
+ function yt(e, t, n) {
1752
+ let r = async (e, n) => {
1753
+ if (!tt(e)) a(n, { isExpanded: !0 });
1754
+ else if (t) {
1755
+ a(n, { isLoading: !0 });
1756
+ try {
1757
+ let r = await t(e);
1758
+ a(n, {
1759
+ isLoading: !1,
1760
+ children: r?.children && r.children.length > 0 ? r.children : [vt],
1761
+ isExpanded: !0
1762
+ }, { isExpanded: !1 });
1763
+ } catch (e) {
1764
+ console.error("Failed to load dynamic node data:", e), a(n, { isLoading: !1 });
1765
+ }
1766
+ }
1767
+ }, i = (e) => {
1768
+ a(e, { isExpanded: !1 });
1769
+ }, a = (t, n, r) => {
1770
+ e((e) => e && nt(e, Ze(t), (e) => ({
1771
+ ...e,
1772
+ ...n
1773
+ }), r ? (e) => ({
1774
+ ...e,
1775
+ ...r
1776
+ }) : void 0));
1777
+ };
1778
+ return {
1779
+ handleNodeExpand: r,
1780
+ handleMouseLeave: i,
1781
+ onToolbarRadioLeafNodeClick: (t, r, i) => {
1782
+ e((e) => e && nt(e, Ze(r), (e) => {
1783
+ let t = {
1784
+ ...e,
1785
+ obj: {
1786
+ t: e.obj?.t || "",
1787
+ p: e.obj?.p || ""
1788
+ },
1789
+ value: i.value || ""
1790
+ };
1791
+ return n?.(t), t;
1792
+ }));
1793
+ }
1794
+ };
1795
+ }
1796
+ //#endregion
1797
+ //#region src/components/toolbar/toolbar.module.css
1798
+ var J = {
1799
+ "smp-floating-toolbar-container": "_smp-floating-toolbar-container_1c9vj_17",
1800
+ "smp-toolbar-node-content": "_smp-toolbar-node-content_1c9vj_41",
1801
+ "smp-clickable": "_smp-clickable_1c9vj_63",
1802
+ "smp-not-clickable": "_smp-not-clickable_1c9vj_73",
1803
+ "smp-toolbar-node-children-container": "_smp-toolbar-node-children-container_1c9vj_83",
1804
+ "smp-expanded": "_smp-expanded_1c9vj_115",
1805
+ "smp-toolbar-node": "_smp-toolbar-node_1c9vj_41",
1806
+ "smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_1c9vj_175",
1807
+ "smp-toolbar-node-text": "_smp-toolbar-node-text_1c9vj_189"
1808
+ }, bt = ({ node: e, index: t, level: n, parentId: r, toolbarNodesRefs: i, handleKeyDown: a, handleNodeExpand: o, handleMouseLeave: s, onToolbarLeafNodeClick: c, renderToolbarNodes: l }) => {
1809
+ let u = $e(t, r ?? ""), d = dt(e), f = !d && !e?.isLoading && !tt(e), { anchorRef: p, targetRef: m } = ke({
1810
+ open: e.isExpanded ?? !1,
1811
+ position: "right"
1812
+ }), h = {
1813
+ node: J["smp-toolbar-node"],
1814
+ nodeContent: J["smp-toolbar-node-content"],
1815
+ clickable: J["smp-clickable"],
1816
+ notClickable: J["smp-not-clickable"],
1817
+ iconTextContainer: J["smp-toolbar-node-icon-text-container"],
1818
+ nodeText: J["smp-toolbar-node-text"],
1819
+ childrenContainer: J["smp-toolbar-node-children-container"],
1820
+ nodesContainer: J["smp-toolbar-nodes-container"],
1821
+ expanded: J["smp-expanded"]
1822
+ };
1823
+ return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
1824
+ ref: (e) => {
1825
+ e && i.current.set(u, e);
1826
+ },
1827
+ className: h.node,
1828
+ tabIndex: 0,
1829
+ role: "menuitem",
1830
+ "data-nodeid": u,
1831
+ "smp-id": `toolbar-item-${t}`,
1832
+ "aria-expanded": e?.isExpanded,
1833
+ "aria-label": e.decode ?? "",
1834
+ onKeyDown: (t) => a(t, e, u),
1835
+ onMouseEnter: () => {
1836
+ o(e, u);
1837
+ },
1838
+ onMouseLeave: () => {
1839
+ s(u);
1840
+ },
1841
+ onClick: (t) => {
1842
+ t.preventDefault(), t.stopPropagation(), f && c?.(e);
1843
+ },
1844
+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {
1845
+ className: `${h.nodeContent} ${f ? h.clickable : h.notClickable}`,
1846
+ ref: p,
1847
+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {
1848
+ className: h.iconTextContainer,
1849
+ children: [/* @__PURE__ */ (0, V.jsx)(U, { icon: e.icon ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", {
1850
+ className: h.nodeText,
1851
+ children: /* @__PURE__ */ (0, V.jsx)(Xr, {
1852
+ variant: "body",
1853
+ bindValue: e.decode || ""
1854
+ })
1855
+ })]
1856
+ }), e.isLoading ? /* @__PURE__ */ (0, V.jsx)(U, {
1857
+ icon: "spinner",
1858
+ spin: !0
1859
+ }) : d || tt(e) ? /* @__PURE__ */ (0, V.jsx)(U, { icon: "chevron-right" }) : /* @__PURE__ */ (0, V.jsx)(U, { icon: "" })]
1860
+ }), d && /* @__PURE__ */ (0, V.jsx)(Oe, { children: /* @__PURE__ */ (0, V.jsx)("div", {
1861
+ className: `${h.childrenContainer} ${e.isExpanded ? h.expanded : ""}`,
1862
+ ref: m,
1863
+ style: { "--smp-toolbar-z-index": `${1001 + n}` },
1864
+ children: l(n + 1, e.children ?? [], u)
1865
+ }) })]
1866
+ }, u) });
1867
+ }, xt = (e, t, n) => {
1868
+ let r = u(e), i = u(n);
1869
+ s(() => {
1870
+ r.current = e;
1871
+ }, [e]), s(() => {
1872
+ i.current = n;
1873
+ }, [n]), s(() => {
1874
+ if (!t) return;
1875
+ let e = (e) => {
1876
+ let t = e.target;
1877
+ r.current?.some((e) => {
1878
+ if (typeof e == "object" && e && "current" in e) {
1879
+ let n = e.current;
1880
+ return n && n.contains(t);
1881
+ }
1882
+ return !1;
1883
+ }) || i.current();
1884
+ };
1885
+ return document.addEventListener("mousedown", e), () => {
1886
+ document.removeEventListener("mousedown", e);
1887
+ };
1888
+ }, [t]);
1889
+ }, St = {
1890
+ key: "f4",
1891
+ ctrlKey: !1,
1892
+ altKey: !1
1893
+ }, Ct = {
1894
+ key: "f12",
1895
+ ctrlKey: !0,
1896
+ altKey: !1
1897
+ }, Y = {
1898
+ "smp-textfield-wrapper": "_smp-textfield-wrapper_14vkn_4",
1899
+ "smp-textfield": "_smp-textfield_14vkn_4",
1900
+ "smp-textfield-variant-notSelectable": "_smp-textfield-variant-notSelectable_14vkn_32",
1901
+ "smp-textfield-extraSmall": "_smp-textfield-extraSmall_14vkn_38",
1902
+ "smp-textfield-small": "_smp-textfield-small_14vkn_43",
1903
+ "smp-textfield-base": "_smp-textfield-base_14vkn_48",
1904
+ "smp-textfield-large": "_smp-textfield-large_14vkn_53",
1905
+ "smp-textfield-extraLarge": "_smp-textfield-extraLarge_14vkn_58",
1906
+ "smp-textfield-input": "_smp-textfield-input_14vkn_64",
1907
+ "smp-textfield-decode-wrapper": "_smp-textfield-decode-wrapper_14vkn_84",
1908
+ "smp-textfield-outlined": "_smp-textfield-outlined_14vkn_93",
1909
+ "smp-textfield-danger": "_smp-textfield-danger_14vkn_104",
1910
+ "smp-textfield-disabled": "_smp-textfield-disabled_14vkn_111",
1911
+ "smp-textfield-FullWidth": "_smp-textfield-FullWidth_14vkn_120",
1912
+ "smp-textfield-object-indicator": "_smp-textfield-object-indicator_14vkn_124"
1913
+ }, wt = i.createContext({}), Tt = () => o(wt), Et = (e, t, n) => {
1914
+ if (!e && !t) return "";
1915
+ if (n) switch (n) {
1916
+ case "CodeOnly": return e || "";
1917
+ case "DescOnly": return t || e || "";
1918
+ case "Both": return `${e || ""}${t ? ` - ${t}` : ""}`;
1919
+ }
1920
+ return e || "";
1921
+ }, Dt = (e) => e ? e.t == "D8" || e.t == "A8" : !1, Ot = (e) => e ? e.t == "NR" : !1, kt = (e) => e ? e.t == "I1" : !1, At = (e) => e ? e.t == "J1" && e.p == "FUN" : !1, jt = (e) => e ? e.t == "V2" && e.p == "SI/NO" : !1, Mt = (e) => e ? e.t == "V2" && e.p == "ON/OFF" : !1, Nt = (e) => e ? e.t == "JL" : !1, Pt = (e) => e ? e.t == "J1" && e.p == "URL" : !1, Ft = (e) => e ? e.t == "J1" && e.p == "PATHFILE" : !1, It = (e) => e ? e.t == "J4" && e.p == "IMG" : !1, Lt = (e) => e ? e.t == "J4" && e.p == "BTN" : !1, Rt = (e) => {
1922
+ if (e) {
1923
+ let t = e.split(";");
1924
+ if (t.length >= 3) return {
1925
+ obj: {
1926
+ t: t[0],
1927
+ p: t[1]
1928
+ },
1929
+ value: t.slice(2).join(";")
1930
+ };
1931
+ }
1932
+ return {
1933
+ obj: {
1934
+ t: "",
1935
+ p: ""
1936
+ },
1937
+ value: ""
1938
+ };
1939
+ }, zt = ({ bindValue: e, optionalDisplayValue: t, className: n, obj: r, style: i, justifiedContent: a, DescrMode: o, ...s }) => {
1940
+ let c = o ? Et(e, t, o) : void 0;
1941
+ return /* @__PURE__ */ (0, V.jsx)(Xr, {
1942
+ ...s,
1943
+ variant: Pt(r) ? "link" : "body",
1944
+ bindValue: c || t || e,
1945
+ className: n,
1946
+ style: i,
1947
+ justifiedContent: a
1948
+ });
1949
+ }, Bt = new Set([
1950
+ ...Object.values(K),
1951
+ "CAR",
1952
+ "CHT",
1953
+ "DIV",
1954
+ "DIVIDER",
1955
+ "INP",
1956
+ "MER",
1957
+ "RNG",
1958
+ "TED"
1959
+ ]), Vt = (e) => {
1960
+ if (typeof e != "string") return;
1961
+ let t = e.trim().toUpperCase();
1962
+ if (!t) return;
1963
+ if (Bt.has(t)) return t;
1964
+ let n = t.match(/^TYPE\(([^)]+)\)$/)?.[1]?.trim();
1965
+ return n && Bt.has(n) ? n : void 0;
1966
+ }, Ht = (e) => e.shape ? e.shape : Vt(e.name) || Ut(e.obj), Ut = (e) => {
1967
+ if (e) {
1968
+ if (It(e)) return K.IMAGE;
1969
+ if (Lt(e)) return K.BUTTON;
1970
+ if (Ot(e)) return K.INPUT_NUMBER;
1971
+ if (Dt(e)) return K.DATE;
1972
+ if (kt(e)) return K.TIMEPICKER;
1973
+ if (jt(e)) return K.CHECKBOX;
1974
+ if (Mt(e)) return K.SWITCH;
1975
+ if (Nt(e)) return K.CHIP;
1976
+ }
1977
+ }, Wt = (e, t) => e.shape ? e.shape : t || Ut(e.obj), Gt = [
1978
+ "px",
1979
+ "vh",
1980
+ "vw",
1981
+ "rem",
1982
+ "em",
1983
+ "%"
1984
+ ], Kt = [
1985
+ "auto",
1986
+ "fit-content",
1987
+ "max-content",
1988
+ "min-content"
1989
+ ];
1990
+ function qt(e) {
1991
+ return e == null ? "" : typeof e == "number" || String(e).trim() !== "" && !isNaN(Number(e)) ? `${e}px` : String(e);
1992
+ }
1993
+ function Jt(e) {
1994
+ if (typeof e == "number") return !0;
1995
+ if (typeof e != "string") return !1;
1996
+ if (Kt.includes(e)) return !0;
1997
+ let t = Gt.join("|");
1998
+ return RegExp(`^-?\\d+(\\.\\d+)?(${t})?$`).test(e);
1999
+ }
2000
+ function Yt(e) {
2001
+ if (typeof e == "number") return e;
2002
+ let t = qt(e), n = document.createElement("div");
2003
+ n.style.position = "absolute", n.style.visibility = "hidden", n.style.height = t, n.style.padding = "0", n.style.margin = "0", n.style.border = "none", document.body.appendChild(n);
2004
+ let r = parseFloat(getComputedStyle(n).height);
2005
+ return n.remove(), isNaN(r) ? 0 : r;
2006
+ }
2007
+ var Xt = (e, t) => e && Jt(e) ? qt(e) : t || "", Zt = (e) => e.map((e) => Qt(e)).filter((e) => !!e).join(" "), Qt = (e) => m[`smp-${e}`] ?? "", $t = class e {
2008
+ class;
2009
+ value;
2010
+ constructor(e, t) {
2011
+ this.class = e, this.value = t;
2012
+ }
2013
+ static fromDataObj(t, n) {
2014
+ if (t) return new e(t, n ? n == "" ? [] : n?.split(";") : []);
2015
+ throw Error("list creation from obj undefined not implemented yet");
2016
+ }
2017
+ static fromString(t) {
2018
+ return new e({
2019
+ t: "",
2020
+ p: ""
2021
+ }, t.split(";"));
2022
+ }
2023
+ getValue() {
2024
+ return this.value;
2025
+ }
2026
+ getLegacyValue() {
2027
+ return this.value.join(";");
2028
+ }
2029
+ }, en = (e, t) => ({
2030
+ ...e,
2031
+ obj: {
2032
+ t: t.objClass?.t ? t.objClass.t : e.obj?.t || "",
2033
+ p: t.objClass?.p ? t.objClass.p : e.obj?.p || ""
2034
+ },
2035
+ value: t.bindValue,
2036
+ decode: t.optionalDisplayValue ?? e.decode,
2037
+ fun: t.fun ?? e.fun
2038
+ }), tn = (e) => {
2039
+ let t = $t.fromDataObj(e.obj, e.value), n = e.decode ? $t.fromString(e.decode).getValue() : [];
2040
+ return t.getValue().map((e, t) => ({
2041
+ bindValue: e,
2042
+ optionalDisplayValue: n.length >= t ? n[t] : ""
2043
+ }));
2044
+ }, nn = (e, t) => en(e, {
2045
+ bindValue: new $t(e.obj, t.map((e) => e.bindValue)).getLegacyValue(),
2046
+ optionalDisplayValue: new $t(e.obj, t.map((e) => e.optionalDisplayValue ? e.optionalDisplayValue : "")).getLegacyValue()
2047
+ }), rn = (e) => ({
2048
+ bindValue: e.value || "",
2049
+ objClass: {
2050
+ t: e.obj?.t || "",
2051
+ p: e.obj?.p || ""
2052
+ },
2053
+ fun: e.fun,
2054
+ optionalDisplayValue: e.decode
2055
+ }), an = (e, t, n, r, i) => {
2056
+ if (t) {
2057
+ if (t === K.TIME) return K.TIMEPICKER;
2058
+ if (t === K.LABEL) {
2059
+ if (Ot(e)) return K.INPUT_NUMBER;
2060
+ if (Dt(e)) return K.DATE;
2061
+ if (kt(e)) return K.TIMEPICKER;
2062
+ }
2063
+ return t === K.MEMO && Pt(e) && r ? K.LABEL : t;
2064
+ }
2065
+ return Ut(e) || ((!t || t == K.TEXT_FIELD) && i?.size && i?.size >= 256 ? K.MEMO : on(n, r));
2066
+ }, on = (e, t) => {
2067
+ switch (e) {
2068
+ case q.INPUT_PANEL:
2069
+ case q.FIELD: return t ? K.LABEL : K.TEXT_FIELD;
2070
+ default: return;
2071
+ }
2072
+ }, sn = (e, t) => {
2073
+ switch (e) {
2074
+ case q.DATA_TABLE:
2075
+ case q.BOX: return !0;
2076
+ case q.APPBAR:
2077
+ case q.INPUT_PANEL: return t === !1;
2078
+ default: return !1;
2079
+ }
2080
+ }, cn = (e) => {
2081
+ switch (e) {
2082
+ case q.DATA_TABLE: return {
2083
+ ImgWdt: "auto",
2084
+ ImgHgt: "100%"
2085
+ };
2086
+ case q.BOX:
2087
+ case q.INPUT_PANEL: return {
2088
+ ImgWdt: "50px",
2089
+ ImgHgt: "auto"
2090
+ };
2091
+ default: return {
2092
+ ImgWdt: "100%",
2093
+ ImgHgt: "100%"
2094
+ };
2095
+ }
2096
+ }, ln = (e, t) => {
2097
+ let n = cn(e);
2098
+ return {
2099
+ ImgWdt: Xt(t?.ImgWdt, n.ImgWdt),
2100
+ ImgHgt: Xt(t?.ImgHgt, n.ImgHgt)
2101
+ };
2102
+ }, un = (e) => {
2103
+ switch (e) {
2104
+ case mt.CODE_ONLY: return 15;
2105
+ case mt.DESC_ONLY: return 35;
2106
+ case mt.BOTH: return 50;
2107
+ default: return 35;
2108
+ }
2109
+ }, dn = (e) => {
2110
+ switch (e) {
2111
+ case q.DATA_TABLE: return "right";
2112
+ default: return "left";
2113
+ }
2114
+ }, fn = (e) => {
2115
+ if (e.fun) return e.fun;
2116
+ if (At(e.obj)) return e.value;
2117
+ }, pn = (e) => !!(e && (e.t != null && e.t !== "" || e.p != null && e.p !== "")), mn = ({ id: e, smpId: t, disabled: n = !1, bindValue: r, optionalDisplayValue: i, icon: a, placeholder: o, isEditable: s = !0, shapeIcon: l, shapeIconTabbable: f = !1, sizing: p = "base", state: m, variant: h, rotatedShapeIcon: g = !1, ref: _, inputRef: v, inputType: y = "text", ariaLabel: b = "input field", helperText: x = !1, error: S, appearance: C = "base", isClearable: w = !1, FullWidth: T = "No", _dataComponent: E = "textfield", min: D, max: O, step: k, inputMode: A = "text", width: ee, autocomplete: j, size: M, maxLength: te, style: ne, DescrMode: N, hasAdvanceResearch: re = !0, isVisualOnly: ie, obj: ae, onBlur: oe, onChange: se, onKeyDown: ce, onEnter: le, onShapeIconClick: ue, onClick: de, onAdvanceResearchActivation: fe, ...pe }) => {
2118
+ let [me, P] = d(!1), [he, F] = d(void 0), ge = u(null), I = v ?? ge, { anchorRef: _e, targetRef: L } = ke({
2119
+ position: "bottom",
2120
+ open: me
2121
+ }), R = c(), ve = `${R}-helper`, ye = S ? "danger" : m, z = x || !!S, be = (e) => {
2122
+ se?.({ bindValue: e.target.value });
2123
+ }, xe = () => {
2124
+ r && r != "" && se?.({ bindValue: "" });
2125
+ }, Se = (e) => {
2126
+ e.key.toLowerCase() === St.key.toLowerCase() && St.ctrlKey === e.ctrlKey && St.altKey === e.altKey && re && (e.preventDefault(), e.stopPropagation(), F(void 0), P(!0), fe?.()), e.altKey && e.key.toLowerCase() !== "alt" && re && (e.preventDefault(), e.stopPropagation(), F(`Alt+${e.key === " " ? "space" : e.key.toUpperCase()}`), P(!0), fe?.()), w && e.key == "Escape" && xe(), e.key == "Enter" && le?.({ bindValue: r }), ce?.(e);
2127
+ }, { onAdvanceResearchLoadInitialData: B, onAdvanceResearchLeafNodeClick: H, advanceResearchAutoSelect: Ce } = Tt(), we = (e) => {
2128
+ H && H(e, I && "current" in I && I.current ? I.current.value : r), P(!1);
2129
+ }, Te = () => {
2130
+ if (B) {
2131
+ let t = I && "current" in I && I.current ? I.current.value : r;
2132
+ return B(e || "", ae ?? {
2133
+ t: "",
2134
+ p: ""
2135
+ }, t, he);
2136
+ }
2137
+ return Promise.resolve({
2138
+ type: "SmeupDataTree",
2139
+ children: []
2140
+ });
2141
+ }, Ee = () => {
2142
+ P(!1), I && "current" in I && I.current?.focus();
2143
+ }, De = {
2144
+ wrapper: `${Y["smp-textfield-wrapper"]} ${ze(T) ? Y["smp-textfield-FullWidth"] : ""}`,
2145
+ container: `${Y["smp-textfield"]} ${n || !s ? Y["smp-textfield-disabled"] : ""} ${o ? Y["smp-textfield-placeholder"] : ""} ${p ? Y[`smp-textfield-${p}`] : ""} ${ye ? Y[`smp-textfield-${ye}`] : ""} ${C ? Y[`smp-textfield-${C}`] : ""}`,
2146
+ input: `${Y["smp-textfield-input"]}`,
2147
+ decodeWrapper: ` ${i ? Y["smp-textfield-decode-wrapper"] : ""}`,
2148
+ objectIndicator: Y["smp-textfield-object-indicator"]
2149
+ };
2150
+ if (h && (h !== "notSelectable" || s)) {
2151
+ let e = Y[`smp-textfield-variant-${h}`];
2152
+ e && (De.container += ` ${e}`);
2153
+ }
2154
+ let Ae = ee ? {
2155
+ "--smp-textField-width-base": ee,
2156
+ ...ne
2157
+ } : ne, je = /* @__PURE__ */ (0, V.jsxs)("div", {
2158
+ className: De.container,
2159
+ ref: _,
2160
+ style: Ae,
2161
+ "smp-id": t,
2162
+ children: [
2163
+ ae && pn(ae) && /* @__PURE__ */ (0, V.jsx)("div", { className: De.objectIndicator }),
2164
+ a && /* @__PURE__ */ (0, V.jsx)(U, {
2165
+ icon: a,
2166
+ disabled: n || !s
2167
+ }),
2168
+ /* @__PURE__ */ (0, V.jsx)("input", {
2169
+ ref: I,
2170
+ id: e || R,
2171
+ name: e || R,
2172
+ type: y,
2173
+ value: Et(r, i, N),
2174
+ placeholder: o,
2175
+ onChange: be,
2176
+ className: De.input,
2177
+ disabled: n || !s,
2178
+ onKeyDown: Se,
2179
+ "aria-label": b,
2180
+ "aria-describedby": z ? ve : void 0,
2181
+ min: D,
2182
+ max: O,
2183
+ step: k,
2184
+ inputMode: A,
2185
+ autoComplete: j,
2186
+ size: M,
2187
+ maxLength: te,
2188
+ onClick: de
2189
+ }),
2190
+ w && /* @__PURE__ */ (0, V.jsx)(U, {
2191
+ icon: "clear",
2192
+ onClick: xe,
2193
+ tabIndex: -1,
2194
+ isInteractable: !0
2195
+ }),
2196
+ l && /* @__PURE__ */ (0, V.jsx)(U, {
2197
+ icon: l,
2198
+ disabled: n || !s,
2199
+ onClick: ue,
2200
+ rotated: g,
2201
+ isInteractable: s,
2202
+ tabIndex: f && !n && s ? 0 : -1
2203
+ })
2204
+ ]
2205
+ });
2206
+ return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: ie ? /* @__PURE__ */ (0, V.jsx)(zt, {
2207
+ ...pe,
2208
+ style: Ae,
2209
+ bindValue: r,
2210
+ optionalDisplayValue: i,
2211
+ DescrMode: N
2212
+ }) : /* @__PURE__ */ (0, V.jsx)("div", {
2213
+ className: De.wrapper,
2214
+ "data-component": E,
2215
+ onBlur: (e) => {
2216
+ let t = e.relatedTarget;
2217
+ t && e.currentTarget.contains(t) || oe?.({ focusEvent: e }, { bindValue: r });
2218
+ },
2219
+ children: /* @__PURE__ */ (0, V.jsxs)("div", {
2220
+ className: De.decodeWrapper,
2221
+ ref: _e,
2222
+ children: [je, me && /* @__PURE__ */ (0, V.jsx)(Oe, { children: /* @__PURE__ */ (0, V.jsx)(Br, {
2223
+ ref: L,
2224
+ autoSelect: Ce,
2225
+ onToolbarLoadInitialData: Te,
2226
+ onToolbarLeafNodeClick: we,
2227
+ onToolbarClickOutside: () => P(!1),
2228
+ onToolbarClose: Ee
2229
+ }) })]
2230
+ })
2231
+ }) });
2232
+ }, X = (e) => typeof e == "string", hn = () => {
2233
+ let e, t, n = new Promise((n, r) => {
2234
+ e = n, t = r;
2235
+ });
2236
+ return n.resolve = e, n.reject = t, n;
2237
+ }, gn = (e) => e == null ? "" : String(e), _n = (e, t, n) => {
2238
+ e.forEach((e) => {
2239
+ t[e] && (n[e] = t[e]);
2240
+ });
2241
+ }, vn = /###/g, yn = (e) => e && e.includes("###") ? e.replace(vn, ".") : e, bn = (e) => !e || X(e), xn = (e, t, n) => {
2242
+ let r = X(t) ? t.split(".") : t, i = 0;
2243
+ for (; i < r.length - 1;) {
2244
+ if (bn(e)) return {};
2245
+ let t = yn(r[i]);
2246
+ !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2247
+ }
2248
+ return bn(e) ? {} : {
2249
+ obj: e,
2250
+ k: yn(r[i])
2251
+ };
2252
+ }, Sn = (e, t, n) => {
2253
+ let { obj: r, k: i } = xn(e, t, Object);
2254
+ if (r !== void 0 || t.length === 1) {
2255
+ r[i] = n;
2256
+ return;
2257
+ }
2258
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = xn(e, o, Object);
2259
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = xn(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2260
+ s.obj[`${s.k}.${a}`] = n;
2261
+ }, Cn = (e, t, n, r) => {
2262
+ let { obj: i, k: a } = xn(e, t, Object);
2263
+ i[a] = i[a] || [], i[a].push(n);
2264
+ }, wn = (e, t) => {
2265
+ let { obj: n, k: r } = xn(e, t);
2266
+ if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2267
+ }, Tn = (e, t, n) => {
2268
+ let r = wn(e, n);
2269
+ return r === void 0 ? wn(t, n) : r;
2270
+ }, En = (e, t, n) => {
2271
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? X(e[r]) || e[r] instanceof String || X(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : En(e[r], t[r], n) : e[r] = t[r]);
2272
+ return e;
2273
+ }, Z = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Dn = {
2274
+ "&": "&amp;",
2275
+ "<": "&lt;",
2276
+ ">": "&gt;",
2277
+ "\"": "&quot;",
2278
+ "'": "&#39;",
2279
+ "/": "&#x2F;"
2280
+ }, On = (e) => X(e) ? e.replace(/[&<>"'\/]/g, (e) => Dn[e]) : e, kn = class {
2281
+ constructor(e) {
2282
+ this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2283
+ }
2284
+ getRegExp(e) {
2285
+ let t = this.regExpMap.get(e);
2286
+ if (t !== void 0) return t;
2287
+ let n = new RegExp(e);
2288
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2289
+ }
2290
+ }, An = [
2291
+ " ",
2292
+ ",",
2293
+ "?",
2294
+ "!",
2295
+ ";"
2296
+ ], jn = new kn(20), Mn = (e, t, n) => {
2297
+ t ||= "", n ||= "";
2298
+ let r = An.filter((e) => !t.includes(e) && !n.includes(e));
2299
+ if (r.length === 0) return !0;
2300
+ let i = jn.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2301
+ if (!a) {
2302
+ let t = e.indexOf(n);
2303
+ t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2304
+ }
2305
+ return a;
2306
+ }, Nn = (e, t, n = ".") => {
2307
+ if (!e) return;
2308
+ if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2309
+ let r = t.split(n), i = e;
2310
+ for (let e = 0; e < r.length;) {
2311
+ if (!i || typeof i != "object") return;
2312
+ let t, a = "";
2313
+ for (let o = e; o < r.length; ++o) if (o !== e && (a += n), a += r[o], t = i[a], t !== void 0) {
2314
+ if ([
2315
+ "string",
2316
+ "number",
2317
+ "boolean"
2318
+ ].includes(typeof t) && o < r.length - 1) continue;
2319
+ e += o - e + 1;
2320
+ break;
2321
+ }
2322
+ i = t;
2323
+ }
2324
+ return i;
2325
+ }, Pn = (e) => e?.replace(/_/g, "-"), Fn = {
2326
+ type: "logger",
2327
+ log(e) {
2328
+ this.output("log", e);
2329
+ },
2330
+ warn(e) {
2331
+ this.output("warn", e);
2332
+ },
2333
+ error(e) {
2334
+ this.output("error", e);
2335
+ },
2336
+ output(e, t) {
2337
+ console?.[e]?.apply?.(console, t);
2338
+ }
2339
+ }, Q = new class e {
2340
+ constructor(e, t = {}) {
2341
+ this.init(e, t);
2342
+ }
2343
+ init(e, t = {}) {
2344
+ this.prefix = t.prefix || "i18next:", this.logger = e || Fn, this.options = t, this.debug = t.debug;
2345
+ }
2346
+ log(...e) {
2347
+ return this.forward(e, "log", "", !0);
2348
+ }
2349
+ warn(...e) {
2350
+ return this.forward(e, "warn", "", !0);
2351
+ }
2352
+ error(...e) {
2353
+ return this.forward(e, "error", "");
2354
+ }
2355
+ deprecate(...e) {
2356
+ return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
2357
+ }
2358
+ forward(e, t, n, r) {
2359
+ return r && !this.debug ? null : (e = e.map((e) => X(e) ? e.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : e), X(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
2360
+ }
2361
+ create(t) {
2362
+ return new e(this.logger, {
2363
+ prefix: `${this.prefix}:${t}:`,
2364
+ ...this.options
2365
+ });
2366
+ }
2367
+ clone(t) {
2368
+ return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2369
+ }
2370
+ }(), In = class {
2371
+ constructor() {
2372
+ this.observers = {};
2373
+ }
2374
+ on(e, t) {
2375
+ return e.split(" ").forEach((e) => {
2376
+ this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
2377
+ let n = this.observers[e].get(t) || 0;
2378
+ this.observers[e].set(t, n + 1);
2379
+ }), this;
2380
+ }
2381
+ off(e, t) {
2382
+ if (this.observers[e]) {
2383
+ if (!t) {
2384
+ delete this.observers[e];
2385
+ return;
2386
+ }
2387
+ this.observers[e].delete(t);
2388
+ }
2389
+ }
2390
+ once(e, t) {
2391
+ let n = (...r) => {
2392
+ t(...r), this.off(e, n);
2393
+ };
2394
+ return this.on(e, n), this;
2395
+ }
2396
+ emit(e, ...t) {
2397
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, n]) => {
2398
+ for (let r = 0; r < n; r++) e(...t);
2399
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([n, r]) => {
2400
+ for (let i = 0; i < r; i++) n(e, ...t);
2401
+ });
2402
+ }
2403
+ }, Ln = class extends In {
2404
+ constructor(e, t = {
2405
+ ns: ["translation"],
2406
+ defaultNS: "translation"
2407
+ }) {
2408
+ super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
2409
+ }
2410
+ addNamespaces(e) {
2411
+ this.options.ns.includes(e) || this.options.ns.push(e);
2412
+ }
2413
+ removeNamespaces(e) {
2414
+ let t = this.options.ns.indexOf(e);
2415
+ t > -1 && this.options.ns.splice(t, 1);
2416
+ }
2417
+ getResource(e, t, n, r = {}) {
2418
+ let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2419
+ e.includes(".") ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : X(n) && i ? o.push(...n.split(i)) : o.push(n)));
2420
+ let s = wn(this.data, o);
2421
+ return !s && !t && !n && e.includes(".") && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !X(n) ? s : Nn(this.data?.[e]?.[t], n, i);
2422
+ }
2423
+ addResource(e, t, n, r, i = { silent: !1 }) {
2424
+ let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2425
+ n && (o = o.concat(a ? n.split(a) : n)), e.includes(".") && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Sn(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2426
+ }
2427
+ addResources(e, t, n, r = { silent: !1 }) {
2428
+ for (let r in n) (X(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
2429
+ r.silent || this.emit("added", e, t, n);
2430
+ }
2431
+ addResourceBundle(e, t, n, r, i, a = {
2432
+ silent: !1,
2433
+ skipCopy: !1
2434
+ }) {
2435
+ let o = [e, t];
2436
+ e.includes(".") && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2437
+ let s = wn(this.data, o) || {};
2438
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? En(s, n, i) : s = {
2439
+ ...s,
2440
+ ...n
2441
+ }, Sn(this.data, o, s), a.silent || this.emit("added", e, t, n);
2442
+ }
2443
+ removeResourceBundle(e, t) {
2444
+ this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
2445
+ }
2446
+ hasResourceBundle(e, t) {
2447
+ return this.getResource(e, t) !== void 0;
2448
+ }
2449
+ getResourceBundle(e, t) {
2450
+ return t ||= this.options.defaultNS, this.getResource(e, t);
2451
+ }
2452
+ getDataByLanguage(e) {
2453
+ return this.data[e];
2454
+ }
2455
+ hasLanguageSomeTranslations(e) {
2456
+ let t = this.getDataByLanguage(e);
2457
+ return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
2458
+ }
2459
+ toJSON() {
2460
+ return this.data;
2461
+ }
2462
+ }, Rn = {
2463
+ processors: {},
2464
+ addPostProcessor(e) {
2465
+ this.processors[e.name] = e;
2466
+ },
2467
+ handle(e, t, n, r, i) {
2468
+ return e.forEach((e) => {
2469
+ t = this.processors[e]?.process(t, n, r, i) ?? t;
2470
+ }), t;
2471
+ }
2472
+ }, zn = Symbol("i18next/PATH_KEY");
2473
+ function Bn() {
2474
+ let e = [], t = Object.create(null), n;
2475
+ return t.get = (r, i) => (n?.revoke?.(), i === zn ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2476
+ }
2477
+ function Vn(e, t) {
2478
+ let { [zn]: n } = e(Bn()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":", a = t?.enableSelector === "strict";
2479
+ if (n.length > 1 && i) {
2480
+ let e = t?.ns, o = a ? Array.isArray(e) ? e : e ? [e] : null : Array.isArray(e) ? e : null;
2481
+ if (o && (a ? o : o.length > 1 ? o.slice(1) : []).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2482
+ }
2483
+ return n.join(r);
2484
+ }
2485
+ var Hn = (e) => !X(e) && typeof e != "boolean" && typeof e != "number", Un = class e extends In {
2486
+ constructor(e, t = {}) {
2487
+ super(), _n([
2488
+ "resourceStore",
2489
+ "languageUtils",
2490
+ "pluralResolver",
2491
+ "interpolator",
2492
+ "backendConnector",
2493
+ "i18nFormat",
2494
+ "utils"
2495
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Q.create("translator"), this.checkedLoadedFor = {};
2496
+ }
2497
+ changeLanguage(e) {
2498
+ e && (this.language = e);
2499
+ }
2500
+ exists(e, t = { interpolation: {} }) {
2501
+ let n = { ...t };
2502
+ if (e == null) return !1;
2503
+ let r = this.resolve(e, n);
2504
+ if (r?.res === void 0) return !1;
2505
+ let i = Hn(r.res);
2506
+ return !(n.returnObjects === !1 && i);
2507
+ }
2508
+ extractFromKey(e, t) {
2509
+ let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2510
+ n === void 0 && (n = ":");
2511
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.includes(n), o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Mn(e, n, r);
2512
+ if (a && !o) {
2513
+ let t = e.match(this.interpolator.nestingRegexp);
2514
+ if (t && t.length > 0) return {
2515
+ key: e,
2516
+ namespaces: X(i) ? [i] : i
2517
+ };
2518
+ let a = e.split(n);
2519
+ (n !== r || n === r && this.options.ns.includes(a[0])) && (i = a.shift()), e = a.join(r);
2520
+ }
2521
+ return {
2522
+ key: e,
2523
+ namespaces: X(i) ? [i] : i
2524
+ };
2525
+ }
2526
+ translate(t, n, r) {
2527
+ let i = typeof n == "object" ? { ...n } : n;
2528
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2529
+ typeof t == "function" && (t = Vn(t, {
2530
+ ...this.options,
2531
+ ...i
2532
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Vn(e, {
2533
+ ...this.options,
2534
+ ...i
2535
+ }) : String(e));
2536
+ let a = i.returnDetails === void 0 ? this.options.returnDetails : i.returnDetails, o = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, { key: s, namespaces: c } = this.extractFromKey(t[t.length - 1], i), l = c[c.length - 1], u = i.nsSeparator === void 0 ? this.options.nsSeparator : i.nsSeparator;
2537
+ u === void 0 && (u = ":");
2538
+ let d = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2539
+ if (d?.toLowerCase() === "cimode") return f ? a ? {
2540
+ res: `${l}${u}${s}`,
2541
+ usedKey: s,
2542
+ exactUsedKey: s,
2543
+ usedLng: d,
2544
+ usedNS: l,
2545
+ usedParams: this.getUsedParamsDetails(i)
2546
+ } : `${l}${u}${s}` : a ? {
2547
+ res: s,
2548
+ usedKey: s,
2549
+ exactUsedKey: s,
2550
+ usedLng: d,
2551
+ usedNS: l,
2552
+ usedParams: this.getUsedParamsDetails(i)
2553
+ } : s;
2554
+ let p = this.resolve(t, i), m = p?.res, h = p?.usedKey || s, g = p?.exactUsedKey || s, _ = [
2555
+ "[object Number]",
2556
+ "[object Function]",
2557
+ "[object RegExp]"
2558
+ ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !X(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
2559
+ y && !m && x && (E = T);
2560
+ let D = Hn(E), O = Object.prototype.toString.apply(E);
2561
+ if (y && E && D && !_.includes(O) && !(X(v) && Array.isArray(E))) {
2562
+ if (!i.returnObjects && !this.options.returnObjects) {
2563
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2564
+ let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, E, {
2565
+ ...i,
2566
+ ns: c
2567
+ }) : `key '${s} (${this.language})' returned an object instead of string.`;
2568
+ return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
2569
+ }
2570
+ if (o) {
2571
+ let e = Array.isArray(E), t = e ? [] : {}, n = e ? g : h;
2572
+ for (let e in E) if (Object.prototype.hasOwnProperty.call(E, e)) {
2573
+ let r = `${n}${o}${e}`;
2574
+ x && !m ? t[e] = this.translate(r, {
2575
+ ...i,
2576
+ defaultValue: Hn(T) ? T[e] : void 0,
2577
+ joinArrays: !1,
2578
+ ns: c
2579
+ }) : t[e] = this.translate(r, {
2580
+ ...i,
2581
+ joinArrays: !1,
2582
+ ns: c
2583
+ }), t[e] === r && (t[e] = E[e]);
2584
+ }
2585
+ m = t;
2586
+ }
2587
+ } else if (y && X(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
2588
+ else {
2589
+ let e = !1, n = !1;
2590
+ !this.isValidLookup(m) && x && (e = !0, m = T), this.isValidLookup(m) || (n = !0, m = s);
2591
+ let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && T !== m && this.options.updateMissing;
2592
+ if (n || e || c) {
2593
+ if (this.logger.log(c ? "updateKey" : "missingKey", d, l, b && !c ? `${s}${this.pluralResolver.getSuffix(d, i.count, i)}` : s, c ? T : m), o) {
2594
+ let e = this.resolve(s, {
2595
+ ...i,
2596
+ keySeparator: !1
2597
+ });
2598
+ e && e.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2599
+ }
2600
+ let e = [], t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
2601
+ if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
2602
+ else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
2603
+ let n = (e, t, n) => {
2604
+ let r = x && n !== m ? n : a;
2605
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(e, l, t, r, c, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(e, l, t, r, c, i), this.emit("missingKey", e, l, t, m);
2606
+ };
2607
+ this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
2608
+ let t = this.pluralResolver.getSuffixes(e, i);
2609
+ w && i[`defaultValue${this.options.pluralSeparator}zero`] && !t.includes(`${this.options.pluralSeparator}zero`) && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
2610
+ n([e], s + t, i[`defaultValue${t}`] || T);
2611
+ });
2612
+ }) : n(e, s, T));
2613
+ }
2614
+ m = this.extendTranslation(m, t, i, p, r), n && m === s && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${s}`), (n || e) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${s}` : s, e ? m : void 0, i));
2615
+ }
2616
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(i), p) : m;
2617
+ }
2618
+ extendTranslation(e, t, n, r, i) {
2619
+ if (this.i18nFormat?.parse) e = this.i18nFormat.parse(e, {
2620
+ ...this.options.interpolation.defaultVariables,
2621
+ ...n
2622
+ }, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r });
2623
+ else if (!n.skipInterpolation) {
2624
+ n.interpolation && this.interpolator.init({
2625
+ ...n,
2626
+ interpolation: {
2627
+ ...this.options.interpolation,
2628
+ ...n.interpolation
2629
+ }
2630
+ });
2631
+ let a = X(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
2632
+ if (a) {
2633
+ let t = e.match(this.interpolator.nestingRegexp);
2634
+ o = t && t.length;
2635
+ }
2636
+ let s = n.replace && !X(n.replace) ? n.replace : n;
2637
+ if (this.options.interpolation.defaultVariables && (s = {
2638
+ ...this.options.interpolation.defaultVariables,
2639
+ ...s
2640
+ }), e = this.interpolator.interpolate(e, s, n.lng || this.language || r.usedLng, n), a) {
2641
+ let t = e.match(this.interpolator.nestingRegexp), r = t && t.length;
2642
+ o < r && (n.nest = !1);
2643
+ }
2644
+ !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
2645
+ }
2646
+ let a = n.postProcess || this.options.postProcess, o = X(a) ? [a] : a;
2647
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Rn.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2648
+ i18nResolved: {
2649
+ ...r,
2650
+ usedParams: this.getUsedParamsDetails(n)
2651
+ },
2652
+ ...n
2653
+ } : n, this)), e;
2654
+ }
2655
+ resolve(e, t = {}) {
2656
+ let n, r, i, a, o;
2657
+ return X(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Vn(e, {
2658
+ ...this.options,
2659
+ ...t
2660
+ }) : e)), e.forEach((e) => {
2661
+ if (this.isValidLookup(n)) return;
2662
+ let s = this.extractFromKey(e, t), c = s.key;
2663
+ r = c;
2664
+ let l = s.namespaces;
2665
+ this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2666
+ let u = t.count !== void 0 && !X(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (X(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2667
+ l.forEach((e) => {
2668
+ this.isValidLookup(n) || (o = e, !this.checkedLoadedFor[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (this.checkedLoadedFor[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
2669
+ if (this.isValidLookup(n)) return;
2670
+ a = r;
2671
+ let o = [c];
2672
+ if (this.i18nFormat?.addLookupKeys) this.i18nFormat.addLookupKeys(o, c, r, e, t);
2673
+ else {
2674
+ let e;
2675
+ u && (e = this.pluralResolver.getSuffix(r, t.count, t));
2676
+ let n = `${this.options.pluralSeparator}zero`, i = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2677
+ if (u && (t.ordinal && e.startsWith(i) && o.push(c + e.replace(i, this.options.pluralSeparator)), o.push(c + e), d && o.push(c + n)), f) {
2678
+ let r = `${c}${this.options.contextSeparator || "_"}${t.context}`;
2679
+ o.push(r), u && (t.ordinal && e.startsWith(i) && o.push(r + e.replace(i, this.options.pluralSeparator)), o.push(r + e), d && o.push(r + n));
2680
+ }
2681
+ }
2682
+ let s;
2683
+ for (; s = o.pop();) this.isValidLookup(n) || (i = s, n = this.getResource(r, e, s, t));
2684
+ }));
2685
+ });
2686
+ }), {
2687
+ res: n,
2688
+ usedKey: r,
2689
+ exactUsedKey: i,
2690
+ usedLng: a,
2691
+ usedNS: o
2692
+ };
2693
+ }
2694
+ isValidLookup(e) {
2695
+ return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
2696
+ }
2697
+ getResource(e, t, n, r = {}) {
2698
+ return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
2699
+ }
2700
+ getUsedParamsDetails(e = {}) {
2701
+ let t = [
2702
+ "defaultValue",
2703
+ "ordinal",
2704
+ "context",
2705
+ "replace",
2706
+ "lng",
2707
+ "lngs",
2708
+ "fallbackLng",
2709
+ "ns",
2710
+ "keySeparator",
2711
+ "nsSeparator",
2712
+ "returnObjects",
2713
+ "returnDetails",
2714
+ "joinArrays",
2715
+ "postProcess",
2716
+ "interpolation"
2717
+ ], n = e.replace && !X(e.replace), r = n ? e.replace : e;
2718
+ if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
2719
+ ...this.options.interpolation.defaultVariables,
2720
+ ...r
2721
+ }), !n) {
2722
+ r = { ...r };
2723
+ for (let e of t) delete r[e];
2724
+ }
2725
+ return r;
2726
+ }
2727
+ static hasDefaultValue(e) {
2728
+ for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.startsWith("defaultValue") && e[t] !== void 0) return !0;
2729
+ return !1;
2730
+ }
2731
+ }, Wn = class {
2732
+ constructor(e) {
2733
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
2734
+ }
2735
+ getScriptPartFromCode(e) {
2736
+ if (e = Pn(e), !e || !e.includes("-")) return null;
2737
+ let t = e.split("-");
2738
+ return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2739
+ }
2740
+ getLanguagePartFromCode(e) {
2741
+ if (e = Pn(e), !e || !e.includes("-")) return e;
2742
+ let t = e.split("-");
2743
+ return this.formatLanguageCode(t[0]);
2744
+ }
2745
+ formatLanguageCode(e) {
2746
+ if (X(e) && e.includes("-")) {
2747
+ let t;
2748
+ try {
2749
+ t = Intl.getCanonicalLocales(e)[0];
2750
+ } catch {}
2751
+ return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
2752
+ }
2753
+ return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
2754
+ }
2755
+ isSupportedCode(e) {
2756
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.includes(e);
2757
+ }
2758
+ getBestMatchFromCodes(e) {
2759
+ if (!e) return null;
2760
+ let t;
2761
+ return e.forEach((e) => {
2762
+ if (t) return;
2763
+ let n = this.formatLanguageCode(e);
2764
+ (!this.options.supportedLngs || this.isSupportedCode(n)) && (t = n);
2765
+ }), !t && this.options.supportedLngs && e.forEach((e) => {
2766
+ if (t) return;
2767
+ let n = this.getScriptPartFromCode(e);
2768
+ if (this.isSupportedCode(n)) return t = n;
2769
+ let r = this.getLanguagePartFromCode(e);
2770
+ if (this.isSupportedCode(r)) return t = r;
2771
+ t = this.options.supportedLngs.find((e) => e === r ? !0 : !e.includes("-") && !r.includes("-") ? !1 : !!(e.includes("-") && !r.includes("-") && e.slice(0, e.indexOf("-")) === r || e.startsWith(r) && r.length > 1));
2772
+ }), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t;
2773
+ }
2774
+ getFallbackCodes(e, t) {
2775
+ if (!e) return [];
2776
+ if (typeof e == "function" && (e = e(t)), X(e) && (e = [e]), Array.isArray(e)) return e;
2777
+ if (!t) return e.default || [];
2778
+ let n = e[t];
2779
+ return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
2780
+ }
2781
+ toResolveHierarchy(e, t) {
2782
+ let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
2783
+ e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
2784
+ };
2785
+ return X(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : X(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
2786
+ r.includes(e) || i(this.formatLanguageCode(e));
2787
+ }), r;
2788
+ }
2789
+ }, Gn = {
2790
+ zero: 0,
2791
+ one: 1,
2792
+ two: 2,
2793
+ few: 3,
2794
+ many: 4,
2795
+ other: 5
2796
+ }, Kn = {
2797
+ select: (e) => e === 1 ? "one" : "other",
2798
+ resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
2799
+ }, qn = class {
2800
+ constructor(e, t = {}) {
2801
+ this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
2802
+ }
2803
+ clearCache() {
2804
+ this.pluralRulesCache = {};
2805
+ }
2806
+ getRule(e, t = {}) {
2807
+ let n = Pn(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
2808
+ cleanedCode: n,
2809
+ type: r
2810
+ });
2811
+ if (i in this.pluralRulesCache) return this.pluralRulesCache[i];
2812
+ let a;
2813
+ try {
2814
+ a = new Intl.PluralRules(n, { type: r });
2815
+ } catch {
2816
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Kn;
2817
+ if (!e.match(/-|_/)) return Kn;
2818
+ let n = this.languageUtils.getLanguagePartFromCode(e);
2819
+ a = this.getRule(n, t);
2820
+ }
2821
+ return this.pluralRulesCache[i] = a, a;
2822
+ }
2823
+ needsPlural(e, t = {}) {
2824
+ let n = this.getRule(e, t);
2825
+ return n ||= this.getRule("dev", t), n?.resolvedOptions().pluralCategories.length > 1;
2826
+ }
2827
+ getPluralFormsOfKey(e, t, n = {}) {
2828
+ return this.getSuffixes(e, n).map((e) => `${t}${e}`);
2829
+ }
2830
+ getSuffixes(e, t = {}) {
2831
+ let n = this.getRule(e, t);
2832
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Gn[e] - Gn[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
2833
+ }
2834
+ getSuffix(e, t, n = {}) {
2835
+ let r = this.getRule(e, n);
2836
+ return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
2837
+ }
2838
+ }, Jn = (e, t, n, r = ".", i = !0) => {
2839
+ let a = Tn(e, t, n);
2840
+ return !a && i && X(n) && (a = Nn(e, n, r), a === void 0 && (a = Nn(t, n, r))), a;
2841
+ }, Yn = (e) => e.replace(/\$/g, "$$$$"), Xn = class {
2842
+ constructor(e = {}) {
2843
+ this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
2844
+ }
2845
+ init(e = {}) {
2846
+ e.interpolation ||= { escapeValue: !0 };
2847
+ let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
2848
+ this.escape = t === void 0 ? On : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? Z(i) : a || "{{", this.suffix = o ? Z(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u ? Z(u) : "-", this.unescapeSuffix = this.unescapePrefix ? "" : l ? Z(l) : "", this.nestingPrefix = d ? Z(d) : f || Z("$t("), this.nestingSuffix = p ? Z(p) : m || Z(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
2849
+ }
2850
+ reset() {
2851
+ this.options && this.init(this.options);
2852
+ }
2853
+ resetRegExp() {
2854
+ let e = (e, t) => e?.source === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
2855
+ this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
2856
+ }
2857
+ interpolate(e, t, n, r) {
2858
+ let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
2859
+ if (!e.includes(this.formatSeparator)) {
2860
+ let i = Jn(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
2861
+ return this.alwaysFormat ? this.format(i, void 0, n, {
2862
+ ...r,
2863
+ ...t,
2864
+ interpolationkey: e
2865
+ }) : i;
2866
+ }
2867
+ let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
2868
+ return this.format(Jn(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
2869
+ ...r,
2870
+ ...t,
2871
+ interpolationkey: a
2872
+ });
2873
+ };
2874
+ this.resetRegExp(), !this.escapeValue && typeof e == "string" && /\$t\([^)]*\{[^}]*\{\{/.test(e) && this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");
2875
+ let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
2876
+ return [{
2877
+ regex: this.regexpUnescape,
2878
+ safeValue: (e) => Yn(e)
2879
+ }, {
2880
+ regex: this.regexp,
2881
+ safeValue: (e) => this.escapeValue ? Yn(this.escape(e)) : Yn(e)
2882
+ }].forEach((t) => {
2883
+ for (o = 0; i = t.regex.exec(e);) {
2884
+ let n = i[1].trim();
2885
+ if (a = c(n), a === void 0) if (typeof l == "function") {
2886
+ let t = l(e, i, r);
2887
+ a = X(t) ? t : "";
2888
+ } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
2889
+ else if (u) {
2890
+ a = i[0];
2891
+ continue;
2892
+ } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
2893
+ else !X(a) && !this.useRawValueToEscape && (a = gn(a));
2894
+ let s = t.safeValue(a);
2895
+ if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
2896
+ }
2897
+ }), e;
2898
+ }
2899
+ nest(e, t, n = {}) {
2900
+ let r, i, a, o = (e, t) => {
2901
+ let n = this.nestingOptionsSeparator;
2902
+ if (!e.includes(n)) return e;
2903
+ let r = e.split(RegExp(`${Z(n)}[ ]*{`)), i = `{${r[1]}`;
2904
+ e = r[0], i = this.interpolate(i, a);
2905
+ let o = i.match(/'/g), s = i.match(/"/g);
2906
+ ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
2907
+ try {
2908
+ a = JSON.parse(i), t && (a = {
2909
+ ...t,
2910
+ ...a
2911
+ });
2912
+ } catch (t) {
2913
+ return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
2914
+ }
2915
+ return a.defaultValue && a.defaultValue.includes(this.prefix) && delete a.defaultValue, e;
2916
+ };
2917
+ for (; r = this.nestingRegexp.exec(e);) {
2918
+ let s = [];
2919
+ a = { ...n }, a = a.replace && !X(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
2920
+ let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
2921
+ if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !X(i)) return i;
2922
+ X(i) || (i = gn(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
2923
+ ...n,
2924
+ interpolationkey: r[1].trim()
2925
+ }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
2926
+ }
2927
+ return e;
2928
+ }
2929
+ }, Zn = (e) => {
2930
+ let t = e.toLowerCase().trim(), n = {};
2931
+ if (e.includes("(")) {
2932
+ let r = e.split("(");
2933
+ t = r[0].toLowerCase().trim();
2934
+ let i = r[1].slice(0, -1);
2935
+ t === "currency" && !i.includes(":") ? n.currency ||= i.trim() : t === "relativetime" && !i.includes(":") ? n.range ||= i.trim() : i.split(";").forEach((e) => {
2936
+ if (e) {
2937
+ let [t, ...r] = e.split(":"), i = r.join(":").trim().replace(/^'+|'+$/g, ""), a = t.trim();
2938
+ n[a] || (n[a] = i), i === "false" && (n[a] = !1), i === "true" && (n[a] = !0), isNaN(i) || (n[a] = parseInt(i, 10));
2939
+ }
2940
+ });
2941
+ }
2942
+ return {
2943
+ formatName: t,
2944
+ formatOptions: n
2945
+ };
2946
+ }, Qn = (e) => {
2947
+ let t = {};
2948
+ return (n, r, i) => {
2949
+ let a = i;
2950
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (a = {
2951
+ ...a,
2952
+ [i.interpolationkey]: void 0
2953
+ });
2954
+ let o = r + JSON.stringify(a), s = t[o];
2955
+ return s || (s = e(Pn(r), i), t[o] = s), s(n);
2956
+ };
2957
+ }, $n = (e) => (t, n, r) => e(Pn(n), r)(t), er = class {
2958
+ constructor(e = {}) {
2959
+ this.logger = Q.create("formatter"), this.options = e, this.init(e);
2960
+ }
2961
+ init(e, t = { interpolation: {} }) {
2962
+ this.formatSeparator = t.interpolation.formatSeparator || ",";
2963
+ let n = t.cacheInBuiltFormats ? Qn : $n;
2964
+ this.formats = {
2965
+ number: n((e, t) => {
2966
+ let n = new Intl.NumberFormat(e, { ...t });
2967
+ return (e) => n.format(e);
2968
+ }),
2969
+ currency: n((e, t) => {
2970
+ let n = new Intl.NumberFormat(e, {
2971
+ ...t,
2972
+ style: "currency"
2973
+ });
2974
+ return (e) => n.format(e);
2975
+ }),
2976
+ datetime: n((e, t) => {
2977
+ let n = new Intl.DateTimeFormat(e, { ...t });
2978
+ return (e) => n.format(e);
2979
+ }),
2980
+ relativetime: n((e, t) => {
2981
+ let n = new Intl.RelativeTimeFormat(e, { ...t });
2982
+ return (e) => n.format(e, t.range || "day");
2983
+ }),
2984
+ list: n((e, t) => {
2985
+ let n = new Intl.ListFormat(e, { ...t });
2986
+ return (e) => n.format(e);
2987
+ })
2988
+ };
2989
+ }
2990
+ add(e, t) {
2991
+ this.formats[e.toLowerCase().trim()] = t;
2992
+ }
2993
+ addCached(e, t) {
2994
+ this.formats[e.toLowerCase().trim()] = Qn(t);
2995
+ }
2996
+ format(e, t, n, r = {}) {
2997
+ if (!t || e == null) return e;
2998
+ let i = t.split(this.formatSeparator);
2999
+ if (i.length > 1 && i[0].indexOf("(") > 1 && !i[0].includes(")") && i.find((e) => e.includes(")"))) {
3000
+ let e = i.findIndex((e) => e.includes(")"));
3001
+ i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3002
+ }
3003
+ return i.reduce((e, t) => {
3004
+ let { formatName: i, formatOptions: a } = Zn(t);
3005
+ if (this.formats[i]) {
3006
+ let t = e;
3007
+ try {
3008
+ let o = r?.formatParams?.[r.interpolationkey] || {}, s = o.locale || o.lng || r.locale || r.lng || n;
3009
+ t = this.formats[i](e, s, {
3010
+ ...a,
3011
+ ...r,
3012
+ ...o
3013
+ });
3014
+ } catch (e) {
3015
+ this.logger.warn(e);
3016
+ }
3017
+ return t;
3018
+ } else this.logger.warn(`there was no format function for ${i}`);
3019
+ return e;
3020
+ }, e);
3021
+ }
3022
+ }, tr = (e, t) => {
3023
+ e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3024
+ }, nr = class extends In {
3025
+ constructor(e, t, n, r = {}) {
3026
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
3027
+ }
3028
+ queueLoad(e, t, n, r) {
3029
+ let i = {}, a = {}, o = {}, s = {};
3030
+ return e.forEach((e) => {
3031
+ let r = !0;
3032
+ t.forEach((t) => {
3033
+ let o = `${e}|${t}`;
3034
+ !n.reload && this.store.hasResourceBundle(e, t) ? this.state[o] = 2 : this.state[o] < 0 || (this.state[o] === 1 ? a[o] === void 0 && (a[o] = !0) : (this.state[o] = 1, r = !1, a[o] === void 0 && (a[o] = !0), i[o] === void 0 && (i[o] = !0), s[t] === void 0 && (s[t] = !0)));
3035
+ }), r || (o[e] = !0);
3036
+ }), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
3037
+ pending: a,
3038
+ pendingCount: Object.keys(a).length,
3039
+ loaded: {},
3040
+ errors: [],
3041
+ callback: r
3042
+ }), {
3043
+ toLoad: Object.keys(i),
3044
+ pending: Object.keys(a),
3045
+ toLoadLanguages: Object.keys(o),
3046
+ toLoadNamespaces: Object.keys(s)
3047
+ };
3048
+ }
3049
+ loaded(e, t, n) {
3050
+ let r = e.split("|"), i = r[0], a = r[1];
3051
+ t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3052
+ let o = {};
3053
+ this.queue.forEach((n) => {
3054
+ Cn(n.loaded, [i], a), tr(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3055
+ o[e] || (o[e] = {});
3056
+ let t = n.loaded[e];
3057
+ t.length && t.forEach((t) => {
3058
+ o[e][t] === void 0 && (o[e][t] = !0);
3059
+ });
3060
+ }), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
3061
+ }), this.emit("loaded", o), this.queue = this.queue.filter((e) => !e.done);
3062
+ }
3063
+ read(e, t, n, r = 0, i = this.retryTimeout, a) {
3064
+ if (!e.length) return a(null, {});
3065
+ if (this.readingCalls >= this.maxParallelReads) {
3066
+ this.waitingReads.push({
3067
+ lng: e,
3068
+ ns: t,
3069
+ fcName: n,
3070
+ tried: r,
3071
+ wait: i,
3072
+ callback: a
3073
+ });
3074
+ return;
3075
+ }
3076
+ this.readingCalls++;
3077
+ let o = (o, s) => {
3078
+ if (this.readingCalls--, this.waitingReads.length > 0) {
3079
+ let e = this.waitingReads.shift();
3080
+ this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
3081
+ }
3082
+ if (o && s && r < this.maxRetries) {
3083
+ setTimeout(() => {
3084
+ this.read(e, t, n, r + 1, i * 2, a);
3085
+ }, i);
3086
+ return;
3087
+ }
3088
+ a(o, s);
3089
+ }, s = this.backend[n].bind(this.backend);
3090
+ if (s.length === 2) {
3091
+ try {
3092
+ let n = s(e, t);
3093
+ n && typeof n.then == "function" ? n.then((e) => o(null, e)).catch(o) : o(null, n);
3094
+ } catch (e) {
3095
+ o(e);
3096
+ }
3097
+ return;
3098
+ }
3099
+ return s(e, t, o);
3100
+ }
3101
+ prepareLoading(e, t, n = {}, r) {
3102
+ if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
3103
+ X(e) && (e = this.languageUtils.toResolveHierarchy(e)), X(t) && (t = [t]);
3104
+ let i = this.queueLoad(e, t, n, r);
3105
+ if (!i.toLoad.length) return i.pending.length || r(), null;
3106
+ i.toLoad.forEach((e) => {
3107
+ this.loadOne(e);
3108
+ });
3109
+ }
3110
+ load(e, t, n) {
3111
+ this.prepareLoading(e, t, {}, n);
3112
+ }
3113
+ reload(e, t, n) {
3114
+ this.prepareLoading(e, t, { reload: !0 }, n);
3115
+ }
3116
+ loadOne(e, t = "") {
3117
+ let n = e.split("|"), r = n[0], i = n[1];
3118
+ this.read(r, i, "read", void 0, void 0, (n, a) => {
3119
+ n && this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`, n), !n && a && this.logger.log(`${t}loaded namespace ${i} for language ${r}`, a), this.loaded(e, n, a);
3120
+ });
3121
+ }
3122
+ saveMissing(e, t, n, r, i, a = {}, o = () => {}) {
3123
+ if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(t)) {
3124
+ this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
3125
+ return;
3126
+ }
3127
+ if (!(n == null || n === "")) {
3128
+ if (this.backend?.create) {
3129
+ let s = {
3130
+ ...a,
3131
+ isUpdate: i
3132
+ }, c = this.backend.create.bind(this.backend);
3133
+ if (c.length < 6) try {
3134
+ let i;
3135
+ i = c.length === 5 ? c(e, t, n, r, s) : c(e, t, n, r), i && typeof i.then == "function" ? i.then((e) => o(null, e)).catch(o) : o(null, i);
3136
+ } catch (e) {
3137
+ o(e);
3138
+ }
3139
+ else c(e, t, n, r, o, s);
3140
+ }
3141
+ !e || !e[0] || this.store.addResource(e[0], t, n, r);
3142
+ }
3143
+ }
3144
+ }, rr = () => ({
3145
+ debug: !1,
3146
+ initAsync: !0,
3147
+ ns: ["translation"],
3148
+ defaultNS: ["translation"],
3149
+ fallbackLng: ["dev"],
3150
+ fallbackNS: !1,
3151
+ supportedLngs: !1,
3152
+ nonExplicitSupportedLngs: !1,
3153
+ load: "all",
3154
+ preload: !1,
3155
+ keySeparator: ".",
3156
+ nsSeparator: ":",
3157
+ pluralSeparator: "_",
3158
+ contextSeparator: "_",
3159
+ enableSelector: !1,
3160
+ partialBundledLanguages: !1,
3161
+ saveMissing: !1,
3162
+ updateMissing: !1,
3163
+ saveMissingTo: "fallback",
3164
+ saveMissingPlurals: !0,
3165
+ missingKeyHandler: !1,
3166
+ missingInterpolationHandler: !1,
3167
+ postProcess: !1,
3168
+ postProcessPassResolved: !1,
3169
+ returnNull: !1,
3170
+ returnEmptyString: !0,
3171
+ returnObjects: !1,
3172
+ joinArrays: !1,
3173
+ returnedObjectHandler: !1,
3174
+ parseMissingKeyHandler: !1,
3175
+ appendNamespaceToMissingKey: !1,
3176
+ appendNamespaceToCIMode: !1,
3177
+ overloadTranslationOptionHandler: (e) => {
3178
+ let t = {};
3179
+ if (typeof e[1] == "object" && (t = e[1]), X(e[1]) && (t.defaultValue = e[1]), X(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
3180
+ let n = e[3] || e[2];
3181
+ Object.keys(n).forEach((e) => {
3182
+ t[e] = n[e];
3183
+ });
3184
+ }
3185
+ return t;
3186
+ },
3187
+ interpolation: {
3188
+ escapeValue: !0,
3189
+ prefix: "{{",
3190
+ suffix: "}}",
3191
+ formatSeparator: ",",
3192
+ unescapePrefix: "-",
3193
+ nestingPrefix: "$t(",
3194
+ nestingSuffix: ")",
3195
+ nestingOptionsSeparator: ",",
3196
+ maxReplaces: 1e3,
3197
+ skipOnVariables: !0
3198
+ },
3199
+ cacheInBuiltFormats: !0
3200
+ }), ir = (e) => (X(e.ns) && (e.ns = [e.ns]), X(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), X(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && !e.supportedLngs.includes("cimode") && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), ar = () => {}, or = (e) => {
3201
+ Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3202
+ typeof e[t] == "function" && (e[t] = e[t].bind(e));
3203
+ });
3204
+ }, $ = class e extends In {
3205
+ constructor(e = {}, t) {
3206
+ if (super(), this.options = ir(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, or(this), t && !this.isInitialized && !e.isClone) {
3207
+ if (!this.options.initAsync) return this.init(e, t), this;
3208
+ setTimeout(() => {
3209
+ this.init(e, t);
3210
+ }, 0);
3211
+ }
3212
+ }
3213
+ init(e = {}, t) {
3214
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (X(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
3215
+ let n = rr();
3216
+ this.options = {
3217
+ ...n,
3218
+ ...this.options,
3219
+ ...ir(e)
3220
+ }, this.options.interpolation = {
3221
+ ...n.interpolation,
3222
+ ...this.options.interpolation
3223
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler);
3224
+ let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3225
+ if (!this.options.isClone) {
3226
+ this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3227
+ let e;
3228
+ e = this.modules.formatter ? this.modules.formatter : er;
3229
+ let t = new Wn(this.options);
3230
+ this.store = new Ln(this.options.resources, this.options);
3231
+ let n = this.services;
3232
+ n.logger = Q, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new qn(t, { prepend: this.options.pluralSeparator }), e && (n.formatter = r(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new Xn(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new nr(r(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
3233
+ this.emit(e, ...t);
3234
+ }), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new Un(this.services, this.options), this.translator.on("*", (e, ...t) => {
3235
+ this.emit(e, ...t);
3236
+ }), this.modules.external.forEach((e) => {
3237
+ e.init && e.init(this);
3238
+ });
3239
+ }
3240
+ if (this.format = this.options.interpolation.format, t ||= ar, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3241
+ let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3242
+ e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3243
+ }
3244
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), [
3245
+ "getResource",
3246
+ "hasResourceBundle",
3247
+ "getResourceBundle",
3248
+ "getDataByLanguage"
3249
+ ].forEach((e) => {
3250
+ this[e] = (...t) => this.store[e](...t);
3251
+ }), [
3252
+ "addResource",
3253
+ "addResources",
3254
+ "addResourceBundle",
3255
+ "removeResourceBundle"
3256
+ ].forEach((e) => {
3257
+ this[e] = (...t) => (this.store[e](...t), this);
3258
+ });
3259
+ let i = hn(), a = () => {
3260
+ let e = (e, n) => {
3261
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
3262
+ };
3263
+ if ((this.languages || this.isLanguageChangingTo) && !this.isInitialized) return e(null, this.t.bind(this));
3264
+ this.changeLanguage(this.options.lng, e);
3265
+ };
3266
+ return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3267
+ }
3268
+ loadResources(e, t = ar) {
3269
+ let n = t, r = X(e) ? e : this.language;
3270
+ if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3271
+ if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3272
+ let e = [], t = (t) => {
3273
+ t && t !== "cimode" && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
3274
+ t !== "cimode" && (e.includes(t) || e.push(t));
3275
+ });
3276
+ };
3277
+ r ? t(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e) => t(e)), this.options.preload?.forEach?.((e) => t(e)), this.services.backendConnector.load(e, this.options.ns, (e) => {
3278
+ !e && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(e);
3279
+ });
3280
+ } else n(null);
3281
+ }
3282
+ reloadResources(e, t, n) {
3283
+ let r = hn();
3284
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= ar, this.services.backendConnector.reload(e, t, (e) => {
3285
+ r.resolve(), n(e);
3286
+ }), r;
3287
+ }
3288
+ use(e) {
3289
+ if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3290
+ if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3291
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Rn.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3292
+ }
3293
+ setResolvedLanguage(e) {
3294
+ if (!(!e || !this.languages) && !["cimode", "dev"].includes(e)) {
3295
+ for (let e = 0; e < this.languages.length; e++) {
3296
+ let t = this.languages[e];
3297
+ if (!["cimode", "dev"].includes(t) && this.store.hasLanguageSomeTranslations(t)) {
3298
+ this.resolvedLanguage = t;
3299
+ break;
3300
+ }
3301
+ }
3302
+ !this.resolvedLanguage && !this.languages.includes(e) && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
3303
+ }
3304
+ }
3305
+ changeLanguage(e, t) {
3306
+ this.isLanguageChangingTo = e;
3307
+ let n = hn();
3308
+ this.emit("languageChanging", e);
3309
+ let r = (e) => {
3310
+ this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
3311
+ }, i = (i, a) => {
3312
+ a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
3313
+ }, a = (t) => {
3314
+ !e && !t && this.services.languageDetector && (t = []);
3315
+ let n = X(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(X(t) ? [t] : t);
3316
+ a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
3317
+ i(e, a);
3318
+ });
3319
+ };
3320
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
3321
+ }
3322
+ getFixedT(e, t, n, r) {
3323
+ let i = r?.scopeNs, a = (e, t, ...r) => {
3324
+ let o;
3325
+ o = typeof t == "object" ? { ...t } : this.options.overloadTranslationOptionHandler([e, t].concat(r)), o.lng = o.lng || a.lng, o.lngs = o.lngs || a.lngs;
3326
+ let s = o.ns !== void 0 && o.ns !== null;
3327
+ o.ns = o.ns || a.ns, o.keyPrefix !== "" && (o.keyPrefix = o.keyPrefix || n || a.keyPrefix);
3328
+ let c = {
3329
+ ...this.options,
3330
+ ...o
3331
+ };
3332
+ Array.isArray(i) && !s && (c.ns = i), typeof o.keyPrefix == "function" && (o.keyPrefix = Vn(o.keyPrefix, c));
3333
+ let l = this.options.keySeparator || ".", u;
3334
+ return o.keyPrefix && Array.isArray(e) ? u = e.map((e) => (typeof e == "function" && (e = Vn(e, c)), `${o.keyPrefix}${l}${e}`)) : (typeof e == "function" && (e = Vn(e, c)), u = o.keyPrefix ? `${o.keyPrefix}${l}${e}` : e), this.t(u, o);
3335
+ };
3336
+ return X(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
3337
+ }
3338
+ t(...e) {
3339
+ return this.translator?.translate(...e);
3340
+ }
3341
+ exists(...e) {
3342
+ return this.translator?.exists(...e);
3343
+ }
3344
+ setDefaultNamespace(e) {
3345
+ this.options.defaultNS = e;
3346
+ }
3347
+ hasLoadedNamespace(e, t = {}) {
3348
+ if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
3349
+ if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3350
+ let n = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
3351
+ if (n.toLowerCase() === "cimode") return !0;
3352
+ let a = (e, t) => {
3353
+ let n = this.services.backendConnector.state[`${e}|${t}`];
3354
+ return n === -1 || n === 0 || n === 2;
3355
+ };
3356
+ if (t.precheck) {
3357
+ let e = t.precheck(this, a);
3358
+ if (e !== void 0) return e;
3359
+ }
3360
+ return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3361
+ }
3362
+ loadNamespaces(e, t) {
3363
+ let n = hn();
3364
+ return this.options.ns ? (X(e) && (e = [e]), e.forEach((e) => {
3365
+ this.options.ns.includes(e) || this.options.ns.push(e);
3366
+ }), this.loadResources((e) => {
3367
+ n.resolve(), t && t(e);
3368
+ }), n) : (t && t(), Promise.resolve());
3369
+ }
3370
+ loadLanguages(e, t) {
3371
+ let n = hn();
3372
+ X(e) && (e = [e]);
3373
+ let r = this.options.preload || [], i = e.filter((e) => !r.includes(e) && this.services.languageUtils.isSupportedCode(e));
3374
+ return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
3375
+ n.resolve(), t && t(e);
3376
+ }), n) : (t && t(), Promise.resolve());
3377
+ }
3378
+ dir(e) {
3379
+ if (e ||= this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
3380
+ try {
3381
+ let t = new Intl.Locale(e);
3382
+ if (t && t.getTextInfo) {
3383
+ let e = t.getTextInfo();
3384
+ if (e && e.direction) return e.direction;
3385
+ }
3386
+ } catch {}
3387
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Wn(rr());
3388
+ return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.includes(n.getLanguagePartFromCode(e)) || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3389
+ }
3390
+ static createInstance(t = {}, n) {
3391
+ let r = new e(t, n);
3392
+ return r.createInstance = e.createInstance, r;
3393
+ }
3394
+ cloneInstance(t = {}, n = ar) {
3395
+ let r = t.forkResourceStore;
3396
+ r && delete t.forkResourceStore;
3397
+ let i = {
3398
+ ...this.options,
3399
+ ...t,
3400
+ isClone: !0
3401
+ }, a = new e(i);
3402
+ if ((t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), [
3403
+ "store",
3404
+ "services",
3405
+ "language"
3406
+ ].forEach((e) => {
3407
+ a[e] = this[e];
3408
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Ln(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3409
+ let e = {
3410
+ ...rr().interpolation,
3411
+ ...this.options.interpolation,
3412
+ ...t.interpolation
3413
+ }, n = {
3414
+ ...i,
3415
+ interpolation: e
3416
+ };
3417
+ a.services.interpolator = new Xn(n);
3418
+ }
3419
+ return a.translator = new Un(a.services, i), a.translator.on("*", (e, ...t) => {
3420
+ a.emit(e, ...t);
3421
+ }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3422
+ }
3423
+ toJSON() {
3424
+ return {
3425
+ options: this.options,
3426
+ store: this.store,
3427
+ language: this.language,
3428
+ languages: this.languages,
3429
+ resolvedLanguage: this.resolvedLanguage
3430
+ };
3431
+ }
3432
+ }.createInstance();
3433
+ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.changeLanguage, $.getFixedT, $.t, $.exists, $.setDefaultNamespace, $.hasLoadedNamespace, $.loadNamespaces, $.loadLanguages;
3434
+ var sr = {
3435
+ Date: {
3436
+ NextDay: "Giorno Successivo",
3437
+ NextMonth: "Mese Successivo",
3438
+ NextWeek: "Settimana Successiva",
3439
+ NextYear: "Anno Successivo",
3440
+ PreviousDay: "Giorno Precedente",
3441
+ PreviousMonth: "Mese Precedente",
3442
+ PreviousWeek: "Settimana Precedente",
3443
+ PreviousYear: "Anno Precedente",
3444
+ Today: "Oggi",
3445
+ Tomorrow: "Domani",
3446
+ Yesterday: "Ieri"
3447
+ },
3448
+ Day: {
3449
+ Friday: "Venerdì",
3450
+ FridayShort: "Ven",
3451
+ Monday: "Lunedì",
3452
+ MondayShort: "Lun",
3453
+ Saturday: "Sabato",
3454
+ SaturdayShort: "Sab",
3455
+ Sunday: "Domenica",
3456
+ SundayShort: "Dom",
3457
+ Tuesday: "Martedì",
3458
+ TuesdayShort: "Mar",
3459
+ Thursday: "Giovedì",
3460
+ ThursdayShort: "Gio",
3461
+ Wednesday: "Mercoledì",
3462
+ WednesdayShort: "Mer"
3463
+ },
3464
+ Month: {
3465
+ April: "Aprile",
3466
+ August: "Agosto",
3467
+ December: "Dicembre",
3468
+ February: "Febbraio",
3469
+ January: "Gennaio",
3470
+ June: "Giugno",
3471
+ July: "Luglio",
3472
+ March: "Marzo",
3473
+ May: "Maggio",
3474
+ October: "Ottobre",
3475
+ November: "Novembre",
3476
+ September: "Settembre"
3477
+ },
3478
+ FilterBuilder: {
3479
+ AddSubGroup: "Aggiungi sottogruppo",
3480
+ AddFilter: "Aggiungi Filtro",
3481
+ Operator: {
3482
+ String: {
3483
+ Starts: "Inizia per",
3484
+ Contains: "Contiene",
3485
+ Equals: "È uguale a"
3486
+ },
3487
+ Number: {
3488
+ Greater: "Maggiore di",
3489
+ GreaterOrEqual: "Maggiore o uguale a",
3490
+ Less: "Minore di",
3491
+ LessOrEqual: "Minore o uguale a",
3492
+ Equals: "Uguale a",
3493
+ NotEquals: "Diverso da"
3494
+ },
3495
+ Date: {
3496
+ Before: "Prima del",
3497
+ After: "Dopo del",
3498
+ On: "Il giorno"
3499
+ }
3500
+ }
3501
+ },
3502
+ FileUpload: {
3503
+ SelectFiles: "Scegli",
3504
+ DropAreaLabel: "Trascina i file qua oppure clicca sul bottone",
3505
+ Upload: "Carica",
3506
+ Cancel: "Annulla",
3507
+ Retry: "Riprova",
3508
+ FileTooLarge: "Dimensione del file non consentita"
3509
+ },
3510
+ Generic: {
3511
+ CalendarFor: "Calendario per",
3512
+ Close: "Chiudi",
3513
+ Apply: "Applica",
3514
+ Remove: "Rimuovi",
3515
+ Back: "Indietro",
3516
+ SpotlightDefaultPlaceholder: "Esegui Comando",
3517
+ CheckObjectWrongValidation: "Oggetto non valido",
3518
+ ConfirmButton: "Conferma",
3519
+ ResetButton: "Reset",
3520
+ DeleteButton: "Elimina",
3521
+ ErrorsInHiddenFields: "Ci sono errori nei campi modificati",
3522
+ AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione",
3523
+ ChipsInputDefaultPlaceholder: "Inserisci il valore e premi invio",
3524
+ NotificationWidgetNoMessages: "Nessuna notifica",
3525
+ NotificationWidgetDismissAll: "Cancella tutto",
3526
+ ShapeNotSupportedYet: "Forma grafica non ancora supportata: ",
3527
+ ListSearchPlaceholder: "Cerca...",
3528
+ DataNotFound: "Dati non trovati"
3529
+ },
3530
+ Notification: {
3531
+ DismissAll: "Cancella tutto",
3532
+ NoActive: "Nessuna notifica attiva"
3533
+ },
3534
+ TextEditor: {
3535
+ Bold: "Grassetto (Ctrl-B)",
3536
+ Italic: "Corsivo (Ctrl-I)",
3537
+ Underline: "Sottolineato (Ctrl-U)",
3538
+ H1: "Titolo principale",
3539
+ H2: "Titolo secondario",
3540
+ Text: "Testo",
3541
+ CodeBlock: "Blocco di codice",
3542
+ Link: "Link",
3543
+ ListOrdered: "Lista ordinata",
3544
+ ListBullet: "Lista puntata",
3545
+ SmeupLink: "Smeup link",
3546
+ SmeupLinkObject: "Oggetto",
3547
+ SmeupLinkFunction: "Funzione",
3548
+ SmeupLinkT: "Tipo",
3549
+ SmeupLinkP: "Parametro",
3550
+ SmeupLinkK: "Codice",
3551
+ SmeupLinkFUN: "FUN"
3552
+ },
3553
+ PDF: {
3554
+ OpenInNew: "Apri il file PDF in un nuovo tab",
3555
+ Download: "Scarica il file PDF",
3556
+ Print: "Stampa il file PDF",
3557
+ Missing: "File PDF mancante",
3558
+ Error: "Errore durante il caricamento del file PDF"
3559
+ },
3560
+ Htm: { OpenInNew: "Apri il link in un nuovo tab" },
3561
+ ActionList: {
3562
+ EscHint: "Chiudere",
3563
+ NoActions: "Nessuna azione disponibile",
3564
+ Up: "Sposta su",
3565
+ Down: "Sposta giù",
3566
+ Select: "Seleziona",
3567
+ Back: "Indietro"
3568
+ },
3569
+ Barcode: {
3570
+ UnsupportedFormat: "Formato assente o non supportato: '{{0}}'",
3571
+ Code39InvalidChar: "Formato Code39: Carattere non valido '{{0}}'",
3572
+ CodabarInvalidChar: "Formato Codabar: Carattere non valido '{{0}}'",
3573
+ EAN8Digits: "Formato EAN8: Ammessi codici numerici da 7 a 8 caratteri",
3574
+ EAN13Digits: "Formato EAN13: Ammessi codici numerici da 12 a 13 caratteri",
3575
+ Code128BInvalidChar: "Formato Code128B: Carattere ASCII non valido '{{0}}'",
3576
+ ITFNumericData: "Formato ITF (int2of5): Ammessi solo dati numerici",
3577
+ PostnetNumericData: "Formato Postnet: Ammessi solo dati numerici",
3578
+ PostnetDigits: "Formato Postnet: Ammessi numeri a 5, 9 o 11 cifre",
3579
+ ISBNDigits: "Formato ISBM: Ammessi numeri a 13 cifre che iniziano per 978 o 979"
3580
+ }
3581
+ }, cr = {
3582
+ Date: {
3583
+ NextDay: "Next Day",
3584
+ NextMonth: "Next Month",
3585
+ NextWeek: "Next Week",
3586
+ NextYear: "Next Year",
3587
+ PreviousDay: "Previous Day",
3588
+ PreviousMonth: "Previous Month",
3589
+ PreviousWeek: "Previous Week",
3590
+ PreviousYear: "Previous Year",
3591
+ Today: "Today",
3592
+ Tomorrow: "Tomorrow",
3593
+ Yesterday: "Yesterday"
3594
+ },
3595
+ Day: {
3596
+ Friday: "Friday",
3597
+ FridayShort: "Fri",
3598
+ Monday: "Monday",
3599
+ MondayShort: "Mon",
3600
+ Saturday: "Saturday",
3601
+ SaturdayShort: "Sat",
3602
+ Sunday: "Sunday",
3603
+ SundayShort: "Sun",
3604
+ Tuesday: "Tuesday",
3605
+ TuesdayShort: "Tue",
3606
+ Thursday: "Thursday",
3607
+ ThursdayShort: "Thu",
3608
+ Wednesday: "Wednesday",
3609
+ WednesdayShort: "Wed"
3610
+ },
3611
+ Month: {
3612
+ April: "April",
3613
+ August: "August",
3614
+ December: "December",
3615
+ February: "February",
3616
+ January: "January",
3617
+ July: "July",
3618
+ June: "June",
3619
+ March: "March",
3620
+ May: "May",
3621
+ November: "November",
3622
+ October: "October",
3623
+ September: "September"
3624
+ },
3625
+ FilterBuilder: {
3626
+ AddSubGroup: "Add Sub Group",
3627
+ AddFilter: "Add Filter",
3628
+ Operator: {
3629
+ String: {
3630
+ Starts: "Starts with",
3631
+ Contains: "Contains",
3632
+ Equals: "Equal to"
3633
+ },
3634
+ Number: {
3635
+ Greater: "Greater than",
3636
+ GreaterOrEqual: "Greater or equal than",
3637
+ Less: "Less than",
3638
+ LessOrEqual: "Less or equal than",
3639
+ Equals: "Equal to",
3640
+ NotEquals: "Other than"
3641
+ },
3642
+ Date: {
3643
+ Before: "Before date",
3644
+ After: "After date",
3645
+ On: "On"
3646
+ }
3647
+ }
3648
+ },
3649
+ FileUpload: {
3650
+ SelectFiles: "Choose",
3651
+ DropAreaLabel: "Drop file here or click the button to Choose",
3652
+ Upload: "Upload",
3653
+ Cancel: "Cancel",
3654
+ Retry: "Retry",
3655
+ FileTooLarge: "File too large"
3656
+ },
3657
+ Generic: {
3658
+ CalendarFor: "Calendar for",
3659
+ Close: "Close",
3660
+ Apply: "Apply",
3661
+ Remove: "Remove",
3662
+ Back: "Back",
3663
+ SpotlightDefaultPlaceholder: "Execute Command",
3664
+ CheckObjectWrongValidation: "Object not valid",
3665
+ ConfirmButton: "Confirm",
3666
+ ResetButton: "Reset",
3667
+ DeleteButton: "Delete",
3668
+ ErrorsInHiddenFields: "There are errors in the modified fields",
3669
+ AutocompleteDefaultPlaceholder: "Type code or description",
3670
+ ChipsInputDefaultPlaceholder: "Insert value and press enter",
3671
+ NotificationWidgetNoMessages: "No notifications",
3672
+ NotificationWidgetDismissAll: "Dismiss all",
3673
+ ShapeNotSupportedYet: "Shape not supported yet: ",
3674
+ ListSearchPlaceholder: "Search...",
3675
+ DataNotFound: "Data not found"
3676
+ },
3677
+ Notification: {
3678
+ DismissAll: "Dismiss all",
3679
+ NoActive: "No active notification"
3680
+ },
3681
+ TextEditor: {
3682
+ Bold: "Bold (Ctrl-B)",
3683
+ Italic: "Italic (Ctrl-I)",
3684
+ Underline: "Underline (Ctrl-U)",
3685
+ H1: "Main title",
3686
+ H2: "Secondary title",
3687
+ Text: "Text",
3688
+ CodeBlock: "Code block",
3689
+ Link: "Link",
3690
+ ListOrdered: "List ordered",
3691
+ ListBullet: "List bullet",
3692
+ SmeupLink: "Smeup link",
3693
+ SmeupLinkObject: "Object",
3694
+ SmeupLinkFunction: "Function",
3695
+ SmeupLinkT: "Type",
3696
+ SmeupLinkP: "Parameter",
3697
+ SmeupLinkK: "Code",
3698
+ SmeupLinkFUN: "FUN"
3699
+ },
3700
+ PDF: {
3701
+ OpenInNew: "Open PDF document in a new tab",
3702
+ Download: "Download PDF document",
3703
+ Print: "Print PDF document",
3704
+ Missing: "Missing PDF document",
3705
+ Error: "Error during PDF document loading"
3706
+ },
3707
+ Htm: { OpenInNew: "Open link in new tab" },
3708
+ ActionList: {
3709
+ EscHint: "Esc to go back",
3710
+ NoActions: "No actions available",
3711
+ Up: "Move up",
3712
+ Down: "Move down",
3713
+ Select: "Select",
3714
+ Back: "Back"
3715
+ },
3716
+ Barcode: {
3717
+ UnsupportedFormat: "Missing or unsupported format: '{{0}}'",
3718
+ Code39InvalidChar: "Code39 format: Invalid char '{{0}}'",
3719
+ CodabarInvalidChar: "Codabar format: Invalid char '{{0}}'",
3720
+ EAN8Digits: "EAN8 format: Only 7 or 8 digits numeric codes are allowed",
3721
+ EAN13Digits: "EAN13 format: Only 12 or 13 digits numeric codes are allowed",
3722
+ Code128BInvalidChar: "Code128B format: Invalid ASCII char '{{0}}'",
3723
+ ITFNumericData: "ITF (int2of5) format: Only numeric codes are allowed",
3724
+ PostnetNumericData: "Postnet format: Only numeric codes are allowed",
3725
+ PostnetDigits: "Postnet format: 5, 9, or 11 digits codes allowed",
3726
+ ISBNDigits: "ISBN format: Only 13 digits long numbers starting with 978 or 979"
3727
+ }
3728
+ };
3729
+ //#endregion
3730
+ //#region src/utils/string.ts
3731
+ function lr(e, t) {
3732
+ return new RegExp(ur(e), t);
3733
+ }
3734
+ function ur(e) {
3735
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3736
+ }
3737
+ function dr(e) {
3738
+ if (!e) return {};
3739
+ let t = {}, n = "", r = "", i = 0, a = !0;
3740
+ for (let o of e) a && o !== "(" && o !== ")" ? n += o : o === "(" ? (i === 0 ? a = !1 : r += o, i++) : o === ")" ? (i === 1 ? (t[n.trim()] = r, a = !0, n = "", r = "") : r += o, i--) : r += o;
3741
+ return t;
3742
+ }
3743
+ //#endregion
3744
+ //#region src/utils/number.ts
3745
+ var fr = (e, t, n) => {
3746
+ let r = e;
3747
+ return isNaN(r) ? r : (t != null && (r = Math.max(r, t)), n != null && (r = Math.min(r, n)), r);
3748
+ }, pr = (e, t) => {
3749
+ let n = Intl.NumberFormat(e).formatToParts(1000.1);
3750
+ return {
3751
+ groupingChar: n.find((e) => e.type === "group")?.value ?? ",",
3752
+ decimalChar: t ?? n.find((e) => e.type === "decimal")?.value ?? "."
3753
+ };
3754
+ };
3755
+ function mr(e, t, n, r) {
3756
+ let i = t, a = _r(e, n);
3757
+ if (!i) {
3758
+ let e = Math.abs(a);
3759
+ i = e - Math.floor(e) ? "0,0.00" : "0,0";
3760
+ }
3761
+ let o = vr(i);
3762
+ return new Intl.NumberFormat(r, o).format(a);
3763
+ }
3764
+ function hr(e) {
3765
+ let t = e.toUpperCase(), n = "";
3766
+ return t == "P" ? n = " %" : t == "VE" ? n = " €" : t == "VL" ? n = " £" : t == "VV" && (n = " $"), n;
3767
+ }
3768
+ var gr = (e, t, n) => {
3769
+ if (!e) return NaN;
3770
+ let r = e.replace(/\s/g, ""), i = n, a = (r.match(/\./g) || []).length, o = (r.match(/,/g) || []).length;
3771
+ if (a && o) i = r.lastIndexOf(".") > r.lastIndexOf(",") ? "." : ",";
3772
+ else if (!r.includes(n)) {
3773
+ let e = r.includes(".") ? "." : ",", n = e === "." ? a : o;
3774
+ n > 1 || n === 1 && e === t && r.length - r.lastIndexOf(e) - 1 == 3 || (i = e);
3775
+ }
3776
+ let s = i === "." ? "," : ".";
3777
+ return r = r.replace(RegExp(`\\${s}`, "g"), ""), i !== "." && (r = r.replace(RegExp(`\\${i}`, "g"), ".")), parseFloat(r);
3778
+ };
3779
+ function _r(e, t, n, r, i) {
3780
+ let a = e;
3781
+ if (typeof a != "number") {
3782
+ if (n) {
3783
+ let e = hr(n);
3784
+ e != "" && (a = a.replace(lr(e, "g"), ""));
3785
+ }
3786
+ let e;
3787
+ e = t && r === void 0 ? i || "," : i || r || ".";
3788
+ let o = e == "." ? "," : ".";
3789
+ a = a.replace(lr(o, "g"), ""), r != "." && (a = a.replace(lr(e, "g"), ".")), a = Number(a);
3790
+ }
3791
+ let o = Number(a);
3792
+ return isNaN(o) ? NaN : o;
3793
+ }
3794
+ function vr(e) {
3795
+ let t = {};
3796
+ e.includes(",") ? t.useGrouping = !0 : t.useGrouping = !1;
3797
+ let n = e.indexOf(".");
3798
+ if (n > -1) {
3799
+ let r = (e.substring(n + 1).match(/0/g) || []).length;
3800
+ t.minimumFractionDigits = r, t.maximumFractionDigits = r;
3801
+ } else t.minimumFractionDigits = 0, t.maximumFractionDigits = 0;
3802
+ return t;
3803
+ }
3804
+ $.init({
3805
+ lng: typeof navigator < "u" && navigator.language.split("-")[0] || "en",
3806
+ fallbackLng: "en",
3807
+ debug: !1,
3808
+ interpolation: { escapeValue: !1 },
3809
+ resources: {
3810
+ en: { translation: cr },
3811
+ it: { translation: sr }
3812
+ }
3813
+ }), $.services.formatter?.add("date", (e, t, n) => {
3814
+ try {
3815
+ let r = e instanceof Date ? e : new Date(e), i = n?.format, a = i ? { dateStyle: i } : {
3816
+ year: "numeric",
3817
+ month: "2-digit",
3818
+ day: "2-digit"
3819
+ };
3820
+ return new Intl.DateTimeFormat(t, a).format(r);
3821
+ } catch {
3822
+ return String(e);
3823
+ }
3824
+ }), $.services.formatter?.add("number", (e, t, n) => {
3825
+ try {
3826
+ let r = n, i = r?.inputIsLocalized ?? !1;
3827
+ return mr(e, r?.format, i, t);
3828
+ } catch {
3829
+ return String(e);
3830
+ }
3831
+ });
3832
+ var yr = (e, t, n, r) => {
3833
+ let i = (r?.type ?? "number") === "date" ? "date" : "number";
3834
+ return $.format(e, i, n ?? $.language, {
3835
+ ...r,
3836
+ format: t
3837
+ });
3838
+ }, br = (e, t) => $.t(e, t);
3839
+ //#endregion
3840
+ //#region src/hooks/useTranslator.ts
3841
+ function xr() {
3842
+ return {
3843
+ format: a((e, t, n, r) => yr(e, t, n || void 0, r), []),
3844
+ getCurrentLanguage: a(() => $.languages[0], []),
3845
+ translate: a((e, t) => br(e, t), [])
3846
+ };
3847
+ }
3848
+ //#endregion
3849
+ //#region src/types/translation.ts
3850
+ var Sr = /* @__PURE__ */ function(e) {
3851
+ return e.CALENDAR_FOR = "Date.CalendarFor", e.CLOSE = "Generic.Close", e.APPLY = "Generic.Apply", e.REMOVE = "Generic.Remove", e.BACK = "Generic.Back", e.SHAPE_NOT_SUPPORTED_YET = "Generic.ShapeNotSupportedYet", e.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", e.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", e.CONFIRM_BUTTON = "Generic.ConfirmButton", e.RESET_BUTTON = "Generic.ResetButton", e.DELETE_BUTTON = "Generic.DeleteButton", e.ERRORS_IN_HIDDEN_FIELDS = "Generic.ErrorsInHiddenFields", e.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", e.CHIPS_INPUT_DEFAULT_PLACEHOLDER = "Generic.ChipsInputDefaultPlaceholder", e.NOTIFICATION_WIDGET_NO_MESSAGES = "Generic.NotificationWidgetNoMessages", e.NOTIFICATION_WIDGET_DISMISS_ALL = "Generic.NotificationWidgetDismissAll", e.LIST_SEARCH_PLACEHOLDER = "Generic.ListSearchPlaceholder", e.DATA_NOT_FOUND = "Generic.DataNotFound", e;
3852
+ }({}), Cr = /* @__PURE__ */ function(e) {
3853
+ return e.ADD_SUB_GROUP = "FilterBuilder.AddSubGroup", e.ADD_FILTER = "FilterBuilder.AddFilter", e.STRING_STARTS = "FilterBuilder.Operator.String.Starts", e.STRING_CONTAINS = "FilterBuilder.Operator.String.Contains", e.STRING_EQUALS = "FilterBuilder.Operator.String.Equals", e.NUMBER_EQUALS = "FilterBuilder.Operator.Number.Equals", e.NUMBER_NOTEQUALS = "FilterBuilder.Operator.Number.NotEquals", e.NUMBER_GREATER = "FilterBuilder.Operator.Number.Greater", e.NUMBER_GREATER_OR_EQUAL = "FilterBuilder.Operator.Number.GreaterOrEqual", e.NUMBER_LESS = "FilterBuilder.Operator.Number.Less", e.NUMBER_LESS_OR_EQUAL = "FilterBuilder.Operator.Number.LessOrEqual", e.DATE_BEFORE = "FilterBuilder.Operator.Date.Before", e.DATE_AFTER = "FilterBuilder.Operator.Date.After", e.DATE_ON = "FilterBuilder.Operator.Date.On", e;
3854
+ }({}), wr = /* @__PURE__ */ function(e) {
3855
+ return e.MONDAY = "Day.Monday", e.MONDAY_SHORT = "Day.MondayShort", e.TUESDAY = "Day.Tuesday", e.TUESDAY_SHORT = "Day.TuesdayShort", e.WEDNESDAY = "Day.Wednesday", e.WEDNESDAY_SHORT = "Day.WednesdayShort", e.THURSDAY = "Day.Thursday", e.THURSDAY_SHORT = "Day.ThursdayShort", e.FRIDAY = "Day.Friday", e.FRIDAY_SHORT = "Day.FridayShort", e.SATURDAY = "Day.Saturday", e.SATURDAY_SHORT = "Day.SaturdayShort", e.SUNDAY = "Day.Sunday", e.SUNDAY_SHORT = "Day.SundayShort", e;
3856
+ }({}), Tr = /* @__PURE__ */ function(e) {
3857
+ return e.JANUARY = "Month.January", e.FEBRUARY = "Month.February", e.MARCH = "Month.March", e.APRIL = "Month.April", e.MAY = "Month.May", e.JUNE = "Month.June", e.JULY = "Month.July", e.AUGUST = "Month.August", e.SEPTEMBER = "Month.September", e.OCTOBER = "Month.October", e.NOVEMBER = "Month.November", e.DECEMBER = "Month.December", e;
3858
+ }({}), Er = /* @__PURE__ */ function(e) {
3859
+ return e.PREVIOUS_DAY = "Date.PreviousDay", e.PREVIOUS_WEEK = "Date.PreviousWeek", e.PREVIOUS_MONTH = "Date.PreviousMonth", e.PREVIOUS_YEAR = "Date.PreviousYear", e.NEXT_DAY = "Date.NextDay", e.NEXT_WEEK = "Date.NextWeek", e.NEXT_MONTH = "Date.NextMonth", e.NEXT_YEAR = "Date.NextYear", e.YESTERDAY = "Date.Yesterday", e.TODAY = "Date.Today", e.TOMORROW = "Date.Tomorrow", e;
3860
+ }({}), Dr = /* @__PURE__ */ function(e) {
3861
+ return e.SELECT_FILES = "FileUpload.SelectFiles", e.DROP_AREA_LABEL = "FileUpload.DropAreaLabel", e.UPLOAD = "FileUpload.Upload", e.CANCEL = "FileUpload.Cancel", e.RETRY = "FileUpload.Retry", e.FILE_TOO_LARGE = "FileUpload.FileTooLarge", e;
3862
+ }({}), Or = /* @__PURE__ */ function(e) {
3863
+ return e.DISMISS_ALL = "Notification.DismissAll", e.NO_ACTIVE_NOTIFICATION = "Notification.NoActive", e;
3864
+ }({}), kr = /* @__PURE__ */ function(e) {
3865
+ return e.BOLD = "TextEditor.Bold", e.ITALIC = "TextEditor.Italic", e.UNDERLINE = "TextEditor.Underline", e.H1 = "TextEditor.H1", e.H2 = "TextEditor.H2", e.TEXT = "TextEditor.Text", e.CODE_BLOCK = "TextEditor.CodeBlock", e.LINK = "TextEditor.Link", e.LIST_ORDERED = "TextEditor.ListOrdered", e.LIST_BULLET = "TextEditor.ListBullet", e.SMEUP_LINK = "TextEditor.SmeupLink", e.SMEUP_LINK_OBJECT = "TextEditor.SmeupLinkObject", e.SMEUP_LINK_FUNCTION = "TextEditor.SmeupLinkFunction", e.SMEUP_LINK_T = "TextEditor.SmeupLinkT", e.SMEUP_LINK_P = "TextEditor.SmeupLinkP", e.SMEUP_LINK_K = "TextEditor.SmeupLinkK", e.SMEUP_LINK_FUN = "TextEditor.SmeupLinkFUN", e;
3866
+ }({}), Ar = /* @__PURE__ */ function(e) {
3867
+ return e.OPEN_IN_NEW = "PDF.OpenInNew", e.DOWNLOAD = "PDF.Download", e.PRINT = "PDF.Print", e.MISSING = "PDF.Missing", e.ERROR = "PDF.Error", e;
3868
+ }({}), jr = /* @__PURE__ */ function(e) {
3869
+ return e.OPEN_IN_NEW = "Htm.OpenInNew", e;
3870
+ }({}), Mr = /* @__PURE__ */ function(e) {
3871
+ return e.UNSUPPORTED_FORMAT = "Barcode.UnsupportedFormat", e.CODE39_INVALID_CHAR = "Barcode.Code39InvalidChar", e.CODABAR_INVALID_CHAR = "Barcode.CodabarInvalidChar", e.EAN8_DIGITS = "Barcode.EAN8Digits", e.EAN13_DIGITS = "Barcode.EAN13Digits", e.CODE128_INVALID_CHAR = "Barcode.Code128BInvalidChar", e.ITF_NUMERIC_DATA = "Barcode.ITFNumericData", e.POSTNET_NUMERIC_DATA = "Barcode.PostnetNumericData", e.POSTNET_DIGITS = "Barcode.PostnetDigits", e.ISBN_DIGITS = "Barcode.ISBNDigits", e;
3872
+ }({}), Nr = ({ node: e, index: t, parentId: n, toolbarNodesRefs: r, handleKeyDown: i, onToolbarRadioLeafNodeClick: a }) => {
3873
+ let [o, c] = d(""), l = u(null), { translate: f } = xr(), p = e.options, m = $e(t, n ?? "");
3874
+ s(() => {
3875
+ let e = `${m}-filter`, t = r.current;
3876
+ return l.current && t.set(e, l.current), () => {
3877
+ t.delete(e);
3878
+ };
3879
+ }, [m, r]);
3880
+ let h = p.filter((e) => e.decode?.toLowerCase().includes(o.toLowerCase()));
3881
+ return /* @__PURE__ */ (0, V.jsxs)("div", {
3882
+ role: "radiogroup",
3883
+ children: [/* @__PURE__ */ (0, V.jsx)(mn, {
3884
+ FullWidth: !0,
3885
+ inputRef: l,
3886
+ bindValue: o,
3887
+ placeholder: f(Sr.LIST_SEARCH_PLACEHOLDER),
3888
+ onChange: (e) => c(e.bindValue),
3889
+ onKeyDown: (t) => {
3890
+ let n = et(m, 0);
3891
+ t.key === "ArrowDown" ? rt(r, n) : i(t, e, n);
3892
+ }
3893
+ }), h.map((t, n) => {
3894
+ let o = et(m, n), s = t.value === e.value;
3895
+ return /* @__PURE__ */ (0, V.jsx)("div", {
3896
+ ref: (e) => {
3897
+ e ? r.current.set(o, e) : r.current.delete(o);
3898
+ },
3899
+ role: "radio",
3900
+ "aria-checked": s,
3901
+ "aria-label": t.decode ?? "",
3902
+ tabIndex: s ? 0 : -1,
3903
+ "data-node-id": o,
3904
+ className: `${J["smp-toolbar-node"]} ${s ? J["smp-selected"] : ""} ${J["smp-clickable"]}`,
3905
+ onClick: (n) => {
3906
+ n.preventDefault(), n.stopPropagation(), a(e, o, t);
3907
+ },
3908
+ onKeyDown: (r) => {
3909
+ r.key === "Enter" || r.key === " " ? (r.preventDefault(), a(e, o, t)) : r.key === "ArrowUp" && n === 0 ? l.current?.focus() : i(r, e, o);
3910
+ },
3911
+ children: /* @__PURE__ */ (0, V.jsxs)("div", {
3912
+ className: J["smp-toolbar-node-content"],
3913
+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {
3914
+ className: J["smp-toolbar-node-icon-text-container"],
3915
+ children: [/* @__PURE__ */ (0, V.jsx)(U, { icon: t.icon ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", {
3916
+ className: J["smp-toolbar-node-text"],
3917
+ children: /* @__PURE__ */ (0, V.jsx)(Xr, {
3918
+ variant: "body",
3919
+ bindValue: t.decode || ""
3920
+ })
3921
+ })]
3922
+ }), s && /* @__PURE__ */ (0, V.jsx)(U, { icon: "check" })]
3923
+ })
3924
+ }, o);
3925
+ })]
3926
+ });
3927
+ }, Pr = (e) => e?.type === "SmeupDataTree", Fr = (e) => e?.type === "SmeupDataTable", Ir = {
3928
+ obj: {
3929
+ t: "",
3930
+ p: ""
3931
+ },
3932
+ value: "",
3933
+ decode: "",
3934
+ shape: void 0
3935
+ }, Lr = "ID_LI", Rr = "ID_DE", zr = (e, t = 1) => e.reduce((e, n) => {
3936
+ let r = n.children?.length ? zr(n.children, t + 1) : t;
3937
+ return Math.max(e, r);
3938
+ }, t), Br = ({ data: e, ref: t, autoSelect: n, onToolbarLoadNodeData: r, onToolbarLeafNodeClick: i, onToolbarLoadInitialData: o, onToolbarClickOutside: c, onToolbarClose: l }) => {
3939
+ let f = u(/* @__PURE__ */ new Map()), [p, m] = d([]), [h, g] = d(e), _ = a((e) => {
3940
+ e?.current && m((t) => t.some((t) => t.current === e.current) ? t : [...t, e]);
3941
+ }, []);
3942
+ xt(p, !0, () => {
3943
+ m([]), c?.();
3944
+ }), s(() => {
3945
+ h && f.current.forEach((e) => {
3946
+ e && _({ current: e });
3947
+ });
3948
+ }, [h, _]);
3949
+ let { handleNodeExpand: v, handleMouseLeave: y, onToolbarRadioLeafNodeClick: b } = yt(g, r, i), { handleKeyDown: x } = ft(g, f, v, i, l), S = { floatingContainer: J["smp-floating-toolbar-container"] };
3950
+ s(() => {
3951
+ e && Pr(e) && requestAnimationFrame(() => rt(f, $e(0)));
3952
+ }, [e]), s(() => {
3953
+ if (!h && !e && o) {
3954
+ let e = o();
3955
+ e && typeof e.then == "function" && e.then((e) => {
3956
+ n && e?.children && e.children.length === 1 && typeof i == "function" ? i(e.children[0]) : g(e);
3957
+ }).finally(() => {
3958
+ requestAnimationFrame(() => rt(f, $e(0)));
3959
+ }).catch((e) => {
3960
+ console.error("Errore nel caricamento dati iniziali - Toolbar", e);
3961
+ });
3962
+ }
3963
+ }, [
3964
+ h,
3965
+ e,
3966
+ n,
3967
+ o,
3968
+ i
3969
+ ]);
3970
+ let C = a(function e(t, n, r = null) {
3971
+ if (!n?.length) return null;
3972
+ let a = 0;
3973
+ return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: n.map((n) => {
3974
+ let o = n?.shape === K.RADIO, s = a;
3975
+ return a += 1, o ? /* @__PURE__ */ (0, V.jsx)(Nr, {
3976
+ node: n,
3977
+ index: s,
3978
+ level: t,
3979
+ parentId: r ?? "",
3980
+ toolbarNodesRefs: f,
3981
+ onToolbarRadioLeafNodeClick: b,
3982
+ handleKeyDown: x,
3983
+ handleNodeExpand: v,
3984
+ handleMouseLeave: y,
3985
+ renderToolbarNodes: e
3986
+ }, s) : /* @__PURE__ */ (0, V.jsx)(bt, {
3987
+ node: n,
3988
+ index: s,
3989
+ level: t,
3990
+ parentId: r ?? "",
3991
+ toolbarNodesRefs: f,
3992
+ handleKeyDown: x,
3993
+ handleNodeExpand: v,
3994
+ handleMouseLeave: y,
3995
+ onToolbarLeafNodeClick: i,
3996
+ renderToolbarNodes: e
3997
+ }, s);
3998
+ }) });
3999
+ }, [
4000
+ x,
4001
+ v,
4002
+ y,
4003
+ i,
4004
+ b
4005
+ ]);
4006
+ return !h || !h?.children?.length ? null : /* @__PURE__ */ (0, V.jsx)("div", {
4007
+ ref: t,
4008
+ className: `${t ? S.floatingContainer : null}`,
4009
+ "aria-label": "Toolbar",
4010
+ "data-component": "toolbar",
4011
+ "smp-id": "toolbar-menu",
4012
+ children: C(0, h.children)
4013
+ });
4014
+ }, Vr = /_G(?:\d{2}[A-Z0-9]\d{2}_|\*(?:BOLD|ERROR|ITALIC|UNDERLINE)_)|_n_/g;
4015
+ function Hr(e) {
4016
+ return /_G(?:\d{2}[A-Z0-9]\d{2}_|\*(?:BOLD|ERROR|ITALIC|UNDERLINE)_)|_n_/.test(e);
4017
+ }
4018
+ function Ur(e) {
4019
+ let t = [], n = 0, r, i = null;
4020
+ for (; r = Vr.exec(e);) {
4021
+ let a = r.index;
4022
+ if (a > n) {
4023
+ let r = e.substring(n, a);
4024
+ i ? i.content += r : t.push({ content: r });
4025
+ }
4026
+ let o = r[0];
4027
+ if (o === "_n_") i ? (i.closed = !0, i = null) : t.push({ content: "" });
4028
+ else {
4029
+ let e = o.replace(/^_G/, "").replace(/_$/, "");
4030
+ i && (i.closed = !0), i = {
4031
+ tag: e,
4032
+ content: ""
4033
+ }, t.push(i);
4034
+ }
4035
+ n = Vr.lastIndex;
4036
+ }
4037
+ if (n < e.length) {
4038
+ let r = e.substring(n);
4039
+ i ? i.content += r : t.push({ content: r });
4040
+ }
4041
+ return i && (i.closed = !0), t;
4042
+ }
4043
+ function Wr(e) {
4044
+ return Ur(e)?.map((e, t) => {
4045
+ let n = e.content || "";
4046
+ if (e.tag) {
4047
+ let r = qr(e.tag);
4048
+ return /* @__PURE__ */ (0, V.jsx)("span", {
4049
+ "data-gcell-code": e.tag,
4050
+ style: r,
4051
+ children: n
4052
+ }, t);
4053
+ }
4054
+ return /* @__PURE__ */ (0, V.jsx)("span", { children: n }, t);
4055
+ });
4056
+ }
4057
+ var Gr = /^[a-zA-Z0-9]+$/, Kr = {
4058
+ "*BOLD": { fontWeight: "bold" },
4059
+ "*ERROR": {
4060
+ color: "white",
4061
+ backgroundColor: "red"
4062
+ },
4063
+ "*UNDERLINE": { textDecoration: "underline" },
4064
+ "*ITALIC": { fontStyle: "italic" }
4065
+ };
4066
+ function qr(e) {
4067
+ if (!e) return {};
4068
+ if (Kr[e]) return Kr[e];
4069
+ if (!Gr.test(e)) return {};
4070
+ let t = {};
4071
+ return e.split("").forEach((e, n) => {
4072
+ switch (n) {
4073
+ case 0:
4074
+ t.color = `var(--smp-gcell-color-${e})`;
4075
+ break;
4076
+ case 1:
4077
+ t = Yr(t, e);
4078
+ break;
4079
+ case 2:
4080
+ t.background = `var(--smp-gcell-background-color-${e})`;
4081
+ break;
4082
+ case 3:
4083
+ t.fontFamily = `var(--smp-gcell-font-family-${e})`;
4084
+ break;
4085
+ }
4086
+ }), t;
4087
+ }
4088
+ function Jr(e) {
4089
+ return e ? e.style ? e.style : qr(e.value || e.decode || "") : {};
4090
+ }
4091
+ function Yr(e, t) {
4092
+ switch (t) {
4093
+ case "1": return {
4094
+ ...e,
4095
+ fontWeight: "bold"
4096
+ };
4097
+ case "2": return {
4098
+ ...e,
4099
+ fontStyle: "italic"
4100
+ };
4101
+ case "3": return {
4102
+ ...e,
4103
+ textDecoration: "underline"
4104
+ };
4105
+ default: return e;
4106
+ }
4107
+ }
4108
+ //#endregion
4109
+ //#region src/basic-components/typography/typography.tsx
4110
+ var Xr = ({ variant: e = "body", state: t = "base", bindValue: n, color: r, role: i, className: a, style: o, toolbar: s, justifiedContent: c, ellipsis: l = !1, onToolbarLeafNodeClick: u, onToolbarLoadInitialData: f, onToolbarLoadNodeData: p, onAiIconClick: m, onTypographyRightClick: h, onToolbarClose: g, ..._ }) => {
4111
+ let v = Je[e], [y, b] = d(!1), { anchorRef: x, targetRef: S } = ke({
4112
+ position: "bottom",
4113
+ open: y
4114
+ }), C = {
4115
+ container: `${G["smp-typography"]} ${e ? G[`smp-typography-${e}`] : ""} ${t ? G[`smp-typography-${t}`] : ""} ${_.disabled ? G["smp-typography-disabled"] : ""} ${c ? G[`smp-typography-${c}`] : ""} ${((e) => e ? e.split(" ").filter(Boolean).map((e) => G[e] || e).join(" ") : "")(a)}`,
4116
+ toolbar: `${G["smp-typography-toolbar"]} `
4117
+ }, w = (e) => {
4118
+ u && u(e), T();
4119
+ }, T = () => {
4120
+ b(!1), g?.();
4121
+ }, E = Hr(n) ? Wr(n) : n;
4122
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(v, {
4123
+ "data-component": "typography",
4124
+ "data-state": t,
4125
+ className: C.container,
4126
+ disabled: _.disabled,
4127
+ href: e == "link" ? n : void 0,
4128
+ target: e == "link" ? "_blank" : void 0,
4129
+ rel: e == "link" ? "noopener noreferrer" : void 0,
4130
+ style: {
4131
+ "--smp-typography-color-base": r,
4132
+ ...o
4133
+ },
4134
+ role: i,
4135
+ onContextMenu: (e) => {
4136
+ h && (e.preventDefault(), h(e));
4137
+ },
4138
+ children: [
4139
+ l ? /* @__PURE__ */ (0, V.jsx)("span", {
4140
+ className: G["smp-typography-ellipsis"],
4141
+ title: n,
4142
+ children: E
4143
+ }) : E,
4144
+ s && /* @__PURE__ */ (0, V.jsx)("div", {
4145
+ "smp-id": "toolbar-button",
4146
+ ref: x,
4147
+ className: C.toolbar,
4148
+ children: /* @__PURE__ */ (0, V.jsx)(U, {
4149
+ tabIndex: 0,
4150
+ icon: "more_vert",
4151
+ isInteractable: !0,
4152
+ onClick: (e) => {
4153
+ e.stopPropagation(), b(!0);
4154
+ },
4155
+ width: "0.835rem",
4156
+ height: "0.835rem"
4157
+ })
4158
+ }),
4159
+ m && /* @__PURE__ */ (0, V.jsx)("div", {
4160
+ "smp-id": "typography-ai-icon",
4161
+ className: C.toolbar,
4162
+ children: /* @__PURE__ */ (0, V.jsx)(U, {
4163
+ tabIndex: 0,
4164
+ icon: "smeup-ai",
4165
+ title: "Smeup AI",
4166
+ isInteractable: !0,
4167
+ onClick: (e) => {
4168
+ e.stopPropagation(), m();
4169
+ }
4170
+ })
4171
+ })
4172
+ ]
4173
+ }), y && /* @__PURE__ */ (0, V.jsx)(Oe, { children: /* @__PURE__ */ (0, V.jsx)(Br, {
4174
+ ref: S,
4175
+ onToolbarLeafNodeClick: w,
4176
+ onToolbarLoadNodeData: p,
4177
+ onToolbarLoadInitialData: f,
4178
+ onToolbarClickOutside: () => b(!1),
4179
+ onToolbarClose: () => T()
4180
+ }) })] });
4181
+ }, Zr = ({ badgeString: e, parentComponent: t }) => {
4182
+ let n = Ue(e ?? "").reduce((e, t) => (e.some((e) => e.Pos === t.Pos) || e.push(t), e), []), r = {
4183
+ main: Ve["smp-badge"],
4184
+ text: Ve["smp-badge-text"]
4185
+ };
4186
+ return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: n.map((e, n) => {
4187
+ let { Txt: i, Typ: a, Ico: o, Pos: s } = e, c = a, l = s;
4188
+ return /* @__PURE__ */ (0, V.jsxs)("div", {
4189
+ className: r.main,
4190
+ "smp-id": "badge",
4191
+ "data-component": "badge",
4192
+ "data-badge-position": l,
4193
+ "data-badge-type": c,
4194
+ "data-parent-component": t,
4195
+ "aria-label": He(c, t, i),
4196
+ role: "status",
4197
+ children: [o && /* @__PURE__ */ (0, V.jsx)(U, {
4198
+ icon: o,
4199
+ state: Be[c]
4200
+ }), i && /* @__PURE__ */ (0, V.jsx)(Xr, {
4201
+ bindValue: i,
4202
+ variant: "label",
4203
+ className: r.text
4204
+ })]
4205
+ }, n);
4206
+ }) });
4207
+ }, Qr = ({ ...e }) => /* @__PURE__ */ (0, V.jsx)($r, { ...e }), $r = ({ ref: e, bindValue: t, onClick: n, ariaLabel: r, icon: i, placeholderIcon: a, disabled: o, sizing: s = "base", variant: c = "primary", appearance: l = "raised", showIcon: u = !0, ShowText: d = "Yes", FillSpace: f = "No", loading: p = !1, justify: m = "center", BtnTit: h, optionalDisplayValue: g, squared: _ = !1, submit: v = !1, active: y = !1, buttonExt: b, Badge: x, className: S, id: C, smpId: w }) => {
4208
+ let T = { container: `${W["smp-button"]} ${W["smp-button-container"]} ${s ? W[`smp-button-${s}`] : ""} ${c ? W[`smp-buttonVariant-${c}`] : ""} ${l ? W[`smp-buttonType-${l}`] : ""} ${ze(f) ? W["smp-button-FillSpace"] : ""} ${Qt(`justify-${m}`)} ${_ && !d ? W["smp-button-squared"] : ""} ${y ? W["smp-buttonActive"] : ""} ${b ? W[`smp-buttonExt-${b}`] : ""}` };
4209
+ return /* @__PURE__ */ (0, V.jsxs)("button", {
4210
+ ref: e,
4211
+ id: C,
4212
+ "smp-id": w,
4213
+ "data-component": "button",
4214
+ type: v ? "submit" : "button",
4215
+ className: `${T.container} ${S}`,
4216
+ onClick: n,
4217
+ "aria-label": r,
4218
+ disabled: o,
4219
+ "aria-busy": p,
4220
+ title: h || g,
4221
+ children: [p ? /* @__PURE__ */ (0, V.jsx)(U, {
4222
+ icon: "spinner",
4223
+ state: Re(c, l),
4224
+ spin: !0
4225
+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [i && u && /* @__PURE__ */ (0, V.jsx)(U, {
4226
+ icon: i,
4227
+ placeholderIcon: a,
4228
+ disabled: o,
4229
+ state: Re(c, l),
4230
+ width: Ie(s),
4231
+ height: Ie(s)
4232
+ }), ze(d) && /* @__PURE__ */ (0, V.jsx)("span", { children: g || t })] }), x && /* @__PURE__ */ (0, V.jsx)(Zr, {
4233
+ badgeString: x,
4234
+ parentComponent: "button"
4235
+ })]
4236
+ });
4237
+ }, ei = {
4238
+ "smp-textarea-wrapper": "_smp-textarea-wrapper_18b0q_4",
4239
+ "smp-textarea": "_smp-textarea_18b0q_4",
4240
+ "smp-textarea-input": "_smp-textarea-input_18b0q_32",
4241
+ "smp-textarea-outlined": "_smp-textarea-outlined_18b0q_54",
4242
+ "smp-textarea-danger": "_smp-textarea-danger_18b0q_65",
4243
+ "smp-textarea-disabled": "_smp-textarea-disabled_18b0q_72",
4244
+ "smp-textarea-FullWidth": "_smp-textarea-FullWidth_18b0q_81"
4245
+ }, ti = ({ disabled: e, bindValue: t, onChange: n, placeholder: r, state: i, appearance: a, isEditable: o = !0, inputRef: s, ariaLabel: l, label: u, helperText: d, style: f, error: p, onBlur: m, onKeyDown: h, onEnter: g, MemRow: _ = "10", MemCol: v, isVisualOnly: y }) => {
4246
+ let b = c(), x = `${b}-helper`, S = p ? "danger" : i, C = d || !!p, w = Number.isNaN(Number(_)) ? 10 : Number(_), T = Number.isNaN(Number(v)) ? void 0 : Number(v), E = (e) => {
4247
+ n?.({ bindValue: e.target.value });
4248
+ }, D = (e) => {
4249
+ e.key === "Enter" && (e.ctrlKey && g?.({ bindValue: t }), e.stopPropagation()), h?.(e);
4250
+ }, O = {
4251
+ wrapper: `${ei["smp-textarea-wrapper"]}`,
4252
+ container: `${ei["smp-textarea"]} ${v ? "" : ei["smp-textarea-FullWidth"]} ${e || !o ? ei["smp-textarea-disabled"] : ""} ${r ? ei["smp-textarea-placeholder"] : ""} ${S ? ei[`smp-textarea-${S}`] : ""} ${a ? ei[`smp-textarea-${a}`] : ""}`
4253
+ };
4254
+ return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: y ? /* @__PURE__ */ (0, V.jsx)(zt, {
4255
+ style: f,
4256
+ bindValue: t
4257
+ }) : /* @__PURE__ */ (0, V.jsx)("div", {
4258
+ className: O.wrapper,
4259
+ "data-component": "textarea",
4260
+ children: /* @__PURE__ */ (0, V.jsx)("textarea", {
4261
+ id: b,
4262
+ value: t,
4263
+ placeholder: r,
4264
+ onChange: E,
4265
+ onBlur: (e) => m?.({ focusEvent: e }, { bindValue: t }),
4266
+ className: O.container,
4267
+ disabled: e || !o,
4268
+ onKeyDown: D,
4269
+ style: f,
4270
+ "aria-label": u ? void 0 : l,
4271
+ "aria-labelledby": u ? b : void 0,
4272
+ "aria-describedby": C ? x : void 0,
4273
+ rows: w,
4274
+ cols: T,
4275
+ ref: s
4276
+ })
4277
+ }) });
4278
+ }, ni = [{
4279
+ selector: "[data-type=\"obj\"]",
4280
+ eventType: "contextmenu",
4281
+ buildCell: (e) => {
4282
+ let [t = "", n = "", r = ""] = e.split(";").map((e) => e.trim());
4283
+ return {
4284
+ obj: {
4285
+ t,
4286
+ p: n
4287
+ },
4288
+ value: r
4289
+ };
4290
+ }
4291
+ }, {
4292
+ selector: "[data-type=\"fun\"]",
4293
+ eventType: "click",
4294
+ buildCell: (e) => ({
4295
+ obj: {
4296
+ t: "J1",
4297
+ p: "FUN"
4298
+ },
4299
+ value: e,
4300
+ fun: e
4301
+ })
4302
+ }];
4303
+ function ri(e, t, n) {
4304
+ s(() => {
4305
+ if (t) {
4306
+ let t = e?.current;
4307
+ if (!t || !n) return;
4308
+ let r = (e) => {
4309
+ let r = e.target;
4310
+ if (r && !window.getSelection()?.toString()) for (let i of ni) {
4311
+ if (e.type !== i.eventType) continue;
4312
+ let a = r.closest(i.selector);
4313
+ if (!a || !t.contains(a)) continue;
4314
+ e.preventDefault(), e.stopPropagation();
4315
+ let o = a.getAttribute("data-args");
4316
+ if (o) {
4317
+ n(i.buildCell(o, a), a);
4318
+ return;
4319
+ }
4320
+ }
4321
+ };
4322
+ return t.addEventListener("contextmenu", r), t.addEventListener("click", r), () => {
4323
+ t.removeEventListener("contextmenu", r), t.removeEventListener("click", r);
4324
+ };
4325
+ }
4326
+ }, [
4327
+ e,
4328
+ t,
4329
+ n
4330
+ ]);
4331
+ }
4332
+ //#endregion
4333
+ export { Mt as $, $ as A, rn as B, Ar as C, Oe as Ct, pr as D, fr as E, un as F, Zt as G, pn as H, sn as I, Ht as J, Jt as K, nn as L, ln as M, dn as N, gr as O, an as P, Rt as Q, tn as R, Or as S, ke as St, xr as T, xe as Tt, Yt as U, fn as V, Qt as W, Wt as X, Ut as Y, zt as Z, Dr as _, G as _t, Xr as a, Pt as at, jr as b, Pe as bt, Rr as c, Ct as ct, zr as d, K as dt, jt as et, Fr as f, pt as ft, wr as g, _t as gt, Er as h, gt as ht, Zr as i, kt as it, mn as j, dr as k, Lr as l, xt as lt, Mr as m, ht as mt, ti as n, Ot as nt, Jr as o, Et as ot, Pr as p, mt as pt, qt as q, Qr as r, Ft as rt, Br as s, wt as st, ri as t, Dt as tt, Ir as u, q as ut, Cr as v, ze as vt, kr as w, U as wt, Tr as x, Me as xt, Sr as y, Fe as yt, en as z };