@adyen/adyen-platform-experience-web 1.12.2-beta.0 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/{4-people-BtDi7O9A-aA6B62X-.cjs → 4-people-BtDi7O9A-CykGUqaL.cjs} +2 -2
  2. package/dist/{4-people-BtDi7O9A-aA6B62X-.cjs.map → 4-people-BtDi7O9A-CykGUqaL.cjs.map} +1 -1
  3. package/dist/{DebugModal-C7WSGJRZ-qzUZAGhP.cjs → DebugModal-C7WSGJRZ-BmX2aMgK.cjs} +3 -3
  4. package/dist/{DebugModal-C7WSGJRZ-qzUZAGhP.cjs.map → DebugModal-C7WSGJRZ-BmX2aMgK.cjs.map} +1 -1
  5. package/dist/{InputText-C55stM8O-CR2GhUj5.cjs → InputText-C55stM8O-D--mLfey.cjs} +2 -2
  6. package/dist/{InputText-C55stM8O-CR2GhUj5.cjs.map → InputText-C55stM8O-D--mLfey.cjs.map} +1 -1
  7. package/dist/{adyen-business-financing-CLuAX3_l.cjs → adyen-business-financing-BgJni8kC.cjs} +3 -3
  8. package/dist/{adyen-business-financing-CLuAX3_l.cjs.map → adyen-business-financing-BgJni8kC.cjs.map} +1 -1
  9. package/dist/{adyen-terms-of-service-management-DqcfuPkE.cjs → adyen-terms-of-service-management-CldSciJN.cjs} +2 -2
  10. package/dist/{adyen-terms-of-service-management-DqcfuPkE.cjs.map → adyen-terms-of-service-management-CldSciJN.cjs.map} +1 -1
  11. package/dist/{angle-right-nKHkb9uB.cjs → angle-right-D3yTsK9R.cjs} +2 -2
  12. package/dist/{angle-right-nKHkb9uB.cjs.map → angle-right-D3yTsK9R.cjs.map} +1 -1
  13. package/dist/{arrow-right-BoqwUH_d-_3fXeByh.cjs → arrow-right-BoqwUH_d-C0oi6GBo.cjs} +2 -2
  14. package/dist/{arrow-right-BoqwUH_d-_3fXeByh.cjs.map → arrow-right-BoqwUH_d-C0oi6GBo.cjs.map} +1 -1
  15. package/dist/{arrow-right-jfvFbNRY.cjs → arrow-right-D4QXSO6_.cjs} +2 -2
  16. package/dist/{arrow-right-jfvFbNRY.cjs.map → arrow-right-D4QXSO6_.cjs.map} +1 -1
  17. package/dist/{bag-BXVWLrwo-D3PowM5D.cjs → bag-BXVWLrwo-BfKXp36G.cjs} +2 -2
  18. package/dist/{bag-BXVWLrwo-D3PowM5D.cjs.map → bag-BXVWLrwo-BfKXp36G.cjs.map} +1 -1
  19. package/dist/{bank-1GvaHPAZ-DITVvKik.cjs → bank-1GvaHPAZ-CNNRb2M8.cjs} +2 -2
  20. package/dist/{bank-1GvaHPAZ-DITVvKik.cjs.map → bank-1GvaHPAZ-CNNRb2M8.cjs.map} +1 -1
  21. package/dist/{bin-Ba-3ll8T-DFiJJSW1.cjs → bin-Ba-3ll8T-Bz6w--0v.cjs} +2 -2
  22. package/dist/{bin-Ba-3ll8T-DFiJJSW1.cjs.map → bin-Ba-3ll8T-Bz6w--0v.cjs.map} +1 -1
  23. package/dist/{capital-9TKHySO7-C_S4eKAG.cjs → capital-9TKHySO7-tXHOZXsF.cjs} +2 -2
  24. package/dist/{capital-9TKHySO7-C_S4eKAG.cjs.map → capital-9TKHySO7-tXHOZXsF.cjs.map} +1 -1
  25. package/dist/{cash-stack-DwYu4xNy-CK4BdBnU.cjs → cash-stack-DwYu4xNy-CtLOZNrp.cjs} +2 -2
  26. package/dist/{cash-stack-DwYu4xNy-CK4BdBnU.cjs.map → cash-stack-DwYu4xNy-CtLOZNrp.cjs.map} +1 -1
  27. package/dist/{certificate-N2YFedpI-CxIeJma8.cjs → certificate-N2YFedpI-EFeB9MGL.cjs} +2 -2
  28. package/dist/{certificate-N2YFedpI-CxIeJma8.cjs.map → certificate-N2YFedpI-EFeB9MGL.cjs.map} +1 -1
  29. package/dist/{checkbox-disabled-e_EhNkDw.cjs → checkbox-disabled-DQku2lLt.cjs} +2 -2
  30. package/dist/{checkbox-disabled-e_EhNkDw.cjs.map → checkbox-disabled-DQku2lLt.cjs.map} +1 -1
  31. package/dist/{checkmark-D9dGhGpG-DOTtZoOy.cjs → checkmark-D9dGhGpG-Q6D3lcZA.cjs} +2 -2
  32. package/dist/{checkmark-D9dGhGpG-DOTtZoOy.cjs.map → checkmark-D9dGhGpG-Q6D3lcZA.cjs.map} +1 -1
  33. package/dist/{checkmark-D-h9rmYE.cjs → checkmark-DuDiVfEE.cjs} +2 -2
  34. package/dist/{checkmark-D-h9rmYE.cjs.map → checkmark-DuDiVfEE.cjs.map} +1 -1
  35. package/dist/{checkmark-circle-CFWClLQ6-v-o7XYMH.cjs → checkmark-circle-CFWClLQ6-Ck8iFBtk.cjs} +2 -2
  36. package/dist/{checkmark-circle-CFWClLQ6-v-o7XYMH.cjs.map → checkmark-circle-CFWClLQ6-Ck8iFBtk.cjs.map} +1 -1
  37. package/dist/{checkmark-circle-fill-DEB-tuGl-D0XVVTis.cjs → checkmark-circle-fill-DEB-tuGl-5HXocBee.cjs} +2 -2
  38. package/dist/{checkmark-circle-fill-DEB-tuGl-D0XVVTis.cjs.map → checkmark-circle-fill-DEB-tuGl-5HXocBee.cjs.map} +1 -1
  39. package/dist/{checkmark-circle-fill-W9KPCn3B.cjs → checkmark-circle-fill-DptO9x6p.cjs} +2 -2
  40. package/dist/{checkmark-circle-fill-W9KPCn3B.cjs.map → checkmark-circle-fill-DptO9x6p.cjs.map} +1 -1
  41. package/dist/{checkmark-small-D3VNx2lo-B1tCb0yF.cjs → checkmark-small-D3VNx2lo-VgGbWO2Z.cjs} +2 -2
  42. package/dist/{checkmark-small-D3VNx2lo-B1tCb0yF.cjs.map → checkmark-small-D3VNx2lo-VgGbWO2Z.cjs.map} +1 -1
  43. package/dist/{checkmark-square-fill-bDTucYFJ.cjs → checkmark-square-fill-Cq7Pried.cjs} +2 -2
  44. package/dist/{checkmark-square-fill-bDTucYFJ.cjs.map → checkmark-square-fill-Cq7Pried.cjs.map} +1 -1
  45. package/dist/{chevron-down-C-dHnX23.cjs → chevron-down-C0IkeAXT.cjs} +2 -2
  46. package/dist/{chevron-down-C-dHnX23.cjs.map → chevron-down-C0IkeAXT.cjs.map} +1 -1
  47. package/dist/{chevron-down-C7SUSYfl-Cg9mWB0T.cjs → chevron-down-C7SUSYfl-Cc6KrIzd.cjs} +2 -2
  48. package/dist/{chevron-down-C7SUSYfl-Cg9mWB0T.cjs.map → chevron-down-C7SUSYfl-Cc6KrIzd.cjs.map} +1 -1
  49. package/dist/{chevron-left-BXmd-S46-bNjbN_K-.cjs → chevron-left-BXmd-S46-BxVZK0po.cjs} +2 -2
  50. package/dist/{chevron-left-BXmd-S46-bNjbN_K-.cjs.map → chevron-left-BXmd-S46-BxVZK0po.cjs.map} +1 -1
  51. package/dist/{chevron-left-BnXSy6z6.cjs → chevron-left-ye5eRE9B.cjs} +2 -2
  52. package/dist/{chevron-left-BnXSy6z6.cjs.map → chevron-left-ye5eRE9B.cjs.map} +1 -1
  53. package/dist/{chevron-right-BVFgPgVl.cjs → chevron-right-BxPMSiRx.cjs} +2 -2
  54. package/dist/{chevron-right-BVFgPgVl.cjs.map → chevron-right-BxPMSiRx.cjs.map} +1 -1
  55. package/dist/{chevron-right-jE6RwM2B-C6elHZeh.cjs → chevron-right-jE6RwM2B-CUsCypD5.cjs} +2 -2
  56. package/dist/{chevron-right-jE6RwM2B-C6elHZeh.cjs.map → chevron-right-jE6RwM2B-CUsCypD5.cjs.map} +1 -1
  57. package/dist/{chevron-up-BdfNcqzq-CmwSRmBk.cjs → chevron-up-BdfNcqzq-BJnCnDy-.cjs} +2 -2
  58. package/dist/{chevron-up-BdfNcqzq-CmwSRmBk.cjs.map → chevron-up-BdfNcqzq-BJnCnDy-.cjs.map} +1 -1
  59. package/dist/{chevron-up-Cz9D-bt0.cjs → chevron-up-DMaEXJ63.cjs} +2 -2
  60. package/dist/{chevron-up-Cz9D-bt0.cjs.map → chevron-up-DMaEXJ63.cjs.map} +1 -1
  61. package/dist/{chevron-up-down-DG94jJ2W.cjs → chevron-up-down-Cx1a2Xj3.cjs} +2 -2
  62. package/dist/{chevron-up-down-DG94jJ2W.cjs.map → chevron-up-down-Cx1a2Xj3.cjs.map} +1 -1
  63. package/dist/{circle-BJPTMCWB-DVKX2QNt.cjs → circle-BJPTMCWB-bI3MIf-t.cjs} +2 -2
  64. package/dist/{circle-BJPTMCWB-DVKX2QNt.cjs.map → circle-BJPTMCWB-bI3MIf-t.cjs.map} +1 -1
  65. package/dist/{circle-small-filled-BuO8Vg8j-CIzokiR_.cjs → circle-small-filled-BuO8Vg8j-D5EkLA9R.cjs} +2 -2
  66. package/dist/{circle-small-filled-BuO8Vg8j-CIzokiR_.cjs.map → circle-small-filled-BuO8Vg8j-D5EkLA9R.cjs.map} +1 -1
  67. package/dist/cjs/index.js +1 -1
  68. package/dist/{clock-DAzaBRWk-DjB8W_th.cjs → clock-DAzaBRWk-CKK_5gxp.cjs} +2 -2
  69. package/dist/{clock-DAzaBRWk-DjB8W_th.cjs.map → clock-DAzaBRWk-CKK_5gxp.cjs.map} +1 -1
  70. package/dist/{cog-JdZeK4hq.cjs → cog-Bn9DTd7S.cjs} +2 -2
  71. package/dist/{cog-JdZeK4hq.cjs.map → cog-Bn9DTd7S.cjs.map} +1 -1
  72. package/dist/{coins-DYdzG5e_-DwtZlq5G.cjs → coins-DYdzG5e_-Cl1nCPKE.cjs} +2 -2
  73. package/dist/{coins-DYdzG5e_-DwtZlq5G.cjs.map → coins-DYdzG5e_-Cl1nCPKE.cjs.map} +1 -1
  74. package/dist/{contract-BfJb1t6M-Ch2T551b.cjs → contract-BfJb1t6M-IHda6bpN.cjs} +2 -2
  75. package/dist/{contract-BfJb1t6M-Ch2T551b.cjs.map → contract-BfJb1t6M-IHda6bpN.cjs.map} +1 -1
  76. package/dist/{copy-DRxCZ2Q6.cjs → copy-DU-YEfaa.cjs} +2 -2
  77. package/dist/{copy-DRxCZ2Q6.cjs.map → copy-DU-YEfaa.cjs.map} +1 -1
  78. package/dist/{cross-CDS_eot4-CF8xRzvO.cjs → cross-CDS_eot4-CBB7JNnN.cjs} +2 -2
  79. package/dist/{cross-CDS_eot4-CF8xRzvO.cjs.map → cross-CDS_eot4-CBB7JNnN.cjs.map} +1 -1
  80. package/dist/{cross-DL9v9Nwz.cjs → cross-LLTwW3GB.cjs} +2 -2
  81. package/dist/{cross-DL9v9Nwz.cjs.map → cross-LLTwW3GB.cjs.map} +1 -1
  82. package/dist/{cross-circle-fill-C-EJ57Yn-DjJVDpi9.cjs → cross-circle-fill-C-EJ57Yn-BFDtAcXb.cjs} +2 -2
  83. package/dist/{cross-circle-fill-C-EJ57Yn-DjJVDpi9.cjs.map → cross-circle-fill-C-EJ57Yn-BFDtAcXb.cjs.map} +1 -1
  84. package/dist/{cross-circle-fill-Bil9QH3X.cjs → cross-circle-fill-D1qo08uw.cjs} +2 -2
  85. package/dist/{cross-circle-fill-Bil9QH3X.cjs.map → cross-circle-fill-D1qo08uw.cjs.map} +1 -1
  86. package/dist/{cross-circle-fill-small-DkPjsuBH-DpyM9dZl.cjs → cross-circle-fill-small-DkPjsuBH-kPVAeVmn.cjs} +2 -2
  87. package/dist/{cross-circle-fill-small-DkPjsuBH-DpyM9dZl.cjs.map → cross-circle-fill-small-DkPjsuBH-kPVAeVmn.cjs.map} +1 -1
  88. package/dist/{css-CrqZ87Qb-DTweroL2.cjs → css-CrqZ87Qb-goz7UUot.cjs} +2 -2
  89. package/dist/{css-CrqZ87Qb-DTweroL2.cjs.map → css-CrqZ87Qb-goz7UUot.cjs.map} +1 -1
  90. package/dist/{document-1-qlSTF558-DCUfsSYj.cjs → document-1-qlSTF558-ClpgfKqJ.cjs} +2 -2
  91. package/dist/{document-1-qlSTF558-DCUfsSYj.cjs.map → document-1-qlSTF558-ClpgfKqJ.cjs.map} +1 -1
  92. package/dist/{document-person-CDbnTOdV-Cwtmxwte.cjs → document-person-CDbnTOdV-D249XEY1.cjs} +2 -2
  93. package/dist/{document-person-CDbnTOdV-Cwtmxwte.cjs.map → document-person-CDbnTOdV-D249XEY1.cjs.map} +1 -1
  94. package/dist/{download-BZQB1WkZ-Cu8ARX8L.cjs → download-BZQB1WkZ-71KdFwug.cjs} +2 -2
  95. package/dist/{download-BZQB1WkZ-Cu8ARX8L.cjs.map → download-BZQB1WkZ-71KdFwug.cjs.map} +1 -1
  96. package/dist/{download-CaoRH4y7.cjs → download-Cgm5Kxe2.cjs} +2 -2
  97. package/dist/{download-CaoRH4y7.cjs.map → download-Cgm5Kxe2.cjs.map} +1 -1
  98. package/dist/{edit-1-DAqtnOIx-BSPeRMoj.cjs → edit-1-DAqtnOIx-hCOg9qvX.cjs} +2 -2
  99. package/dist/{edit-1-DAqtnOIx-BSPeRMoj.cjs.map → edit-1-DAqtnOIx-hCOg9qvX.cjs.map} +1 -1
  100. package/dist/{emitEvent-CzZf80Am-D65Q2GsO.cjs → emitEvent-CzZf80Am-DK0eOfQ9.cjs} +4 -4
  101. package/dist/{emitEvent-CzZf80Am-D65Q2GsO.cjs.map → emitEvent-CzZf80Am-DK0eOfQ9.cjs.map} +1 -1
  102. package/dist/es/packages/shared/core/src/Core.js +1 -1
  103. package/dist/es/packages/shared/core/src/EventDispatcher/eventDispatcher/customTranslations.js +1 -1
  104. package/dist/es/packages/shared/core/src/Http/utils.js +1 -1
  105. package/dist/es/packages/shared/core/src/setupAnalytics.js +1 -1
  106. package/dist/{external-link-Cg6pJaSJ-CM7Iql_8.cjs → external-link-Cg6pJaSJ-Blu3zY1L.cjs} +2 -2
  107. package/dist/{external-link-Cg6pJaSJ-CM7Iql_8.cjs.map → external-link-Cg6pJaSJ-Blu3zY1L.cjs.map} +1 -1
  108. package/dist/{external-link-D9IWEgUB.cjs → external-link-DLQHz9dT.cjs} +2 -2
  109. package/dist/{external-link-D9IWEgUB.cjs.map → external-link-DLQHz9dT.cjs.map} +1 -1
  110. package/dist/{filter-D4NKeMBf.cjs → filter-BHjFVeiT.cjs} +2 -2
  111. package/dist/{filter-D4NKeMBf.cjs.map → filter-BHjFVeiT.cjs.map} +1 -1
  112. package/dist/{funds-in-CInoUdmG-DK88gVc5.cjs → funds-in-CInoUdmG-BZPETyTq.cjs} +2 -2
  113. package/dist/{funds-in-CInoUdmG-DK88gVc5.cjs.map → funds-in-CInoUdmG-BZPETyTq.cjs.map} +1 -1
  114. package/dist/{gift-omNInZeB-wprH-Ybc.cjs → gift-omNInZeB-DzTL1xdk.cjs} +2 -2
  115. package/dist/{gift-omNInZeB-wprH-Ybc.cjs.map → gift-omNInZeB-DzTL1xdk.cjs.map} +1 -1
  116. package/dist/{graph-DunG_uu1-ZkolG2O6.cjs → graph-DunG_uu1-BXm_TrX_.cjs} +2 -2
  117. package/dist/{graph-DunG_uu1-ZkolG2O6.cjs.map → graph-DunG_uu1-BXm_TrX_.cjs.map} +1 -1
  118. package/dist/{graph-up-BZze4i6m-CVcuMdjT.cjs → graph-up-BZze4i6m-Ca_zl3SX.cjs} +2 -2
  119. package/dist/{graph-up-BZze4i6m-CVcuMdjT.cjs.map → graph-up-BZze4i6m-Ca_zl3SX.cjs.map} +1 -1
  120. package/dist/{headquarter-BhpSibFO-DuesOO3S.cjs → headquarter-BhpSibFO-BRK-JRU3.cjs} +2 -2
  121. package/dist/{headquarter-BhpSibFO-DuesOO3S.cjs.map → headquarter-BhpSibFO-BRK-JRU3.cjs.map} +1 -1
  122. package/dist/{hotel-Cp7VgGCJ-DnVKj20f.cjs → hotel-Cp7VgGCJ-CK07mweY.cjs} +2 -2
  123. package/dist/{hotel-Cp7VgGCJ-DnVKj20f.cjs.map → hotel-Cp7VgGCJ-CK07mweY.cjs.map} +1 -1
  124. package/dist/{house-BhyBQdR3-Ca7-ymmK.cjs → house-BhyBQdR3-Da2ciJF4.cjs} +2 -2
  125. package/dist/{house-BhyBQdR3-Ca7-ymmK.cjs.map → house-BhyBQdR3-Da2ciJF4.cjs.map} +1 -1
  126. package/dist/{image-CmB0ioUM--lTYtQ_6.cjs → image-CmB0ioUM-D7IDIh_k.cjs} +2 -2
  127. package/dist/{image-CmB0ioUM--lTYtQ_6.cjs.map → image-CmB0ioUM-D7IDIh_k.cjs.map} +1 -1
  128. package/dist/index-1fcV27aR.cjs +12 -0
  129. package/dist/{index-BAx0cyGA.cjs.map → index-1fcV27aR.cjs.map} +1 -1
  130. package/dist/{info-Bb_-xIEK-CIApB9Cl.cjs → info-Bb_-xIEK-vqzRCz7j.cjs} +2 -2
  131. package/dist/{info-Bb_-xIEK-CIApB9Cl.cjs.map → info-Bb_-xIEK-vqzRCz7j.cjs.map} +1 -1
  132. package/dist/{info-B80hGgfQ.cjs → info-CPuHsd--.cjs} +2 -2
  133. package/dist/{info-B80hGgfQ.cjs.map → info-CPuHsd--.cjs.map} +1 -1
  134. package/dist/{info-filled-CK8LB339-Ciie2uzr.cjs → info-filled-CK8LB339-Cxd0ljuX.cjs} +2 -2
  135. package/dist/{info-filled-CK8LB339-Ciie2uzr.cjs.map → info-filled-CK8LB339-Cxd0ljuX.cjs.map} +1 -1
  136. package/dist/{info-filled-C3TX8jLO.cjs → info-filled-CmtvjRfO.cjs} +2 -2
  137. package/dist/{info-filled-C3TX8jLO.cjs.map → info-filled-CmtvjRfO.cjs.map} +1 -1
  138. package/dist/{json-Bh-SPdZH-BIZd2EIx.cjs → json-Bh-SPdZH-Co7_kxe1.cjs} +2 -2
  139. package/dist/{json-Bh-SPdZH-BIZd2EIx.cjs.map → json-Bh-SPdZH-Co7_kxe1.cjs.map} +1 -1
  140. package/dist/{location-itJfxrDQ-cnYy_WQ9.cjs → location-itJfxrDQ-D8KM_gv5.cjs} +2 -2
  141. package/dist/{location-itJfxrDQ-cnYy_WQ9.cjs.map → location-itJfxrDQ-D8KM_gv5.cjs.map} +1 -1
  142. package/dist/{mail-VHTlAusn-DaOJ2cWR.cjs → mail-VHTlAusn-BGEAd-9E.cjs} +2 -2
  143. package/dist/{mail-VHTlAusn-DaOJ2cWR.cjs.map → mail-VHTlAusn-BGEAd-9E.cjs.map} +1 -1
  144. package/dist/{minus-circle-filled-ZhtJ0GD3-DA38FL9R.cjs → minus-circle-filled-ZhtJ0GD3-BYtnLkdq.cjs} +2 -2
  145. package/dist/{minus-circle-filled-ZhtJ0GD3-DA38FL9R.cjs.map → minus-circle-filled-ZhtJ0GD3-BYtnLkdq.cjs.map} +1 -1
  146. package/dist/{minus-circle-outline-DOto6_kc.cjs → minus-circle-outline-1TtZsc_A.cjs} +2 -2
  147. package/dist/{minus-circle-outline-DOto6_kc.cjs.map → minus-circle-outline-1TtZsc_A.cjs.map} +1 -1
  148. package/dist/{onfido-logo-BSkKPH10-Cf10zBu9.cjs → onfido-logo-BSkKPH10-B0sRf8b7.cjs} +2 -2
  149. package/dist/{onfido-logo-BSkKPH10-Cf10zBu9.cjs.map → onfido-logo-BSkKPH10-B0sRf8b7.cjs.map} +1 -1
  150. package/dist/{options-horizontal-GuXvLvV3-CLFLcr3j.cjs → options-horizontal-GuXvLvV3-BsdEjc5Z.cjs} +2 -2
  151. package/dist/{options-horizontal-GuXvLvV3-CLFLcr3j.cjs.map → options-horizontal-GuXvLvV3-BsdEjc5Z.cjs.map} +1 -1
  152. package/dist/{partner-QD27Vy4w-C-O_LG_j.cjs → partner-QD27Vy4w-BEVNoYXR.cjs} +2 -2
  153. package/dist/{partner-QD27Vy4w-C-O_LG_j.cjs.map → partner-QD27Vy4w-BEVNoYXR.cjs.map} +1 -1
  154. package/dist/{pay-by-link-plane-BpY8Q6-B-B86k6NkK.cjs → pay-by-link-plane-BpY8Q6-B-BT0myaf8.cjs} +2 -2
  155. package/dist/{pay-by-link-plane-BpY8Q6-B-B86k6NkK.cjs.map → pay-by-link-plane-BpY8Q6-B-BT0myaf8.cjs.map} +1 -1
  156. package/dist/{payout-DtB68BcZ-Btm5Wp68.cjs → payout-DtB68BcZ-DRZi5ifj.cjs} +2 -2
  157. package/dist/{payout-DtB68BcZ-Btm5Wp68.cjs.map → payout-DtB68BcZ-DRZi5ifj.cjs.map} +1 -1
  158. package/dist/{person-IVZG3t3_-BEJ6F5YK.cjs → person-IVZG3t3_-Dr0lIsc1.cjs} +2 -2
  159. package/dist/{person-IVZG3t3_-BEJ6F5YK.cjs.map → person-IVZG3t3_-Dr0lIsc1.cjs.map} +1 -1
  160. package/dist/{plaintext-t5CGmSc3-BLVYjVxi.cjs → plaintext-t5CGmSc3-DG1SMjSC.cjs} +2 -2
  161. package/dist/{plaintext-t5CGmSc3-BLVYjVxi.cjs.map → plaintext-t5CGmSc3-DG1SMjSC.cjs.map} +1 -1
  162. package/dist/{plus-DiALAL8--gxyUZHqI.cjs → plus-DiALAL8--h3NWV9cu.cjs} +2 -2
  163. package/dist/{plus-DiALAL8--gxyUZHqI.cjs.map → plus-DiALAL8--h3NWV9cu.cjs.map} +1 -1
  164. package/dist/{plus-Dst9D56R.cjs → plus-Yub1c2YC.cjs} +2 -2
  165. package/dist/{plus-Dst9D56R.cjs.map → plus-Yub1c2YC.cjs.map} +1 -1
  166. package/dist/{plus-circle-filled-BzHtTqEN-MlKqJE8R.cjs → plus-circle-filled-BzHtTqEN-C4ZyKthn.cjs} +2 -2
  167. package/dist/{plus-circle-filled-BzHtTqEN-MlKqJE8R.cjs.map → plus-circle-filled-BzHtTqEN-C4ZyKthn.cjs.map} +1 -1
  168. package/dist/{plus-circle-outline-Cn2LRtln.cjs → plus-circle-outline-BRCXuItb.cjs} +2 -2
  169. package/dist/{plus-circle-outline-Cn2LRtln.cjs.map → plus-circle-outline-BRCXuItb.cjs.map} +1 -1
  170. package/dist/{recurring-DKNs9K3x-BwhLIgiK.cjs → recurring-DKNs9K3x-v-mZC-F-.cjs} +2 -2
  171. package/dist/{recurring-DKNs9K3x-BwhLIgiK.cjs.map → recurring-DKNs9K3x-v-mZC-F-.cjs.map} +1 -1
  172. package/dist/{reporting-D5ABpLO_-BVqGrbMc.cjs → reporting-D5ABpLO_-Gq5yUa4r.cjs} +2 -2
  173. package/dist/{reporting-D5ABpLO_-BVqGrbMc.cjs.map → reporting-D5ABpLO_-Gq5yUa4r.cjs.map} +1 -1
  174. package/dist/{revenue-accelerate-D7Sp0V4a-DuHKd8ZY.cjs → revenue-accelerate-D7Sp0V4a-BSgAdlmZ.cjs} +2 -2
  175. package/dist/{revenue-accelerate-D7Sp0V4a-DuHKd8ZY.cjs.map → revenue-accelerate-D7Sp0V4a-BSgAdlmZ.cjs.map} +1 -1
  176. package/dist/{review-D4TUjcWF-EfgRFwdM.cjs → review-D4TUjcWF-CcTTJF4o.cjs} +2 -2
  177. package/dist/{review-D4TUjcWF-EfgRFwdM.cjs.map → review-D4TUjcWF-CcTTJF4o.cjs.map} +1 -1
  178. package/dist/{save-BfqO2JBI-sEUn6ElU.cjs → save-BfqO2JBI-CALG11PV.cjs} +2 -2
  179. package/dist/{save-BfqO2JBI-sEUn6ElU.cjs.map → save-BfqO2JBI-CALG11PV.cjs.map} +1 -1
  180. package/dist/{search-DKTRGHv4.cjs → search-ChVq3JNj.cjs} +2 -2
  181. package/dist/{search-DKTRGHv4.cjs.map → search-ChVq3JNj.cjs.map} +1 -1
  182. package/dist/{search-Cmzbf5zI-C394FeJX.cjs → search-Cmzbf5zI-8_l6Dnt1.cjs} +2 -2
  183. package/dist/{search-Cmzbf5zI-C394FeJX.cjs.map → search-Cmzbf5zI-8_l6Dnt1.cjs.map} +1 -1
  184. package/dist/{show-IdbU1C6P-C7wKk09c.cjs → show-IdbU1C6P-CNkRcK4W.cjs} +2 -2
  185. package/dist/{show-IdbU1C6P-C7wKk09c.cjs.map → show-IdbU1C6P-CNkRcK4W.cjs.map} +1 -1
  186. package/dist/{solution-payments-DpyE_sdS-BpRkhF-a.cjs → solution-payments-DpyE_sdS-4e4HwyyV.cjs} +2 -2
  187. package/dist/{solution-payments-DpyE_sdS-BpRkhF-a.cjs.map → solution-payments-DpyE_sdS-4e4HwyyV.cjs.map} +1 -1
  188. package/dist/{square-DrBKRlf9.cjs → square-BpjORYsj.cjs} +2 -2
  189. package/dist/{square-DrBKRlf9.cjs.map → square-BpjORYsj.cjs.map} +1 -1
  190. package/dist/{square-small-fill-DY9Wz9Mv.cjs → square-small-fill-D_rNRXmy.cjs} +2 -2
  191. package/dist/{square-small-fill-DY9Wz9Mv.cjs.map → square-small-fill-D_rNRXmy.cjs.map} +1 -1
  192. package/dist/{store-Btc4GcmU-BzFVgVgi.cjs → store-Btc4GcmU-Bux6Cwso.cjs} +2 -2
  193. package/dist/{store-Btc4GcmU-BzFVgVgi.cjs.map → store-Btc4GcmU-Bux6Cwso.cjs.map} +1 -1
  194. package/dist/{terminal-1-D1pwXCoi-BMgYUSwC.cjs → terminal-1-D1pwXCoi-BASIqPTv.cjs} +2 -2
  195. package/dist/{terminal-1-D1pwXCoi-BMgYUSwC.cjs.map → terminal-1-D1pwXCoi-BASIqPTv.cjs.map} +1 -1
  196. package/dist/{trash-can-B2jdRAjC.cjs → trash-can-BPQfk_bM.cjs} +2 -2
  197. package/dist/{trash-can-B2jdRAjC.cjs.map → trash-can-BPQfk_bM.cjs.map} +1 -1
  198. package/dist/types/packages/domains/payouts/domain/src/PayoutDetails/types.d.ts +0 -1
  199. package/dist/types/packages/domains/payouts/domain/src/PayoutDetails/types.d.ts.map +1 -1
  200. package/dist/{upload-aHe0jvVd.cjs → upload-B-suhw1H.cjs} +2 -2
  201. package/dist/{upload-aHe0jvVd.cjs.map → upload-B-suhw1H.cjs.map} +1 -1
  202. package/dist/{upload-BmUXjsaU-C7dQ74MY.cjs → upload-BmUXjsaU-DabBfyQb.cjs} +2 -2
  203. package/dist/{upload-BmUXjsaU-C7dQ74MY.cjs.map → upload-BmUXjsaU-DabBfyQb.cjs.map} +1 -1
  204. package/dist/{warning-D7gEQEkQ.cjs → warning-8bJd6UAj.cjs} +2 -2
  205. package/dist/{warning-D7gEQEkQ.cjs.map → warning-8bJd6UAj.cjs.map} +1 -1
  206. package/dist/{warning-circle-fill-DBvt921B-S50tLsog.cjs → warning-circle-fill-DBvt921B-1nMm0OU1.cjs} +2 -2
  207. package/dist/{warning-circle-fill-DBvt921B-S50tLsog.cjs.map → warning-circle-fill-DBvt921B-1nMm0OU1.cjs.map} +1 -1
  208. package/dist/{warning-diamond-filled-Lb2od2ry-RLlYosbs.cjs → warning-diamond-filled-Lb2od2ry-BQRvOEYt.cjs} +2 -2
  209. package/dist/{warning-diamond-filled-Lb2od2ry-RLlYosbs.cjs.map → warning-diamond-filled-Lb2od2ry-BQRvOEYt.cjs.map} +1 -1
  210. package/dist/{warning-filled-B4gljtrz.cjs → warning-filled-BExJlPQb.cjs} +2 -2
  211. package/dist/{warning-filled-B4gljtrz.cjs.map → warning-filled-BExJlPQb.cjs.map} +1 -1
  212. package/dist/{webinar-m9nuFZBt-t4JsnhoS.cjs → webinar-m9nuFZBt-CgFoTSSX.cjs} +2 -2
  213. package/dist/{webinar-m9nuFZBt-t4JsnhoS.cjs.map → webinar-m9nuFZBt-CgFoTSSX.cjs.map} +1 -1
  214. package/dist/{yaml-CGptevkk-XUU9P5qn.cjs → yaml-CGptevkk-BJxxwJPs.cjs} +2 -2
  215. package/dist/{yaml-CGptevkk-XUU9P5qn.cjs.map → yaml-CGptevkk-BJxxwJPs.cjs.map} +1 -1
  216. package/package.json +6 -6
  217. package/dist/index-BAx0cyGA.cjs +0 -12
@@ -1,6 +1,6 @@
1
- "use strict";const a=require("./index-BAx0cyGA.cjs");function Ot(){return Ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ot.apply(this,arguments)}function is(t,e){if(t==null)return{};var n,r,s={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(s[n]=t[n]);return s}var Eo=["context","children"],Ao=["useFragment"];function No(t,e,n,r){function s(){var i,o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=t,r&&r.shadow?(o._root=o.attachShadow({mode:r.mode||"open",serializable:(i=r.serializable)!=null&&i}),r.adoptedStyleSheets&&(o._root.adoptedStyleSheets=r.adoptedStyleSheets)):o._root=o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=function(){Do.call(this,r)},s.prototype.attributeChangedCallback=Oo,s.prototype.disconnectedCallback=Ro,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),s.observedAttributes=n,t.formAssociated&&(s.formAssociated=!0),n.forEach(function(i){Object.defineProperty(s.prototype,i,{get:function(){return this._vdom?this._vdom.props[i]:this._props[i]},set:function(o){this._vdom?this.attributeChangedCallback(i,null,o):(this._props||(this._props={}),this._props[i]=o);var d=typeof o;o!=null&&d!=="string"&&d!=="boolean"&&d!=="number"||this.setAttribute(i,o)}})}),customElements.define(e||t.tagName||t.displayName||t.name,s),s}function Po(t){this.getChildContext=function(){return t.context};var e=t.children,n=is(t,Eo);return a.W(e,n)}function Do(t){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=a.k(Po,Ot({},this._props,{context:e.detail.context}),as(this,this._vdomComponent,t)),(this.hasAttribute("hydrate")?a.U:a.R)(this._vdom,this._root)}function os(t){return t.replace(/-(\w)/g,function(e,n){return n?n.toUpperCase():""})}function Oo(t,e,n){if(this._vdom){var r={};r[t]=n=n??void 0,r[os(t)]=n,this._vdom=a.W(this._vdom,r),a.R(this._vdom,this._root)}}function Ro(){a.R(this._vdom=null,this._root)}function fr(t,e){var n=this,r=t.useFragment,s=is(t,Ao);return a.k(r?a.S:"slot",Ot({},s,{ref:function(i){i?(n.ref=i,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=e},i.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function as(t,e,n){if(t.nodeType===3)return t.data;if(t.nodeType!==1)return null;var r=[],s={},i=0,o=t.attributes,d=t.childNodes;for(i=o.length;i--;)o[i].name!=="slot"&&(s[o[i].name]=o[i].value,s[os(o[i].name)]=o[i].value);for(i=d.length;i--;){var c=as(d[i],null,n),l=d[i].slot;l?s[l]=a.k(fr,{name:l},c):r[i]=c}var u=!(!n||!n.shadow),h=e?a.k(fr,{useFragment:!u},r):r;return!u&&e&&(t.innerHTML=""),a.k(e||t.nodeName.toLowerCase(),s,h)}const A=t=>typeof t=="string",ut=()=>{let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n},mr=t=>t==null?"":""+t,ko=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},xo=/###/g,pr=t=>t&&t.indexOf("###")>-1?t.replace(xo,"."):t,gr=t=>!t||A(t),ft=(t,e,n)=>{const r=A(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(gr(t))return{};const i=pr(r[s]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++s}return gr(t)?{}:{obj:t,k:pr(r[s])}},yr=(t,e,n)=>{const{obj:r,k:s}=ft(t,e,Object);if(r!==void 0||e.length===1){r[s]=n;return}let i=e[e.length-1],o=e.slice(0,e.length-1),d=ft(t,o,Object);for(;d.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),d=ft(t,o,Object),d?.obj&&typeof d.obj[`${d.k}.${i}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${i}`]=n},Co=(t,e,n,r)=>{const{obj:s,k:i}=ft(t,e,Object);s[i]=s[i]||[],s[i].push(n)},Rt=(t,e)=>{const{obj:n,k:r}=ft(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Mo=(t,e,n)=>{const r=Rt(t,n);return r!==void 0?r:Rt(e,n)},ds=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?A(t[r])||t[r]instanceof String||A(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):ds(t[r],e[r],n):t[r]=e[r]);return t},qe=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Lo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Fo=t=>A(t)?t.replace(/[&<>"'\/]/g,e=>Lo[e]):t;class Uo{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const Bo=[" ",",","?","!",";"],Vo=new Uo(20),qo=(t,e,n)=>{e=e||"",n=n||"";const r=Bo.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=Vo.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(t);if(!i){const o=t.indexOf(n);o>0&&!s.test(t.substring(0,o))&&(i=!0)}return i},mn=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let s=t;for(let i=0;i<r.length;){if(!s||typeof s!="object")return;let o,d="";for(let c=i;c<r.length;++c)if(c!==i&&(d+=n),d+=r[c],o=s[d],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;i+=c-i+1;break}s=o}return s},gt=t=>t?.replace(/_/g,"-"),jo={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class kt{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||jo,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,s){return s&&!this.debug?null:(A(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new kt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new kt(this.logger,e)}}var Te=new kt;class Ht{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s.apply(s,[e,...n])})}}class br extends Ht{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,s={}){const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;e.indexOf(".")>-1?d=e.split("."):(d=[e,n],r&&(Array.isArray(r)?d.push(...r):A(r)&&i?d.push(...r.split(i)):d.push(r)));const c=Rt(this.data,d);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=d[0],n=d[1],r=d.slice(2).join(".")),c||!o||!A(r)?c:mn(this.data?.[e]?.[n],r,i)}addResource(e,n,r,s,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let d=[e,n];r&&(d=d.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(d=e.split("."),s=n,n=d[1]),this.addNamespaces(n),yr(this.data,d,s),i.silent||this.emit("added",e,n,r,s)}addResources(e,n,r,s={silent:!1}){for(const i in r)(A(r[i])||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});s.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,s,i,o={silent:!1,skipCopy:!1}){let d=[e,n];e.indexOf(".")>-1&&(d=e.split("."),s=r,r=n,n=d[1]),this.addNamespaces(n);let c=Rt(this.data,d)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?ds(c,r,i):c={...c,...r},yr(this.data,d,c),o.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var cs={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,s){return t.forEach(i=>{e=this.processors[i]?.process(e,n,r,s)??e}),e}};const ls=Symbol("i18next/PATH_KEY");function zo(){const t=[],e=Object.create(null);let n;return e.get=(r,s)=>(n?.revoke?.(),s===ls?t:(t.push(s),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function et(t,e){const{[ls]:n}=t(zo()),r=e?.keySeparator??".",s=e?.nsSeparator??":";if(n.length>1&&s){const i=e?.ns,o=Array.isArray(i)?i:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${s}${n.slice(1).join(r)}`}return n.join(r)}const vr={},sn=t=>!A(t)&&typeof t!="boolean"&&typeof t!="number";class xt extends Ht{constructor(e,n={}){super(),ko(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Te.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const s=this.resolve(e,r);if(s?.res===void 0)return!1;const i=sn(s.res);return!(r.returnObjects===!1&&i)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,d=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!qo(e,r,s);if(o&&!d){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:A(i)?[i]:i};const l=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(s)}return{key:e,namespaces:A(i)?[i]:i}}translate(e,n,r){let s=typeof n=="object"?{...n}:n;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=et(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]),e=e.map(L=>typeof L=="function"?et(L,{...this.options,...s}):String(L));const i=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:d,namespaces:c}=this.extractFromKey(e[e.length-1],s),l=c[c.length-1];let u=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const h=s.lng||this.language,f=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return f?i?{res:`${l}${u}${d}`,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:`${l}${u}${d}`:i?{res:d,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:d;const m=this.resolve(e,s);let p=m?.res;const g=m?.usedKey||d,b=m?.exactUsedKey||d,y=["[object Number]","[object Function]","[object RegExp]"],_=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,T=s.count!==void 0&&!A(s.count),E=xt.hasDefaultValue(s),O=T?this.pluralResolver.getSuffix(h,s.count,s):"",w=s.ordinal&&T?this.pluralResolver.getSuffix(h,s.count,{ordinal:!1}):"",M=T&&!s.ordinal&&s.count===0,S=M&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${O}`]||s[`defaultValue${w}`]||s.defaultValue;let z=p;I&&!p&&E&&(z=S);const j=sn(z),B=Object.prototype.toString.apply(z);if(I&&z&&j&&y.indexOf(B)<0&&!(A(_)&&Array.isArray(z))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,z,{...s,ns:c}):`key '${d} (${this.language})' returned an object instead of string.`;return i?(m.res=L,m.usedParams=this.getUsedParamsDetails(s),m):L}if(o){const L=Array.isArray(z),V=L?[]:{},N=L?b:g;for(const x in z)if(Object.prototype.hasOwnProperty.call(z,x)){const K=`${N}${o}${x}`;E&&!p?V[x]=this.translate(K,{...s,defaultValue:sn(S)?S[x]:void 0,joinArrays:!1,ns:c}):V[x]=this.translate(K,{...s,joinArrays:!1,ns:c}),V[x]===K&&(V[x]=z[x])}p=V}}else if(I&&A(_)&&Array.isArray(p))p=p.join(_),p&&(p=this.extendTranslation(p,e,s,r));else{let L=!1,V=!1;!this.isValidLookup(p)&&E&&(L=!0,p=S),this.isValidLookup(p)||(V=!0,p=d);const x=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&V?void 0:p,K=E&&S!==p&&this.options.updateMissing;if(V||L||K){if(this.logger.log(K?"updateKey":"missingKey",h,l,d,K?S:p),o){const W=this.resolve(d,{...s,keySeparator:!1});W&&W.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.")}let F=[];const he=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&he&&he[0])for(let W=0;W<he.length;W++)F.push(he[W]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(s.lng||this.language):F.push(s.lng||this.language);const se=(W,fe,Ae)=>{const Oe=E&&Ae!==p?Ae:x;this.options.missingKeyHandler?this.options.missingKeyHandler(W,l,fe,Oe,K,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(W,l,fe,Oe,K,s),this.emit("missingKey",W,l,fe,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?F.forEach(W=>{const fe=this.pluralResolver.getSuffixes(W,s);M&&s[`defaultValue${this.options.pluralSeparator}zero`]&&fe.indexOf(`${this.options.pluralSeparator}zero`)<0&&fe.push(`${this.options.pluralSeparator}zero`),fe.forEach(Ae=>{se([W],d+Ae,s[`defaultValue${Ae}`]||S)})}):se(F,d,S))}p=this.extendTranslation(p,e,s,m,r),V&&p===d&&this.options.appendNamespaceToMissingKey&&(p=`${l}${u}${d}`),(V||L)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${d}`:d,L?p:void 0,s))}return i?(m.res=p,m.usedParams=this.getUsedParamsDetails(s),m):p}extendTranslation(e,n,r,s,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=A(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(c){const h=e.match(this.interpolator.nestingRegexp);l=h&&h.length}let u=r.replace&&!A(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||s.usedLng,r),c){const h=e.match(this.interpolator.nestingRegexp),f=h&&h.length;l<f&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...h)=>i?.[0]===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,d=A(o)?[o]:o;return e!=null&&d?.length&&r.applyPostProcessor!==!1&&(e=cs.handle(d,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,s,i,o,d;return A(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(c=>typeof c=="function"?et(c,{...this.options,...n}):c)),e.forEach(c=>{if(this.isValidLookup(r))return;const l=this.extractFromKey(c,n),u=l.key;s=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=n.count!==void 0&&!A(n.count),m=f&&!n.ordinal&&n.count===0,p=n.context!==void 0&&(A(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(d=b,!vr[`${g[0]}-${b}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(vr[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${d}" 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!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;o=y;const _=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(_,u,y,b,n);else{let T;f&&(T=this.pluralResolver.getSuffix(y,n.count,n));const E=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&T.indexOf(O)===0&&_.push(u+T.replace(O,this.options.pluralSeparator)),_.push(u+T),m&&_.push(u+E)),p){const w=`${u}${this.options.contextSeparator||"_"}${n.context}`;_.push(w),f&&(n.ordinal&&T.indexOf(O)===0&&_.push(w+T.replace(O,this.options.pluralSeparator)),_.push(w+T),m&&_.push(w+E))}}let I;for(;I=_.pop();)this.isValidLookup(r)||(i=I,r=this.getResource(y,b,I,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:d}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,s):this.resourceStore.getResource(e,n,r,s)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!A(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class _r{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Te.create("languageUtils")}getScriptPartFromCode(e){if(e=gt(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=gt(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(A(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return n=s;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),A(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return A(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(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))):A(e)&&i(this.formatLanguageCode(e)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}const Ir={zero:0,one:1,two:2,few:3,many:4,other:5},Sr={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class $o{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Te.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=gt(e==="dev"?"en":e),s=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Sr;if(!e.match(/-|_/))return Sr;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,n)}return this.pluralRulesCache[i]=o,o}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(s=>`${n}${s}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((s,i)=>Ir[s]-Ir[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,n,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const Tr=(t,e,n,r=".",s=!0)=>{let i=Mo(t,e,n);return!i&&s&&A(n)&&(i=mn(t,n,r),i===void 0&&(i=mn(e,n,r))),i},on=t=>t.replace(/\$/g,"$$$$");class wr{constructor(e={}){this.logger=Te.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:i,prefixEscaped:o,suffix:d,suffixEscaped:c,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:_}=e.interpolation;this.escape=n!==void 0?n:Fo,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?qe(i):o||"{{",this.suffix=d?qe(d):c||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?qe(f):m||qe("$t("),this.nestingSuffix=p?qe(p):g||qe(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=_!==void 0?_:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");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}`)}interpolate(e,n,r,s){let i,o,d;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=m=>{if(m.indexOf(this.formatSeparator)<0){const y=Tr(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...s,...n,interpolationkey:m}):y}const p=m.split(this.formatSeparator),g=p.shift().trim(),b=p.join(this.formatSeparator).trim();return this.format(Tr(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...s,...n,interpolationkey:g})};this.resetRegExp();const u=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>on(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?on(this.escape(m)):on(m)}].forEach(m=>{for(d=0;i=m.regex.exec(e);){const p=i[1].trim();if(o=l(p),o===void 0)if(typeof u=="function"){const b=u(e,i,s);o=A(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,p))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),o="";else!A(o)&&!this.useRawValueToEscape&&(o=mr(o));const g=m.safeValue(o);if(e=e.replace(i[0],g),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),e}nest(e,n,r={}){let s,i,o;const d=(c,l)=>{const u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;const h=c.split(new RegExp(`${qe(u)}[ ]*{`));let f=`{${h[1]}`;c=h[0],f=this.interpolate(f,o);const m=f.match(/'/g),p=f.match(/"/g);((m?.length??0)%2===0&&!p||(p?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),l&&(o={...l,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${u}${f}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;s=this.nestingRegexp.exec(e);){let c=[];o={...r},o=o.replace&&!A(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(l!==-1&&(c=s[1].slice(l).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),s[1]=s[1].slice(0,l)),i=n(d.call(this,s[1].trim(),o),o),i&&s[0]===e&&!A(i))return i;A(i)||(i=mr(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),c.length&&(i=c.reduce((u,h)=>this.format(u,h,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const Ho=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(o){const[d,...c]=o.split(":"),l=c.join(":").trim().replace(/^'+|'+$/g,""),u=d.trim();n[u]||(n[u]=l),l==="false"&&(n[u]=!1),l==="true"&&(n[u]=!0),isNaN(l)||(n[u]=parseInt(l,10))}})}return{formatName:e,formatOptions:n}},Er=t=>{const e={};return(n,r,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const o=r+JSON.stringify(i);let d=e[o];return d||(d=t(gt(r),s),e[o]=d),d(n)}},Ko=t=>(e,n,r)=>t(gt(n),r)(e);class Wo{constructor(e={}){this.logger=Te.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Er:Ko;this.formats={number:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i});return d=>o.format(d)}),currency:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i,style:"currency"});return d=>o.format(d)}),datetime:r((s,i)=>{const o=new Intl.DateTimeFormat(s,{...i});return d=>o.format(d)}),relativetime:r((s,i)=>{const o=new Intl.RelativeTimeFormat(s,{...i});return d=>o.format(d,i.range||"day")}),list:r((s,i)=>{const o=new Intl.ListFormat(s,{...i});return d=>o.format(d)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Er(n)}format(e,n,r,s={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(d=>d.indexOf(")")>-1)){const d=i.findIndex(c=>c.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,d)].join(this.formatSeparator)}return i.reduce((d,c)=>{const{formatName:l,formatOptions:u}=Ho(c);if(this.formats[l]){let h=d;try{const f=s?.formatParams?.[s.interpolationkey]||{},m=f.locale||f.lng||s.locale||s.lng||r;h=this.formats[l](d,m,{...u,...s,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${l}`);return d},e)}}const Go=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Yo extends Ht{constructor(e,n,r,s={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Te.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,s.backend,s)}queueLoad(e,n,r,s){const i={},o={},d={},c={};return e.forEach(l=>{let u=!0;n.forEach(h=>{const f=`${l}|${h}`;!r.reload&&this.store.hasResourceBundle(l,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,u=!1,o[f]===void 0&&(o[f]=!0),i[f]===void 0&&(i[f]=!0),c[h]===void 0&&(c[h]=!0)))}),u||(d[l]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const s=e.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const d={};this.queue.forEach(c=>{Co(c.loaded,[i],o),Go(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(l=>{d[l]||(d[l]={});const u=c.loaded[l];u.length&&u.forEach(h=>{d[l][h]===void 0&&(d[l][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r,s=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const d=(l,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(l&&u&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,s+1,i*2,o)},i);return}o(l,u)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const l=c(e,n);l&&typeof l.then=="function"?l.then(u=>d(null,u)).catch(d):d(null,l)}catch(l){d(l)}return}return c(e,n,d)}prepareLoading(e,n,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();A(e)&&(e=this.languageUtils.toResolveHierarchy(e)),A(n)&&(n=[n]);const i=this.queueLoad(e,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,d)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&d&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,d),this.loaded(e,o,d)})}saveMissing(e,n,r,s,i,o={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let u;l.length===5?u=l(e,n,r,s,c):u=l(e,n,r,s),u&&typeof u.then=="function"?u.then(h=>d(null,h)).catch(d):d(null,u)}catch(u){d(u)}else l(e,n,r,s,d,c)}!e||!e[0]||this.store.addResource(e[0],n,r,s)}}}const an=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),A(t[1])&&(e.defaultValue=t[1]),A(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ar=t=>(A(t.ns)&&(t.ns=[t.ns]),A(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),A(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Tt=()=>{},Xo=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},us="__i18next_supportNoticeShown",Qo=()=>!!(typeof globalThis<"u"&&globalThis[us]||typeof process<"u"&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&process.env&&process.env.NODE_ENV==="production"),Jo=()=>{typeof globalThis<"u"&&(globalThis[us]=!0)},Zo=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||t?.options?.backend?.projectId||t?.options?.backend?.backendOptions&&t.options.backend.backendOptions.some(e=>e?.projectId));class mt extends Ht{constructor(e={},n){if(super(),this.options=Ar(e),this.services={},this.logger=Te,this.modules={external:[]},Xo(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(A(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=an();this.options={...r,...this.options,...Ar(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},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=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Zo(this)&&!Qo()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Jo());const s=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?Te.init(s(this.modules.logger),this.options):Te.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:l=Wo;const u=new _r(this.options);this.store=new br(this.options.resources,this.options);const h=this.services;h.logger=Te,h.resourceStore=this.store,h.languageUtils=u,h.pluralResolver=new $o(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),l&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=s(l),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new wr(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Yo(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(m,...p)=>{this.emit(m,...p)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new xt(this.services,this.options),this.translator.on("*",(m,...p)=>{this.emit(m,...p)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Tt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=(...u)=>this.store[l](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=(...u)=>(this.store[l](...u),this)});const d=ut(),c=()=>{const l=(u,h)=>{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),d.resolve(h),n(u,h)};if(this.languages&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),d}loadResources(e,n=Tt){let r=n;const s=A(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(l=>{l!=="cimode"&&i.indexOf(l)<0&&i.push(l)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>o(c)),this.options.preload?.forEach?.(d=>o(d)),this.services.backendConnector.load(i,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(e,n,r){const s=ut();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Tt),this.services.backendConnector.reload(e,n,i=>{s.resolve(),r(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");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"&&cs.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=ut();this.emit("languageChanging",e);const s=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},i=(d,c)=>{c?this.isLanguageChangingTo===e&&(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...l)=>this.t(...l)),n&&n(d,(...l)=>this.t(...l))},o=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const c=A(d)?d:d&&d[0],l=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(A(d)?[d]:d);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector?.cacheUserLanguage?.(l)),this.loadResources(l,u=>{i(u,l)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,r){const s=(i,o,...d)=>{let c;typeof o!="object"?c=this.options.overloadTranslationOptionHandler([i,o].concat(d)):c={...o},c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const l={...this.options,...c};typeof c.keyPrefix=="function"&&(c.keyPrefix=et(c.keyPrefix,l));const u=this.options.keySeparator||".";let h;return c.keyPrefix&&Array.isArray(i)?h=i.map(f=>(typeof f=="function"&&(f=et(f,l)),`${c.keyPrefix}${u}${f}`)):(typeof i=="function"&&(i=et(i,l)),h=c.keyPrefix?`${c.keyPrefix}${u}${i}`:i),this.t(h,c)};return A(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(d,c)=>{const l=this.services.backendConnector.state[`${d}|${c}`];return l===-1||l===0||l===2};if(n.precheck){const d=n.precheck(this,o);if(d!==void 0)return d}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}loadNamespaces(e,n){const r=ut();return this.options.ns?(A(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=ut();A(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const s=new Intl.Locale(e);if(s&&s.getTextInfo){const i=s.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new _r(an());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new mt(e,n);return r.createInstance=mt.createInstance,r}cloneInstance(e={},n=Tt){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new mt(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(d=>{i[d]=this[d]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const d=Object.keys(this.store.data).reduce((c,l)=>(c[l]={...this.store.data[l]},c[l]=Object.keys(c[l]).reduce((u,h)=>(u[h]={...c[l][h]},u),c[l]),c),{});i.store=new br(d,s),i.services.resourceStore=i.store}if(e.interpolation){const c={...an().interpolation,...this.options.interpolation,...e.interpolation},l={...s,interpolation:c};i.services.interpolator=new wr(l)}return i.translator=new xt(i.services,s),i.translator.on("*",(d,...c)=>{i.emit(d,...c)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ne=mt.createInstance();ne.createInstance;ne.dir;ne.init;ne.loadResources;ne.reloadResources;ne.use;ne.changeLanguage;ne.getFixedT;ne.t;ne.exists;ne.setDefaultNamespace;ne.hasLoadedNamespace;ne.loadNamespaces;ne.loadLanguages;var nt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ea=class extends nt{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Dn=new ea,ta={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},na=class{#e=ta;#t=!1;setTimeoutProvider(t){process.env.NODE_ENV!=="production"&&this.#t&&t!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:t}),this.#e=t,process.env.NODE_ENV!=="production"&&(this.#t=!1)}setTimeout(t,e){return process.env.NODE_ENV!=="production"&&(this.#t=!0),this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return process.env.NODE_ENV!=="production"&&(this.#t=!0),this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},$e=new na;function ra(t){setTimeout(t,0)}var sa=typeof window>"u"||"Deno"in globalThis;function ee(){}function ia(t,e){return typeof t=="function"?t(e):t}function pn(t){return typeof t=="number"&&t>=0&&t!==1/0}function hs(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ce(t,e){return typeof t=="function"?t(e):t}function ce(t,e){return typeof t=="function"?t(e):t}function Nr(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:d}=t;if(o){if(r){if(e.queryHash!==On(o,e.options))return!1}else if(!yt(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||s&&s!==e.state.fetchStatus||i&&!i(e))}function Pr(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(Ke(e.options.mutationKey)!==Ke(i))return!1}else if(!yt(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function On(t,e){return(e?.queryKeyHashFn||Ke)(t)}function Ke(t){return JSON.stringify(t,(e,n)=>yn(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function yt(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>yt(t[n],e[n])):!1}var oa=Object.prototype.hasOwnProperty;function gn(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=Dr(t)&&Dr(e);if(!r&&!(yn(t)&&yn(e)))return e;const i=(r?t:Object.keys(t)).length,o=r?e:Object.keys(e),d=o.length,c=r?new Array(d):{};let l=0;for(let u=0;u<d;u++){const h=r?u:o[u],f=t[h],m=e[h];if(f===m){c[h]=f,(r?u<i:oa.call(t,h))&&l++;continue}if(f===null||m===null||typeof f!="object"||typeof m!="object"){c[h]=m;continue}const p=gn(f,m,n+1);c[h]=p,p===f&&l++}return i===d&&l===i?t:c}function Ct(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Dr(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function yn(t){if(!Or(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Or(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Or(t){return Object.prototype.toString.call(t)==="[object Object]"}function aa(t){return new Promise(e=>{$e.setTimeout(e,t)})}function bn(t,e,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(t,e);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return gn(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return gn(t,e)}return e}function da(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function ca(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Ne=Symbol();function fs(t,e){return process.env.NODE_ENV!=="production"&&t.queryFn===Ne&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Ne?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ms(t,e){return typeof t=="function"?t(...e):!!t}function la(t,e,n){let r=!1,s;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??=e(),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),t}var bt=(()=>{let t=()=>sa;return{isServer(){return t()},setIsServer(e){t=e}}})();function vn(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}var ua=ra;function ha(){let t=[],e=0,n=d=>{d()},r=d=>{d()},s=ua;const i=d=>{e?t.push(d):s(()=>{n(d)})},o=()=>{const d=t;t=[],d.length&&s(()=>{r(()=>{d.forEach(c=>{n(c)})})})};return{batch:d=>{let c;e++;try{c=d()}finally{e--,e||o()}return c},batchCalls:d=>(...c)=>{i(()=>{d(...c)})},schedule:i,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{s=d}}}var X=ha(),fa=class extends nt{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},Mt=new fa;function ma(t){return Math.min(1e3*2**t,3e4)}function ps(t){return(t??"online")==="online"?Mt.isOnline():!0}var _n=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function gs(t){let e=!1,n=0,r;const s=vn(),i=()=>s.status!=="pending",o=g=>{if(!i()){const b=new _n(g);f(b),t.onCancel?.(b)}},d=()=>{e=!0},c=()=>{e=!1},l=()=>Dn.isFocused()&&(t.networkMode==="always"||Mt.isOnline())&&t.canRun(),u=()=>ps(t.networkMode)&&t.canRun(),h=g=>{i()||(r?.(),s.resolve(g))},f=g=>{i()||(r?.(),s.reject(g))},m=()=>new Promise(g=>{r=b=>{(i()||l())&&g(b)},t.onPause?.()}).then(()=>{r=void 0,i()||t.onContinue?.()}),p=()=>{if(i())return;let g;const b=n===0?t.initialPromise:void 0;try{g=b??t.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(h).catch(y=>{if(i())return;const _=t.retry??(bt.isServer()?0:3),I=t.retryDelay??ma,T=typeof I=="function"?I(n,y):I,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,y);if(e||!E){f(y);return}n++,t.onFail?.(n,y),aa(T).then(()=>l()?void 0:m()).then(()=>{e?f(y):p()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r?.(),s),cancelRetry:d,continueRetry:c,canStart:u,start:()=>(u()?p():m().then(p),s)}}var ys=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pn(this.gcTime)&&(this.#e=$e.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(bt.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&($e.clearTimeout(this.#e),this.#e=void 0)}},pa=class extends ys{#e;#t;#n;#s;#r;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#n=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=kr(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=kr(this.options);e.data!==void 0&&(this.setState(Rr(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=bn(this.state.data,t,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#d({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(ee).catch(ee):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ce(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ne||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ce(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!hs(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#o||this.#a()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#a(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(c=>c.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const d=fs(this.options,e),l=(()=>{const u={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#o=!1,this.options.persister?this.options.persister(d,l,this):d(l)},o=(()=>{const d={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return r(d),d})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#d({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=gs({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:d=>{d instanceof _n&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(d,c)=>{this.#d({type:"failed",failureCount:d,error:c})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof _n){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#d({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#d(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...bs(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,...Rr(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?r:void 0,r;case"error":const s=t.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),X.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function bs(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ps(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Rr(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function kr(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ga=class extends nt{constructor(t,e){super(),this.options=e,this.#e=t,this.#a=null,this.#o=vn(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#s=void 0;#r;#i;#o;#a;#d;#f;#m;#l;#u;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xr(this.#t,this.options)?this.#h():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return In(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return In(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#I(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ce(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!Ct(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Cr(this.#t,n,this.options,e)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ce(this.options.enabled,this.#t)!==ce(e.enabled,this.#t)||Ce(this.options.staleTime,this.#t)!==Ce(e.staleTime,this.#t))&&this.#g();const s=this.#y();r&&(this.#t!==n||ce(this.options.enabled,this.#t)!==ce(e.enabled,this.#t)||s!==this.#c)&&this.#b(s)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return ba(this,n)&&(this.#s=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#s}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#h({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#h(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(ee)),e}#g(){this.#_();const t=Ce(this.options.staleTime,this.#t);if(bt.isServer()||this.#s.isStale||!pn(t))return;const n=hs(this.#s.dataUpdatedAt,t)+1;this.#l=$e.setTimeout(()=>{this.#s.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#I(),this.#c=t,!(bt.isServer()||ce(this.options.enabled,this.#t)===!1||!pn(this.#c)||this.#c===0)&&(this.#u=$e.setInterval(()=>{(this.options.refetchIntervalInBackground||Dn.isFocused())&&this.#h()},this.#c))}#v(){this.#g(),this.#b(this.#y())}#_(){this.#l&&($e.clearTimeout(this.#l),this.#l=void 0)}#I(){this.#u&&($e.clearInterval(this.#u),this.#u=void 0)}createResult(t,e){const n=this.#t,r=this.options,s=this.#s,i=this.#r,o=this.#i,c=t!==n?t.state:this.#n,{state:l}=t;let u={...l},h=!1,f;if(e._optimisticResults){const M=this.hasListeners(),S=!M&&xr(t,e),z=M&&Cr(t,n,e,r);(S||z)&&(u={...u,...bs(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:g}=u;f=u.data;let b=!1;if(e.placeholderData!==void 0&&f===void 0&&g==="pending"){let M;s?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(M=s.data,b=!0):M=typeof e.placeholderData=="function"?e.placeholderData(this.#m?.state.data,this.#m):e.placeholderData,M!==void 0&&(g="success",f=bn(s?.data,M,e),h=!0)}if(e.select&&f!==void 0&&!b)if(s&&f===i?.data&&e.select===this.#d)f=this.#f;else try{this.#d=e.select,f=e.select(f),f=bn(s?.data,f,e),this.#f=f,this.#a=null}catch(M){this.#a=M}this.#a&&(m=this.#a,f=this.#f,p=Date.now(),g="error");const y=u.fetchStatus==="fetching",_=g==="pending",I=g==="error",T=_&&y,E=f!==void 0,w={status:g,fetchStatus:u.fetchStatus,isPending:_,isSuccess:g==="success",isError:I,isInitialLoading:T,isLoading:T,data:f,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!_,isLoadingError:I&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:I&&E,isStale:Rn(t,e),refetch:this.refetch,promise:this.#o,isEnabled:ce(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=w.data!==void 0,S=w.status==="error"&&!M,z=L=>{S?L.reject(w.error):M&&L.resolve(w.data)},j=()=>{const L=this.#o=w.promise=vn();z(L)},B=this.#o;switch(B.status){case"pending":t.queryHash===n.queryHash&&z(B);break;case"fulfilled":(S||w.data!==B.value)&&j();break;case"rejected":(!S||w.error!==B.reason)&&j();break}}return w}updateResult(){const t=this.#s,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#m=this.#t),Ct(e,t))return;this.#s=e;const n=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,s=typeof r=="function"?r():r;if(s==="all"||!s&&!this.#p.size)return!0;const i=new Set(s??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(o=>{const d=o;return this.#s[d]!==t[d]&&i.has(d)})};this.#T({listeners:n()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#T(t){X.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ya(t,e){return ce(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function xr(t,e){return ya(t,e)||t.state.data!==void 0&&In(t,e,e.refetchOnMount)}function In(t,e,n){if(ce(e.enabled,t)!==!1&&Ce(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Rn(t,e)}return!1}function Cr(t,e,n,r){return(t!==e||ce(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Rn(t,n)}function Rn(t,e){return ce(e.enabled,t)!==!1&&t.isStaleByTime(Ce(e.staleTime,t))}function ba(t,e){return!Ct(t.getCurrentResult(),e)}function Mr(t){return{onFetch:(e,n)=>{const r=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const h=p=>{la(p,()=>e.signal,()=>u=!0)},f=fs(e.options,e.fetchOptions),m=async(p,g,b)=>{if(u)return Promise.reject();if(g==null&&p.pages.length)return Promise.resolve(p);const _=(()=>{const O={client:e.client,queryKey:e.queryKey,pageParam:g,direction:b?"backward":"forward",meta:e.options.meta};return h(O),O})(),I=await f(_),{maxPages:T}=e.options,E=b?ca:da;return{pages:E(p.pages,I,T),pageParams:E(p.pageParams,g,T)}};if(s&&i.length){const p=s==="backward",g=p?va:Lr,b={pages:i,pageParams:o},y=g(r,b);d=await m(b,y,p)}else{const p=t??i.length;do{const g=c===0?o[0]??r.initialPageParam:Lr(r,d);if(c>0&&g==null)break;d=await m(d,g),c++}while(c<p)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=l}}}function Lr(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function va(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var _a=class extends ys{#e;#t;#n;#s;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||vs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=gs({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#r({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)e();else{this.#r({type:"pending",variables:t,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const o=await this.options.onMutate?.(t,n);o!==this.state.context&&this.#r({type:"pending",context:o,variables:t,isPaused:s})}const i=await this.#s.start();return await this.#n.config.onSuccess?.(i,t,this.state.context,this,n),await this.options.onSuccess?.(i,t,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,t,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{await this.#n.config.onError?.(i,t,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onError?.(i,t,this.state.context,n)}catch(o){Promise.reject(o)}try{await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onSettled?.(void 0,i,t,this.state.context,n)}catch(o){Promise.reject(o)}throw this.#r({type:"error",error:i}),i}finally{this.#n.runNext(this)}}#r(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),X.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function vs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ia=class extends nt{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const r=new _a({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);const e=wt(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=wt(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=wt(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(s=>s.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=wt(t);return typeof e=="string"?this.#t.get(e)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){X.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>Pr(e,n))}findAll(t={}){return this.getAll().filter(e=>Pr(t,e))}notify(t){X.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return X.batch(()=>Promise.all(t.map(e=>e.continue().catch(ee))))}};function wt(t){return t.options.scope?.id}var Sa=class extends nt{#e;#t=void 0;#n;#s;constructor(t,e){super(),this.#e=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const e=this.options;this.options=this.#e.defaultMutationOptions(t),Ct(this.options,e)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),e?.mutationKey&&this.options.mutationKey&&Ke(e.mutationKey)!==Ke(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,e){return this.#s=e,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??vs();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){X.batch(()=>{if(this.#s&&this.hasListeners()){const e=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#s.onSuccess?.(t.data,e,n,r)}catch(s){Promise.reject(s)}try{this.#s.onSettled?.(t.data,null,e,n,r)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#s.onError?.(t.error,e,n,r)}catch(s){Promise.reject(s)}try{this.#s.onSettled?.(void 0,t.error,e,n,r)}catch(s){Promise.reject(s)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Ta=class extends nt{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const r=e.queryKey,s=e.queryHash??On(r,e);let i=this.get(s);return i||(i=new pa({client:t,queryKey:r,queryHash:s,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){X.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>Nr(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>Nr(t,n)):e}notify(t){X.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){X.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){X.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wa=class{#e;#t;#n;#s;#r;#i;#o;#a;constructor(e={}){this.#e=e.queryCache||new Ta,this.#t=e.mutationCache||new Ia,this.#n=e.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Dn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Mt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ce(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(e,n,r){const s=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(s.queryHash)?.state.data,d=ia(n,o);if(d!==void 0)return this.#e.build(this,s).setData(d,{...r,manual:!0})}setQueriesData(e,n,r){return X.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;X.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return X.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},s=X.batch(()=>this.#e.findAll(e).map(i=>i.cancel(r)));return Promise.all(s).then(ee).catch(ee)}invalidateQueries(e,n={}){return X.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=X.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(ee)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(ee)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Ce(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ee).catch(ee)}fetchInfiniteQuery(e){return e.behavior=Mr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ee).catch(ee)}ensureInfiniteQueryData(e){return e.behavior=Mr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mt.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#s.set(Ke(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#s.values()],r={};return n.forEach(s=>{yt(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(Ke(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(s=>{yt(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=On(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Ne&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},_s=a.X(!1),Ea=()=>a.x(_s);_s.Provider;var Is=a.X(void 0),Kt=t=>{const e=a.x(Is);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Aa=({client:t,children:e})=>(a.y(()=>(t.mount(),()=>{t.unmount()}),[t]),a.u(Is.Provider,{value:t,children:e}));function Na(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Pa=a.X(Na()),Da=()=>a.x(Pa),Oa=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Ra=t=>{a.y(()=>{t.clearReset()},[t])},ka=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(s&&t.data===void 0||ms(n,[t.error,r])),xa=t=>{if(t.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ca=(t,e)=>t.isLoading&&t.isFetching&&!e,Ma=(t,e)=>t?.suspense&&e.isPending,Fr=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Ss(t,e){const n=e(),[{_instance:r},s]=a.d({_instance:{_value:n,_getSnapshot:e}});return a._(()=>{r._value=n,r._getSnapshot=e,dn(r)&&s({_instance:r})},[t,n,e]),a.y(()=>(dn(r)&&s({_instance:r}),t(()=>{dn(r)&&s({_instance:r})})),[t]),n}function dn(t){const e=t._getSnapshot,n=t._value;try{const r=e();return!Object.is(n,r)}catch{return!0}}function La(t,e,n){if(process.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ea(),s=Da(),i=Kt(),o=i.defaultQueryOptions(t);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),process.env.NODE_ENV!=="production"&&(o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),o._optimisticResults=r?"isRestoring":"optimistic",xa(o),Oa(o,s),Ra(s);const d=!i.getQueryCache().get(o.queryHash),[c]=a.d(()=>new e(i,o)),l=c.getOptimisticResult(o),u=!r&&t.subscribed!==!1;if(Ss(a.q(h=>{const f=u?c.subscribe(X.batchCalls(h)):ee;return c.updateResult(),f},[c,u]),()=>c.getCurrentResult()),a.y(()=>{c.setOptions(o)},[o,c]),Ma(o,l))throw Fr(o,c,s);if(ka({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,l),o.experimental_prefetchInRender&&!bt.isServer()&&Ca(l,r)&&(d?Fr(o,c,s):i.getQueryCache().get(o.queryHash)?.promise)?.catch(ee).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?l:c.trackResult(l)}function rt(t,e){return La(t,ga)}function Ts(t,e){const n=Kt(),[r]=a.d(()=>new Sa(n,t));a.y(()=>{r.setOptions(t)},[r,t]);const s=Ss(a.q(o=>r.subscribe(X.batchCalls(o)),[r]),()=>r.getCurrentResult()),i=a.q((o,d)=>{r.mutate(o,d).catch(ee)},[r]);if(s.error&&ms(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}const Fa=({name:t,children:e,from:n})=>{const r=(Array.isArray(n)?n:[n]).find(s=>s?.props?.slot===t);return r?.type==="template"?r.props.children:r??e},Ua=(t,e)=>(Array.isArray(e)?e:[e]).some(n=>n?.props?.slot===t),Ba=(t,e,{throws:n,inComponent:r})=>{if(process.env.NODE_ENV!=="development"||t===void 0)return;const s=[],i=Array.isArray(t)?t:[t],o=r?`, defined in '${r.name}',`:"",d=`Valid slot names are: ${e.join(", ")}
1
+ "use strict";const a=require("./index-1fcV27aR.cjs");function Ot(){return Ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ot.apply(this,arguments)}function is(t,e){if(t==null)return{};var n,r,s={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(s[n]=t[n]);return s}var Eo=["context","children"],Ao=["useFragment"];function No(t,e,n,r){function s(){var i,o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=t,r&&r.shadow?(o._root=o.attachShadow({mode:r.mode||"open",serializable:(i=r.serializable)!=null&&i}),r.adoptedStyleSheets&&(o._root.adoptedStyleSheets=r.adoptedStyleSheets)):o._root=o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=function(){Do.call(this,r)},s.prototype.attributeChangedCallback=Oo,s.prototype.disconnectedCallback=Ro,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),s.observedAttributes=n,t.formAssociated&&(s.formAssociated=!0),n.forEach(function(i){Object.defineProperty(s.prototype,i,{get:function(){return this._vdom?this._vdom.props[i]:this._props[i]},set:function(o){this._vdom?this.attributeChangedCallback(i,null,o):(this._props||(this._props={}),this._props[i]=o);var d=typeof o;o!=null&&d!=="string"&&d!=="boolean"&&d!=="number"||this.setAttribute(i,o)}})}),customElements.define(e||t.tagName||t.displayName||t.name,s),s}function Po(t){this.getChildContext=function(){return t.context};var e=t.children,n=is(t,Eo);return a.W(e,n)}function Do(t){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=a.k(Po,Ot({},this._props,{context:e.detail.context}),as(this,this._vdomComponent,t)),(this.hasAttribute("hydrate")?a.U:a.R)(this._vdom,this._root)}function os(t){return t.replace(/-(\w)/g,function(e,n){return n?n.toUpperCase():""})}function Oo(t,e,n){if(this._vdom){var r={};r[t]=n=n??void 0,r[os(t)]=n,this._vdom=a.W(this._vdom,r),a.R(this._vdom,this._root)}}function Ro(){a.R(this._vdom=null,this._root)}function fr(t,e){var n=this,r=t.useFragment,s=is(t,Ao);return a.k(r?a.S:"slot",Ot({},s,{ref:function(i){i?(n.ref=i,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=e},i.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function as(t,e,n){if(t.nodeType===3)return t.data;if(t.nodeType!==1)return null;var r=[],s={},i=0,o=t.attributes,d=t.childNodes;for(i=o.length;i--;)o[i].name!=="slot"&&(s[o[i].name]=o[i].value,s[os(o[i].name)]=o[i].value);for(i=d.length;i--;){var c=as(d[i],null,n),l=d[i].slot;l?s[l]=a.k(fr,{name:l},c):r[i]=c}var u=!(!n||!n.shadow),h=e?a.k(fr,{useFragment:!u},r):r;return!u&&e&&(t.innerHTML=""),a.k(e||t.nodeName.toLowerCase(),s,h)}const A=t=>typeof t=="string",ut=()=>{let t,e;const n=new Promise((r,s)=>{t=r,e=s});return n.resolve=t,n.reject=e,n},mr=t=>t==null?"":""+t,ko=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},xo=/###/g,pr=t=>t&&t.indexOf("###")>-1?t.replace(xo,"."):t,gr=t=>!t||A(t),ft=(t,e,n)=>{const r=A(e)?e.split("."):e;let s=0;for(;s<r.length-1;){if(gr(t))return{};const i=pr(r[s]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++s}return gr(t)?{}:{obj:t,k:pr(r[s])}},yr=(t,e,n)=>{const{obj:r,k:s}=ft(t,e,Object);if(r!==void 0||e.length===1){r[s]=n;return}let i=e[e.length-1],o=e.slice(0,e.length-1),d=ft(t,o,Object);for(;d.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),d=ft(t,o,Object),d?.obj&&typeof d.obj[`${d.k}.${i}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${i}`]=n},Co=(t,e,n,r)=>{const{obj:s,k:i}=ft(t,e,Object);s[i]=s[i]||[],s[i].push(n)},Rt=(t,e)=>{const{obj:n,k:r}=ft(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Mo=(t,e,n)=>{const r=Rt(t,n);return r!==void 0?r:Rt(e,n)},ds=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?A(t[r])||t[r]instanceof String||A(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):ds(t[r],e[r],n):t[r]=e[r]);return t},qe=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Lo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Fo=t=>A(t)?t.replace(/[&<>"'\/]/g,e=>Lo[e]):t;class Uo{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const Bo=[" ",",","?","!",";"],Vo=new Uo(20),qo=(t,e,n)=>{e=e||"",n=n||"";const r=Bo.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=Vo.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(t);if(!i){const o=t.indexOf(n);o>0&&!s.test(t.substring(0,o))&&(i=!0)}return i},mn=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let s=t;for(let i=0;i<r.length;){if(!s||typeof s!="object")return;let o,d="";for(let c=i;c<r.length;++c)if(c!==i&&(d+=n),d+=r[c],o=s[d],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;i+=c-i+1;break}s=o}return s},gt=t=>t?.replace(/_/g,"-"),jo={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class kt{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||jo,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,s){return s&&!this.debug?null:(A(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new kt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new kt(this.logger,e)}}var Te=new kt;class Ht{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s.apply(s,[e,...n])})}}class br extends Ht{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,s={}){const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;e.indexOf(".")>-1?d=e.split("."):(d=[e,n],r&&(Array.isArray(r)?d.push(...r):A(r)&&i?d.push(...r.split(i)):d.push(r)));const c=Rt(this.data,d);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=d[0],n=d[1],r=d.slice(2).join(".")),c||!o||!A(r)?c:mn(this.data?.[e]?.[n],r,i)}addResource(e,n,r,s,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let d=[e,n];r&&(d=d.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(d=e.split("."),s=n,n=d[1]),this.addNamespaces(n),yr(this.data,d,s),i.silent||this.emit("added",e,n,r,s)}addResources(e,n,r,s={silent:!1}){for(const i in r)(A(r[i])||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});s.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,s,i,o={silent:!1,skipCopy:!1}){let d=[e,n];e.indexOf(".")>-1&&(d=e.split("."),s=r,r=n,n=d[1]),this.addNamespaces(n);let c=Rt(this.data,d)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?ds(c,r,i):c={...c,...r},yr(this.data,d,c),o.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var cs={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,s){return t.forEach(i=>{e=this.processors[i]?.process(e,n,r,s)??e}),e}};const ls=Symbol("i18next/PATH_KEY");function zo(){const t=[],e=Object.create(null);let n;return e.get=(r,s)=>(n?.revoke?.(),s===ls?t:(t.push(s),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function et(t,e){const{[ls]:n}=t(zo()),r=e?.keySeparator??".",s=e?.nsSeparator??":";if(n.length>1&&s){const i=e?.ns,o=Array.isArray(i)?i:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${s}${n.slice(1).join(r)}`}return n.join(r)}const vr={},sn=t=>!A(t)&&typeof t!="boolean"&&typeof t!="number";class xt extends Ht{constructor(e,n={}){super(),ko(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Te.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const s=this.resolve(e,r);if(s?.res===void 0)return!1;const i=sn(s.res);return!(r.returnObjects===!1&&i)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,d=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!qo(e,r,s);if(o&&!d){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:A(i)?[i]:i};const l=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(s)}return{key:e,namespaces:A(i)?[i]:i}}translate(e,n,r){let s=typeof n=="object"?{...n}:n;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=et(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]),e=e.map(L=>typeof L=="function"?et(L,{...this.options,...s}):String(L));const i=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:d,namespaces:c}=this.extractFromKey(e[e.length-1],s),l=c[c.length-1];let u=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const h=s.lng||this.language,f=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return f?i?{res:`${l}${u}${d}`,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:`${l}${u}${d}`:i?{res:d,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:d;const m=this.resolve(e,s);let p=m?.res;const g=m?.usedKey||d,b=m?.exactUsedKey||d,y=["[object Number]","[object Function]","[object RegExp]"],_=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,T=s.count!==void 0&&!A(s.count),E=xt.hasDefaultValue(s),O=T?this.pluralResolver.getSuffix(h,s.count,s):"",w=s.ordinal&&T?this.pluralResolver.getSuffix(h,s.count,{ordinal:!1}):"",M=T&&!s.ordinal&&s.count===0,S=M&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${O}`]||s[`defaultValue${w}`]||s.defaultValue;let z=p;I&&!p&&E&&(z=S);const j=sn(z),B=Object.prototype.toString.apply(z);if(I&&z&&j&&y.indexOf(B)<0&&!(A(_)&&Array.isArray(z))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,z,{...s,ns:c}):`key '${d} (${this.language})' returned an object instead of string.`;return i?(m.res=L,m.usedParams=this.getUsedParamsDetails(s),m):L}if(o){const L=Array.isArray(z),V=L?[]:{},N=L?b:g;for(const x in z)if(Object.prototype.hasOwnProperty.call(z,x)){const K=`${N}${o}${x}`;E&&!p?V[x]=this.translate(K,{...s,defaultValue:sn(S)?S[x]:void 0,joinArrays:!1,ns:c}):V[x]=this.translate(K,{...s,joinArrays:!1,ns:c}),V[x]===K&&(V[x]=z[x])}p=V}}else if(I&&A(_)&&Array.isArray(p))p=p.join(_),p&&(p=this.extendTranslation(p,e,s,r));else{let L=!1,V=!1;!this.isValidLookup(p)&&E&&(L=!0,p=S),this.isValidLookup(p)||(V=!0,p=d);const x=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&V?void 0:p,K=E&&S!==p&&this.options.updateMissing;if(V||L||K){if(this.logger.log(K?"updateKey":"missingKey",h,l,d,K?S:p),o){const W=this.resolve(d,{...s,keySeparator:!1});W&&W.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.")}let F=[];const he=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&he&&he[0])for(let W=0;W<he.length;W++)F.push(he[W]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(s.lng||this.language):F.push(s.lng||this.language);const se=(W,fe,Ae)=>{const Oe=E&&Ae!==p?Ae:x;this.options.missingKeyHandler?this.options.missingKeyHandler(W,l,fe,Oe,K,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(W,l,fe,Oe,K,s),this.emit("missingKey",W,l,fe,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?F.forEach(W=>{const fe=this.pluralResolver.getSuffixes(W,s);M&&s[`defaultValue${this.options.pluralSeparator}zero`]&&fe.indexOf(`${this.options.pluralSeparator}zero`)<0&&fe.push(`${this.options.pluralSeparator}zero`),fe.forEach(Ae=>{se([W],d+Ae,s[`defaultValue${Ae}`]||S)})}):se(F,d,S))}p=this.extendTranslation(p,e,s,m,r),V&&p===d&&this.options.appendNamespaceToMissingKey&&(p=`${l}${u}${d}`),(V||L)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${d}`:d,L?p:void 0,s))}return i?(m.res=p,m.usedParams=this.getUsedParamsDetails(s),m):p}extendTranslation(e,n,r,s,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=A(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(c){const h=e.match(this.interpolator.nestingRegexp);l=h&&h.length}let u=r.replace&&!A(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||s.usedLng,r),c){const h=e.match(this.interpolator.nestingRegexp),f=h&&h.length;l<f&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...h)=>i?.[0]===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,d=A(o)?[o]:o;return e!=null&&d?.length&&r.applyPostProcessor!==!1&&(e=cs.handle(d,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,s,i,o,d;return A(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(c=>typeof c=="function"?et(c,{...this.options,...n}):c)),e.forEach(c=>{if(this.isValidLookup(r))return;const l=this.extractFromKey(c,n),u=l.key;s=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=n.count!==void 0&&!A(n.count),m=f&&!n.ordinal&&n.count===0,p=n.context!==void 0&&(A(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{this.isValidLookup(r)||(d=b,!vr[`${g[0]}-${b}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(vr[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${d}" 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!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;o=y;const _=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(_,u,y,b,n);else{let T;f&&(T=this.pluralResolver.getSuffix(y,n.count,n));const E=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&T.indexOf(O)===0&&_.push(u+T.replace(O,this.options.pluralSeparator)),_.push(u+T),m&&_.push(u+E)),p){const w=`${u}${this.options.contextSeparator||"_"}${n.context}`;_.push(w),f&&(n.ordinal&&T.indexOf(O)===0&&_.push(w+T.replace(O,this.options.pluralSeparator)),_.push(w+T),m&&_.push(w+E))}}let I;for(;I=_.pop();)this.isValidLookup(r)||(i=I,r=this.getResource(y,b,I,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:d}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,s):this.resourceStore.getResource(e,n,r,s)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!A(e.replace);let s=r?e.replace:e;if(r&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class _r{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Te.create("languageUtils")}getScriptPartFromCode(e){if(e=gt(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=gt(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(A(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const s=this.getScriptPartFromCode(r);if(this.isSupportedCode(s))return n=s;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),A(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return A(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(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))):A(e)&&i(this.formatLanguageCode(e)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}const Ir={zero:0,one:1,two:2,few:3,many:4,other:5},Sr={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class $o{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Te.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=gt(e==="dev"?"en":e),s=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Sr;if(!e.match(/-|_/))return Sr;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,n)}return this.pluralRulesCache[i]=o,o}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(s=>`${n}${s}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((s,i)=>Ir[s]-Ir[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,n,r={}){const s=this.getRule(e,r);return s?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const Tr=(t,e,n,r=".",s=!0)=>{let i=Mo(t,e,n);return!i&&s&&A(n)&&(i=mn(t,n,r),i===void 0&&(i=mn(e,n,r))),i},on=t=>t.replace(/\$/g,"$$$$");class wr{constructor(e={}){this.logger=Te.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:i,prefixEscaped:o,suffix:d,suffixEscaped:c,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:_}=e.interpolation;this.escape=n!==void 0?n:Fo,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?qe(i):o||"{{",this.suffix=d?qe(d):c||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?qe(f):m||qe("$t("),this.nestingSuffix=p?qe(p):g||qe(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=_!==void 0?_:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");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}`)}interpolate(e,n,r,s){let i,o,d;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=m=>{if(m.indexOf(this.formatSeparator)<0){const y=Tr(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...s,...n,interpolationkey:m}):y}const p=m.split(this.formatSeparator),g=p.shift().trim(),b=p.join(this.formatSeparator).trim();return this.format(Tr(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...s,...n,interpolationkey:g})};this.resetRegExp();const u=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>on(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?on(this.escape(m)):on(m)}].forEach(m=>{for(d=0;i=m.regex.exec(e);){const p=i[1].trim();if(o=l(p),o===void 0)if(typeof u=="function"){const b=u(e,i,s);o=A(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,p))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),o="";else!A(o)&&!this.useRawValueToEscape&&(o=mr(o));const g=m.safeValue(o);if(e=e.replace(i[0],g),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),e}nest(e,n,r={}){let s,i,o;const d=(c,l)=>{const u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;const h=c.split(new RegExp(`${qe(u)}[ ]*{`));let f=`{${h[1]}`;c=h[0],f=this.interpolate(f,o);const m=f.match(/'/g),p=f.match(/"/g);((m?.length??0)%2===0&&!p||(p?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),l&&(o={...l,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${u}${f}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;s=this.nestingRegexp.exec(e);){let c=[];o={...r},o=o.replace&&!A(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(l!==-1&&(c=s[1].slice(l).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),s[1]=s[1].slice(0,l)),i=n(d.call(this,s[1].trim(),o),o),i&&s[0]===e&&!A(i))return i;A(i)||(i=mr(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),c.length&&(i=c.reduce((u,h)=>this.format(u,h,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const Ho=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(o){const[d,...c]=o.split(":"),l=c.join(":").trim().replace(/^'+|'+$/g,""),u=d.trim();n[u]||(n[u]=l),l==="false"&&(n[u]=!1),l==="true"&&(n[u]=!0),isNaN(l)||(n[u]=parseInt(l,10))}})}return{formatName:e,formatOptions:n}},Er=t=>{const e={};return(n,r,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const o=r+JSON.stringify(i);let d=e[o];return d||(d=t(gt(r),s),e[o]=d),d(n)}},Ko=t=>(e,n,r)=>t(gt(n),r)(e);class Wo{constructor(e={}){this.logger=Te.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Er:Ko;this.formats={number:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i});return d=>o.format(d)}),currency:r((s,i)=>{const o=new Intl.NumberFormat(s,{...i,style:"currency"});return d=>o.format(d)}),datetime:r((s,i)=>{const o=new Intl.DateTimeFormat(s,{...i});return d=>o.format(d)}),relativetime:r((s,i)=>{const o=new Intl.RelativeTimeFormat(s,{...i});return d=>o.format(d,i.range||"day")}),list:r((s,i)=>{const o=new Intl.ListFormat(s,{...i});return d=>o.format(d)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Er(n)}format(e,n,r,s={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(d=>d.indexOf(")")>-1)){const d=i.findIndex(c=>c.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,d)].join(this.formatSeparator)}return i.reduce((d,c)=>{const{formatName:l,formatOptions:u}=Ho(c);if(this.formats[l]){let h=d;try{const f=s?.formatParams?.[s.interpolationkey]||{},m=f.locale||f.lng||s.locale||s.lng||r;h=this.formats[l](d,m,{...u,...s,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${l}`);return d},e)}}const Go=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Yo extends Ht{constructor(e,n,r,s={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Te.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,s.backend,s)}queueLoad(e,n,r,s){const i={},o={},d={},c={};return e.forEach(l=>{let u=!0;n.forEach(h=>{const f=`${l}|${h}`;!r.reload&&this.store.hasResourceBundle(l,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,u=!1,o[f]===void 0&&(o[f]=!0),i[f]===void 0&&(i[f]=!0),c[h]===void 0&&(c[h]=!0)))}),u||(d[l]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const s=e.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const d={};this.queue.forEach(c=>{Co(c.loaded,[i],o),Go(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(l=>{d[l]||(d[l]={});const u=c.loaded[l];u.length&&u.forEach(h=>{d[l][h]===void 0&&(d[l][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r,s=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const d=(l,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(l&&u&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,s+1,i*2,o)},i);return}o(l,u)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const l=c(e,n);l&&typeof l.then=="function"?l.then(u=>d(null,u)).catch(d):d(null,l)}catch(l){d(l)}return}return c(e,n,d)}prepareLoading(e,n,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();A(e)&&(e=this.languageUtils.toResolveHierarchy(e)),A(n)&&(n=[n]);const i=this.queueLoad(e,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,d)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&d&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,d),this.loaded(e,o,d)})}saveMissing(e,n,r,s,i,o={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let u;l.length===5?u=l(e,n,r,s,c):u=l(e,n,r,s),u&&typeof u.then=="function"?u.then(h=>d(null,h)).catch(d):d(null,u)}catch(u){d(u)}else l(e,n,r,s,d,c)}!e||!e[0]||this.store.addResource(e[0],n,r,s)}}}const an=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),A(t[1])&&(e.defaultValue=t[1]),A(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ar=t=>(A(t.ns)&&(t.ns=[t.ns]),A(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),A(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Tt=()=>{},Xo=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},us="__i18next_supportNoticeShown",Qo=()=>!!(typeof globalThis<"u"&&globalThis[us]||typeof process<"u"&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&process.env&&process.env.NODE_ENV==="production"),Jo=()=>{typeof globalThis<"u"&&(globalThis[us]=!0)},Zo=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||t?.options?.backend?.projectId||t?.options?.backend?.backendOptions&&t.options.backend.backendOptions.some(e=>e?.projectId));class mt extends Ht{constructor(e={},n){if(super(),this.options=Ar(e),this.services={},this.logger=Te,this.modules={external:[]},Xo(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(A(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=an();this.options={...r,...this.options,...Ar(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},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=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Zo(this)&&!Qo()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Jo());const s=l=>l?typeof l=="function"?new l:l:null;if(!this.options.isClone){this.modules.logger?Te.init(s(this.modules.logger),this.options):Te.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:l=Wo;const u=new _r(this.options);this.store=new br(this.options.resources,this.options);const h=this.services;h.logger=Te,h.resourceStore=this.store,h.languageUtils=u,h.pluralResolver=new $o(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),l&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=s(l),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new wr(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Yo(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(m,...p)=>{this.emit(m,...p)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new xt(this.services,this.options),this.translator.on("*",(m,...p)=>{this.emit(m,...p)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Tt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=(...u)=>this.store[l](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=(...u)=>(this.store[l](...u),this)});const d=ut(),c=()=>{const l=(u,h)=>{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),d.resolve(h),n(u,h)};if(this.languages&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),d}loadResources(e,n=Tt){let r=n;const s=A(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(l=>{l!=="cimode"&&i.indexOf(l)<0&&i.push(l)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>o(c)),this.options.preload?.forEach?.(d=>o(d)),this.services.backendConnector.load(i,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(e,n,r){const s=ut();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Tt),this.services.backendConnector.reload(e,n,i=>{s.resolve(),r(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");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"&&cs.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=ut();this.emit("languageChanging",e);const s=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},i=(d,c)=>{c?this.isLanguageChangingTo===e&&(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...l)=>this.t(...l)),n&&n(d,(...l)=>this.t(...l))},o=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const c=A(d)?d:d&&d[0],l=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(A(d)?[d]:d);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector?.cacheUserLanguage?.(l)),this.loadResources(l,u=>{i(u,l)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,n,r){const s=(i,o,...d)=>{let c;typeof o!="object"?c=this.options.overloadTranslationOptionHandler([i,o].concat(d)):c={...o},c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const l={...this.options,...c};typeof c.keyPrefix=="function"&&(c.keyPrefix=et(c.keyPrefix,l));const u=this.options.keySeparator||".";let h;return c.keyPrefix&&Array.isArray(i)?h=i.map(f=>(typeof f=="function"&&(f=et(f,l)),`${c.keyPrefix}${u}${f}`)):(typeof i=="function"&&(i=et(i,l)),h=c.keyPrefix?`${c.keyPrefix}${u}${i}`:i),this.t(h,c)};return A(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(d,c)=>{const l=this.services.backendConnector.state[`${d}|${c}`];return l===-1||l===0||l===2};if(n.precheck){const d=n.precheck(this,o);if(d!==void 0)return d}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}loadNamespaces(e,n){const r=ut();return this.options.ns?(A(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=ut();A(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const s=new Intl.Locale(e);if(s&&s.getTextInfo){const i=s.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new _r(an());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new mt(e,n);return r.createInstance=mt.createInstance,r}cloneInstance(e={},n=Tt){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new mt(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(d=>{i[d]=this[d]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const d=Object.keys(this.store.data).reduce((c,l)=>(c[l]={...this.store.data[l]},c[l]=Object.keys(c[l]).reduce((u,h)=>(u[h]={...c[l][h]},u),c[l]),c),{});i.store=new br(d,s),i.services.resourceStore=i.store}if(e.interpolation){const c={...an().interpolation,...this.options.interpolation,...e.interpolation},l={...s,interpolation:c};i.services.interpolator=new wr(l)}return i.translator=new xt(i.services,s),i.translator.on("*",(d,...c)=>{i.emit(d,...c)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ne=mt.createInstance();ne.createInstance;ne.dir;ne.init;ne.loadResources;ne.reloadResources;ne.use;ne.changeLanguage;ne.getFixedT;ne.t;ne.exists;ne.setDefaultNamespace;ne.hasLoadedNamespace;ne.loadNamespaces;ne.loadLanguages;var nt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ea=class extends nt{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Dn=new ea,ta={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},na=class{#e=ta;#t=!1;setTimeoutProvider(t){process.env.NODE_ENV!=="production"&&this.#t&&t!==this.#e&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#e,provider:t}),this.#e=t,process.env.NODE_ENV!=="production"&&(this.#t=!1)}setTimeout(t,e){return process.env.NODE_ENV!=="production"&&(this.#t=!0),this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return process.env.NODE_ENV!=="production"&&(this.#t=!0),this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},$e=new na;function ra(t){setTimeout(t,0)}var sa=typeof window>"u"||"Deno"in globalThis;function ee(){}function ia(t,e){return typeof t=="function"?t(e):t}function pn(t){return typeof t=="number"&&t>=0&&t!==1/0}function hs(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ce(t,e){return typeof t=="function"?t(e):t}function ce(t,e){return typeof t=="function"?t(e):t}function Nr(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:d}=t;if(o){if(r){if(e.queryHash!==On(o,e.options))return!1}else if(!yt(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||s&&s!==e.state.fetchStatus||i&&!i(e))}function Pr(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(Ke(e.options.mutationKey)!==Ke(i))return!1}else if(!yt(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function On(t,e){return(e?.queryKeyHashFn||Ke)(t)}function Ke(t){return JSON.stringify(t,(e,n)=>yn(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function yt(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>yt(t[n],e[n])):!1}var oa=Object.prototype.hasOwnProperty;function gn(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=Dr(t)&&Dr(e);if(!r&&!(yn(t)&&yn(e)))return e;const i=(r?t:Object.keys(t)).length,o=r?e:Object.keys(e),d=o.length,c=r?new Array(d):{};let l=0;for(let u=0;u<d;u++){const h=r?u:o[u],f=t[h],m=e[h];if(f===m){c[h]=f,(r?u<i:oa.call(t,h))&&l++;continue}if(f===null||m===null||typeof f!="object"||typeof m!="object"){c[h]=m;continue}const p=gn(f,m,n+1);c[h]=p,p===f&&l++}return i===d&&l===i?t:c}function Ct(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Dr(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function yn(t){if(!Or(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Or(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Or(t){return Object.prototype.toString.call(t)==="[object Object]"}function aa(t){return new Promise(e=>{$e.setTimeout(e,t)})}function bn(t,e,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(t,e);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return gn(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return gn(t,e)}return e}function da(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function ca(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Ne=Symbol();function fs(t,e){return process.env.NODE_ENV!=="production"&&t.queryFn===Ne&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Ne?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ms(t,e){return typeof t=="function"?t(...e):!!t}function la(t,e,n){let r=!1,s;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??=e(),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),t}var bt=(()=>{let t=()=>sa;return{isServer(){return t()},setIsServer(e){t=e}}})();function vn(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}var ua=ra;function ha(){let t=[],e=0,n=d=>{d()},r=d=>{d()},s=ua;const i=d=>{e?t.push(d):s(()=>{n(d)})},o=()=>{const d=t;t=[],d.length&&s(()=>{r(()=>{d.forEach(c=>{n(c)})})})};return{batch:d=>{let c;e++;try{c=d()}finally{e--,e||o()}return c},batchCalls:d=>(...c)=>{i(()=>{d(...c)})},schedule:i,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{s=d}}}var X=ha(),fa=class extends nt{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},Mt=new fa;function ma(t){return Math.min(1e3*2**t,3e4)}function ps(t){return(t??"online")==="online"?Mt.isOnline():!0}var _n=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function gs(t){let e=!1,n=0,r;const s=vn(),i=()=>s.status!=="pending",o=g=>{if(!i()){const b=new _n(g);f(b),t.onCancel?.(b)}},d=()=>{e=!0},c=()=>{e=!1},l=()=>Dn.isFocused()&&(t.networkMode==="always"||Mt.isOnline())&&t.canRun(),u=()=>ps(t.networkMode)&&t.canRun(),h=g=>{i()||(r?.(),s.resolve(g))},f=g=>{i()||(r?.(),s.reject(g))},m=()=>new Promise(g=>{r=b=>{(i()||l())&&g(b)},t.onPause?.()}).then(()=>{r=void 0,i()||t.onContinue?.()}),p=()=>{if(i())return;let g;const b=n===0?t.initialPromise:void 0;try{g=b??t.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(h).catch(y=>{if(i())return;const _=t.retry??(bt.isServer()?0:3),I=t.retryDelay??ma,T=typeof I=="function"?I(n,y):I,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,y);if(e||!E){f(y);return}n++,t.onFail?.(n,y),aa(T).then(()=>l()?void 0:m()).then(()=>{e?f(y):p()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r?.(),s),cancelRetry:d,continueRetry:c,canStart:u,start:()=>(u()?p():m().then(p),s)}}var ys=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pn(this.gcTime)&&(this.#e=$e.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(bt.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&($e.clearTimeout(this.#e),this.#e=void 0)}},pa=class extends ys{#e;#t;#n;#s;#r;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#n=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=kr(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=kr(this.options);e.data!==void 0&&(this.setState(Rr(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=bn(this.state.data,t,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#d({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(ee).catch(ee):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ce(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ne||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ce(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!hs(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#o||this.#a()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#a(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(c=>c.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const d=fs(this.options,e),l=(()=>{const u={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#o=!1,this.options.persister?this.options.persister(d,l,this):d(l)},o=(()=>{const d={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return r(d),d})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#d({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=gs({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:d=>{d instanceof _n&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(d,c)=>{this.#d({type:"failed",failureCount:d,error:c})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof _n){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#d({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#d(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...bs(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,...Rr(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?r:void 0,r;case"error":const s=t.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),X.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function bs(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ps(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Rr(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function kr(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ga=class extends nt{constructor(t,e){super(),this.options=e,this.#e=t,this.#a=null,this.#o=vn(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#s=void 0;#r;#i;#o;#a;#d;#f;#m;#l;#u;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xr(this.#t,this.options)?this.#h():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return In(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return In(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#I(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ce(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!Ct(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Cr(this.#t,n,this.options,e)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ce(this.options.enabled,this.#t)!==ce(e.enabled,this.#t)||Ce(this.options.staleTime,this.#t)!==Ce(e.staleTime,this.#t))&&this.#g();const s=this.#y();r&&(this.#t!==n||ce(this.options.enabled,this.#t)!==ce(e.enabled,this.#t)||s!==this.#c)&&this.#b(s)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return ba(this,n)&&(this.#s=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#s}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#h({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#h(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(ee)),e}#g(){this.#_();const t=Ce(this.options.staleTime,this.#t);if(bt.isServer()||this.#s.isStale||!pn(t))return;const n=hs(this.#s.dataUpdatedAt,t)+1;this.#l=$e.setTimeout(()=>{this.#s.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#I(),this.#c=t,!(bt.isServer()||ce(this.options.enabled,this.#t)===!1||!pn(this.#c)||this.#c===0)&&(this.#u=$e.setInterval(()=>{(this.options.refetchIntervalInBackground||Dn.isFocused())&&this.#h()},this.#c))}#v(){this.#g(),this.#b(this.#y())}#_(){this.#l&&($e.clearTimeout(this.#l),this.#l=void 0)}#I(){this.#u&&($e.clearInterval(this.#u),this.#u=void 0)}createResult(t,e){const n=this.#t,r=this.options,s=this.#s,i=this.#r,o=this.#i,c=t!==n?t.state:this.#n,{state:l}=t;let u={...l},h=!1,f;if(e._optimisticResults){const M=this.hasListeners(),S=!M&&xr(t,e),z=M&&Cr(t,n,e,r);(S||z)&&(u={...u,...bs(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:g}=u;f=u.data;let b=!1;if(e.placeholderData!==void 0&&f===void 0&&g==="pending"){let M;s?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(M=s.data,b=!0):M=typeof e.placeholderData=="function"?e.placeholderData(this.#m?.state.data,this.#m):e.placeholderData,M!==void 0&&(g="success",f=bn(s?.data,M,e),h=!0)}if(e.select&&f!==void 0&&!b)if(s&&f===i?.data&&e.select===this.#d)f=this.#f;else try{this.#d=e.select,f=e.select(f),f=bn(s?.data,f,e),this.#f=f,this.#a=null}catch(M){this.#a=M}this.#a&&(m=this.#a,f=this.#f,p=Date.now(),g="error");const y=u.fetchStatus==="fetching",_=g==="pending",I=g==="error",T=_&&y,E=f!==void 0,w={status:g,fetchStatus:u.fetchStatus,isPending:_,isSuccess:g==="success",isError:I,isInitialLoading:T,isLoading:T,data:f,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!_,isLoadingError:I&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:I&&E,isStale:Rn(t,e),refetch:this.refetch,promise:this.#o,isEnabled:ce(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=w.data!==void 0,S=w.status==="error"&&!M,z=L=>{S?L.reject(w.error):M&&L.resolve(w.data)},j=()=>{const L=this.#o=w.promise=vn();z(L)},B=this.#o;switch(B.status){case"pending":t.queryHash===n.queryHash&&z(B);break;case"fulfilled":(S||w.data!==B.value)&&j();break;case"rejected":(!S||w.error!==B.reason)&&j();break}}return w}updateResult(){const t=this.#s,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#m=this.#t),Ct(e,t))return;this.#s=e;const n=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,s=typeof r=="function"?r():r;if(s==="all"||!s&&!this.#p.size)return!0;const i=new Set(s??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(o=>{const d=o;return this.#s[d]!==t[d]&&i.has(d)})};this.#T({listeners:n()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#T(t){X.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ya(t,e){return ce(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function xr(t,e){return ya(t,e)||t.state.data!==void 0&&In(t,e,e.refetchOnMount)}function In(t,e,n){if(ce(e.enabled,t)!==!1&&Ce(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Rn(t,e)}return!1}function Cr(t,e,n,r){return(t!==e||ce(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Rn(t,n)}function Rn(t,e){return ce(e.enabled,t)!==!1&&t.isStaleByTime(Ce(e.staleTime,t))}function ba(t,e){return!Ct(t.getCurrentResult(),e)}function Mr(t){return{onFetch:(e,n)=>{const r=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const h=p=>{la(p,()=>e.signal,()=>u=!0)},f=fs(e.options,e.fetchOptions),m=async(p,g,b)=>{if(u)return Promise.reject();if(g==null&&p.pages.length)return Promise.resolve(p);const _=(()=>{const O={client:e.client,queryKey:e.queryKey,pageParam:g,direction:b?"backward":"forward",meta:e.options.meta};return h(O),O})(),I=await f(_),{maxPages:T}=e.options,E=b?ca:da;return{pages:E(p.pages,I,T),pageParams:E(p.pageParams,g,T)}};if(s&&i.length){const p=s==="backward",g=p?va:Lr,b={pages:i,pageParams:o},y=g(r,b);d=await m(b,y,p)}else{const p=t??i.length;do{const g=c===0?o[0]??r.initialPageParam:Lr(r,d);if(c>0&&g==null)break;d=await m(d,g),c++}while(c<p)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=l}}}function Lr(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function va(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var _a=class extends ys{#e;#t;#n;#s;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||vs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=gs({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#r({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)e();else{this.#r({type:"pending",variables:t,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const o=await this.options.onMutate?.(t,n);o!==this.state.context&&this.#r({type:"pending",context:o,variables:t,isPaused:s})}const i=await this.#s.start();return await this.#n.config.onSuccess?.(i,t,this.state.context,this,n),await this.options.onSuccess?.(i,t,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,t,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{await this.#n.config.onError?.(i,t,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onError?.(i,t,this.state.context,n)}catch(o){Promise.reject(o)}try{await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onSettled?.(void 0,i,t,this.state.context,n)}catch(o){Promise.reject(o)}throw this.#r({type:"error",error:i}),i}finally{this.#n.runNext(this)}}#r(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),X.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function vs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ia=class extends nt{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const r=new _a({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);const e=wt(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=wt(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=wt(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(s=>s.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=wt(t);return typeof e=="string"?this.#t.get(e)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){X.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>Pr(e,n))}findAll(t={}){return this.getAll().filter(e=>Pr(t,e))}notify(t){X.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return X.batch(()=>Promise.all(t.map(e=>e.continue().catch(ee))))}};function wt(t){return t.options.scope?.id}var Sa=class extends nt{#e;#t=void 0;#n;#s;constructor(t,e){super(),this.#e=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const e=this.options;this.options=this.#e.defaultMutationOptions(t),Ct(this.options,e)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),e?.mutationKey&&this.options.mutationKey&&Ke(e.mutationKey)!==Ke(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,e){return this.#s=e,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??vs();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){X.batch(()=>{if(this.#s&&this.hasListeners()){const e=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#s.onSuccess?.(t.data,e,n,r)}catch(s){Promise.reject(s)}try{this.#s.onSettled?.(t.data,null,e,n,r)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#s.onError?.(t.error,e,n,r)}catch(s){Promise.reject(s)}try{this.#s.onSettled?.(void 0,t.error,e,n,r)}catch(s){Promise.reject(s)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Ta=class extends nt{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const r=e.queryKey,s=e.queryHash??On(r,e);let i=this.get(s);return i||(i=new pa({client:t,queryKey:r,queryHash:s,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){X.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>Nr(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>Nr(t,n)):e}notify(t){X.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){X.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){X.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},wa=class{#e;#t;#n;#s;#r;#i;#o;#a;constructor(e={}){this.#e=e.queryCache||new Ta,this.#t=e.mutationCache||new Ia,this.#n=e.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Dn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Mt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ce(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(e,n,r){const s=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(s.queryHash)?.state.data,d=ia(n,o);if(d!==void 0)return this.#e.build(this,s).setData(d,{...r,manual:!0})}setQueriesData(e,n,r){return X.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;X.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return X.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},s=X.batch(()=>this.#e.findAll(e).map(i=>i.cancel(r)));return Promise.all(s).then(ee).catch(ee)}invalidateQueries(e,n={}){return X.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=X.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(ee)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(s).then(ee)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Ce(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ee).catch(ee)}fetchInfiniteQuery(e){return e.behavior=Mr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ee).catch(ee)}ensureInfiniteQueryData(e){return e.behavior=Mr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mt.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#s.set(Ke(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#s.values()],r={};return n.forEach(s=>{yt(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(Ke(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(s=>{yt(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=On(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Ne&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},_s=a.X(!1),Ea=()=>a.x(_s);_s.Provider;var Is=a.X(void 0),Kt=t=>{const e=a.x(Is);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Aa=({client:t,children:e})=>(a.y(()=>(t.mount(),()=>{t.unmount()}),[t]),a.u(Is.Provider,{value:t,children:e}));function Na(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Pa=a.X(Na()),Da=()=>a.x(Pa),Oa=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Ra=t=>{a.y(()=>{t.clearReset()},[t])},ka=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(s&&t.data===void 0||ms(n,[t.error,r])),xa=t=>{if(t.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ca=(t,e)=>t.isLoading&&t.isFetching&&!e,Ma=(t,e)=>t?.suspense&&e.isPending,Fr=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Ss(t,e){const n=e(),[{_instance:r},s]=a.d({_instance:{_value:n,_getSnapshot:e}});return a._(()=>{r._value=n,r._getSnapshot=e,dn(r)&&s({_instance:r})},[t,n,e]),a.y(()=>(dn(r)&&s({_instance:r}),t(()=>{dn(r)&&s({_instance:r})})),[t]),n}function dn(t){const e=t._getSnapshot,n=t._value;try{const r=e();return!Object.is(n,r)}catch{return!0}}function La(t,e,n){if(process.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ea(),s=Da(),i=Kt(),o=i.defaultQueryOptions(t);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),process.env.NODE_ENV!=="production"&&(o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),o._optimisticResults=r?"isRestoring":"optimistic",xa(o),Oa(o,s),Ra(s);const d=!i.getQueryCache().get(o.queryHash),[c]=a.d(()=>new e(i,o)),l=c.getOptimisticResult(o),u=!r&&t.subscribed!==!1;if(Ss(a.q(h=>{const f=u?c.subscribe(X.batchCalls(h)):ee;return c.updateResult(),f},[c,u]),()=>c.getCurrentResult()),a.y(()=>{c.setOptions(o)},[o,c]),Ma(o,l))throw Fr(o,c,s);if(ka({result:l,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,l),o.experimental_prefetchInRender&&!bt.isServer()&&Ca(l,r)&&(d?Fr(o,c,s):i.getQueryCache().get(o.queryHash)?.promise)?.catch(ee).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?l:c.trackResult(l)}function rt(t,e){return La(t,ga)}function Ts(t,e){const n=Kt(),[r]=a.d(()=>new Sa(n,t));a.y(()=>{r.setOptions(t)},[r,t]);const s=Ss(a.q(o=>r.subscribe(X.batchCalls(o)),[r]),()=>r.getCurrentResult()),i=a.q((o,d)=>{r.mutate(o,d).catch(ee)},[r]);if(s.error&&ms(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}const Fa=({name:t,children:e,from:n})=>{const r=(Array.isArray(n)?n:[n]).find(s=>s?.props?.slot===t);return r?.type==="template"?r.props.children:r??e},Ua=(t,e)=>(Array.isArray(e)?e:[e]).some(n=>n?.props?.slot===t),Ba=(t,e,{throws:n,inComponent:r})=>{if(process.env.NODE_ENV!=="development"||t===void 0)return;const s=[],i=Array.isArray(t)?t:[t],o=r?`, defined in '${r.name}',`:"",d=`Valid slot names are: ${e.join(", ")}
2
2
  `,c=l=>{if(n)throw new Error(l);console.error("%c [named-slots]","color: #56b9c8",l)};i.forEach(l=>{const u=l.props?.slot;u?e.includes(u)||c(`Slot '${u}'${o} is not valid. ${d}`):c(`A Slot${o} received children missing a slot attribute.${d}`),s.includes(u)&&c(`Slot '${u}'${o} has been used more than once.
3
- Each named-slot can be defined and used only once.`),s.push(u)})},kn=(t,e,n)=>(Ba(t,e,{}),{Slot:({name:i,children:o})=>Fa({name:i,children:o,from:t}),hasSlot:i=>Ua(i,t)});var Va=Symbol.for("preact-signals");function Wt(){if(Pe>1)Pe--;else{var t,e=!1;for((function(){var s=Ft;for(Ft=void 0;s!==void 0;)s.S.v===s.v&&(s.S.i=s.i),s=s.o})();pt!==void 0;){var n=pt;for(pt=void 0,Lt++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Ns(n))try{n.c()}catch(s){e||(t=s,e=!0)}n=r}}if(Lt=0,Pe--,e)throw t}}function ws(t){if(Pe>0)return t();Sn=++qa,Pe++;try{return t()}finally{Wt()}}var C=void 0;function Es(t){var e=C;C=void 0;try{return t()}finally{C=e}}var pt=void 0,Pe=0,Lt=0,qa=0,Sn=0,Ft=void 0,Ut=0;function As(t){if(C!==void 0){var e=t.n;if(e===void 0||e.t!==C)return e={i:0,S:t,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:e},C.s!==void 0&&(C.s.n=e),C.s=e,t.n=e,32&C.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=C.s,e.n=void 0,C.s.n=e,C.s=e),e}}function J(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}J.prototype.brand=Va;J.prototype.h=function(){return!0};J.prototype.S=function(t){var e=this,n=this.t;n!==t&&t.e===void 0&&(t.x=n,this.t=t,n!==void 0?n.e=t:Es(function(){var r;(r=e.W)==null||r.call(e)}))};J.prototype.U=function(t){var e=this;if(this.t!==void 0){var n=t.e,r=t.x;n!==void 0&&(n.x=r,t.e=void 0),r!==void 0&&(r.e=n,t.x=void 0),t===this.t&&(this.t=r,r===void 0&&Es(function(){var s;(s=e.Z)==null||s.call(e)}))}};J.prototype.subscribe=function(t){var e=this;return it(function(){var n=e.value,r=C;C=void 0;try{t(n)}finally{C=r}},{name:"sub"})};J.prototype.valueOf=function(){return this.value};J.prototype.toString=function(){return this.value+""};J.prototype.toJSON=function(){return this.value};J.prototype.peek=function(){var t=C;C=void 0;try{return this.value}finally{C=t}};Object.defineProperty(J.prototype,"value",{get:function(){var t=As(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Lt>100)throw new Error("Cycle detected");(function(n){Pe!==0&&Lt===0&&n.l!==Sn&&(n.l=Sn,Ft={S:n,v:n.v,i:n.i,o:Ft})})(this),this.v=t,this.i++,Ut++,Pe++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Wt()}}}});function ue(t,e){return new J(t,e)}function Ns(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Ps(t){for(var e=t.s;e!==void 0;e=e.n){var n=e.S.n;if(n!==void 0&&(e.r=n),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Ds(t){for(var e=t.s,n=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):n=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=n}function Ge(t,e){J.call(this,void 0),this.x=t,this.s=void 0,this.g=Ut-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}Ge.prototype=new J;Ge.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ut))return!0;if(this.g=Ut,this.f|=1,this.i>0&&!Ns(this))return this.f&=-2,!0;var t=C;try{Ps(this),C=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return C=t,Ds(this),this.f&=-2,!0};Ge.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}J.prototype.S.call(this,t)};Ge.prototype.U=function(t){if(this.t!==void 0&&(J.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};Ge.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(Ge.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=As(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function le(t,e){return new Ge(t,e)}function Os(t){var e=t.m;if(t.m=void 0,typeof e=="function"){Pe++;var n=C;C=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,xn(t),r}finally{C=n,Wt()}}}function xn(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Os(t)}function ja(t){if(C!==this)throw new Error("Out-of-order effect");Ds(this),C=t,this.f&=-2,8&this.f&&xn(this),Wt()}function st(t,e){this.x=t,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=e?.name}st.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.m=e)}finally{t()}};st.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Os(this),Ps(this),Pe++;var t=C;return C=this,ja.bind(this,t)};st.prototype.N=function(){2&this.f||(this.f|=2,this.u=pt,pt=this)};st.prototype.d=function(){this.f|=8,1&this.f||xn(this)};st.prototype.dispose=function(){this.d()};function it(t,e){var n=new st(t,e);try{n.c()}catch(s){throw n.d(),s}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var Cn,Gt,Et,za=typeof window<"u"&&!!window.__PREACT_SIGNALS_DEVTOOLS__,Rs=[],ks=[];it(function(){Cn=this.N})();function ot(t,e){a.l[t]=e.bind(null,a.l[t]||function(){})}function Bt(t){if(Et){var e=Et;Et=void 0,e()}Et=t&&t.S()}function xs(t){var e=this,n=t.data,r=Mn(n);r.value=n;var s=a.T(function(){for(var d=e,c=e.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=le(function(){var m=r.value.value;return m===0?0:m===!0?"":m||""}),u=le(function(){return!Array.isArray(l.value)&&!a.t(l.value)}),h=it(function(){if(this.N=Cs,u.value){var m=l.value;d.__v&&d.__v.__e&&d.__v.__e.nodeType===3&&(d.__v.__e.data=m)}}),f=e.__$u.d;return e.__$u.d=function(){h(),f.call(this)},[u,l]},[]),i=s[0],o=s[1];return i.value?o.peek():o.value}xs.displayName="ReactiveTextNode";Object.defineProperties(J.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:xs},props:{configurable:!0,get:function(){var t=this;return{data:{get value(){return t.value}}}}},__b:{configurable:!0,value:1}});ot("__b",function(t,e){if(typeof e.type=="string"){var n,r=e.props;for(var s in r)if(s!=="children"){var i=r[s];i instanceof J&&(n||(e.__np=n={}),n[s]=i,r[s]=i.peek())}}t(e)});ot("__r",function(t,e){if(t(e),e.type!==a.S){Bt();var n,r=e.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(s,i){var o;return it(function(){o=this},{name:i}),o.c=s,o})(function(){var s;za&&((s=n.y)==null||s.call(n)),r.__$f|=1,r.setState({})},typeof e.type=="function"?e.type.displayName||e.type.name:""))),Gt=r,Bt(n)}});ot("__e",function(t,e,n,r){Bt(),Gt=void 0,t(e,n,r)});ot("diffed",function(t,e){Bt(),Gt=void 0;var n;if(typeof e.type=="string"&&(n=e.__e)){var r=e.__np,s=e.props;if(r){var i=n.U;if(i)for(var o in i){var d=i[o];d!==void 0&&!(o in r)&&(d.d(),i[o]=void 0)}else i={},n.U=i;for(var c in r){var l=i[c],u=r[c];l===void 0?(l=$a(n,c,u),i[c]=l):l.o(u,s)}for(var h in r)s[h]=r[h]}}t(e)});function $a(t,e,n,r){var s=e in t&&t.ownerSVGElement===void 0,i=ue(n),o=n.peek();return{o:function(d,c){i.value=d,o=d.peek()},d:it(function(){this.N=Cs;var d=i.value.value;o!==d?(o=void 0,s?t[e]=d:d!=null&&(d!==!1||e[4]==="-")?t.setAttribute(e,d):t.removeAttribute(e)):o=void 0})}}ot("unmount",function(t,e){if(typeof e.type=="string"){var n=e.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var s in r){var i=r[s];i&&i.d()}}}e.__np=void 0}else{var o=e.__c;if(o){var d=o.__$u;d&&(o.__$u=void 0,d.d())}}t(e)});ot("__h",function(t,e,n,r){(r<3||r===9)&&(e.__$f|=2),t(e,n,r)});a.C.prototype.shouldComponentUpdate=function(t,e){if(this.__R)return!0;var n=this.__$u,r=n&&n.s!==void 0;for(var s in e)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(r||i||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var d in this.props)if(!(d in t))return!0;return!1};function Mn(t,e){return a.T(function(){return ue(t,e)},[])}function Ur(t,e){var n=a.A(t);return n.current=t,Gt.__$f|=4,a.T(function(){return le(function(){return n.current()},e)},[])}var Ha=typeof requestAnimationFrame>"u"?setTimeout:function(t){var e=function(){clearTimeout(n),cancelAnimationFrame(r),t()},n=setTimeout(e,35),r=requestAnimationFrame(e)},Ka=function(t){queueMicrotask(function(){queueMicrotask(t)})};function Wa(){ws(function(){for(var t;t=Rs.shift();)Cn.call(t)})}function Ga(){Rs.push(this)===1&&(a.l.requestAnimationFrame||Ha)(Wa)}function Ya(){ws(function(){for(var t;t=ks.shift();)Cn.call(t)})}function Cs(){ks.push(this)===1&&(a.l.requestAnimationFrame||Ka)(Ya)}function Ms(t,e){var n=a.A(t);n.current=t,a.y(function(){return it(function(){return this.N=Ga,n.current()},e)},[])}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="8f120b1c-623e-445c-8490-ef767b9aae28",t._sentryDebugIdIdentifier="sentry-dbid-8f120b1c-623e-445c-8490-ef767b9aae28")}catch{}const Ls=JSON.parse(`{"1Minute":"1 minute","1Second":"1 second","accountCantBeSetUp":"Your account can't be set up as your information couldn't be verified. To find out more, reach out to customer support.","accountDetailsDescription":"Provide a few details about you to start accepting live payments.","accountHolder":"Account holder","accountHolderTerms":"Account Holder Terms","accountName":"Account name","accountNumber":"Account number","accountVerification":"Account Verification","actionNeeded":"Action needed","add":"Add","addAllSourcesOfFundsBeingUsed":"Add all sources of funds being used with the financial products listed on this page. Some funding sources may need supporting documentation. ","addBankAccount":"Add bank account","addDetailsManually":"Add details manually","addExtraBankAccount":"Add extra bank account","addExtraPayinAccount":"Add extra payin account","addExtraPayoutAccount":"Add extra payout account","additionalInformation":"Additional information","additionalInformationFormName":"Additional details","additionalPersonalDetails":"Additional personal details","addMissingBankDetails":"We are missing your bank details in order to perform payouts, please add your bank account.","addNew":"Add new","addPayoutAccount":"Add a payout account","address":"Address","address__placeHolder":"Start typing an address for suggestions...","addressDetails":"Address details","addresses":"Addresses","addressPoBoxError":"PO Box addresses aren't allowed. Enter a physical address.","addressRegisteredWithGovernment":"The address registered with government or other authorities where the company’s executive activities take place.","addTrustMember":"Add trust member","adoptionCertificate":"Adoption certificate","adyenPrivacyPolicy":"Adyen Privacy Policy","agreementSigned":"Agreement signed","aLegalRepresentativeIsRequired":"A legal representative is required","allCapabilitiesValid":"All capabilities are valid","amount":"Amount","amountIsRequired":"Amount is required","anAssociation":"An association","and":"and","annualTurnover":"Annual turnover","anUnincorporatedPartnership":"An Unincorporated Partnership","anyInformationFromTheUploadedDocumentWillBeLost":"Any information from the uploaded document will be lost. You will need to manually add this data.","apartmentSuite":"Apartment / Suite","apartmentSuiteOther":"Apt, suite, other","areYouSureYouWantToDeleteThisBankAccount":"Are you sure you want to delete this bank account?","arithmosEngraphes":"Αριθμός Εγγραφής Φ.Π.Α.","arvonlisaveronumeroMervardesskattenummer":"Arvonlisäveronumero Mervärdesskattenummer","association":"Association","associationIncorporated":"Incorporated association","atLeastOneEmployeeIsRequired":"At least 1 employee is required","aTrust":"A trust","australianBusinessNumberAbn":"Australian business number (ABN)","australianBusinessNumberAcn":"Australian company number (ACN)","authorizedSignatory":"Authorized signatory","back":"Back","backToTaskList":"Back to task list","balanceSheetTotal":"Balance sheet total","bankAccount":"Bank account","bankAccountDetails":"Bank account details","bankAccountNeeded":"A bank account is needed.","bankAccountNumber":"Account number","bankCityTown":"Bank city/town","bankCode":"Bank code","bankCountry":"Bank country/region","bankDetails":"Bank details","bankDocument":"Bank document","bankDocumentFileDescription":"Add a description for this bank account (optional)","bankingService":"Business bank accounts","bankName":"Bank name","bankStatement":"Bank statement","bankStatementDocument":"Bank statement","basicInformation":"Basic information","basicInformationFormName":"Basic details","becauseThisPersonIsUnderXYearsOld":"Because this person is under %{age} years old, information about a legal representative will be collected in another step.","belowTaxThreshold":"Earnings are below the mandatory indirect tax registration threshold in this country/region of establishment","benefactorDetails":"Benefactor details","beneficialOwnership":"Beneficial ownership","beneficiary":"Beneficiary","bic":"BIC","bicSwift":"BIC / SWIFT","birthCertificate":"Birth certificate","birthDate":"Date of birth","branchCode":"Branch code","branchNumber":"Branch Number","bsbCode":"Bank State Branch (BSB) code","bsbNumber":"BSB Number","bsnNumber":"BSN","btwNummer":"Btw-nummer","buildingNameFloorRoomNumberEtc":"Building name / Floor / Room number / etc.","business":"Business","businessAccountDetailsDescription":"Tell us about your business","businessAccountDetailsDescriptionReview":"In order to ensure your data is up-to-date, please verify the following details. If necessary, please adjust any data that is no longer accurate.","businessAccountTerms":"Business Account Terms","businessDescription":"Business description","businessDetails":"Business details","businessEntityDescription":"This is usually a sole proprietor, private company, public corporation, partnership, or non profit.","businessEntityTitle":"Business entity","businessFinancials":"Business financials","businessFinancing":"Business financing","businessIncorporationNumber":"Business incorporation number","businessInformation":"Business information","businessLegalName":"Business legal name","businessLines":"Business lines","businessName":"Business name","businessName__helperText":"The legal name is used to identify a business with the government; enter it exactly as it appears on your government or legal forms.","businessNumber":"Business number","businessRegistrationDocument__FR":"Business registration document, such as a KBIS extract or situation au répertoire sirene","businessRegistryStatement":"Business registry statement","businessSelectionFormHeading":"Select your business","businessSelectionFormName":"Business selection","businessStructure":"Business structure","businessTrusteeDetails":"Business trustee details","businessTrustEntity":"Business Trust Entity","businessUrl":"Business URL","byClickingSubmitReview":"By clicking 'Submit review', you confirm that all of your information has been reviewed, and that all newly provided or already existing data is accurate and up-to-date.","cadastroDePessoasFisicas":"Cadastro de Pessoas Físicas (CPF)","cancel":"Cancel","canNotCompleteInstantVerification":"Can not complete instant verification?","cantSetUpAcccount":"You can't set up an account","capitalUserTerms":"Capital User Terms","cardUserTerms":"Card User Terms","carouselBack":"Carousel back","carouselForward":"Carousel forward","CCIAA":"CCIAA Number","certificateOfVoterRegistration":"Certificate of voter registration","certifiedOrganizationalChart":"Certified Organizational chart","chamberOfCommerceRegistrationNumber":"Chamber of Commerce registration number","changeYourBusinessSetup":"Change your business setup?","chargeCardUserAgreement":"Charge Card User Agreement","charityNumber":"Charity number","checkForTypos":"Check for typos and try again","chomeAndBanchi":"Chōme and Banchi","chooseATaxReportingClassificationOption":"Choose a tax reporting classification option","chooseATaxStatusOptionToContinue":"Choose a tax status option to continue","chooseTheCorrectDetailsBeforeProceeding":"Choose the correct details before proceeding.","chooseTheTaxStatusWhichBestRepresentsYourBusiness":"Choose the tax status which best represents your business. We collect this information to comply with global tax transparency laws including <el1>FATCA</el1> and <el2>CRS legislation</el2>. ","chRegistrationNumber":"Unternehmens-Identifikationsnummer (UID)","city":"City","cityTown":"City / Town","clearingCode":"Clearing code","clearingNumber":"Clearing Number","close":"Close","CNPJ":"CNPJ","code":"Code","codiceFiscale":"Codice fiscale","codiceFiscalePartitaIVA":"Codice Fiscale / Partita IVA","codNumericPersonal":"Cod Numeric Personal (CNP)","codulDeIdentificareFiscala":"Codul de identificare fiscală (CIF)","commercialLicence":"Commercial License, Trade License or Business License","company":"Company","companyDetails":"Company details","companyLegalName":"Company legal name","companyMember":"A business entity","companyName":"Company name","companyNumber":"Company number","companyNumberNZ":"Company Number","companyOwnerDetails":"Company owner details","companyRegistrationDocument":"Company registration document","companyRegistrationDocumentFormName":"Registration document","companyRegistrationNumber":"Company registration number","companyRegistrationNumber__HK":"Company Registration number (CRN)","companyStructure":"Company structure","companyStructureFormName":"Company structure","companyTaxDocumentFormName":"Tax document","companyTrustee":"Company trustee","companyType":"Company type","complete":"Complete","confirm":"Confirm","confirmSelection":"Confirm selection","constitutionalDocument":"Constitutional document","constitutionalDocumentFormName":"Constitutional document","constitutionalDocumentHeader":"Upload a constitutional document","constitutionalDocumentHeaderDescription":"This helps to verify your details.","constitutionalDocumentSoleProprietorshipHeaderDescription":"This helps to verify your sole proprietorship details.","constitutionalDocumentTrustHeaderDescription":"This helps to verify your trust details.","constitutionalDocumentUnincorporatedPartnershipDescription":"This helps verify your partnership’s details. ","contactDetails":"Contact Details","continue":"Continue","continueVerification":"Continue verification","contributionBelowThreshold":"My settlor's material asset contribution to the trust was less than AUD 10,000 at the time of establishing the trust","controllerDescriptionAsPartner":"Does this partner have more control over the partnership than others? For example, through additional voting rights. Choose 'No' if all partners have equal control.","controllingPerson":"Controlling person","controllingPersonDescription":"Authorized to make major business decisions (may or may not be an owner)","corporateRegistrationNumber":"Corporate Registration Number","correctErrorsResubmit":"Correct the following errors and resubmit the form","country":"Country/region","country__US__business":"Where is your business registered?","countryNotSupported":"Country not supported","countryOfBirth":"Country of birth","countryOfGoverningLaw":"Country/region of governing law","countryRegionOfEstablishment":"Country/region of establishment","countryWithoutVatOrGstSystem":"There is no indirect tax in this country/region of establishment","cryptocurrencyExchange":"Cryptocurrency exchange","currency":"Currency","currencyCode":"Currency code","currencyIsRequired":"Currency is required","currencyPlaceholder":"Select a currency code","customerSupport":"Customer support","CVR-nummer":"CVR-nummer","cyRegistrationNumber":"Αριθμός Εγγραφής","dataMissingError":"We are missing required data.","dataReviewNeeded":"A data review is neeced.","date":"Date","dateCannotBeInTheFuture":"Date cannot be in the future","dateOfIncorporation":"Date of incorporation","dateOfSale":"Date of sale","dateOfSourceEvent":"Date of source event","dateOfTotalAssetsCalculation":"The date on which total assets and annual turnover were calculated is often the balance sheet date.","dateOfWinning":"Date of winning","datePlaceholder":"dd/mm/yyyy","dbaName":"Doing Business As (DBA) name","deceased":"My settlor is deceased","deceasedEstate":"Deceased estate","decedentsLegalFirstName":"Decedent's legal first name","decedentsLegalLastName":"Decedent's legal last name","decisionMaker":"Decision-makers","decisionMakerDetails":"Decision maker details","decisionMakers":"Decision-makers","definedBeneficiary":"Defined beneficiary","definedBeneficiaryDescription":"A natural person, corporate entity, or member of a class in whose interest the trust is principally constituted or operates.","delete":"Delete","deleteDocument":"Delete document","deleteInvestorDetails":"Delete investor details","deleteItem":"Delete %{item}?","description":"Description","descriptionOptional":"Description (optional)","descriptionUndefinedBeneficiary":"Undefined beneficiary description","detCentralePersonregister":"Det Centrale Personregister (CPR)","DIC":"Daňové identifikační číslo (DIČ)","director":"Director","directorDescription":"Someone appointed to manage a company's business and affairs","districtTownAreaCityWard":"District / Town area, City / Ward","dni":"DNI","documentName":"Document name","documentRequirements":"Document requirements","documentRequirementsUnincorporatedPartnershipDetails":"Includes the partnership’s details such as roles, responsibilities, and profit distributions","documentRequirementsUnincorporatedPartnershipName":"Includes the name of all partners","documentRequirementsUnincorporatedPartnershipUpToDate":"All contents are true and up-to-date","documents":"Documents","documentType":"Document type","documentUpload":"Document upload","doingBusinessAs":"Doing Business As (DBA)","doingBusinessAsNameFiling":"Doing business as (DBA) filing","doingBusinessAsNameFiling__FR":"Trading name filing","doingBusinessAsNameFiling__US":"Doing business as (DBA) filing, such as your articles of incorporation","donorsLegalFirstName":"Donor's legal first name","donorsLegalLastName":"Donor's legal last name","doNotHaveAbn":"I do not have an ABN","doNotHaveAcn":"I do not have an ACN","doNotHaveChRegistrationNumber":"I do not have a Unternehmens-Identifikationsnummer (UID)","doNotHaveEIN":"I do not have an EIN","doNotHaveFirmenbuchnummer":"I do not have a Firmenbuchnummer","doNotHaveHandelsregisternummerOrVereinsregisternummer":"I do not have a Handelsregisternummer or a Vereinsregisternummer","doNotHaveLtRegistrationNumber":"I do not have a Įmonės kodas","doNotHaveLuRegistrationNumber":"I do not have a Numéro registre de commerce et des sociétés (RCS)","doNotHaveOrganisationsnummer":"I do not have an Organisationsnummer","doNotHaveRegonKrsNumber":"I do not have a REGON","doNotHaveYTunnus":"I do not have a Y-TUNNUS","download":"Download","downloadACopy":"Download a copy","driversLicense":"Driver license","driving_licence":"Driving license","duplicatedFiles":"Duplicated files","edit":"Edit","editBusinessSetup":"Edit business setup","editDetails":"Edit details","editForm":"Edit %{formName}","ein":"Employer Identification Number (EIN)","einVerificationLetter":"Employer identification number (EIN) verification letter, also known as a CP 575 or 147c letter","eInvoicingCode":"E-invoicing (SDI) code","email":"Email address","ensureValidFullWidthKatakana":"Ensure valid Full Width Katakana or Alphanumeric Characters used only.","enter1LetterAndThenNDigitsForExample":"Enter 1 letter and then %{numDigits} digits. For example, %{example}","enterAccountNumberWithBranchCodeForExample":"Enter a %{minDigits}-%{maxDigits} digit account number, starting with a 3-digit branch code. For example, %{example}","enterAMaximumOfNCharactersForExample":"Enter a maximum of %{maxChars} characters. For example, %{example}","enterAMaximumOfNCharactersWithAMixForExample":"Enter a maximum of %{maxChars} characters, with a mix of letters and numbers. For example, %{example}","enterAMaximumOfNDigitsForExample":"Enter a maximum of %{maxDigits} digits. For example, %{example}","enterEnglishLetterFollowedByXtoYDigitsForExample":"Enter an English-equivalent letter (C for HE, O for AE, P for Σ) followed by %{minDigits} - %{maxDigits} digits. For example, %{example}","enterLastNameExactlyAsAppearInID":"Enter your last name(s) exactly as it appears on your identity document","enterNameExactlyAsAppearInID":"Enter your first name(s) exactly as it appears on your identity document","enterNCharactersForExample":"Enter %{numChars} characters. For example, %{example}","enterNCharactersWithAMixForExample":"Enter %{numChars} characters, with a mix of letters and numbers. For example, %{example}","enterNDigitsAndThen1LetterForExample":"Enter %{numDigits} digits and then 1 letter. For example, %{example}","enterNDigitsForExample":"Enter %{numDigits} digits. For example, %{example}","enterNLettersAndThenXToYDigitsForExample":"Enter %{numLetters} letters and then %{minDigits} to %{maxDigits} digits. For example, %{example}","enterpriseNumber":"Enterprise Number","enterSettlorsFirstNameExactlyAsItAppearsInID":"Enter the settlor's first name(s) exactly as it appears on their identity document","enterSettlorsLastNameExactlyAsItAppearsInID":"Enter the settlor's last name(s) exactly as it appears on their identity document","enterTheDetailsYourself":"Enter the details yourself","enterTheRemainingNCharactersForExample":"Enter the remaining %{numChars} characters. For example, %{example}","enterTheRemainingNDigitsForExample":"Enter the remaining %{numDigits} digits. For example, %{example}","enterTheRemainingNDigitsThenXToYLettersForExample":"Enter the remaining %{numDigits} digits and then %{minLetters} to %{maxLetters} letters. For example, %{example}","enterTheRemainingXToYCharactersForExample":"Enter the remaining %{minChars} to %{maxChars} characters. For example, %{example}","enterTheRemainingXToYDigitsForExample":"Enter the remaining %{minDigits} to %{maxDigits} digits. For example, %{example}","enterThreeDifferingOptionsForExample":"Enter %{firstOption}, %{secondOption}, or %{thirdOption}. For example, %{firstExample}, %{secondExample}, or %{thirdExample}","enterXDigitsThenXToYLettersForExample":"Enter %{numDigits} digits and then %{minLetters} to %{maxLetters} letters. For example, %{example}","enterXOrYCharactersForExample":"Enter %{xChars} or %{yChars} characters. For example, %{example}","enterXOrYDigitsForExample":"Enter %{xDigits} or %{yDigits} digits. For example, %{example}","enterXToYCharactersForExample":"Enter %{minChars} to %{maxChars} characters. For example, %{example}","enterXToYCharactersWithAMixForExample":"Enter %{minChars} to %{maxChars} characters, with a mix of letters and numbers. For example, %{example}","enterXToYDigitsForExample":"Enter %{minDigits} to %{maxDigits} digits. For example, %{example}","enterXToYDigitsWithOrWithoutPrefixForExample":"Enter %{minDigits}-%{maxDigits} digits with or without a prefix. For example, %{firstExample} or %{secondExample}","entityDecisionMakers":"Entity decision-makers","entityEstablishingTrust":"The entity that establishes a trust.","entityType":"Entity type","errorMessage_1_10":"Information couldn't be verified","errorMessage_1_11":"Document didn't meet requirements","errorMessage_1_12":"Legal entity declined","errorMessage_1_30":"Individual details couldn't be verified","errorMessage_1_31":"ID document is needed","errorMessage_1_32":"ID document couldn't be processed","errorMessage_1_33":"ID document didn't meet requirements","errorMessage_1_34":"Image of the ID document didn't meet requirements","errorMessage_1_35":"Individual details didn't match the ID document","errorMessage_1_36":"Proof of residency didn't meet requirements","errorMessage_1_37":"Image of the proof of residency didn't meet the requirements","errorMessage_1_38":"Individual details didn't match the proof of residency","errorMessage_1_39":"Proof of national ID number didn't meet requirements","errorMessage_1_40":"Image of the proof of national ID number didn't meet the requirements","errorMessage_1_41":"Individual details didn't match the proof of national ID number","errorMessage_1_50":"Organization details couldn't be verified","errorMessage_1_51":"Organization details didn't match the document","errorMessage_1_52":"Registration document didn't meet requirements","errorMessage_1_53":"Tax document didn't meet requirements","errorMessage_1_54":"Proof of address didn't meet requirements","errorMessage_1_55":"Proof of ownership is needed","errorMessage_1_56":"Organization ownership couldn't be verified","errorMessage_1_57":"Submitted affiliation document didn't meet the requirements","errorMessage_1_58":"VAT document didn't meet requirements","errorMessage_1_60":"Legal entity details couldn't be verified","errorMessage_1_61":"Constitutional document didn't meet requirements","errorMessage_1_62":"Legal entity details didn't match the constitutional document","errorMessage_1_70":"Bank account couldn't be verified","errorMessage_1_71":"Bank account details couldn't be verified","errorMessage_1_72":"Verification could not be completed","errorMessage_1_73":"Bank account access could not be authenticated","errorMessage_1_74":"Bank statement is needed","errorMessage_1_75":"Bank statement didn't meet requirements","errorMessage_1_76":"Bank details didn't match the bank statement","errorMessage_1_77":"The entity is in pending status","errorMessage_1_81":"Signatory details didn't match proof of signatory.","errorMessage_1_82":"Proof of signatory didn't meet requirements.","errorMessage_1_83":"Signatory details couldn't be verified.","errorMessage_1_84":"Proof of director document missing","errorMessage_1_85":"Proof of director document didn't meet the requirements","errorMessage_1_86":"Director details didn't match with proof of director document","errorMessage_1_87":"Director details couldn't be verified","errorMessage_1_93":"Source of funds details couldn't be verified","errorMessage_1_94":"Proof of funds document didn't meet requirements","errorMessage_1_803":"Upload a proof of director document to legal entity","errorMessage_1_804":"Upload a different proof of director document","errorMessage_1_1000":"Verification failed. Legal entity declined","errorMessage_1_1001":"There were some technical issues in the verification process.","errorMessage_1_1002":"There are more questions about the submitted information.","errorMessage_1_1003":"The document contained sensitive data.","errorMessage_1_3000":"The user couldn't be verified.","errorMessage_1_3001":"The name and date of birth couldn't be verified.","errorMessage_1_3002":"The name and national ID number couldn't be verified.","errorMessage_1_3003":"The name and residence state couldn't be verified.","errorMessage_1_3004":"The name and residence country couldn't be verified.","errorMessage_1_3005":"The national ID number was entered incorrectly.","errorMessage_1_3006":"The name didn't match the national ID number.","errorMessage_1_3007":"An incorrect national ID number was entered.","errorMessage_1_3008":"The ID document image was incomplete.","errorMessage_1_3009":"The photo on the ID document couldn't be recognized.","errorMessage_1_3010":"The ID document image was incomplete or too blurry.","errorMessage_1_3011":"The ID document image was in black and white.","errorMessage_1_3012":"The image couldn't be recognized as a supported ID document.","errorMessage_1_3013":"The ID document wasn't a supported document type.","errorMessage_1_3014":"The ID document image didn't contain the MRZ code.","errorMessage_1_3015":"The ID document was expired.","errorMessage_1_3016":"The ID document image was of too low quality.","errorMessage_1_3017":"The ID document image was a scan.","errorMessage_1_3018":"The ID document image was too blurry.","errorMessage_1_3019":"The ID document was expired.","errorMessage_1_3020":"The ID document wasn't a supported document type.","errorMessage_1_3021":"The ID document MRZ code is unreadable.","errorMessage_1_3022":"The ID document image only showed one side of the ID document.","errorMessage_1_3023":"The ID document image only showed parts of the ID document.","errorMessage_1_3024":"The ID document wasn't valid.","errorMessage_1_3025":"The state didn't match the one on the ID document.","errorMessage_1_3026":"The ID document didn't show an issuing state.","errorMessage_1_3027":"The ID document wasn't valid.","errorMessage_1_3028":"The ID number didn't match the one on the document.","errorMessage_1_3029":"The ID document didn't show a document number.","errorMessage_1_3030":"The ID document wasn't valid.","errorMessage_1_3031":"The ID document wasn't valid.","errorMessage_1_3032":"The first name didn't match the one on the ID document.","errorMessage_1_3033":"The last name didn't match the one on the ID document.","errorMessage_1_3034":"The date of birth didn't match the one on the ID document.","errorMessage_1_3035":"The country didn't match the one on the ID document.","errorMessage_1_3036":"The ID document image was too low quality.","errorMessage_1_3037":"The last name didn't match the one on the proof of residential address.","errorMessage_1_3038":"The first name didn't match the one on the proof of residential address.","errorMessage_1_3039":"The date of birth didn't match the one on the proof of residential address.","errorMessage_1_3040":"The proof of residential address didn't show the date it was issued.","errorMessage_1_3041":"The proof of residential address didn't show a name.","errorMessage_1_3042":"The proof of residential address didn't show an issuing country.","errorMessage_1_3043":"The proof of residential address wasn't a supported document type.","errorMessage_1_3044":"The proof of residential address was too old.","errorMessage_1_3045":"The proof of residential address image was of too low quality.","errorMessage_1_3046":"The address on the proof of residential address was a PO Box.","errorMessage_1_3047":"The proof of national ID number wasn't a supported document type.","errorMessage_1_3048":"The last name didn't match the one on the proof of national ID number.","errorMessage_1_3049":"The first name didn't match the one on the proof of national ID number.","errorMessage_1_3050":"The date of birth didn't match the one on the proof of national ID number.","errorMessage_1_3051":"The proof of national ID number image was of too low quality.","errorMessage_1_3052":"An ID document is needed to verify the individual.","errorMessage_1_3062":"The name and 4 digit SSN couldn't be verified.","errorMessage_1_3072":"We found the following issues:\\n- The name and nationality couldn't be verified.\\nReview the information below and correct any mistakes, or upload an id document then resubmit.","errorMessage_1_3073":"We found the following issues:\\n- The ID document didn't show the nationality.\\nReview the information below and correct any mistakes, or upload an id document then resubmit.","errorMessage_1_3083":"Individual details didn't match the ID document","errorMessage_1_3088":"The residential address is a P.O. Box","errorMessage_1_3089":"The name and ID number couldn't be verified. Check if all data points were provided.","errorMessage_1_5000":"The legal business name couldn't be verified.","errorMessage_1_5001":"The tax ID number couldn't be verified.","errorMessage_1_5002":"The state couldn't be verified.","errorMessage_1_5003":"The legal name didn't match the one on the registry.","errorMessage_1_5004":"The legal name didn't match the one on the registry.","errorMessage_1_5005":"The legal name didn't match the one on the registry.","errorMessage_1_5006":"The country didn't match the one on the registry.","errorMessage_1_5007":"The registration number didn't match the one on the registry.","errorMessage_1_5008":"The tax ID didn't match the one on the registry.","errorMessage_1_5009":"The registration number was provided as tax ID.","errorMessage_1_5010":"The company details couldn't be verified. ","errorMessage_1_5011":"The trade name (doing business as) was entered.","errorMessage_1_5012":"The submitted company type didn't match the one on the registry.","errorMessage_1_5013":"The company was not found in the database.","errorMessage_1_5014":"The registration number couldn't be verified. ","errorMessage_1_5015":"The registration number didn't match the legal business name.","errorMessage_1_5016":"The tax ID number couldn't be verified.","errorMessage_1_5017":"The tax ID number didn't match the legal business name.","errorMessage_1_5018":"The business address couldn't be verified.","errorMessage_1_5019":"The trade name (doing business as) was entered instead of the legal name.","errorMessage_1_5020":"Registration document is missing.","errorMessage_1_5021":"The registration document was too low quality.","errorMessage_1_5022":"The registration document was too old.","errorMessage_1_5023":"The submitted company type didn't match the one on the registration document.","errorMessage_1_5024":"The registration document did not show the company type.","errorMessage_1_5025":"The address on the company registration document was a residential address.","errorMessage_1_5026":"The address on the company registration document was a PO Box.","errorMessage_1_5027":"The business address didn't match the one on the company registration document.","errorMessage_1_5028":"The registration number didn't match the one on the company registration document.","errorMessage_1_5029":"The legal business name didn't match the one on the company registration document.","errorMessage_1_5030":"The country didn't match the one on the company registration document.","errorMessage_1_5031":"The company registration document didn't show a legal business name.","errorMessage_1_5032":"The company registration document didn't show a registration number.","errorMessage_1_5033":"The state didn't match the one on the company registration document.","errorMessage_1_5034":"The company registration document wasn't a supported document type.","errorMessage_1_5035":"The company registration document is not supported.","errorMessage_1_5036":"Tax document is missing.","errorMessage_1_5037":"The country didn't match the one on the tax document.","errorMessage_1_5038":"The tax document wasn't a supported document type.","errorMessage_1_5039":"The tax document was too low quality.","errorMessage_1_5040":"The tax document was too old.","errorMessage_1_5041":"The legal name didn't match the one on the tax document.","errorMessage_1_5042":"The tax ID number didn't match the legal business name.","errorMessage_1_5043":"The tax document didn't show a tax ID number.","errorMessage_1_5044":"The tax document didn't show a legal business name.","errorMessage_1_5045":"The state didn't match the one on the proof of address.","errorMessage_1_5046":"Ownership data seems incorrect.","errorMessage_1_5047":"Ownership data seems to be missing.","errorMessage_1_5048":"Provide official ownership documentation.","errorMessage_1_5049":"The affiliation document was not sufficient to prove the 100% affiliation.","errorMessage_1_5050":"The affiliation document was not official.","errorMessage_1_5051":"Signing person on the affiliation document could not be verified","errorMessage_1_5052":"The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.","errorMessage_1_5053":"The affiliation document was not issued within the last 6 months","errorMessage_1_5054":"The VAT number couldn't be verified","errorMessage_1_5055":"VAT document is missing","errorMessage_1_5057":"The VAT document wasn't a supported document type","errorMessage_1_5064":"The VAT number didn't match the one on the registry.","errorMessage_1_5067":"The legal name didn't match the one on the VAT registry.","errorMessage_1_5072":"The registered city didn't match the one on the registry.","errorMessage_1_5084":"The date of incorporation couldn't be verified.","errorMessage_1_5093":"The business address details couldn’t be verified.","errorMessage_1_5095":"Japanese support phone number is required","errorMessage_1_5096":"Support phone number did not meet requirements","errorMessage_1_6000":"The legal name couldn't be verified.","errorMessage_1_6001":"The legal name didn't match the registration number.","errorMessage_1_6002":"The registration number couldn't be verified.","errorMessage_1_6003":"Legal entity type couldn't be verified.","errorMessage_1_6004":"The country of governing law couldn't be verified.","errorMessage_1_6005":"Constitutional document is missing.","errorMessage_1_6006":"The constitutional document was too old.","errorMessage_1_6007":"Legal name didn't match the constitutional document.","errorMessage_1_6008":"Country of governing law didn't match the constitutional document.","errorMessage_1_6009":"The constitutional document didn't show a legal name.","errorMessage_1_6010":"The constitutional document didn't show a registration number.","errorMessage_1_6011":"The legal entity type didn't match the one on the constitutional document.","errorMessage_1_6012":"The legal entity's state didn't match the one on the constitutional document.","errorMessage_1_6013":"The registered state couldn't be verified.","errorMessage_1_6014":"The submitted registered state didn't match the one on the registry.","errorMessage_1_6015":"The constitutional document contained sensitive data.","errorMessage_1_6016":"The constitutional document is not supported.","errorMessage_1_6017":"The constitutional document doesn't belong to the legal arrangement.","errorMessage_1_6018":"Legal entity was not found.","errorMessage_1_6019":"The constitutional document didn't show the date of issue.","errorMessage_1_6020":"The constitutional document didn't show a stamp/signature.","errorMessage_1_6021":"The image quality of the constitutional document was too low.","errorMessage_1_6022":"The registration number didn't match the one on the registry.","errorMessage_1_6023":"The legal entity name didn't match the one on the registry.","errorMessage_1_6024":"The trade name (doing business as) was entered instead of the legal entity name.","errorMessage_1_6025":"The legal entity name is incorrect.","errorMessage_1_6026":"The legal entity registration number did not match the one on the constitutional document.","errorMessage_1_6027":"The registered entity type is different","errorMessage_1_6028":"The constitutional document is not associated with a legal arrangement.","errorMessage_1_6029":"The constitutional document didn't show a stamp/signature.","errorMessage_1_6030":"The constitutional document didn't show the Settlor(s) details.","errorMessage_1_6031":"The constitutional document didn't show the Protector(s) details.","errorMessage_1_6032":"The constitutional document didn't show the Defined Beneficiary(ies) details.","errorMessage_1_6033":"The constitutional document didn't show the Undefined Beneficiary(ies) details.","errorMessage_1_6034":"The Secondary Trustee details didn't match the ones on the constitutional document.","errorMessage_1_6035":"The Settlor(s) details didn't match the one(s) on the constitutional document.","errorMessage_1_6036":"The Protector(s) details didn't match the one(s) on the constitutional document.","errorMessage_1_6037":"The Defined Beneficiary(ies) details didn't match the one(s) on the constitutional document.","errorMessage_1_6038":"The Undefined Beneficiary(ies) details didn't match the one(s) on the constitutional document.","errorMessage_1_6039":"The Secondary Trustee is missing.","errorMessage_1_6040":"The Protector(s) is/are missing.","errorMessage_1_6041":"The Secondary Trustee(s) is a natural person but an Organization is mentioned instead..","errorMessage_1_6042":"The Secondary Trustee(s) is an Organization but a natural person is mentioned instead..","errorMessage_1_6044":"The constitutional document didn't show the Secondary Partner(s) details..","errorMessage_1_6045":"The constitutional document didn't show the UBO(s) details.","errorMessage_1_6046":"The Secondary Partner(s) details didn't match the constitutional document.","errorMessage_1_6047":"The UBO(s) details didn't match the constitutional document.","errorMessage_1_6048":"The Secondary Partner(s) is a natural person but an Organization is mentioned instead.","errorMessage_1_6049":"The Secondary Partner(s) is an Organization but a natural person is mentioned instead.","errorMessage_1_7000":"The bank account couldn't be verified.","errorMessage_1_7001":"The routing number wasn't valid.","errorMessage_1_7002":"The bank account number wasn't valid.","errorMessage_1_7003":"The bank account couldn't be verified.","errorMessage_1_7004":"The bank account entered was invalid.","errorMessage_1_7005":"The verification code wasn't valid.","errorMessage_1_7006":"There were too many attempts to request the verification code.","errorMessage_1_7007":"The verification code wasn't entered.","errorMessage_1_7008":"There is no bank document to verify.","errorMessage_1_7009":"The bank document didn't show a bank account number.","errorMessage_1_7010":"The bank document didn't show the account owner name.","errorMessage_1_7011":"The bank account number didn't match the one on the bank document.","errorMessage_1_7012":"The bank account owner name appearing in the document does not match the verified legal name.","errorMessage_1_7013":"The bank document was too low quality.","errorMessage_1_7014":"The bank document wasn't a supported document type.","errorMessage_1_7015":"The bank account country didn't match the one on the bank document.","errorMessage_1_7016":"The branch code didn't match the one on the bank document.","errorMessage_1_7017":"The bank account currency didn't match the one on the bank document.","errorMessage_1_7018":"The bank document wasn't officially issued by the bank.","errorMessage_1_7019":"The bank document wasn't issued in the past 12 months.","errorMessage_1_7020":"The bank name didn't match the one on the bank document.","errorMessage_1_7021":"The bank document didn't show an official bank logo.","errorMessage_1_7022":"The bank document didn't show an official bank stamp.","errorMessage_1_7023":"Bank account couldn't be verified due to ownership mismatch","errorMessage_1_7024":"Bank account owner's name didn't match the legal entity's legal name","errorMessage_1_7025":"Bank account owner's name didn't match the individual's legal name","errorMessage_1_7026":"Bank account owner's name didn't match the legal arrangement's legal name","errorMessage_1_8000":"Proof of signatory was missing organization legalName.","errorMessage_1_8001":"Organization legalName did not match proof of signatory.","errorMessage_1_8002":"Signatory name was not found in proof of signatory.","errorMessage_1_8003":"Proof of signatory image was of too low quality.","errorMessage_1_8004":"Proof of signatory was too old.","errorMessage_1_8005":"Proof of signatory didn't show the date it was issued.","errorMessage_1_8006":"Proof of signatory provided is not supported.","errorMessage_1_8007":"The signatory couldn't be verified.","errorMessage_1_8008":"The signatory name didn't match the one on the registry.","errorMessage_1_8009":"Organization legal name is missing from the proof of director document.","errorMessage_1_8010":"Organization legal name is different with the one presented in the document.","errorMessage_1_8011":"Director name is missing from the proof of director document.","errorMessage_1_8012":"Director name is different with the one presented in the document.","errorMessage_1_8013":"Provided proof of director document is not supported.","errorMessage_1_8014":"Proof of director document was too old.","errorMessage_1_8015":"Proof of director image was of too low quality.","errorMessage_1_9009":"Proof of funds didn't match funding source type.","errorMessage_1_9010":"The legal business name didn't match the one shown on the proof of funds document.","errorMessage_1_9011":"The proof of funds document was too old.","errorMessage_1_9012":"The legal business name was not found in the proof of funds document.","errorMessage_2_902":"Terms Of Service forms are not accepted.","errorMessage_2_1101":"Further information is needed to verify your source of funds.","errorMessage_2_1102":"Some information related to the source of funds are still missing the proof of source of funds.","errorMessage_2_1103":"Proof of source of funds provided showing different source of funds type.","errorMessage_2_1110":"Some proof of source of funds didn't meet requirements.","errorMessage_2_1111":"Some proof of source of funds didn't seem to be owned by your business.","errorMessage_2_1112":"Some proof of source of funds are too old.","errorMessage_2_1113":"Some proof of source of funds didn't show a legal business name.","errorMessage_2_8019":"'individual.residentialAddress.street' was missing.","errorMessage_2_8020":"'individual.residentialAddress.city' was missing.","errorMessage_2_8021":"'individual.residentialAddress.postalCode' was missing.","errorMessage_2_8028":"'individual.birthData.dateOfBirth' was missing.","errorMessage_2_8036":"'bankAccount' was missing.","errorMessage_2_8043":"'organization.registrationNumber' was missing.","errorMessage_2_8045":"'organization.taxId' was missing.","errorMessage_2_8064":"UBO through ownership was missing.","errorMessage_2_8067":"Signatory was missing.","errorMessage_2_8069":"'organization.type' was missing.","errorMessage_2_8071":"'Identity document' was missing.","errorMessage_2_8086":"'organization.doingBusinessAs' was missing.","errorMessage_2_8107":"'Proof of residency' was missing.","errorMessage_2_8139":"'Proof of national ID number' was missing.","errorMessage_2_8140":"'Proof of address' was missing.","errorMessage_2_8141":"Registration document was missing.","errorMessage_2_8150":"'phone.number' was missing","errorMessage_2_8162":"proofOfOrganizationTaxInfo was missing.","errorMessage_2_8163":"'sourceOfFunds' was missing","errorMessage_2_8174":"'taxInformation' was missing.","errorMessage_2_8179":"'vatNumber' or 'vatAbsenceReason' was missing","errorMessage_2_8183":"'webAddress' was missing.","errorMessage_2_8184":"'taxReportingClassification' was missing.","errorMessage_2_8189":"UBO through control was missing.","errorMessage_2_8190":"'businessLine' was missing.","errorMessage_2_8191":"'businessLine' was missing.","errorMessage_2_8193":"Director was missing.","errorMessage_2_8196":"proofOfOwnership document to perform verification was missing.","errorMessage_2_8198":"Proof of industry to perform verification was missing","errorMessage_2_8202":"'organization.registeredAddress.postalCode' was missing.","errorMessage_2_8203":"organization.economicSector was missing","errorMessage_2_8204":"organization.globalLegalEntityIdentifier was missing","errorMessage_2_8209":"Proof of signatory was missing.","errorMessage_2_8210":"Live selfie was missing","errorMessage_2_8215":"'organization.registeredAddress.street' was missing.","errorMessage_2_8217":"'organization.registeredAddress.city' was missing.","errorMessage_2_8224":"Proof of funding or wealth source was missing.","errorMessage_2_8225":"Institutional sector was missing.","errorMessage_2_8226":"Legal form was missing.","errorMessage_2_8227":"Status of legal proceedings was missing.","errorMessage_2_8228":"Date of initiation of legal proceedings was missing.","errorMessage_2_8229":"Head office indicator was missing.","errorMessage_2_8231":"'businessLine' was missing.","errorMessage_2_8234":"'organization.countryOfGoverningLaw' was missing.","errorMessage_2_8236":"Proof of director was missing.","errorMessage_2_8238":"Financial report was missing.","errorMessage_2_8247":"'organization.support.email' was missing","errorMessage_2_8248":"'individual.support.email' was missing","errorMessage_2_8249":"'organization.support.phone.number' was missing","errorMessage_2_8250":"'individual.support.phone.number' was missing","errorMessage_3_10":"Review of data is required","errorSubmittingData":"Error submitting data","euVatNumber":"EU VAT number","exemptedFromTax":"Exempted from tax","expiryDate":"Expiry date","extractFromMunicipalPersonalRecordsDatabase":"Extract from Municipal Personal Records database","failedToDeletePayoutAccount":"Failed to delete payout account","failedToDownloadPci":"Failed to download PCI document(s)","failedToFetchRelevantDocuments":"Failed to fetch relevant documents","failedToFetchTrustDetails":"Failed to fetch the trust details","failedToFetchTrustMemberDetails":"Failed to fetch the trust member details","failedToUpdateDetails":"Failed to update details","fieldIsRequired":"Field is required","fieldMustContainAtLeast":"%{fieldName} must contain at least %{minLength} characters","fileName":"File name","financialInformation":"Financial information","financialReportingDate":"Financial reporting date","finish":"Finish","finishLater":"Finish later","firmenbuchnummer":"Firmenbuchnummer","firstName":"First name","firstName__JP":"First name (Romaji)","firstNameOfSettlor":"First name of settlor","formStepCompleted":"Form step completed","formStepInvalid":"Form step invalid","franchiseesTAndCs":"Franchisees T&C's","fundingSources":"Funding sources","gamblingEstablishmentWebsite":"Gambling establishment website","GEMI-number":"GEMI number or ΑΡΙΘΜΟΣ Γ.Ε.ΜΗ (Γενικού Εμπορικού Μητρώου)","gender":"Gender","getSetUpInstantly":"Get set up instantly","gettingStarted":"Get Started","getYourBusinessVerifiedDetails":"Get your business's verified details instantly and skip uploading documents.","getYourVerifiedDetailsInstantly":"Get your verified details instantly and skip uploading documents.","goBack":"Go back","goBackAndProvideDocumentScans":"Go back and provide document scans","goBackToTaskList":"Go back to task list","goToIntroduction":"How does it work?","goToOverview":"Go to overview","governmentIssuedCorrespondence":"Government-issued correspondence","grTaxId":"Αριθμός Φορολογικού Μητρώου Arithmós Forologikou Mētrṓou (ΑΦΜ)","gst":"Goods and Services Tax (GST) number","guardian":"guardian","guardianshipCertificate":"Guardianship certificate","handelsregisternummerOrVereinsregisternummer":"Handelsregisternummer or Vereinsregisternummer","hasDba":"Does your business use a DBA name?","hasDba__helperText":"A Doing Business As (DBA) name is a version of your business' name that may be more recognizable to shoppers but is different from the legal name.","helpUsVerifyCompany":"Help us verify this company.","hideDetails":"Hide details","hkid":"HKID Number","howWouldYouLikeToSetUpYourAccount":"How would you like to set up your account","howYourCustomersCanReachYou":"How your customers can reach you with questions or concerns. Contact details may be shown on shopper bank statements.","huRegistrationNumber":"Cégjegyzékszám","huRegistrationNumberForSoleProp":"Nyilvántartási szám","huTaxId":"Közösségi adószám","iban":"IBAN","ICO":"IČO (Identifikační číslo)","id":"ID","idDocument":"ID Document","idDocumentType":"Document type","identifikacionenNomerDDS":"VAT number (ДДС)","identityCard":"Identity card","identityCard__JP":"My Number Card / Seal Certificate","identityNumberExempt":"I don't have an identity number","identityNumberExempt__CA":"I don't have an SIN","identityNumberExempt__US":"I don't have an SSN","idNumber":"Identity number","iDoNotHaveCompanyRegistrationNumber":"I do not have a company registration number (CRN)","iDontHaveARegistrationNumber":"I don't have a registration number","iDontHaveATaxId":"I don't have a Tax ID","iDontHaveAVatNumber":"I don't have a VAT number","iDontHaveAWebsite":"I don't have a website","iDontKnow":"I don't know","idUploadDocumentSubtitle":"So that we can verify the identity of <strong>%{name}</strong>, we need to see their government issued ID. Choose the method most convenient to you.","idVerificationMethod":"Verification method","ifNoOwnersSpecifyControllingPersons":"If you don't have any owners holding 25% or more, then specify <strong>all controlling persons</strong>.","immediateParentCompany":"immediateParentCompany","incorporatedAssociationRegistrationNumber":"Incorporated association registration number","individual":"Individual","individualDetails":"Individual details","individualMember":"An individual","individualTrustee":"Individual trustee","individualTrusteeDetails":"Individual trustee details","industry":"Industry","industryCodesForm":"Industry","industryExemption":"The goods or services provided are exempt from VAT/GST","infoInUploadedDocumentIsTrue":"All information in the uploaded document must be true and up-to-date.","inheritanceAmount":"Inheritance amount","inheritanceReceivedOn":"Inheritance received on","inProgress":"In progress","instantVerification":"Instant verification","institutionNumber":"Institution number","internalCompanyDocument":"Internal company document","inTheNextStepWellCollectInformation":"To help make sure our services are being used safely and securely, we need to collect some information about the original source of the funds used with our financial products.","inThePreviousStepOwnedByAParentCompany":"In the previous step, you indicated that your business is owned by a parent company. We need to learn more about this company to continue.","invalidCapabilities":"Some capabilities are invalid.","invalidDateOfBirth":"Please enter a valid date of birth","invalidDateOfIncorporation":"Please enter a valid date of incorporation","invalidEmail":"Please enter a valid email","invalidFinancialReportingDate":"Please enter a valid reporting date","invalidFormat":"Invalid format","invalidFormatBankStatementDescription":"Please ensure your input contains solely letters, digits, currency codes, and the specified special characters: -._,:;'*!@#%()+?¿/「」","invalidFormatExpects":"Invalid format. Expected format: %{format}","invalidFormatForAuDriversLicenseNumber":"This isn't a valid Australian driver's license number. Expected format: 6-11 alphanumeric characters.","invalidFormatForAuPassportNumber":"This isn't a valid Australian passport number. Expected format: 1-2 letters followed by 7 numbers.","invalidFormatForHKDriversLicenseNumber":"Not valid for HK. Format should be: 8-character alphanumeric. For example: A1234567","invalidFormatForHKIdentityCardNumber":"Not valid for HK. Format should be: 8 or 9-character alphanumeric. For example: C668668A","invalidFormatForHKPassportNumber":"Not valid for HK. Format should be: 9-character alphanumeric. For example: K12345599","invalidFormatForNZDriversLicenseCardNumber":"Expected format should be: 3 digits","invalidFormatForNZDriversLicenseNumber":"Expected format should be: 2 characters, followed by 6 digits","invalidFormatForNZPassportNumber":"Expected format should be 8-9 alphanumeric characters. For example: PA094043.","invalidFormatIdentityNumberBR":"Please use the CFP format: XXX.XXX.XXX-XX","invalidFormatIdentityNumberCA":"Please use the SIN format: XXXXXXXXX","invalidFormatIdentityNumberDK":"Please use the CPR format: XXXXXX-XXXX","invalidFormatIdentityNumberES":"Please use the DNI format: L0000000J","invalidFormatIdentityNumberHK":"Not valid for HK. Format should be: 8 or 9-character alphanumeric. For example: C668668E","invalidFormatIdentityNumberIT":"Please use the Codice fiscale format: ABCDEF11B12A123O","invalidFormatIdentityNumberPL":"Please use the PESEL format: XXXXXXXXXXX","invalidFormatIdentityNumberRO":"Please use the CNP format: XXXXXXXXXXXXX","invalidFormatIdentityNumberSE":"Please use the Personnummer format: YYYYMMDD-XXXX or YYMMDD-XXXX","invalidFormatIdentityNumberSG":"Please use the NRIC format: S1234567A","invalidFormatIdentityNumberUS":"Please provide last 4 digits","invalidFormatIdentityNumberUS9":"Please use the SSN format: XXXXXXXXX","invalidInputError":"There was an invalid input error:","invalidNumberOfEmployees":"Please enter a valid number","invalidPhoneNumber":"Please enter a valid phone number","investor":"Investor","inviteDetails":"Invite details","irdNumber":"IRD number","isPartnershipOperationAddressSame":"Is there a different address for your partnership’s operations?","issuerState":"Issuing state","issuingService":"Payment cards (physical or virtual)","isThisPersonANomineeDirector":"Is this person a nominee director?","isThisPersonANomineeShareholder":"Is this person a nominee shareholder?","isTrustOperationAddressSame":"Is there a different address for your trust's operations?","jaHaniFirstName":"First name (Kanji)","jaHaniLastName":"Last name (Kanji)","jaHaniLegalCompanyName":"Business legal name (Kanji)","jaKanaFirstName":"First name (Katakana)","jaKanaLastName":"Last name (Katakana)","jaKanaLegalCompanyName":"Business legal name (Katakana)","japaneseCommercialDisclosure":"Japanese Commercial Disclosure","japaneseCommercialDisclosureWebpage":"Japanese Commercial Disclosure webpage","jobTitle":"Job title","justAMoment":"Just a moment...","justAMomentTakingLonger":"Just a moment, this is taking a bit longer than expected...","kaibemaksukohustuslaseNumber":"Käibemaksukohustuslase number","kanjiAddress":"Kanji address","kanjiAndKanaCharactersAreNotAllowed":"Kanji and Kana characters are not allowed, please only provide roman alphabets (A-Z, a-z) and symbols.","katakanaAddress":"Katakana address","krsNumber":"KRS number","last4DigitsOfSocialSecurityNumber":"Last 4 digits of Social Security Number (SSN)","lastName":"Last name","lastName__JP":"Last name (Romaji)","lastNameOfSettlor":"Last name of settlor","learnMore":"Learn more","leave":"Leave","leaveInstantVerification":"Leave instant verification?","leaveVerification":"Leave verification","legalCompanyName":"Business legal name","legalCompanyName__JP":"Business legal name (Romaji)","legalCompanyName__US":"Business legal name","legalEntityIdentifier":"Legal Entity Identifier (LEI)","legalForm":"Legal form","legalName":"Legal name","legalNameOfSoleProprietorship":"Legal name of sole proprietorship","legalOwnerOfProperty":"The legal owner of the property in trust.","legalProceedings":"Legal proceedings","legalProceedingsDate":"Start date of legal proceedings","legalRepresentative":"Legal representative","legalRepresentativeDetails":"Legal representative details","legalRepresentativeNeeded":"The user is underage, therefore a legal representative is needed.","licenceVersionNumber":"Licence version number","licenseCardNumber":"Card number","licenseNumber":"Driver license number","liRegistrationNumber":"Unternehmensnummer","listitemVoidedChequeBankLetterBankStatementOnline":"Voided cheque/Bank letter/Bank statement/Online banking environment","ltRegistrationNumber":"Įmonės kodas","luRegistrationNumber":"Numéro registre de commerce et des sociétés (RCS) or Registernummer","lvRegistrationNumber":"Komersanta reģistrācijas numurs (NBR)","lvTaxId":"Pievienotās vērtības nodokļa reģistrācijas numurs (PVN)","maintenanceModeMessage":"We're currently undergoing maintenance — please keep this page open until maintenance is complete to avoid losing unsaved changes.","manualUpload":"Manual upload","maximumFileSizeExceeded":"Maximum file size exceeded","MBO":"MBO","MBS":"Matični broj subjekta trgovačkog suda (MBS)","mcRegistrationNumber":"Numéro de RCI","mcRegistrationNumberSoleProp":"Numéro d'Identification Statistique (NIS)","meetingMinutes":"Minutes from a meeting of the partnership","Mehrwertsteuernummer":"Mehrwertsteuernummer (MwST), Numéro de TVA, Numero dell'imposta sul valore aggiunto (IVA), VAT number","memberDetails":"Member details","missingMultipleDecisionMakers":"You haven't added all required decision-makers","missingPhoneCountryCode":"Select a country code","missingRequiredDecisionMakers":"We don't yet have sufficient decision makers.","missingRequiredTrustMembers":"We don't yet have sufficient trust members.","momsregistreringsnummer":"Momsregistreringsnummer","momsregistreringsnummerCVR":"Momsregistreringsnummer (CVR)","mortgageStatement":"Mortgage statement","mustContain4Digits":"Must contain 4 digits. For example, 1234","mvanummer":"MVA-nummer","myinfoBusinessDetailsRetrieved":"Myinfo business details retrieved","myInfoBusinessYouCanGetVerifiedDetails":"With Myinfo business, you can get your business's verified details instantly and skip uploading documents.","myinfoDetailsRetrieved":"Myinfo details retrieved","myInfoYouCanGetVerifiedDetails":"With Myinfo, you can get your verified details instantly and skip uploading documents.","myName":"My name","mySoleProprietorName":"My sole proprietor name","nameMustContainLetters":"Name must contain letters. Check for typos and try again.","nameOfTrust":"Name of trust","nameOfTrustAgreement":"Name of trust agreement","national_identity_card":"National ID Card","nationalIdNumber":"National ID Number","nationalInsuranceNumber":"National Insurance Number (NINO)","nationality":"Nationality","needHelpYouCanAlwaysReachOutToCustomerSupport":"Need help? You can always reach out to customer support.","newEntityAlwaysEmpty":"We still need to create this entity.","next":"Next","nie":"NIE","NIF":"NIF (Número de Identificación Fiscal)","NIFdeIVA":"Número de Identificación a efectos de IVA (Impuesto sobre el Valor Añadido)","NIP":"Numer identyfikacji podatkowej (NIP)","NIPC":"NIPC (Número de Identificação de Pessoa Colectiva)","no":"No","noCategoriesAvailable":"No categories available.","noIdontKnow":"No, or I don't know","noIssuesFound":"No issues found.","nominee":"Nominee","none":"None","nric":"National Registration Identity Card (NRIC)","number":"Number","numberOfEmployees":"Number of employees","numerodeIVA":"Número de IVA","NumeroDeTVA":"Numéro de TVA intracommunautaire","numeroDIdentificationALATaxe":"Numéro d'identification à la taxe sur la valeur ajoutée","NZBN":"New Zealand Business Number (NZBN)","objectOfCharitableTrust":"Object of charitable trust","objectOfTrust":"Object of trust","oib":"OIB","ok":"OK","one":"One","onfido":"Onfido.","operationalAddress":"Operational address","operationalAddressHeader":"Additional address","operationalAddressIsNotSameItemName":"Yes, our headquarters are at a different location","operationalAddressIsSame":"Is there a different address for your company's main business operations?","operationalAddressIsSameItemName":"No, the registered address is where we operate","optional":"(optional)","organisasjonsnummer":"Organisasjonsnummer","organisationsnummer":"Organisationsnummer","organization":"Organization","organizationalChartAndSupportingDocument":"Organizational chart and supporting document","organizationsLegalName":"Organization's legal name","originatorType":"Originator type","other":"Other","otherAddressInformation":"Other address information","otherInformation":"Other information","otherOptions":"Other options","ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations":"Our financial services aren't available yet for partnerships and associations","owner":"Owner","ownerDescription":"Someone who owns 25% or more of the company (directly or indirectly)","parent":"parent","parentCompany":"Parent company","parentCompanyAddress":"Parent company address","parentCompanyInformation":"Parent company information","partitaIVA":"Partita IVA","partnership":"Partnership","partnershipAgreement":"Partnership agreement, constitution, or rules","partnershipIncorporated":"Incorporated partnership","partnershipIncorporatedDescription":"You and your partners have limited liability for business debts.","partnershipMemberDetails":"Partnership member details","partnershipOrAssociation":"Partnership or association","partnershipUnincorporated":"Unincorporated partnership","partnershipUnincorporatedDescription":"You or your partners are personally liable for business debts.","passport":"Passport","passportExpiryDate":"Passport expiry date","passportNumber":"Passport number","payinAccount":"Payin account","payinAccountsDescription":"To complete your account, let us know where to send your payins.","payinDetails":"Payin details","paymentProcessing":"Payment processing","paymentProcessingTerms":"Payment Processing Terms","paymentService":"Accepting Payments","payoutAccount":"Payout account","payoutAccountsDescription":"To set up your account, let us know where to send your payouts.","payoutAccountsDescriptionReview":"In order to ensure that your payout data is accurate, please verify the following details.","payoutBankAccounts":"Payout bank accounts","payoutCountryDetails":"Payout country details","payoutDetails":"Payout details","pccr":"PCCR","pciDoesNotNeedSigningOrHasBeenSigned":"Payment Card Industry Data Security Standards (PCI DSS) self-service questionnaire does not need signing or has already been signed","pciDssQuestionnaire":"PCI DSS questionnaire","PDVIdBrojOIB":"PDV Id. Broj OIB","pendingCapabilities":"Some capabilities are still pending.","pendingStatusError":"There is an error with a pending status.","personalDetails":"Personal details","personAppointmentUnderTrustInstrument":"The person appointed under the trust instrument to direct or restrain the trustees in relation to their administration of the trust.","personnummer":"Personnummer","peselNumber":"PESEL number","phoneNumber":"Phone number","phoneNumberPrefix":"Phone number prefix","placeOfBirth":"Place of birth","pleaseEnsureTheFollowing":"Please ensure the following section is fulfilled to complete the review of your data.","pleaseEnterAPhoneNumberPrefixedWithCountryCode":"Please enter a phone number prefixed with a country code e.g. %{defaultPrefix}.","pleaseEnterAValidAmount":"Please enter a valid amount.","pleaseEnterAValidNumber":"Please enter a valid number.","pleaseEnterAValidWholeNumber":"Please enter a valid whole number.","pleaseNote":"Please note:","pleaseProvideThePurposeOfCharitableTrust":"Please provide the purpose of your charitable trust","pleaseUseOnlyNumbersAndDashes":"Please use only numbers and dashes e.g. 5-27 or 2-1-3","poBox":"PO Box","postalCode":"Postal code","poweredBy":"Powered by","prefecture":"Prefecture","preferNotToSay":"Prefer not to say","preferredCurrency":"Preferred currency code","previous":"Previous","primaryPartner":"Primary partner","primaryPartnerDetails":"Primary partner details","privacyPolicy":"Privacy Policy","privacyStatement":"Privacy Statement.","processing":"Processing","progress":"Progress","proofOfAddress":"Proof of address","proofOfDirector":"Proof of director","proofOfDirectorFormName":"Proof of director","proofOfFundingOrWealthSource":"Proof of funding or wealth source","proofOfIdentityCard":"Proof of identity card","proofOfNationalId":"Proof of national ID","proofOfNationalIdNumber":"Proof of national ID number","proofOfOrganizationTaxInfo":"Proof of organization tax information","proofOfOwnership":"Proof of ownership","proofOfOwnershipFormName":"Proof of ownership","proofOfRelationship":"Proof of relationship","proofOfResidency":"Proof of residency","proofOfSignatory":"Proof of signatory","proofOfSignatoryFormName":"Proof of signatory","propertyDescription":"Property description","protector":"Protector","provideAllBeneficiaries":"Add <strong>all beneficiaries</strong>.","provideAllDirectors":"Add <strong>all directors</strong>. You should have at least 1 director.","provideAllOwners":"Add <strong>all owners</strong> holding 25% or more of your company.","provideAllRequiredDetails":"Provide all required details","provideAllTrustees":"Add <strong>all trustees</strong>.","provideAtLeastOneProtector":"Add <strong>all protectors</strong> if there are any.","provideAtLeastOneSecondaryPartner":"Add at least <strong>1 secondary partner</strong>.","provideAtLeastOneSettlor":"Add at least <strong>1 settlor</strong>.","provideAtLeastOneSignatory":"Add at least <strong>1 signatory</strong>.","provideFewDetailsAboutYourself":"Provide a few details about yourself.","provideOneControllingPerson":"Add <strong>1 controlling person</strong>.","providePersonalAddress":"Provide personal address","provinceOrTerritory":"Province or territory","publicTradingTrust":"Public trading trust","PVMmoketojoKodas":"PVM mokėtojo kodas","reason":"Reason","reasonForFillingCompanyAddressDetails":"We have to make sure the businesses using our services will not be misusing the funds or causing harm. To do that, we'll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.","reasonForFillingIndividualAddressDetails":"We have to make sure that everyone who uses our services is who they say they are. To do that, we'll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.","region":"Region","registeredAddress":"Registered address","registrationAddress":"Registration address","registrationDetails":"Registration details","registrationNumber":"Registration number","registrationNumber__helperText__US":"This helps us better identify and verify your business.","registrationNumber__nonProfit__FR":"SIRET or RNA","registrationNumber__US":"State registration number","registrikood":"Registrikood","regon":"REGON","regonKrsNumber":"REGON / KRS number","relationship":"Relationship","relationshipTo":"Relationship to %{firstName} %{lastName}","reloadPage":"Reload page","remediationMessage_1_100":"No remediation possible","remediationMessage_1_101":"Contact Support","remediationMessage_1_102":"Upload a different document","remediationMessage_1_300":"Update individual details","remediationMessage_1_301":"Upload an ID document","remediationMessage_1_302":"Upload a different ID document","remediationMessage_1_303":"Upload a different image of the ID document","remediationMessage_1_304":"Upload proof of residency","remediationMessage_1_305":"Upload a different proof of residency","remediationMessage_1_306":"Upload a different image of the proof of residency","remediationMessage_1_307":"Upload a proof of national ID number","remediationMessage_1_308":"Upload a different proof of national ID number","remediationMessage_1_309":"Upload a different image of the proof of national ID number","remediationMessage_1_316":"Provide complete 9-digits Social Security Number or upload an ID document if you don't have SSN.","remediationMessage_1_319":"Update individual details","remediationMessage_1_320":"Upload proof of residency","remediationMessage_1_321":"Update the residential address","remediationMessage_1_500":"Update organization details","remediationMessage_1_501":"Upload a registration document","remediationMessage_1_502":"Upload a different registration document","remediationMessage_1_503":"Upload a tax document","remediationMessage_1_504":"Upload a different tax document","remediationMessage_1_505":"Upload a proof of address","remediationMessage_1_506":"Upload a different proof of address","remediationMessage_1_507":"Update organization ownership details","remediationMessage_1_508":"Upload a proof of ownership","remediationMessage_1_509":"Upload a different affiliation document","remediationMessage_1_510":"Ensure signing person has the rights to represent the organization or is a listed professional member (lawyer, accountant) in your country of business and upload the right document","remediationMessage_1_511":"Upload a document that proves the payout entity is 100% affiliated with the legal entity","remediationMessage_1_512":"Upload a VAT document","remediationMessage_1_513":"Upload a different VAT document","remediationMessage_1_519":"Update source of funds","remediationMessage_1_521":"Upload a different proof of source of funds","remediationMessage_1_524":"Make sure the registered business address is correct, and that the principal place of business address is a physical, non-PO Box address.","remediationMessage_1_600":"Update legal entity details","remediationMessage_1_601":"Upload a constitutional document","remediationMessage_1_602":"Upload a different constitutional document","remediationMessage_1_603":"Update member details","remediationMessage_1_700":"Update bank account details","remediationMessage_1_701":"Use different bank account","remediationMessage_1_702":"Use other means of bank account verification","remediationMessage_1_703":"Upload a bank statement","remediationMessage_1_704":"Upload a different bank statement","remediationMessage_1_705":"Upload an official bank statement","remediationMessage_1_800":"Upload a proof of signatory.","remediationMessage_1_801":"Upload a different proof of signatory.","remediationMessage_1_802":"Update signatory details.","remediationMessage_1_803":"Upload a proof of director document to legal entity","remediationMessage_1_804":"Upload a different proof of director document","remediationMessage_1_805":"Update director details","remediationMessage_1_900":"Upload a proof of industry","remediationMessage_2_106":"Add 'individual.residentialAddress.street' to legal entity","remediationMessage_2_107":"Add 'individual.residentialAddress.city' to legal entity","remediationMessage_2_108":"Add 'individual.residentialAddress.postalCode' to legal entity","remediationMessage_2_112":"Add 'individual.birthData.dateOfBirth' to legal entity","remediationMessage_2_115":"Add bank account","remediationMessage_2_117":"Add 'organization.registrationNumber' to legal entity.","remediationMessage_2_118":"Add 'organization.taxId' to legal entity.","remediationMessage_2_123":"We need to know about all beneficial owners who own at least 25% of the business.","remediationMessage_2_124":"We need to know about at least one signatory who can sign contracts on behalf of the business.","remediationMessage_2_125":"Add 'organization.type' to legal entity.","remediationMessage_2_133":"Add 'organization.doingBusinessAs' to legal entity.","remediationMessage_2_136":"Add business line","remediationMessage_2_151":"We need to know about at least one beneficial owner who controls the strategic direction of the business.","remediationMessage_2_153":"Add 'phone.number' to legal entity","remediationMessage_2_158":"Provide a VAT number or exemption reason.","remediationMessage_2_159":"Add source of funds to business line","remediationMessage_2_170":"Add tax information to legal entity.","remediationMessage_2_178":"Add 'webAddress' to business line.","remediationMessage_2_179":"Add 'taxReportingClassification' to legal entity.","remediationMessage_2_184":"Add constitutional document for verification to legal entity.","remediationMessage_2_185":"We need to know about at least one director appointed to oversee the business.","remediationMessage_2_188":"Add proofOfOwnership document document for verification to legal entity","remediationMessage_2_194":"Add 'organization.registeredAddress.postalCode' to legal entity.","remediationMessage_2_206":"Add 'organization.registeredAddress.street' to legal entity.","remediationMessage_2_208":"Add 'organization.registeredAddress.city' to legal entity.","remediationMessage_2_214":"Upload a proof of funding or wealth source....","remediationMessage_2_215":"Upload a live selfie","remediationMessage_2_222":"Upload a proof of relationship to individual","remediationMessage_2_223":"Add 'organization.countryOfGoverningLaw' to legal entity","remediationMessage_2_225":"Add financial report to legal entity.","remediationMessage_2_234":"Add 'organization.support.email' to legal entity","remediationMessage_2_235":"Add 'individual.support.email' to legal entity","remediationMessage_2_236":"Add 'organization.support.phone.number' to legal entity","remediationMessage_2_237":"Add 'individual.support.email' to legal entity","remediationMessage_2_243":"Add a valid Japanese support phone number to legal entity.","remediationMessage_2_902":"Accept TOS","remediationMessage_3_100":"Check the above information, then click here to confirm.","remove":"Remove","removeDecisionMaker":"remove %{decisionMaker}","removing":"Removing...","reportedValue":"Reported value","reportingCurrency":"Reporting currency","requirements":"Requirements:","requiresBusinessLine":"Requires business lines","requiresDecisionMakers":"Requires decision-makers","requiresSignatory":"Requires signatory","residence_permit":"Residence permit","residencyCountry":"Country/region of residence","residentialAddress":"Residential address","retrieveMyInfo":"Retrieve Myinfo","retrieveMyInfoBusiness":"Retrieve Myinfo business","reviewAndSignLegalDisclosures":"Review and sign legal disclosures","reviewTheInformationBelowAndCorrectMistakesOr":"Review the information below and correct any mistakes, or","RFC":"RFC","rnaNumber":"RNA number","role":"Role","roleAndEntityType":"Role and entity type","roles":"Roles","romajiAddress":"Rōmaji address","rootLegalEntityIsEmpty":"The root legal entity only has the minimum data (is empty).","roRegNumberNewFormat":"New format (F201200092840314)","roRegNumberNewFormat_label":"Numărul de înregistrare la Registrul Comerțului (issued after July 26, 2024)","roRegNumberNewFormat_maskGuidance":"Enter the following: J, F, or C + 13 digits. For example, J2025123456000","roRegNumberOldFormat":"Old format (J40/8302/1997)","roRegNumberOldFormat_label":"Număr de ordine din Registrul Comerțului","roRegNumberOldFormat_maskGuidance":"Enter the following: J, F, or C + 1-2 digits + '/' + 1-9 digits + '/' + 4 digits. For example, J40/8302/1997","routingNumber":"Routing number","rsinNumber":"RSIN","salarySlip":"Salary slip","saleAmount":"Sale amount","salesChannels":"Sales channels","sameAsRegisteredAddress":"Same as registered business address","sameNameAsLegalName":"Same as legal name of the company","save":"Save","saveAndGoToOverview":"Save and go to overview","scta":"Specified Commercial Transactions Act","search":"Search","searchAddress":"Search address","secondaryPartner":"Secondary partner","secondaryPartnerGuideDescription":"Secondary partners are additional partners that are responsible for the day-to-day management of the partnership (often general partners).","secondaryTrustee":"Secondary trustee","select":"Select","selectAllTheRolesThatThisDecisionMakerHolds":"Select all the roles that this decision-maker holds.","selectASourceOfFunding":"Select the main source of funding %{type}","selectCountryRegion":"Select a country/region","selectDocument":"Select a document","selectDocumentType":"Select document type","selectOne":"Select one","selectProvinceOrTerritory":"Select a province or territory","selectState":"Select a state","selectTheApplicableRoles":"Select the applicable role(s)","sender":"Sender","sessionTimeout":"Session timeout","settlor":"Settlor","settlorExemptionReason":"Settlor exemption reasons","setUpYourAccount":"Set up your account","showDetails":"Show details","showOnMap":"Show on map","sign":"Sign","signatory":"Signatory","signatoryDescription":"Authorized to sign contracts on behalf of the company","signatoryQuestion":"Does this person have the authority to sign contracts and other official documents on behalf of the business?","signatorySummaryLabel":"Can sign contracts and agreements on behalf of the business.","signed":"Signed","signPciFirst":"Sign PCI DSS questionnaire first","signServiceAgreement":"Sign services agreement","siRegistrationNumber":"Matična številka","siret":"SIRET","siTaxId":"Identifikacijska številka za DDV (ID za DDV)","skip":"Skip","skRegistrationNumber":"Identifikačné číslo (IČO)","skTaxId":"Identifikačné číslo pre daň z pridanej hodnoty (IČ DPH)","socialInsuranceNumber":"Social Insurance Number (SIN)","socialSecurityNumber":"Social Security Number (SSN)","socialSecurityNumber__placeholder":"123-45-6789","sofTypeAdyenLabel":"Transactions on this platform","solePropDetails":"Sole proprietor details","soleProprietorDetails":"Sole proprietor details","soleProprietorship":"Sole proprietorship","soleProprietorshipDetails":"Sole proprietorship details","someInformationWillNotBeSaved":"Some information that you entered previously will not be saved. ","sorryAnErrorOccurred":"We are sorry, an error has occurred","sorryWeCantSetUpAnAccountForYou":"Sorry, we can't set up an account for you","sortCode":"Sort code","sourceOfFunds":"Source of funds","SSM":"Suruhanjaya Syarikat Malaysia (SSM)","ssn":"SSN","SST":"Sales and Service Tax (SST)","stamregister":"Stamregister erhverv (SE-nummer)","start":"Start","startANewSessionFromTheSamePlaceYouOriginallyAccessed":"Start a new session from the same place you originally accessed this page.","startVerification":"Start verification","state":"State","stateIssuedProofOfIdentityCard":"State-issued proof of identity card","stateOrProvince":"State or province","stateOrProvince__placeHolder":"Select a state or province","stateOrProvince__placeHolder__US":"Select one...","stateOrProvince__US__business":"In which state is your business registered?","status":"Status","stepsX/YofForm":"Step %{activeFormIndex}/ %{totalForms} of %{taskNameTranslated}","stockExchangeMIC":"Market Identifier Code (MIC)","stockISIN":"International Securities Identification Number (ISIN)","stockTickerSymbol":"Stock ticker symbol","street":"Street","submit":"Submit","submitFailed":"Submit failed","submitReview":"Submit review","submitReviewOfYourData":"Submit review of your data","submitSuccessful":"Submit successful","successfullyUpdatedDetails":"Successfully updated details","summary":"Summary","summaryDescription":"Take a moment to make sure everything is correct before submitting.","summaryLegalCaption":"By submitting this summary you are confirming the following; I confirm (on behalf of the company that I am authorized to represent), that the information and supporting documentation provided during this KYC process is accurate and up-to-date, and therefore correctly represents the current state of affairs.","summaryTaxExemptionLegalCaption_1":"If the above entity(ies) register for VAT, or if there is any change to the VAT number, you will provide Adyen with the relevant number(s) without delay.","summaryTaxExemptionLegalCaption_2":"If a VAT/GST number is not provided or if it is not valid, Adyen reserves the right to apply VAT/GST as prescribed by law, which may not be recoverable for the merchant's business.","summaryTaxExemptionLegalCaption_3":"You are an authorized representative and signatory on behalf of the legal entity for which the VAT information was provided.","summaryTaxExemptionLegalCaptionTitle":"You have stated you are exempt from VAT/GST, therefore you agree that:","supportingDocument":"Supporting document","swiftCode":"Swift code","takeOrUploadAPhoto":"Use a photo or scan of an ID document to capture and automatically fill personal details combined with faster, secure identity verification by our trusted partner,","task":"Task","taxationDocument":"Taxation document","taxDocument":"Tax document","taxFiling":"Tax filing","taxFiling__US":"Tax filing such as Schedule SE (Form 1040)","taxId":"Tax ID","taxIdentificationNumber":"Tax identification number","taxInformationNumber":"Tax Identification Number","taxInformationNumber__AT":"Steuernummer","taxInformationNumber__BE":"Business nummer","taxInformationNumber__BE_Individual":"Numéro National","taxInformationNumber__CY":"Tax Identification Code (TIC)","taxInformationNumber__DE":"Steuernummer","taxInformationNumber__DE_Individual":"Persönliche Identifikatiosnummer (IdNr)","taxInformationNumber__ES":"Documento Nacional de Identidad (DNI)","taxInformationNumber__ET_Individual":"Isikukood","taxInformationNumber__FI":"Henkilötunnus","taxInformationNumber__FR":"Numéro SPI","taxInformationNumber__GR":"AFM","taxInformationNumber__HK":"Business Registration number (BRN)","taxInformationNumber__HR":"OIB","taxInformationNumber__IE":"Personal Public Service Number","taxInformationNumber__IE_Individual":"Personal Public Service Number","taxInformationNumber__IT":"Codice fiscale","taxInformationNumber__JP":"Corporate Number","taxInformationNumber__LT":"Asmens kodas","taxInformationNumber__LU_Individual":"National identification number","taxInformationNumber__LU_Org":"Matricule fiscal (CCSS) / Numéro d'identification","taxInformationNumber__LV":"Personas kods","taxInformationNumber__MT_Individual":"Identity card number or unique taxpayer reference number (Maltese nationals)","taxInformationNumber__MT_NRU_Individual":"NRU (Non-Maltese nationals)","taxInformationNumber__MT_Org":"Income Tax Registration Number","taxInformationNumber__PT":"Numéro ID Civil","taxInformationNumber__SI_Individual":"SI tax number","taxInformationNumber__SI_Org":"Davčna številka","taxInformationNumber__SK_Individual":"Rodne Cislo","taxInformationNumber__SK_Org":"Daňové identifikačné číslo (DIČ)","taxInformationNumber__US":"Employer Identification Number (EIN)","taxpayerReferenceNumber":"Taxpayer reference number","taxReferenceNumber":"Tax reference number","taxReporting":"Tax reporting","taxReportingClassification":"Tax reporting classification","tellUsMoreAboutPrimaryPartner":"Tell us about a primary partner in the partnership","tellUsMoreAboutThisSource":"Tell us more about this source","termsOfService":"Terms of Service","the7CharacterIdentifierAssignedToThis":"The 7-character identifier assigned to this company by the Sistema di Interscambio (SDI) for electronic invoicing in Italy. For example, %{example}","theCompanyIWorkFor":"The company I work for","theDocumentTypeYouUploadedIsNotSupported":"The document type you uploaded is not supported. Use a valid document to continue.","theDocumentYouUploadedIsExpired":"The document you uploaded is expired. Use a valid document to continue.","thenResubmit":"then resubmit.","thereWasAnErrorTryAgain":"There was an error, please try again.","thisActionCantBeUndone":"This action can't be undone","thisActionIsPermanent":"This action is permanent and can’t be undone.","thisCompanyDoesntHaveAnSDI":"This company doesn't have an SDI code","thisPageIsNowInactive":"This page is now inactive","thisPageIsntLoading":"This page isn't loading","thisSessionWillExpireIn":"This session will expire in %{timeUntilExpiry}. Continue working to avoid losing any unsaved data.","toggleAssociationMenu":"toggle menu of %{name} ","toHelpTheGovernmentFight":"To help the government fight the funding of terrorism and money laundering activities, Federal law requires financial institutions to obtain, verify, and record information that identifies each person (individual or entity) who opens an account and certain individuals who are associated with an account.","tooManyFiles":"Too many files","toProtectYourInformationThisSessionHasExpired":"To protect your information, this session has expired and the page is now inactive. Start a new session from the same place you originally accessed this page.","totalAmountWon":"Total amount won","tradeRegistryDocument":"Trade registry document","tradingName":"Trading name","transferInstrumentDeleted":"Transfer instrument deleted","transferInstrumentLimitHasAlreadyBeenMet":"Transfer instrument limit has already been met","transitNumber":"Transit number","trnNumber":"TRN","trust":"Trust","trustDeed":"Trust deed","trustDetails":"Trust details","trustDetailsDescription":"To prepare your account, we need information about your trust.","trustee":"Trustee","trusteePersonalDetails":"Trustee personal details","trustInstrument":"Trust instrument","trustMemberDetails":"Trust member details","trustMembers":"Trust members","trustPartnershipOrAssociation":"Trust, partnership, or association","tryAgain":"Try again","tryAgainOrContinueEnteringTheDetailsYourself":"Try again, or continue entering the details yourself.","typeOfIdentity":"Type of identity","typeOfTrustAgreement":"Type of trust agreement","uboQuestionnaireDescription":"This is important because it is a regulatory requirement to keep your business safe and will tell us what kind of information we need to collect in the next steps.","uboThroughControl":"uboThroughControl","uboThroughOwnership":"uboThroughOwnership","uen":"Unique Entity Number (UEN)","ultimateParentCompany":"Ultimate parent company","ultimateParentCompanyAddress":"Ultimate parent company address","ultimateParentCompanyInformation":"Ultimate parent company information","unableToVerifyTheIdNumber":"Unable to verify the Id number for the given country","undefinedBeneficiary":"Undefined beneficiary","undefinedBeneficiaryDescription":"A class or group of beneficiaries that is not named, but defined in an ascertainable manner in the trust deed.","unincorporatedDetails":"Unincorporated partnership details","unincorporatedPartnership":"Unincorporated Partnership","unincorporatedPartnershipMembers":"Unincorporated partnership members","uniqueIdentificationCode":"Unique identification code (ЕИК/UIC)","unknown":"Unknown","unsavedChanges":"Are you sure you want to leave?","unsavedChangesDescription":"If you leave, any changes made to the information in this form will be lost.","unsupportedFiletype":"Unsupported filetype","update":"Update","uploadDocumentForNric":"Upload an ID document instead of NRIC","uploadedDate":"Uploaded date","uploadedOn":"Uploaded on %{date}","uploadOneOfTheseDocuments":"Upload one of these documents:","uploadTheFollowingDocuments":"Upload the following documents:","useFiguresFromTheMostRecentYearAvailable":"Use figures from the most recent year available","UST-ID":"UST-ID (Umsatzsteuer-Identifikationsnummer)","USt-IdNr":"USt-IdNr. (Umsatzsteuer-Identifikationsnummer)","utilityBill":"Utility bill","utr":"Unique Taxpayer Reference (UTR)","validationPleaseEnterAValidBusinessRegistrationNumberWithFormat":"Please enter a valid business registration number. For example, %{example} ","validationPleaseEnterAValidEINWithFormat":"Please enter a valid EIN. Expected format: %{format}","validationPleaseEnterAValidIdNumberWithExample":"Please enter a valid %{idType}. For example, %{example}","validationPleaseEnterAValidStockISIN":"Please enter a valid ISIN. For example, %{example}","validationPleaseEnterAValidUrl":"Please enter a valid URL","validationUrlMustStartWithHttpOrHttps":"URL must start with http:// or https://","vatAbsenceReason":"VAT number absence reason","vatDocument":"VAT document","vatNumber":"VAT number","vatNummerMomsregistreringsnummerOrMomsnummer":"VAT-nummer, Momsregistreringsnummer, or Momsnummer","vatRegistrationNumber":"VAT registration number","verificationErrorMessage":"Some information couldn't be verified. Click to see what needs to be adjusted.","verificationErrorMessageTrustedTransferInstrument":"Your bank account couldn’t be added. Delete it and try again or add a different account.","verificationMethod":"Verification method","verifiedAccountHolder":"Verified account holder","verifiedCurrencyCode":"Verified currency code","verifyWith":"Verify with","weAccept":"We accept:","website":"Website","weCouldNotReachOnfido":"We could not reach Onfido. Try again in few seconds.","weCouldntConnectToMyinfo":"We couldn't connect to Myinfo","weCouldntConnectToMyinfoBusiness":"We couldn't connect to Myinfo Business","weDetected":"We detected","weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_":"We don’t accept documents or information about anyone younger than %{minimumOnboardingAge} years old.","weDontSupportOnboardingInCountry":"We don't support onboarding in %{country}. To find out more, reach out to customer support.","weFoundTheFollowingIssues":"We found the following issues:","whatBestDescribesYourBusinessSetup":"What best describes your business setup?","whatDoesThisMean":"What does this mean?","whatIsTheDifferenceBetweenTheseRoles":"What is the difference between these roles?","whatTypeOfEntityIsPartner":"What type of entity is this partner?","whatTypeOfPartnershipAreYou":"What type of entity is the first (primary) partner?","whatTypeOfPartnershipAreYouGuidance":"We'll start by collecting information about one partner. You will be asked to provide details about all other partnership members later.","whatTypeOfTrusteeAreYou":"What type of trustee are you?","whatTypeOfYourMembersEntity":"What's the type of your member's entity?","whichLegalArrangementDoesYourBusinessHave":"Which legal arrangement does your business have?","whichOfTheseApplyToTheSettlor":"Which of these apply to the settlor? Select all that apply.","whichTaxpayerIdentificationNumberDoYouUse":"Which taxpayer identification number do you use?","whichTypeOfIdNumberDoYouHave":"Which type of identification number do you have?","whichTypeOfRegistrationNumberDoYouHave":"Which type of registration number do you have?","whichTypeOfTaxIdNumberDoYouHave":"What type of tax ID do you use?","whyDoINeedToFillInThisInformation":"Why do I need to fill in this information?","xMinutes":"%{minutes} minutes","xMinutesAndYSeconds":"%{minutes} and %{seconds}","xSeconds":"%{seconds} seconds","yes":"Yes","yesChange":"Yes, change","youAlsoHaveToUploadSomeSupportingDocuments":"You'll also have to upload some supporting documents.","youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation":"You're an individual or company, and you use a bank account in the name of a partnership, or association.","youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation":"You're an individual or company, and you use a bank account in the name of a trust, partnership, or association.","youAreNotSoleProprietorAndUseBankAccount":"You're not a registered sole proprietor, and you use a bank account in your name.","youAreRegisteredSoleProprietorAndUseBankAccount":"You're a registered sole proprietor, and you use a bank account in your name or sole proprietorship's name.","youAreTrusteeManagingTheTrustForBeneficiaries":"You're a trustee managing the trust for beneficiaries.","youEntered":"You entered","youMustXYearsOldToContinue":"You must be at least %{minimumAge} years old to continue","yourAssociationIsRegisteredItWasSetUpForNonCommercialPurpose":"Your association is registered. It was set up for recreational, cultural, or non-profit purposes.","yourBusiness":"Your business information","yourBusinessIsRegisteredAsASeparateLegalEntityFromItsOwners":"Your business is registered as a separate legal entity from its owners.","yourBusinesssDetailsArePreFilledInTheRelevantSections":"Your business's details are pre-filled in the relevant sections.","yourBusinessSetup":"Your business setup: %{businessSetup}","yourDetailsArePreFilledInTheRelevantSections":"Your details are pre-filled in the relevant sections.","yourIbanShouldBeginWith_":"Your IBAN should begin with %{countryCode}.","yourRelationshipToDecedent":"Your relationship to the decedent","yourRelationshipToDonor":"Your relationship to the donor","yourRelationshipToOrganization":"Your relationship to the organization","YTunnus":"Y-TUNNUS","zentralesVereinsregisterId":"Zentrales Vereinsregister ID","zipCode":"ZIP code"}`),Ln=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),be="en-US",Vt=Ls,Xa=Object.freeze(["debug","info","log","warn","error","trace"]),Qa=/%([soOc]|(\.\d)?[dif])/,re=()=>{const t={};return Xa.forEach(e=>{t[e]=(n,...r)=>{console[e]&&(Qa.test(n)?console[e](`${n}`,...r):console[e](n,...r))}}),t};let Fs,Tn;const Ja=re(),Us=t=>{Fs=t},Bs=t=>{Tn=t},Vs=()=>Fs,Fn=async()=>{let t=!1;if(!Tn)throw Error("Not able to extend session, handler not provided. Make sure to provide getSdkToken handler");try{const{token:e}=await Tn();if(!e)throw Error("Not able to extend session, token not received. Make sure to provide back the token in the getSdkToken response ");Us(e),t=!0}catch(e){Ja.error("Failed to fetch sdk token",e)}return t},Un=(t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};function Za(t,e){const n=ue(t),r=ue(e),i=ue(`${r.value}onboardingcomponents/api/v1/`);return{rootLegalEntityId:n,baseUrl:i}}const qs=a.X(null),we=()=>a.x(qs),js=({rootLegalEntityId:t,baseUrl:e,children:n})=>a.u(qs.Provider,{value:Za(t,e),children:n}),ed=(t,e)=>{const{method:n="GET"}=t,r=Vs();return{method:n,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*",Authorization:`Bearer ${r}`,Origin:window.location.origin,...e?{"Content-Type":"application/json"}:{}},redirect:"follow",referrerPolicy:"no-referrer-when-downgrade",...e&&{body:JSON.stringify(e)}}},Br=async(t,e)=>{if(t.status!==204)switch(e){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"json":return t.json();case"text":return t.text()}},td=t=>t?.status===422,nd=t=>t?.status===401,rd=async t=>{const e=await t.json();throw new sd(e.errorCode,e)};class sd extends Error{invalidFields;errorCode;sourceError;constructor(e,n){super(e),this.invalidFields=n?.invalidFields,this.errorCode=n?.errorCode,this.sourceError=n}}const Bn=async(t,e,n="json")=>{const{baseUrl:r="",path:s,errorHandler:i}=t,o=ed(t,e),d=`${r}${s}`;let c;const l=re();try{c=await fetch(d,o)}catch(h){const f=`Service at ${d} is not available. Error= ${h}`;throw l.warn(f),new Error(f)}const u=`Call to ${d} failed.`;if(!c)throw l.warn(u),new Error(u);if(c.ok)return Br(c,n);if(nd(c)&&await Fn())return Bn(t,e,n);if(i)return i(Br(c,n));if(td(c))return rd(c);throw l.warn(u),new Error(u)},at=async(t,e)=>Bn({...t,method:"GET"},e),Yt=async(t,e)=>Bn({...t,method:"POST"},e),Fe=Symbol("ROOT_LE"),id=async(t,e,n)=>{const r=n===t?t:`${t}/child/${n}`;return at({baseUrl:e,path:`legalEntities/${r}`})},Ye=(t,e)=>{const{rootLegalEntityId:n,baseUrl:r}=we(),s=t===Fe?n.value:t,i=t!==Ne,o=rt({queryKey:s===Ne?[]:["legalEntity",s],queryFn:s===Ne?Ne:()=>id(n.value,r.value,s),...e});return{refetch:o.refetch,isLoading:o.isLoading,isError:o.isError,data:i?o.data:void 0}},Me=({el:t="p",variant:e="body",color:n="primary",className:r,children:s,...i})=>{const o=t,d=a.cx(r,"adyen-kyc-typography",`adyen-kyc-typography--${n}`,`adyen-kyc-typography--${e}`);return a.u(o,{...i,className:d,children:s})},od=(t,e,n,r)=>{const s=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);He(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...s):console?.warn&&console.warn(...s)},Vr={},wn=(t,e,n,r)=>{He(n)&&Vr[n]||(He(n)&&(Vr[n]=new Date),od(t,e,n,r))},zs=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},En=(t,e,n)=>{t.loadNamespaces(e,zs(t,n))},qr=(t,e,n,r)=>{if(He(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return En(t,n,r);n.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(e,zs(t,r))},ad=(t,e,n={})=>!e.languages||!e.languages.length?(wn(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,t))return!1}}),He=t=>typeof t=="string",dd=t=>typeof t=="object"&&t!==null,cd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ld={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ud=t=>ld[t],hd=t=>t.replace(cd,ud);let An={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:hd};const fd=(t={})=>{An={...An,...t}},md=()=>An;let $s;const pd=t=>{$s=t},gd=()=>$s,yd={type:"3rdParty",init(t){fd(t.options.react),pd(t)}},bd=a.X();class vd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const _d=(t,e)=>{const n=a.A();return a.y(()=>{n.current=t},[t,e]),n.current},Hs=(t,e,n,r)=>t.getFixedT(e,n,r),Id=(t,e,n,r)=>a.q(Hs(t,e,n,r),[t,e,n,r]),Sd=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:s}=a.x(bd)||{},i=n||r||gd();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new vd),!i){wn(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const T=(O,w)=>He(w)?w:dd(w)&&He(w.defaultValue)?w.defaultValue:Array.isArray(O)?O[O.length-1]:O,E=[T,{},!1];return E.t=T,E.i18n={},E.ready=!1,E}i.options.react?.wait&&wn(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...md(),...i.options.react,...e},{useSuspense:d,keyPrefix:c}=o;let l=t||s||i.options?.defaultNS;l=He(l)?[l]:l||["translation"],i.reportNamespaces.addUsedNamespaces?.(l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(T=>ad(T,i,o)),h=Id(i,e.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>h,m=()=>Hs(i,e.lng||null,o.nsMode==="fallback"?l:l[0],c),[p,g]=a.d(f);let b=l.join();e.lng&&(b=`${e.lng}${b}`);const y=_d(b),_=a.A(!0);a.y(()=>{const{bindI18n:T,bindI18nStore:E}=o;_.current=!0,!u&&!d&&(e.lng?qr(i,e.lng,l,()=>{_.current&&g(m)}):En(i,l,()=>{_.current&&g(m)})),u&&y&&y!==b&&_.current&&g(m);const O=()=>{_.current&&g(m)};return T&&i?.on(T,O),E&&i?.store.on(E,O),()=>{_.current=!1,i&&T&&T?.split(" ").forEach(w=>i.off(w,O)),E&&i&&E.split(" ").forEach(w=>i.store.off(w,O))}},[i,b]),a.y(()=>{_.current&&u&&g(f)},[i,c,u]);const I=[p,i,u];if(I.t=p,I.i18n=i,I.ready=u,u||!u&&!d)return I;throw new Promise(T=>{e.lng?qr(i,e.lng,l,()=>T()):En(i,l,()=>T())})},Ee=Sd,Vn=(t,e)=>{e.forEach(async n=>{const{ns:r,importFn:s}=n;if(t.hasResourceBundle(t.language,r))return;const i=(await s(t.language)).default;if(t.addResourceBundle(t.language,r,i),!t.hasResourceBundle("en-US",r)){const o=(await s("en-US")).default;t.addResourceBundle("en-US",r,o)}})},Td="adyen-kyc-loader-wrapper",wd="adyen-kyc-loader-text",Ed="adyen-kyc-loader-text-visible",Ad="adyen-kyc-loader",Nd="adyen-kyc-loader-large",Pd="adyen-kyc-loader-small",Dd="adyen-kyc-loader-medium",Od="adyen-kyc-loader-xsmall",ke={loaderWrapper:Td,loaderText:wd,loaderTextVisible:Ed,loader:Ad,loaderLarge:Nd,loaderSmall:Pd,loaderMedium:Dd,loaderXsmall:Od},Rd=5e3,kd=1e4,xd={xsmall:ke.loaderXsmall,small:ke.loaderSmall,medium:ke.loaderMedium,large:ke.loaderLarge},De=({size:t="large",defaultMessage:e,shortMessage:n,shortDelayMs:r=Rd,longMessage:s,longDelayMs:i=kd})=>{const{t:o}=Ee("common"),d=Mn(e?"default":"hidden"),c=t==="large";a._(()=>{if(!c)return;const h=setTimeout(()=>{d.value="short"},r),f=setTimeout(()=>{d.value="long"},i);return()=>{clearTimeout(h),clearTimeout(f)}},[c,r,i,d]);const l=Ur(()=>{switch(d.value){case"long":return s??o(h=>h.justAMomentTakingLonger);case"short":return n??o(h=>h.justAMoment);case"default":return e;default:return}}),u=Ur(()=>d.value!=="hidden");return a.u("div",{className:ke.loaderWrapper,children:[a.u("div",{role:"progressbar",className:a.cx(ke.loader,xd[t])}),c&&a.u("div",{className:a.cx(ke.loaderText,{[ke.loaderTextVisible]:u}),children:a.u(Me,{variant:"body",color:"secondary",el:"span",children:l})})]})},R={INDIVIDUAL:"INDIVIDUAL",BUSINESS_DETAILS:"BUSINESS_DETAILS",CUSTOMER_SUPPORT:"CUSTOMER_SUPPORT",PAYOUT:"PAYOUT",PAYIN:"PAYIN",SERVICE_AGREEMENT:"SERVICE_AGREEMENT",DECISION_MAKER:"DECISION_MAKER",DECISION_MAKER_OVERVIEW:"DECISION_MAKER_OVERVIEW",TRUST:"TRUST",TRUST_MEMBER:"TRUST_MEMBER",TRUST_MEMBER_OVERVIEW:"TRUST_MEMBER_OVERVIEW",TRUST_MEMBER_INDIVIDUAL:"TRUST_MEMBER_INDIVIDUAL",TRUST_MEMBER_COMPANY:"TRUST_MEMBER_COMPANY",UNINCORPORATED_PARTNERSHIP:"UNINCORPORATED_PARTNERSHIP",UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW:"UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW",UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:"UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL",UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY:"UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY",SOLE_PROPRIETOR_COMPANY:"SOLE_PROPRIETOR_COMPANY",LEGAL_REPRESENTATIVE_DETAILS:"LEGAL_REPRESENTATIVE_DETAILS"},Cd="adyen-kyc-svg-icon",Md="adyen-kyc-svg-image",Ld={"svg-icon":"adyen-kyc-svg-icon",svgIcon:Cd,"svg-image":"adyen-kyc-svg-image",svgImage:Md},Fd={"arrow-right":a.z(()=>Promise.resolve().then(()=>require("./arrow-right-BoqwUH_d-_3fXeByh.cjs"))),bag:a.z(()=>Promise.resolve().then(()=>require("./bag-BXVWLrwo-D3PowM5D.cjs"))),bank:a.z(()=>Promise.resolve().then(()=>require("./bank-1GvaHPAZ-DITVvKik.cjs"))),bin:a.z(()=>Promise.resolve().then(()=>require("./bin-Ba-3ll8T-DFiJJSW1.cjs"))),check:a.z(()=>Promise.resolve().then(()=>require("./checkmark-D9dGhGpG-DOTtZoOy.cjs"))),certificate:a.z(()=>Promise.resolve().then(()=>require("./certificate-N2YFedpI-CxIeJma8.cjs"))),checkmark:a.z(()=>Promise.resolve().then(()=>require("./checkmark-circle-fill-DEB-tuGl-D0XVVTis.cjs"))),"checkmark-circle":a.z(()=>Promise.resolve().then(()=>require("./checkmark-circle-CFWClLQ6-v-o7XYMH.cjs"))),"checkmark-small":a.z(()=>Promise.resolve().then(()=>require("./checkmark-small-D3VNx2lo-B1tCb0yF.cjs"))),"chevron-down":a.z(()=>Promise.resolve().then(()=>require("./chevron-down-C7SUSYfl-Cg9mWB0T.cjs"))),"chevron-right":a.z(()=>Promise.resolve().then(()=>require("./chevron-right-jE6RwM2B-C6elHZeh.cjs"))),"chevron-left":a.z(()=>Promise.resolve().then(()=>require("./chevron-left-BXmd-S46-bNjbN_K-.cjs"))),"chevron-up":a.z(()=>Promise.resolve().then(()=>require("./chevron-up-BdfNcqzq-CmwSRmBk.cjs"))),"cash-stack":a.z(()=>Promise.resolve().then(()=>require("./cash-stack-DwYu4xNy-CK4BdBnU.cjs"))),circle:a.z(()=>Promise.resolve().then(()=>require("./circle-BJPTMCWB-DVKX2QNt.cjs"))),"circle-small-filled":a.z(()=>Promise.resolve().then(()=>require("./circle-small-filled-BuO8Vg8j-CIzokiR_.cjs"))),clock:a.z(()=>Promise.resolve().then(()=>require("./clock-DAzaBRWk-DjB8W_th.cjs"))),company:a.z(()=>Promise.resolve().then(()=>require("./headquarter-BhpSibFO-DuesOO3S.cjs"))),capital:a.z(()=>Promise.resolve().then(()=>require("./capital-9TKHySO7-C_S4eKAG.cjs"))),"company-2":a.z(()=>Promise.resolve().then(()=>require("./hotel-Cp7VgGCJ-DnVKj20f.cjs"))),contract:a.z(()=>Promise.resolve().then(()=>require("./contract-BfJb1t6M-Ch2T551b.cjs"))),cross:a.z(()=>Promise.resolve().then(()=>require("./cross-CDS_eot4-CF8xRzvO.cjs"))),coins:a.z(()=>Promise.resolve().then(()=>require("./coins-DYdzG5e_-DwtZlq5G.cjs"))),"decision-maker":a.z(()=>Promise.resolve().then(()=>require("./person-IVZG3t3_-BEJ6F5YK.cjs"))),document:a.z(()=>Promise.resolve().then(()=>require("./document-1-qlSTF558-DCUfsSYj.cjs"))),download:a.z(()=>Promise.resolve().then(()=>require("./download-BZQB1WkZ-Cu8ARX8L.cjs"))),edit:a.z(()=>Promise.resolve().then(()=>require("./edit-1-DAqtnOIx-BSPeRMoj.cjs"))),"external-link":a.z(()=>Promise.resolve().then(()=>require("./external-link-Cg6pJaSJ-CM7Iql_8.cjs"))),"graph-up":a.z(()=>Promise.resolve().then(()=>require("./graph-up-BZze4i6m-CVcuMdjT.cjs"))),graph:a.z(()=>Promise.resolve().then(()=>require("./graph-DunG_uu1-ZkolG2O6.cjs"))),gift:a.z(()=>Promise.resolve().then(()=>require("./gift-omNInZeB-wprH-Ybc.cjs"))),"field-error":a.z(()=>Promise.resolve().then(()=>require("./warning-circle-fill-DBvt921B-S50tLsog.cjs"))),headquarter:a.z(()=>Promise.resolve().then(()=>require("./headquarter-BhpSibFO-DuesOO3S.cjs"))),"info-circle":a.z(()=>Promise.resolve().then(()=>require("./info-Bb_-xIEK-CIApB9Cl.cjs"))),"info-circle-filled":a.z(()=>Promise.resolve().then(()=>require("./info-filled-CK8LB339-Ciie2uzr.cjs"))),image:a.z(()=>Promise.resolve().then(()=>require("./image-CmB0ioUM--lTYtQ_6.cjs"))),location:a.z(()=>Promise.resolve().then(()=>require("./location-itJfxrDQ-cnYy_WQ9.cjs"))),"more-horiz":a.z(()=>Promise.resolve().then(()=>require("./options-horizontal-GuXvLvV3-CLFLcr3j.cjs"))),mail:a.z(()=>Promise.resolve().then(()=>require("./mail-VHTlAusn-DaOJ2cWR.cjs"))),minusCircleFilled:a.z(()=>Promise.resolve().then(()=>require("./minus-circle-filled-ZhtJ0GD3-DA38FL9R.cjs"))),payByLinkPlane:a.z(()=>Promise.resolve().then(()=>require("./pay-by-link-plane-BpY8Q6-B-B86k6NkK.cjs"))),payout:a.z(()=>Promise.resolve().then(()=>require("./payout-DtB68BcZ-Btm5Wp68.cjs"))),pci:a.z(()=>Promise.resolve().then(()=>require("./checkmark-circle-CFWClLQ6-v-o7XYMH.cjs"))),plus:a.z(()=>Promise.resolve().then(()=>require("./plus-DiALAL8--gxyUZHqI.cjs"))),plusCircleFilled:a.z(()=>Promise.resolve().then(()=>require("./plus-circle-filled-BzHtTqEN-MlKqJE8R.cjs"))),recurring:a.z(()=>Promise.resolve().then(()=>require("./recurring-DKNs9K3x-BwhLIgiK.cjs"))),remove:a.z(()=>Promise.resolve().then(()=>require("./cross-circle-fill-small-DkPjsuBH-DpyM9dZl.cjs"))),error:a.z(()=>Promise.resolve().then(()=>require("./cross-circle-fill-C-EJ57Yn-DjJVDpi9.cjs"))),"revenue-accelerate":a.z(()=>Promise.resolve().then(()=>require("./revenue-accelerate-D7Sp0V4a-DuHKd8ZY.cjs"))),save:a.z(()=>Promise.resolve().then(()=>require("./save-BfqO2JBI-sEUn6ElU.cjs"))),search:a.z(()=>Promise.resolve().then(()=>require("./search-Cmzbf5zI-C394FeJX.cjs"))),show:a.z(()=>Promise.resolve().then(()=>require("./show-IdbU1C6P-C7wKk09c.cjs"))),solutionPayments:a.z(()=>Promise.resolve().then(()=>require("./solution-payments-DpyE_sdS-BpRkhF-a.cjs"))),store:a.z(()=>Promise.resolve().then(()=>require("./store-Btc4GcmU-BzFVgVgi.cjs"))),terminal:a.z(()=>Promise.resolve().then(()=>require("./terminal-1-D1pwXCoi-BMgYUSwC.cjs"))),trust:a.z(()=>Promise.resolve().then(()=>require("./partner-QD27Vy4w-C-O_LG_j.cjs"))),user:a.z(()=>Promise.resolve().then(()=>require("./person-IVZG3t3_-BEJ6F5YK.cjs"))),"user-business":a.z(()=>Promise.resolve().then(()=>require("./document-person-CDbnTOdV-Cwtmxwte.cjs"))),upload:a.z(()=>Promise.resolve().then(()=>require("./upload-BmUXjsaU-C7dQ74MY.cjs"))),"users-3":a.z(()=>Promise.resolve().then(()=>require("./4-people-BtDi7O9A-aA6B62X-.cjs"))),warning:a.z(()=>Promise.resolve().then(()=>require("./warning-diamond-filled-Lb2od2ry-RLlYosbs.cjs"))),webinar:a.z(()=>Promise.resolve().then(()=>require("./webinar-m9nuFZBt-t4JsnhoS.cjs")))},Ud={review:a.z(()=>Promise.resolve().then(()=>require("./review-D4TUjcWF-EfgRFwdM.cjs"))),"funds-in":a.z(()=>Promise.resolve().then(()=>require("./funds-in-CInoUdmG-DK88gVc5.cjs"))),house:a.z(()=>Promise.resolve().then(()=>require("./house-BhyBQdR3-Ca7-ymmK.cjs"))),reporting:a.z(()=>Promise.resolve().then(()=>require("./reporting-D5ABpLO_-BVqGrbMc.cjs")))},Bd={...Fd,...Ud},Vd=["bin","check","checkmark","checkmark-small","chevron-right","chevron-left","company","contract","cross","decision-maker","document","download","edit","error","info-circle","info-circle-filled","image","location","payout","pci","plus","remove","save","search","trust","user","upload","warning"],qd=re(),jd=({className:t,name:e,testId:n,title:r})=>{const s=Bd[e],i=Vd.includes(e)?"0 0 16 16":void 0;return s?a.u("span",{className:a.cx(Ld["svg-icon"],t),"data-testid":n??"svg-icon",children:a.u(a.P,{fallback:null,children:i?a.u(s,{"aria-hidden":!0,viewBox:i,title:r||e}):a.u(s,{"aria-hidden":!0,title:r||e})})}):(qd.error(`No such svg: "${e}"`),null)},te=({name:t,className:e,...n})=>a.u(jd,{className:e,name:t,...n}),zd="adyen-kyc-button",$d="adyen-kyc-button-full-width",Hd="adyen-kyc-button-label",Kd="adyen-kyc-button-label-padding",Wd="adyen-kyc-button-shape-rectangle",Gd="adyen-kyc-button-shape-circle",Yd="adyen-kyc-button-variant-primary",Xd="adyen-kyc-button-variant-secondary",Qd="adyen-kyc-button-variant-tertiary",Jd="adyen-kyc-button-variant-critical",Zd="adyen-kyc-button-variant-link",ec="adyen-kyc-button-variant-surface",tc="adyen-kyc-button-spinner",ie={button:zd,buttonFullWidth:$d,buttonLabel:Hd,buttonLabelPadding:Kd,buttonShapeRectangle:Wd,buttonShapeCircle:Gd,buttonVariantPrimary:Yd,buttonVariantSecondary:Xd,buttonVariantTertiary:Qd,buttonVariantCritical:Jd,buttonVariantLink:Zd,buttonVariantSurface:ec,buttonSpinner:tc},Ks=({ariaLabel:t,children:e,circle:n=!1,disabled:r=!1,fullWidth:s=!1,loading:i=!1,onClick:o,testId:d,type:c="button",variant:l="primary"})=>{const u=r||i,h={primary:ie.buttonVariantPrimary,secondary:ie.buttonVariantSecondary,tertiary:ie.buttonVariantTertiary,critical:ie.buttonVariantCritical,link:ie.buttonVariantLink,surface:ie.buttonVariantSurface},f=a.cx(ie.button,h[l],{[ie.buttonShapeRectangle]:!n,[ie.buttonShapeCircle]:n,[ie.buttonFullWidth]:s}),m=p=>{p.preventDefault(),!u&&o&&o(p)};return a.u("button",{"aria-label":t,className:f,"data-testid":d,disabled:u,onClick:m,type:c,children:[i&&a.u("div",{className:ie.buttonSpinner,children:a.u(De,{size:"small"})}),e]})},dt=({children:t,disabled:e=!1,fullWidth:n,icon:r,loading:s=!1,onClick:i,testId:o,type:d="button",variant:c="primary"})=>{const l={disabled:e,fullWidth:n,icon:r,loading:s,onClick:i,testId:o,type:d,variant:c},u=a.cx(ie.buttonLabel,{[ie.buttonLabelPadding]:c!=="link"});return a.u(Ks,{...l,children:a.u("div",{className:u,children:[r&&a.u(te,{name:r}),t]})})},Xt=({ariaLabel:t,circle:e=!1,disabled:n=!1,icon:r,loading:s=!1,onClick:i,testId:o,variant:d="primary"})=>{const c={ariaLabel:t,circle:e,disabled:n,loading:s,onClick:i,testId:o,variant:d};return a.u(Ks,{...c,children:a.u("div",{className:ie.buttonLabel,children:a.u(te,{name:r})})})},vt=t=>Object.entries(t),Ws=t=>Object.values(t),_t=t=>Object.keys(t),nc=(t,e)=>t in e,Gs=(...t)=>({from:e=>t.map(n=>nc(n,e)?{[n]:e[n]}:{}).reduce((n,r)=>({...n,...r}),{})}),Ys=(...t)=>({from:e=>{const n=_t(e).filter(r=>!t.includes(r));return Gs(...n).from(e)}}),Xs=(t,e)=>t.length===e.length&&t.every(n=>e.includes(n)),qn=(t,e)=>t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length!==Object.keys(e).length?!1:_t(t).every(n=>qn(t[n],e[n])):t===e;function Qt(t){return structuredClone(t)}function Qs(t,{type:e="conjunction",style:n="long",stringify:r=s=>s.toString()}={}){const s=t.map(o=>r(o));return new Intl.ListFormat("en",{style:n,type:e}).format(s)}const Z=()=>{},rc={addEvent:Z,addJourneyEvent:Z,addTaskEvent:Z,addPageEvent:Z,addFieldEvent:Z,startEvent:Z,subscribe:Z,updateBaseTrackingPayload:Z,updateSharedEventProperties:Z,unsubscribe:Z},Js=a.X(rc),Xe=()=>a.x(Js),jr=t=>t.toLowerCase().substring(0,2),sc=(t,e)=>e.find(n=>jr(n)===jr(t))??null;function Zs(t){const e=t.replace("_","-");if(/([a-z]{2})(-)([A-Z]{2})/.test(e))return e;const[r,s]=e.split("-");if(!r||!s)return null;const i=[r.toLowerCase(),s.toUpperCase()].join("-");return i.length===5?i:null}function ic(t,e=[]){if(!t||t.length<1||t.length>5)return be;const n=Zs(t);return n&&e.includes(n)?n:sc(n||t,e)}const zr=(t,e)=>t.replace(/%{(\w+)}/g,(n,r)=>e?.[r]?.toString()??""),oc=(t,e,n={values:{}})=>{const r=`${e}${n.localizeFor?`__${n.localizeFor}`:""}`;return r in t?zr(t[r],n.values):e in t?zr(t[e],n.values):null},ei=t=>{const[e]=t.split("-");return e},ac=t=>t!==null&&typeof t=="object"&&"key"in t&&"values"in t,jn=(t,e)=>{if(e)return ac(e)?t(n=>n[e.key],e.values):t(n=>n[e])},dc="adyen-kyc-toast",cc="adyen-kyc-toast-image",lc="adyen-kyc-toast-image-success",uc="adyen-kyc-toast-image-error",hc="adyen-kyc-toast-label",fc="adyen-kyc-toast-actions",mc="adyen-kyc-toast-action-close",je={toast:dc,toastImage:cc,toastImageSuccess:lc,toastImageError:uc,toastLabel:hc,toastActions:fc,toastActionClose:mc},pc=({action:t,duration:e=1e4,label:n,onDismiss:r,variant:s="info"})=>{const i=s==="success"||s==="error",o=t!==void 0,d=o?"alertdialog":"alert",c={error:"field-error",success:"checkmark"},l=a.cx(je.toastImage,{[je.toastImageSuccess]:s==="success",[je.toastImageError]:s==="error"});return a.y(()=>{let u;return e!=="indefinite"&&(u=setTimeout(()=>{r()},e)),()=>{clearTimeout(u)}},[e,r]),a.u("div",{"aria-label":n,className:je.toast,role:d,children:[a.u("div",{className:je.toastLabel,children:[i&&a.u("div",{className:l,"data-testId":c[s],children:a.u(te,{name:c[s]})}),n]}),a.u("div",{className:je.toastActions,children:[o&&a.u(dt,{onClick:t.onClick,children:t.label}),a.u("div",{className:je.toastActionClose,children:a.u(Xt,{icon:"cross",ariaLabel:"Close",onClick:r})})]})]})},zn=a.X({showToast:Z,clearToasts:Z});function $n({children:t}){const[e,n]=a.d(),r=()=>{n(void 0)},s=a.T(()=>({showToast:i=>{n(i)},clearToasts:r}),[]);return a.u(zn.Provider,{value:s,children:[!!e&&a.u(pc,{label:e.label,variant:e.variant,action:e.action,duration:e.duration,onDismiss:r}),t]})}const ti=a.X({isExperimentEnabled:()=>!1,refreshExperiments:()=>{},experiments:{}});function Jt(){return a.x(ti)}const G={INDIVIDUAL:"individual",ORGANIZATION:"organization",TRUST:"trust",SOLE_PROPRIETORSHIP:"soleProprietorship",UNINCORPORATED_PARTNERSHIP:"unincorporatedPartnership"},gc=30,ni=(t,e,n,r)=>!n||t[n]?.[e]?.formatter?void 0:t[n]?.[e]?.maxlength||gc,Hn=t=>t==null,Ue=t=>Hn(t)||typeof t=="object"&&Object.keys(t).length===0||typeof t=="string"&&/^\s*$/.test(t),Kn=t=>typeof t=="string"||t instanceof String,ri=t=>Kn(t)&&!Ue(t),si="?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\",ii=(t,e="g")=>new RegExp(`[${t}]`,e),oi=t=>t.trimStart().replace(/\s+/g," "),ai=new RegExp("(\\p{Emoji}\\uFE0F|\\p{Emoji_Presentation}|\\p{Extended_Pictographic})","gu"),di=/^[^a-zA-Z]*$/,ci=/^[^\p{L}]*$/u,li=/^[\p{L}\p{M}\d\s\-—.,/']*$/u,ui=(t,e)=>Kn(e)&&t.test(e??""),hi=t=>!Ue(t)&&t.length>1&&new Set(t.toLowerCase()).size===1,fi=(t,e=1)=>!Ue(t)&&t.length>=e,mi=t=>new Set(["John Doe","Jane Doe","ABCD","ABCDE","ABCDEF","ABCDEFG","My Customer","An other","n/a","not applicable","n/A","N/A","N/a","N\\ /A","not app","null"]).has(t||""),pi=t=>{const e=new RegExp("^([0-9]{1,2}-[0-9]{1,3}|[0-9]{1,2}-[0-9]{1,3}-[0-9]{1,3})$");return!Ue(t)&&e.test(t)},yc="adyen-kyc-skeleton",bc="adyen-kyc-skeleton-circle",vc="adyen-kyc-skeleton-text",cn={skeleton:yc,skeletonCircle:bc,skeletonText:vc},qt=({circle:t=!1,text:e=!1,height:n="1em",width:r})=>{const s=a.cx(cn.skeleton,{[cn.skeletonCircle]:t,[cn.skeletonText]:e});return a.u("div",{className:s,style:{height:n,width:r}})},_c="adyen-kyc-accordion",Ic="adyen-kyc-accordion-summary",Sc="adyen-kyc-accordion-basic",Tc="adyen-kyc-accordion-info",wc="adyen-kyc-accordion-error",Ec="adyen-kyc-accordion-warning",Ac="adyen-kyc-accordion-success",Nc="adyen-kyc-accordion-narrow",Pc="adyen-kyc-accordion-content",Dc="adyen-kyc-accordion-with-icon",Oc="adyen-kyc-accordion-arrow",Rc="adyen-kyc-accordion-arrow-right",de={accordion:_c,accordionSummary:Ic,accordionBasic:Sc,accordionInfo:Tc,accordionError:wc,accordionWarning:Ec,accordionSuccess:Ac,accordionNarrow:Nc,accordionContent:Pc,accordionWithIcon:Dc,accordionArrow:Oc,accordionArrowRight:Rc},Wn=({children:t,expandOnLeft:e=!1,onToggle:n,className:r,variant:s="basic",narrow:i=!1})=>{const{Slot:o}=kn(t,["title","content","icon"]),d=l=>{n&&n(l.newState==="closed"?"close":"open")},c={basic:de.accordionBasic,info:de.accordionInfo,error:de.accordionError,warning:de.accordionWarning,success:de.accordionSuccess};return a.u("details",{onToggle:d,className:a.cx(r,de.accordion,c[s],{[de.accordionWithIcon]:e,[de.accordionNarrow]:i}),children:[a.u("summary",{className:de.accordionSummary,children:[e&&a.u(te,{name:"chevron-down",className:de.accordionArrow}),a.u(o,{name:"icon"}),a.u(Me,{el:"h3",variant:"body-strongest",children:a.u(o,{name:"title",children:a.u(qt,{})})}),!e&&a.u(te,{name:"chevron-down",className:a.cx(de.accordionArrow,de.accordionArrowRight)})]}),a.u("div",{className:de.accordionContent,children:a.u(o,{name:"content",children:a.u(qt,{})})})]})},kc="adyen-kyc-alert",xc="adyen-kyc-alert-without-icon",Cc="adyen-kyc-alert-explanation",Mc="adyen-kyc-alert-actions",Lc="adyen-kyc-alert-basic",Fc="adyen-kyc-alert-info",Uc="adyen-kyc-alert-error",Bc="adyen-kyc-alert-warning",Vc="adyen-kyc-alert-success",qc="adyen-kyc-alert-header",jc="adyen-kyc-alert-header-without-children",zc="adyen-kyc-alert-icon",$c="adyen-kyc-alert-icon-info",Hc="adyen-kyc-alert-icon-error",Kc="adyen-kyc-alert-icon-warning",Wc="adyen-kyc-alert-icon-success",Gc="adyen-kyc-alert-title",H={alert:kc,alertWithoutIcon:xc,alertExplanation:Cc,alertActions:Mc,alertBasic:Lc,alertInfo:Fc,alertError:Uc,alertWarning:Bc,alertSuccess:Vc,alertHeader:qc,alertHeaderWithoutChildren:jc,alertIcon:zc,alertIconInfo:$c,alertIconError:Hc,alertIconWarning:Kc,alertIconSuccess:Wc,alertTitle:Gc},$r={basic:H.alertBasic,info:H.alertInfo,error:H.alertError,warning:H.alertWarning,success:H.alertSuccess},Yc={basic:"",info:H.alertIconInfo,error:H.alertIconError,warning:H.alertIconWarning,success:H.alertIconSuccess},gi=({title:t,variant:e="basic",type:n="default",className:r,actions:s,children:i,icon:o,testId:d,onClose:c,onToggle:l})=>{const{t:u}=Ee("ui"),[h,f]=a.d(!1);if(h)return null;const m=()=>{c&&c(),f(!0)},g=(()=>{if(o!==!1)return a.t(o)?o:a.u("span",{className:a.cx(H.alertIcon,Yc[e]),children:a.u(Gn,{variant:e})})})();return n==="collapsible"?a.u(Wn,{variant:e,onToggle:l||void 0,narrow:!0,className:r,children:[a.u("template",{slot:"title",children:t}),a.u("template",{slot:"icon",children:g}),a.u("template",{slot:"content",children:[i,!!s&&a.u("div",{className:H.alertActions,children:s})]})]}):n==="callToAction"?a.u("div",{className:a.cx(H.alert,r,$r[e],{[H.alertWithoutIcon]:!g}),role:"alert","data-testid":d,children:[a.u("div",{className:a.cx(H.alertHeader,{[H.alertHeaderWithoutChildren]:!i}),children:[g,t&&a.u(Me,{el:"h3",variant:"body-strongest",className:H.alertTitle,children:t}),!!s&&a.u("div",{className:H.alertActions,children:s})]}),!!i&&a.u("div",{className:H.alertExplanation,children:i})]}):a.u("div",{className:a.cx(H.alert,r,$r[e],{[H.alertWithoutIcon]:!g}),role:"alert","data-testid":d,children:[a.u("div",{className:H.alertHeader,children:[g,t&&a.u(Me,{el:"h3",variant:"body-strongest",className:H.alertTitle,children:t}),n==="dismissible"&&a.u(dt,{variant:"tertiary",icon:"cross",onClick:m,children:u(b=>b.close)})]}),!!i&&a.u("div",{className:H.alertExplanation,children:i}),!!s&&a.u("div",{className:H.alertActions,children:s})]})},Gn=({variant:t})=>{switch(t){case"success":return a.u(te,{name:"checkmark"});case"error":return a.u(te,{name:"error"});case"warning":return a.u(te,{name:"warning"});default:return a.u(te,{name:"info-circle-filled"})}},v={Australia:"AU",Austria:"AT",Belgium:"BE",Brazil:"BR",Bulgaria:"BG",Canada:"CA",Croatia:"HR",Cyprus:"CY",CzechRepublic:"CZ",Denmark:"DK",Estonia:"EE",Finland:"FI",France:"FR",Georgia:"GE",Germany:"DE",Gibraltar:"GI",Greece:"GR",Guernsey:"GG",HongKong:"HK",Hungary:"HU",Iceland:"IS",Ireland:"IE",IsleOfMan:"IM",Italy:"IT",Japan:"JP",Jersey:"JE",Latvia:"LV",Liechtenstein:"LI",Lithuania:"LT",Luxembourg:"LU",Malaysia:"MY",Malta:"MT",Mexico:"MX",Monaco:"MC",Netherlands:"NL",NewZealand:"NZ",Norway:"NO",Poland:"PL",Portugal:"PT",PuertoRico:"PR",Romania:"RO",Singapore:"SG",Slovakia:"SK",Slovenia:"SI",Spain:"ES",Sweden:"SE",Switzerland:"CH",UnitedArabEmirates:"AE",UnitedKingdom:"GB",UnitedStates:"US"},yi=[v.Austria,v.Belgium,v.Bulgaria,v.Croatia,v.Cyprus,v.CzechRepublic,v.Denmark,v.Estonia,v.Finland,v.France,v.Germany,v.Greece,v.Hungary,v.Ireland,v.Italy,v.Latvia,v.Lithuania,v.Luxembourg,v.Malta,v.Netherlands,v.Poland,v.Portugal,v.Romania,v.Slovakia,v.Slovenia,v.Spain,v.Sweden],Xc=[v.HongKong,v.Singapore],bi=[v.Austria,v.Belgium,v.Bulgaria,v.Croatia,v.Cyprus,v.CzechRepublic,v.Denmark,v.Estonia,v.Finland,v.France,v.Germany,v.Greece,v.Hungary,v.Iceland,v.Ireland,v.Italy,v.Latvia,v.Liechtenstein,v.Lithuania,v.Luxembourg,v.Malta,v.Netherlands,v.Norway,v.Poland,v.Portugal,v.Romania,v.Slovakia,v.Slovenia,v.Spain,v.Sweden],Qc=t=>!!t&&yi.includes(t),vi=t=>!!t&&bi.includes(t),Jc=t=>!!t&&Xc.includes(t),Qe=t=>{switch(t.type){case G.INDIVIDUAL:return t.individual.residentialAddress.country;case G.ORGANIZATION:return t.organization.registeredAddress.country;case G.TRUST:return t.trust.countryOfGoverningLaw??t.trust.registeredAddress.country;case G.SOLE_PROPRIETORSHIP:return t.soleProprietorship.registeredAddress.country;case G.UNINCORPORATED_PARTNERSHIP:return t.unincorporatedPartnership.countryOfGoverningLaw??t.unincorporatedPartnership.registeredAddress.country}},_i=t=>{const e=new Date,n=e.getMonth(),r=e.getDate(),s=new Date(t),i=s.getMonth(),o=e.getFullYear()-s.getFullYear();return n>i||n===i&&r>=s.getUTCDate()?o:o-1},Ii=t=>{if(!(!t||Jc(t)))return Qc(t)?{min:16,max:18}:{min:13,max:18}},Zc=(t,e)=>{if(!t||!e)return!1;const n=Ii(e);return n?el(_i(t),n):!1},el=(t,e)=>e.min<=t&&t<e.max,Yn=t=>{if(!t||!t?.individual)return!1;const e=t?.individual?.birthData?.dateOfBirth,n=Qe(t);return Zc(e,n)},q={CONTROLLING_PERSON:"uboThroughControl",OWNER:"uboThroughOwnership",SIGNATORY:"signatory",DIRECTOR:"director"},ge=[{roleTypes:[q.OWNER,q.CONTROLLING_PERSON],min:1,max:1/0},{roleTypes:[q.OWNER],min:0,max:4},{roleTypes:[q.CONTROLLING_PERSON],min:0,max:1/0},{roleTypes:[q.SIGNATORY],min:1,max:1/0}],tl={AE:[...ge,{roleTypes:[q.DIRECTOR],min:3,max:1/0}],US:[{roleTypes:[q.CONTROLLING_PERSON],min:1,max:1/0},{roleTypes:[q.OWNER],min:0,max:4},{roleTypes:[q.SIGNATORY],min:1,max:1/0}],BR:[{roleTypes:[q.CONTROLLING_PERSON],min:1,max:1/0},{roleTypes:[q.OWNER],min:0,max:4},{roleTypes:[q.SIGNATORY],min:1,max:1/0}],AU:[...ge,{roleTypes:[q.DIRECTOR],min:3,max:1/0}],CA:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],HK:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],IN:[...ge,{roleTypes:[q.DIRECTOR],min:3,max:15}],NZ:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],SG:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],GB:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],JP:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}]};[...ge,q.DIRECTOR];const nl=(t,e)=>{if(t){const n=tl[t];if(n)return n}return ge},We=(t,e)=>t?.entityAssociations?.filter(n=>n.associatorId===e)??[],Si=t=>We(t,t.id),rl=t=>Si(t).filter(n=>n.entityType===G.SOLE_PROPRIETORSHIP).map(n=>n.legalEntityId).filter(n=>n!==void 0),Ti=t=>t.entityAssociations?.some(e=>e.entityType===G.SOLE_PROPRIETORSHIP&&e.associatorId===t.id)??!1,Xn=t=>We(t,t.id).find(e=>e.type==="legalRepresentative"),Zt=t=>t?.entityAssociations?t.entityAssociations.filter(e=>Object.values(q).includes(e.type)&&e.associatorId===t.id):[],sl=(t,e)=>We(t,e).filter(n=>Object.values(q).includes(n.type)),wi=t=>Zt(t).filter(e=>e.type===q.SIGNATORY),Qn=t=>Zt(t).map(e=>e.legalEntityId).filter(e=>e!==void 0),il=t=>Zt(t).reduce((n,r)=>(n[r.type]=(n[r.type]??0)+1,n),{}),ol=t=>{const e=il(t),n=t?.organization?.registeredAddress?.country;return nl(n).every(s=>{const{roleTypes:i,min:o}=s;return i.some(d=>o?e?.[d]??o<=0:!0)})},Jn=a.X(void 0);function en(){return a.x(Jn)}const al="adyen-kyc-stack-layout",dl="adyen-kyc-stack-layout-gap-xs",cl="adyen-kyc-stack-layout-gap-s",ll="adyen-kyc-stack-layout-gap-m",ul="adyen-kyc-stack-layout-gap-l",hl="adyen-kyc-stack-layout-gap-xl",fl="adyen-kyc-stack-layout-left",ml="adyen-kyc-stack-layout-center",pl="adyen-kyc-stack-layout-right",gl="adyen-kyc-stack-layout-item",yl="adyen-kyc-stack-layout-horizontal",bl="adyen-kyc-stack-layout-left-horizontal",vl="adyen-kyc-stack-layout-center-horizontal",_l="adyen-kyc-stack-layout-right-horizontal",ae={stackLayout:al,stackLayoutGapXs:dl,stackLayoutGapS:cl,stackLayoutGapM:ll,stackLayoutGapL:ul,stackLayoutGapXl:hl,stackLayoutLeft:fl,stackLayoutCenter:ml,stackLayoutRight:pl,stackLayoutItem:gl,stackLayoutHorizontal:yl,stackLayoutLeftHorizontal:bl,stackLayoutCenterHorizontal:vl,stackLayoutRightHorizontal:_l},Il={xSmall:ae.stackLayoutGapXs,small:ae.stackLayoutGapS,medium:ae.stackLayoutGapM,large:ae.stackLayoutGapL,xLarge:ae.stackLayoutGapXl,none:null},Sl={left:ae.stackLayoutLeft,center:ae.stackLayoutCenter,right:ae.stackLayoutRight,auto:null},Tl={left:ae.stackLayoutLeftHorizontal,center:ae.stackLayoutCenterHorizontal,right:ae.stackLayoutRightHorizontal,auto:null},Ei=t=>a.F(t).flatMap(e=>typeof e=="object"&&e.type===a.S?Ei(e.props.children):e),Zn=({align:t="auto",children:e,gap:n="medium",horizontal:r=!1})=>{const s=Ei(e),i=a.cx(ae.stackLayout,Il[n],Sl[t],{[Tl[t]]:r,[ae.stackLayoutHorizontal]:r});return a.u("div",{className:i,children:s.map((o,d)=>t==="auto"?a.u("div",{className:ae.stackLayoutItem,children:o},o.key??d):o)})},wl="adyen-kyc-status",El="adyen-kyc-status-icon",Al="adyen-kyc-status-text",Nl="adyen-kyc-status-text-responsive",Pl="adyen-kyc-status-neutral",Dl="adyen-kyc-status-error",Ol="adyen-kyc-status-warning",Rl="adyen-kyc-status-success",xe={status:wl,statusIcon:El,statusText:Al,statusTextResponsive:Nl,statusNeutral:Pl,statusError:Dl,statusWarning:Ol,statusSuccess:Rl},kl={success:xe.statusSuccess,error:xe.statusError,neutral:xe.statusNeutral,warning:xe.statusWarning},Je=({text:t,icon:e="circle-small-filled",variant:n="neutral",responsive:r=!0})=>{const s=a.cx(xe.status,kl[n]),i=a.cx(xe.statusText,{[xe.statusTextResponsive]:r});return a.u("div",{role:"status",className:s,children:[a.u("div",{className:xe.statusIcon,children:a.u(te,{name:e})}),a.u("div",{className:i,children:t})]})},k={EMPTY:0,FINISHED:1,PROCESSING:2,DETAILS_REQUIRED:3,DOWNLOAD:5,SUBMIT:6,ERROR:7,SIGNED:8},er=({status:t,responsive:e})=>{const{t:n}=Ee("ui");switch(t){case k.DETAILS_REQUIRED:return a.u(Je,{icon:"warning",text:n(r=>r.incomplete),variant:"warning",responsive:e});case k.ERROR:return a.u(Je,{icon:"field-error",text:n(r=>r.actionNeeded),variant:"error",responsive:e});case k.FINISHED:return a.u(Je,{icon:"checkmark",text:n(r=>r.verified),variant:"success",responsive:e});case k.PROCESSING:return a.u(Je,{icon:"clock",text:n(r=>r.inReview),responsive:e});case k.DOWNLOAD:case k.SIGNED:return a.u(Je,{icon:"checkmark",text:n(r=>r.signed),variant:"success",responsive:e});case"inviteSent":return a.u(Je,{icon:"mail",text:n(r=>r.inviteSent),variant:"neutral",responsive:e});default:return null}},xl="adyen-kyc-header",Cl="adyen-kyc-header-margin",Ml="adyen-kyc-header-margin-secondary",Ll="adyen-kyc-header-left",Fl="adyen-kyc-header-center",Ul="adyen-kyc-header-right",Bl="adyen-kyc-header-content",Vl="adyen-kyc-header-actions",ql="adyen-kyc-header-title",jl="adyen-kyc-header-title-primary",zl="adyen-kyc-header-title-secondary",$l="adyen-kyc-header-description",Hl="adyen-kyc-header-description-primary",Kl="adyen-kyc-header-description-secondary",oe={header:xl,headerMargin:Cl,headerMarginSecondary:Ml,headerLeft:Ll,headerCenter:Fl,headerRight:Ul,headerContent:Bl,headerActions:Vl,headerTitle:ql,headerTitlePrimary:jl,headerTitleSecondary:zl,headerDescription:$l,headerDescriptionPrimary:Hl,headerDescriptionSecondary:Kl},Wl={left:oe.headerLeft,center:oe.headerCenter,right:oe.headerRight},tr=({align:t="left",children:e,description:n,secondary:r=!1,status:s,title:i})=>{const{Slot:o,hasSlot:d}=kn(e??[],["actions","description"]),c=r?"h2":"h1",l=a.cx(oe.header,Wl[t],{[oe.headerMargin]:!r,[oe.headerMarginSecondary]:r}),u=a.cx(oe.headerTitle,{[oe.headerTitlePrimary]:!r,[oe.headerTitleSecondary]:r}),h=a.cx(oe.headerDescription,{[oe.headerDescriptionPrimary]:!r,[oe.headerDescriptionSecondary]:r});return a.u("header",{className:l,children:[s&&a.u(er,{status:s,responsive:!1}),a.u("div",{className:oe.headerContent,children:[a.u(c,{className:u,children:i}),(d("description")||n)&&a.u("div",{className:h,children:a.u(o,{name:"description",children:n})})]}),d("actions")&&a.u("div",{className:oe.headerActions,children:a.u(Zn,{gap:"small",horizontal:!0,children:a.u(o,{name:"actions"})})})]})},Y={DATA_MISSING:"dataMissing",INVALID_INPUT:"invalidInput",PENDING_STATUS:"pendingStatus",DATA_REVIEW:"dataReview"},Gl={"1_100":[],"1_101":[],"1_102":[{key:"documents"}],"1_300":[{key:"individual.birthData.dateOfBirth"},{key:"individual.identificationData.number"},{key:"individual.name.firstName"},{key:"individual.name.lastName"},{key:"individual.residentialAddress"}],"1_301":[{key:"passport"},{key:"idVerificationMethod"}],"1_302":[{key:"passport"},{key:"idVerificationMethod"}],"1_303":[{key:"passport"},{key:"idVerificationMethod"}],"1_304":[{key:"proofOfResidency"}],"1_305":[{key:"proofOfResidency"}],"1_306":[{key:"proofOfResidency"}],"1_307":[{key:"proofOfNationalIdNumber"}],"1_308":[{key:"proofOfNationalIdNumber"}],"1_309":[{key:"proofOfNationalIdNumber"}],"1_316":[{key:"individual.identificationData.number"}],"1_319":[{key:"individual.residentialAddress"}],"1_320":[{key:"proofOfResidency"}],"1_321":[{key:"individual.residentialAddress.street"}],"1_500":[{key:"organization.legalName"},{key:"organization.registrationNumber"},{key:"organization.taxId"},{key:"organization.registeredAddress"}],"1_501":[{key:"registrationDocument"}],"1_502":[{key:"registrationDocument"}],"1_503":[{key:"vatDocument"}],"1_504":[{key:"vatDocument"}],"1_505":[{key:"proofOfAddress"}],"1_506":[{key:"proofOfAddress"}],"1_507":[{key:"proofOfOwnership"}],"1_508":[{key:"proofOfOwnership"}],"1_512":[{key:"vatDocument"},{key:"organization.vatNumber"}],"1_513":[{key:"vatDocument"},{key:"organization.vatNumber"}],"1_524":[{key:"organization.registeredAddress.street"}],"1_600":[{key:"soleProprietorship.name"},{key:"soleProprietorship.registeredAddress"}],"1_601":[{key:"constitutionalDocument"}],"1_602":[{key:"constitutionalDocument"}],"1_603":[{key:"constitutionalDocument"}],"1_700":[{key:"bankAccount"}],"1_701":[{key:"bankAccount"}],"1_702":[{key:"bankAccount"}],"1_703":[{key:"bankStatement"}],"1_704":[{key:"bankStatement"}],"1_705":[{key:"bankStatement"}],"1_803":[{key:"proofOfDirector"}],"1_804":[{key:"proofOfDirector"}],"1_800":[{key:"proofOfSignatory"}],"1_801":[{key:"proofOfSignatory"}],"1_802":[{key:"proofOfSignatory"}],"1_3083":[{key:"proofOfResidency"}],"2_243":[{key:"organization.support.phone"},{key:"individual.support.phone"}],"2_215":[{key:"passport"},{key:"idVerificationMethod.idDocument"}]},Nn=["2_8247","2_8248","2_8249","2_8250"],ye={"1_501":{code:"1_503",message:"Upload a tax document"},"1_502":{code:"1_504",message:"Upload a different tax document"}},pe={"1_3083":[{code:"1_319",message:"Update individual details"},{code:"1_320",message:"Upload proof of residency"}],"1_5012":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5013":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5015":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5017":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5020":[ye["1_501"]],"1_5021":[ye["1_502"]],"1_5022":[ye["1_502"]],"1_5024":[ye["1_502"],{code:"1_500",message:"Update organization details"}],"1_5035":[ye["1_502"],{code:"1_500",message:"Update organization details"}]},ln={"1_3083":{code:"1_3083",message:"The name or residential address couldn't be verified.",type:Y.INVALID_INPUT,remediatingActions:pe["1_3083"]},"1_5012":{code:"1_5012",message:"The submitted company type didn't match the one on the registry",type:Y.INVALID_INPUT,remediatingActions:pe["1_5012"]},"1_5013":{code:"1_5013",message:"The company was not found in the database",type:Y.INVALID_INPUT,remediatingActions:pe["1_5013"]},"1_5015":{code:"1_5017",message:"The tax ID number didn't match the legal business name",type:Y.INVALID_INPUT,remediatingActions:pe["1_5015"]},"1_5017":{code:"1_5017",message:"The tax ID number didn't match the legal business name",type:Y.INVALID_INPUT,remediatingActions:pe["1_5017"]},"1_5020":{code:"1_5036",message:"Tax document is missing.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5020"]},"1_5021":{code:"1_5039",message:"The tax document was too low quality.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5021"]},"1_5022":{code:"1_5040",message:"The tax document was too old.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5022"]},"1_5024":{code:"1_5024",message:"The registration document did not show the company type",type:Y.INVALID_INPUT,remediatingActions:pe["1_5024"]},"1_5035":{code:"1_5038",message:"The tax document wasn't a supported document type.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5035"]}},Hr={"2_8141":{code:"2_8162",message:"'proofOfOrganizationTaxInfo' was missing",type:Y.DATA_MISSING,remediatingActions:[ye["1_501"]]},"1_3083":{code:"1_3083",message:"The name or residential address couldn't be verified.",type:Y.INVALID_INPUT,subErrors:[{code:"1_3083",message:"Individual details didn't match the ID document",type:Y.INVALID_INPUT,remediatingActions:pe["1_3083"]}]}},Yl=t=>{switch(t.type){case Y.DATA_MISSING:switch(t.code){case"2_8141":return Hr["2_8141"];case"1_3083":return{...Hr["1_3083"],subErrors:[ln["1_3083"]]};default:return t}case Y.INVALID_INPUT:switch(t.code){case"1_50":return{...t,subErrors:t.subErrors?.map(e=>ln[e.code]??e)};case"1_52":return{...t,code:"1_53",message:"Tax document didn't meet requirements",remediatingActions:t.remediatingActions?.map(e=>ye[e.code]??e),subErrors:t.subErrors?.map(e=>ln[e.code]??e)};default:return t}default:return t}},Le={BANK_ACCOUNT:"BankAccount",LEGAL_ENTITY:"LegalEntity"},Xl={"organization.support.email":"customerSupport.email","individual.support.email":"customerSupport.email","organization.support.phone":"customerSupport.phoneNumber.number","individual.support.phone":"customerSupport.phoneNumber.number"},Kr={...Xl},Ql={id:"payoutAccountDetails.transferInstrumentId","bankAccount.bankName":"payoutAccountDetails.bankName","bankAccount.countryCode":"payoutVerificationMethod.bankCountry","bankAccount.accountIdentification.iban":"payoutAccountDetails.iban","bankAccount.accountIdentification.accountNumber":"payoutAccountDetails.bankAccountNumber","bankAccount.accountIdentification.bsbCode":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.institutionNumber":"payoutAccountDetails.bankCode","bankAccount.accountIdentification.transitNumber":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.bankCode":"payoutAccountDetails.bankCode","bankAccount.accountIdentification.clearingCode":"payoutAccountDetails.bankCode","bankAccount.accountIdentification.clearingNumber":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.bic":"payoutAccountDetails.swiftCode","bankAccount.accountIdentification.sortCode":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.routingNumber":"payoutAccountDetails.branchCode"},Ai={...Ql},jt={[Le.BANK_ACCOUNT]:"payoutAccountDetails",...Ai,bankStatement:"payoutAccountDocuments.bankStatementDocument"};function ct(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[n,e]))}const Jl={"basicInformation.country":"organization.registeredAddress.country","basicInformation.legalCompanyName":"organization.legalName","basicInformation.stateOrProvince":"organization.registeredAddress.stateOrProvince","basicInformation.registrationNumber":"organization.registrationNumber","basicInformation.taxInformation":"organization.taxInformation","basicInformation.countryOfGoverningLaw":"organization.countryOfGoverningLaw","companyStructure.entityType":"organization.type","additionalInformation.legalFormDescription":"organization.legalFormDescription","additionalInformation.doingBusinessAs":"organization.doingBusinessAs","additionalInformation.hasDoingBusinessAs":"organization.doingBusinessAsAbsent","additionalInformation.registrationNumber":"organization.registrationNumber","additionalInformation.exemptedFromRegistrationNumber":"organization.registrationNumberAbsent","additionalInformation.taxInformation":"organization.taxInformation","additionalInformation.vatNumber":"organization.vatNumber","additionalInformation.vatAbsenceReason":"organization.vatAbsenceReason","additionalInformation.dateOfIncorporation":"organization.dateOfIncorporation","additionalInformation.stockExchangeMIC":"organization.stockData.marketIdentifier","additionalInformation.stockISIN":"organization.stockData.stockNumber","additionalInformation.stockTickerSymbol":"organization.stockData.tickerSymbol","additionalInformation.registrationAddress.city":"organization.registeredAddress.city","additionalInformation.registrationAddress.country":"organization.registeredAddress.country","additionalInformation.registrationAddress.postalCode":"organization.registeredAddress.postalCode","additionalInformation.registrationAddress.stateOrProvince":"organization.registeredAddress.stateOrProvince","additionalInformation.registrationAddress.address":"organization.registeredAddress.street","additionalInformation.registrationAddress.otherAddressInformation":"organization.registeredAddress.street2","additionalInformation.operationalAddress.city":"organization.principalPlaceOfBusiness.city","additionalInformation.operationalAddress.country":"organization.principalPlaceOfBusiness.country","additionalInformation.operationalAddress.postalCode":"organization.principalPlaceOfBusiness.postalCode","additionalInformation.operationalAddress.stateOrProvince":"organization.principalPlaceOfBusiness.stateOrProvince","additionalInformation.operationalAddress.address":"organization.principalPlaceOfBusiness.street","additionalInformation.operationalAddress.otherAddressInformation":"organization.principalPlaceOfBusiness.street2","additionalInformation.eInvoicingCode":"organization.eInvoicingCode","additionalInformation.legalForm":"organization.legalForm"},Ni={...ct(Jl)},Pi={registrationDocument:"companyRegistrationDocument.registrationDocument",vatDocument:"companyTaxDocument.taxDocument",proofOfOrganizationTaxInfo:"companyTaxDocument.taxDocument",proofOfDirector:"companyProofOfDirectorDocument.proofOfDirector",proofOfSignatory:"companyProofOfSignatoryDocument.proofOfSignatory",proofOfOwnership:"companyProofOfOwnershipDocument.proofOfOwnership"},zt={...Ni,...Pi},Zl={"basicInformation.country":"soleProprietorship.countryOfGoverningLaw","basicInformation.legalCompanyName":"soleProprietorship.name","basicInformation.stateOrProvince":"soleProprietorship.registeredAddress.stateOrProvince","basicInformation.countryOfGoverningLaw":"soleProprietorship.countryOfGoverningLaw","additionalInformation.hasDoingBusinessAs":"soleProprietorship.doingBusinessAsAbsent","additionalInformation.doingBusinessAs":"soleProprietorship.doingBusinessAs","additionalInformation.registrationNumber":"soleProprietorship.registrationNumber","additionalInformation.vatNumber":"soleProprietorship.vatNumber","additionalInformation.vatAbsenceReason":"soleProprietorship.vatAbsenceReason","additionalInformation.taxInformation":"soleProprietorship.taxInformation","additionalInformation.exemptedFromTax":"soleProprietorship.taxAbsent","additionalInformation.dateOfIncorporation":"soleProprietorship.dateOfIncorporation","additionalInformation.registrationAddress.city":"soleProprietorship.registeredAddress.city","additionalInformation.registrationAddress.country":"soleProprietorship.registeredAddress.country","additionalInformation.registrationAddress.postalCode":"soleProprietorship.registeredAddress.postalCode","additionalInformation.registrationAddress.stateOrProvince":"soleProprietorship.registeredAddress.stateOrProvince","additionalInformation.registrationAddress.address":"soleProprietorship.registeredAddress.street","additionalInformation.registrationAddress.otherAddressInformation":"soleProprietorship.registeredAddress.street2","additionalInformation.operationalAddress.city":"soleProprietorship.principalPlaceOfBusiness.city","additionalInformation.operationalAddress.country":"soleProprietorship.principalPlaceOfBusiness.country","additionalInformation.operationalAddress.postalCode":"soleProprietorship.principalPlaceOfBusiness.postalCode","additionalInformation.operationalAddress.stateOrProvince":"soleProprietorship.principalPlaceOfBusiness.stateOrProvince","additionalInformation.operationalAddress.address":"soleProprietorship.principalPlaceOfBusiness.street","additionalInformation.operationalAddress.otherAddressInformation":"soleProprietorship.principalPlaceOfBusiness.street2"},Di={...ct(Zl)},Oi={constitutionalDocument:"companyConstitutionalDocument.constitutionalDocument"},Wr={...Di,...Oi},Ri={"basicDetails.firstName":"individual.name.firstName","basicDetails.lastName":"individual.name.lastName","basicDetails.phoneNumber.number":"individual.phone.number","basicDetails.phoneNumber.phoneCountryCode":"individual.phone.phoneCountryCode","basicDetails.phoneNumber.type":"individual.phone.type","basicDetails.email":"individual.email","additionalPersonalDetails.placeOfBirth":"individual.birthData.placeOfBirth","additionalPersonalDetails.birthDate":"individual.birthData.dateOfBirth","additionalPersonalDetails.idNumber":"individual.identificationData.number","additionalPersonalDetails.idNumberExempt":"individual.identificationData.nationalIdExempt","additionalPersonalDetails.typeOfIdentity":"individual.identificationData.type","additionalPersonalDetails.issuerState":"individual.identificationData.issuerState","additionalPersonalDetails.licenseCardNumber":"individual.identificationData.cardNumber","additionalPersonalDetails.expiryDate":"individual.identificationData.expiryDate","additionalPersonalDetails.nationality":"individual.nationality","additionalPersonalDetails.taxInformation":"individual.taxInformation","additionalPersonalDetails.city":"individual.residentialAddress.city","additionalPersonalDetails.country":"individual.residentialAddress.country","additionalPersonalDetails.postalCode":"individual.residentialAddress.postalCode","additionalPersonalDetails.stateOrProvince":"individual.residentialAddress.stateOrProvince","additionalPersonalDetails.address":"individual.residentialAddress.street","additionalPersonalDetails.otherAddressInformation":"individual.residentialAddress.street2"},ki={...ct(Ri)},xi={passport:"idVerificationMethod.idDocument",proofOfResidency:"proofOfResidency.proofOfResidency",proofOfNationalIdNumber:"proofOfNationalId.proofOfNationalId",proofOfRelationship:"proofOfRelationship.proofOfRelationship"},nr={...ki,...xi},eu={"trustRegistrationDetails.trustType":"trust.type","trustRegistrationDetails.legalName":"trust.name","trustRegistrationDetails.doingBusinessAs":"trust.doingBusinessAs","trustRegistrationDetails.hasDoingBusinessAs":"trust.doingBusinessAsAbsent","trustRegistrationDetails.country":"trust.countryOfGoverningLaw","trustRegistrationDetails.registrationNumber":"trust.registrationNumber","trustRegistrationDetails.taxInformation":"trust.taxInformation","trustRegistrationAddress.registrationAddress.city":"trust.registeredAddress.city","trustRegistrationAddress.registrationAddress.country":"trust.registeredAddress.country","trustRegistrationAddress.registrationAddress.postalCode":"trust.registeredAddress.postalCode","trustRegistrationAddress.registrationAddress.stateOrProvince":"trust.registeredAddress.stateOrProvince","trustRegistrationAddress.registrationAddress.address":"trust.registeredAddress.street","trustRegistrationAddress.registrationAddress.otherAddressInformation":"trust.registeredAddress.street2","trustRegistrationAddress.operationalAddress.city":"trust.principalPlaceOfBusiness.city","trustRegistrationAddress.operationalAddress.country":"trust.principalPlaceOfBusiness.country","trustRegistrationAddress.operationalAddress.postalCode":"trust.principalPlaceOfBusiness.postalCode","trustRegistrationAddress.operationalAddress.stateOrProvince":"trust.principalPlaceOfBusiness.stateOrProvince","trustRegistrationAddress.operationalAddress.address":"trust.principalPlaceOfBusiness.street","trustRegistrationAddress.operationalAddress.otherAddressInformation":"trust.principalPlaceOfBusiness.street2"},Ci={...ct(eu)},Mi={constitutionalDocument:"trustConstitutionalDocument.constitutionalDocument"},Gr={...Ci,...Mi},tu=["2_8036","2_8064","2_8067","2_8183","2_8189","2_8190","2_8191","2_8193","2_8247","2_8249","2_8248","2_8250"],nu=["1_14","2_901","2_902"],ru=["2_8210"],su=(t,e)=>{if(!t?.key)return;if(t.key==="idVerificationMethod")return"idVerificationMethod.idVerificationMethod";const n=nr;if(t.key in Kr)return Kr[t.key];switch(e){case G.INDIVIDUAL:return t.key in n?n[t.key]:void 0;case G.ORGANIZATION:return t.key in zt?zt[t.key]:void 0;case Le.BANK_ACCOUNT:return t.key in jt?jt[t.key]:void 0;case G.SOLE_PROPRIETORSHIP:return t.key in Wr?Wr[t.key]:void 0;case G.TRUST:default:return t.key in Gr?Gr[t.key]:void 0}},iu=["vatNumber"],ou=(t,e)=>{if(e==="vatNumber")t.fields.add("vatAbsenceReason"),t.fields.add("exemptedFromVat");else return},Li=(t,e)=>{const n=t.reduce((r,{code:s})=>{const i=Gl[s];if(!i)return r;const o=i.map(l=>su(l,e)).filter(Boolean);if(!o)return r;const{forms:d,fields:c}=o.reduce((l,u)=>{if(!u)return l;const[h,f]=u.split(/\.(.+)/,2);return iu.includes(f)&&ou(l,f),l.forms.add(h),l.fields.add(f),l},{forms:new Set,fields:new Set});return r.remediationsWithFormsAndFields.push({code:s,forms:Array.from(d),fields:Array.from(c)}),d.forEach(l=>r.forms.add(l)),r},{forms:new Set,remediationsWithFormsAndFields:[]});return{forms:Array.from(n.forms),remediationsWithFormsAndFields:n.remediationsWithFormsAndFields}},Yr=t=>tu.includes(t?.code)||nu.includes(t?.code),au=(t,e)=>{const n=t.remediatingActions??[];if(!n.length)return{verificationErrors:{},remediationActions:{}};const{forms:r,remediationsWithFormsAndFields:s}=Li(n,e),i={[t.code]:s},o=Array.from(r).reduce((c,l)=>(c={...c,[l]:{[t.code]:i}},c),{}),d=s.reduce((c,l)=>({...c,[l.code]:l}),{});return{verificationErrors:o,remediationActions:d}},Xr=(t,e)=>{const{allForms:n,childErrorsWithRemActions:r}=(t.subErrors??[t]).reduce((o,{code:d,remediatingActions:c})=>{if(!c?.length)return o;const{forms:l,remediationsWithFormsAndFields:u}=Li(c,e);return o.childErrorsWithRemActions[d]=u,l.forEach(h=>o.allForms.add(h)),o},{allForms:new Set,childErrorsWithRemActions:{}}),s=Array.from(n).reduce((o,d)=>(o={...o,[d]:{[t.code]:r}},o),{}),i=Object.values(r).flatMap(o=>o).reduce((o,d)=>({...o,[d.code]:d}),{});return{verificationErrors:s,remediationActions:i}},Qr=(t,e)=>{const n=Object.entries(e??{}).reduce((r,[s,i])=>(r={...r,[s]:{...t?.[s],...i}},r),{});return{...t,...n}};function At(t,e){return!t.statusWithReason||t.statusWithReason.status<e.status?e:t.statusWithReason}function du(t,e){return e.missingData?[...e.missingData,t]:[t]}function cu(t,e){return t.reduce((n,r)=>{const s=Qt(n);switch(r.type){case Y.INVALID_INPUT:{if(!Yr(r)){const{verificationErrors:i,remediationActions:o}=Xr(r,e);s.verificationErrors=Qr(s.verificationErrors,i),s.remediationActions=o,s.statusWithReason=At(n,{status:k.ERROR,reason:"invalidInputError",details:{verificationError:r}})}break}case Y.DATA_MISSING:{if(s.missingData=du(r,s),ru.includes(r.code)){const{verificationErrors:i,remediationActions:o}=r.subErrors?Xr(r,e):au(r,e);s.verificationErrors=Qr(s.verificationErrors,i),s.remediationActions={...s.remediationActions,...o}}Yr(r)||(s.statusWithReason=At(n,{status:k.DETAILS_REQUIRED,reason:"dataMissingError",details:{verificationError:r}}));break}case Y.DATA_REVIEW:s.isReviewRequired=!0,s.verificationErrors={...s.verificationErrors,review:{[r.code]:r.remediatingActions}},s.statusWithReason=At(n,{status:k.SUBMIT,reason:"dataReviewNeeded"});break;case Y.PENDING_STATUS:{s.statusWithReason=At(n,{status:k.PROCESSING,reason:"pendingStatusError"});break}}return s},{})}const lu=(t,e)=>t.reduce((n,r)=>{if(!r.entity?.type||!r.entity.id||!r.verificationErrors?.length)return n;const{type:s,id:i}=r.entity,o=n[i],d={...n,[i]:{baseEntityType:s,exactEntityType:void 0,verificationErrors:[...o?.verificationErrors??[],...r.verificationErrors]}};switch(e.type){case"bankAccount":case"recurringDetail":return d[i].exactEntityType=Le.BANK_ACCOUNT,d;default:return d[i].exactEntityType=hu(s,e,i),d}},{}),uu=(t,e)=>t.map(n=>e==="US"||n.code==="1_3083"?Yl(n):n);function Fi(t,e){const n=t?.problems??[],r=lu(n,t);return vt(r).reduce((s,[i,{verificationErrors:o,exactEntityType:d,baseEntityType:c}])=>({...s,[c]:{...s[c],[i]:cu(uu(o,e),d)}}),{})}const Ui=t=>t?.forms?.some(e=>e==="idVerificationMethod"||e==="manualIdUpload"||e==="proofOfResidency"||e==="proofOfNationalId"||e==="companyRegistrationDocument"||e==="companyTaxDocument"||e==="companyProofOfDirectorDocument"||e==="companyProofOfSignatoryDocument"||e==="companyProofOfOwnershipDocument"||e==="companyConstitutionalDocument"||e==="payoutAccountDocuments"||e==="trustConstitutionalDocument"),hu=(t,e,n)=>t!==Le.LEGAL_ENTITY?t:n===e.id?e.type:e.entityAssociations?.find(r=>n===r.legalEntityId)?.entityType,Bi=t=>Object.keys(t?.capabilities??{}),ze={DEFINED_BENEFICIARY:"definedBeneficiary",UNDEFINED_BENEFICIARY:"undefinedBeneficiary",PROTECTOR:"protector",TRUSTEE:"secondaryTrustee",SETTLOR:"settlor"},Ze={BENEFICIARY:"beneficiary",PROTECTOR:"protector",TRUSTEE:"trustee",SETTLOR:"settlor"},Nt={},$t={},ht=(t,e)=>`${t}_${e}`.toLowerCase(),fu=t=>(Nt[t]||(Nt[t]={},$t[t].forEach(({id:e,name:n})=>{Nt[t][e]=n})),Nt[t]),Jr=(t,e)=>$t[t]?fu(t)[e]:null,tt={country:"countries",state:t=>`states/${t}`};function rr(t){return{getCountryName:e=>{if(!e)return null;const n=ht(tt.country,t);return Jr(n,e)},getStateName:(e,n)=>{const r=ht(tt.state(n),t);return Jr(r,e)},setDataset:(e,n)=>{const r=ht(e,t);$t[r]=n},getDataset:e=>{const n=ht(e,t);return $t[n]},getDatasetKey:e=>ht(e,t)}}const mu=re(),pu=Object.assign({"../countries/de-DE.json":()=>Promise.resolve().then(()=>require("./de-DE-B3nctkG8-Dsybuewy.cjs")),"../countries/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-DSoLr6rp-Cg2B2poi.cjs")),"../countries/es-ES.json":()=>Promise.resolve().then(()=>require("./es-ES-BRfK6tX7-DV7DZBhg.cjs")),"../countries/fr-FR.json":()=>Promise.resolve().then(()=>require("./fr-FR-Dk6Lw2On-DXiqkS7m.cjs")),"../countries/it-IT.json":()=>Promise.resolve().then(()=>require("./it-IT-D7G4BaP7-CsLA5jcE.cjs")),"../countries/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-DTW_hY1L-BZ8RO3sL.cjs")),"../countries/nl-NL.json":()=>Promise.resolve().then(()=>require("./nl-NL-CFzm75Jw-D-mp0_I2.cjs")),"../countries/sv-SE.json":()=>Promise.resolve().then(()=>require("./sv-SE-rckxD-43-DD4kdnU7.cjs"))}),gu=async t=>{const e=pu[`../countries/${t}.json`];return e?(await e()).default:(mu.warn(`No countries dataset for ${t}, falling back to en-US`),(await Promise.resolve().then(()=>require("./en-US-DSoLr6rp-Cg2B2poi.cjs"))).default)},yu=re(),Zr=Object.assign({"../states/AU/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-Do3mE4BR-BkpAJgyl.cjs")),"../states/BR/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-DWT3bRZC-CyEGdZZX.cjs")),"../states/BR/pt-BR.json":()=>Promise.resolve().then(()=>require("./pt-BR-CTXtdAVc-B3jiM25n.cjs")),"../states/CA/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-PLYPmyFJ-DOJSFN3a.cjs")),"../states/JP/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-QbdqemZi-Ce3k8Joc.cjs")),"../states/JP/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-DU7yCJYq-BQZsSMvI.cjs")),"../states/NZ/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-C_9Fc9mP-BIvFCQKP.cjs")),"../states/US/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-9KQC6F8--D1s61msu.cjs"))}),bu=async(t,e)=>{const n=Zr[`../states/${t}/${e}.json`];if(!n){yu.warn(`No ${t} states dataset for ${e}, falling back to en-US`);const r=Zr[`../states/${t}/en-US.json`];return(await r()).default}return(await n()).default},vu=async(t,e)=>{if(t===tt.country)return gu(e);if(t.startsWith("states")){const n=t.slice(t.indexOf("/")+1);return bu(n,e)}throw new Error(`Unknown dataset: ${t}`)},_u=async(t,e)=>{const n=rr(e),r=n.getDataset(t);return r?new Promise(s=>{s(r)}):vu(t,e).then(s=>(n.setDataset(t,s),s))};function sr(t,e){const{i18n:n}=Ee(),[r,s]=a.d([]),[i,o]=a.d(!1);return a.y(()=>{e||_u(t,n.language).then(d=>{const c=d&&d.length?d:[];s(c)}).catch(()=>{s([])}).finally(()=>{o(!0)})},[t,n.language,e]),{dataset:r,loaded:i}}const Iu=a.X(!1),Su=()=>a.x(Iu),un=re(),Vi=(t,e,n)=>{const{serializer:r,parser:s,syncData:i}=a.T(()=>({serializer:JSON.stringify,parser:JSON.parse,syncData:!0,...n}),[n]),o=Su()||typeof window>"u",d=a.A(null),[c,l]=a.d(()=>{if(o)return e;try{return d.current=window.localStorage.getItem(t),d.current?s(d.current):e}catch(u){return un.error(u),e}});return a.y(()=>{if(o)return;const u=()=>{if(c!==void 0){const h=r(c),f=d.current;d.current=h,window.localStorage.setItem(t,h),window.dispatchEvent(new StorageEvent("storage",{storageArea:window.localStorage,url:window.location.href,key:t,newValue:h,oldValue:f}))}else window.localStorage.removeItem(t),window.dispatchEvent(new StorageEvent("storage",{storageArea:window.localStorage,url:window.location.href,key:t}))};try{u()}catch(h){un.error(h)}},[c,o]),a.y(()=>{if(!i)return;const u=h=>{if(!(h.key!==t||h.storageArea!==window.localStorage))try{h.newValue!==d.current&&(d.current=h.newValue,l(h.newValue?s(h.newValue):void 0))}catch(f){un.error(f)}};if(!o)return window.addEventListener("storage",u),()=>{window.removeEventListener("storage",u)}},[t,i,o]),[c,l]},Tu=t=>`ACCOUNT_HOLDER-${t}`,qi=()=>{const{rootLegalEntityId:t}=we(),[e,n]=Vi(Tu(t.value),void 0);return{accountHolder:e,setAccountHolder:n}};function ir(t,e=!1,n=!0){const r=[];return Object.entries(t).forEach(([s,i])=>{if(typeof i=="object"&&i!==null){const o=ir(i).map(d=>`${s}.${d}`);r.push(...o);return}(i!==void 0||e)&&(i||!n)&&r.push(s)}),r}const ji=a.X(null),zi=()=>{const{data:t}=Ye(Fe);return t?.capabilities},wu=async(t,e)=>at({baseUrl:e,path:`legalEntities/${t}/configurations/supportedCountries`}),Eu=t=>{const{rootLegalEntityId:e,baseUrl:n}=we();return rt({queryKey:["supportedCountries"],queryFn:()=>wu(e.value,n.value),...t})},$i=t=>{const e=a.x(Jn),{getSetting:n}=e;return n(t)},Au=[v.Austria,v.Belgium,v.Croatia,v.Cyprus,v.Estonia,v.Finland,v.France,v.Germany,v.Greece,v.Ireland,v.Italy,v.Latvia,v.Lithuania,v.Luxembourg,v.Malta,v.Netherlands,v.Portugal,v.Slovakia,v.Slovenia,v.Spain,v.UnitedKingdom,v.UnitedStates],Hi=()=>{const e=Object.keys(zi()??{}).includes("issueBankAccount"),n=$i("acceptedCountries"),{data:r}=Eu({enabled:!n}),s=n??r?.countries;if(s)return e?Au.filter(i=>s.includes(i)):s},or=(t,e)=>t.reduce((n,r)=>({...n,[r]:e(r)}),{});class Ki{supportedLocales;translations;locale;constructor({locale:e=be,translations:n=Vt,allowedLocales:r=[be]}){this.supportedLocales=[...new Set([be,...r])];const s=Zs(e)??ic(e,this.supportedLocales);this.locale=s&&this.supportedLocales.includes(s)?s:be,this.translations={...Vt,...n}}get(e,n){const r=typeof e=="object"?e.key:e,s=typeof e=="object"?{...n,values:{...e.values,...n?.values}}:n,i=oc(this.translations,r,s);return i!==null?i:r}}const Nu={i18n:new Ki({}),setLocale:Z},Pu=a.X(Nu),Du=async(t,e)=>{const{experiments:n,features:r}=await at({baseUrl:e,path:`legalEntities/${t}/flags`});return{experiments:n?Object.values(n).reduce((i,o)=>({...i,[o]:!0}),{}):{},features:r}},Wi=t=>{const{rootLegalEntityId:e,baseUrl:n}=we(),{experiments:r}=Jt();return rt({queryKey:["toggles"],queryFn:()=>Du(e.value,n.value),enabled:!!r.EnableOnboardingTogglesEndpoint,...t})},Gi=[{roleTypes:[ze.SETTLOR],min:1,max:1,label:Ze.SETTLOR},{roleTypes:[ze.DEFINED_BENEFICIARY,ze.UNDEFINED_BENEFICIARY],min:1,max:1/0,label:Ze.BENEFICIARY},{roleTypes:[ze.PROTECTOR],min:0,max:1/0,label:Ze.PROTECTOR},{roleTypes:[ze.TRUSTEE],min:1,max:1/0,label:Ze.TRUSTEE}],Ou=t=>{const e=Yi(t);if(!e)return[];const r=We(t,e).map(s=>s.legalEntityId).filter(s=>s!==void 0);return[...r,...r.flatMap(s=>Ru(t,s))]},Ru=(t,e)=>sl(t,e).map(r=>r.legalEntityId).filter(r=>r!==void 0),Yi=t=>t?.entityAssociations?.find(e=>e.entityType===G.TRUST&&e.associatorId===t.id)?.legalEntityId,ku=t=>{const e=Yi(t);return e?[e]:[]},xu=t=>t.length?Gi.every(({roleTypes:e,min:n})=>n===0?!0:(t.filter(({roles:s})=>e.some(i=>s.includes(i)))?.length??0)>=n):!1,Cu=["name.firstName","name.lastName","residentialAddress.country"],Mu=["legalName","registeredAddress.country"],Lu=["name","registeredAddress.country"],Fu=["name","registeredAddress.country"],Uu=["name","countryOfGoverningLaw","registeredAddress.country"],Bu={[G.INDIVIDUAL]:Cu,[G.ORGANIZATION]:Mu,[G.TRUST]:Lu,[G.SOLE_PROPRIETORSHIP]:Fu,[G.UNINCORPORATED_PARTNERSHIP]:Uu};function ar(t){const e=t?.type;if(!e)return!0;if(t.documentDetails?.length)return!1;const n=Bu[e],r=t[e];if(!r)return!0;const s=ir(r,!1,!1),i=[...n].sort();return[...s].sort().every((d,c)=>d===i[c])}function Vu(t){return t.bankAccount!==void 0}const Xi=t=>!!(Vu(t)?t.bankAccount.trustedSource:t.trustedSource),Qi=t=>t?.entityAssociations?.find(e=>e.entityType===G.UNINCORPORATED_PARTNERSHIP&&e.associatorId===t.id)?.legalEntityId,qu=t=>{const e=Qi(t);return e?[e]:[]},ju=t=>{const e=Qi(t);if(!e)return[];const r=We(t,e).map(i=>i.legalEntityId).filter(i=>i!==void 0),s=r.flatMap(i=>We(t,i)).map(i=>i.legalEntityId).filter(i=>i!==void 0);return[t.id,...r,...s]},Ji={VALID:"valid"},zu=(t,e)=>{const n=e.individual?.support??e.organization?.support,r=t.LegalEntity?.[e.id]?.missingData?.some(i=>Nn.includes(i.code));if(!n)return{status:k.DETAILS_REQUIRED,reason:"rootLegalEntityIsEmpty"};if(r)return{status:k.DETAILS_REQUIRED,reason:"dataMissingError",details:{missingData:t.LegalEntity?.[e.id].missingData?.filter(i=>Nn.includes(i.code))}};const s=dr(e);return s.length>0?{status:k.PROCESSING,reason:"pendingCapabilities",details:{pendingCapabilities:s}}:eo(e)?{status:k.FINISHED,reason:"allCapabilitiesValid"}:{status:k.FINISHED,reason:"noIssuesFound"}},$u=({taskType:t,capabilityProblems:e,rootLegalEntity:n,relevantEntityIds:r,ignorePendingCapabilities:s=!1})=>{const i=t===R.PAYIN||t==R.PAYOUT?Le.BANK_ACCOUNT:Le.LEGAL_ENTITY;if(r.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};if(r.includes(n.id)&&ar(n))return{status:k.EMPTY,reason:"rootLegalEntityIsEmpty"};const o=Zi(i,e,r,t);if(o.length>0)return o[0].statusWithReason;const d=dr(n);return!s&&d.length>0?{status:k.PROCESSING,reason:"pendingCapabilities",details:{pendingCapabilities:d}}:r.includes(n.id)&&eo(n)?{status:k.FINISHED,reason:"allCapabilitiesValid"}:{status:k.FINISHED,reason:"noIssuesFound"}},Hu=({capabilityProblems:t,rootLegalEntity:e,relevantEntityIds:n})=>{if(n.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};if(n.includes(e.id)&&ar(e))return{status:k.EMPTY,reason:"rootLegalEntityIsEmpty"};const r=Zi(Le.LEGAL_ENTITY,t,n,R.DECISION_MAKER_OVERVIEW);if(r.length>0)return r[0].statusWithReason;const s=dr(e).filter(i=>!/.*TransferInstrument/gim.test(i));return s.length>0?{status:k.PROCESSING,reason:"pendingCapabilities",details:{pendingCapabilities:s}}:n.includes(e.id)&&Wu(e)?{status:k.FINISHED,reason:"allCapabilitiesValid"}:{status:k.FINISHED,reason:"noIssuesFound"}},Ku=[k.DETAILS_REQUIRED,k.DOWNLOAD,k.ERROR,k.PROCESSING];function Zi(t,e,n,r){if(!e?.[t]||!n.length)return[];const s=Qt(e);return r!==R.CUSTOMER_SUPPORT&&n.forEach(o=>{s.LegalEntity?.[o]?.missingData&&(s.LegalEntity[o].missingData=s.LegalEntity?.[o]?.missingData?.filter(d=>!Nn.includes(d.code)))}),Object.entries(s[t]??{}).filter(([o])=>n.includes(o)).map(([,o])=>o).filter(o=>o.statusWithReason!==void 0&&Ku.includes(o.statusWithReason.status)).sort((o,d)=>d.statusWithReason.status-o.statusWithReason.status)}const dr=t=>vt(t.capabilities??{}).filter(([,e])=>e?.verificationStatus==="pending").reduce((e,[n])=>[...e,n],[]),eo=t=>Object.values(t?.capabilities??{}).every(e=>e.verificationStatus===Ji.VALID),Wu=t=>{for(const[e,n]of Object.entries(t?.capabilities??{}))if(!/.*TransferInstrument/gim.test(e)&&n.verificationStatus!==Ji.VALID)return!1;return!0},Gu=({taskIdentifier:t,capabilityProblems:e,rootLegalEntity:n,accountHolder:r,legalRepresentative:s,trustMembers:i,transferInstruments:o})=>{const{taskType:d,id:c}=cr(t);let l=[],u=!1;switch(d){case R.INDIVIDUAL:case R.BUSINESS_DETAILS:l=[n.id];break;case R.LEGAL_REPRESENTATIVE_DETAILS:if(!s)return{status:k.DETAILS_REQUIRED,reason:"legalRepresentativeNeeded"};l=[s.legalEntityId];break;case R.SOLE_PROPRIETOR_COMPANY:l=rl(n);break;case R.DECISION_MAKER_OVERVIEW:return ol(n)?(l=Qn(n),Hu({capabilityProblems:e,rootLegalEntity:n,relevantEntityIds:l})):{status:k.DETAILS_REQUIRED,reason:"missingRequiredDecisionMakers"};case R.DECISION_MAKER:if(!c)throw new Error("Decision maker task identifier should specify an ID");l=[c];break;case R.TRUST:{const h=ku(n);if(r==="aTrust"&&h.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};l=h;break}case R.TRUST_MEMBER_OVERVIEW:if(!xu(i))return{status:k.DETAILS_REQUIRED,reason:"missingRequiredTrustMembers"};l=Ou(n);break;case R.TRUST_MEMBER:case R.TRUST_MEMBER_INDIVIDUAL:case R.TRUST_MEMBER_COMPANY:case R.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY:case R.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:if(!c)throw new Error("Trust member task identifier should specify an ID");if(c==="undefinedBeneficiary"){l=[];break}l=[c,...We(n,c).map(h=>h.legalEntityId)];break;case R.PAYIN:case R.PAYOUT:{if(!c)return{status:k.DETAILS_REQUIRED,reason:"bankAccountNeeded"};const h=o.find(f=>f.id===c);if(!h)throw new Error(`Could not find transfer instrument with id ${c}`);u=Xi(h),l=[c];break}case R.CUSTOMER_SUPPORT:return zu(e,n);case R.UNINCORPORATED_PARTNERSHIP:{const h=qu(n);if(r==="anUnincorporatedPartnership"&&h.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};l=h;break}case R.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW:{if(l=ju(n),l?.length===1)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};break}}return $u({taskType:d,rootLegalEntity:n,capabilityProblems:e,relevantEntityIds:l,ignorePendingCapabilities:u})},cr=t=>{const e=t.indexOf("-");if(e===-1)return{taskType:t};const n=t.slice(0,e),r=t.slice(e+1);return{taskType:n,id:r}},Yu=({taskTypes:t,rootLegalEntity:e,accountHolder:n,capabilityProblems:r,trustMembers:s,transferInstruments:i,unincorporatedPartnershipMembers:o,legalRepresentative:d})=>{if(!e||!r)return[];const c=t.map(Xu),l=[...c];return c.includes(R.PAYIN)&&i.forEach(u=>l.push(`PAYIN-${u.id}`)),c.includes(R.PAYOUT)&&i.forEach(u=>l.push(`PAYOUT-${u.id}`)),c.includes(R.DECISION_MAKER_OVERVIEW)&&Qn(e).forEach(h=>l.push(`DECISION_MAKER-${h}`)),(d||Yn(e))&&l.push(R.LEGAL_REPRESENTATIVE_DETAILS),n==="mySoleProprietorName"&&l.push(R.SOLE_PROPRIETOR_COMPANY),n==="aTrust"&&(l.push(R.TRUST),l.push(R.TRUST_MEMBER_OVERVIEW),s.forEach(u=>{if(u.trustMemberType==="undefinedBeneficiary"){l.push("TRUST_MEMBER-undefinedBeneficiary");return}switch(u.legalEntityType){case"individual":l.push(`TRUST_MEMBER_INDIVIDUAL-${String(u.legalEntityId)}`);return;case"organization":l.push(`TRUST_MEMBER_COMPANY-${String(u.legalEntityId)}`);return}})),n==="anUnincorporatedPartnership"&&(l.push(R.UNINCORPORATED_PARTNERSHIP),l.push(R.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW),o?.forEach(u=>{switch(u.legalEntityType){case"individual":l.push(`UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL-${String(u.legalEntityId)}`);return;case"organization":l.push(`UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY-${String(u.legalEntityId)}`);return}})),l},Xu=t=>{switch(t){case R.DECISION_MAKER:return R.DECISION_MAKER_OVERVIEW;case R.TRUST_MEMBER:return R.TRUST_MEMBER_OVERVIEW;default:return t}},Qu=re(),Ju=({rootLegalEntity:t})=>{const e=ue(t),n=ue([]),r=ue(),s=ue([]),i=ue([]),o=le(()=>Qe(e.value)),d=le(()=>Bi(e.value)),c=le(()=>Fi(e.value,o.value)),l=le(()=>Xn(e.value)),u=le(()=>e.value.transferInstruments??[]),h=le(()=>Yu({taskTypes:n.value,rootLegalEntity:e.value,accountHolder:r.value,capabilities:d.value,capabilityProblems:c.value,legalRepresentative:l.value,transferInstruments:u.value,trustMembers:s.value,unincorporatedPartnershipMembers:i.value})),f=le(()=>h.value.reduce((m,p)=>{try{m[p]=Gu({taskIdentifier:p,accountHolder:r.value,capabilityProblems:c.value,rootLegalEntity:e.value,legalRepresentative:l.value,trustMembers:s.value,transferInstruments:u.value})}catch(g){Qu.error(`Could not calculate task status for ${p}. `,g)}return m},{}));return{rootLegalEntity:e,taskTypes:n,accountHolder:r,trustMembers:s,unincorporatedPartnershipMembers:i,rootLegalEntityCountry:o,capabilities:d,capabilityProblems:c,legalRepresentative:l,transferInstruments:u,tasks:h,taskStatuses:f,setRootLegalEntity:m=>e.value=m,setTaskTypes:m=>n.value=m,setAccountHolder:m=>r.value=m,setTrustMembers:m=>s.value=m,setUnincorporatedPartnershipMembers:m=>i.value=m}},to=a.X(null);function no(){const t=a.x(to);if(!t)throw new Error("`useGlobalStore()` must be called from within a `StoreContext.Provider`");return t}const ro=t=>t.endsWith("/")?t:`${t}/`;ne.use(yd).init({defaultNS:!1,fallbackLng:"en-US",load:"currentOnly",resources:{},showSupportNotice:!1,react:{transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["strong","i","em"],bindI18n:"languageChanged",bindI18nStore:"added"},interpolation:{prefix:"%{",suffix:"}"}});const Zu=async(t,e)=>at({baseUrl:e,path:`legalEntities/${t}/configurations/version`}),so=t=>{const{rootLegalEntityId:e,baseUrl:n}=we();return rt({queryKey:["versionConfiguration"],queryFn:()=>Zu(e.value,n.value),...t})},eh=async(t,e)=>Yt({baseUrl:t,path:"analytics/ui"},e),th=(t,e,n)=>{const{baseUrl:r}=we();return rt({queryKey:["analyticsSession",e],queryFn:()=>eh(r.value,t),enabled:!!e,...n})};class nh{queue=[];subscriptions=new Set;baseTrackingPayload;sharedEventProperties;constructor(){this.baseTrackingPayload={category:"onboarding",subCategory:"hosted onboarding"},this.sharedEventProperties={}}add(...e){this.queue.push(...e)}notifySubscribers(){for(;this.queue.length>0;){const e=this.queue.pop();this.subscriptions.forEach(n=>n(e))}}addEvent(e,n){const r={...this.baseTrackingPayload,...n};this.add({type:"add_event",name:e,properties:r}),this.notifySubscribers()}addJourneyEvent(e,n){this.addEvent(e,{actionLevel:"journey",...n})}addTaskEvent(e,n){this.addEvent(e,{actionLevel:"task",...n})}addPageEvent(e,n){this.addEvent(e,{actionLevel:"page",page:this.sharedEventProperties.page,...n})}addFieldEvent(e,n){this.addEvent(e,{actionLevel:"field",page:this.sharedEventProperties.page,...n})}trackExperiment({name:e,variant:n}){this.add({type:"add_event",name:"$experiment_started",properties:{...this.baseTrackingPayload,"Experiment name":e,"Variant name":n}})}subscribe(e){this.subscriptions.add(e)}updateBaseTrackingPayload(e){this.baseTrackingPayload={...this.baseTrackingPayload,...e}}updateSharedEventProperties=e=>{this.sharedEventProperties={...this.sharedEventProperties,...e}};unsubscribe(e){this.subscriptions.has(e)&&this.subscriptions.delete(e)}}const rh=()=>new nh,sh=async(t,e,n)=>Yt({baseUrl:t,path:`analytics/ui/${e}`},n),ih=(t,e)=>{const{baseUrl:n}=we();return Ts({mutationFn:r=>sh(n.value,t,r),...e})},oh=(t,e)=>{const{type:n,name:r,properties:s}=t;return{eventName:r,eventType:n,eventData:s||{},legalEntityId:e.legalEntityId,userAgent:e.userAgent,componentName:e.componentName,sdkVersion:e.sdkVersion}},ah=(t,e)=>{let n;switch(e){case"aTrust":n="trust";break;case"mySoleProprietorName":n="soleProprietorship";break;case"anUnincorporatedPartnership":n="unincorporatedPartnership";break;default:n=void 0}const r=t.entityAssociations?.find(s=>s.type===n);return{associatedLegalEntityType:n,associatedLegalEntityId:r?.legalEntityId}},dh=({userEvents:t,sessionId:e,sessionData:n})=>{const r="4.0.0-compact.9",{data:s}=Ye(Fe),{mutateAsync:i}=ih(e??""),{accountHolder:o}=qi();a.y(()=>{if(!s)return;const c=Qe(s),l=Object.keys(s?.capabilities??{});t.updateBaseTrackingPayload({entityType:s.type,countryCode:c,capabilities:l,sdkVersion:r,componentName:n.componentName,userAgent:navigator.userAgent,...ah(s,o)})},[s,o,r,n.componentName,t]);const d=a.q(c=>{const l=oh(c,n);i(l)},[i,n]);a.y(()=>{if(e)return t.subscribe(d),()=>{t.unsubscribe(d)}},[e,i,t,n,d])},ch=t=>{const{dateOfIncorporation:e,financialReports:n,registeredAddress:r,registrationNumber:s,support:i,taxInformation:o,type:d,vatNumber:c}=t,l=n?.[0];return{dateOfIncorporation:!!e,financialReport:{annualTurnover:!!l?.annualTurnover,balanceSheetTotal:!!l?.balanceSheetTotal,dateOfFinancialData:!!l?.dateOfFinancialData,employeeCount:!!l?.employeeCount},registeredAddress:{city:!!r?.city,postalCode:!!r?.postalCode,stateOrProvince:!!r?.stateOrProvince,street:!!r?.street},registrationNumber:!!s,support:{email:!!i?.email,phone:!!i?.phone},taxInformation:!!o?.some(u=>u.country&&u.number),type:!!d,vatNumber:!!c}},lh=t=>{if(!t)return;const{organization:e,transferInstruments:n,entityAssociations:r}=t;return{transferInstrumentCount:n?.length||0,entityAssociations:r?.map(s=>s.type)||[],organization:e&&ch(e)}},io=({componentName:t,children:e,rootLegalEntityId:n})=>{const{settings:r}=en(),{data:s}=Ye(Fe),{data:i,isError:o,isLoading:d}=so(),c=a.T(()=>rh(),[]),l=d?void 0:o?1:i?.version,u=s?.capabilities&&Object.keys(s.capabilities),h=u?.includes("receivePayments")&&l&&l>1,f={sdkVersion:"4.0.0-compact.9",componentName:t,userAgent:navigator.userAgent,legalEntityId:n,capabilities:u,entityType:s?.type,eventData:h?lh(s):void 0,userData:{onboardingVersion:l,isDirectMerchant:r.merchantType==="direct",settings:r,country:s&&Qe(s)}},{data:m}=th(f,l);return dh({userEvents:c,sessionId:m?.id,sessionData:f}),a.u(Js.Provider,{value:c,children:e})};function oo({children:t,experiments:e,refreshExperiments:n}){const{data:r}=Wi(),{data:s}=so(),i=a.T(()=>({...r?.features,...r?.experiments,...e,...or(s?.features??[],()=>!0)}),[s,e,r?.experiments,r?.features]),o=a.T(()=>({isExperimentEnabled:d=>i[d]??!1,refreshExperiments:n,experiments:i}),[i,n]);return a.u(ti.Provider,{value:o,children:t})}const uh=Object.assign({"./locales/da-DK.json":()=>Promise.resolve().then(()=>require("./da-DK-Cv6XUSoW-XrirZvM9.cjs")),"./locales/de-DE.json":()=>Promise.resolve().then(()=>require("./de-DE-BplDsJEb-HPg3XgvU.cjs")),"./locales/en-US.json":()=>Promise.resolve().then(()=>Ln),"./locales/es-ES.json":()=>Promise.resolve().then(()=>require("./es-ES-DRsix_Xn--G4QsVsf.cjs")),"./locales/fi-FI.json":()=>Promise.resolve().then(()=>require("./fi-FI-BftTiz0c-4bXBC8s3.cjs")),"./locales/fr-FR.json":()=>Promise.resolve().then(()=>require("./fr-FR-C6jxjXAI-CzQV3htW.cjs")),"./locales/it-IT.json":()=>Promise.resolve().then(()=>require("./it-IT-CXlaZNIj-_Ja7g3_X.cjs")),"./locales/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-A6ArIIZ8-DaGCcv78.cjs")),"./locales/nl-NL.json":()=>Promise.resolve().then(()=>require("./nl-NL-BwWFlBOs-DgZiOYWm.cjs")),"./locales/no-NO.json":()=>Promise.resolve().then(()=>require("./no-NO-JWsSd7iY-BtbX0Bcc.cjs")),"./locales/pt-BR.json":()=>Promise.resolve().then(()=>require("./pt-BR-BJOww8U1-BrWJTSOE.cjs")),"./locales/sl-SI.json":()=>Promise.resolve().then(()=>require("./sl-SI-BfO3xEJx-D7RrxQE5.cjs")),"./locales/sv-SE.json":()=>Promise.resolve().then(()=>require("./sv-SE-CMLKzwtj-C_teo0xK.cjs"))}),hh=async t=>{const e=uh[`./locales/${t}.json`];if(!e)throw new Error(`Locale ${t} is not supported.`);return(await e()).default},es=re(),fh=({locale:t,allowedLocales:e})=>{const[n,r]=a.d({translations:Vt,locale:be});return a.y(()=>{if(!e)return;const s=e.includes(t),i=s?t:be;if(n.locale!==i){if(s||es.error(`
3
+ Each named-slot can be defined and used only once.`),s.push(u)})},kn=(t,e,n)=>(Ba(t,e,{}),{Slot:({name:i,children:o})=>Fa({name:i,children:o,from:t}),hasSlot:i=>Ua(i,t)});var Va=Symbol.for("preact-signals");function Wt(){if(Pe>1)Pe--;else{var t,e=!1;for((function(){var s=Ft;for(Ft=void 0;s!==void 0;)s.S.v===s.v&&(s.S.i=s.i),s=s.o})();pt!==void 0;){var n=pt;for(pt=void 0,Lt++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Ns(n))try{n.c()}catch(s){e||(t=s,e=!0)}n=r}}if(Lt=0,Pe--,e)throw t}}function ws(t){if(Pe>0)return t();Sn=++qa,Pe++;try{return t()}finally{Wt()}}var C=void 0;function Es(t){var e=C;C=void 0;try{return t()}finally{C=e}}var pt=void 0,Pe=0,Lt=0,qa=0,Sn=0,Ft=void 0,Ut=0;function As(t){if(C!==void 0){var e=t.n;if(e===void 0||e.t!==C)return e={i:0,S:t,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:e},C.s!==void 0&&(C.s.n=e),C.s=e,t.n=e,32&C.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=C.s,e.n=void 0,C.s.n=e,C.s=e),e}}function J(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}J.prototype.brand=Va;J.prototype.h=function(){return!0};J.prototype.S=function(t){var e=this,n=this.t;n!==t&&t.e===void 0&&(t.x=n,this.t=t,n!==void 0?n.e=t:Es(function(){var r;(r=e.W)==null||r.call(e)}))};J.prototype.U=function(t){var e=this;if(this.t!==void 0){var n=t.e,r=t.x;n!==void 0&&(n.x=r,t.e=void 0),r!==void 0&&(r.e=n,t.x=void 0),t===this.t&&(this.t=r,r===void 0&&Es(function(){var s;(s=e.Z)==null||s.call(e)}))}};J.prototype.subscribe=function(t){var e=this;return it(function(){var n=e.value,r=C;C=void 0;try{t(n)}finally{C=r}},{name:"sub"})};J.prototype.valueOf=function(){return this.value};J.prototype.toString=function(){return this.value+""};J.prototype.toJSON=function(){return this.value};J.prototype.peek=function(){var t=C;C=void 0;try{return this.value}finally{C=t}};Object.defineProperty(J.prototype,"value",{get:function(){var t=As(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Lt>100)throw new Error("Cycle detected");(function(n){Pe!==0&&Lt===0&&n.l!==Sn&&(n.l=Sn,Ft={S:n,v:n.v,i:n.i,o:Ft})})(this),this.v=t,this.i++,Ut++,Pe++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Wt()}}}});function ue(t,e){return new J(t,e)}function Ns(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Ps(t){for(var e=t.s;e!==void 0;e=e.n){var n=e.S.n;if(n!==void 0&&(e.r=n),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Ds(t){for(var e=t.s,n=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):n=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=n}function Ge(t,e){J.call(this,void 0),this.x=t,this.s=void 0,this.g=Ut-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}Ge.prototype=new J;Ge.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ut))return!0;if(this.g=Ut,this.f|=1,this.i>0&&!Ns(this))return this.f&=-2,!0;var t=C;try{Ps(this),C=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return C=t,Ds(this),this.f&=-2,!0};Ge.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}J.prototype.S.call(this,t)};Ge.prototype.U=function(t){if(this.t!==void 0&&(J.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};Ge.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(Ge.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=As(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function le(t,e){return new Ge(t,e)}function Os(t){var e=t.m;if(t.m=void 0,typeof e=="function"){Pe++;var n=C;C=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,xn(t),r}finally{C=n,Wt()}}}function xn(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Os(t)}function ja(t){if(C!==this)throw new Error("Out-of-order effect");Ds(this),C=t,this.f&=-2,8&this.f&&xn(this),Wt()}function st(t,e){this.x=t,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=e?.name}st.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.m=e)}finally{t()}};st.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Os(this),Ps(this),Pe++;var t=C;return C=this,ja.bind(this,t)};st.prototype.N=function(){2&this.f||(this.f|=2,this.u=pt,pt=this)};st.prototype.d=function(){this.f|=8,1&this.f||xn(this)};st.prototype.dispose=function(){this.d()};function it(t,e){var n=new st(t,e);try{n.c()}catch(s){throw n.d(),s}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var Cn,Gt,Et,za=typeof window<"u"&&!!window.__PREACT_SIGNALS_DEVTOOLS__,Rs=[],ks=[];it(function(){Cn=this.N})();function ot(t,e){a.l[t]=e.bind(null,a.l[t]||function(){})}function Bt(t){if(Et){var e=Et;Et=void 0,e()}Et=t&&t.S()}function xs(t){var e=this,n=t.data,r=Mn(n);r.value=n;var s=a.T(function(){for(var d=e,c=e.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=le(function(){var m=r.value.value;return m===0?0:m===!0?"":m||""}),u=le(function(){return!Array.isArray(l.value)&&!a.t(l.value)}),h=it(function(){if(this.N=Cs,u.value){var m=l.value;d.__v&&d.__v.__e&&d.__v.__e.nodeType===3&&(d.__v.__e.data=m)}}),f=e.__$u.d;return e.__$u.d=function(){h(),f.call(this)},[u,l]},[]),i=s[0],o=s[1];return i.value?o.peek():o.value}xs.displayName="ReactiveTextNode";Object.defineProperties(J.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:xs},props:{configurable:!0,get:function(){var t=this;return{data:{get value(){return t.value}}}}},__b:{configurable:!0,value:1}});ot("__b",function(t,e){if(typeof e.type=="string"){var n,r=e.props;for(var s in r)if(s!=="children"){var i=r[s];i instanceof J&&(n||(e.__np=n={}),n[s]=i,r[s]=i.peek())}}t(e)});ot("__r",function(t,e){if(t(e),e.type!==a.S){Bt();var n,r=e.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(s,i){var o;return it(function(){o=this},{name:i}),o.c=s,o})(function(){var s;za&&((s=n.y)==null||s.call(n)),r.__$f|=1,r.setState({})},typeof e.type=="function"?e.type.displayName||e.type.name:""))),Gt=r,Bt(n)}});ot("__e",function(t,e,n,r){Bt(),Gt=void 0,t(e,n,r)});ot("diffed",function(t,e){Bt(),Gt=void 0;var n;if(typeof e.type=="string"&&(n=e.__e)){var r=e.__np,s=e.props;if(r){var i=n.U;if(i)for(var o in i){var d=i[o];d!==void 0&&!(o in r)&&(d.d(),i[o]=void 0)}else i={},n.U=i;for(var c in r){var l=i[c],u=r[c];l===void 0?(l=$a(n,c,u),i[c]=l):l.o(u,s)}for(var h in r)s[h]=r[h]}}t(e)});function $a(t,e,n,r){var s=e in t&&t.ownerSVGElement===void 0,i=ue(n),o=n.peek();return{o:function(d,c){i.value=d,o=d.peek()},d:it(function(){this.N=Cs;var d=i.value.value;o!==d?(o=void 0,s?t[e]=d:d!=null&&(d!==!1||e[4]==="-")?t.setAttribute(e,d):t.removeAttribute(e)):o=void 0})}}ot("unmount",function(t,e){if(typeof e.type=="string"){var n=e.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var s in r){var i=r[s];i&&i.d()}}}e.__np=void 0}else{var o=e.__c;if(o){var d=o.__$u;d&&(o.__$u=void 0,d.d())}}t(e)});ot("__h",function(t,e,n,r){(r<3||r===9)&&(e.__$f|=2),t(e,n,r)});a.C.prototype.shouldComponentUpdate=function(t,e){if(this.__R)return!0;var n=this.__$u,r=n&&n.s!==void 0;for(var s in e)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(r||i||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var d in this.props)if(!(d in t))return!0;return!1};function Mn(t,e){return a.T(function(){return ue(t,e)},[])}function Ur(t,e){var n=a.A(t);return n.current=t,Gt.__$f|=4,a.T(function(){return le(function(){return n.current()},e)},[])}var Ha=typeof requestAnimationFrame>"u"?setTimeout:function(t){var e=function(){clearTimeout(n),cancelAnimationFrame(r),t()},n=setTimeout(e,35),r=requestAnimationFrame(e)},Ka=function(t){queueMicrotask(function(){queueMicrotask(t)})};function Wa(){ws(function(){for(var t;t=Rs.shift();)Cn.call(t)})}function Ga(){Rs.push(this)===1&&(a.l.requestAnimationFrame||Ha)(Wa)}function Ya(){ws(function(){for(var t;t=ks.shift();)Cn.call(t)})}function Cs(){ks.push(this)===1&&(a.l.requestAnimationFrame||Ka)(Ya)}function Ms(t,e){var n=a.A(t);n.current=t,a.y(function(){return it(function(){return this.N=Ga,n.current()},e)},[])}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="8f120b1c-623e-445c-8490-ef767b9aae28",t._sentryDebugIdIdentifier="sentry-dbid-8f120b1c-623e-445c-8490-ef767b9aae28")}catch{}const Ls=JSON.parse(`{"1Minute":"1 minute","1Second":"1 second","accountCantBeSetUp":"Your account can't be set up as your information couldn't be verified. To find out more, reach out to customer support.","accountDetailsDescription":"Provide a few details about you to start accepting live payments.","accountHolder":"Account holder","accountHolderTerms":"Account Holder Terms","accountName":"Account name","accountNumber":"Account number","accountVerification":"Account Verification","actionNeeded":"Action needed","add":"Add","addAllSourcesOfFundsBeingUsed":"Add all sources of funds being used with the financial products listed on this page. Some funding sources may need supporting documentation. ","addBankAccount":"Add bank account","addDetailsManually":"Add details manually","addExtraBankAccount":"Add extra bank account","addExtraPayinAccount":"Add extra payin account","addExtraPayoutAccount":"Add extra payout account","additionalInformation":"Additional information","additionalInformationFormName":"Additional details","additionalPersonalDetails":"Additional personal details","addMissingBankDetails":"We are missing your bank details in order to perform payouts, please add your bank account.","addNew":"Add new","addPayoutAccount":"Add a payout account","address":"Address","address__placeHolder":"Start typing an address for suggestions...","addressDetails":"Address details","addresses":"Addresses","addressPoBoxError":"PO Box addresses aren't allowed. Enter a physical address.","addressRegisteredWithGovernment":"The address registered with government or other authorities where the company’s executive activities take place.","addTrustMember":"Add trust member","adoptionCertificate":"Adoption certificate","adyenPrivacyPolicy":"Adyen Privacy Policy","agreementSigned":"Agreement signed","aLegalRepresentativeIsRequired":"A legal representative is required","allCapabilitiesValid":"All capabilities are valid","amount":"Amount","amountIsRequired":"Amount is required","anAssociation":"An association","and":"and","annualTurnover":"Annual turnover","anUnincorporatedPartnership":"An Unincorporated Partnership","anyInformationFromTheUploadedDocumentWillBeLost":"Any information from the uploaded document will be lost. You will need to manually add this data.","apartmentSuite":"Apartment / Suite","apartmentSuiteOther":"Apt, suite, other","areYouSureYouWantToDeleteThisBankAccount":"Are you sure you want to delete this bank account?","arithmosEngraphes":"Αριθμός Εγγραφής Φ.Π.Α.","arvonlisaveronumeroMervardesskattenummer":"Arvonlisäveronumero Mervärdesskattenummer","association":"Association","associationIncorporated":"Incorporated association","atLeastOneEmployeeIsRequired":"At least 1 employee is required","aTrust":"A trust","australianBusinessNumberAbn":"Australian business number (ABN)","australianBusinessNumberAcn":"Australian company number (ACN)","authorizedSignatory":"Authorized signatory","back":"Back","backToTaskList":"Back to task list","balanceSheetTotal":"Balance sheet total","bankAccount":"Bank account","bankAccountDetails":"Bank account details","bankAccountNeeded":"A bank account is needed.","bankAccountNumber":"Account number","bankCityTown":"Bank city/town","bankCode":"Bank code","bankCountry":"Bank country/region","bankDetails":"Bank details","bankDocument":"Bank document","bankDocumentFileDescription":"Add a description for this bank account (optional)","bankingService":"Business bank accounts","bankName":"Bank name","bankStatement":"Bank statement","bankStatementDocument":"Bank statement","basicInformation":"Basic information","basicInformationFormName":"Basic details","becauseThisPersonIsUnderXYearsOld":"Because this person is under %{age} years old, information about a legal representative will be collected in another step.","belowTaxThreshold":"Earnings are below the mandatory indirect tax registration threshold in this country/region of establishment","benefactorDetails":"Benefactor details","beneficialOwnership":"Beneficial ownership","beneficiary":"Beneficiary","bic":"BIC","bicSwift":"BIC / SWIFT","birthCertificate":"Birth certificate","birthDate":"Date of birth","branchCode":"Branch code","branchNumber":"Branch Number","bsbCode":"Bank State Branch (BSB) code","bsbNumber":"BSB Number","bsnNumber":"BSN","btwNummer":"Btw-nummer","buildingNameFloorRoomNumberEtc":"Building name / Floor / Room number / etc.","business":"Business","businessAccountDetailsDescription":"Tell us about your business","businessAccountDetailsDescriptionReview":"In order to ensure your data is up-to-date, please verify the following details. If necessary, please adjust any data that is no longer accurate.","businessAccountTerms":"Business Account Terms","businessDescription":"Business description","businessDetails":"Business details","businessEntityDescription":"This is usually a sole proprietor, private company, public corporation, partnership, or non profit.","businessEntityTitle":"Business entity","businessFinancials":"Business financials","businessFinancing":"Business financing","businessIncorporationNumber":"Business incorporation number","businessInformation":"Business information","businessLegalName":"Business legal name","businessLines":"Business lines","businessName":"Business name","businessName__helperText":"The legal name is used to identify a business with the government; enter it exactly as it appears on your government or legal forms.","businessNumber":"Business number","businessRegistrationDocument__FR":"Business registration document, such as a KBIS extract or situation au répertoire sirene","businessRegistryStatement":"Business registry statement","businessSelectionFormHeading":"Select your business","businessSelectionFormName":"Business selection","businessStructure":"Business structure","businessTrusteeDetails":"Business trustee details","businessTrustEntity":"Business Trust Entity","businessUrl":"Business URL","byClickingSubmitReview":"By clicking 'Submit review', you confirm that all of your information has been reviewed, and that all newly provided or already existing data is accurate and up-to-date.","cadastroDePessoasFisicas":"Cadastro de Pessoas Físicas (CPF)","cancel":"Cancel","canNotCompleteInstantVerification":"Can not complete instant verification?","cantSetUpAcccount":"You can't set up an account","capitalUserTerms":"Capital User Terms","cardUserTerms":"Card User Terms","carouselBack":"Carousel back","carouselForward":"Carousel forward","CCIAA":"CCIAA Number","certificateOfVoterRegistration":"Certificate of voter registration","certifiedOrganizationalChart":"Certified Organizational chart","chamberOfCommerceRegistrationNumber":"Chamber of Commerce registration number","changeYourBusinessSetup":"Change your business setup?","chargeCardUserAgreement":"Charge Card User Agreement","charityNumber":"Charity number","checkForTypos":"Check for typos and try again","chomeAndBanchi":"Chōme and Banchi","chooseATaxReportingClassificationOption":"Choose a tax reporting classification option","chooseATaxStatusOptionToContinue":"Choose a tax status option to continue","chooseTheCorrectDetailsBeforeProceeding":"Choose the correct details before proceeding.","chooseTheTaxStatusWhichBestRepresentsYourBusiness":"Choose the tax status which best represents your business. We collect this information to comply with global tax transparency laws including <el1>FATCA</el1> and <el2>CRS legislation</el2>. ","chRegistrationNumber":"Unternehmens-Identifikationsnummer (UID)","city":"City","cityTown":"City / Town","clearingCode":"Clearing code","clearingNumber":"Clearing Number","close":"Close","CNPJ":"CNPJ","code":"Code","codiceFiscale":"Codice fiscale","codiceFiscalePartitaIVA":"Codice Fiscale / Partita IVA","codNumericPersonal":"Cod Numeric Personal (CNP)","codulDeIdentificareFiscala":"Codul de identificare fiscală (CIF)","commercialLicence":"Commercial License, Trade License or Business License","company":"Company","companyDetails":"Company details","companyLegalName":"Company legal name","companyMember":"A business entity","companyName":"Company name","companyNumber":"Company number","companyNumberNZ":"Company Number","companyOwnerDetails":"Company owner details","companyRegistrationDocument":"Company registration document","companyRegistrationDocumentFormName":"Registration document","companyRegistrationNumber":"Company registration number","companyRegistrationNumber__HK":"Company Registration number (CRN)","companyStructure":"Company structure","companyStructureFormName":"Company structure","companyTaxDocumentFormName":"Tax document","companyTrustee":"Company trustee","companyType":"Company type","complete":"Complete","confirm":"Confirm","confirmSelection":"Confirm selection","constitutionalDocument":"Constitutional document","constitutionalDocumentFormName":"Constitutional document","constitutionalDocumentHeader":"Upload a constitutional document","constitutionalDocumentHeaderDescription":"This helps to verify your details.","constitutionalDocumentSoleProprietorshipHeaderDescription":"This helps to verify your sole proprietorship details.","constitutionalDocumentTrustHeaderDescription":"This helps to verify your trust details.","constitutionalDocumentUnincorporatedPartnershipDescription":"This helps verify your partnership’s details. ","contactDetails":"Contact Details","continue":"Continue","continueVerification":"Continue verification","contributionBelowThreshold":"My settlor's material asset contribution to the trust was less than AUD 10,000 at the time of establishing the trust","controllerDescriptionAsPartner":"Does this partner have more control over the partnership than others? For example, through additional voting rights. Choose 'No' if all partners have equal control.","controllingPerson":"Controlling person","controllingPersonDescription":"Authorized to make major business decisions (may or may not be an owner)","corporateRegistrationNumber":"Corporate Registration Number","correctErrorsResubmit":"Correct the following errors and resubmit the form","country":"Country/region","country__US__business":"Where is your business registered?","countryNotSupported":"Country not supported","countryOfBirth":"Country of birth","countryOfGoverningLaw":"Country/region of governing law","countryRegionOfEstablishment":"Country/region of establishment","countryWithoutVatOrGstSystem":"There is no indirect tax in this country/region of establishment","cryptocurrencyExchange":"Cryptocurrency exchange","currency":"Currency","currencyCode":"Currency code","currencyIsRequired":"Currency is required","currencyPlaceholder":"Select a currency code","customerSupport":"Customer support","CVR-nummer":"CVR-nummer","cyRegistrationNumber":"Αριθμός Εγγραφής","dataMissingError":"We are missing required data.","dataReviewNeeded":"A data review is neeced.","date":"Date","dateCannotBeInTheFuture":"Date cannot be in the future","dateOfIncorporation":"Date of incorporation","dateOfSale":"Date of sale","dateOfSourceEvent":"Date of source event","dateOfTotalAssetsCalculation":"The date on which total assets and annual turnover were calculated is often the balance sheet date.","dateOfWinning":"Date of winning","datePlaceholder":"dd/mm/yyyy","dbaName":"Doing Business As (DBA) name","deceased":"My settlor is deceased","deceasedEstate":"Deceased estate","decedentsLegalFirstName":"Decedent's legal first name","decedentsLegalLastName":"Decedent's legal last name","decisionMaker":"Decision-makers","decisionMakerDetails":"Decision maker details","decisionMakers":"Decision-makers","definedBeneficiary":"Defined beneficiary","definedBeneficiaryDescription":"A natural person, corporate entity, or member of a class in whose interest the trust is principally constituted or operates.","delete":"Delete","deleteDocument":"Delete document","deleteInvestorDetails":"Delete investor details","deleteItem":"Delete %{item}?","description":"Description","descriptionOptional":"Description (optional)","descriptionUndefinedBeneficiary":"Undefined beneficiary description","detCentralePersonregister":"Det Centrale Personregister (CPR)","DIC":"Daňové identifikační číslo (DIČ)","director":"Director","directorDescription":"Someone appointed to manage a company's business and affairs","districtTownAreaCityWard":"District / Town area, City / Ward","dni":"DNI","documentName":"Document name","documentRequirements":"Document requirements","documentRequirementsUnincorporatedPartnershipDetails":"Includes the partnership’s details such as roles, responsibilities, and profit distributions","documentRequirementsUnincorporatedPartnershipName":"Includes the name of all partners","documentRequirementsUnincorporatedPartnershipUpToDate":"All contents are true and up-to-date","documents":"Documents","documentType":"Document type","documentUpload":"Document upload","doingBusinessAs":"Doing Business As (DBA)","doingBusinessAsNameFiling":"Doing business as (DBA) filing","doingBusinessAsNameFiling__FR":"Trading name filing","doingBusinessAsNameFiling__US":"Doing business as (DBA) filing, such as your articles of incorporation","donorsLegalFirstName":"Donor's legal first name","donorsLegalLastName":"Donor's legal last name","doNotHaveAbn":"I do not have an ABN","doNotHaveAcn":"I do not have an ACN","doNotHaveChRegistrationNumber":"I do not have a Unternehmens-Identifikationsnummer (UID)","doNotHaveEIN":"I do not have an EIN","doNotHaveFirmenbuchnummer":"I do not have a Firmenbuchnummer","doNotHaveHandelsregisternummerOrVereinsregisternummer":"I do not have a Handelsregisternummer or a Vereinsregisternummer","doNotHaveLtRegistrationNumber":"I do not have a Įmonės kodas","doNotHaveLuRegistrationNumber":"I do not have a Numéro registre de commerce et des sociétés (RCS)","doNotHaveOrganisationsnummer":"I do not have an Organisationsnummer","doNotHaveRegonKrsNumber":"I do not have a REGON","doNotHaveYTunnus":"I do not have a Y-TUNNUS","download":"Download","downloadACopy":"Download a copy","driversLicense":"Driver license","driving_licence":"Driving license","duplicatedFiles":"Duplicated files","edit":"Edit","editBusinessSetup":"Edit business setup","editDetails":"Edit details","editForm":"Edit %{formName}","ein":"Employer Identification Number (EIN)","einVerificationLetter":"Employer identification number (EIN) verification letter, also known as a CP 575 or 147c letter","eInvoicingCode":"E-invoicing (SDI) code","email":"Email address","ensureValidFullWidthKatakana":"Ensure valid Full Width Katakana or Alphanumeric Characters used only.","enter1LetterAndThenNDigitsForExample":"Enter 1 letter and then %{numDigits} digits. For example, %{example}","enterAccountNumberWithBranchCodeForExample":"Enter a %{minDigits}-%{maxDigits} digit account number, starting with a 3-digit branch code. For example, %{example}","enterAMaximumOfNCharactersForExample":"Enter a maximum of %{maxChars} characters. For example, %{example}","enterAMaximumOfNCharactersWithAMixForExample":"Enter a maximum of %{maxChars} characters, with a mix of letters and numbers. For example, %{example}","enterAMaximumOfNDigitsForExample":"Enter a maximum of %{maxDigits} digits. For example, %{example}","enterEnglishLetterFollowedByXtoYDigitsForExample":"Enter an English-equivalent letter (C for HE, O for AE, P for Σ) followed by %{minDigits} - %{maxDigits} digits. For example, %{example}","enterLastNameExactlyAsAppearInID":"Enter your last name(s) exactly as it appears on your identity document","enterNameExactlyAsAppearInID":"Enter your first name(s) exactly as it appears on your identity document","enterNCharactersForExample":"Enter %{numChars} characters. For example, %{example}","enterNCharactersWithAMixForExample":"Enter %{numChars} characters, with a mix of letters and numbers. For example, %{example}","enterNDigitsAndThen1LetterForExample":"Enter %{numDigits} digits and then 1 letter. For example, %{example}","enterNDigitsForExample":"Enter %{numDigits} digits. For example, %{example}","enterNLettersAndThenXToYDigitsForExample":"Enter %{numLetters} letters and then %{minDigits} to %{maxDigits} digits. For example, %{example}","enterpriseNumber":"Enterprise Number","enterSettlorsFirstNameExactlyAsItAppearsInID":"Enter the settlor's first name(s) exactly as it appears on their identity document","enterSettlorsLastNameExactlyAsItAppearsInID":"Enter the settlor's last name(s) exactly as it appears on their identity document","enterTheDetailsYourself":"Enter the details yourself","enterTheRemainingNCharactersForExample":"Enter the remaining %{numChars} characters. For example, %{example}","enterTheRemainingNDigitsForExample":"Enter the remaining %{numDigits} digits. For example, %{example}","enterTheRemainingNDigitsThenXToYLettersForExample":"Enter the remaining %{numDigits} digits and then %{minLetters} to %{maxLetters} letters. For example, %{example}","enterTheRemainingXToYCharactersForExample":"Enter the remaining %{minChars} to %{maxChars} characters. For example, %{example}","enterTheRemainingXToYDigitsForExample":"Enter the remaining %{minDigits} to %{maxDigits} digits. For example, %{example}","enterThreeDifferingOptionsForExample":"Enter %{firstOption}, %{secondOption}, or %{thirdOption}. For example, %{firstExample}, %{secondExample}, or %{thirdExample}","enterXDigitsThenXToYLettersForExample":"Enter %{numDigits} digits and then %{minLetters} to %{maxLetters} letters. For example, %{example}","enterXOrYCharactersForExample":"Enter %{xChars} or %{yChars} characters. For example, %{example}","enterXOrYDigitsForExample":"Enter %{xDigits} or %{yDigits} digits. For example, %{example}","enterXToYCharactersForExample":"Enter %{minChars} to %{maxChars} characters. For example, %{example}","enterXToYCharactersWithAMixForExample":"Enter %{minChars} to %{maxChars} characters, with a mix of letters and numbers. For example, %{example}","enterXToYDigitsForExample":"Enter %{minDigits} to %{maxDigits} digits. For example, %{example}","enterXToYDigitsWithOrWithoutPrefixForExample":"Enter %{minDigits}-%{maxDigits} digits with or without a prefix. For example, %{firstExample} or %{secondExample}","entityDecisionMakers":"Entity decision-makers","entityEstablishingTrust":"The entity that establishes a trust.","entityType":"Entity type","errorMessage_1_10":"Information couldn't be verified","errorMessage_1_11":"Document didn't meet requirements","errorMessage_1_12":"Legal entity declined","errorMessage_1_30":"Individual details couldn't be verified","errorMessage_1_31":"ID document is needed","errorMessage_1_32":"ID document couldn't be processed","errorMessage_1_33":"ID document didn't meet requirements","errorMessage_1_34":"Image of the ID document didn't meet requirements","errorMessage_1_35":"Individual details didn't match the ID document","errorMessage_1_36":"Proof of residency didn't meet requirements","errorMessage_1_37":"Image of the proof of residency didn't meet the requirements","errorMessage_1_38":"Individual details didn't match the proof of residency","errorMessage_1_39":"Proof of national ID number didn't meet requirements","errorMessage_1_40":"Image of the proof of national ID number didn't meet the requirements","errorMessage_1_41":"Individual details didn't match the proof of national ID number","errorMessage_1_50":"Organization details couldn't be verified","errorMessage_1_51":"Organization details didn't match the document","errorMessage_1_52":"Registration document didn't meet requirements","errorMessage_1_53":"Tax document didn't meet requirements","errorMessage_1_54":"Proof of address didn't meet requirements","errorMessage_1_55":"Proof of ownership is needed","errorMessage_1_56":"Organization ownership couldn't be verified","errorMessage_1_57":"Submitted affiliation document didn't meet the requirements","errorMessage_1_58":"VAT document didn't meet requirements","errorMessage_1_60":"Legal entity details couldn't be verified","errorMessage_1_61":"Constitutional document didn't meet requirements","errorMessage_1_62":"Legal entity details didn't match the constitutional document","errorMessage_1_70":"Bank account couldn't be verified","errorMessage_1_71":"Bank account details couldn't be verified","errorMessage_1_72":"Verification could not be completed","errorMessage_1_73":"Bank account access could not be authenticated","errorMessage_1_74":"Bank statement is needed","errorMessage_1_75":"Bank statement didn't meet requirements","errorMessage_1_76":"Bank details didn't match the bank statement","errorMessage_1_77":"The entity is in pending status","errorMessage_1_81":"Signatory details didn't match proof of signatory.","errorMessage_1_82":"Proof of signatory didn't meet requirements.","errorMessage_1_83":"Signatory details couldn't be verified.","errorMessage_1_84":"Proof of director document missing","errorMessage_1_85":"Proof of director document didn't meet the requirements","errorMessage_1_86":"Director details didn't match with proof of director document","errorMessage_1_87":"Director details couldn't be verified","errorMessage_1_93":"Source of funds details couldn't be verified","errorMessage_1_94":"Proof of funds document didn't meet requirements","errorMessage_1_803":"Upload a proof of director document to legal entity","errorMessage_1_804":"Upload a different proof of director document","errorMessage_1_1000":"Verification failed. Legal entity declined","errorMessage_1_1001":"There were some technical issues in the verification process.","errorMessage_1_1002":"There are more questions about the submitted information.","errorMessage_1_1003":"The document contained sensitive data.","errorMessage_1_3000":"The user couldn't be verified.","errorMessage_1_3001":"The name and date of birth couldn't be verified.","errorMessage_1_3002":"The name and national ID number couldn't be verified.","errorMessage_1_3003":"The name and residence state couldn't be verified.","errorMessage_1_3004":"The name and residence country couldn't be verified.","errorMessage_1_3005":"The national ID number was entered incorrectly.","errorMessage_1_3006":"The name didn't match the national ID number.","errorMessage_1_3007":"An incorrect national ID number was entered.","errorMessage_1_3008":"The ID document image was incomplete.","errorMessage_1_3009":"The photo on the ID document couldn't be recognized.","errorMessage_1_3010":"The ID document image was incomplete or too blurry.","errorMessage_1_3011":"The ID document image was in black and white.","errorMessage_1_3012":"The image couldn't be recognized as a supported ID document.","errorMessage_1_3013":"The ID document wasn't a supported document type.","errorMessage_1_3014":"The ID document image didn't contain the MRZ code.","errorMessage_1_3015":"The ID document was expired.","errorMessage_1_3016":"The ID document image was of too low quality.","errorMessage_1_3017":"The ID document image was a scan.","errorMessage_1_3018":"The ID document image was too blurry.","errorMessage_1_3019":"The ID document was expired.","errorMessage_1_3020":"The ID document wasn't a supported document type.","errorMessage_1_3021":"The ID document MRZ code is unreadable.","errorMessage_1_3022":"The ID document image only showed one side of the ID document.","errorMessage_1_3023":"The ID document image only showed parts of the ID document.","errorMessage_1_3024":"The ID document wasn't valid.","errorMessage_1_3025":"The state didn't match the one on the ID document.","errorMessage_1_3026":"The ID document didn't show an issuing state.","errorMessage_1_3027":"The ID document wasn't valid.","errorMessage_1_3028":"The ID number didn't match the one on the document.","errorMessage_1_3029":"The ID document didn't show a document number.","errorMessage_1_3030":"The ID document wasn't valid.","errorMessage_1_3031":"The ID document wasn't valid.","errorMessage_1_3032":"The first name didn't match the one on the ID document.","errorMessage_1_3033":"The last name didn't match the one on the ID document.","errorMessage_1_3034":"The date of birth didn't match the one on the ID document.","errorMessage_1_3035":"The country didn't match the one on the ID document.","errorMessage_1_3036":"The ID document image was too low quality.","errorMessage_1_3037":"The last name didn't match the one on the proof of residential address.","errorMessage_1_3038":"The first name didn't match the one on the proof of residential address.","errorMessage_1_3039":"The date of birth didn't match the one on the proof of residential address.","errorMessage_1_3040":"The proof of residential address didn't show the date it was issued.","errorMessage_1_3041":"The proof of residential address didn't show a name.","errorMessage_1_3042":"The proof of residential address didn't show an issuing country.","errorMessage_1_3043":"The proof of residential address wasn't a supported document type.","errorMessage_1_3044":"The proof of residential address was too old.","errorMessage_1_3045":"The proof of residential address image was of too low quality.","errorMessage_1_3046":"The address on the proof of residential address was a PO Box.","errorMessage_1_3047":"The proof of national ID number wasn't a supported document type.","errorMessage_1_3048":"The last name didn't match the one on the proof of national ID number.","errorMessage_1_3049":"The first name didn't match the one on the proof of national ID number.","errorMessage_1_3050":"The date of birth didn't match the one on the proof of national ID number.","errorMessage_1_3051":"The proof of national ID number image was of too low quality.","errorMessage_1_3052":"An ID document is needed to verify the individual.","errorMessage_1_3062":"The name and 4 digit SSN couldn't be verified.","errorMessage_1_3072":"We found the following issues:\\n- The name and nationality couldn't be verified.\\nReview the information below and correct any mistakes, or upload an id document then resubmit.","errorMessage_1_3073":"We found the following issues:\\n- The ID document didn't show the nationality.\\nReview the information below and correct any mistakes, or upload an id document then resubmit.","errorMessage_1_3083":"Individual details didn't match the ID document","errorMessage_1_3088":"The residential address is a P.O. Box","errorMessage_1_3089":"The name and ID number couldn't be verified. Check if all data points were provided.","errorMessage_1_5000":"The legal business name couldn't be verified.","errorMessage_1_5001":"The tax ID number couldn't be verified.","errorMessage_1_5002":"The state couldn't be verified.","errorMessage_1_5003":"The legal name didn't match the one on the registry.","errorMessage_1_5004":"The legal name didn't match the one on the registry.","errorMessage_1_5005":"The legal name didn't match the one on the registry.","errorMessage_1_5006":"The country didn't match the one on the registry.","errorMessage_1_5007":"The registration number didn't match the one on the registry.","errorMessage_1_5008":"The tax ID didn't match the one on the registry.","errorMessage_1_5009":"The registration number was provided as tax ID.","errorMessage_1_5010":"The company details couldn't be verified. ","errorMessage_1_5011":"The trade name (doing business as) was entered.","errorMessage_1_5012":"The submitted company type didn't match the one on the registry.","errorMessage_1_5013":"The company was not found in the database.","errorMessage_1_5014":"The registration number couldn't be verified. ","errorMessage_1_5015":"The registration number didn't match the legal business name.","errorMessage_1_5016":"The tax ID number couldn't be verified.","errorMessage_1_5017":"The tax ID number didn't match the legal business name.","errorMessage_1_5018":"The business address couldn't be verified.","errorMessage_1_5019":"The trade name (doing business as) was entered instead of the legal name.","errorMessage_1_5020":"Registration document is missing.","errorMessage_1_5021":"The registration document was too low quality.","errorMessage_1_5022":"The registration document was too old.","errorMessage_1_5023":"The submitted company type didn't match the one on the registration document.","errorMessage_1_5024":"The registration document did not show the company type.","errorMessage_1_5025":"The address on the company registration document was a residential address.","errorMessage_1_5026":"The address on the company registration document was a PO Box.","errorMessage_1_5027":"The business address didn't match the one on the company registration document.","errorMessage_1_5028":"The registration number didn't match the one on the company registration document.","errorMessage_1_5029":"The legal business name didn't match the one on the company registration document.","errorMessage_1_5030":"The country didn't match the one on the company registration document.","errorMessage_1_5031":"The company registration document didn't show a legal business name.","errorMessage_1_5032":"The company registration document didn't show a registration number.","errorMessage_1_5033":"The state didn't match the one on the company registration document.","errorMessage_1_5034":"The company registration document wasn't a supported document type.","errorMessage_1_5035":"The company registration document is not supported.","errorMessage_1_5036":"Tax document is missing.","errorMessage_1_5037":"The country didn't match the one on the tax document.","errorMessage_1_5038":"The tax document wasn't a supported document type.","errorMessage_1_5039":"The tax document was too low quality.","errorMessage_1_5040":"The tax document was too old.","errorMessage_1_5041":"The legal name didn't match the one on the tax document.","errorMessage_1_5042":"The tax ID number didn't match the legal business name.","errorMessage_1_5043":"The tax document didn't show a tax ID number.","errorMessage_1_5044":"The tax document didn't show a legal business name.","errorMessage_1_5045":"The state didn't match the one on the proof of address.","errorMessage_1_5046":"Ownership data seems incorrect.","errorMessage_1_5047":"Ownership data seems to be missing.","errorMessage_1_5048":"Provide official ownership documentation.","errorMessage_1_5049":"The affiliation document was not sufficient to prove the 100% affiliation.","errorMessage_1_5050":"The affiliation document was not official.","errorMessage_1_5051":"Signing person on the affiliation document could not be verified","errorMessage_1_5052":"The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.","errorMessage_1_5053":"The affiliation document was not issued within the last 6 months","errorMessage_1_5054":"The VAT number couldn't be verified","errorMessage_1_5055":"VAT document is missing","errorMessage_1_5057":"The VAT document wasn't a supported document type","errorMessage_1_5064":"The VAT number didn't match the one on the registry.","errorMessage_1_5067":"The legal name didn't match the one on the VAT registry.","errorMessage_1_5072":"The registered city didn't match the one on the registry.","errorMessage_1_5084":"The date of incorporation couldn't be verified.","errorMessage_1_5093":"The business address details couldn’t be verified.","errorMessage_1_5095":"Japanese support phone number is required","errorMessage_1_5096":"Support phone number did not meet requirements","errorMessage_1_6000":"The legal name couldn't be verified.","errorMessage_1_6001":"The legal name didn't match the registration number.","errorMessage_1_6002":"The registration number couldn't be verified.","errorMessage_1_6003":"Legal entity type couldn't be verified.","errorMessage_1_6004":"The country of governing law couldn't be verified.","errorMessage_1_6005":"Constitutional document is missing.","errorMessage_1_6006":"The constitutional document was too old.","errorMessage_1_6007":"Legal name didn't match the constitutional document.","errorMessage_1_6008":"Country of governing law didn't match the constitutional document.","errorMessage_1_6009":"The constitutional document didn't show a legal name.","errorMessage_1_6010":"The constitutional document didn't show a registration number.","errorMessage_1_6011":"The legal entity type didn't match the one on the constitutional document.","errorMessage_1_6012":"The legal entity's state didn't match the one on the constitutional document.","errorMessage_1_6013":"The registered state couldn't be verified.","errorMessage_1_6014":"The submitted registered state didn't match the one on the registry.","errorMessage_1_6015":"The constitutional document contained sensitive data.","errorMessage_1_6016":"The constitutional document is not supported.","errorMessage_1_6017":"The constitutional document doesn't belong to the legal arrangement.","errorMessage_1_6018":"Legal entity was not found.","errorMessage_1_6019":"The constitutional document didn't show the date of issue.","errorMessage_1_6020":"The constitutional document didn't show a stamp/signature.","errorMessage_1_6021":"The image quality of the constitutional document was too low.","errorMessage_1_6022":"The registration number didn't match the one on the registry.","errorMessage_1_6023":"The legal entity name didn't match the one on the registry.","errorMessage_1_6024":"The trade name (doing business as) was entered instead of the legal entity name.","errorMessage_1_6025":"The legal entity name is incorrect.","errorMessage_1_6026":"The legal entity registration number did not match the one on the constitutional document.","errorMessage_1_6027":"The registered entity type is different","errorMessage_1_6028":"The constitutional document is not associated with a legal arrangement.","errorMessage_1_6029":"The constitutional document didn't show a stamp/signature.","errorMessage_1_6030":"The constitutional document didn't show the Settlor(s) details.","errorMessage_1_6031":"The constitutional document didn't show the Protector(s) details.","errorMessage_1_6032":"The constitutional document didn't show the Defined Beneficiary(ies) details.","errorMessage_1_6033":"The constitutional document didn't show the Undefined Beneficiary(ies) details.","errorMessage_1_6034":"The Secondary Trustee details didn't match the ones on the constitutional document.","errorMessage_1_6035":"The Settlor(s) details didn't match the one(s) on the constitutional document.","errorMessage_1_6036":"The Protector(s) details didn't match the one(s) on the constitutional document.","errorMessage_1_6037":"The Defined Beneficiary(ies) details didn't match the one(s) on the constitutional document.","errorMessage_1_6038":"The Undefined Beneficiary(ies) details didn't match the one(s) on the constitutional document.","errorMessage_1_6039":"The Secondary Trustee is missing.","errorMessage_1_6040":"The Protector(s) is/are missing.","errorMessage_1_6041":"The Secondary Trustee(s) is a natural person but an Organization is mentioned instead..","errorMessage_1_6042":"The Secondary Trustee(s) is an Organization but a natural person is mentioned instead..","errorMessage_1_6044":"The constitutional document didn't show the Secondary Partner(s) details..","errorMessage_1_6045":"The constitutional document didn't show the UBO(s) details.","errorMessage_1_6046":"The Secondary Partner(s) details didn't match the constitutional document.","errorMessage_1_6047":"The UBO(s) details didn't match the constitutional document.","errorMessage_1_6048":"The Secondary Partner(s) is a natural person but an Organization is mentioned instead.","errorMessage_1_6049":"The Secondary Partner(s) is an Organization but a natural person is mentioned instead.","errorMessage_1_7000":"The bank account couldn't be verified.","errorMessage_1_7001":"The routing number wasn't valid.","errorMessage_1_7002":"The bank account number wasn't valid.","errorMessage_1_7003":"The bank account couldn't be verified.","errorMessage_1_7004":"The bank account entered was invalid.","errorMessage_1_7005":"The verification code wasn't valid.","errorMessage_1_7006":"There were too many attempts to request the verification code.","errorMessage_1_7007":"The verification code wasn't entered.","errorMessage_1_7008":"There is no bank document to verify.","errorMessage_1_7009":"The bank document didn't show a bank account number.","errorMessage_1_7010":"The bank document didn't show the account owner name.","errorMessage_1_7011":"The bank account number didn't match the one on the bank document.","errorMessage_1_7012":"The bank account owner name appearing in the document does not match the verified legal name.","errorMessage_1_7013":"The bank document was too low quality.","errorMessage_1_7014":"The bank document wasn't a supported document type.","errorMessage_1_7015":"The bank account country didn't match the one on the bank document.","errorMessage_1_7016":"The branch code didn't match the one on the bank document.","errorMessage_1_7017":"The bank account currency didn't match the one on the bank document.","errorMessage_1_7018":"The bank document wasn't officially issued by the bank.","errorMessage_1_7019":"The bank document wasn't issued in the past 12 months.","errorMessage_1_7020":"The bank name didn't match the one on the bank document.","errorMessage_1_7021":"The bank document didn't show an official bank logo.","errorMessage_1_7022":"The bank document didn't show an official bank stamp.","errorMessage_1_7023":"Bank account couldn't be verified due to ownership mismatch","errorMessage_1_7024":"Bank account owner's name didn't match the legal entity's legal name","errorMessage_1_7025":"Bank account owner's name didn't match the individual's legal name","errorMessage_1_7026":"Bank account owner's name didn't match the legal arrangement's legal name","errorMessage_1_8000":"Proof of signatory was missing organization legalName.","errorMessage_1_8001":"Organization legalName did not match proof of signatory.","errorMessage_1_8002":"Signatory name was not found in proof of signatory.","errorMessage_1_8003":"Proof of signatory image was of too low quality.","errorMessage_1_8004":"Proof of signatory was too old.","errorMessage_1_8005":"Proof of signatory didn't show the date it was issued.","errorMessage_1_8006":"Proof of signatory provided is not supported.","errorMessage_1_8007":"The signatory couldn't be verified.","errorMessage_1_8008":"The signatory name didn't match the one on the registry.","errorMessage_1_8009":"Organization legal name is missing from the proof of director document.","errorMessage_1_8010":"Organization legal name is different with the one presented in the document.","errorMessage_1_8011":"Director name is missing from the proof of director document.","errorMessage_1_8012":"Director name is different with the one presented in the document.","errorMessage_1_8013":"Provided proof of director document is not supported.","errorMessage_1_8014":"Proof of director document was too old.","errorMessage_1_8015":"Proof of director image was of too low quality.","errorMessage_1_9009":"Proof of funds didn't match funding source type.","errorMessage_1_9010":"The legal business name didn't match the one shown on the proof of funds document.","errorMessage_1_9011":"The proof of funds document was too old.","errorMessage_1_9012":"The legal business name was not found in the proof of funds document.","errorMessage_2_902":"Terms Of Service forms are not accepted.","errorMessage_2_1101":"Further information is needed to verify your source of funds.","errorMessage_2_1102":"Some information related to the source of funds are still missing the proof of source of funds.","errorMessage_2_1103":"Proof of source of funds provided showing different source of funds type.","errorMessage_2_1110":"Some proof of source of funds didn't meet requirements.","errorMessage_2_1111":"Some proof of source of funds didn't seem to be owned by your business.","errorMessage_2_1112":"Some proof of source of funds are too old.","errorMessage_2_1113":"Some proof of source of funds didn't show a legal business name.","errorMessage_2_8019":"'individual.residentialAddress.street' was missing.","errorMessage_2_8020":"'individual.residentialAddress.city' was missing.","errorMessage_2_8021":"'individual.residentialAddress.postalCode' was missing.","errorMessage_2_8028":"'individual.birthData.dateOfBirth' was missing.","errorMessage_2_8036":"'bankAccount' was missing.","errorMessage_2_8043":"'organization.registrationNumber' was missing.","errorMessage_2_8045":"'organization.taxId' was missing.","errorMessage_2_8064":"UBO through ownership was missing.","errorMessage_2_8067":"Signatory was missing.","errorMessage_2_8069":"'organization.type' was missing.","errorMessage_2_8071":"'Identity document' was missing.","errorMessage_2_8086":"'organization.doingBusinessAs' was missing.","errorMessage_2_8107":"'Proof of residency' was missing.","errorMessage_2_8139":"'Proof of national ID number' was missing.","errorMessage_2_8140":"'Proof of address' was missing.","errorMessage_2_8141":"Registration document was missing.","errorMessage_2_8150":"'phone.number' was missing","errorMessage_2_8162":"proofOfOrganizationTaxInfo was missing.","errorMessage_2_8163":"'sourceOfFunds' was missing","errorMessage_2_8174":"'taxInformation' was missing.","errorMessage_2_8179":"'vatNumber' or 'vatAbsenceReason' was missing","errorMessage_2_8183":"'webAddress' was missing.","errorMessage_2_8184":"'taxReportingClassification' was missing.","errorMessage_2_8189":"UBO through control was missing.","errorMessage_2_8190":"'businessLine' was missing.","errorMessage_2_8191":"'businessLine' was missing.","errorMessage_2_8193":"Director was missing.","errorMessage_2_8196":"proofOfOwnership document to perform verification was missing.","errorMessage_2_8198":"Proof of industry to perform verification was missing","errorMessage_2_8202":"'organization.registeredAddress.postalCode' was missing.","errorMessage_2_8203":"organization.economicSector was missing","errorMessage_2_8204":"organization.globalLegalEntityIdentifier was missing","errorMessage_2_8209":"Proof of signatory was missing.","errorMessage_2_8210":"Live selfie was missing","errorMessage_2_8215":"'organization.registeredAddress.street' was missing.","errorMessage_2_8217":"'organization.registeredAddress.city' was missing.","errorMessage_2_8224":"Proof of funding or wealth source was missing.","errorMessage_2_8225":"Institutional sector was missing.","errorMessage_2_8226":"Legal form was missing.","errorMessage_2_8227":"Status of legal proceedings was missing.","errorMessage_2_8228":"Date of initiation of legal proceedings was missing.","errorMessage_2_8229":"Head office indicator was missing.","errorMessage_2_8231":"'businessLine' was missing.","errorMessage_2_8234":"'organization.countryOfGoverningLaw' was missing.","errorMessage_2_8236":"Proof of director was missing.","errorMessage_2_8238":"Financial report was missing.","errorMessage_2_8247":"'organization.support.email' was missing","errorMessage_2_8248":"'individual.support.email' was missing","errorMessage_2_8249":"'organization.support.phone.number' was missing","errorMessage_2_8250":"'individual.support.phone.number' was missing","errorMessage_3_10":"Review of data is required","errorSubmittingData":"Error submitting data","euVatNumber":"EU VAT number","exemptedFromTax":"Exempted from tax","expiryDate":"Expiry date","extractFromMunicipalPersonalRecordsDatabase":"Extract from Municipal Personal Records database","failedToDeletePayoutAccount":"Failed to delete payout account","failedToDownloadPci":"Failed to download PCI document(s)","failedToFetchRelevantDocuments":"Failed to fetch relevant documents","failedToFetchTrustDetails":"Failed to fetch the trust details","failedToFetchTrustMemberDetails":"Failed to fetch the trust member details","failedToUpdateDetails":"Failed to update details","fieldIsRequired":"Field is required","fieldMustContainAtLeast":"%{fieldName} must contain at least %{minLength} characters","fileName":"File name","financialInformation":"Financial information","financialReportingDate":"Financial reporting date","finish":"Finish","finishLater":"Finish later","firmenbuchnummer":"Firmenbuchnummer","firstName":"First name","firstName__JP":"First name (Romaji)","firstNameOfSettlor":"First name of settlor","formStepCompleted":"Form step completed","formStepInvalid":"Form step invalid","franchiseesTAndCs":"Franchisees T&C's","fundingSources":"Funding sources","gamblingEstablishmentWebsite":"Gambling establishment website","GEMI-number":"GEMI number or ΑΡΙΘΜΟΣ Γ.Ε.ΜΗ (Γενικού Εμπορικού Μητρώου)","gender":"Gender","getSetUpInstantly":"Get set up instantly","gettingStarted":"Get Started","getYourBusinessVerifiedDetails":"Get your business's verified details instantly and skip uploading documents.","getYourVerifiedDetailsInstantly":"Get your verified details instantly and skip uploading documents.","goBack":"Go back","goBackAndProvideDocumentScans":"Go back and provide document scans","goBackToTaskList":"Go back to task list","goToIntroduction":"How does it work?","goToOverview":"Go to overview","governmentIssuedCorrespondence":"Government-issued correspondence","grTaxId":"Αριθμός Φορολογικού Μητρώου Arithmós Forologikou Mētrṓou (ΑΦΜ)","gst":"Goods and Services Tax (GST) number","guardian":"guardian","guardianshipCertificate":"Guardianship certificate","handelsregisternummerOrVereinsregisternummer":"Handelsregisternummer or Vereinsregisternummer","hasDba":"Does your business use a DBA name?","hasDba__helperText":"A Doing Business As (DBA) name is a version of your business' name that may be more recognizable to shoppers but is different from the legal name.","helpUsVerifyCompany":"Help us verify this company.","hideDetails":"Hide details","hkid":"HKID Number","howWouldYouLikeToSetUpYourAccount":"How would you like to set up your account","howYourCustomersCanReachYou":"How your customers can reach you with questions or concerns. Contact details may be shown on shopper bank statements.","huRegistrationNumber":"Cégjegyzékszám","huRegistrationNumberForSoleProp":"Nyilvántartási szám","huTaxId":"Közösségi adószám","iban":"IBAN","ICO":"IČO (Identifikační číslo)","id":"ID","idDocument":"ID Document","idDocumentType":"Document type","identifikacionenNomerDDS":"VAT number (ДДС)","identityCard":"Identity card","identityCard__JP":"My Number Card / Seal Certificate","identityNumberExempt":"I don't have an identity number","identityNumberExempt__CA":"I don't have an SIN","identityNumberExempt__US":"I don't have an SSN","idNumber":"Identity number","iDoNotHaveCompanyRegistrationNumber":"I do not have a company registration number (CRN)","iDontHaveARegistrationNumber":"I don't have a registration number","iDontHaveATaxId":"I don't have a Tax ID","iDontHaveAVatNumber":"I don't have a VAT number","iDontHaveAWebsite":"I don't have a website","iDontKnow":"I don't know","idUploadDocumentSubtitle":"So that we can verify the identity of <strong>%{name}</strong>, we need to see their government issued ID. Choose the method most convenient to you.","idVerificationMethod":"Verification method","ifNoOwnersSpecifyControllingPersons":"If you don't have any owners holding 25% or more, then specify <strong>all controlling persons</strong>.","immediateParentCompany":"immediateParentCompany","incorporatedAssociationRegistrationNumber":"Incorporated association registration number","individual":"Individual","individualDetails":"Individual details","individualMember":"An individual","individualTrustee":"Individual trustee","individualTrusteeDetails":"Individual trustee details","industry":"Industry","industryCodesForm":"Industry","industryExemption":"The goods or services provided are exempt from VAT/GST","infoInUploadedDocumentIsTrue":"All information in the uploaded document must be true and up-to-date.","inheritanceAmount":"Inheritance amount","inheritanceReceivedOn":"Inheritance received on","inProgress":"In progress","instantVerification":"Instant verification","institutionNumber":"Institution number","internalCompanyDocument":"Internal company document","inTheNextStepWellCollectInformation":"To help make sure our services are being used safely and securely, we need to collect some information about the original source of the funds used with our financial products.","inThePreviousStepOwnedByAParentCompany":"In the previous step, you indicated that your business is owned by a parent company. We need to learn more about this company to continue.","invalidCapabilities":"Some capabilities are invalid.","invalidDateOfBirth":"Please enter a valid date of birth","invalidDateOfIncorporation":"Please enter a valid date of incorporation","invalidEmail":"Please enter a valid email","invalidFinancialReportingDate":"Please enter a valid reporting date","invalidFormat":"Invalid format","invalidFormatBankStatementDescription":"Please ensure your input contains solely letters, digits, currency codes, and the specified special characters: -._,:;'*!@#%()+?¿/「」","invalidFormatExpects":"Invalid format. Expected format: %{format}","invalidFormatForAuDriversLicenseNumber":"This isn't a valid Australian driver's license number. Expected format: 6-11 alphanumeric characters.","invalidFormatForAuPassportNumber":"This isn't a valid Australian passport number. Expected format: 1-2 letters followed by 7 numbers.","invalidFormatForHKDriversLicenseNumber":"Not valid for HK. Format should be: 8-character alphanumeric. For example: A1234567","invalidFormatForHKIdentityCardNumber":"Not valid for HK. Format should be: 8 or 9-character alphanumeric. For example: C668668A","invalidFormatForHKPassportNumber":"Not valid for HK. Format should be: 9-character alphanumeric. For example: K12345599","invalidFormatForNZDriversLicenseCardNumber":"Expected format should be: 3 digits","invalidFormatForNZDriversLicenseNumber":"Expected format should be: 2 characters, followed by 6 digits","invalidFormatForNZPassportNumber":"Expected format should be 8-9 alphanumeric characters. For example: PA094043.","invalidFormatIdentityNumberBR":"Please use the CFP format: XXX.XXX.XXX-XX","invalidFormatIdentityNumberCA":"Please use the SIN format: XXXXXXXXX","invalidFormatIdentityNumberDK":"Please use the CPR format: XXXXXX-XXXX","invalidFormatIdentityNumberES":"Please use the DNI format: L0000000J","invalidFormatIdentityNumberHK":"Not valid for HK. Format should be: 8 or 9-character alphanumeric. For example: C668668E","invalidFormatIdentityNumberIT":"Please use the Codice fiscale format: ABCDEF11B12A123O","invalidFormatIdentityNumberPL":"Please use the PESEL format: XXXXXXXXXXX","invalidFormatIdentityNumberRO":"Please use the CNP format: XXXXXXXXXXXXX","invalidFormatIdentityNumberSE":"Please use the Personnummer format: YYYYMMDD-XXXX or YYMMDD-XXXX","invalidFormatIdentityNumberSG":"Please use the NRIC format: S1234567A","invalidFormatIdentityNumberUS":"Please provide last 4 digits","invalidFormatIdentityNumberUS9":"Please use the SSN format: XXXXXXXXX","invalidInputError":"There was an invalid input error:","invalidNumberOfEmployees":"Please enter a valid number","invalidPhoneNumber":"Please enter a valid phone number","investor":"Investor","inviteDetails":"Invite details","irdNumber":"IRD number","isPartnershipOperationAddressSame":"Is there a different address for your partnership’s operations?","issuerState":"Issuing state","issuingService":"Payment cards (physical or virtual)","isThisPersonANomineeDirector":"Is this person a nominee director?","isThisPersonANomineeShareholder":"Is this person a nominee shareholder?","isTrustOperationAddressSame":"Is there a different address for your trust's operations?","jaHaniFirstName":"First name (Kanji)","jaHaniLastName":"Last name (Kanji)","jaHaniLegalCompanyName":"Business legal name (Kanji)","jaKanaFirstName":"First name (Katakana)","jaKanaLastName":"Last name (Katakana)","jaKanaLegalCompanyName":"Business legal name (Katakana)","japaneseCommercialDisclosure":"Japanese Commercial Disclosure","japaneseCommercialDisclosureWebpage":"Japanese Commercial Disclosure webpage","jobTitle":"Job title","justAMoment":"Just a moment...","justAMomentTakingLonger":"Just a moment, this is taking a bit longer than expected...","kaibemaksukohustuslaseNumber":"Käibemaksukohustuslase number","kanjiAddress":"Kanji address","kanjiAndKanaCharactersAreNotAllowed":"Kanji and Kana characters are not allowed, please only provide roman alphabets (A-Z, a-z) and symbols.","katakanaAddress":"Katakana address","krsNumber":"KRS number","last4DigitsOfSocialSecurityNumber":"Last 4 digits of Social Security Number (SSN)","lastName":"Last name","lastName__JP":"Last name (Romaji)","lastNameOfSettlor":"Last name of settlor","learnMore":"Learn more","leave":"Leave","leaveInstantVerification":"Leave instant verification?","leaveVerification":"Leave verification","legalCompanyName":"Business legal name","legalCompanyName__JP":"Business legal name (Romaji)","legalCompanyName__US":"Business legal name","legalEntityIdentifier":"Legal Entity Identifier (LEI)","legalForm":"Legal form","legalName":"Legal name","legalNameOfSoleProprietorship":"Legal name of sole proprietorship","legalOwnerOfProperty":"The legal owner of the property in trust.","legalProceedings":"Legal proceedings","legalProceedingsDate":"Start date of legal proceedings","legalRepresentative":"Legal representative","legalRepresentativeDetails":"Legal representative details","legalRepresentativeNeeded":"The user is underage, therefore a legal representative is needed.","licenceVersionNumber":"Licence version number","licenseCardNumber":"Card number","licenseNumber":"Driver license number","liRegistrationNumber":"Unternehmensnummer","listitemVoidedChequeBankLetterBankStatementOnline":"Voided cheque/Bank letter/Bank statement/Online banking environment","ltRegistrationNumber":"Įmonės kodas","luRegistrationNumber":"Numéro registre de commerce et des sociétés (RCS) or Registernummer","lvRegistrationNumber":"Komersanta reģistrācijas numurs (NBR)","lvTaxId":"Pievienotās vērtības nodokļa reģistrācijas numurs (PVN)","maintenanceModeMessage":"We're currently undergoing maintenance — please keep this page open until maintenance is complete to avoid losing unsaved changes.","manualUpload":"Manual upload","maximumFileSizeExceeded":"Maximum file size exceeded","MBO":"MBO","MBS":"Matični broj subjekta trgovačkog suda (MBS)","mcRegistrationNumber":"Numéro de RCI","mcRegistrationNumberSoleProp":"Numéro d'Identification Statistique (NIS)","meetingMinutes":"Minutes from a meeting of the partnership","Mehrwertsteuernummer":"Mehrwertsteuernummer (MwST), Numéro de TVA, Numero dell'imposta sul valore aggiunto (IVA), VAT number","memberDetails":"Member details","missingMultipleDecisionMakers":"You haven't added all required decision-makers","missingPhoneCountryCode":"Select a country code","missingRequiredDecisionMakers":"We don't yet have sufficient decision makers.","missingRequiredTrustMembers":"We don't yet have sufficient trust members.","momsregistreringsnummer":"Momsregistreringsnummer","momsregistreringsnummerCVR":"Momsregistreringsnummer (CVR)","mortgageStatement":"Mortgage statement","mustContain4Digits":"Must contain 4 digits. For example, 1234","mvanummer":"MVA-nummer","myinfoBusinessDetailsRetrieved":"Myinfo business details retrieved","myInfoBusinessYouCanGetVerifiedDetails":"With Myinfo business, you can get your business's verified details instantly and skip uploading documents.","myinfoDetailsRetrieved":"Myinfo details retrieved","myInfoYouCanGetVerifiedDetails":"With Myinfo, you can get your verified details instantly and skip uploading documents.","myName":"My name","mySoleProprietorName":"My sole proprietor name","nameMustContainLetters":"Name must contain letters. Check for typos and try again.","nameOfTrust":"Name of trust","nameOfTrustAgreement":"Name of trust agreement","national_identity_card":"National ID Card","nationalIdNumber":"National ID Number","nationalInsuranceNumber":"National Insurance Number (NINO)","nationality":"Nationality","needHelpYouCanAlwaysReachOutToCustomerSupport":"Need help? You can always reach out to customer support.","newEntityAlwaysEmpty":"We still need to create this entity.","next":"Next","nie":"NIE","NIF":"NIF (Número de Identificación Fiscal)","NIFdeIVA":"Número de Identificación a efectos de IVA (Impuesto sobre el Valor Añadido)","NIP":"Numer identyfikacji podatkowej (NIP)","NIPC":"NIPC (Número de Identificação de Pessoa Colectiva)","no":"No","noCategoriesAvailable":"No categories available.","noIdontKnow":"No, or I don't know","noIssuesFound":"No issues found.","nominee":"Nominee","none":"None","nric":"National Registration Identity Card (NRIC)","number":"Number","numberOfEmployees":"Number of employees","numerodeIVA":"Número de IVA","NumeroDeTVA":"Numéro de TVA intracommunautaire","numeroDIdentificationALATaxe":"Numéro d'identification à la taxe sur la valeur ajoutée","NZBN":"New Zealand Business Number (NZBN)","objectOfCharitableTrust":"Object of charitable trust","objectOfTrust":"Object of trust","oib":"OIB","ok":"OK","one":"One","onfido":"Onfido.","operationalAddress":"Operational address","operationalAddressHeader":"Additional address","operationalAddressIsNotSameItemName":"Yes, our headquarters are at a different location","operationalAddressIsSame":"Is there a different address for your company's main business operations?","operationalAddressIsSameItemName":"No, the registered address is where we operate","optional":"(optional)","organisasjonsnummer":"Organisasjonsnummer","organisationsnummer":"Organisationsnummer","organization":"Organization","organizationalChartAndSupportingDocument":"Organizational chart and supporting document","organizationsLegalName":"Organization's legal name","originatorType":"Originator type","other":"Other","otherAddressInformation":"Other address information","otherInformation":"Other information","otherOptions":"Other options","ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations":"Our financial services aren't available yet for partnerships and associations","owner":"Owner","ownerDescription":"Someone who owns 25% or more of the company (directly or indirectly)","parent":"parent","parentCompany":"Parent company","parentCompanyAddress":"Parent company address","parentCompanyInformation":"Parent company information","partitaIVA":"Partita IVA","partnership":"Partnership","partnershipAgreement":"Partnership agreement, constitution, or rules","partnershipIncorporated":"Incorporated partnership","partnershipIncorporatedDescription":"You and your partners have limited liability for business debts.","partnershipMemberDetails":"Partnership member details","partnershipOrAssociation":"Partnership or association","partnershipUnincorporated":"Unincorporated partnership","partnershipUnincorporatedDescription":"You or your partners are personally liable for business debts.","passport":"Passport","passportExpiryDate":"Passport expiry date","passportNumber":"Passport number","payinAccount":"Payin account","payinAccountsDescription":"To complete your account, let us know where to send your payins.","payinDetails":"Payin details","paymentProcessing":"Payment processing","paymentProcessingTerms":"Payment Processing Terms","paymentService":"Accepting Payments","payoutAccount":"Payout account","payoutAccountsDescription":"To set up your account, let us know where to send your payouts.","payoutAccountsDescriptionReview":"In order to ensure that your payout data is accurate, please verify the following details.","payoutBankAccounts":"Payout bank accounts","payoutCountryDetails":"Payout country details","payoutDetails":"Payout details","pccr":"PCCR","pciDoesNotNeedSigningOrHasBeenSigned":"Payment Card Industry Data Security Standards (PCI DSS) self-service questionnaire does not need signing or has already been signed","pciDssQuestionnaire":"PCI DSS questionnaire","PDVIdBrojOIB":"PDV Id. Broj OIB","pendingCapabilities":"Some capabilities are still pending.","pendingStatusError":"There is an error with a pending status.","personalDetails":"Personal details","personAppointmentUnderTrustInstrument":"The person appointed under the trust instrument to direct or restrain the trustees in relation to their administration of the trust.","personnummer":"Personnummer","peselNumber":"PESEL number","phoneNumber":"Phone number","phoneNumberPrefix":"Phone number prefix","placeOfBirth":"Place of birth","pleaseEnsureTheFollowing":"Please ensure the following section is fulfilled to complete the review of your data.","pleaseEnterAPhoneNumberPrefixedWithCountryCode":"Please enter a phone number prefixed with a country code e.g. %{defaultPrefix}.","pleaseEnterAValidAmount":"Please enter a valid amount.","pleaseEnterAValidNumber":"Please enter a valid number.","pleaseEnterAValidWholeNumber":"Please enter a valid whole number.","pleaseNote":"Please note:","pleaseProvideThePurposeOfCharitableTrust":"Please provide the purpose of your charitable trust","pleaseUseOnlyNumbersAndDashes":"Please use only numbers and dashes e.g. 5-27 or 2-1-3","poBox":"PO Box","postalCode":"Postal code","poweredBy":"Powered by","prefecture":"Prefecture","preferNotToSay":"Prefer not to say","preferredCurrency":"Preferred currency code","previous":"Previous","primaryPartner":"Primary partner","primaryPartnerDetails":"Primary partner details","privacyPolicy":"Privacy Policy","privacyStatement":"Privacy Statement.","processing":"Processing","progress":"Progress","proofOfAddress":"Proof of address","proofOfDirector":"Proof of director","proofOfDirectorFormName":"Proof of director","proofOfFundingOrWealthSource":"Proof of funding or wealth source","proofOfIdentityCard":"Proof of identity card","proofOfNationalId":"Proof of national ID","proofOfNationalIdNumber":"Proof of national ID number","proofOfOrganizationTaxInfo":"Proof of organization tax information","proofOfOwnership":"Proof of ownership","proofOfOwnershipFormName":"Proof of ownership","proofOfRelationship":"Proof of relationship","proofOfResidency":"Proof of residency","proofOfSignatory":"Proof of signatory","proofOfSignatoryFormName":"Proof of signatory","propertyDescription":"Property description","protector":"Protector","provideAllBeneficiaries":"Add <strong>all beneficiaries</strong>.","provideAllDirectors":"Add <strong>all directors</strong>. You should have at least 1 director.","provideAllOwners":"Add <strong>all owners</strong> holding 25% or more of your company.","provideAllRequiredDetails":"Provide all required details","provideAllTrustees":"Add <strong>all trustees</strong>.","provideAtLeastOneProtector":"Add <strong>all protectors</strong> if there are any.","provideAtLeastOneSecondaryPartner":"Add at least <strong>1 secondary partner</strong>.","provideAtLeastOneSettlor":"Add at least <strong>1 settlor</strong>.","provideAtLeastOneSignatory":"Add at least <strong>1 signatory</strong>.","provideFewDetailsAboutYourself":"Provide a few details about yourself.","provideOneControllingPerson":"Add <strong>1 controlling person</strong>.","providePersonalAddress":"Provide personal address","provinceOrTerritory":"Province or territory","publicTradingTrust":"Public trading trust","PVMmoketojoKodas":"PVM mokėtojo kodas","reason":"Reason","reasonForFillingCompanyAddressDetails":"We have to make sure the businesses using our services will not be misusing the funds or causing harm. To do that, we'll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.","reasonForFillingIndividualAddressDetails":"We have to make sure that everyone who uses our services is who they say they are. To do that, we'll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.","region":"Region","registeredAddress":"Registered address","registrationAddress":"Registration address","registrationDetails":"Registration details","registrationNumber":"Registration number","registrationNumber__helperText__US":"This helps us better identify and verify your business.","registrationNumber__nonProfit__FR":"SIRET or RNA","registrationNumber__US":"State registration number","registrikood":"Registrikood","regon":"REGON","regonKrsNumber":"REGON / KRS number","relationship":"Relationship","relationshipTo":"Relationship to %{firstName} %{lastName}","reloadPage":"Reload page","remediationMessage_1_100":"No remediation possible","remediationMessage_1_101":"Contact Support","remediationMessage_1_102":"Upload a different document","remediationMessage_1_300":"Update individual details","remediationMessage_1_301":"Upload an ID document","remediationMessage_1_302":"Upload a different ID document","remediationMessage_1_303":"Upload a different image of the ID document","remediationMessage_1_304":"Upload proof of residency","remediationMessage_1_305":"Upload a different proof of residency","remediationMessage_1_306":"Upload a different image of the proof of residency","remediationMessage_1_307":"Upload a proof of national ID number","remediationMessage_1_308":"Upload a different proof of national ID number","remediationMessage_1_309":"Upload a different image of the proof of national ID number","remediationMessage_1_316":"Provide complete 9-digits Social Security Number or upload an ID document if you don't have SSN.","remediationMessage_1_319":"Update individual details","remediationMessage_1_320":"Upload proof of residency","remediationMessage_1_321":"Update the residential address","remediationMessage_1_500":"Update organization details","remediationMessage_1_501":"Upload a registration document","remediationMessage_1_502":"Upload a different registration document","remediationMessage_1_503":"Upload a tax document","remediationMessage_1_504":"Upload a different tax document","remediationMessage_1_505":"Upload a proof of address","remediationMessage_1_506":"Upload a different proof of address","remediationMessage_1_507":"Update organization ownership details","remediationMessage_1_508":"Upload a proof of ownership","remediationMessage_1_509":"Upload a different affiliation document","remediationMessage_1_510":"Ensure signing person has the rights to represent the organization or is a listed professional member (lawyer, accountant) in your country of business and upload the right document","remediationMessage_1_511":"Upload a document that proves the payout entity is 100% affiliated with the legal entity","remediationMessage_1_512":"Upload a VAT document","remediationMessage_1_513":"Upload a different VAT document","remediationMessage_1_519":"Update source of funds","remediationMessage_1_521":"Upload a different proof of source of funds","remediationMessage_1_524":"Make sure the registered business address is correct, and that the principal place of business address is a physical, non-PO Box address.","remediationMessage_1_600":"Update legal entity details","remediationMessage_1_601":"Upload a constitutional document","remediationMessage_1_602":"Upload a different constitutional document","remediationMessage_1_603":"Update member details","remediationMessage_1_700":"Update bank account details","remediationMessage_1_701":"Use different bank account","remediationMessage_1_702":"Use other means of bank account verification","remediationMessage_1_703":"Upload a bank statement","remediationMessage_1_704":"Upload a different bank statement","remediationMessage_1_705":"Upload an official bank statement","remediationMessage_1_800":"Upload a proof of signatory.","remediationMessage_1_801":"Upload a different proof of signatory.","remediationMessage_1_802":"Update signatory details.","remediationMessage_1_803":"Upload a proof of director document to legal entity","remediationMessage_1_804":"Upload a different proof of director document","remediationMessage_1_805":"Update director details","remediationMessage_1_900":"Upload a proof of industry","remediationMessage_2_106":"Add 'individual.residentialAddress.street' to legal entity","remediationMessage_2_107":"Add 'individual.residentialAddress.city' to legal entity","remediationMessage_2_108":"Add 'individual.residentialAddress.postalCode' to legal entity","remediationMessage_2_112":"Add 'individual.birthData.dateOfBirth' to legal entity","remediationMessage_2_115":"Add bank account","remediationMessage_2_117":"Add 'organization.registrationNumber' to legal entity.","remediationMessage_2_118":"Add 'organization.taxId' to legal entity.","remediationMessage_2_123":"We need to know about all beneficial owners who own at least 25% of the business.","remediationMessage_2_124":"We need to know about at least one signatory who can sign contracts on behalf of the business.","remediationMessage_2_125":"Add 'organization.type' to legal entity.","remediationMessage_2_133":"Add 'organization.doingBusinessAs' to legal entity.","remediationMessage_2_136":"Add business line","remediationMessage_2_151":"We need to know about at least one beneficial owner who controls the strategic direction of the business.","remediationMessage_2_153":"Add 'phone.number' to legal entity","remediationMessage_2_158":"Provide a VAT number or exemption reason.","remediationMessage_2_159":"Add source of funds to business line","remediationMessage_2_170":"Add tax information to legal entity.","remediationMessage_2_178":"Add 'webAddress' to business line.","remediationMessage_2_179":"Add 'taxReportingClassification' to legal entity.","remediationMessage_2_184":"Add constitutional document for verification to legal entity.","remediationMessage_2_185":"We need to know about at least one director appointed to oversee the business.","remediationMessage_2_188":"Add proofOfOwnership document document for verification to legal entity","remediationMessage_2_194":"Add 'organization.registeredAddress.postalCode' to legal entity.","remediationMessage_2_206":"Add 'organization.registeredAddress.street' to legal entity.","remediationMessage_2_208":"Add 'organization.registeredAddress.city' to legal entity.","remediationMessage_2_214":"Upload a proof of funding or wealth source....","remediationMessage_2_215":"Upload a live selfie","remediationMessage_2_222":"Upload a proof of relationship to individual","remediationMessage_2_223":"Add 'organization.countryOfGoverningLaw' to legal entity","remediationMessage_2_225":"Add financial report to legal entity.","remediationMessage_2_234":"Add 'organization.support.email' to legal entity","remediationMessage_2_235":"Add 'individual.support.email' to legal entity","remediationMessage_2_236":"Add 'organization.support.phone.number' to legal entity","remediationMessage_2_237":"Add 'individual.support.email' to legal entity","remediationMessage_2_243":"Add a valid Japanese support phone number to legal entity.","remediationMessage_2_902":"Accept TOS","remediationMessage_3_100":"Check the above information, then click here to confirm.","remove":"Remove","removeDecisionMaker":"remove %{decisionMaker}","removing":"Removing...","reportedValue":"Reported value","reportingCurrency":"Reporting currency","requirements":"Requirements:","requiresBusinessLine":"Requires business lines","requiresDecisionMakers":"Requires decision-makers","requiresSignatory":"Requires signatory","residence_permit":"Residence permit","residencyCountry":"Country/region of residence","residentialAddress":"Residential address","retrieveMyInfo":"Retrieve Myinfo","retrieveMyInfoBusiness":"Retrieve Myinfo business","reviewAndSignLegalDisclosures":"Review and sign legal disclosures","reviewTheInformationBelowAndCorrectMistakesOr":"Review the information below and correct any mistakes, or","RFC":"RFC","rnaNumber":"RNA number","role":"Role","roleAndEntityType":"Role and entity type","roles":"Roles","romajiAddress":"Rōmaji address","rootLegalEntityIsEmpty":"The root legal entity only has the minimum data (is empty).","roRegNumberNewFormat":"New format (F201200092840314)","roRegNumberNewFormat_label":"Numărul de înregistrare la Registrul Comerțului (issued after July 26, 2024)","roRegNumberNewFormat_maskGuidance":"Enter the following: J, F, or C + 13 digits. For example, J2025123456000","roRegNumberOldFormat":"Old format (J40/8302/1997)","roRegNumberOldFormat_label":"Număr de ordine din Registrul Comerțului","roRegNumberOldFormat_maskGuidance":"Enter the following: J, F, or C + 1-2 digits + '/' + 1-9 digits + '/' + 4 digits. For example, J40/8302/1997","routingNumber":"Routing number","rsinNumber":"RSIN","salarySlip":"Salary slip","saleAmount":"Sale amount","salesChannels":"Sales channels","sameAsRegisteredAddress":"Same as registered business address","sameNameAsLegalName":"Same as legal name of the company","save":"Save","saveAndGoToOverview":"Save and go to overview","scta":"Specified Commercial Transactions Act","search":"Search","searchAddress":"Search address","secondaryPartner":"Secondary partner","secondaryPartnerGuideDescription":"Secondary partners are additional partners that are responsible for the day-to-day management of the partnership (often general partners).","secondaryTrustee":"Secondary trustee","select":"Select","selectAllTheRolesThatThisDecisionMakerHolds":"Select all the roles that this decision-maker holds.","selectASourceOfFunding":"Select the main source of funding %{type}","selectCountryRegion":"Select a country/region","selectDocument":"Select a document","selectDocumentType":"Select document type","selectOne":"Select one","selectProvinceOrTerritory":"Select a province or territory","selectState":"Select a state","selectTheApplicableRoles":"Select the applicable role(s)","sender":"Sender","sessionTimeout":"Session timeout","settlor":"Settlor","settlorExemptionReason":"Settlor exemption reasons","setUpYourAccount":"Set up your account","showDetails":"Show details","showOnMap":"Show on map","sign":"Sign","signatory":"Signatory","signatoryDescription":"Authorized to sign contracts on behalf of the company","signatoryQuestion":"Does this person have the authority to sign contracts and other official documents on behalf of the business?","signatorySummaryLabel":"Can sign contracts and agreements on behalf of the business.","signed":"Signed","signPciFirst":"Sign PCI DSS questionnaire first","signServiceAgreement":"Sign services agreement","siRegistrationNumber":"Matična številka","siret":"SIRET","siTaxId":"Identifikacijska številka za DDV (ID za DDV)","skip":"Skip","skRegistrationNumber":"Identifikačné číslo (IČO)","skTaxId":"Identifikačné číslo pre daň z pridanej hodnoty (IČ DPH)","socialInsuranceNumber":"Social Insurance Number (SIN)","socialSecurityNumber":"Social Security Number (SSN)","socialSecurityNumber__placeholder":"123-45-6789","sofTypeAdyenLabel":"Transactions on this platform","solePropDetails":"Sole proprietor details","soleProprietorDetails":"Sole proprietor details","soleProprietorship":"Sole proprietorship","soleProprietorshipDetails":"Sole proprietorship details","someInformationWillNotBeSaved":"Some information that you entered previously will not be saved. ","sorryAnErrorOccurred":"We are sorry, an error has occurred","sorryWeCantSetUpAnAccountForYou":"Sorry, we can't set up an account for you","sortCode":"Sort code","sourceOfFunds":"Source of funds","SSM":"Suruhanjaya Syarikat Malaysia (SSM)","ssn":"SSN","SST":"Sales and Service Tax (SST)","stamregister":"Stamregister erhverv (SE-nummer)","start":"Start","startANewSessionFromTheSamePlaceYouOriginallyAccessed":"Start a new session from the same place you originally accessed this page.","startVerification":"Start verification","state":"State","stateIssuedProofOfIdentityCard":"State-issued proof of identity card","stateOrProvince":"State or province","stateOrProvince__placeHolder":"Select a state or province","stateOrProvince__placeHolder__US":"Select one...","stateOrProvince__US__business":"In which state is your business registered?","status":"Status","stepsX/YofForm":"Step %{activeFormIndex}/ %{totalForms} of %{taskNameTranslated}","stockExchangeMIC":"Market Identifier Code (MIC)","stockISIN":"International Securities Identification Number (ISIN)","stockTickerSymbol":"Stock ticker symbol","street":"Street","submit":"Submit","submitFailed":"Submit failed","submitReview":"Submit review","submitReviewOfYourData":"Submit review of your data","submitSuccessful":"Submit successful","successfullyUpdatedDetails":"Successfully updated details","summary":"Summary","summaryDescription":"Take a moment to make sure everything is correct before submitting.","summaryLegalCaption":"By submitting this summary you are confirming the following; I confirm (on behalf of the company that I am authorized to represent), that the information and supporting documentation provided during this KYC process is accurate and up-to-date, and therefore correctly represents the current state of affairs.","summaryTaxExemptionLegalCaption_1":"If the above entity(ies) register for VAT, or if there is any change to the VAT number, you will provide Adyen with the relevant number(s) without delay.","summaryTaxExemptionLegalCaption_2":"If a VAT/GST number is not provided or if it is not valid, Adyen reserves the right to apply VAT/GST as prescribed by law, which may not be recoverable for the merchant's business.","summaryTaxExemptionLegalCaption_3":"You are an authorized representative and signatory on behalf of the legal entity for which the VAT information was provided.","summaryTaxExemptionLegalCaptionTitle":"You have stated you are exempt from VAT/GST, therefore you agree that:","supportingDocument":"Supporting document","swiftCode":"Swift code","takeOrUploadAPhoto":"Use a photo or scan of an ID document to capture and automatically fill personal details combined with faster, secure identity verification by our trusted partner,","task":"Task","taxationDocument":"Taxation document","taxDocument":"Tax document","taxFiling":"Tax filing","taxFiling__US":"Tax filing such as Schedule SE (Form 1040)","taxId":"Tax ID","taxIdentificationNumber":"Tax identification number","taxInformationNumber":"Tax Identification Number","taxInformationNumber__AT":"Steuernummer","taxInformationNumber__BE":"Business nummer","taxInformationNumber__BE_Individual":"Numéro National","taxInformationNumber__CY":"Tax Identification Code (TIC)","taxInformationNumber__DE":"Steuernummer","taxInformationNumber__DE_Individual":"Persönliche Identifikatiosnummer (IdNr)","taxInformationNumber__ES":"Documento Nacional de Identidad (DNI)","taxInformationNumber__ET_Individual":"Isikukood","taxInformationNumber__FI":"Henkilötunnus","taxInformationNumber__FR":"Numéro SPI","taxInformationNumber__GR":"AFM","taxInformationNumber__HK":"Business Registration number (BRN)","taxInformationNumber__HR":"OIB","taxInformationNumber__IE":"Personal Public Service Number","taxInformationNumber__IE_Individual":"Personal Public Service Number","taxInformationNumber__IT":"Codice fiscale","taxInformationNumber__JP":"Corporate Number","taxInformationNumber__LT":"Asmens kodas","taxInformationNumber__LU_Individual":"National identification number","taxInformationNumber__LU_Org":"Matricule fiscal (CCSS) / Numéro d'identification","taxInformationNumber__LV":"Personas kods","taxInformationNumber__MT_Individual":"Identity card number or unique taxpayer reference number (Maltese nationals)","taxInformationNumber__MT_NRU_Individual":"NRU (Non-Maltese nationals)","taxInformationNumber__MT_Org":"Income Tax Registration Number","taxInformationNumber__PT":"Numéro ID Civil","taxInformationNumber__SI_Individual":"SI tax number","taxInformationNumber__SI_Org":"Davčna številka","taxInformationNumber__SK_Individual":"Rodne Cislo","taxInformationNumber__SK_Org":"Daňové identifikačné číslo (DIČ)","taxInformationNumber__US":"Employer Identification Number (EIN)","taxpayerReferenceNumber":"Taxpayer reference number","taxReferenceNumber":"Tax reference number","taxReporting":"Tax reporting","taxReportingClassification":"Tax reporting classification","tellUsMoreAboutPrimaryPartner":"Tell us about a primary partner in the partnership","tellUsMoreAboutThisSource":"Tell us more about this source","termsOfService":"Terms of Service","the7CharacterIdentifierAssignedToThis":"The 7-character identifier assigned to this company by the Sistema di Interscambio (SDI) for electronic invoicing in Italy. For example, %{example}","theCompanyIWorkFor":"The company I work for","theDocumentTypeYouUploadedIsNotSupported":"The document type you uploaded is not supported. Use a valid document to continue.","theDocumentYouUploadedIsExpired":"The document you uploaded is expired. Use a valid document to continue.","thenResubmit":"then resubmit.","thereWasAnErrorTryAgain":"There was an error, please try again.","thisActionCantBeUndone":"This action can't be undone","thisActionIsPermanent":"This action is permanent and can’t be undone.","thisCompanyDoesntHaveAnSDI":"This company doesn't have an SDI code","thisPageIsNowInactive":"This page is now inactive","thisPageIsntLoading":"This page isn't loading","thisSessionWillExpireIn":"This session will expire in %{timeUntilExpiry}. Continue working to avoid losing any unsaved data.","toggleAssociationMenu":"toggle menu of %{name} ","toHelpTheGovernmentFight":"To help the government fight the funding of terrorism and money laundering activities, Federal law requires financial institutions to obtain, verify, and record information that identifies each person (individual or entity) who opens an account and certain individuals who are associated with an account.","tooManyFiles":"Too many files","toProtectYourInformationThisSessionHasExpired":"To protect your information, this session has expired and the page is now inactive. Start a new session from the same place you originally accessed this page.","totalAmountWon":"Total amount won","tradeRegistryDocument":"Trade registry document","tradingName":"Trading name","transferInstrumentDeleted":"Transfer instrument deleted","transferInstrumentLimitHasAlreadyBeenMet":"Transfer instrument limit has already been met","transitNumber":"Transit number","trnNumber":"TRN","trust":"Trust","trustDeed":"Trust deed","trustDetails":"Trust details","trustDetailsDescription":"To prepare your account, we need information about your trust.","trustee":"Trustee","trusteePersonalDetails":"Trustee personal details","trustInstrument":"Trust instrument","trustMemberDetails":"Trust member details","trustMembers":"Trust members","trustPartnershipOrAssociation":"Trust, partnership, or association","tryAgain":"Try again","tryAgainOrContinueEnteringTheDetailsYourself":"Try again, or continue entering the details yourself.","typeOfIdentity":"Type of identity","typeOfTrustAgreement":"Type of trust agreement","uboQuestionnaireDescription":"This is important because it is a regulatory requirement to keep your business safe and will tell us what kind of information we need to collect in the next steps.","uboThroughControl":"uboThroughControl","uboThroughOwnership":"uboThroughOwnership","uen":"Unique Entity Number (UEN)","ultimateParentCompany":"Ultimate parent company","ultimateParentCompanyAddress":"Ultimate parent company address","ultimateParentCompanyInformation":"Ultimate parent company information","unableToVerifyTheIdNumber":"Unable to verify the Id number for the given country","undefinedBeneficiary":"Undefined beneficiary","undefinedBeneficiaryDescription":"A class or group of beneficiaries that is not named, but defined in an ascertainable manner in the trust deed.","unincorporatedDetails":"Unincorporated partnership details","unincorporatedPartnership":"Unincorporated Partnership","unincorporatedPartnershipMembers":"Unincorporated partnership members","uniqueIdentificationCode":"Unique identification code (ЕИК/UIC)","unknown":"Unknown","unsavedChanges":"Are you sure you want to leave?","unsavedChangesDescription":"If you leave, any changes made to the information in this form will be lost.","unsupportedFiletype":"Unsupported filetype","update":"Update","uploadDocumentForNric":"Upload an ID document instead of NRIC","uploadedDate":"Uploaded date","uploadedOn":"Uploaded on %{date}","uploadOneOfTheseDocuments":"Upload one of these documents:","uploadTheFollowingDocuments":"Upload the following documents:","useFiguresFromTheMostRecentYearAvailable":"Use figures from the most recent year available","UST-ID":"UST-ID (Umsatzsteuer-Identifikationsnummer)","USt-IdNr":"USt-IdNr. (Umsatzsteuer-Identifikationsnummer)","utilityBill":"Utility bill","utr":"Unique Taxpayer Reference (UTR)","validationPleaseEnterAValidBusinessRegistrationNumberWithFormat":"Please enter a valid business registration number. For example, %{example} ","validationPleaseEnterAValidEINWithFormat":"Please enter a valid EIN. Expected format: %{format}","validationPleaseEnterAValidIdNumberWithExample":"Please enter a valid %{idType}. For example, %{example}","validationPleaseEnterAValidStockISIN":"Please enter a valid ISIN. For example, %{example}","validationPleaseEnterAValidUrl":"Please enter a valid URL","validationUrlMustStartWithHttpOrHttps":"URL must start with http:// or https://","vatAbsenceReason":"VAT number absence reason","vatDocument":"VAT document","vatNumber":"VAT number","vatNummerMomsregistreringsnummerOrMomsnummer":"VAT-nummer, Momsregistreringsnummer, or Momsnummer","vatRegistrationNumber":"VAT registration number","verificationErrorMessage":"Some information couldn't be verified. Click to see what needs to be adjusted.","verificationErrorMessageTrustedTransferInstrument":"Your bank account couldn’t be added. Delete it and try again or add a different account.","verificationMethod":"Verification method","verifiedAccountHolder":"Verified account holder","verifiedCurrencyCode":"Verified currency code","verifyWith":"Verify with","weAccept":"We accept:","website":"Website","weCouldNotReachOnfido":"We could not reach Onfido. Try again in few seconds.","weCouldntConnectToMyinfo":"We couldn't connect to Myinfo","weCouldntConnectToMyinfoBusiness":"We couldn't connect to Myinfo Business","weDetected":"We detected","weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_":"We don’t accept documents or information about anyone younger than %{minimumOnboardingAge} years old.","weDontSupportOnboardingInCountry":"We don't support onboarding in %{country}. To find out more, reach out to customer support.","weFoundTheFollowingIssues":"We found the following issues:","whatBestDescribesYourBusinessSetup":"What best describes your business setup?","whatDoesThisMean":"What does this mean?","whatIsTheDifferenceBetweenTheseRoles":"What is the difference between these roles?","whatTypeOfEntityIsPartner":"What type of entity is this partner?","whatTypeOfPartnershipAreYou":"What type of entity is the first (primary) partner?","whatTypeOfPartnershipAreYouGuidance":"We'll start by collecting information about one partner. You will be asked to provide details about all other partnership members later.","whatTypeOfTrusteeAreYou":"What type of trustee are you?","whatTypeOfYourMembersEntity":"What's the type of your member's entity?","whichLegalArrangementDoesYourBusinessHave":"Which legal arrangement does your business have?","whichOfTheseApplyToTheSettlor":"Which of these apply to the settlor? Select all that apply.","whichTaxpayerIdentificationNumberDoYouUse":"Which taxpayer identification number do you use?","whichTypeOfIdNumberDoYouHave":"Which type of identification number do you have?","whichTypeOfRegistrationNumberDoYouHave":"Which type of registration number do you have?","whichTypeOfTaxIdNumberDoYouHave":"What type of tax ID do you use?","whyDoINeedToFillInThisInformation":"Why do I need to fill in this information?","xMinutes":"%{minutes} minutes","xMinutesAndYSeconds":"%{minutes} and %{seconds}","xSeconds":"%{seconds} seconds","yes":"Yes","yesChange":"Yes, change","youAlsoHaveToUploadSomeSupportingDocuments":"You'll also have to upload some supporting documents.","youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation":"You're an individual or company, and you use a bank account in the name of a partnership, or association.","youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation":"You're an individual or company, and you use a bank account in the name of a trust, partnership, or association.","youAreNotSoleProprietorAndUseBankAccount":"You're not a registered sole proprietor, and you use a bank account in your name.","youAreRegisteredSoleProprietorAndUseBankAccount":"You're a registered sole proprietor, and you use a bank account in your name or sole proprietorship's name.","youAreTrusteeManagingTheTrustForBeneficiaries":"You're a trustee managing the trust for beneficiaries.","youEntered":"You entered","youMustXYearsOldToContinue":"You must be at least %{minimumAge} years old to continue","yourAssociationIsRegisteredItWasSetUpForNonCommercialPurpose":"Your association is registered. It was set up for recreational, cultural, or non-profit purposes.","yourBusiness":"Your business information","yourBusinessIsRegisteredAsASeparateLegalEntityFromItsOwners":"Your business is registered as a separate legal entity from its owners.","yourBusinesssDetailsArePreFilledInTheRelevantSections":"Your business's details are pre-filled in the relevant sections.","yourBusinessSetup":"Your business setup: %{businessSetup}","yourDetailsArePreFilledInTheRelevantSections":"Your details are pre-filled in the relevant sections.","yourIbanShouldBeginWith_":"Your IBAN should begin with %{countryCode}.","yourRelationshipToDecedent":"Your relationship to the decedent","yourRelationshipToDonor":"Your relationship to the donor","yourRelationshipToOrganization":"Your relationship to the organization","YTunnus":"Y-TUNNUS","zentralesVereinsregisterId":"Zentrales Vereinsregister ID","zipCode":"ZIP code"}`),Ln=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),be="en-US",Vt=Ls,Xa=Object.freeze(["debug","info","log","warn","error","trace"]),Qa=/%([soOc]|(\.\d)?[dif])/,re=()=>{const t={};return Xa.forEach(e=>{t[e]=(n,...r)=>{console[e]&&(Qa.test(n)?console[e](`${n}`,...r):console[e](n,...r))}}),t};let Fs,Tn;const Ja=re(),Us=t=>{Fs=t},Bs=t=>{Tn=t},Vs=()=>Fs,Fn=async()=>{let t=!1;if(!Tn)throw Error("Not able to extend session, handler not provided. Make sure to provide getSdkToken handler");try{const{token:e}=await Tn();if(!e)throw Error("Not able to extend session, token not received. Make sure to provide back the token in the getSdkToken response ");Us(e),t=!0}catch(e){Ja.error("Failed to fetch sdk token",e)}return t},Un=(t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};function Za(t,e){const n=ue(t),r=ue(e),i=ue(`${r.value}onboardingcomponents/api/v1/`);return{rootLegalEntityId:n,baseUrl:i}}const qs=a.X(null),we=()=>a.x(qs),js=({rootLegalEntityId:t,baseUrl:e,children:n})=>a.u(qs.Provider,{value:Za(t,e),children:n}),ed=(t,e)=>{const{method:n="GET"}=t,r=Vs();return{method:n,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*",Authorization:`Bearer ${r}`,Origin:window.location.origin,...e?{"Content-Type":"application/json"}:{}},redirect:"follow",referrerPolicy:"no-referrer-when-downgrade",...e&&{body:JSON.stringify(e)}}},Br=async(t,e)=>{if(t.status!==204)switch(e){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"json":return t.json();case"text":return t.text()}},td=t=>t?.status===422,nd=t=>t?.status===401,rd=async t=>{const e=await t.json();throw new sd(e.errorCode,e)};class sd extends Error{invalidFields;errorCode;sourceError;constructor(e,n){super(e),this.invalidFields=n?.invalidFields,this.errorCode=n?.errorCode,this.sourceError=n}}const Bn=async(t,e,n="json")=>{const{baseUrl:r="",path:s,errorHandler:i}=t,o=ed(t,e),d=`${r}${s}`;let c;const l=re();try{c=await fetch(d,o)}catch(h){const f=`Service at ${d} is not available. Error= ${h}`;throw l.warn(f),new Error(f)}const u=`Call to ${d} failed.`;if(!c)throw l.warn(u),new Error(u);if(c.ok)return Br(c,n);if(nd(c)&&await Fn())return Bn(t,e,n);if(i)return i(Br(c,n));if(td(c))return rd(c);throw l.warn(u),new Error(u)},at=async(t,e)=>Bn({...t,method:"GET"},e),Yt=async(t,e)=>Bn({...t,method:"POST"},e),Fe=Symbol("ROOT_LE"),id=async(t,e,n)=>{const r=n===t?t:`${t}/child/${n}`;return at({baseUrl:e,path:`legalEntities/${r}`})},Ye=(t,e)=>{const{rootLegalEntityId:n,baseUrl:r}=we(),s=t===Fe?n.value:t,i=t!==Ne,o=rt({queryKey:s===Ne?[]:["legalEntity",s],queryFn:s===Ne?Ne:()=>id(n.value,r.value,s),...e});return{refetch:o.refetch,isLoading:o.isLoading,isError:o.isError,data:i?o.data:void 0}},Me=({el:t="p",variant:e="body",color:n="primary",className:r,children:s,...i})=>{const o=t,d=a.cx(r,"adyen-kyc-typography",`adyen-kyc-typography--${n}`,`adyen-kyc-typography--${e}`);return a.u(o,{...i,className:d,children:s})},od=(t,e,n,r)=>{const s=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(s,"warn","react-i18next::",!0);He(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...s):console?.warn&&console.warn(...s)},Vr={},wn=(t,e,n,r)=>{He(n)&&Vr[n]||(He(n)&&(Vr[n]=new Date),od(t,e,n,r))},zs=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},En=(t,e,n)=>{t.loadNamespaces(e,zs(t,n))},qr=(t,e,n,r)=>{if(He(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return En(t,n,r);n.forEach(s=>{t.options.ns.indexOf(s)<0&&t.options.ns.push(s)}),t.loadLanguages(e,zs(t,r))},ad=(t,e,n={})=>!e.languages||!e.languages.length?(wn(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!s(r.isLanguageChangingTo,t))return!1}}),He=t=>typeof t=="string",dd=t=>typeof t=="object"&&t!==null,cd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ld={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ud=t=>ld[t],hd=t=>t.replace(cd,ud);let An={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:hd};const fd=(t={})=>{An={...An,...t}},md=()=>An;let $s;const pd=t=>{$s=t},gd=()=>$s,yd={type:"3rdParty",init(t){fd(t.options.react),pd(t)}},bd=a.X();class vd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const _d=(t,e)=>{const n=a.A();return a.y(()=>{n.current=t},[t,e]),n.current},Hs=(t,e,n,r)=>t.getFixedT(e,n,r),Id=(t,e,n,r)=>a.q(Hs(t,e,n,r),[t,e,n,r]),Sd=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:s}=a.x(bd)||{},i=n||r||gd();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new vd),!i){wn(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const T=(O,w)=>He(w)?w:dd(w)&&He(w.defaultValue)?w.defaultValue:Array.isArray(O)?O[O.length-1]:O,E=[T,{},!1];return E.t=T,E.i18n={},E.ready=!1,E}i.options.react?.wait&&wn(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...md(),...i.options.react,...e},{useSuspense:d,keyPrefix:c}=o;let l=t||s||i.options?.defaultNS;l=He(l)?[l]:l||["translation"],i.reportNamespaces.addUsedNamespaces?.(l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(T=>ad(T,i,o)),h=Id(i,e.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>h,m=()=>Hs(i,e.lng||null,o.nsMode==="fallback"?l:l[0],c),[p,g]=a.d(f);let b=l.join();e.lng&&(b=`${e.lng}${b}`);const y=_d(b),_=a.A(!0);a.y(()=>{const{bindI18n:T,bindI18nStore:E}=o;_.current=!0,!u&&!d&&(e.lng?qr(i,e.lng,l,()=>{_.current&&g(m)}):En(i,l,()=>{_.current&&g(m)})),u&&y&&y!==b&&_.current&&g(m);const O=()=>{_.current&&g(m)};return T&&i?.on(T,O),E&&i?.store.on(E,O),()=>{_.current=!1,i&&T&&T?.split(" ").forEach(w=>i.off(w,O)),E&&i&&E.split(" ").forEach(w=>i.store.off(w,O))}},[i,b]),a.y(()=>{_.current&&u&&g(f)},[i,c,u]);const I=[p,i,u];if(I.t=p,I.i18n=i,I.ready=u,u||!u&&!d)return I;throw new Promise(T=>{e.lng?qr(i,e.lng,l,()=>T()):En(i,l,()=>T())})},Ee=Sd,Vn=(t,e)=>{e.forEach(async n=>{const{ns:r,importFn:s}=n;if(t.hasResourceBundle(t.language,r))return;const i=(await s(t.language)).default;if(t.addResourceBundle(t.language,r,i),!t.hasResourceBundle("en-US",r)){const o=(await s("en-US")).default;t.addResourceBundle("en-US",r,o)}})},Td="adyen-kyc-loader-wrapper",wd="adyen-kyc-loader-text",Ed="adyen-kyc-loader-text-visible",Ad="adyen-kyc-loader",Nd="adyen-kyc-loader-large",Pd="adyen-kyc-loader-small",Dd="adyen-kyc-loader-medium",Od="adyen-kyc-loader-xsmall",ke={loaderWrapper:Td,loaderText:wd,loaderTextVisible:Ed,loader:Ad,loaderLarge:Nd,loaderSmall:Pd,loaderMedium:Dd,loaderXsmall:Od},Rd=5e3,kd=1e4,xd={xsmall:ke.loaderXsmall,small:ke.loaderSmall,medium:ke.loaderMedium,large:ke.loaderLarge},De=({size:t="large",defaultMessage:e,shortMessage:n,shortDelayMs:r=Rd,longMessage:s,longDelayMs:i=kd})=>{const{t:o}=Ee("common"),d=Mn(e?"default":"hidden"),c=t==="large";a._(()=>{if(!c)return;const h=setTimeout(()=>{d.value="short"},r),f=setTimeout(()=>{d.value="long"},i);return()=>{clearTimeout(h),clearTimeout(f)}},[c,r,i,d]);const l=Ur(()=>{switch(d.value){case"long":return s??o(h=>h.justAMomentTakingLonger);case"short":return n??o(h=>h.justAMoment);case"default":return e;default:return}}),u=Ur(()=>d.value!=="hidden");return a.u("div",{className:ke.loaderWrapper,children:[a.u("div",{role:"progressbar",className:a.cx(ke.loader,xd[t])}),c&&a.u("div",{className:a.cx(ke.loaderText,{[ke.loaderTextVisible]:u}),children:a.u(Me,{variant:"body",color:"secondary",el:"span",children:l})})]})},R={INDIVIDUAL:"INDIVIDUAL",BUSINESS_DETAILS:"BUSINESS_DETAILS",CUSTOMER_SUPPORT:"CUSTOMER_SUPPORT",PAYOUT:"PAYOUT",PAYIN:"PAYIN",SERVICE_AGREEMENT:"SERVICE_AGREEMENT",DECISION_MAKER:"DECISION_MAKER",DECISION_MAKER_OVERVIEW:"DECISION_MAKER_OVERVIEW",TRUST:"TRUST",TRUST_MEMBER:"TRUST_MEMBER",TRUST_MEMBER_OVERVIEW:"TRUST_MEMBER_OVERVIEW",TRUST_MEMBER_INDIVIDUAL:"TRUST_MEMBER_INDIVIDUAL",TRUST_MEMBER_COMPANY:"TRUST_MEMBER_COMPANY",UNINCORPORATED_PARTNERSHIP:"UNINCORPORATED_PARTNERSHIP",UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW:"UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW",UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:"UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL",UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY:"UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY",SOLE_PROPRIETOR_COMPANY:"SOLE_PROPRIETOR_COMPANY",LEGAL_REPRESENTATIVE_DETAILS:"LEGAL_REPRESENTATIVE_DETAILS"},Cd="adyen-kyc-svg-icon",Md="adyen-kyc-svg-image",Ld={"svg-icon":"adyen-kyc-svg-icon",svgIcon:Cd,"svg-image":"adyen-kyc-svg-image",svgImage:Md},Fd={"arrow-right":a.z(()=>Promise.resolve().then(()=>require("./arrow-right-BoqwUH_d-C0oi6GBo.cjs"))),bag:a.z(()=>Promise.resolve().then(()=>require("./bag-BXVWLrwo-BfKXp36G.cjs"))),bank:a.z(()=>Promise.resolve().then(()=>require("./bank-1GvaHPAZ-CNNRb2M8.cjs"))),bin:a.z(()=>Promise.resolve().then(()=>require("./bin-Ba-3ll8T-Bz6w--0v.cjs"))),check:a.z(()=>Promise.resolve().then(()=>require("./checkmark-D9dGhGpG-Q6D3lcZA.cjs"))),certificate:a.z(()=>Promise.resolve().then(()=>require("./certificate-N2YFedpI-EFeB9MGL.cjs"))),checkmark:a.z(()=>Promise.resolve().then(()=>require("./checkmark-circle-fill-DEB-tuGl-5HXocBee.cjs"))),"checkmark-circle":a.z(()=>Promise.resolve().then(()=>require("./checkmark-circle-CFWClLQ6-Ck8iFBtk.cjs"))),"checkmark-small":a.z(()=>Promise.resolve().then(()=>require("./checkmark-small-D3VNx2lo-VgGbWO2Z.cjs"))),"chevron-down":a.z(()=>Promise.resolve().then(()=>require("./chevron-down-C7SUSYfl-Cc6KrIzd.cjs"))),"chevron-right":a.z(()=>Promise.resolve().then(()=>require("./chevron-right-jE6RwM2B-CUsCypD5.cjs"))),"chevron-left":a.z(()=>Promise.resolve().then(()=>require("./chevron-left-BXmd-S46-BxVZK0po.cjs"))),"chevron-up":a.z(()=>Promise.resolve().then(()=>require("./chevron-up-BdfNcqzq-BJnCnDy-.cjs"))),"cash-stack":a.z(()=>Promise.resolve().then(()=>require("./cash-stack-DwYu4xNy-CtLOZNrp.cjs"))),circle:a.z(()=>Promise.resolve().then(()=>require("./circle-BJPTMCWB-bI3MIf-t.cjs"))),"circle-small-filled":a.z(()=>Promise.resolve().then(()=>require("./circle-small-filled-BuO8Vg8j-D5EkLA9R.cjs"))),clock:a.z(()=>Promise.resolve().then(()=>require("./clock-DAzaBRWk-CKK_5gxp.cjs"))),company:a.z(()=>Promise.resolve().then(()=>require("./headquarter-BhpSibFO-BRK-JRU3.cjs"))),capital:a.z(()=>Promise.resolve().then(()=>require("./capital-9TKHySO7-tXHOZXsF.cjs"))),"company-2":a.z(()=>Promise.resolve().then(()=>require("./hotel-Cp7VgGCJ-CK07mweY.cjs"))),contract:a.z(()=>Promise.resolve().then(()=>require("./contract-BfJb1t6M-IHda6bpN.cjs"))),cross:a.z(()=>Promise.resolve().then(()=>require("./cross-CDS_eot4-CBB7JNnN.cjs"))),coins:a.z(()=>Promise.resolve().then(()=>require("./coins-DYdzG5e_-Cl1nCPKE.cjs"))),"decision-maker":a.z(()=>Promise.resolve().then(()=>require("./person-IVZG3t3_-Dr0lIsc1.cjs"))),document:a.z(()=>Promise.resolve().then(()=>require("./document-1-qlSTF558-ClpgfKqJ.cjs"))),download:a.z(()=>Promise.resolve().then(()=>require("./download-BZQB1WkZ-71KdFwug.cjs"))),edit:a.z(()=>Promise.resolve().then(()=>require("./edit-1-DAqtnOIx-hCOg9qvX.cjs"))),"external-link":a.z(()=>Promise.resolve().then(()=>require("./external-link-Cg6pJaSJ-Blu3zY1L.cjs"))),"graph-up":a.z(()=>Promise.resolve().then(()=>require("./graph-up-BZze4i6m-Ca_zl3SX.cjs"))),graph:a.z(()=>Promise.resolve().then(()=>require("./graph-DunG_uu1-BXm_TrX_.cjs"))),gift:a.z(()=>Promise.resolve().then(()=>require("./gift-omNInZeB-DzTL1xdk.cjs"))),"field-error":a.z(()=>Promise.resolve().then(()=>require("./warning-circle-fill-DBvt921B-1nMm0OU1.cjs"))),headquarter:a.z(()=>Promise.resolve().then(()=>require("./headquarter-BhpSibFO-BRK-JRU3.cjs"))),"info-circle":a.z(()=>Promise.resolve().then(()=>require("./info-Bb_-xIEK-vqzRCz7j.cjs"))),"info-circle-filled":a.z(()=>Promise.resolve().then(()=>require("./info-filled-CK8LB339-Cxd0ljuX.cjs"))),image:a.z(()=>Promise.resolve().then(()=>require("./image-CmB0ioUM-D7IDIh_k.cjs"))),location:a.z(()=>Promise.resolve().then(()=>require("./location-itJfxrDQ-D8KM_gv5.cjs"))),"more-horiz":a.z(()=>Promise.resolve().then(()=>require("./options-horizontal-GuXvLvV3-BsdEjc5Z.cjs"))),mail:a.z(()=>Promise.resolve().then(()=>require("./mail-VHTlAusn-BGEAd-9E.cjs"))),minusCircleFilled:a.z(()=>Promise.resolve().then(()=>require("./minus-circle-filled-ZhtJ0GD3-BYtnLkdq.cjs"))),payByLinkPlane:a.z(()=>Promise.resolve().then(()=>require("./pay-by-link-plane-BpY8Q6-B-BT0myaf8.cjs"))),payout:a.z(()=>Promise.resolve().then(()=>require("./payout-DtB68BcZ-DRZi5ifj.cjs"))),pci:a.z(()=>Promise.resolve().then(()=>require("./checkmark-circle-CFWClLQ6-Ck8iFBtk.cjs"))),plus:a.z(()=>Promise.resolve().then(()=>require("./plus-DiALAL8--h3NWV9cu.cjs"))),plusCircleFilled:a.z(()=>Promise.resolve().then(()=>require("./plus-circle-filled-BzHtTqEN-C4ZyKthn.cjs"))),recurring:a.z(()=>Promise.resolve().then(()=>require("./recurring-DKNs9K3x-v-mZC-F-.cjs"))),remove:a.z(()=>Promise.resolve().then(()=>require("./cross-circle-fill-small-DkPjsuBH-kPVAeVmn.cjs"))),error:a.z(()=>Promise.resolve().then(()=>require("./cross-circle-fill-C-EJ57Yn-BFDtAcXb.cjs"))),"revenue-accelerate":a.z(()=>Promise.resolve().then(()=>require("./revenue-accelerate-D7Sp0V4a-BSgAdlmZ.cjs"))),save:a.z(()=>Promise.resolve().then(()=>require("./save-BfqO2JBI-CALG11PV.cjs"))),search:a.z(()=>Promise.resolve().then(()=>require("./search-Cmzbf5zI-8_l6Dnt1.cjs"))),show:a.z(()=>Promise.resolve().then(()=>require("./show-IdbU1C6P-CNkRcK4W.cjs"))),solutionPayments:a.z(()=>Promise.resolve().then(()=>require("./solution-payments-DpyE_sdS-4e4HwyyV.cjs"))),store:a.z(()=>Promise.resolve().then(()=>require("./store-Btc4GcmU-Bux6Cwso.cjs"))),terminal:a.z(()=>Promise.resolve().then(()=>require("./terminal-1-D1pwXCoi-BASIqPTv.cjs"))),trust:a.z(()=>Promise.resolve().then(()=>require("./partner-QD27Vy4w-BEVNoYXR.cjs"))),user:a.z(()=>Promise.resolve().then(()=>require("./person-IVZG3t3_-Dr0lIsc1.cjs"))),"user-business":a.z(()=>Promise.resolve().then(()=>require("./document-person-CDbnTOdV-D249XEY1.cjs"))),upload:a.z(()=>Promise.resolve().then(()=>require("./upload-BmUXjsaU-DabBfyQb.cjs"))),"users-3":a.z(()=>Promise.resolve().then(()=>require("./4-people-BtDi7O9A-CykGUqaL.cjs"))),warning:a.z(()=>Promise.resolve().then(()=>require("./warning-diamond-filled-Lb2od2ry-BQRvOEYt.cjs"))),webinar:a.z(()=>Promise.resolve().then(()=>require("./webinar-m9nuFZBt-CgFoTSSX.cjs")))},Ud={review:a.z(()=>Promise.resolve().then(()=>require("./review-D4TUjcWF-CcTTJF4o.cjs"))),"funds-in":a.z(()=>Promise.resolve().then(()=>require("./funds-in-CInoUdmG-BZPETyTq.cjs"))),house:a.z(()=>Promise.resolve().then(()=>require("./house-BhyBQdR3-Da2ciJF4.cjs"))),reporting:a.z(()=>Promise.resolve().then(()=>require("./reporting-D5ABpLO_-Gq5yUa4r.cjs")))},Bd={...Fd,...Ud},Vd=["bin","check","checkmark","checkmark-small","chevron-right","chevron-left","company","contract","cross","decision-maker","document","download","edit","error","info-circle","info-circle-filled","image","location","payout","pci","plus","remove","save","search","trust","user","upload","warning"],qd=re(),jd=({className:t,name:e,testId:n,title:r})=>{const s=Bd[e],i=Vd.includes(e)?"0 0 16 16":void 0;return s?a.u("span",{className:a.cx(Ld["svg-icon"],t),"data-testid":n??"svg-icon",children:a.u(a.P,{fallback:null,children:i?a.u(s,{"aria-hidden":!0,viewBox:i,title:r||e}):a.u(s,{"aria-hidden":!0,title:r||e})})}):(qd.error(`No such svg: "${e}"`),null)},te=({name:t,className:e,...n})=>a.u(jd,{className:e,name:t,...n}),zd="adyen-kyc-button",$d="adyen-kyc-button-full-width",Hd="adyen-kyc-button-label",Kd="adyen-kyc-button-label-padding",Wd="adyen-kyc-button-shape-rectangle",Gd="adyen-kyc-button-shape-circle",Yd="adyen-kyc-button-variant-primary",Xd="adyen-kyc-button-variant-secondary",Qd="adyen-kyc-button-variant-tertiary",Jd="adyen-kyc-button-variant-critical",Zd="adyen-kyc-button-variant-link",ec="adyen-kyc-button-variant-surface",tc="adyen-kyc-button-spinner",ie={button:zd,buttonFullWidth:$d,buttonLabel:Hd,buttonLabelPadding:Kd,buttonShapeRectangle:Wd,buttonShapeCircle:Gd,buttonVariantPrimary:Yd,buttonVariantSecondary:Xd,buttonVariantTertiary:Qd,buttonVariantCritical:Jd,buttonVariantLink:Zd,buttonVariantSurface:ec,buttonSpinner:tc},Ks=({ariaLabel:t,children:e,circle:n=!1,disabled:r=!1,fullWidth:s=!1,loading:i=!1,onClick:o,testId:d,type:c="button",variant:l="primary"})=>{const u=r||i,h={primary:ie.buttonVariantPrimary,secondary:ie.buttonVariantSecondary,tertiary:ie.buttonVariantTertiary,critical:ie.buttonVariantCritical,link:ie.buttonVariantLink,surface:ie.buttonVariantSurface},f=a.cx(ie.button,h[l],{[ie.buttonShapeRectangle]:!n,[ie.buttonShapeCircle]:n,[ie.buttonFullWidth]:s}),m=p=>{p.preventDefault(),!u&&o&&o(p)};return a.u("button",{"aria-label":t,className:f,"data-testid":d,disabled:u,onClick:m,type:c,children:[i&&a.u("div",{className:ie.buttonSpinner,children:a.u(De,{size:"small"})}),e]})},dt=({children:t,disabled:e=!1,fullWidth:n,icon:r,loading:s=!1,onClick:i,testId:o,type:d="button",variant:c="primary"})=>{const l={disabled:e,fullWidth:n,icon:r,loading:s,onClick:i,testId:o,type:d,variant:c},u=a.cx(ie.buttonLabel,{[ie.buttonLabelPadding]:c!=="link"});return a.u(Ks,{...l,children:a.u("div",{className:u,children:[r&&a.u(te,{name:r}),t]})})},Xt=({ariaLabel:t,circle:e=!1,disabled:n=!1,icon:r,loading:s=!1,onClick:i,testId:o,variant:d="primary"})=>{const c={ariaLabel:t,circle:e,disabled:n,loading:s,onClick:i,testId:o,variant:d};return a.u(Ks,{...c,children:a.u("div",{className:ie.buttonLabel,children:a.u(te,{name:r})})})},vt=t=>Object.entries(t),Ws=t=>Object.values(t),_t=t=>Object.keys(t),nc=(t,e)=>t in e,Gs=(...t)=>({from:e=>t.map(n=>nc(n,e)?{[n]:e[n]}:{}).reduce((n,r)=>({...n,...r}),{})}),Ys=(...t)=>({from:e=>{const n=_t(e).filter(r=>!t.includes(r));return Gs(...n).from(e)}}),Xs=(t,e)=>t.length===e.length&&t.every(n=>e.includes(n)),qn=(t,e)=>t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length!==Object.keys(e).length?!1:_t(t).every(n=>qn(t[n],e[n])):t===e;function Qt(t){return structuredClone(t)}function Qs(t,{type:e="conjunction",style:n="long",stringify:r=s=>s.toString()}={}){const s=t.map(o=>r(o));return new Intl.ListFormat("en",{style:n,type:e}).format(s)}const Z=()=>{},rc={addEvent:Z,addJourneyEvent:Z,addTaskEvent:Z,addPageEvent:Z,addFieldEvent:Z,startEvent:Z,subscribe:Z,updateBaseTrackingPayload:Z,updateSharedEventProperties:Z,unsubscribe:Z},Js=a.X(rc),Xe=()=>a.x(Js),jr=t=>t.toLowerCase().substring(0,2),sc=(t,e)=>e.find(n=>jr(n)===jr(t))??null;function Zs(t){const e=t.replace("_","-");if(/([a-z]{2})(-)([A-Z]{2})/.test(e))return e;const[r,s]=e.split("-");if(!r||!s)return null;const i=[r.toLowerCase(),s.toUpperCase()].join("-");return i.length===5?i:null}function ic(t,e=[]){if(!t||t.length<1||t.length>5)return be;const n=Zs(t);return n&&e.includes(n)?n:sc(n||t,e)}const zr=(t,e)=>t.replace(/%{(\w+)}/g,(n,r)=>e?.[r]?.toString()??""),oc=(t,e,n={values:{}})=>{const r=`${e}${n.localizeFor?`__${n.localizeFor}`:""}`;return r in t?zr(t[r],n.values):e in t?zr(t[e],n.values):null},ei=t=>{const[e]=t.split("-");return e},ac=t=>t!==null&&typeof t=="object"&&"key"in t&&"values"in t,jn=(t,e)=>{if(e)return ac(e)?t(n=>n[e.key],e.values):t(n=>n[e])},dc="adyen-kyc-toast",cc="adyen-kyc-toast-image",lc="adyen-kyc-toast-image-success",uc="adyen-kyc-toast-image-error",hc="adyen-kyc-toast-label",fc="adyen-kyc-toast-actions",mc="adyen-kyc-toast-action-close",je={toast:dc,toastImage:cc,toastImageSuccess:lc,toastImageError:uc,toastLabel:hc,toastActions:fc,toastActionClose:mc},pc=({action:t,duration:e=1e4,label:n,onDismiss:r,variant:s="info"})=>{const i=s==="success"||s==="error",o=t!==void 0,d=o?"alertdialog":"alert",c={error:"field-error",success:"checkmark"},l=a.cx(je.toastImage,{[je.toastImageSuccess]:s==="success",[je.toastImageError]:s==="error"});return a.y(()=>{let u;return e!=="indefinite"&&(u=setTimeout(()=>{r()},e)),()=>{clearTimeout(u)}},[e,r]),a.u("div",{"aria-label":n,className:je.toast,role:d,children:[a.u("div",{className:je.toastLabel,children:[i&&a.u("div",{className:l,"data-testId":c[s],children:a.u(te,{name:c[s]})}),n]}),a.u("div",{className:je.toastActions,children:[o&&a.u(dt,{onClick:t.onClick,children:t.label}),a.u("div",{className:je.toastActionClose,children:a.u(Xt,{icon:"cross",ariaLabel:"Close",onClick:r})})]})]})},zn=a.X({showToast:Z,clearToasts:Z});function $n({children:t}){const[e,n]=a.d(),r=()=>{n(void 0)},s=a.T(()=>({showToast:i=>{n(i)},clearToasts:r}),[]);return a.u(zn.Provider,{value:s,children:[!!e&&a.u(pc,{label:e.label,variant:e.variant,action:e.action,duration:e.duration,onDismiss:r}),t]})}const ti=a.X({isExperimentEnabled:()=>!1,refreshExperiments:()=>{},experiments:{}});function Jt(){return a.x(ti)}const G={INDIVIDUAL:"individual",ORGANIZATION:"organization",TRUST:"trust",SOLE_PROPRIETORSHIP:"soleProprietorship",UNINCORPORATED_PARTNERSHIP:"unincorporatedPartnership"},gc=30,ni=(t,e,n,r)=>!n||t[n]?.[e]?.formatter?void 0:t[n]?.[e]?.maxlength||gc,Hn=t=>t==null,Ue=t=>Hn(t)||typeof t=="object"&&Object.keys(t).length===0||typeof t=="string"&&/^\s*$/.test(t),Kn=t=>typeof t=="string"||t instanceof String,ri=t=>Kn(t)&&!Ue(t),si="?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\",ii=(t,e="g")=>new RegExp(`[${t}]`,e),oi=t=>t.trimStart().replace(/\s+/g," "),ai=new RegExp("(\\p{Emoji}\\uFE0F|\\p{Emoji_Presentation}|\\p{Extended_Pictographic})","gu"),di=/^[^a-zA-Z]*$/,ci=/^[^\p{L}]*$/u,li=/^[\p{L}\p{M}\d\s\-—.,/']*$/u,ui=(t,e)=>Kn(e)&&t.test(e??""),hi=t=>!Ue(t)&&t.length>1&&new Set(t.toLowerCase()).size===1,fi=(t,e=1)=>!Ue(t)&&t.length>=e,mi=t=>new Set(["John Doe","Jane Doe","ABCD","ABCDE","ABCDEF","ABCDEFG","My Customer","An other","n/a","not applicable","n/A","N/A","N/a","N\\ /A","not app","null"]).has(t||""),pi=t=>{const e=new RegExp("^([0-9]{1,2}-[0-9]{1,3}|[0-9]{1,2}-[0-9]{1,3}-[0-9]{1,3})$");return!Ue(t)&&e.test(t)},yc="adyen-kyc-skeleton",bc="adyen-kyc-skeleton-circle",vc="adyen-kyc-skeleton-text",cn={skeleton:yc,skeletonCircle:bc,skeletonText:vc},qt=({circle:t=!1,text:e=!1,height:n="1em",width:r})=>{const s=a.cx(cn.skeleton,{[cn.skeletonCircle]:t,[cn.skeletonText]:e});return a.u("div",{className:s,style:{height:n,width:r}})},_c="adyen-kyc-accordion",Ic="adyen-kyc-accordion-summary",Sc="adyen-kyc-accordion-basic",Tc="adyen-kyc-accordion-info",wc="adyen-kyc-accordion-error",Ec="adyen-kyc-accordion-warning",Ac="adyen-kyc-accordion-success",Nc="adyen-kyc-accordion-narrow",Pc="adyen-kyc-accordion-content",Dc="adyen-kyc-accordion-with-icon",Oc="adyen-kyc-accordion-arrow",Rc="adyen-kyc-accordion-arrow-right",de={accordion:_c,accordionSummary:Ic,accordionBasic:Sc,accordionInfo:Tc,accordionError:wc,accordionWarning:Ec,accordionSuccess:Ac,accordionNarrow:Nc,accordionContent:Pc,accordionWithIcon:Dc,accordionArrow:Oc,accordionArrowRight:Rc},Wn=({children:t,expandOnLeft:e=!1,onToggle:n,className:r,variant:s="basic",narrow:i=!1})=>{const{Slot:o}=kn(t,["title","content","icon"]),d=l=>{n&&n(l.newState==="closed"?"close":"open")},c={basic:de.accordionBasic,info:de.accordionInfo,error:de.accordionError,warning:de.accordionWarning,success:de.accordionSuccess};return a.u("details",{onToggle:d,className:a.cx(r,de.accordion,c[s],{[de.accordionWithIcon]:e,[de.accordionNarrow]:i}),children:[a.u("summary",{className:de.accordionSummary,children:[e&&a.u(te,{name:"chevron-down",className:de.accordionArrow}),a.u(o,{name:"icon"}),a.u(Me,{el:"h3",variant:"body-strongest",children:a.u(o,{name:"title",children:a.u(qt,{})})}),!e&&a.u(te,{name:"chevron-down",className:a.cx(de.accordionArrow,de.accordionArrowRight)})]}),a.u("div",{className:de.accordionContent,children:a.u(o,{name:"content",children:a.u(qt,{})})})]})},kc="adyen-kyc-alert",xc="adyen-kyc-alert-without-icon",Cc="adyen-kyc-alert-explanation",Mc="adyen-kyc-alert-actions",Lc="adyen-kyc-alert-basic",Fc="adyen-kyc-alert-info",Uc="adyen-kyc-alert-error",Bc="adyen-kyc-alert-warning",Vc="adyen-kyc-alert-success",qc="adyen-kyc-alert-header",jc="adyen-kyc-alert-header-without-children",zc="adyen-kyc-alert-icon",$c="adyen-kyc-alert-icon-info",Hc="adyen-kyc-alert-icon-error",Kc="adyen-kyc-alert-icon-warning",Wc="adyen-kyc-alert-icon-success",Gc="adyen-kyc-alert-title",H={alert:kc,alertWithoutIcon:xc,alertExplanation:Cc,alertActions:Mc,alertBasic:Lc,alertInfo:Fc,alertError:Uc,alertWarning:Bc,alertSuccess:Vc,alertHeader:qc,alertHeaderWithoutChildren:jc,alertIcon:zc,alertIconInfo:$c,alertIconError:Hc,alertIconWarning:Kc,alertIconSuccess:Wc,alertTitle:Gc},$r={basic:H.alertBasic,info:H.alertInfo,error:H.alertError,warning:H.alertWarning,success:H.alertSuccess},Yc={basic:"",info:H.alertIconInfo,error:H.alertIconError,warning:H.alertIconWarning,success:H.alertIconSuccess},gi=({title:t,variant:e="basic",type:n="default",className:r,actions:s,children:i,icon:o,testId:d,onClose:c,onToggle:l})=>{const{t:u}=Ee("ui"),[h,f]=a.d(!1);if(h)return null;const m=()=>{c&&c(),f(!0)},g=(()=>{if(o!==!1)return a.t(o)?o:a.u("span",{className:a.cx(H.alertIcon,Yc[e]),children:a.u(Gn,{variant:e})})})();return n==="collapsible"?a.u(Wn,{variant:e,onToggle:l||void 0,narrow:!0,className:r,children:[a.u("template",{slot:"title",children:t}),a.u("template",{slot:"icon",children:g}),a.u("template",{slot:"content",children:[i,!!s&&a.u("div",{className:H.alertActions,children:s})]})]}):n==="callToAction"?a.u("div",{className:a.cx(H.alert,r,$r[e],{[H.alertWithoutIcon]:!g}),role:"alert","data-testid":d,children:[a.u("div",{className:a.cx(H.alertHeader,{[H.alertHeaderWithoutChildren]:!i}),children:[g,t&&a.u(Me,{el:"h3",variant:"body-strongest",className:H.alertTitle,children:t}),!!s&&a.u("div",{className:H.alertActions,children:s})]}),!!i&&a.u("div",{className:H.alertExplanation,children:i})]}):a.u("div",{className:a.cx(H.alert,r,$r[e],{[H.alertWithoutIcon]:!g}),role:"alert","data-testid":d,children:[a.u("div",{className:H.alertHeader,children:[g,t&&a.u(Me,{el:"h3",variant:"body-strongest",className:H.alertTitle,children:t}),n==="dismissible"&&a.u(dt,{variant:"tertiary",icon:"cross",onClick:m,children:u(b=>b.close)})]}),!!i&&a.u("div",{className:H.alertExplanation,children:i}),!!s&&a.u("div",{className:H.alertActions,children:s})]})},Gn=({variant:t})=>{switch(t){case"success":return a.u(te,{name:"checkmark"});case"error":return a.u(te,{name:"error"});case"warning":return a.u(te,{name:"warning"});default:return a.u(te,{name:"info-circle-filled"})}},v={Australia:"AU",Austria:"AT",Belgium:"BE",Brazil:"BR",Bulgaria:"BG",Canada:"CA",Croatia:"HR",Cyprus:"CY",CzechRepublic:"CZ",Denmark:"DK",Estonia:"EE",Finland:"FI",France:"FR",Georgia:"GE",Germany:"DE",Gibraltar:"GI",Greece:"GR",Guernsey:"GG",HongKong:"HK",Hungary:"HU",Iceland:"IS",Ireland:"IE",IsleOfMan:"IM",Italy:"IT",Japan:"JP",Jersey:"JE",Latvia:"LV",Liechtenstein:"LI",Lithuania:"LT",Luxembourg:"LU",Malaysia:"MY",Malta:"MT",Mexico:"MX",Monaco:"MC",Netherlands:"NL",NewZealand:"NZ",Norway:"NO",Poland:"PL",Portugal:"PT",PuertoRico:"PR",Romania:"RO",Singapore:"SG",Slovakia:"SK",Slovenia:"SI",Spain:"ES",Sweden:"SE",Switzerland:"CH",UnitedArabEmirates:"AE",UnitedKingdom:"GB",UnitedStates:"US"},yi=[v.Austria,v.Belgium,v.Bulgaria,v.Croatia,v.Cyprus,v.CzechRepublic,v.Denmark,v.Estonia,v.Finland,v.France,v.Germany,v.Greece,v.Hungary,v.Ireland,v.Italy,v.Latvia,v.Lithuania,v.Luxembourg,v.Malta,v.Netherlands,v.Poland,v.Portugal,v.Romania,v.Slovakia,v.Slovenia,v.Spain,v.Sweden],Xc=[v.HongKong,v.Singapore],bi=[v.Austria,v.Belgium,v.Bulgaria,v.Croatia,v.Cyprus,v.CzechRepublic,v.Denmark,v.Estonia,v.Finland,v.France,v.Germany,v.Greece,v.Hungary,v.Iceland,v.Ireland,v.Italy,v.Latvia,v.Liechtenstein,v.Lithuania,v.Luxembourg,v.Malta,v.Netherlands,v.Norway,v.Poland,v.Portugal,v.Romania,v.Slovakia,v.Slovenia,v.Spain,v.Sweden],Qc=t=>!!t&&yi.includes(t),vi=t=>!!t&&bi.includes(t),Jc=t=>!!t&&Xc.includes(t),Qe=t=>{switch(t.type){case G.INDIVIDUAL:return t.individual.residentialAddress.country;case G.ORGANIZATION:return t.organization.registeredAddress.country;case G.TRUST:return t.trust.countryOfGoverningLaw??t.trust.registeredAddress.country;case G.SOLE_PROPRIETORSHIP:return t.soleProprietorship.registeredAddress.country;case G.UNINCORPORATED_PARTNERSHIP:return t.unincorporatedPartnership.countryOfGoverningLaw??t.unincorporatedPartnership.registeredAddress.country}},_i=t=>{const e=new Date,n=e.getMonth(),r=e.getDate(),s=new Date(t),i=s.getMonth(),o=e.getFullYear()-s.getFullYear();return n>i||n===i&&r>=s.getUTCDate()?o:o-1},Ii=t=>{if(!(!t||Jc(t)))return Qc(t)?{min:16,max:18}:{min:13,max:18}},Zc=(t,e)=>{if(!t||!e)return!1;const n=Ii(e);return n?el(_i(t),n):!1},el=(t,e)=>e.min<=t&&t<e.max,Yn=t=>{if(!t||!t?.individual)return!1;const e=t?.individual?.birthData?.dateOfBirth,n=Qe(t);return Zc(e,n)},q={CONTROLLING_PERSON:"uboThroughControl",OWNER:"uboThroughOwnership",SIGNATORY:"signatory",DIRECTOR:"director"},ge=[{roleTypes:[q.OWNER,q.CONTROLLING_PERSON],min:1,max:1/0},{roleTypes:[q.OWNER],min:0,max:4},{roleTypes:[q.CONTROLLING_PERSON],min:0,max:1/0},{roleTypes:[q.SIGNATORY],min:1,max:1/0}],tl={AE:[...ge,{roleTypes:[q.DIRECTOR],min:3,max:1/0}],US:[{roleTypes:[q.CONTROLLING_PERSON],min:1,max:1/0},{roleTypes:[q.OWNER],min:0,max:4},{roleTypes:[q.SIGNATORY],min:1,max:1/0}],BR:[{roleTypes:[q.CONTROLLING_PERSON],min:1,max:1/0},{roleTypes:[q.OWNER],min:0,max:4},{roleTypes:[q.SIGNATORY],min:1,max:1/0}],AU:[...ge,{roleTypes:[q.DIRECTOR],min:3,max:1/0}],CA:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],HK:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],IN:[...ge,{roleTypes:[q.DIRECTOR],min:3,max:15}],NZ:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],SG:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],GB:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}],JP:[...ge,{roleTypes:[q.DIRECTOR],min:1,max:1/0}]};[...ge,q.DIRECTOR];const nl=(t,e)=>{if(t){const n=tl[t];if(n)return n}return ge},We=(t,e)=>t?.entityAssociations?.filter(n=>n.associatorId===e)??[],Si=t=>We(t,t.id),rl=t=>Si(t).filter(n=>n.entityType===G.SOLE_PROPRIETORSHIP).map(n=>n.legalEntityId).filter(n=>n!==void 0),Ti=t=>t.entityAssociations?.some(e=>e.entityType===G.SOLE_PROPRIETORSHIP&&e.associatorId===t.id)??!1,Xn=t=>We(t,t.id).find(e=>e.type==="legalRepresentative"),Zt=t=>t?.entityAssociations?t.entityAssociations.filter(e=>Object.values(q).includes(e.type)&&e.associatorId===t.id):[],sl=(t,e)=>We(t,e).filter(n=>Object.values(q).includes(n.type)),wi=t=>Zt(t).filter(e=>e.type===q.SIGNATORY),Qn=t=>Zt(t).map(e=>e.legalEntityId).filter(e=>e!==void 0),il=t=>Zt(t).reduce((n,r)=>(n[r.type]=(n[r.type]??0)+1,n),{}),ol=t=>{const e=il(t),n=t?.organization?.registeredAddress?.country;return nl(n).every(s=>{const{roleTypes:i,min:o}=s;return i.some(d=>o?e?.[d]??o<=0:!0)})},Jn=a.X(void 0);function en(){return a.x(Jn)}const al="adyen-kyc-stack-layout",dl="adyen-kyc-stack-layout-gap-xs",cl="adyen-kyc-stack-layout-gap-s",ll="adyen-kyc-stack-layout-gap-m",ul="adyen-kyc-stack-layout-gap-l",hl="adyen-kyc-stack-layout-gap-xl",fl="adyen-kyc-stack-layout-left",ml="adyen-kyc-stack-layout-center",pl="adyen-kyc-stack-layout-right",gl="adyen-kyc-stack-layout-item",yl="adyen-kyc-stack-layout-horizontal",bl="adyen-kyc-stack-layout-left-horizontal",vl="adyen-kyc-stack-layout-center-horizontal",_l="adyen-kyc-stack-layout-right-horizontal",ae={stackLayout:al,stackLayoutGapXs:dl,stackLayoutGapS:cl,stackLayoutGapM:ll,stackLayoutGapL:ul,stackLayoutGapXl:hl,stackLayoutLeft:fl,stackLayoutCenter:ml,stackLayoutRight:pl,stackLayoutItem:gl,stackLayoutHorizontal:yl,stackLayoutLeftHorizontal:bl,stackLayoutCenterHorizontal:vl,stackLayoutRightHorizontal:_l},Il={xSmall:ae.stackLayoutGapXs,small:ae.stackLayoutGapS,medium:ae.stackLayoutGapM,large:ae.stackLayoutGapL,xLarge:ae.stackLayoutGapXl,none:null},Sl={left:ae.stackLayoutLeft,center:ae.stackLayoutCenter,right:ae.stackLayoutRight,auto:null},Tl={left:ae.stackLayoutLeftHorizontal,center:ae.stackLayoutCenterHorizontal,right:ae.stackLayoutRightHorizontal,auto:null},Ei=t=>a.F(t).flatMap(e=>typeof e=="object"&&e.type===a.S?Ei(e.props.children):e),Zn=({align:t="auto",children:e,gap:n="medium",horizontal:r=!1})=>{const s=Ei(e),i=a.cx(ae.stackLayout,Il[n],Sl[t],{[Tl[t]]:r,[ae.stackLayoutHorizontal]:r});return a.u("div",{className:i,children:s.map((o,d)=>t==="auto"?a.u("div",{className:ae.stackLayoutItem,children:o},o.key??d):o)})},wl="adyen-kyc-status",El="adyen-kyc-status-icon",Al="adyen-kyc-status-text",Nl="adyen-kyc-status-text-responsive",Pl="adyen-kyc-status-neutral",Dl="adyen-kyc-status-error",Ol="adyen-kyc-status-warning",Rl="adyen-kyc-status-success",xe={status:wl,statusIcon:El,statusText:Al,statusTextResponsive:Nl,statusNeutral:Pl,statusError:Dl,statusWarning:Ol,statusSuccess:Rl},kl={success:xe.statusSuccess,error:xe.statusError,neutral:xe.statusNeutral,warning:xe.statusWarning},Je=({text:t,icon:e="circle-small-filled",variant:n="neutral",responsive:r=!0})=>{const s=a.cx(xe.status,kl[n]),i=a.cx(xe.statusText,{[xe.statusTextResponsive]:r});return a.u("div",{role:"status",className:s,children:[a.u("div",{className:xe.statusIcon,children:a.u(te,{name:e})}),a.u("div",{className:i,children:t})]})},k={EMPTY:0,FINISHED:1,PROCESSING:2,DETAILS_REQUIRED:3,DOWNLOAD:5,SUBMIT:6,ERROR:7,SIGNED:8},er=({status:t,responsive:e})=>{const{t:n}=Ee("ui");switch(t){case k.DETAILS_REQUIRED:return a.u(Je,{icon:"warning",text:n(r=>r.incomplete),variant:"warning",responsive:e});case k.ERROR:return a.u(Je,{icon:"field-error",text:n(r=>r.actionNeeded),variant:"error",responsive:e});case k.FINISHED:return a.u(Je,{icon:"checkmark",text:n(r=>r.verified),variant:"success",responsive:e});case k.PROCESSING:return a.u(Je,{icon:"clock",text:n(r=>r.inReview),responsive:e});case k.DOWNLOAD:case k.SIGNED:return a.u(Je,{icon:"checkmark",text:n(r=>r.signed),variant:"success",responsive:e});case"inviteSent":return a.u(Je,{icon:"mail",text:n(r=>r.inviteSent),variant:"neutral",responsive:e});default:return null}},xl="adyen-kyc-header",Cl="adyen-kyc-header-margin",Ml="adyen-kyc-header-margin-secondary",Ll="adyen-kyc-header-left",Fl="adyen-kyc-header-center",Ul="adyen-kyc-header-right",Bl="adyen-kyc-header-content",Vl="adyen-kyc-header-actions",ql="adyen-kyc-header-title",jl="adyen-kyc-header-title-primary",zl="adyen-kyc-header-title-secondary",$l="adyen-kyc-header-description",Hl="adyen-kyc-header-description-primary",Kl="adyen-kyc-header-description-secondary",oe={header:xl,headerMargin:Cl,headerMarginSecondary:Ml,headerLeft:Ll,headerCenter:Fl,headerRight:Ul,headerContent:Bl,headerActions:Vl,headerTitle:ql,headerTitlePrimary:jl,headerTitleSecondary:zl,headerDescription:$l,headerDescriptionPrimary:Hl,headerDescriptionSecondary:Kl},Wl={left:oe.headerLeft,center:oe.headerCenter,right:oe.headerRight},tr=({align:t="left",children:e,description:n,secondary:r=!1,status:s,title:i})=>{const{Slot:o,hasSlot:d}=kn(e??[],["actions","description"]),c=r?"h2":"h1",l=a.cx(oe.header,Wl[t],{[oe.headerMargin]:!r,[oe.headerMarginSecondary]:r}),u=a.cx(oe.headerTitle,{[oe.headerTitlePrimary]:!r,[oe.headerTitleSecondary]:r}),h=a.cx(oe.headerDescription,{[oe.headerDescriptionPrimary]:!r,[oe.headerDescriptionSecondary]:r});return a.u("header",{className:l,children:[s&&a.u(er,{status:s,responsive:!1}),a.u("div",{className:oe.headerContent,children:[a.u(c,{className:u,children:i}),(d("description")||n)&&a.u("div",{className:h,children:a.u(o,{name:"description",children:n})})]}),d("actions")&&a.u("div",{className:oe.headerActions,children:a.u(Zn,{gap:"small",horizontal:!0,children:a.u(o,{name:"actions"})})})]})},Y={DATA_MISSING:"dataMissing",INVALID_INPUT:"invalidInput",PENDING_STATUS:"pendingStatus",DATA_REVIEW:"dataReview"},Gl={"1_100":[],"1_101":[],"1_102":[{key:"documents"}],"1_300":[{key:"individual.birthData.dateOfBirth"},{key:"individual.identificationData.number"},{key:"individual.name.firstName"},{key:"individual.name.lastName"},{key:"individual.residentialAddress"}],"1_301":[{key:"passport"},{key:"idVerificationMethod"}],"1_302":[{key:"passport"},{key:"idVerificationMethod"}],"1_303":[{key:"passport"},{key:"idVerificationMethod"}],"1_304":[{key:"proofOfResidency"}],"1_305":[{key:"proofOfResidency"}],"1_306":[{key:"proofOfResidency"}],"1_307":[{key:"proofOfNationalIdNumber"}],"1_308":[{key:"proofOfNationalIdNumber"}],"1_309":[{key:"proofOfNationalIdNumber"}],"1_316":[{key:"individual.identificationData.number"}],"1_319":[{key:"individual.residentialAddress"}],"1_320":[{key:"proofOfResidency"}],"1_321":[{key:"individual.residentialAddress.street"}],"1_500":[{key:"organization.legalName"},{key:"organization.registrationNumber"},{key:"organization.taxId"},{key:"organization.registeredAddress"}],"1_501":[{key:"registrationDocument"}],"1_502":[{key:"registrationDocument"}],"1_503":[{key:"vatDocument"}],"1_504":[{key:"vatDocument"}],"1_505":[{key:"proofOfAddress"}],"1_506":[{key:"proofOfAddress"}],"1_507":[{key:"proofOfOwnership"}],"1_508":[{key:"proofOfOwnership"}],"1_512":[{key:"vatDocument"},{key:"organization.vatNumber"}],"1_513":[{key:"vatDocument"},{key:"organization.vatNumber"}],"1_524":[{key:"organization.registeredAddress.street"}],"1_600":[{key:"soleProprietorship.name"},{key:"soleProprietorship.registeredAddress"}],"1_601":[{key:"constitutionalDocument"}],"1_602":[{key:"constitutionalDocument"}],"1_603":[{key:"constitutionalDocument"}],"1_700":[{key:"bankAccount"}],"1_701":[{key:"bankAccount"}],"1_702":[{key:"bankAccount"}],"1_703":[{key:"bankStatement"}],"1_704":[{key:"bankStatement"}],"1_705":[{key:"bankStatement"}],"1_803":[{key:"proofOfDirector"}],"1_804":[{key:"proofOfDirector"}],"1_800":[{key:"proofOfSignatory"}],"1_801":[{key:"proofOfSignatory"}],"1_802":[{key:"proofOfSignatory"}],"1_3083":[{key:"proofOfResidency"}],"2_243":[{key:"organization.support.phone"},{key:"individual.support.phone"}],"2_215":[{key:"passport"},{key:"idVerificationMethod.idDocument"}]},Nn=["2_8247","2_8248","2_8249","2_8250"],ye={"1_501":{code:"1_503",message:"Upload a tax document"},"1_502":{code:"1_504",message:"Upload a different tax document"}},pe={"1_3083":[{code:"1_319",message:"Update individual details"},{code:"1_320",message:"Upload proof of residency"}],"1_5012":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5013":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5015":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5017":[ye["1_501"],{code:"1_500",message:"Update organization details"}],"1_5020":[ye["1_501"]],"1_5021":[ye["1_502"]],"1_5022":[ye["1_502"]],"1_5024":[ye["1_502"],{code:"1_500",message:"Update organization details"}],"1_5035":[ye["1_502"],{code:"1_500",message:"Update organization details"}]},ln={"1_3083":{code:"1_3083",message:"The name or residential address couldn't be verified.",type:Y.INVALID_INPUT,remediatingActions:pe["1_3083"]},"1_5012":{code:"1_5012",message:"The submitted company type didn't match the one on the registry",type:Y.INVALID_INPUT,remediatingActions:pe["1_5012"]},"1_5013":{code:"1_5013",message:"The company was not found in the database",type:Y.INVALID_INPUT,remediatingActions:pe["1_5013"]},"1_5015":{code:"1_5017",message:"The tax ID number didn't match the legal business name",type:Y.INVALID_INPUT,remediatingActions:pe["1_5015"]},"1_5017":{code:"1_5017",message:"The tax ID number didn't match the legal business name",type:Y.INVALID_INPUT,remediatingActions:pe["1_5017"]},"1_5020":{code:"1_5036",message:"Tax document is missing.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5020"]},"1_5021":{code:"1_5039",message:"The tax document was too low quality.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5021"]},"1_5022":{code:"1_5040",message:"The tax document was too old.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5022"]},"1_5024":{code:"1_5024",message:"The registration document did not show the company type",type:Y.INVALID_INPUT,remediatingActions:pe["1_5024"]},"1_5035":{code:"1_5038",message:"The tax document wasn't a supported document type.",type:Y.INVALID_INPUT,remediatingActions:pe["1_5035"]}},Hr={"2_8141":{code:"2_8162",message:"'proofOfOrganizationTaxInfo' was missing",type:Y.DATA_MISSING,remediatingActions:[ye["1_501"]]},"1_3083":{code:"1_3083",message:"The name or residential address couldn't be verified.",type:Y.INVALID_INPUT,subErrors:[{code:"1_3083",message:"Individual details didn't match the ID document",type:Y.INVALID_INPUT,remediatingActions:pe["1_3083"]}]}},Yl=t=>{switch(t.type){case Y.DATA_MISSING:switch(t.code){case"2_8141":return Hr["2_8141"];case"1_3083":return{...Hr["1_3083"],subErrors:[ln["1_3083"]]};default:return t}case Y.INVALID_INPUT:switch(t.code){case"1_50":return{...t,subErrors:t.subErrors?.map(e=>ln[e.code]??e)};case"1_52":return{...t,code:"1_53",message:"Tax document didn't meet requirements",remediatingActions:t.remediatingActions?.map(e=>ye[e.code]??e),subErrors:t.subErrors?.map(e=>ln[e.code]??e)};default:return t}default:return t}},Le={BANK_ACCOUNT:"BankAccount",LEGAL_ENTITY:"LegalEntity"},Xl={"organization.support.email":"customerSupport.email","individual.support.email":"customerSupport.email","organization.support.phone":"customerSupport.phoneNumber.number","individual.support.phone":"customerSupport.phoneNumber.number"},Kr={...Xl},Ql={id:"payoutAccountDetails.transferInstrumentId","bankAccount.bankName":"payoutAccountDetails.bankName","bankAccount.countryCode":"payoutVerificationMethod.bankCountry","bankAccount.accountIdentification.iban":"payoutAccountDetails.iban","bankAccount.accountIdentification.accountNumber":"payoutAccountDetails.bankAccountNumber","bankAccount.accountIdentification.bsbCode":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.institutionNumber":"payoutAccountDetails.bankCode","bankAccount.accountIdentification.transitNumber":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.bankCode":"payoutAccountDetails.bankCode","bankAccount.accountIdentification.clearingCode":"payoutAccountDetails.bankCode","bankAccount.accountIdentification.clearingNumber":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.bic":"payoutAccountDetails.swiftCode","bankAccount.accountIdentification.sortCode":"payoutAccountDetails.branchCode","bankAccount.accountIdentification.routingNumber":"payoutAccountDetails.branchCode"},Ai={...Ql},jt={[Le.BANK_ACCOUNT]:"payoutAccountDetails",...Ai,bankStatement:"payoutAccountDocuments.bankStatementDocument"};function ct(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[n,e]))}const Jl={"basicInformation.country":"organization.registeredAddress.country","basicInformation.legalCompanyName":"organization.legalName","basicInformation.stateOrProvince":"organization.registeredAddress.stateOrProvince","basicInformation.registrationNumber":"organization.registrationNumber","basicInformation.taxInformation":"organization.taxInformation","basicInformation.countryOfGoverningLaw":"organization.countryOfGoverningLaw","companyStructure.entityType":"organization.type","additionalInformation.legalFormDescription":"organization.legalFormDescription","additionalInformation.doingBusinessAs":"organization.doingBusinessAs","additionalInformation.hasDoingBusinessAs":"organization.doingBusinessAsAbsent","additionalInformation.registrationNumber":"organization.registrationNumber","additionalInformation.exemptedFromRegistrationNumber":"organization.registrationNumberAbsent","additionalInformation.taxInformation":"organization.taxInformation","additionalInformation.vatNumber":"organization.vatNumber","additionalInformation.vatAbsenceReason":"organization.vatAbsenceReason","additionalInformation.dateOfIncorporation":"organization.dateOfIncorporation","additionalInformation.stockExchangeMIC":"organization.stockData.marketIdentifier","additionalInformation.stockISIN":"organization.stockData.stockNumber","additionalInformation.stockTickerSymbol":"organization.stockData.tickerSymbol","additionalInformation.registrationAddress.city":"organization.registeredAddress.city","additionalInformation.registrationAddress.country":"organization.registeredAddress.country","additionalInformation.registrationAddress.postalCode":"organization.registeredAddress.postalCode","additionalInformation.registrationAddress.stateOrProvince":"organization.registeredAddress.stateOrProvince","additionalInformation.registrationAddress.address":"organization.registeredAddress.street","additionalInformation.registrationAddress.otherAddressInformation":"organization.registeredAddress.street2","additionalInformation.operationalAddress.city":"organization.principalPlaceOfBusiness.city","additionalInformation.operationalAddress.country":"organization.principalPlaceOfBusiness.country","additionalInformation.operationalAddress.postalCode":"organization.principalPlaceOfBusiness.postalCode","additionalInformation.operationalAddress.stateOrProvince":"organization.principalPlaceOfBusiness.stateOrProvince","additionalInformation.operationalAddress.address":"organization.principalPlaceOfBusiness.street","additionalInformation.operationalAddress.otherAddressInformation":"organization.principalPlaceOfBusiness.street2","additionalInformation.eInvoicingCode":"organization.eInvoicingCode","additionalInformation.legalForm":"organization.legalForm"},Ni={...ct(Jl)},Pi={registrationDocument:"companyRegistrationDocument.registrationDocument",vatDocument:"companyTaxDocument.taxDocument",proofOfOrganizationTaxInfo:"companyTaxDocument.taxDocument",proofOfDirector:"companyProofOfDirectorDocument.proofOfDirector",proofOfSignatory:"companyProofOfSignatoryDocument.proofOfSignatory",proofOfOwnership:"companyProofOfOwnershipDocument.proofOfOwnership"},zt={...Ni,...Pi},Zl={"basicInformation.country":"soleProprietorship.countryOfGoverningLaw","basicInformation.legalCompanyName":"soleProprietorship.name","basicInformation.stateOrProvince":"soleProprietorship.registeredAddress.stateOrProvince","basicInformation.countryOfGoverningLaw":"soleProprietorship.countryOfGoverningLaw","additionalInformation.hasDoingBusinessAs":"soleProprietorship.doingBusinessAsAbsent","additionalInformation.doingBusinessAs":"soleProprietorship.doingBusinessAs","additionalInformation.registrationNumber":"soleProprietorship.registrationNumber","additionalInformation.vatNumber":"soleProprietorship.vatNumber","additionalInformation.vatAbsenceReason":"soleProprietorship.vatAbsenceReason","additionalInformation.taxInformation":"soleProprietorship.taxInformation","additionalInformation.exemptedFromTax":"soleProprietorship.taxAbsent","additionalInformation.dateOfIncorporation":"soleProprietorship.dateOfIncorporation","additionalInformation.registrationAddress.city":"soleProprietorship.registeredAddress.city","additionalInformation.registrationAddress.country":"soleProprietorship.registeredAddress.country","additionalInformation.registrationAddress.postalCode":"soleProprietorship.registeredAddress.postalCode","additionalInformation.registrationAddress.stateOrProvince":"soleProprietorship.registeredAddress.stateOrProvince","additionalInformation.registrationAddress.address":"soleProprietorship.registeredAddress.street","additionalInformation.registrationAddress.otherAddressInformation":"soleProprietorship.registeredAddress.street2","additionalInformation.operationalAddress.city":"soleProprietorship.principalPlaceOfBusiness.city","additionalInformation.operationalAddress.country":"soleProprietorship.principalPlaceOfBusiness.country","additionalInformation.operationalAddress.postalCode":"soleProprietorship.principalPlaceOfBusiness.postalCode","additionalInformation.operationalAddress.stateOrProvince":"soleProprietorship.principalPlaceOfBusiness.stateOrProvince","additionalInformation.operationalAddress.address":"soleProprietorship.principalPlaceOfBusiness.street","additionalInformation.operationalAddress.otherAddressInformation":"soleProprietorship.principalPlaceOfBusiness.street2"},Di={...ct(Zl)},Oi={constitutionalDocument:"companyConstitutionalDocument.constitutionalDocument"},Wr={...Di,...Oi},Ri={"basicDetails.firstName":"individual.name.firstName","basicDetails.lastName":"individual.name.lastName","basicDetails.phoneNumber.number":"individual.phone.number","basicDetails.phoneNumber.phoneCountryCode":"individual.phone.phoneCountryCode","basicDetails.phoneNumber.type":"individual.phone.type","basicDetails.email":"individual.email","additionalPersonalDetails.placeOfBirth":"individual.birthData.placeOfBirth","additionalPersonalDetails.birthDate":"individual.birthData.dateOfBirth","additionalPersonalDetails.idNumber":"individual.identificationData.number","additionalPersonalDetails.idNumberExempt":"individual.identificationData.nationalIdExempt","additionalPersonalDetails.typeOfIdentity":"individual.identificationData.type","additionalPersonalDetails.issuerState":"individual.identificationData.issuerState","additionalPersonalDetails.licenseCardNumber":"individual.identificationData.cardNumber","additionalPersonalDetails.expiryDate":"individual.identificationData.expiryDate","additionalPersonalDetails.nationality":"individual.nationality","additionalPersonalDetails.taxInformation":"individual.taxInformation","additionalPersonalDetails.city":"individual.residentialAddress.city","additionalPersonalDetails.country":"individual.residentialAddress.country","additionalPersonalDetails.postalCode":"individual.residentialAddress.postalCode","additionalPersonalDetails.stateOrProvince":"individual.residentialAddress.stateOrProvince","additionalPersonalDetails.address":"individual.residentialAddress.street","additionalPersonalDetails.otherAddressInformation":"individual.residentialAddress.street2"},ki={...ct(Ri)},xi={passport:"idVerificationMethod.idDocument",proofOfResidency:"proofOfResidency.proofOfResidency",proofOfNationalIdNumber:"proofOfNationalId.proofOfNationalId",proofOfRelationship:"proofOfRelationship.proofOfRelationship"},nr={...ki,...xi},eu={"trustRegistrationDetails.trustType":"trust.type","trustRegistrationDetails.legalName":"trust.name","trustRegistrationDetails.doingBusinessAs":"trust.doingBusinessAs","trustRegistrationDetails.hasDoingBusinessAs":"trust.doingBusinessAsAbsent","trustRegistrationDetails.country":"trust.countryOfGoverningLaw","trustRegistrationDetails.registrationNumber":"trust.registrationNumber","trustRegistrationDetails.taxInformation":"trust.taxInformation","trustRegistrationAddress.registrationAddress.city":"trust.registeredAddress.city","trustRegistrationAddress.registrationAddress.country":"trust.registeredAddress.country","trustRegistrationAddress.registrationAddress.postalCode":"trust.registeredAddress.postalCode","trustRegistrationAddress.registrationAddress.stateOrProvince":"trust.registeredAddress.stateOrProvince","trustRegistrationAddress.registrationAddress.address":"trust.registeredAddress.street","trustRegistrationAddress.registrationAddress.otherAddressInformation":"trust.registeredAddress.street2","trustRegistrationAddress.operationalAddress.city":"trust.principalPlaceOfBusiness.city","trustRegistrationAddress.operationalAddress.country":"trust.principalPlaceOfBusiness.country","trustRegistrationAddress.operationalAddress.postalCode":"trust.principalPlaceOfBusiness.postalCode","trustRegistrationAddress.operationalAddress.stateOrProvince":"trust.principalPlaceOfBusiness.stateOrProvince","trustRegistrationAddress.operationalAddress.address":"trust.principalPlaceOfBusiness.street","trustRegistrationAddress.operationalAddress.otherAddressInformation":"trust.principalPlaceOfBusiness.street2"},Ci={...ct(eu)},Mi={constitutionalDocument:"trustConstitutionalDocument.constitutionalDocument"},Gr={...Ci,...Mi},tu=["2_8036","2_8064","2_8067","2_8183","2_8189","2_8190","2_8191","2_8193","2_8247","2_8249","2_8248","2_8250"],nu=["1_14","2_901","2_902"],ru=["2_8210"],su=(t,e)=>{if(!t?.key)return;if(t.key==="idVerificationMethod")return"idVerificationMethod.idVerificationMethod";const n=nr;if(t.key in Kr)return Kr[t.key];switch(e){case G.INDIVIDUAL:return t.key in n?n[t.key]:void 0;case G.ORGANIZATION:return t.key in zt?zt[t.key]:void 0;case Le.BANK_ACCOUNT:return t.key in jt?jt[t.key]:void 0;case G.SOLE_PROPRIETORSHIP:return t.key in Wr?Wr[t.key]:void 0;case G.TRUST:default:return t.key in Gr?Gr[t.key]:void 0}},iu=["vatNumber"],ou=(t,e)=>{if(e==="vatNumber")t.fields.add("vatAbsenceReason"),t.fields.add("exemptedFromVat");else return},Li=(t,e)=>{const n=t.reduce((r,{code:s})=>{const i=Gl[s];if(!i)return r;const o=i.map(l=>su(l,e)).filter(Boolean);if(!o)return r;const{forms:d,fields:c}=o.reduce((l,u)=>{if(!u)return l;const[h,f]=u.split(/\.(.+)/,2);return iu.includes(f)&&ou(l,f),l.forms.add(h),l.fields.add(f),l},{forms:new Set,fields:new Set});return r.remediationsWithFormsAndFields.push({code:s,forms:Array.from(d),fields:Array.from(c)}),d.forEach(l=>r.forms.add(l)),r},{forms:new Set,remediationsWithFormsAndFields:[]});return{forms:Array.from(n.forms),remediationsWithFormsAndFields:n.remediationsWithFormsAndFields}},Yr=t=>tu.includes(t?.code)||nu.includes(t?.code),au=(t,e)=>{const n=t.remediatingActions??[];if(!n.length)return{verificationErrors:{},remediationActions:{}};const{forms:r,remediationsWithFormsAndFields:s}=Li(n,e),i={[t.code]:s},o=Array.from(r).reduce((c,l)=>(c={...c,[l]:{[t.code]:i}},c),{}),d=s.reduce((c,l)=>({...c,[l.code]:l}),{});return{verificationErrors:o,remediationActions:d}},Xr=(t,e)=>{const{allForms:n,childErrorsWithRemActions:r}=(t.subErrors??[t]).reduce((o,{code:d,remediatingActions:c})=>{if(!c?.length)return o;const{forms:l,remediationsWithFormsAndFields:u}=Li(c,e);return o.childErrorsWithRemActions[d]=u,l.forEach(h=>o.allForms.add(h)),o},{allForms:new Set,childErrorsWithRemActions:{}}),s=Array.from(n).reduce((o,d)=>(o={...o,[d]:{[t.code]:r}},o),{}),i=Object.values(r).flatMap(o=>o).reduce((o,d)=>({...o,[d.code]:d}),{});return{verificationErrors:s,remediationActions:i}},Qr=(t,e)=>{const n=Object.entries(e??{}).reduce((r,[s,i])=>(r={...r,[s]:{...t?.[s],...i}},r),{});return{...t,...n}};function At(t,e){return!t.statusWithReason||t.statusWithReason.status<e.status?e:t.statusWithReason}function du(t,e){return e.missingData?[...e.missingData,t]:[t]}function cu(t,e){return t.reduce((n,r)=>{const s=Qt(n);switch(r.type){case Y.INVALID_INPUT:{if(!Yr(r)){const{verificationErrors:i,remediationActions:o}=Xr(r,e);s.verificationErrors=Qr(s.verificationErrors,i),s.remediationActions=o,s.statusWithReason=At(n,{status:k.ERROR,reason:"invalidInputError",details:{verificationError:r}})}break}case Y.DATA_MISSING:{if(s.missingData=du(r,s),ru.includes(r.code)){const{verificationErrors:i,remediationActions:o}=r.subErrors?Xr(r,e):au(r,e);s.verificationErrors=Qr(s.verificationErrors,i),s.remediationActions={...s.remediationActions,...o}}Yr(r)||(s.statusWithReason=At(n,{status:k.DETAILS_REQUIRED,reason:"dataMissingError",details:{verificationError:r}}));break}case Y.DATA_REVIEW:s.isReviewRequired=!0,s.verificationErrors={...s.verificationErrors,review:{[r.code]:r.remediatingActions}},s.statusWithReason=At(n,{status:k.SUBMIT,reason:"dataReviewNeeded"});break;case Y.PENDING_STATUS:{s.statusWithReason=At(n,{status:k.PROCESSING,reason:"pendingStatusError"});break}}return s},{})}const lu=(t,e)=>t.reduce((n,r)=>{if(!r.entity?.type||!r.entity.id||!r.verificationErrors?.length)return n;const{type:s,id:i}=r.entity,o=n[i],d={...n,[i]:{baseEntityType:s,exactEntityType:void 0,verificationErrors:[...o?.verificationErrors??[],...r.verificationErrors]}};switch(e.type){case"bankAccount":case"recurringDetail":return d[i].exactEntityType=Le.BANK_ACCOUNT,d;default:return d[i].exactEntityType=hu(s,e,i),d}},{}),uu=(t,e)=>t.map(n=>e==="US"||n.code==="1_3083"?Yl(n):n);function Fi(t,e){const n=t?.problems??[],r=lu(n,t);return vt(r).reduce((s,[i,{verificationErrors:o,exactEntityType:d,baseEntityType:c}])=>({...s,[c]:{...s[c],[i]:cu(uu(o,e),d)}}),{})}const Ui=t=>t?.forms?.some(e=>e==="idVerificationMethod"||e==="manualIdUpload"||e==="proofOfResidency"||e==="proofOfNationalId"||e==="companyRegistrationDocument"||e==="companyTaxDocument"||e==="companyProofOfDirectorDocument"||e==="companyProofOfSignatoryDocument"||e==="companyProofOfOwnershipDocument"||e==="companyConstitutionalDocument"||e==="payoutAccountDocuments"||e==="trustConstitutionalDocument"),hu=(t,e,n)=>t!==Le.LEGAL_ENTITY?t:n===e.id?e.type:e.entityAssociations?.find(r=>n===r.legalEntityId)?.entityType,Bi=t=>Object.keys(t?.capabilities??{}),ze={DEFINED_BENEFICIARY:"definedBeneficiary",UNDEFINED_BENEFICIARY:"undefinedBeneficiary",PROTECTOR:"protector",TRUSTEE:"secondaryTrustee",SETTLOR:"settlor"},Ze={BENEFICIARY:"beneficiary",PROTECTOR:"protector",TRUSTEE:"trustee",SETTLOR:"settlor"},Nt={},$t={},ht=(t,e)=>`${t}_${e}`.toLowerCase(),fu=t=>(Nt[t]||(Nt[t]={},$t[t].forEach(({id:e,name:n})=>{Nt[t][e]=n})),Nt[t]),Jr=(t,e)=>$t[t]?fu(t)[e]:null,tt={country:"countries",state:t=>`states/${t}`};function rr(t){return{getCountryName:e=>{if(!e)return null;const n=ht(tt.country,t);return Jr(n,e)},getStateName:(e,n)=>{const r=ht(tt.state(n),t);return Jr(r,e)},setDataset:(e,n)=>{const r=ht(e,t);$t[r]=n},getDataset:e=>{const n=ht(e,t);return $t[n]},getDatasetKey:e=>ht(e,t)}}const mu=re(),pu=Object.assign({"../countries/de-DE.json":()=>Promise.resolve().then(()=>require("./de-DE-B3nctkG8-Dsybuewy.cjs")),"../countries/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-DSoLr6rp-Cg2B2poi.cjs")),"../countries/es-ES.json":()=>Promise.resolve().then(()=>require("./es-ES-BRfK6tX7-DV7DZBhg.cjs")),"../countries/fr-FR.json":()=>Promise.resolve().then(()=>require("./fr-FR-Dk6Lw2On-DXiqkS7m.cjs")),"../countries/it-IT.json":()=>Promise.resolve().then(()=>require("./it-IT-D7G4BaP7-CsLA5jcE.cjs")),"../countries/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-DTW_hY1L-BZ8RO3sL.cjs")),"../countries/nl-NL.json":()=>Promise.resolve().then(()=>require("./nl-NL-CFzm75Jw-D-mp0_I2.cjs")),"../countries/sv-SE.json":()=>Promise.resolve().then(()=>require("./sv-SE-rckxD-43-DD4kdnU7.cjs"))}),gu=async t=>{const e=pu[`../countries/${t}.json`];return e?(await e()).default:(mu.warn(`No countries dataset for ${t}, falling back to en-US`),(await Promise.resolve().then(()=>require("./en-US-DSoLr6rp-Cg2B2poi.cjs"))).default)},yu=re(),Zr=Object.assign({"../states/AU/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-Do3mE4BR-BkpAJgyl.cjs")),"../states/BR/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-DWT3bRZC-CyEGdZZX.cjs")),"../states/BR/pt-BR.json":()=>Promise.resolve().then(()=>require("./pt-BR-CTXtdAVc-B3jiM25n.cjs")),"../states/CA/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-PLYPmyFJ-DOJSFN3a.cjs")),"../states/JP/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-QbdqemZi-Ce3k8Joc.cjs")),"../states/JP/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-DU7yCJYq-BQZsSMvI.cjs")),"../states/NZ/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-C_9Fc9mP-BIvFCQKP.cjs")),"../states/US/en-US.json":()=>Promise.resolve().then(()=>require("./en-US-9KQC6F8--D1s61msu.cjs"))}),bu=async(t,e)=>{const n=Zr[`../states/${t}/${e}.json`];if(!n){yu.warn(`No ${t} states dataset for ${e}, falling back to en-US`);const r=Zr[`../states/${t}/en-US.json`];return(await r()).default}return(await n()).default},vu=async(t,e)=>{if(t===tt.country)return gu(e);if(t.startsWith("states")){const n=t.slice(t.indexOf("/")+1);return bu(n,e)}throw new Error(`Unknown dataset: ${t}`)},_u=async(t,e)=>{const n=rr(e),r=n.getDataset(t);return r?new Promise(s=>{s(r)}):vu(t,e).then(s=>(n.setDataset(t,s),s))};function sr(t,e){const{i18n:n}=Ee(),[r,s]=a.d([]),[i,o]=a.d(!1);return a.y(()=>{e||_u(t,n.language).then(d=>{const c=d&&d.length?d:[];s(c)}).catch(()=>{s([])}).finally(()=>{o(!0)})},[t,n.language,e]),{dataset:r,loaded:i}}const Iu=a.X(!1),Su=()=>a.x(Iu),un=re(),Vi=(t,e,n)=>{const{serializer:r,parser:s,syncData:i}=a.T(()=>({serializer:JSON.stringify,parser:JSON.parse,syncData:!0,...n}),[n]),o=Su()||typeof window>"u",d=a.A(null),[c,l]=a.d(()=>{if(o)return e;try{return d.current=window.localStorage.getItem(t),d.current?s(d.current):e}catch(u){return un.error(u),e}});return a.y(()=>{if(o)return;const u=()=>{if(c!==void 0){const h=r(c),f=d.current;d.current=h,window.localStorage.setItem(t,h),window.dispatchEvent(new StorageEvent("storage",{storageArea:window.localStorage,url:window.location.href,key:t,newValue:h,oldValue:f}))}else window.localStorage.removeItem(t),window.dispatchEvent(new StorageEvent("storage",{storageArea:window.localStorage,url:window.location.href,key:t}))};try{u()}catch(h){un.error(h)}},[c,o]),a.y(()=>{if(!i)return;const u=h=>{if(!(h.key!==t||h.storageArea!==window.localStorage))try{h.newValue!==d.current&&(d.current=h.newValue,l(h.newValue?s(h.newValue):void 0))}catch(f){un.error(f)}};if(!o)return window.addEventListener("storage",u),()=>{window.removeEventListener("storage",u)}},[t,i,o]),[c,l]},Tu=t=>`ACCOUNT_HOLDER-${t}`,qi=()=>{const{rootLegalEntityId:t}=we(),[e,n]=Vi(Tu(t.value),void 0);return{accountHolder:e,setAccountHolder:n}};function ir(t,e=!1,n=!0){const r=[];return Object.entries(t).forEach(([s,i])=>{if(typeof i=="object"&&i!==null){const o=ir(i).map(d=>`${s}.${d}`);r.push(...o);return}(i!==void 0||e)&&(i||!n)&&r.push(s)}),r}const ji=a.X(null),zi=()=>{const{data:t}=Ye(Fe);return t?.capabilities},wu=async(t,e)=>at({baseUrl:e,path:`legalEntities/${t}/configurations/supportedCountries`}),Eu=t=>{const{rootLegalEntityId:e,baseUrl:n}=we();return rt({queryKey:["supportedCountries"],queryFn:()=>wu(e.value,n.value),...t})},$i=t=>{const e=a.x(Jn),{getSetting:n}=e;return n(t)},Au=[v.Austria,v.Belgium,v.Croatia,v.Cyprus,v.Estonia,v.Finland,v.France,v.Germany,v.Greece,v.Ireland,v.Italy,v.Latvia,v.Lithuania,v.Luxembourg,v.Malta,v.Netherlands,v.Portugal,v.Slovakia,v.Slovenia,v.Spain,v.UnitedKingdom,v.UnitedStates],Hi=()=>{const e=Object.keys(zi()??{}).includes("issueBankAccount"),n=$i("acceptedCountries"),{data:r}=Eu({enabled:!n}),s=n??r?.countries;if(s)return e?Au.filter(i=>s.includes(i)):s},or=(t,e)=>t.reduce((n,r)=>({...n,[r]:e(r)}),{});class Ki{supportedLocales;translations;locale;constructor({locale:e=be,translations:n=Vt,allowedLocales:r=[be]}){this.supportedLocales=[...new Set([be,...r])];const s=Zs(e)??ic(e,this.supportedLocales);this.locale=s&&this.supportedLocales.includes(s)?s:be,this.translations={...Vt,...n}}get(e,n){const r=typeof e=="object"?e.key:e,s=typeof e=="object"?{...n,values:{...e.values,...n?.values}}:n,i=oc(this.translations,r,s);return i!==null?i:r}}const Nu={i18n:new Ki({}),setLocale:Z},Pu=a.X(Nu),Du=async(t,e)=>{const{experiments:n,features:r}=await at({baseUrl:e,path:`legalEntities/${t}/flags`});return{experiments:n?Object.values(n).reduce((i,o)=>({...i,[o]:!0}),{}):{},features:r}},Wi=t=>{const{rootLegalEntityId:e,baseUrl:n}=we(),{experiments:r}=Jt();return rt({queryKey:["toggles"],queryFn:()=>Du(e.value,n.value),enabled:!!r.EnableOnboardingTogglesEndpoint,...t})},Gi=[{roleTypes:[ze.SETTLOR],min:1,max:1,label:Ze.SETTLOR},{roleTypes:[ze.DEFINED_BENEFICIARY,ze.UNDEFINED_BENEFICIARY],min:1,max:1/0,label:Ze.BENEFICIARY},{roleTypes:[ze.PROTECTOR],min:0,max:1/0,label:Ze.PROTECTOR},{roleTypes:[ze.TRUSTEE],min:1,max:1/0,label:Ze.TRUSTEE}],Ou=t=>{const e=Yi(t);if(!e)return[];const r=We(t,e).map(s=>s.legalEntityId).filter(s=>s!==void 0);return[...r,...r.flatMap(s=>Ru(t,s))]},Ru=(t,e)=>sl(t,e).map(r=>r.legalEntityId).filter(r=>r!==void 0),Yi=t=>t?.entityAssociations?.find(e=>e.entityType===G.TRUST&&e.associatorId===t.id)?.legalEntityId,ku=t=>{const e=Yi(t);return e?[e]:[]},xu=t=>t.length?Gi.every(({roleTypes:e,min:n})=>n===0?!0:(t.filter(({roles:s})=>e.some(i=>s.includes(i)))?.length??0)>=n):!1,Cu=["name.firstName","name.lastName","residentialAddress.country"],Mu=["legalName","registeredAddress.country"],Lu=["name","registeredAddress.country"],Fu=["name","registeredAddress.country"],Uu=["name","countryOfGoverningLaw","registeredAddress.country"],Bu={[G.INDIVIDUAL]:Cu,[G.ORGANIZATION]:Mu,[G.TRUST]:Lu,[G.SOLE_PROPRIETORSHIP]:Fu,[G.UNINCORPORATED_PARTNERSHIP]:Uu};function ar(t){const e=t?.type;if(!e)return!0;if(t.documentDetails?.length)return!1;const n=Bu[e],r=t[e];if(!r)return!0;const s=ir(r,!1,!1),i=[...n].sort();return[...s].sort().every((d,c)=>d===i[c])}function Vu(t){return t.bankAccount!==void 0}const Xi=t=>!!(Vu(t)?t.bankAccount.trustedSource:t.trustedSource),Qi=t=>t?.entityAssociations?.find(e=>e.entityType===G.UNINCORPORATED_PARTNERSHIP&&e.associatorId===t.id)?.legalEntityId,qu=t=>{const e=Qi(t);return e?[e]:[]},ju=t=>{const e=Qi(t);if(!e)return[];const r=We(t,e).map(i=>i.legalEntityId).filter(i=>i!==void 0),s=r.flatMap(i=>We(t,i)).map(i=>i.legalEntityId).filter(i=>i!==void 0);return[t.id,...r,...s]},Ji={VALID:"valid"},zu=(t,e)=>{const n=e.individual?.support??e.organization?.support,r=t.LegalEntity?.[e.id]?.missingData?.some(i=>Nn.includes(i.code));if(!n)return{status:k.DETAILS_REQUIRED,reason:"rootLegalEntityIsEmpty"};if(r)return{status:k.DETAILS_REQUIRED,reason:"dataMissingError",details:{missingData:t.LegalEntity?.[e.id].missingData?.filter(i=>Nn.includes(i.code))}};const s=dr(e);return s.length>0?{status:k.PROCESSING,reason:"pendingCapabilities",details:{pendingCapabilities:s}}:eo(e)?{status:k.FINISHED,reason:"allCapabilitiesValid"}:{status:k.FINISHED,reason:"noIssuesFound"}},$u=({taskType:t,capabilityProblems:e,rootLegalEntity:n,relevantEntityIds:r,ignorePendingCapabilities:s=!1})=>{const i=t===R.PAYIN||t==R.PAYOUT?Le.BANK_ACCOUNT:Le.LEGAL_ENTITY;if(r.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};if(r.includes(n.id)&&ar(n))return{status:k.EMPTY,reason:"rootLegalEntityIsEmpty"};const o=Zi(i,e,r,t);if(o.length>0)return o[0].statusWithReason;const d=dr(n);return!s&&d.length>0?{status:k.PROCESSING,reason:"pendingCapabilities",details:{pendingCapabilities:d}}:r.includes(n.id)&&eo(n)?{status:k.FINISHED,reason:"allCapabilitiesValid"}:{status:k.FINISHED,reason:"noIssuesFound"}},Hu=({capabilityProblems:t,rootLegalEntity:e,relevantEntityIds:n})=>{if(n.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};if(n.includes(e.id)&&ar(e))return{status:k.EMPTY,reason:"rootLegalEntityIsEmpty"};const r=Zi(Le.LEGAL_ENTITY,t,n,R.DECISION_MAKER_OVERVIEW);if(r.length>0)return r[0].statusWithReason;const s=dr(e).filter(i=>!/.*TransferInstrument/gim.test(i));return s.length>0?{status:k.PROCESSING,reason:"pendingCapabilities",details:{pendingCapabilities:s}}:n.includes(e.id)&&Wu(e)?{status:k.FINISHED,reason:"allCapabilitiesValid"}:{status:k.FINISHED,reason:"noIssuesFound"}},Ku=[k.DETAILS_REQUIRED,k.DOWNLOAD,k.ERROR,k.PROCESSING];function Zi(t,e,n,r){if(!e?.[t]||!n.length)return[];const s=Qt(e);return r!==R.CUSTOMER_SUPPORT&&n.forEach(o=>{s.LegalEntity?.[o]?.missingData&&(s.LegalEntity[o].missingData=s.LegalEntity?.[o]?.missingData?.filter(d=>!Nn.includes(d.code)))}),Object.entries(s[t]??{}).filter(([o])=>n.includes(o)).map(([,o])=>o).filter(o=>o.statusWithReason!==void 0&&Ku.includes(o.statusWithReason.status)).sort((o,d)=>d.statusWithReason.status-o.statusWithReason.status)}const dr=t=>vt(t.capabilities??{}).filter(([,e])=>e?.verificationStatus==="pending").reduce((e,[n])=>[...e,n],[]),eo=t=>Object.values(t?.capabilities??{}).every(e=>e.verificationStatus===Ji.VALID),Wu=t=>{for(const[e,n]of Object.entries(t?.capabilities??{}))if(!/.*TransferInstrument/gim.test(e)&&n.verificationStatus!==Ji.VALID)return!1;return!0},Gu=({taskIdentifier:t,capabilityProblems:e,rootLegalEntity:n,accountHolder:r,legalRepresentative:s,trustMembers:i,transferInstruments:o})=>{const{taskType:d,id:c}=cr(t);let l=[],u=!1;switch(d){case R.INDIVIDUAL:case R.BUSINESS_DETAILS:l=[n.id];break;case R.LEGAL_REPRESENTATIVE_DETAILS:if(!s)return{status:k.DETAILS_REQUIRED,reason:"legalRepresentativeNeeded"};l=[s.legalEntityId];break;case R.SOLE_PROPRIETOR_COMPANY:l=rl(n);break;case R.DECISION_MAKER_OVERVIEW:return ol(n)?(l=Qn(n),Hu({capabilityProblems:e,rootLegalEntity:n,relevantEntityIds:l})):{status:k.DETAILS_REQUIRED,reason:"missingRequiredDecisionMakers"};case R.DECISION_MAKER:if(!c)throw new Error("Decision maker task identifier should specify an ID");l=[c];break;case R.TRUST:{const h=ku(n);if(r==="aTrust"&&h.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};l=h;break}case R.TRUST_MEMBER_OVERVIEW:if(!xu(i))return{status:k.DETAILS_REQUIRED,reason:"missingRequiredTrustMembers"};l=Ou(n);break;case R.TRUST_MEMBER:case R.TRUST_MEMBER_INDIVIDUAL:case R.TRUST_MEMBER_COMPANY:case R.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY:case R.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:if(!c)throw new Error("Trust member task identifier should specify an ID");if(c==="undefinedBeneficiary"){l=[];break}l=[c,...We(n,c).map(h=>h.legalEntityId)];break;case R.PAYIN:case R.PAYOUT:{if(!c)return{status:k.DETAILS_REQUIRED,reason:"bankAccountNeeded"};const h=o.find(f=>f.id===c);if(!h)throw new Error(`Could not find transfer instrument with id ${c}`);u=Xi(h),l=[c];break}case R.CUSTOMER_SUPPORT:return zu(e,n);case R.UNINCORPORATED_PARTNERSHIP:{const h=qu(n);if(r==="anUnincorporatedPartnership"&&h.length===0)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};l=h;break}case R.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW:{if(l=ju(n),l?.length===1)return{status:k.EMPTY,reason:"newEntityAlwaysEmpty"};break}}return $u({taskType:d,rootLegalEntity:n,capabilityProblems:e,relevantEntityIds:l,ignorePendingCapabilities:u})},cr=t=>{const e=t.indexOf("-");if(e===-1)return{taskType:t};const n=t.slice(0,e),r=t.slice(e+1);return{taskType:n,id:r}},Yu=({taskTypes:t,rootLegalEntity:e,accountHolder:n,capabilityProblems:r,trustMembers:s,transferInstruments:i,unincorporatedPartnershipMembers:o,legalRepresentative:d})=>{if(!e||!r)return[];const c=t.map(Xu),l=[...c];return c.includes(R.PAYIN)&&i.forEach(u=>l.push(`PAYIN-${u.id}`)),c.includes(R.PAYOUT)&&i.forEach(u=>l.push(`PAYOUT-${u.id}`)),c.includes(R.DECISION_MAKER_OVERVIEW)&&Qn(e).forEach(h=>l.push(`DECISION_MAKER-${h}`)),(d||Yn(e))&&l.push(R.LEGAL_REPRESENTATIVE_DETAILS),n==="mySoleProprietorName"&&l.push(R.SOLE_PROPRIETOR_COMPANY),n==="aTrust"&&(l.push(R.TRUST),l.push(R.TRUST_MEMBER_OVERVIEW),s.forEach(u=>{if(u.trustMemberType==="undefinedBeneficiary"){l.push("TRUST_MEMBER-undefinedBeneficiary");return}switch(u.legalEntityType){case"individual":l.push(`TRUST_MEMBER_INDIVIDUAL-${String(u.legalEntityId)}`);return;case"organization":l.push(`TRUST_MEMBER_COMPANY-${String(u.legalEntityId)}`);return}})),n==="anUnincorporatedPartnership"&&(l.push(R.UNINCORPORATED_PARTNERSHIP),l.push(R.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW),o?.forEach(u=>{switch(u.legalEntityType){case"individual":l.push(`UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL-${String(u.legalEntityId)}`);return;case"organization":l.push(`UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY-${String(u.legalEntityId)}`);return}})),l},Xu=t=>{switch(t){case R.DECISION_MAKER:return R.DECISION_MAKER_OVERVIEW;case R.TRUST_MEMBER:return R.TRUST_MEMBER_OVERVIEW;default:return t}},Qu=re(),Ju=({rootLegalEntity:t})=>{const e=ue(t),n=ue([]),r=ue(),s=ue([]),i=ue([]),o=le(()=>Qe(e.value)),d=le(()=>Bi(e.value)),c=le(()=>Fi(e.value,o.value)),l=le(()=>Xn(e.value)),u=le(()=>e.value.transferInstruments??[]),h=le(()=>Yu({taskTypes:n.value,rootLegalEntity:e.value,accountHolder:r.value,capabilities:d.value,capabilityProblems:c.value,legalRepresentative:l.value,transferInstruments:u.value,trustMembers:s.value,unincorporatedPartnershipMembers:i.value})),f=le(()=>h.value.reduce((m,p)=>{try{m[p]=Gu({taskIdentifier:p,accountHolder:r.value,capabilityProblems:c.value,rootLegalEntity:e.value,legalRepresentative:l.value,trustMembers:s.value,transferInstruments:u.value})}catch(g){Qu.error(`Could not calculate task status for ${p}. `,g)}return m},{}));return{rootLegalEntity:e,taskTypes:n,accountHolder:r,trustMembers:s,unincorporatedPartnershipMembers:i,rootLegalEntityCountry:o,capabilities:d,capabilityProblems:c,legalRepresentative:l,transferInstruments:u,tasks:h,taskStatuses:f,setRootLegalEntity:m=>e.value=m,setTaskTypes:m=>n.value=m,setAccountHolder:m=>r.value=m,setTrustMembers:m=>s.value=m,setUnincorporatedPartnershipMembers:m=>i.value=m}},to=a.X(null);function no(){const t=a.x(to);if(!t)throw new Error("`useGlobalStore()` must be called from within a `StoreContext.Provider`");return t}const ro=t=>t.endsWith("/")?t:`${t}/`;ne.use(yd).init({defaultNS:!1,fallbackLng:"en-US",load:"currentOnly",resources:{},showSupportNotice:!1,react:{transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["strong","i","em"],bindI18n:"languageChanged",bindI18nStore:"added"},interpolation:{prefix:"%{",suffix:"}"}});const Zu=async(t,e)=>at({baseUrl:e,path:`legalEntities/${t}/configurations/version`}),so=t=>{const{rootLegalEntityId:e,baseUrl:n}=we();return rt({queryKey:["versionConfiguration"],queryFn:()=>Zu(e.value,n.value),...t})},eh=async(t,e)=>Yt({baseUrl:t,path:"analytics/ui"},e),th=(t,e,n)=>{const{baseUrl:r}=we();return rt({queryKey:["analyticsSession",e],queryFn:()=>eh(r.value,t),enabled:!!e,...n})};class nh{queue=[];subscriptions=new Set;baseTrackingPayload;sharedEventProperties;constructor(){this.baseTrackingPayload={category:"onboarding",subCategory:"hosted onboarding"},this.sharedEventProperties={}}add(...e){this.queue.push(...e)}notifySubscribers(){for(;this.queue.length>0;){const e=this.queue.pop();this.subscriptions.forEach(n=>n(e))}}addEvent(e,n){const r={...this.baseTrackingPayload,...n};this.add({type:"add_event",name:e,properties:r}),this.notifySubscribers()}addJourneyEvent(e,n){this.addEvent(e,{actionLevel:"journey",...n})}addTaskEvent(e,n){this.addEvent(e,{actionLevel:"task",...n})}addPageEvent(e,n){this.addEvent(e,{actionLevel:"page",page:this.sharedEventProperties.page,...n})}addFieldEvent(e,n){this.addEvent(e,{actionLevel:"field",page:this.sharedEventProperties.page,...n})}trackExperiment({name:e,variant:n}){this.add({type:"add_event",name:"$experiment_started",properties:{...this.baseTrackingPayload,"Experiment name":e,"Variant name":n}})}subscribe(e){this.subscriptions.add(e)}updateBaseTrackingPayload(e){this.baseTrackingPayload={...this.baseTrackingPayload,...e}}updateSharedEventProperties=e=>{this.sharedEventProperties={...this.sharedEventProperties,...e}};unsubscribe(e){this.subscriptions.has(e)&&this.subscriptions.delete(e)}}const rh=()=>new nh,sh=async(t,e,n)=>Yt({baseUrl:t,path:`analytics/ui/${e}`},n),ih=(t,e)=>{const{baseUrl:n}=we();return Ts({mutationFn:r=>sh(n.value,t,r),...e})},oh=(t,e)=>{const{type:n,name:r,properties:s}=t;return{eventName:r,eventType:n,eventData:s||{},legalEntityId:e.legalEntityId,userAgent:e.userAgent,componentName:e.componentName,sdkVersion:e.sdkVersion}},ah=(t,e)=>{let n;switch(e){case"aTrust":n="trust";break;case"mySoleProprietorName":n="soleProprietorship";break;case"anUnincorporatedPartnership":n="unincorporatedPartnership";break;default:n=void 0}const r=t.entityAssociations?.find(s=>s.type===n);return{associatedLegalEntityType:n,associatedLegalEntityId:r?.legalEntityId}},dh=({userEvents:t,sessionId:e,sessionData:n})=>{const r="4.0.0-compact.9",{data:s}=Ye(Fe),{mutateAsync:i}=ih(e??""),{accountHolder:o}=qi();a.y(()=>{if(!s)return;const c=Qe(s),l=Object.keys(s?.capabilities??{});t.updateBaseTrackingPayload({entityType:s.type,countryCode:c,capabilities:l,sdkVersion:r,componentName:n.componentName,userAgent:navigator.userAgent,...ah(s,o)})},[s,o,r,n.componentName,t]);const d=a.q(c=>{const l=oh(c,n);i(l)},[i,n]);a.y(()=>{if(e)return t.subscribe(d),()=>{t.unsubscribe(d)}},[e,i,t,n,d])},ch=t=>{const{dateOfIncorporation:e,financialReports:n,registeredAddress:r,registrationNumber:s,support:i,taxInformation:o,type:d,vatNumber:c}=t,l=n?.[0];return{dateOfIncorporation:!!e,financialReport:{annualTurnover:!!l?.annualTurnover,balanceSheetTotal:!!l?.balanceSheetTotal,dateOfFinancialData:!!l?.dateOfFinancialData,employeeCount:!!l?.employeeCount},registeredAddress:{city:!!r?.city,postalCode:!!r?.postalCode,stateOrProvince:!!r?.stateOrProvince,street:!!r?.street},registrationNumber:!!s,support:{email:!!i?.email,phone:!!i?.phone},taxInformation:!!o?.some(u=>u.country&&u.number),type:!!d,vatNumber:!!c}},lh=t=>{if(!t)return;const{organization:e,transferInstruments:n,entityAssociations:r}=t;return{transferInstrumentCount:n?.length||0,entityAssociations:r?.map(s=>s.type)||[],organization:e&&ch(e)}},io=({componentName:t,children:e,rootLegalEntityId:n})=>{const{settings:r}=en(),{data:s}=Ye(Fe),{data:i,isError:o,isLoading:d}=so(),c=a.T(()=>rh(),[]),l=d?void 0:o?1:i?.version,u=s?.capabilities&&Object.keys(s.capabilities),h=u?.includes("receivePayments")&&l&&l>1,f={sdkVersion:"4.0.0-compact.9",componentName:t,userAgent:navigator.userAgent,legalEntityId:n,capabilities:u,entityType:s?.type,eventData:h?lh(s):void 0,userData:{onboardingVersion:l,isDirectMerchant:r.merchantType==="direct",settings:r,country:s&&Qe(s)}},{data:m}=th(f,l);return dh({userEvents:c,sessionId:m?.id,sessionData:f}),a.u(Js.Provider,{value:c,children:e})};function oo({children:t,experiments:e,refreshExperiments:n}){const{data:r}=Wi(),{data:s}=so(),i=a.T(()=>({...r?.features,...r?.experiments,...e,...or(s?.features??[],()=>!0)}),[s,e,r?.experiments,r?.features]),o=a.T(()=>({isExperimentEnabled:d=>i[d]??!1,refreshExperiments:n,experiments:i}),[i,n]);return a.u(ti.Provider,{value:o,children:t})}const uh=Object.assign({"./locales/da-DK.json":()=>Promise.resolve().then(()=>require("./da-DK-Cv6XUSoW-XrirZvM9.cjs")),"./locales/de-DE.json":()=>Promise.resolve().then(()=>require("./de-DE-BplDsJEb-HPg3XgvU.cjs")),"./locales/en-US.json":()=>Promise.resolve().then(()=>Ln),"./locales/es-ES.json":()=>Promise.resolve().then(()=>require("./es-ES-DRsix_Xn--G4QsVsf.cjs")),"./locales/fi-FI.json":()=>Promise.resolve().then(()=>require("./fi-FI-BftTiz0c-4bXBC8s3.cjs")),"./locales/fr-FR.json":()=>Promise.resolve().then(()=>require("./fr-FR-C6jxjXAI-CzQV3htW.cjs")),"./locales/it-IT.json":()=>Promise.resolve().then(()=>require("./it-IT-CXlaZNIj-_Ja7g3_X.cjs")),"./locales/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-A6ArIIZ8-DaGCcv78.cjs")),"./locales/nl-NL.json":()=>Promise.resolve().then(()=>require("./nl-NL-BwWFlBOs-DgZiOYWm.cjs")),"./locales/no-NO.json":()=>Promise.resolve().then(()=>require("./no-NO-JWsSd7iY-BtbX0Bcc.cjs")),"./locales/pt-BR.json":()=>Promise.resolve().then(()=>require("./pt-BR-BJOww8U1-BrWJTSOE.cjs")),"./locales/sl-SI.json":()=>Promise.resolve().then(()=>require("./sl-SI-BfO3xEJx-D7RrxQE5.cjs")),"./locales/sv-SE.json":()=>Promise.resolve().then(()=>require("./sv-SE-CMLKzwtj-C_teo0xK.cjs"))}),hh=async t=>{const e=uh[`./locales/${t}.json`];if(!e)throw new Error(`Locale ${t} is not supported.`);return(await e()).default},es=re(),fh=({locale:t,allowedLocales:e})=>{const[n,r]=a.d({translations:Vt,locale:be});return a.y(()=>{if(!e)return;const s=e.includes(t),i=s?t:be;if(n.locale!==i){if(s||es.error(`
4
4
  "${t}" isn't a supported locale. Please use one of the following:
5
- - ${Qs(e)}. falling back to "${be}"`),i===be){r({translations:Vt,locale:be});return}hh(i).then(o=>{r({translations:o,locale:i})}).catch(o=>{es.error("Error while loading translations",o)})}},[t,e,n.locale]),n},hn=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","et-EE","fi-FI","fr-FR","hr-HR","hu-HU","it-IT","lt-LT","lv-LV","nl-NL","no-NO","pl-PL","pt-PT","pt-BR","ro-RO","sk-SK","sl-SI","sv-SE"],ao=({locale:t,eventEmitter:e,children:n})=>{const r=Xe(),{isExperimentEnabled:s}=Jt(),{i18n:i}=Ee("common"),[o,d]=a.d(t),[c,l]=a.d(t);s("EnableJapanLocalization")&&hn.push("ja-JP");const{translations:u,locale:h}=fh({locale:o,allowedLocales:hn}),f=a.T(()=>new Ki({locale:h,translations:u,allowedLocales:hn}),[h,u]);a.y(()=>{r.updateBaseTrackingPayload({locale:o})},[o,r]),a.y(()=>{(async()=>o==="ja-JP"&&!s("EnableJapanLocalization")||i.changeLanguage(o))()},[o,i,s]);const m=a.T(()=>({i18n:f,setLocale:d}),[f,d]);return t!==c&&(d(t),l(t)),a.y(()=>{if(e)return e.on("updateLocale",d),()=>e.off("updateLocale",d)},[e]),a.u(Pu.Provider,{value:m,children:a.u(a.P,{fallback:a.u(De,{}),children:n})})},mh=new wa({defaultOptions:{queries:{staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0,refetchOnMount:!0,retry:2},mutations:{retry:1}}}),co=({children:t})=>a.u(Aa,{client:mh,children:t}),ph={acceptedCountries:void 0,allowBankAccountFormatSelection:!1,allowDebugUi:!1,allowIntraRegionCrossBorderPayout:!1,changeLegalEntityType:!0,editPrefilledCountry:!0,requirePciSignEcomMoto:!1,requirePciSignEcommerce:!1,requirePciSignPos:!1,requirePciSignPosMoto:!1,hideOnboardingIntroductionIndividual:!0,hideOnboardingIntroductionOrganization:!0,hideOnboardingIntroductionTrust:!0,hideOnboardingIntroductionSoleProprietor:!0,viewOnboardingGuidance:!1,transferInstrumentLimit:0,instantBankVerification:!0,showServiceAgreementsFirst:!1,showBusinessFinancingFirst:!1,enforceLegalAge:!1,merchantType:void 0,allowBusinessLines:!1};function lo({children:t,settings:e}){const n={...ph,...e},r=a.T(()=>({isSettingEnabled:s=>n[s],getSetting:s=>n[s],settings:n}),[e]);return a.u(Jn.Provider,{value:r,children:t})}function gh(t){return _t(t).forEach(e=>{(t[e]===null||Ue(t[e]))&&delete t[e]}),t}const yh={data:{},allData:{},initialData:{},errors:{},valid:{},fieldProblems:{},isValid:!1,allValid:!1},ts=re();function bh(){const[t,e]=a.d({}),[n,r]=a.d([]),s=o=>{r(o)};function i({currentState:o,prevState:d},c){switch(c.type){case"addToState":{if(!c.value.dataStoreId)return ts.warn("No dataStoreId provided, hence no update can be done"),{currentState:o,prevState:d};const l=c.value.dataStoreId,u=structuredClone(o),h=c.value.schema||null,f=h&&t?.[l]?.toString()!==h.toString(),m={...u,data:{...u.data,[l]:{...u.data[l],...c.value.data}},allData:{...u.allData,[l]:{...u.allData[l],...gh(c.value.data)}},errors:{...u.errors,[l]:{...u.errors[l],...c.value.errors}},valid:{...u.valid,[l]:{...u.valid[l],...c.value.valid}},fieldProblems:{...u.fieldProblems,[l]:{...u.fieldProblems[l],...c.value.fieldProblems}}};if(f){e({...t,[l]:h});const p=h.reduce((g,b)=>{const y=m.data[l],_=m.allData[l],I=m.valid[l],T=m.errors[l],E=m.fieldProblems[l];return{data:{...g.data,[b]:y[b]??_[b]},valid:{...g.valid,[b]:I[b]},errors:{...g.errors,[b]:T[b]},fieldProblems:{...g.fieldProblems,[b]:E[b]}}},{data:{},valid:{},errors:{},fieldProblems:{}});m.data[l]=p.data,m.valid[l]=p.valid,m.errors[l]=p.errors,m.fieldProblems[l]=p.fieldProblems}return m.validityByForm={...m.validityByForm,[l]:Object.values(m.valid[l]).every(p=>p)},m.allValid=Object.values(m.validityByForm).every(p=>p),m.isValid=n.length?n.every(p=>m.validityByForm?.[p]):m.allValid,m.initialData=structuredClone(u.initialData),{currentState:m,prevState:u}}case"removeFromState":{if(!c.value.dataStoreId)return ts.warn("No dataStoreId provided, hence no update can be done"),{currentState:o,prevState:d};const l=c.value.dataStoreId,u=structuredClone(o),h={...u,data:{...u.data,[l]:{}},allData:{...u.allData,[l]:{}},errors:{...u.errors,[l]:{}},valid:{...u.valid,[l]:!1},fieldProblems:{...u.fieldProblems,[l]:{}}};return h.validityByForm={...h.validityByForm,[l]:!1},h.allValid=Object.values(h.validityByForm).every(f=>f),h.isValid=n.length?n.every(f=>h.validityByForm?.[f]):h.allValid,h.initialData=structuredClone(u.initialData),{currentState:h,prevState:u}}case"resetState":return{currentState:yh,prevState:o};default:throw new Error(`Unhandled action type: ${c.type}`)}}return{reducer:i,setCurrentForms:s}}function uo({defaultData:t={},children:e}){const n={currentState:{data:t,allData:t,valid:{},errors:{},fieldProblems:{},validityByForm:{},initialData:t},prevState:{}},r=bh(),[s,i]=a.h(r.reducer,n),o=a.T(()=>({state:s,dispatch:i,setActiveForms:r.setCurrentForms,getData:()=>s?.currentState?.data??{},getState:()=>s?.currentState}),[r,s]);return a.u(ji.Provider,{value:o,children:e})}const ho=({content:t,footer:e})=>a.u("div",{className:"adyen-kyc-dropin",children:[a.u("div",{className:"adyen-kyc-dropin__content",children:a.u("div",{className:"adyen-kyc-dropin__content-main",children:t})}),e&&a.u("div",{className:"adyen-kyc-dropin__footer-container",children:e})]}),fo=({children:t})=>{const e=Hi(),{t:n,i18n:r}=Ee("common"),{data:s}=Ye(Fe),{dataset:i}=sr(tt.country);if(Vn(r,[{ns:"common",importFn:l=>Un(Object.assign({"../../../language/locales/da-DK.json":()=>Promise.resolve().then(()=>require("./da-DK-Cv6XUSoW-XrirZvM9.cjs")),"../../../language/locales/de-DE.json":()=>Promise.resolve().then(()=>require("./de-DE-BplDsJEb-HPg3XgvU.cjs")),"../../../language/locales/en-US.instructions.json":()=>Promise.resolve().then(()=>require("./en-US.instructions-CfIM2SRF-D35xYcID.cjs")),"../../../language/locales/en-US.json":()=>Promise.resolve().then(()=>Ln),"../../../language/locales/es-ES.json":()=>Promise.resolve().then(()=>require("./es-ES-DRsix_Xn--G4QsVsf.cjs")),"../../../language/locales/fi-FI.json":()=>Promise.resolve().then(()=>require("./fi-FI-BftTiz0c-4bXBC8s3.cjs")),"../../../language/locales/fr-FR.json":()=>Promise.resolve().then(()=>require("./fr-FR-C6jxjXAI-CzQV3htW.cjs")),"../../../language/locales/it-IT.json":()=>Promise.resolve().then(()=>require("./it-IT-CXlaZNIj-_Ja7g3_X.cjs")),"../../../language/locales/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-A6ArIIZ8-DaGCcv78.cjs")),"../../../language/locales/nl-NL.json":()=>Promise.resolve().then(()=>require("./nl-NL-BwWFlBOs-DgZiOYWm.cjs")),"../../../language/locales/no-NO.json":()=>Promise.resolve().then(()=>require("./no-NO-JWsSd7iY-BtbX0Bcc.cjs")),"../../../language/locales/pt-BR.json":()=>Promise.resolve().then(()=>require("./pt-BR-BJOww8U1-BrWJTSOE.cjs")),"../../../language/locales/sl-SI.json":()=>Promise.resolve().then(()=>require("./sl-SI-BfO3xEJx-D7RrxQE5.cjs")),"../../../language/locales/sv-SE.json":()=>Promise.resolve().then(()=>require("./sv-SE-CMLKzwtj-C_teo0xK.cjs"))}),`../../../language/locales/${l}.json`,6)}]),!s||!e)return a.u(De,{});const o=Qe(s),d=e.includes(o),c=i.find(({id:l})=>l===o)?.name??o;return d?a.u(a.S,{children:t}):a.u(ho,{content:a.u("div",{children:[a.u(Gn,{variant:"error"}),a.u(tr,{title:n(l=>l.countryNotSupported),description:n(l=>l.weDontSupportOnboardingInCountry,{country:c})})]})})},vh=a.z(async()=>(await Promise.resolve().then(()=>require("./DebugModal-C7WSGJRZ-qzUZAGhP.cjs")).then(t=>t.DebugModalC7WSGJRZ)).DebugModal),mo=()=>{const[t,e]=a.d(!1),{isSettingEnabled:n}=en(),r=n("allowDebugUi");a.y(()=>{if(!r)return;const i=({code:o,ctrlKey:d,altKey:c,shiftKey:l})=>{d&&(c||l)&&o==="Backslash"&&e(!0)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[r]);const s=r&&t;return a.u(a.S,{children:s?a.u(a.P,{fallback:a.u("div",{}),children:a.u(vh,{onExit:()=>e(!1)})}):null})},po=({children:t})=>{const[e,n]=a.d(),{data:r}=Ye(Fe);return a.y(()=>{!r||e||n(Ju({rootLegalEntity:r}))},[r,e]),e?a.u(to.Provider,{value:e,children:t}):a.u(qt,{})},_h=Object.freeze(Object.defineProperty({__proto__:null,$:$i,A:js,B:te,C:Xt,D:mo,E:oo,F:be,G:gi,H:er,I:ao,J:Jt,K:Xi,L:G,O:Me,P:Zn,Q:co,R:Ye,S:lo,T:$n,U:Fe,V:De,W:dt,X:no,_:Un,a:Vn,a1:Yn,a2:Xn,a3:wi,a4:Qn,a8:Vi,a9:Qe,aA:vi,aB:tr,aC:ui,aD:di,aE:ai,aF:hi,aG:mi,aI:_i,aJ:yi,aK:ri,aN:Hi,aO:Ii,aR:Ws,aS:_t,aT:or,aU:Gs,aV:zi,aW:ki,aX:Ys,a_:xi,aa:v,ab:qt,ac:jn,ad:Si,ae:ze,ah:qn,ai:Z,aj:Wi,ak:Fi,am:rr,an:Qt,ao:vt,ap:sr,aq:tt,as:q,au:zn,av:Fn,aw:ei,ax:Ue,ay:Zt,az:ct,b:we,b2:Xs,b3:Vs,b4:bi,b9:Ui,bA:Wn,bB:cr,bC:Bi,bD:Gn,bE:ho,bK:Di,bL:Oi,bM:Pi,bN:Gi,bQ:Ci,bR:Mi,bT:Ln,ba:jt,bb:zt,bc:nr,bd:ii,be:si,bf:oi,bg:fi,bh:pi,bi:li,bj:ci,bk:ni,bl:Ni,bo:Ri,bp:ji,bq:ir,br:Kn,bw:Ai,bz:Ze,c:po,d:io,e:fo,f:uo,g:Bs,h:Yt,i:Hn,j:at,k:en,l:Qs,m:re,n:ro,o:k,q:Ti,s:Us,t:ar,u:Ee,v:qi,w:Le,y:R,z:Xe},Symbol.toStringTag,{value:"Module"}));try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="24d2268c-ad79-43ae-97bb-b4865bf93275",t._sentryDebugIdIdentifier="sentry-dbid-24d2268c-ad79-43ae-97bb-b4865bf93275")}catch{}const go=new CSSStyleSheet,Ih=[go];Promise.resolve().then(()=>require("./styles-CLV89_hH-Cf2_rK0x.cjs")).then(({css:t})=>{go.replaceSync(t)}).catch(t=>console.error("Error loading styles",t));const Sh=({children:t,rootLegalEntityId:e,settings:n,experiments:r,refreshExperiments:s,baseUrl:i,getSdkToken:o,componentName:d,locale:c})=>{const[l,u]=a.d(!0),[h,f]=a.d(!1);return Bs(o),a.y(()=>{Fn().then(m=>{m||f(!0),u(!1)})},[]),h?a.u("div",{children:["Something went wrong, please",a.u(dt,{onClick:()=>location.reload(),children:"refresh the page."})]}):l?a.u(De,{}):a.u(lo,{settings:n,children:a.u(co,{children:a.u(js,{rootLegalEntityId:e,baseUrl:i,children:a.u(oo,{experiments:r,refreshExperiments:s,children:a.u(po,{children:[a.u("span",{className:"adyen-kyc__sdk-version",hidden:!0,children:"4.0.0-compact.9"}),a.u(io,{componentName:d,rootLegalEntityId:e,children:a.u(ao,{locale:c,children:a.u(fo,{children:[a.u(mo,{}),a.u("div",{className:"adyen-kyc-ui-element-container-wrapper",children:a.u("div",{className:"adyen-kyc-ui-element-container",children:a.u($n,{children:a.u(uo,{children:t})})})})]})})})]})})})})})},Th=Object.freeze({live:"https://onboardingcomponents-live.adyen.com/",test:"https://test.adyen.com/"}),wh=t=>Th[t]??ro(t);try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="afc7bf04-4e17-406f-8df8-1a2318b7349d",t._sentryDebugIdIdentifier="sentry-dbid-afc7bf04-4e17-406f-8df8-1a2318b7349d")}catch{}const $={arrowDown:"ArrowDown",arrowUp:"ArrowUp",enter:"Enter",escape:"Escape",space:" ",tab:"Tab",backspace:"Backspace",home:"Home",end:"End"},Eh="adyen-kyc-modal",Ah="adyen-kyc-modal-small",Nh="adyen-kyc-modal-medium",Ph="adyen-kyc-modal-large",Dh="adyen-kyc-modal-body",Oh="adyen-kyc-modal-body-height",Rh="adyen-kyc-modal-transition-slide-in",kh="adyen-kyc-modal-transition-drop-in",xh="adyen-kyc-modal-inset",Ch="adyen-kyc-modal-button",Se={modal:Eh,modalSmall:Ah,modalMedium:Nh,modalLarge:Ph,modalBody:Dh,modalBodyHeight:Oh,modalTransitionSlideIn:Rh,modalTransitionDropIn:kh,modalInset:xh,modalButton:Ch},yo=({ariaLabel:t,children:e,inset:n=!1,onClose:r,showCloseButton:s=!0,size:i="medium",transition:o="slideIn"})=>{const d=a.A(null),c=r!==void 0&&s;a._(()=>{const m=d.current;if(!m)return;const p=b=>{b.preventDefault(),r?.()},g=b=>{b.key===$.escape&&(b.preventDefault(),r?.())};try{m.addEventListener("keydown",g),m.addEventListener("cancel",p),m.showModal()}catch{console.warn("Could not call `showModal()` on the <dialog>; likely it was already removed from the document.");return}return m.focus(),m.blur(),()=>{m.removeEventListener("cancel",p),m.removeEventListener("keydown",g),m.close()}},[]);const l={slideIn:Se.modalTransitionSlideIn,dropIn:Se.modalTransitionDropIn},u={small:Se.modalSmall,medium:Se.modalMedium,large:Se.modalLarge,fullscreen:null},h=a.cx(Se.modal,l[o],u[i]),f=a.cx(Se.modalBody,{[Se.modalInset]:n,[Se.modalBodyHeight]:i!=="small"});return a.u(a.S,{children:[a.u("style",{children:"html,body { overflow: hidden !important; }"}),a.u("dialog",{"aria-label":t,className:h,onClose:r,ref:d,children:[c&&a.u("div",{className:Se.modalButton,children:a.u(Xt,{ariaLabel:"Close",circle:!0,icon:"cross",onClick:r,variant:"surface"})}),a.u("div",{className:f,"data-testid":"modal-body",children:e})]})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="272fe9e9-fb8b-4e6b-9b16-8a1ea34348a5",t._sentryDebugIdIdentifier="sentry-dbid-272fe9e9-fb8b-4e6b-9b16-8a1ea34348a5")}catch{}const Mh=({ariaLabel:t,children:e,inline:n=!1,inset:r,onClose:s,showCloseButton:i,size:o})=>n?a.u(a.S,{children:e}):a.u(yo,{onClose:s,ariaLabel:t,size:o,inset:r,showCloseButton:i,children:a.u($n,{children:e})});try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7840a7b7-cb17-443f-9133-84ca83771322",t._sentryDebugIdIdentifier="sentry-dbid-7840a7b7-cb17-443f-9133-84ca83771322")}catch{}const Lh=re(),Fh=["businessLines","onboardingStatus","pciStatus","pciQuestionnaireList","scenarios","taskStatus","taskTypes","taxClassification","termsOfServiceAcceptanceInfos","termsOfServiceStatus","transferInstruments"],Uh=()=>{const t=Kt(),{rootLegalEntityId:e}=we();return a.q(()=>Promise.all([t.invalidateQueries({queryKey:["legalEntity",e.value]}),t.invalidateQueries({predicate:({queryKey:n})=>Fh.includes(n[0])})]).catch(Lh.error),[e.value,t])};function Bh(){return a.x(zn)}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="59c8a2aa-dc4a-48bf-8bfc-59fb3d88704b",t._sentryDebugIdIdentifier="sentry-dbid-59c8a2aa-dc4a-48bf-8bfc-59fb3d88704b")}catch{}const Vh="adyen-kyc-loader-wrapper-loader",qh="adyen-kyc-loader-wrapper-loader-active",Pt={loaderWrapperLoader:Vh,loaderWrapperLoaderActive:qh},jh=({children:t,status:e,formOpacityWhenLoading:n=0,loaderSize:r="medium",showSpinner:s=!0,className:i})=>{const o=e==="loading"?{opacity:n}:{opacity:1},d=e==="loading"&&s,c=a.cx(Pt.loaderWrapperLoader,{[Pt.loaderWrapperLoaderActive]:d}),l=a.cx(Pt.loaderWrapper,i);return a.u("div",{className:l,style:{position:"relative"},children:[d&&a.u("div",{className:c,children:a.u(De,{size:r})}),a.u("div",{className:Pt.loaderWrapperForm,style:o,children:t})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c6d20d48-407b-4be4-af37-07c4e78a2962",t._sentryDebugIdIdentifier="sentry-dbid-c6d20d48-407b-4be4-af37-07c4e78a2962")}catch{}const zh="adyen-kyc-progress-bar",$h="adyen-kyc-progress-bar-rounded",Hh="adyen-kyc-progress-bar-indicator",fn={progressBar:zh,progressBarRounded:$h,progressBarIndicator:Hh},Kh=({progress:t,ariaLabel:e,rounded:n=!1})=>{const s=(d=>Math.min(Math.max(d,0),100))(t),i=`${s}%`,o=a.cx(fn.progressBar,{[fn.progressBarRounded]:n});return a.u("div",{className:o,role:"progressbar","aria-label":e,"aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,children:a.u("div",{className:fn.progressBarIndicator,style:{width:i},children:[t,"%"]})})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1b45db25-e530-4076-9ec1-2e9652ae80b0",t._sentryDebugIdIdentifier="sentry-dbid-1b45db25-e530-4076-9ec1-2e9652ae80b0")}catch{}function Wh(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const lr=t=>{const[e]=a.d(Wh());return`${t}_${e}`};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a2609a69-e57c-4e42-9d4f-af49fd0e9b74",t._sentryDebugIdIdentifier="sentry-dbid-a2609a69-e57c-4e42-9d4f-af49fd0e9b74")}catch{}const Gh=({userEvents:t,actionType:e,toForm:n,label:r,returnValue:s,additionalTrackingParams:i})=>{t.addPageEvent("Clicked button",{actionType:e,toPage:n,label:r,returnValue:s,...i})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bb605b84-b3ff-4ae9-8f5d-7c167f3ff720",t._sentryDebugIdIdentifier="sentry-dbid-bb605b84-b3ff-4ae9-8f5d-7c167f3ff720")}catch{}class tn{validationResults;constructor(e){this.validationResults=e}get isValid(){return this.validationResults.reduce((e,n)=>e&&n.isValid,!0)}hasError(){return!!this.getError()}getError(){return this.validationResults.find(e=>e.hasError)}addError(e){return this.validationResults.push(e),this.validationResults}}const Re=(t,e)=>Object.keys(t).filter(n=>!e.includes(n)).reduce((n,r)=>(n[r]=t[r],n),{}),Dt=(t,e,n,r,s)=>e.reduce((i,o)=>({...i,[o]:i[o]??s?.[o]??r?.[o]??n}),t);function Yh(t,e){return vt(t).reduce((n,[r,s])=>e.includes(r)?{...n,[r]:s}:n,{})}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4fa947b3-db0f-4fc4-b39d-1f0507fbacbe",t._sentryDebugIdIdentifier="sentry-dbid-4fa947b3-db0f-4fc4-b39d-1f0507fbacbe")}catch{}const Xh="adyen-kyc-end-state-layout",Qh="adyen-kyc-end-state-layout-header",Jh="adyen-kyc-end-state-layout-icon",Zh="adyen-kyc-end-state-layout-icon-success",ef="adyen-kyc-end-state-layout-icon-error",tf="adyen-kyc-end-state-layout-icon-info",nf="adyen-kyc-end-state-layout-icon-warning",rf="adyen-kyc-end-state-layout-title",sf="adyen-kyc-end-state-layout-description",of="adyen-kyc-end-state-layout-action",me={endStateLayout:Xh,endStateLayoutHeader:Qh,endStateLayoutIcon:Jh,endStateLayoutIconSuccess:Zh,endStateLayoutIconError:ef,endStateLayoutIconInfo:tf,endStateLayoutIconWarning:nf,endStateLayoutTitle:rf,endStateLayoutDescription:sf,endStateLayoutAction:of},af=({action:t,description:e,loading:n=!1,title:r,variant:s="success"})=>{if(t&&(!a.t(t)||t.type!==dt))throw new Error('EndStateLayout component only accepts Button component as "action".');const i=a.cx(me.endStateLayoutIcon,{[me.endStateLayoutIconSuccess]:s==="success",[me.endStateLayoutIconError]:s==="error",[me.endStateLayoutIconWarning]:s==="warning",[me.endStateLayoutIconInfo]:s==="info"||s==="basic"}),o={basic:"info-circle",error:"cross",info:"info-circle",success:"check",warning:"warning"},d=t?a.W(t,{disabled:n}):null;return a.u("article",{className:me.endStateLayout,children:[a.u("header",{className:me.endStateLayoutHeader,children:[n?a.u("div",{className:me.endStateLayoutIcon,role:"progressbar",children:a.u(De,{})}):a.u("div",{className:i,role:"img","aria-label":s,children:a.u(te,{name:o[s]})}),a.u("h1",{className:me.endStateLayoutTitle,children:r}),e&&a.u("div",{className:me.endStateLayoutDescription,children:e})]}),d&&a.u("div",{className:me.endStateLayoutAction,role:"toolbar",children:d})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7319a3de-39dd-486f-aa4e-6c3853eb9b13",t._sentryDebugIdIdentifier="sentry-dbid-7319a3de-39dd-486f-aa4e-6c3853eb9b13")}catch{}const df=(t,e,n)=>{const r=re(),s={timeZone:"UTC",year:"numeric",month:"long",day:"2-digit"};try{return new Intl.DateTimeFormat(e,s).format(new Date(t))}catch(i){r.error(i)}};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c1498ce3-2175-4bad-9ff6-aea1cfab578d",t._sentryDebugIdIdentifier="sentry-dbid-c1498ce3-2175-4bad-9ff6-aea1cfab578d")}catch{}const cf=re(),lf=t=>{const[e,n]=a.d({}),r=a.q(i=>{n(o=>({...o,[i]:void 0}))},[]),s=a.q((i,o,d)=>{const c=t?.[i];if(!c||!c.modes.includes(d)){r(i);return}const l=o.data[i];return c.asyncValidate(o.data[i],{state:o}).then(u=>{n(h=>({...h,[i]:new tn([{isValid:u,errorMessage:typeof c.errorMessage=="function"?c.errorMessage(l,{state:o}):c.errorMessage,hasError:!u}])}))}).catch(cf.error)},[t,r]);return{asyncValidationResults:e,triggerAsyncValidation:s,clearAsyncValidationResults:r}},uf=t=>{const e=a.q(r=>{const s={validate:()=>!0,modes:["blur","input"]},i=t?.[r]??[s];return Array.isArray(i)?i:[i]},[t]);return{triggerStaticValidation:a.q(({key:r,value:s,mode:i="blur"},o)=>{const d=e(r),c=!!o?.state.optionalFields?.includes(r),l=!!o?.state.obscuredFields?.includes(r),u=d.map(h=>{const f=h.modes.includes(i)&&!l,m=c&&Ue(s)?!0:h.validate(s,o);return{isValid:m,errorMessage:typeof h.errorMessage=="function"?h.errorMessage(s,o):h.errorMessage,hasError:f&&!m}});return new tn(u)},[e])}},Pn=({key:t,value:e=null,mode:n,defaultData:r,fieldContext:s,formatters:i,staticValidate:o,asyncValidate:d})=>{const c=i?.[t]?.formatter?i[t]?.formatter:i?.[t],l=c&&typeof c=="function"?c(e,s):e,u=!(r?.[t]===e&&r?.[t]);u&&e&&d(t,s.state,n);const h=u?o({key:t,value:l,mode:n},s):new tn([{isValid:!0,hasError:!1}]);return[l,h]};function bo({schema:t,defaultData:e,fieldProblems:n,obscuredFields:r,optionalFields:s,trustedFields:i,formatters:o,staticValidate:d,asyncValidate:c}){const l=f=>{const[m,p]=Pn({key:f,value:e?.[f],mode:"blur",formatters:o,defaultData:e,fieldContext:{state:{data:e,obscuredFields:r,optionalFields:s,trustedFields:i}},staticValidate:d,asyncValidate:c});return typeof e?.[f]>"u"?{valid:p.isValid&&!n?.[f]||!1,errors:null,data:null,fieldProblems:n?.[f]??!1}:{valid:p.isValid&&!n?.[f]||!1,errors:p.getError()??null,data:m,fieldProblems:n?.[f]??!1}};return(s?[...t,...s]:t).reduce((f,m)=>{const{valid:p,errors:g,data:b,fieldProblems:y}=l(m);return{...f,data:{...f.data,[m]:b},valid:{...f.valid,[m]:p},errors:{...f.errors,[m]:g},fieldProblems:{...f.fieldProblems,[m]:y}}},{schema:t,data:{},valid:{},errors:{},fieldProblems:{},obscuredFields:r,optionalFields:s,trustedFields:i})}function hf({staticValidate:t,asyncValidate:e,obscuredFields:n,optionalFields:r,trustedFields:s,formatters:i}){return(o,{type:d,key:c,mode:l,value:u,schema:h,selectedSchema:f,formValue:m,fieldProblems:p,defaultData:g})=>{const b=f||o.schema;switch(d){case"setData":return c?{...o,data:{...o.data,[c]:u}}:o;case"setValid":return c?{...o,valid:{...o.valid,[c]:u}}:o;case"setErrors":return c?{...o,errors:{...o.errors,[c]:u}}:o;case"setFieldProblems":return o?.schema?.reduce((y,_)=>({...y,fieldProblems:{...o.fieldProblems,[_]:p?.[_]??!1},valid:{...o.valid,[_]:o.valid?.[_]&&!p?.[_]}}),o);case"setSchema":{if(!h)return o;const y=bo({schema:h,defaultData:g,fieldProblems:p,obscuredFields:n,optionalFields:r,trustedFields:s,staticValidate:t,asyncValidate:e}),_=o.optionalFields?.length?[...o.schema.filter(S=>!h.includes(S)),...o.optionalFields.filter(S=>!r?.includes(S))]:o.schema.filter(S=>!h.includes(S)),I=r?.length?[...h.filter(S=>!o.schema?.includes(S)),...r.filter(S=>!o.optionalFields?.includes(S))]:h.filter(S=>!o.schema?.includes(S)),T={data:Re(o.data,I),errors:Re(o.errors,I),valid:Re(o.valid,I),fieldProblems:Re(o.fieldProblems,I)},E=Dt(Re(o.data,_),I,null,y.data,o.local?.data),O=Dt(Re(o.valid,_),I,!1,y.valid,o.local?.valid),w=Dt(Re(o.errors,_),I,null,y.errors,o.local?.errors),M=Dt(Re(o.fieldProblems,_),I,!1,y.fieldProblems,o.local?.fieldProblems);return{...o,schema:h,data:E,valid:O,errors:w,fieldProblems:M,obscuredFields:n,optionalFields:r,trustedFields:s,local:T}}case"updateField":{if(!c||!l)return o;const[y,_]=Pn({key:c,value:u,mode:l,defaultData:g,formatters:i,fieldContext:{state:o},staticValidate:t,asyncValidate:e}),T=o.data[c]!==y;return{...o,data:{...o.data,[c]:y},errors:{...o.errors,[c]:_.getError()??null},valid:{...o.valid,[c]:_.isValid&&!o.fieldProblems?.[c]||!1},fieldProblems:{...o.fieldProblems,[c]:T?!1:o.fieldProblems?.[c]??!1}}}case"mergeForm":{const y={...o,data:{...o.data,...m?.data},errors:{...o.errors,...m?.errors},valid:{...o.valid,...m?.valid},fieldProblems:{...o.fieldProblems,...m?.fieldProblems}};return y.valid&&(y.isValid=Object.values(y.valid).every(_=>_)),y}case"validateForm":{const y=b?.reduce((_,I)=>{const[T,E]=Pn({key:I,value:o.data[I],mode:"blur",defaultData:g,formatters:i,fieldContext:{state:o},staticValidate:t,asyncValidate:e}),w=o.data[I]!==T;return{valid:{..._.valid,[I]:E.isValid&&!o.fieldProblems?.[I]||!1},errors:{..._.errors,[I]:E.getError()??null},fieldProblems:{..._.fieldProblems,[I]:w?!1:o.fieldProblems?.[I]??!1}}},{valid:o.valid,errors:o.errors,fieldProblems:o.fieldProblems});return{...o,valid:y?.valid,errors:y?.errors,fieldProblems:y?.fieldProblems}}default:throw new Error("Undefined useForm action")}}}const ff=(t,e,n,r,s)=>{const i=s?[...n,...s]:n;return i.length?i.reduce((d,c)=>(e[c]?.getError()&&r(c,!1),{...d,[c]:t[c]??e[c]?.getError()??null}),{}):t};function mf({schema:t,defaultData:e,rules:n,asyncRules:r,fieldProblems:s,obscuredFields:i,optionalFields:o,trustedFields:d,formatters:c,shouldValidate:l=!1}){const{triggerStaticValidation:u}=uf(n),{triggerAsyncValidation:h,asyncValidationResults:f}=lf(r),m=a.T(()=>typeof t=="function"?t:()=>t,[t]),p=a.T(()=>e?m(e):[],[e,m]),g=a.q(()=>hf({staticValidate:u,asyncValidate:h,obscuredFields:i,optionalFields:o,trustedFields:d,formatters:c}),[u,h,i,o,d,c]),b=a.T(()=>({schema:p,defaultData:e,fieldProblems:s,obscuredFields:i,optionalFields:o,trustedFields:d,formatters:c,staticValidate:u,asyncValidate:h}),[p,e,s,i,o,d,c,u,h]),[y,_]=a.h(g(),b,bo),I=a.T(()=>y.schema?.every(N=>y.valid[N]),[y.schema,y.valid]),T=a.q((N,x)=>x?.target?x.target.type==="checkbox"?!y.data[N]:x.target.value:x,[y.data]),E=a.q((N,x)=>{_({type:"setErrors",key:N,value:x})},[]),O=a.q((N,x)=>{_({type:"setValid",key:N,value:x})},[]),w=a.q((N,x)=>{_({type:"setData",key:N,value:x})},[]),M=a.q(N=>{_({type:"setSchema",schema:N,defaultData:e})},[e]),S=a.q(N=>{_({type:"setFieldProblems",fieldProblems:N})},[]),z=a.q(N=>{_({type:"mergeForm",formValue:N})},[]),j=a.q((N,x="blur")=>K=>{const F=T(N,K);_({type:"updateField",key:N,value:F,mode:x,defaultData:e})},[e,T]),B=a.q(N=>{_({type:"validateForm",selectedSchema:N,defaultData:e})},[e]),L=a.q(()=>{p.forEach(N=>{if(!e||typeof e[N]<"u"){j(N)(e?.[N]);return}O(N,!1),E(N,null),w(N,e[N])})},[e,p,j,w,E,O]);a.y(()=>{const N=m(y.data);Xs(y.schema,N)||M(N)},[y.schema,y.data,M,m]),a.y(()=>{l&&B()},[l,y.schema]),a.y(()=>{s&&S(s)},[JSON.stringify(s),S]);const V=a.T(()=>ff(y.errors,f,y.schema,O,y.optionalFields),[f,y.errors,y.optionalFields,y.schema]);return{mergeForm:z,setData:w,setValid:O,setErrors:E,setFieldProblems:S,handleChangeFor:j,triggerValidation:B,resetToDefaultData:L,isValid:I,schema:y.schema,valid:y.valid,errors:V,data:y.data,fieldProblems:y.fieldProblems}}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a1942dde-6355-4080-a792-8d8c1871241a",t._sentryDebugIdIdentifier="sentry-dbid-a1942dde-6355-4080-a792-8d8c1871241a")}catch{}const pf="-ariaError",gf=({children:t,className:e,name:n,disabled:r,el:s,dataTestId:i})=>s==="fieldset"?a.u("fieldset",{name:n,disabled:r,className:e,"data-testid":i,children:t}):a.u("div",{className:e,"data-testid":i,children:t}),yf=({className:t,classNameModifiers:e=[],children:n,disabled:r,optional:s,errorMessage:i,formatGuidance:o,helper:d,helperPosition:c="above",isValid:l,label:u,name:h,showErrorIconBottom:f=!1,showErrorIcon:m=!0,el:p="div",dataTestId:g,onBlur:b,onFieldBlur:y,onFocus:_})=>{const I=lr("field"),{t:T}=Ee("common"),E=Xe(),O=p==="fieldset"?"legend":"label";a.y(()=>{if(!i)return;const S=typeof i=="string"&&i||typeof i=="object"&&i.key||"invalid";E.addFieldEvent("Encountered error",{actionType:"input",field:h,returnType:"validation",returnValue:S})},[h,i,E]);const w={label:`${I}-label`,helper:`${I}-helper`,error:`${I}${pf}`,guidanceText:`${I}-guidanceText`},M=`${i?w.error:""} ${d?w.helper:""} ${o?w.guidanceText:""}`.trim();return a.u(gf,{className:a.cx("adyen-kyc-field",t,e.map(S=>`adyen-kyc-field--${S}`),{"adyen-kyc-field--error":!!i,"adyen-kyc-field--valid":l,"adyen-kyc-field--disabled":r}),name:h,disabled:r,el:p,dataTestId:g,children:[u&&a.u(O,{id:w.label,htmlFor:p==="fieldset"?void 0:I,className:a.cx("adyen-kyc-label__text",{"adyen-kyc-label__text--error":!!i}),children:[u,s&&a.u("span",{className:"adyen-kyc-optional-label",children:[" ",T(S=>S.optional)]})]}),d&&c==="above"&&a.u("span",{id:w.helper,className:"adyen-kyc-helper-text adyen-kyc-helper-text__above",children:d}),a.u("div",{className:"adyen-kyc-input-wrapper",children:[n({id:I,"aria-labelledby":w.label,"aria-describedby":M,isInvalid:!!i,isValid:!!l,onBlurHandler:S=>{typeof b=="function"&&b(S),typeof y=="function"&&y(S)},onFocusHandler:S=>{typeof _=="function"&&_(S)}}),d&&c==="below"&&a.u("span",{id:w.helper,className:"adyen-kyc-helper-text adyen-kyc-helper-text__below",children:d}),!!i&&!f&&m&&a.u("span",{className:"adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid",children:a.u(te,{name:"field-error"})})]}),a.u("div",{"aria-live":"polite","aria-atomic":!0,className:"adyen-kyc-error-text",children:[a.u("span",{className:"adyen-kyc-u-screen-reader-only",children:`${u}:`}),!!i&&typeof i!="boolean"&&a.u("span",{id:w.error,children:[jn(T,i),f&&a.u("span",{className:"adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid-bottom",children:a.u(te,{name:"field-error"})})]})]}),!i&&o&&a.u("span",{id:w.guidanceText,"aria-live":"polite",className:"adyen-kyc-guidance-text",children:o})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="009ce03f-6100-4f97-b658-7de54f12cfcf",t._sentryDebugIdIdentifier="sentry-dbid-009ce03f-6100-4f97-b658-7de54f12cfcf")}catch{}const bf=(t,e)=>{let n,r;return(...s)=>{r=!0,n||(t(...s),r=!1),clearTimeout(n),n=setTimeout(()=>r&&t(...s),e)}},vf=(t,e)=>{const n=a.A();return a.q((...r)=>{const s=()=>{clearTimeout(n.current),t(...r)};clearTimeout(n.current),n.current=setTimeout(s,e)},[t,e])},vo=bf((t,e)=>t.addFieldEvent("Interacted with form field",e),500);try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4ba569d8-65d0-4fd5-8ad6-2ed8d139c488",t._sentryDebugIdIdentifier="sentry-dbid-4ba569d8-65d0-4fd5-8ad6-2ed8d139c488")}catch{}function _o({id:t,name:e,value:n,className:r,label:s,isInvalid:i,onChange:o,helper:d,checked:c,readonly:l,disabled:u,enableTracking:h=!1,"aria-required":f,"aria-invalid":m,"aria-describedby":p}){const g=Xe(),b=I=>{h&&g.addFieldEvent("Interacted with form field",{actionType:"input",field:e,returnValue:String(I)}),o(I)},y=`${t}-helper`,_=`${d?y:""} ${p??""}`.trim();return a.u(a.S,{children:[a.u("input",{id:t,name:e,value:n,"aria-describedby":_,"aria-invalid":m||i,"aria-required":f,readOnly:l,disabled:u,checked:c,className:a.cx(["adyen-kyc-checkbox__input",[r],{"adyen-kyc-checkbox__input--invalid":i}]),type:"checkbox",onClick:I=>{I.stopPropagation(),b(!c)}}),a.u("label",{htmlFor:t,className:"adyen-kyc-checkbox__label",children:s}),d&&a.u("span",{id:y,className:"adyen-kyc-checkbox__helper-text",children:d})]})}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c84c571e-2a36-45da-806d-2330ac24a8eb",t._sentryDebugIdIdentifier="sentry-dbid-c84c571e-2a36-45da-806d-2330ac24a8eb")}catch{}const _f=({activeItems:t,filteredItems:e})=>{const n=le(()=>e.value.length-1),r=ue(),s=()=>{const g=t.value.find(y=>!y.disabled),b=e.value.find(y=>!y.disabled);return g??b},i=le(()=>{const g=r.value,b=Io(g)?g:s(),y=e.value;return b?y.findIndex(_=>_.id===b.id):(console.warn("[Select] No existing focused item, and none of the filtered items are enabled"),0)}),o=(g,b)=>{const y=b==="down"?g+1:g-1,_=e.value[y];return y<0||y>n.value?"exceedsBounds":_.disabled?o(y,b):y};return{focused:r,moveFocusToFirstItem:()=>{let g=i.value;for(;;){const b=o(g,"up");if(b==="exceedsBounds")break;g=b}r.value=e.value[g]},moveFocusToLastItem:()=>{let g=i.value;for(;;){const b=o(g,"down");if(b==="exceedsBounds")break;g=b}r.value=e.value[g]},moveFocusToNextItem:()=>{const g=o(i.value,"down");g!=="exceedsBounds"&&(r.value=e.value[g])},moveFocusToPreviousItem:()=>{const g=o(i.value,"up");g!=="exceedsBounds"&&(r.value=e.value[g])},focusInput:()=>{r.value="input"},focusItem:g=>{r.value=g},focusDefaultItem:()=>{r.value=s()},focusNothing:()=>{r.value=void 0}}},If=t=>{const[e]=a.d(_f(t));return e},Io=t=>!!t&&typeof t=="object",ns=t=>{const e=Mn(t);return e.peek()!==t&&(e.value=t),e},Sf=(t,e)=>{const{key:n}=t;let r=e;return n===$.backspace?r=r.slice(0,r.length-1):n.length===1&&(r+=n),r};function rs(t,e,n){const[r]=a.d(e!==void 0),[s,i]=a.d(n);return r?[t,e]:[s,i]}const Tf="adyen-kyc-select-input-wrapper",wf="adyen-kyc-select-input",Ef="adyen-kyc-select-input--active",Af="adyen-kyc-select-input--readonly",Nf="adyen-kyc-select-input--invalid",Pf="adyen-kyc-select-input--minimal",Df="adyen-kyc-select-input-search",Of="adyen-kyc-select-input--filterable",Rf="adyen-kyc-select-input-wrapper--filterable",kf="adyen-kyc-select-input-wrapper--non-filterable",xf="adyen-kyc-select-input--list-open",Cf="adyen-kyc-select-input--non-filterable",Mf="adyen-kyc-select-input--placeholder",Lf="adyen-kyc-ignore-pointer-events",Ff="adyen-kyc-handle-pointer-events",Q={selectInputWrapper:Tf,selectInput:wf,selectInputActive:Ef,selectInputReadonly:Af,selectInputInvalid:Nf,selectInputMinimal:Pf,selectInputSearch:Df,selectInputFilterable:Of,selectInputWrapperFilterable:Rf,selectInputWrapperNonFilterable:kf,selectInputListOpen:xf,selectInputNonFilterable:Cf,selectInputPlaceholder:Mf,ignorePointerEvents:Lf,handlePointerEvents:Ff},ss=/iPhone|iPad/.test(navigator.platform);function Uf({id:t,name:e,active:n,readonly:r,showList:s,isInvalid:i,onClick:o,onButtonKeyDown:d,filterable:c,isFiltering:l,placeholder:u,focusProps:{focused:h},selectListId:f,onInput:m,behaviour:p,loading:g,text:b,enableTracking:y=!1,onFocus:_,inputRef:I,minimal:T,"aria-describedby":E,"aria-labelledby":O,"aria-label":w}){const M=Xe(),S=a.A(null);Ms(()=>{h.value==="input"&&I.current?.focus()});const z=F=>{r||(y&&M.addFieldEvent("Interacted with form field",{actionType:"focus",field:e}),_(F))},j=F=>{F.preventDefault(),F.stopPropagation(),!r&&o()},B=F=>{r||d(F)},L=F=>{c&&!r&&m(F.currentTarget.value)},V=a.T(()=>{if(n.length===0)return;const F=n.map(({selectedOptionName:he,name:se})=>he??se).join(", ");return F.length>50?F.substring(0,50)+"...":F},[n]),N=n?.length?n.map(({name:F})=>F).join(","):u,x=h.value==="input",K=a.T(()=>p==="textIsData"||h.value!==void 0&&c&&l?b:V,[p,b,h.value,c,l,V]);return a.u("div",{className:a.cx({[Q.selectInputWrapper]:!0,[Q.selectInputMinimal]:T,[Q.selectInputReadonly]:r,[Q.selectInputActive]:x,[Q.selectInputListOpen]:s,[Q.selectInputInvalid]:i,[Q.selectInputSearch]:c==="prefiltered",[Q.selectInputWrapperFilterable]:c,[Q.selectInputWrapperNonFilterable]:!c,[Q.ignorePointerEvents]:ss}),ref:S,onClick:j,onFocusIn:z,children:[a.u("input",{id:t,name:e,title:N,ref:I,type:c?"text":"button",role:"combobox","aria-haspopup":"listbox","aria-owns":f,"aria-controls":f,"aria-expanded":s,"aria-describedby":E,"aria-disabled":r,"aria-label":w,"aria-labelledby":O,"aria-autocomplete":c?"list":void 0,autoComplete:"off",className:a.cx({[Q.selectInput]:!0,[Q.selectInputFilterable]:c,[Q.selectInputNonFilterable]:!c,[Q.selectInputMinimal]:T,[Q.selectInputReadonly]:r,[Q.handlePointerEvents]:ss}),placeholder:u,value:K,disabled:r,onClick:j,onInput:L,onKeyDown:B}),!c&&!K?a.u("span",{className:Q.selectInputPlaceholder,children:u}):void 0,g&&a.u(De,{size:"small"})]})}const Bf=({id:t,item:e,selected:n,isMulti:r,isSearch:s,children:i,onSelect:o,onKeyDown:d,onFocus:c,className:l})=>a.u("li",{"aria-disabled":!!e.disabled,"aria-selected":n,className:a.cx(["adyen-kyc-dropdown-element",{"adyen-kyc-dropdown-element--active":n,"adyen-kyc-dropdown-element--disabled":!!e.disabled,"adyen-kyc-dropdown-multi-element":r,"adyen-kyc-dropdown-element-description":!r&&!s&&e.description,"adyen-kyc-dropdown-search-element":s},l]),"data-disabled":!!e.disabled,"data-value":e.id,onFocus:u=>{e.disabled||c?.(u)},onClick:u=>{u.preventDefault(),!e.disabled&&o(!n)},onKeyDown:u=>{e.disabled||d(u)},role:"option",tabIndex:-1,children:r?a.u("span",{style:{pointerEvents:"none",width:"100%"},children:a.u(_o,{id:t,onChange:Z,label:e.name,disabled:e.disabled,helper:e.description,checked:n,name:`adyen-kyc-dropdown-element__checkbox adyen-kyc-dropdown-element__checkbox--${e.id}`})}):i?[i]:a.u(a.S,{children:[e.icon&&a.u("span",{className:"adyen-kyc-dropdown-element__icon",children:e.icon}),e.description?a.u(a.S,{children:[a.u(Me,{el:"span",variant:"body-strongest",className:"adyen-kyc-dropdown-element__label",children:e.name}),a.u(Me,{el:"span",color:"secondary",className:"adyen-kyc-dropdown-element-description__text",children:e.description})]}):a.u("span",{className:"adyen-kyc-dropdown-element__label",children:e.name})]})}),Vf=re(),qf=36;function jf({selectListId:t,active:e,filteredItems:n,showList:r,isMulti:s,inputRef:i,isSearch:o,loading:d,getSearchItem:c,onKeyDown:l,onSelect:u,minimal:h,maxVisibleItems:f=5,focusProps:{focused:m,focusItem:p,focusDefaultItem:g,moveFocusToNextItem:b,moveFocusToPreviousItem:y,moveFocusToFirstItem:_,moveFocusToLastItem:I}}){const{t:T}=Ee("ui"),[E,O]=a.d(0),[w,M]=a.d(f),S=a.A(null),j=(()=>{if(S.current&&r){const P=S.current.firstElementChild?.firstElementChild?.clientHeight;if(P!==void 0)return P}})()||qf,B=n.length,L=a.T(()=>n.slice(E,w),[w,n,E]),V=a.q(P=>{const U=S.current;if(U)return U.querySelector(`[role="option"][data-value="${P.id}"]`)},[S]),N=a.q(()=>{if(!S.current)return;const{scrollTop:P}=S.current,U=B<f?B:B-f,ve=Math.min(Math.max(0,Math.floor(P/j)),U),Be=Math.min(ve+f,B);O(ve),M(Be)},[B,f,j,S]);a.y(()=>{N()},[N]);const x=a.q(P=>{if(!S.current)return;const U=n.indexOf(P);if(U===-1)return;const ve=B*j;S.current.scrollTop=Math.min(j*(U+.5),ve)},[n,j,B,S]),K=a.q(P=>{let U=V(P);U||x(P),setTimeout(()=>{U=U??V(P),U?U.focus():Vf.warn("[SelectList] still cannot see the option",P.name)},20)},[V,x]);Ms(()=>{const P=m.value;Io(P)&&K(P)});const F={[$.arrowUp]:y,[$.arrowDown]:b,[$.home]:_,[$.end]:I},he=P=>{const U=F[P.key];U&&(P.preventDefault(),U())},se=()=>d?a.u("div",{className:"adyen-kyc-dropdown-element adyen-kyc-dropdown-element--no-options",children:T(P=>P.loading)}):n.length?L.length?L.map(P=>a.u(Bf,{item:P,id:P.id,onKeyDown:U=>{l(U,P)},onFocus:U=>{p(P),U.stopPropagation()},onSelect:()=>{u(P)},selected:!!e.find(U=>U.id===P.id),isMulti:s,isSearch:o,children:c&&c(P)},P.id)):null:((E!==0||w!==f)&&(O(0),M(f)),a.u("div",{className:"adyen-kyc-dropdown-element adyen-kyc-dropdown-element--no-options",children:T(P=>P.noOptionsFound)})),W=a.T(()=>d?"auto":B>f&&j?`${j*f}px`:"auto",[j,B,d,f]),fe=B<=f,[Ae,Oe]=a.d(!1);return a.y(()=>{const P=S.current,U=i.current,ve=new ResizeObserver(()=>{const Be=P.offsetHeight,nn=window.innerHeight,It=U.getBoundingClientRect().bottom,_e=nn-It>Be,Ve=It>Be;Oe(!_e&&Ve)});return ve.observe(P),()=>{ve.disconnect()}},[i,S]),a.u("div",{className:a.cx({"adyen-kyc-dropdown-list":!0,"adyen-kyc-dropdown-list--minimal":h,"adyen-kyc-dropdown-list--active":r,"adyen-kyc-dropdown-list--above":Ae}),id:t,role:"listbox",onScroll:N,style:{overflowY:fe?"hidden":"auto",position:"absolute",height:W},onKeyDown:he,onFocus:g,tabIndex:-1,ref:S,children:a.u("ul",{className:"adyen-kyc-dropdown-list__transformer",style:{transform:`translateY(${E*j}px)`},children:[se(),a.u("div",{style:{height:`${(B-w)*j}px`}})]})})}const zf=({id:t,items:e,filterable:n=!0,readonly:r=!1,onChange:s,onSelect:i,selected:o,name:d,isInvalid:c=!1,placeholder:l="",isMulti:u,enableTracking:h=!1,maxVisibleItems:f,getSearchItem:m,onBlur:p=Z,text:g,setText:b,showList:y,setShowList:_,behaviour:I="textIsFilter",loading:T=!1,minimal:E=!1,"aria-describedby":O,"aria-label":w,"aria-labelledby":M,excludedValues:S})=>{const z=Xe(),j=a.A(null),B=a.A(null),L=lr("select"),[V,N]=rs(g,b,""),[x,K]=rs(y,_,!1),[F,he]=a.d(!1),se=a.T(()=>o===void 0?[]:(Array.isArray(o)?o:[o]).map(D=>typeof D=="object"?D:e.find(Ie=>Ie.id===D)).filter(Boolean),[e,o]),W=a.T(()=>e.filter(Ie=>!S?.includes(Ie)).filter(Ie=>n==="prefiltered"||!F?!0:Ie.name.toLowerCase().includes(V.toLowerCase())),[n,F,e,V,S]),fe=ns(se),Ae=ns(W),Oe=If({activeItems:fe,filteredItems:Ae}),{focusInput:P,focusItem:U,focusDefaultItem:ve,focusNothing:Be,moveFocusToNextItem:nn,moveFocusToPreviousItem:It}=Oe,_e=a.q(D=>{switch(I==="textIsFilter"&&N(""),K(!1),D){case"input":P();break;case"nothing":Be();break}},[I,P,Be,K,N]),Ve=a.q(()=>{x||K(!0)},[x,K]),rn=a.q(D=>{if(he(!1),!r){if(u){const St=se.find(lt=>lt.id===D.id)?se.filter(lt=>lt.id!==D.id):[...se,D];i?.(St),s?.({target:{value:St.map(lt=>lt.id),name:d??""}}),U(D)}else{const Ie=i,St=s;Ie?.(D),St?.({target:{value:D.id,name:d??""}}),_e("input")}h&&z.addFieldEvent("Interacted with form field",{actionType:"select",field:d,returnValue:D.id})}},[r,u,h,se,i,s,d,U,_e,z]),So=D=>{p(D)},To=async D=>{if(D.key===$.enter&&x)W.length===1?rn(W[0]):D.preventDefault();else if(D.key===$.escape)_e("nothing");else if(D.key===$.enter||D.key===$.space&&(!n||!x))D.preventDefault(),D.stopPropagation(),Ve(),ve();else if(D.key===$.arrowUp||D.key===$.arrowDown)switch(D.preventDefault(),D.stopPropagation(),Ve(),ve(),D.key){case $.arrowUp:It();break;case $.arrowDown:nn();break}else D.key===$.tab&&_e("nothing")},ur=D=>{j.current?.contains(D.target)||_e("nothing")},wo=(D,Ie)=>{switch(D.key){case $.escape:D.preventDefault(),_e("input");break;case $.space:case $.enter:rn(Ie);break;case $.tab:_e("nothing");break;case $.arrowUp:case $.arrowDown:case $.home:case $.end:break;default:D.preventDefault(),D.stopPropagation(),hr(Sf(D,V)),P()}},hr=a.q(D=>{Ve(),he(!0),N(D),h&&vo(z,{actionType:"input",field:d})},[h,d,N,Ve]);return a.y(()=>(document.addEventListener("click",ur,!0),()=>{document.removeEventListener("click",ur,!0)}),[]),a.u("div",{className:a.cx({"adyen-kyc-dropdown":!0,"adyen-kyc-dropdown--minimal":E}),ref:j,onFocusOut:So,children:[a.u(Uf,{id:t,name:d,active:se,filterable:n,isFiltering:F,isInvalid:c,onButtonKeyDown:To,onInput:hr,placeholder:l,readonly:r,selectListId:L,showList:x,focusProps:Oe,"aria-describedby":O||"","aria-label":w||"","aria-labelledby":M||"",isMulti:!!u,loading:T,behaviour:I,text:V,inputRef:B,enableTracking:h,minimal:E,onClick:()=>{x?_e("input"):(Ve(),P())},onFocus:()=>{P()}}),a.u(jf,{active:se,filteredItems:W,onKeyDown:wo,onSelect:rn,selectListId:L,showList:x,textFilter:V,isMulti:!!u,isSearch:n==="prefiltered",getSearchItem:m,loading:T,maxVisibleItems:f,focusProps:Oe,inputRef:B,minimal:E})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1403043e-d37f-44f9-8c74-7a93ce194a09",t._sentryDebugIdIdentifier="sentry-dbid-1403043e-d37f-44f9-8c74-7a93ce194a09")}catch{}class $f extends Event{eventName;value;constructor(e,n){super(e,{bubbles:!0,composed:!0}),this.eventName=e,this.value=n}}const Hf=(t,e,n)=>{if(!t.current)return;const r=new $f(e,n);t.current.dispatchEvent(r)};exports.ADDRESS_VALID_CHAR_REGEX=li;exports.Accordion=Wn;exports.Alert=gi;exports.Button=dt;exports.Checkbox=_o;exports.CountryCodes=v;exports.DecisionMakerTypes=q;exports.EMOJI_REGEX=ai;exports.EmbedShell=Sh;exports.EndStateLayout=af;exports.Field=yf;exports.Header=tr;exports.Icon=te;exports.IconButton=Xt;exports.KEYBOARD_KEYS=$;exports.LegalEntityTypes=G;exports.Loader=De;exports.LoaderWrapper=jh;exports.MaybeModal=Mh;exports.Modal=yo;exports.NO_ALPHABET_REGEX=di;exports.NO_ALPHABET_UNICODE_REGEX=ci;exports.ProgressBar=Kh;exports.ROOT_LE=Fe;exports.SPECIAL_CHARS=si;exports.Select=zf;exports.StackLayout=Zn;exports.StoreProviderCBB99upB=_h;exports.TaskTypes=R;exports.TaskVerificationStatus=er;exports.TrustMemberGuidanceLabels=Ze;exports.TrustMemberTypes=ze;exports.Typography=Me;exports.ValidationResult=tn;exports.__variableDynamicImportRuntimeHelper=Un;exports.addResourceBundles=Vn;exports.c=No;exports.chomeAndBanchiValidator=pi;exports.cloneObject=Qt;exports.createLogger=re;exports.datasetIdentifier=tt;exports.datasetUtilities=rr;exports.debouncedInputEvent=vo;exports.defineSlots=kn;exports.doesLegalEntityRequiresLegalRepresentative=Yn;exports.drop=Ys;exports.emitAdyenSdkEvent=Hf;exports.entriesOf=vt;exports.getDataByFields=Yh;exports.getFormattingRegEx=ii;exports.getLanguageCode=ei;exports.getLegalEntityCountry=Qe;exports.getLegalRepresentative=Xn;exports.getMaxLengthByFieldAndCountry=ni;exports.getOwnSignatories=wi;exports.hasRepeatedCharacters=hi;exports.hasSolePropInLegalEntity=Ti;exports.hasText=ri;exports.httpGet=at;exports.httpPost=Yt;exports.isEeaCountry=vi;exports.isEmpty=Ue;exports.isInvalidName=mi;exports.isUndefinedOrNull=Hn;exports.isValidMinLength=fi;exports.keysOf=_t;exports.listToRecord=or;exports.localizeDateString=df;exports.matchesRegex=ui;exports.objectsDeepEqual=qn;exports.remediationBusinessDetailsApiKeyMapping=zt;exports.remediationHasFileUploadField=Ui;exports.remediationIndividualApiKeyMapping=nr;exports.remediationPayoutApiKeyMapping=jt;exports.resolveEnvironment=wh;exports.reverseMapping=ct;exports.skipToken=Ne;exports.splitTaskIdentifier=cr;exports.stylesheets=Ih;exports.trackNavigation=Gh;exports.translateTranslatable=jn;exports.trimValWithOneSpace=oi;exports.useAnalyticsContext=Xe;exports.useApiContext=we;exports.useDataset=sr;exports.useDebouncedCallback=vf;exports.useExperimentsContext=Jt;exports.useForm=mf;exports.useGlobalStore=no;exports.useId=lr;exports.useInvalidateRootLegalEntity=Uh;exports.useLegalEntity=Ye;exports.useMutation=Ts;exports.useQuery=rt;exports.useQueryClient=Kt;exports.useSettingsContext=en;exports.useToastContext=Bh;exports.useTranslation=Ee;exports.valuesOf=Ws;exports.y=ue;
6
- //# sourceMappingURL=emitEvent-CzZf80Am-D65Q2GsO.cjs.map
5
+ - ${Qs(e)}. falling back to "${be}"`),i===be){r({translations:Vt,locale:be});return}hh(i).then(o=>{r({translations:o,locale:i})}).catch(o=>{es.error("Error while loading translations",o)})}},[t,e,n.locale]),n},hn=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","et-EE","fi-FI","fr-FR","hr-HR","hu-HU","it-IT","lt-LT","lv-LV","nl-NL","no-NO","pl-PL","pt-PT","pt-BR","ro-RO","sk-SK","sl-SI","sv-SE"],ao=({locale:t,eventEmitter:e,children:n})=>{const r=Xe(),{isExperimentEnabled:s}=Jt(),{i18n:i}=Ee("common"),[o,d]=a.d(t),[c,l]=a.d(t);s("EnableJapanLocalization")&&hn.push("ja-JP");const{translations:u,locale:h}=fh({locale:o,allowedLocales:hn}),f=a.T(()=>new Ki({locale:h,translations:u,allowedLocales:hn}),[h,u]);a.y(()=>{r.updateBaseTrackingPayload({locale:o})},[o,r]),a.y(()=>{(async()=>o==="ja-JP"&&!s("EnableJapanLocalization")||i.changeLanguage(o))()},[o,i,s]);const m=a.T(()=>({i18n:f,setLocale:d}),[f,d]);return t!==c&&(d(t),l(t)),a.y(()=>{if(e)return e.on("updateLocale",d),()=>e.off("updateLocale",d)},[e]),a.u(Pu.Provider,{value:m,children:a.u(a.P,{fallback:a.u(De,{}),children:n})})},mh=new wa({defaultOptions:{queries:{staleTime:300*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0,refetchOnMount:!0,retry:2},mutations:{retry:1}}}),co=({children:t})=>a.u(Aa,{client:mh,children:t}),ph={acceptedCountries:void 0,allowBankAccountFormatSelection:!1,allowDebugUi:!1,allowIntraRegionCrossBorderPayout:!1,changeLegalEntityType:!0,editPrefilledCountry:!0,requirePciSignEcomMoto:!1,requirePciSignEcommerce:!1,requirePciSignPos:!1,requirePciSignPosMoto:!1,hideOnboardingIntroductionIndividual:!0,hideOnboardingIntroductionOrganization:!0,hideOnboardingIntroductionTrust:!0,hideOnboardingIntroductionSoleProprietor:!0,viewOnboardingGuidance:!1,transferInstrumentLimit:0,instantBankVerification:!0,showServiceAgreementsFirst:!1,showBusinessFinancingFirst:!1,enforceLegalAge:!1,merchantType:void 0,allowBusinessLines:!1};function lo({children:t,settings:e}){const n={...ph,...e},r=a.T(()=>({isSettingEnabled:s=>n[s],getSetting:s=>n[s],settings:n}),[e]);return a.u(Jn.Provider,{value:r,children:t})}function gh(t){return _t(t).forEach(e=>{(t[e]===null||Ue(t[e]))&&delete t[e]}),t}const yh={data:{},allData:{},initialData:{},errors:{},valid:{},fieldProblems:{},isValid:!1,allValid:!1},ts=re();function bh(){const[t,e]=a.d({}),[n,r]=a.d([]),s=o=>{r(o)};function i({currentState:o,prevState:d},c){switch(c.type){case"addToState":{if(!c.value.dataStoreId)return ts.warn("No dataStoreId provided, hence no update can be done"),{currentState:o,prevState:d};const l=c.value.dataStoreId,u=structuredClone(o),h=c.value.schema||null,f=h&&t?.[l]?.toString()!==h.toString(),m={...u,data:{...u.data,[l]:{...u.data[l],...c.value.data}},allData:{...u.allData,[l]:{...u.allData[l],...gh(c.value.data)}},errors:{...u.errors,[l]:{...u.errors[l],...c.value.errors}},valid:{...u.valid,[l]:{...u.valid[l],...c.value.valid}},fieldProblems:{...u.fieldProblems,[l]:{...u.fieldProblems[l],...c.value.fieldProblems}}};if(f){e({...t,[l]:h});const p=h.reduce((g,b)=>{const y=m.data[l],_=m.allData[l],I=m.valid[l],T=m.errors[l],E=m.fieldProblems[l];return{data:{...g.data,[b]:y[b]??_[b]},valid:{...g.valid,[b]:I[b]},errors:{...g.errors,[b]:T[b]},fieldProblems:{...g.fieldProblems,[b]:E[b]}}},{data:{},valid:{},errors:{},fieldProblems:{}});m.data[l]=p.data,m.valid[l]=p.valid,m.errors[l]=p.errors,m.fieldProblems[l]=p.fieldProblems}return m.validityByForm={...m.validityByForm,[l]:Object.values(m.valid[l]).every(p=>p)},m.allValid=Object.values(m.validityByForm).every(p=>p),m.isValid=n.length?n.every(p=>m.validityByForm?.[p]):m.allValid,m.initialData=structuredClone(u.initialData),{currentState:m,prevState:u}}case"removeFromState":{if(!c.value.dataStoreId)return ts.warn("No dataStoreId provided, hence no update can be done"),{currentState:o,prevState:d};const l=c.value.dataStoreId,u=structuredClone(o),h={...u,data:{...u.data,[l]:{}},allData:{...u.allData,[l]:{}},errors:{...u.errors,[l]:{}},valid:{...u.valid,[l]:!1},fieldProblems:{...u.fieldProblems,[l]:{}}};return h.validityByForm={...h.validityByForm,[l]:!1},h.allValid=Object.values(h.validityByForm).every(f=>f),h.isValid=n.length?n.every(f=>h.validityByForm?.[f]):h.allValid,h.initialData=structuredClone(u.initialData),{currentState:h,prevState:u}}case"resetState":return{currentState:yh,prevState:o};default:throw new Error(`Unhandled action type: ${c.type}`)}}return{reducer:i,setCurrentForms:s}}function uo({defaultData:t={},children:e}){const n={currentState:{data:t,allData:t,valid:{},errors:{},fieldProblems:{},validityByForm:{},initialData:t},prevState:{}},r=bh(),[s,i]=a.h(r.reducer,n),o=a.T(()=>({state:s,dispatch:i,setActiveForms:r.setCurrentForms,getData:()=>s?.currentState?.data??{},getState:()=>s?.currentState}),[r,s]);return a.u(ji.Provider,{value:o,children:e})}const ho=({content:t,footer:e})=>a.u("div",{className:"adyen-kyc-dropin",children:[a.u("div",{className:"adyen-kyc-dropin__content",children:a.u("div",{className:"adyen-kyc-dropin__content-main",children:t})}),e&&a.u("div",{className:"adyen-kyc-dropin__footer-container",children:e})]}),fo=({children:t})=>{const e=Hi(),{t:n,i18n:r}=Ee("common"),{data:s}=Ye(Fe),{dataset:i}=sr(tt.country);if(Vn(r,[{ns:"common",importFn:l=>Un(Object.assign({"../../../language/locales/da-DK.json":()=>Promise.resolve().then(()=>require("./da-DK-Cv6XUSoW-XrirZvM9.cjs")),"../../../language/locales/de-DE.json":()=>Promise.resolve().then(()=>require("./de-DE-BplDsJEb-HPg3XgvU.cjs")),"../../../language/locales/en-US.instructions.json":()=>Promise.resolve().then(()=>require("./en-US.instructions-CfIM2SRF-D35xYcID.cjs")),"../../../language/locales/en-US.json":()=>Promise.resolve().then(()=>Ln),"../../../language/locales/es-ES.json":()=>Promise.resolve().then(()=>require("./es-ES-DRsix_Xn--G4QsVsf.cjs")),"../../../language/locales/fi-FI.json":()=>Promise.resolve().then(()=>require("./fi-FI-BftTiz0c-4bXBC8s3.cjs")),"../../../language/locales/fr-FR.json":()=>Promise.resolve().then(()=>require("./fr-FR-C6jxjXAI-CzQV3htW.cjs")),"../../../language/locales/it-IT.json":()=>Promise.resolve().then(()=>require("./it-IT-CXlaZNIj-_Ja7g3_X.cjs")),"../../../language/locales/ja-JP.json":()=>Promise.resolve().then(()=>require("./ja-JP-A6ArIIZ8-DaGCcv78.cjs")),"../../../language/locales/nl-NL.json":()=>Promise.resolve().then(()=>require("./nl-NL-BwWFlBOs-DgZiOYWm.cjs")),"../../../language/locales/no-NO.json":()=>Promise.resolve().then(()=>require("./no-NO-JWsSd7iY-BtbX0Bcc.cjs")),"../../../language/locales/pt-BR.json":()=>Promise.resolve().then(()=>require("./pt-BR-BJOww8U1-BrWJTSOE.cjs")),"../../../language/locales/sl-SI.json":()=>Promise.resolve().then(()=>require("./sl-SI-BfO3xEJx-D7RrxQE5.cjs")),"../../../language/locales/sv-SE.json":()=>Promise.resolve().then(()=>require("./sv-SE-CMLKzwtj-C_teo0xK.cjs"))}),`../../../language/locales/${l}.json`,6)}]),!s||!e)return a.u(De,{});const o=Qe(s),d=e.includes(o),c=i.find(({id:l})=>l===o)?.name??o;return d?a.u(a.S,{children:t}):a.u(ho,{content:a.u("div",{children:[a.u(Gn,{variant:"error"}),a.u(tr,{title:n(l=>l.countryNotSupported),description:n(l=>l.weDontSupportOnboardingInCountry,{country:c})})]})})},vh=a.z(async()=>(await Promise.resolve().then(()=>require("./DebugModal-C7WSGJRZ-BmX2aMgK.cjs")).then(t=>t.DebugModalC7WSGJRZ)).DebugModal),mo=()=>{const[t,e]=a.d(!1),{isSettingEnabled:n}=en(),r=n("allowDebugUi");a.y(()=>{if(!r)return;const i=({code:o,ctrlKey:d,altKey:c,shiftKey:l})=>{d&&(c||l)&&o==="Backslash"&&e(!0)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[r]);const s=r&&t;return a.u(a.S,{children:s?a.u(a.P,{fallback:a.u("div",{}),children:a.u(vh,{onExit:()=>e(!1)})}):null})},po=({children:t})=>{const[e,n]=a.d(),{data:r}=Ye(Fe);return a.y(()=>{!r||e||n(Ju({rootLegalEntity:r}))},[r,e]),e?a.u(to.Provider,{value:e,children:t}):a.u(qt,{})},_h=Object.freeze(Object.defineProperty({__proto__:null,$:$i,A:js,B:te,C:Xt,D:mo,E:oo,F:be,G:gi,H:er,I:ao,J:Jt,K:Xi,L:G,O:Me,P:Zn,Q:co,R:Ye,S:lo,T:$n,U:Fe,V:De,W:dt,X:no,_:Un,a:Vn,a1:Yn,a2:Xn,a3:wi,a4:Qn,a8:Vi,a9:Qe,aA:vi,aB:tr,aC:ui,aD:di,aE:ai,aF:hi,aG:mi,aI:_i,aJ:yi,aK:ri,aN:Hi,aO:Ii,aR:Ws,aS:_t,aT:or,aU:Gs,aV:zi,aW:ki,aX:Ys,a_:xi,aa:v,ab:qt,ac:jn,ad:Si,ae:ze,ah:qn,ai:Z,aj:Wi,ak:Fi,am:rr,an:Qt,ao:vt,ap:sr,aq:tt,as:q,au:zn,av:Fn,aw:ei,ax:Ue,ay:Zt,az:ct,b:we,b2:Xs,b3:Vs,b4:bi,b9:Ui,bA:Wn,bB:cr,bC:Bi,bD:Gn,bE:ho,bK:Di,bL:Oi,bM:Pi,bN:Gi,bQ:Ci,bR:Mi,bT:Ln,ba:jt,bb:zt,bc:nr,bd:ii,be:si,bf:oi,bg:fi,bh:pi,bi:li,bj:ci,bk:ni,bl:Ni,bo:Ri,bp:ji,bq:ir,br:Kn,bw:Ai,bz:Ze,c:po,d:io,e:fo,f:uo,g:Bs,h:Yt,i:Hn,j:at,k:en,l:Qs,m:re,n:ro,o:k,q:Ti,s:Us,t:ar,u:Ee,v:qi,w:Le,y:R,z:Xe},Symbol.toStringTag,{value:"Module"}));try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="24d2268c-ad79-43ae-97bb-b4865bf93275",t._sentryDebugIdIdentifier="sentry-dbid-24d2268c-ad79-43ae-97bb-b4865bf93275")}catch{}const go=new CSSStyleSheet,Ih=[go];Promise.resolve().then(()=>require("./styles-CLV89_hH-Cf2_rK0x.cjs")).then(({css:t})=>{go.replaceSync(t)}).catch(t=>console.error("Error loading styles",t));const Sh=({children:t,rootLegalEntityId:e,settings:n,experiments:r,refreshExperiments:s,baseUrl:i,getSdkToken:o,componentName:d,locale:c})=>{const[l,u]=a.d(!0),[h,f]=a.d(!1);return Bs(o),a.y(()=>{Fn().then(m=>{m||f(!0),u(!1)})},[]),h?a.u("div",{children:["Something went wrong, please",a.u(dt,{onClick:()=>location.reload(),children:"refresh the page."})]}):l?a.u(De,{}):a.u(lo,{settings:n,children:a.u(co,{children:a.u(js,{rootLegalEntityId:e,baseUrl:i,children:a.u(oo,{experiments:r,refreshExperiments:s,children:a.u(po,{children:[a.u("span",{className:"adyen-kyc__sdk-version",hidden:!0,children:"4.0.0-compact.9"}),a.u(io,{componentName:d,rootLegalEntityId:e,children:a.u(ao,{locale:c,children:a.u(fo,{children:[a.u(mo,{}),a.u("div",{className:"adyen-kyc-ui-element-container-wrapper",children:a.u("div",{className:"adyen-kyc-ui-element-container",children:a.u($n,{children:a.u(uo,{children:t})})})})]})})})]})})})})})},Th=Object.freeze({live:"https://onboardingcomponents-live.adyen.com/",test:"https://test.adyen.com/"}),wh=t=>Th[t]??ro(t);try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="afc7bf04-4e17-406f-8df8-1a2318b7349d",t._sentryDebugIdIdentifier="sentry-dbid-afc7bf04-4e17-406f-8df8-1a2318b7349d")}catch{}const $={arrowDown:"ArrowDown",arrowUp:"ArrowUp",enter:"Enter",escape:"Escape",space:" ",tab:"Tab",backspace:"Backspace",home:"Home",end:"End"},Eh="adyen-kyc-modal",Ah="adyen-kyc-modal-small",Nh="adyen-kyc-modal-medium",Ph="adyen-kyc-modal-large",Dh="adyen-kyc-modal-body",Oh="adyen-kyc-modal-body-height",Rh="adyen-kyc-modal-transition-slide-in",kh="adyen-kyc-modal-transition-drop-in",xh="adyen-kyc-modal-inset",Ch="adyen-kyc-modal-button",Se={modal:Eh,modalSmall:Ah,modalMedium:Nh,modalLarge:Ph,modalBody:Dh,modalBodyHeight:Oh,modalTransitionSlideIn:Rh,modalTransitionDropIn:kh,modalInset:xh,modalButton:Ch},yo=({ariaLabel:t,children:e,inset:n=!1,onClose:r,showCloseButton:s=!0,size:i="medium",transition:o="slideIn"})=>{const d=a.A(null),c=r!==void 0&&s;a._(()=>{const m=d.current;if(!m)return;const p=b=>{b.preventDefault(),r?.()},g=b=>{b.key===$.escape&&(b.preventDefault(),r?.())};try{m.addEventListener("keydown",g),m.addEventListener("cancel",p),m.showModal()}catch{console.warn("Could not call `showModal()` on the <dialog>; likely it was already removed from the document.");return}return m.focus(),m.blur(),()=>{m.removeEventListener("cancel",p),m.removeEventListener("keydown",g),m.close()}},[]);const l={slideIn:Se.modalTransitionSlideIn,dropIn:Se.modalTransitionDropIn},u={small:Se.modalSmall,medium:Se.modalMedium,large:Se.modalLarge,fullscreen:null},h=a.cx(Se.modal,l[o],u[i]),f=a.cx(Se.modalBody,{[Se.modalInset]:n,[Se.modalBodyHeight]:i!=="small"});return a.u(a.S,{children:[a.u("style",{children:"html,body { overflow: hidden !important; }"}),a.u("dialog",{"aria-label":t,className:h,onClose:r,ref:d,children:[c&&a.u("div",{className:Se.modalButton,children:a.u(Xt,{ariaLabel:"Close",circle:!0,icon:"cross",onClick:r,variant:"surface"})}),a.u("div",{className:f,"data-testid":"modal-body",children:e})]})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="272fe9e9-fb8b-4e6b-9b16-8a1ea34348a5",t._sentryDebugIdIdentifier="sentry-dbid-272fe9e9-fb8b-4e6b-9b16-8a1ea34348a5")}catch{}const Mh=({ariaLabel:t,children:e,inline:n=!1,inset:r,onClose:s,showCloseButton:i,size:o})=>n?a.u(a.S,{children:e}):a.u(yo,{onClose:s,ariaLabel:t,size:o,inset:r,showCloseButton:i,children:a.u($n,{children:e})});try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7840a7b7-cb17-443f-9133-84ca83771322",t._sentryDebugIdIdentifier="sentry-dbid-7840a7b7-cb17-443f-9133-84ca83771322")}catch{}const Lh=re(),Fh=["businessLines","onboardingStatus","pciStatus","pciQuestionnaireList","scenarios","taskStatus","taskTypes","taxClassification","termsOfServiceAcceptanceInfos","termsOfServiceStatus","transferInstruments"],Uh=()=>{const t=Kt(),{rootLegalEntityId:e}=we();return a.q(()=>Promise.all([t.invalidateQueries({queryKey:["legalEntity",e.value]}),t.invalidateQueries({predicate:({queryKey:n})=>Fh.includes(n[0])})]).catch(Lh.error),[e.value,t])};function Bh(){return a.x(zn)}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="59c8a2aa-dc4a-48bf-8bfc-59fb3d88704b",t._sentryDebugIdIdentifier="sentry-dbid-59c8a2aa-dc4a-48bf-8bfc-59fb3d88704b")}catch{}const Vh="adyen-kyc-loader-wrapper-loader",qh="adyen-kyc-loader-wrapper-loader-active",Pt={loaderWrapperLoader:Vh,loaderWrapperLoaderActive:qh},jh=({children:t,status:e,formOpacityWhenLoading:n=0,loaderSize:r="medium",showSpinner:s=!0,className:i})=>{const o=e==="loading"?{opacity:n}:{opacity:1},d=e==="loading"&&s,c=a.cx(Pt.loaderWrapperLoader,{[Pt.loaderWrapperLoaderActive]:d}),l=a.cx(Pt.loaderWrapper,i);return a.u("div",{className:l,style:{position:"relative"},children:[d&&a.u("div",{className:c,children:a.u(De,{size:r})}),a.u("div",{className:Pt.loaderWrapperForm,style:o,children:t})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c6d20d48-407b-4be4-af37-07c4e78a2962",t._sentryDebugIdIdentifier="sentry-dbid-c6d20d48-407b-4be4-af37-07c4e78a2962")}catch{}const zh="adyen-kyc-progress-bar",$h="adyen-kyc-progress-bar-rounded",Hh="adyen-kyc-progress-bar-indicator",fn={progressBar:zh,progressBarRounded:$h,progressBarIndicator:Hh},Kh=({progress:t,ariaLabel:e,rounded:n=!1})=>{const s=(d=>Math.min(Math.max(d,0),100))(t),i=`${s}%`,o=a.cx(fn.progressBar,{[fn.progressBarRounded]:n});return a.u("div",{className:o,role:"progressbar","aria-label":e,"aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,children:a.u("div",{className:fn.progressBarIndicator,style:{width:i},children:[t,"%"]})})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1b45db25-e530-4076-9ec1-2e9652ae80b0",t._sentryDebugIdIdentifier="sentry-dbid-1b45db25-e530-4076-9ec1-2e9652ae80b0")}catch{}function Wh(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const lr=t=>{const[e]=a.d(Wh());return`${t}_${e}`};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a2609a69-e57c-4e42-9d4f-af49fd0e9b74",t._sentryDebugIdIdentifier="sentry-dbid-a2609a69-e57c-4e42-9d4f-af49fd0e9b74")}catch{}const Gh=({userEvents:t,actionType:e,toForm:n,label:r,returnValue:s,additionalTrackingParams:i})=>{t.addPageEvent("Clicked button",{actionType:e,toPage:n,label:r,returnValue:s,...i})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bb605b84-b3ff-4ae9-8f5d-7c167f3ff720",t._sentryDebugIdIdentifier="sentry-dbid-bb605b84-b3ff-4ae9-8f5d-7c167f3ff720")}catch{}class tn{validationResults;constructor(e){this.validationResults=e}get isValid(){return this.validationResults.reduce((e,n)=>e&&n.isValid,!0)}hasError(){return!!this.getError()}getError(){return this.validationResults.find(e=>e.hasError)}addError(e){return this.validationResults.push(e),this.validationResults}}const Re=(t,e)=>Object.keys(t).filter(n=>!e.includes(n)).reduce((n,r)=>(n[r]=t[r],n),{}),Dt=(t,e,n,r,s)=>e.reduce((i,o)=>({...i,[o]:i[o]??s?.[o]??r?.[o]??n}),t);function Yh(t,e){return vt(t).reduce((n,[r,s])=>e.includes(r)?{...n,[r]:s}:n,{})}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4fa947b3-db0f-4fc4-b39d-1f0507fbacbe",t._sentryDebugIdIdentifier="sentry-dbid-4fa947b3-db0f-4fc4-b39d-1f0507fbacbe")}catch{}const Xh="adyen-kyc-end-state-layout",Qh="adyen-kyc-end-state-layout-header",Jh="adyen-kyc-end-state-layout-icon",Zh="adyen-kyc-end-state-layout-icon-success",ef="adyen-kyc-end-state-layout-icon-error",tf="adyen-kyc-end-state-layout-icon-info",nf="adyen-kyc-end-state-layout-icon-warning",rf="adyen-kyc-end-state-layout-title",sf="adyen-kyc-end-state-layout-description",of="adyen-kyc-end-state-layout-action",me={endStateLayout:Xh,endStateLayoutHeader:Qh,endStateLayoutIcon:Jh,endStateLayoutIconSuccess:Zh,endStateLayoutIconError:ef,endStateLayoutIconInfo:tf,endStateLayoutIconWarning:nf,endStateLayoutTitle:rf,endStateLayoutDescription:sf,endStateLayoutAction:of},af=({action:t,description:e,loading:n=!1,title:r,variant:s="success"})=>{if(t&&(!a.t(t)||t.type!==dt))throw new Error('EndStateLayout component only accepts Button component as "action".');const i=a.cx(me.endStateLayoutIcon,{[me.endStateLayoutIconSuccess]:s==="success",[me.endStateLayoutIconError]:s==="error",[me.endStateLayoutIconWarning]:s==="warning",[me.endStateLayoutIconInfo]:s==="info"||s==="basic"}),o={basic:"info-circle",error:"cross",info:"info-circle",success:"check",warning:"warning"},d=t?a.W(t,{disabled:n}):null;return a.u("article",{className:me.endStateLayout,children:[a.u("header",{className:me.endStateLayoutHeader,children:[n?a.u("div",{className:me.endStateLayoutIcon,role:"progressbar",children:a.u(De,{})}):a.u("div",{className:i,role:"img","aria-label":s,children:a.u(te,{name:o[s]})}),a.u("h1",{className:me.endStateLayoutTitle,children:r}),e&&a.u("div",{className:me.endStateLayoutDescription,children:e})]}),d&&a.u("div",{className:me.endStateLayoutAction,role:"toolbar",children:d})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7319a3de-39dd-486f-aa4e-6c3853eb9b13",t._sentryDebugIdIdentifier="sentry-dbid-7319a3de-39dd-486f-aa4e-6c3853eb9b13")}catch{}const df=(t,e,n)=>{const r=re(),s={timeZone:"UTC",year:"numeric",month:"long",day:"2-digit"};try{return new Intl.DateTimeFormat(e,s).format(new Date(t))}catch(i){r.error(i)}};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c1498ce3-2175-4bad-9ff6-aea1cfab578d",t._sentryDebugIdIdentifier="sentry-dbid-c1498ce3-2175-4bad-9ff6-aea1cfab578d")}catch{}const cf=re(),lf=t=>{const[e,n]=a.d({}),r=a.q(i=>{n(o=>({...o,[i]:void 0}))},[]),s=a.q((i,o,d)=>{const c=t?.[i];if(!c||!c.modes.includes(d)){r(i);return}const l=o.data[i];return c.asyncValidate(o.data[i],{state:o}).then(u=>{n(h=>({...h,[i]:new tn([{isValid:u,errorMessage:typeof c.errorMessage=="function"?c.errorMessage(l,{state:o}):c.errorMessage,hasError:!u}])}))}).catch(cf.error)},[t,r]);return{asyncValidationResults:e,triggerAsyncValidation:s,clearAsyncValidationResults:r}},uf=t=>{const e=a.q(r=>{const s={validate:()=>!0,modes:["blur","input"]},i=t?.[r]??[s];return Array.isArray(i)?i:[i]},[t]);return{triggerStaticValidation:a.q(({key:r,value:s,mode:i="blur"},o)=>{const d=e(r),c=!!o?.state.optionalFields?.includes(r),l=!!o?.state.obscuredFields?.includes(r),u=d.map(h=>{const f=h.modes.includes(i)&&!l,m=c&&Ue(s)?!0:h.validate(s,o);return{isValid:m,errorMessage:typeof h.errorMessage=="function"?h.errorMessage(s,o):h.errorMessage,hasError:f&&!m}});return new tn(u)},[e])}},Pn=({key:t,value:e=null,mode:n,defaultData:r,fieldContext:s,formatters:i,staticValidate:o,asyncValidate:d})=>{const c=i?.[t]?.formatter?i[t]?.formatter:i?.[t],l=c&&typeof c=="function"?c(e,s):e,u=!(r?.[t]===e&&r?.[t]);u&&e&&d(t,s.state,n);const h=u?o({key:t,value:l,mode:n},s):new tn([{isValid:!0,hasError:!1}]);return[l,h]};function bo({schema:t,defaultData:e,fieldProblems:n,obscuredFields:r,optionalFields:s,trustedFields:i,formatters:o,staticValidate:d,asyncValidate:c}){const l=f=>{const[m,p]=Pn({key:f,value:e?.[f],mode:"blur",formatters:o,defaultData:e,fieldContext:{state:{data:e,obscuredFields:r,optionalFields:s,trustedFields:i}},staticValidate:d,asyncValidate:c});return typeof e?.[f]>"u"?{valid:p.isValid&&!n?.[f]||!1,errors:null,data:null,fieldProblems:n?.[f]??!1}:{valid:p.isValid&&!n?.[f]||!1,errors:p.getError()??null,data:m,fieldProblems:n?.[f]??!1}};return(s?[...t,...s]:t).reduce((f,m)=>{const{valid:p,errors:g,data:b,fieldProblems:y}=l(m);return{...f,data:{...f.data,[m]:b},valid:{...f.valid,[m]:p},errors:{...f.errors,[m]:g},fieldProblems:{...f.fieldProblems,[m]:y}}},{schema:t,data:{},valid:{},errors:{},fieldProblems:{},obscuredFields:r,optionalFields:s,trustedFields:i})}function hf({staticValidate:t,asyncValidate:e,obscuredFields:n,optionalFields:r,trustedFields:s,formatters:i}){return(o,{type:d,key:c,mode:l,value:u,schema:h,selectedSchema:f,formValue:m,fieldProblems:p,defaultData:g})=>{const b=f||o.schema;switch(d){case"setData":return c?{...o,data:{...o.data,[c]:u}}:o;case"setValid":return c?{...o,valid:{...o.valid,[c]:u}}:o;case"setErrors":return c?{...o,errors:{...o.errors,[c]:u}}:o;case"setFieldProblems":return o?.schema?.reduce((y,_)=>({...y,fieldProblems:{...o.fieldProblems,[_]:p?.[_]??!1},valid:{...o.valid,[_]:o.valid?.[_]&&!p?.[_]}}),o);case"setSchema":{if(!h)return o;const y=bo({schema:h,defaultData:g,fieldProblems:p,obscuredFields:n,optionalFields:r,trustedFields:s,staticValidate:t,asyncValidate:e}),_=o.optionalFields?.length?[...o.schema.filter(S=>!h.includes(S)),...o.optionalFields.filter(S=>!r?.includes(S))]:o.schema.filter(S=>!h.includes(S)),I=r?.length?[...h.filter(S=>!o.schema?.includes(S)),...r.filter(S=>!o.optionalFields?.includes(S))]:h.filter(S=>!o.schema?.includes(S)),T={data:Re(o.data,I),errors:Re(o.errors,I),valid:Re(o.valid,I),fieldProblems:Re(o.fieldProblems,I)},E=Dt(Re(o.data,_),I,null,y.data,o.local?.data),O=Dt(Re(o.valid,_),I,!1,y.valid,o.local?.valid),w=Dt(Re(o.errors,_),I,null,y.errors,o.local?.errors),M=Dt(Re(o.fieldProblems,_),I,!1,y.fieldProblems,o.local?.fieldProblems);return{...o,schema:h,data:E,valid:O,errors:w,fieldProblems:M,obscuredFields:n,optionalFields:r,trustedFields:s,local:T}}case"updateField":{if(!c||!l)return o;const[y,_]=Pn({key:c,value:u,mode:l,defaultData:g,formatters:i,fieldContext:{state:o},staticValidate:t,asyncValidate:e}),T=o.data[c]!==y;return{...o,data:{...o.data,[c]:y},errors:{...o.errors,[c]:_.getError()??null},valid:{...o.valid,[c]:_.isValid&&!o.fieldProblems?.[c]||!1},fieldProblems:{...o.fieldProblems,[c]:T?!1:o.fieldProblems?.[c]??!1}}}case"mergeForm":{const y={...o,data:{...o.data,...m?.data},errors:{...o.errors,...m?.errors},valid:{...o.valid,...m?.valid},fieldProblems:{...o.fieldProblems,...m?.fieldProblems}};return y.valid&&(y.isValid=Object.values(y.valid).every(_=>_)),y}case"validateForm":{const y=b?.reduce((_,I)=>{const[T,E]=Pn({key:I,value:o.data[I],mode:"blur",defaultData:g,formatters:i,fieldContext:{state:o},staticValidate:t,asyncValidate:e}),w=o.data[I]!==T;return{valid:{..._.valid,[I]:E.isValid&&!o.fieldProblems?.[I]||!1},errors:{..._.errors,[I]:E.getError()??null},fieldProblems:{..._.fieldProblems,[I]:w?!1:o.fieldProblems?.[I]??!1}}},{valid:o.valid,errors:o.errors,fieldProblems:o.fieldProblems});return{...o,valid:y?.valid,errors:y?.errors,fieldProblems:y?.fieldProblems}}default:throw new Error("Undefined useForm action")}}}const ff=(t,e,n,r,s)=>{const i=s?[...n,...s]:n;return i.length?i.reduce((d,c)=>(e[c]?.getError()&&r(c,!1),{...d,[c]:t[c]??e[c]?.getError()??null}),{}):t};function mf({schema:t,defaultData:e,rules:n,asyncRules:r,fieldProblems:s,obscuredFields:i,optionalFields:o,trustedFields:d,formatters:c,shouldValidate:l=!1}){const{triggerStaticValidation:u}=uf(n),{triggerAsyncValidation:h,asyncValidationResults:f}=lf(r),m=a.T(()=>typeof t=="function"?t:()=>t,[t]),p=a.T(()=>e?m(e):[],[e,m]),g=a.q(()=>hf({staticValidate:u,asyncValidate:h,obscuredFields:i,optionalFields:o,trustedFields:d,formatters:c}),[u,h,i,o,d,c]),b=a.T(()=>({schema:p,defaultData:e,fieldProblems:s,obscuredFields:i,optionalFields:o,trustedFields:d,formatters:c,staticValidate:u,asyncValidate:h}),[p,e,s,i,o,d,c,u,h]),[y,_]=a.h(g(),b,bo),I=a.T(()=>y.schema?.every(N=>y.valid[N]),[y.schema,y.valid]),T=a.q((N,x)=>x?.target?x.target.type==="checkbox"?!y.data[N]:x.target.value:x,[y.data]),E=a.q((N,x)=>{_({type:"setErrors",key:N,value:x})},[]),O=a.q((N,x)=>{_({type:"setValid",key:N,value:x})},[]),w=a.q((N,x)=>{_({type:"setData",key:N,value:x})},[]),M=a.q(N=>{_({type:"setSchema",schema:N,defaultData:e})},[e]),S=a.q(N=>{_({type:"setFieldProblems",fieldProblems:N})},[]),z=a.q(N=>{_({type:"mergeForm",formValue:N})},[]),j=a.q((N,x="blur")=>K=>{const F=T(N,K);_({type:"updateField",key:N,value:F,mode:x,defaultData:e})},[e,T]),B=a.q(N=>{_({type:"validateForm",selectedSchema:N,defaultData:e})},[e]),L=a.q(()=>{p.forEach(N=>{if(!e||typeof e[N]<"u"){j(N)(e?.[N]);return}O(N,!1),E(N,null),w(N,e[N])})},[e,p,j,w,E,O]);a.y(()=>{const N=m(y.data);Xs(y.schema,N)||M(N)},[y.schema,y.data,M,m]),a.y(()=>{l&&B()},[l,y.schema]),a.y(()=>{s&&S(s)},[JSON.stringify(s),S]);const V=a.T(()=>ff(y.errors,f,y.schema,O,y.optionalFields),[f,y.errors,y.optionalFields,y.schema]);return{mergeForm:z,setData:w,setValid:O,setErrors:E,setFieldProblems:S,handleChangeFor:j,triggerValidation:B,resetToDefaultData:L,isValid:I,schema:y.schema,valid:y.valid,errors:V,data:y.data,fieldProblems:y.fieldProblems}}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a1942dde-6355-4080-a792-8d8c1871241a",t._sentryDebugIdIdentifier="sentry-dbid-a1942dde-6355-4080-a792-8d8c1871241a")}catch{}const pf="-ariaError",gf=({children:t,className:e,name:n,disabled:r,el:s,dataTestId:i})=>s==="fieldset"?a.u("fieldset",{name:n,disabled:r,className:e,"data-testid":i,children:t}):a.u("div",{className:e,"data-testid":i,children:t}),yf=({className:t,classNameModifiers:e=[],children:n,disabled:r,optional:s,errorMessage:i,formatGuidance:o,helper:d,helperPosition:c="above",isValid:l,label:u,name:h,showErrorIconBottom:f=!1,showErrorIcon:m=!0,el:p="div",dataTestId:g,onBlur:b,onFieldBlur:y,onFocus:_})=>{const I=lr("field"),{t:T}=Ee("common"),E=Xe(),O=p==="fieldset"?"legend":"label";a.y(()=>{if(!i)return;const S=typeof i=="string"&&i||typeof i=="object"&&i.key||"invalid";E.addFieldEvent("Encountered error",{actionType:"input",field:h,returnType:"validation",returnValue:S})},[h,i,E]);const w={label:`${I}-label`,helper:`${I}-helper`,error:`${I}${pf}`,guidanceText:`${I}-guidanceText`},M=`${i?w.error:""} ${d?w.helper:""} ${o?w.guidanceText:""}`.trim();return a.u(gf,{className:a.cx("adyen-kyc-field",t,e.map(S=>`adyen-kyc-field--${S}`),{"adyen-kyc-field--error":!!i,"adyen-kyc-field--valid":l,"adyen-kyc-field--disabled":r}),name:h,disabled:r,el:p,dataTestId:g,children:[u&&a.u(O,{id:w.label,htmlFor:p==="fieldset"?void 0:I,className:a.cx("adyen-kyc-label__text",{"adyen-kyc-label__text--error":!!i}),children:[u,s&&a.u("span",{className:"adyen-kyc-optional-label",children:[" ",T(S=>S.optional)]})]}),d&&c==="above"&&a.u("span",{id:w.helper,className:"adyen-kyc-helper-text adyen-kyc-helper-text__above",children:d}),a.u("div",{className:"adyen-kyc-input-wrapper",children:[n({id:I,"aria-labelledby":w.label,"aria-describedby":M,isInvalid:!!i,isValid:!!l,onBlurHandler:S=>{typeof b=="function"&&b(S),typeof y=="function"&&y(S)},onFocusHandler:S=>{typeof _=="function"&&_(S)}}),d&&c==="below"&&a.u("span",{id:w.helper,className:"adyen-kyc-helper-text adyen-kyc-helper-text__below",children:d}),!!i&&!f&&m&&a.u("span",{className:"adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid",children:a.u(te,{name:"field-error"})})]}),a.u("div",{"aria-live":"polite","aria-atomic":!0,className:"adyen-kyc-error-text",children:[a.u("span",{className:"adyen-kyc-u-screen-reader-only",children:`${u}:`}),!!i&&typeof i!="boolean"&&a.u("span",{id:w.error,children:[jn(T,i),f&&a.u("span",{className:"adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid-bottom",children:a.u(te,{name:"field-error"})})]})]}),!i&&o&&a.u("span",{id:w.guidanceText,"aria-live":"polite",className:"adyen-kyc-guidance-text",children:o})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="009ce03f-6100-4f97-b658-7de54f12cfcf",t._sentryDebugIdIdentifier="sentry-dbid-009ce03f-6100-4f97-b658-7de54f12cfcf")}catch{}const bf=(t,e)=>{let n,r;return(...s)=>{r=!0,n||(t(...s),r=!1),clearTimeout(n),n=setTimeout(()=>r&&t(...s),e)}},vf=(t,e)=>{const n=a.A();return a.q((...r)=>{const s=()=>{clearTimeout(n.current),t(...r)};clearTimeout(n.current),n.current=setTimeout(s,e)},[t,e])},vo=bf((t,e)=>t.addFieldEvent("Interacted with form field",e),500);try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4ba569d8-65d0-4fd5-8ad6-2ed8d139c488",t._sentryDebugIdIdentifier="sentry-dbid-4ba569d8-65d0-4fd5-8ad6-2ed8d139c488")}catch{}function _o({id:t,name:e,value:n,className:r,label:s,isInvalid:i,onChange:o,helper:d,checked:c,readonly:l,disabled:u,enableTracking:h=!1,"aria-required":f,"aria-invalid":m,"aria-describedby":p}){const g=Xe(),b=I=>{h&&g.addFieldEvent("Interacted with form field",{actionType:"input",field:e,returnValue:String(I)}),o(I)},y=`${t}-helper`,_=`${d?y:""} ${p??""}`.trim();return a.u(a.S,{children:[a.u("input",{id:t,name:e,value:n,"aria-describedby":_,"aria-invalid":m||i,"aria-required":f,readOnly:l,disabled:u,checked:c,className:a.cx(["adyen-kyc-checkbox__input",[r],{"adyen-kyc-checkbox__input--invalid":i}]),type:"checkbox",onClick:I=>{I.stopPropagation(),b(!c)}}),a.u("label",{htmlFor:t,className:"adyen-kyc-checkbox__label",children:s}),d&&a.u("span",{id:y,className:"adyen-kyc-checkbox__helper-text",children:d})]})}try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c84c571e-2a36-45da-806d-2330ac24a8eb",t._sentryDebugIdIdentifier="sentry-dbid-c84c571e-2a36-45da-806d-2330ac24a8eb")}catch{}const _f=({activeItems:t,filteredItems:e})=>{const n=le(()=>e.value.length-1),r=ue(),s=()=>{const g=t.value.find(y=>!y.disabled),b=e.value.find(y=>!y.disabled);return g??b},i=le(()=>{const g=r.value,b=Io(g)?g:s(),y=e.value;return b?y.findIndex(_=>_.id===b.id):(console.warn("[Select] No existing focused item, and none of the filtered items are enabled"),0)}),o=(g,b)=>{const y=b==="down"?g+1:g-1,_=e.value[y];return y<0||y>n.value?"exceedsBounds":_.disabled?o(y,b):y};return{focused:r,moveFocusToFirstItem:()=>{let g=i.value;for(;;){const b=o(g,"up");if(b==="exceedsBounds")break;g=b}r.value=e.value[g]},moveFocusToLastItem:()=>{let g=i.value;for(;;){const b=o(g,"down");if(b==="exceedsBounds")break;g=b}r.value=e.value[g]},moveFocusToNextItem:()=>{const g=o(i.value,"down");g!=="exceedsBounds"&&(r.value=e.value[g])},moveFocusToPreviousItem:()=>{const g=o(i.value,"up");g!=="exceedsBounds"&&(r.value=e.value[g])},focusInput:()=>{r.value="input"},focusItem:g=>{r.value=g},focusDefaultItem:()=>{r.value=s()},focusNothing:()=>{r.value=void 0}}},If=t=>{const[e]=a.d(_f(t));return e},Io=t=>!!t&&typeof t=="object",ns=t=>{const e=Mn(t);return e.peek()!==t&&(e.value=t),e},Sf=(t,e)=>{const{key:n}=t;let r=e;return n===$.backspace?r=r.slice(0,r.length-1):n.length===1&&(r+=n),r};function rs(t,e,n){const[r]=a.d(e!==void 0),[s,i]=a.d(n);return r?[t,e]:[s,i]}const Tf="adyen-kyc-select-input-wrapper",wf="adyen-kyc-select-input",Ef="adyen-kyc-select-input--active",Af="adyen-kyc-select-input--readonly",Nf="adyen-kyc-select-input--invalid",Pf="adyen-kyc-select-input--minimal",Df="adyen-kyc-select-input-search",Of="adyen-kyc-select-input--filterable",Rf="adyen-kyc-select-input-wrapper--filterable",kf="adyen-kyc-select-input-wrapper--non-filterable",xf="adyen-kyc-select-input--list-open",Cf="adyen-kyc-select-input--non-filterable",Mf="adyen-kyc-select-input--placeholder",Lf="adyen-kyc-ignore-pointer-events",Ff="adyen-kyc-handle-pointer-events",Q={selectInputWrapper:Tf,selectInput:wf,selectInputActive:Ef,selectInputReadonly:Af,selectInputInvalid:Nf,selectInputMinimal:Pf,selectInputSearch:Df,selectInputFilterable:Of,selectInputWrapperFilterable:Rf,selectInputWrapperNonFilterable:kf,selectInputListOpen:xf,selectInputNonFilterable:Cf,selectInputPlaceholder:Mf,ignorePointerEvents:Lf,handlePointerEvents:Ff},ss=/iPhone|iPad/.test(navigator.platform);function Uf({id:t,name:e,active:n,readonly:r,showList:s,isInvalid:i,onClick:o,onButtonKeyDown:d,filterable:c,isFiltering:l,placeholder:u,focusProps:{focused:h},selectListId:f,onInput:m,behaviour:p,loading:g,text:b,enableTracking:y=!1,onFocus:_,inputRef:I,minimal:T,"aria-describedby":E,"aria-labelledby":O,"aria-label":w}){const M=Xe(),S=a.A(null);Ms(()=>{h.value==="input"&&I.current?.focus()});const z=F=>{r||(y&&M.addFieldEvent("Interacted with form field",{actionType:"focus",field:e}),_(F))},j=F=>{F.preventDefault(),F.stopPropagation(),!r&&o()},B=F=>{r||d(F)},L=F=>{c&&!r&&m(F.currentTarget.value)},V=a.T(()=>{if(n.length===0)return;const F=n.map(({selectedOptionName:he,name:se})=>he??se).join(", ");return F.length>50?F.substring(0,50)+"...":F},[n]),N=n?.length?n.map(({name:F})=>F).join(","):u,x=h.value==="input",K=a.T(()=>p==="textIsData"||h.value!==void 0&&c&&l?b:V,[p,b,h.value,c,l,V]);return a.u("div",{className:a.cx({[Q.selectInputWrapper]:!0,[Q.selectInputMinimal]:T,[Q.selectInputReadonly]:r,[Q.selectInputActive]:x,[Q.selectInputListOpen]:s,[Q.selectInputInvalid]:i,[Q.selectInputSearch]:c==="prefiltered",[Q.selectInputWrapperFilterable]:c,[Q.selectInputWrapperNonFilterable]:!c,[Q.ignorePointerEvents]:ss}),ref:S,onClick:j,onFocusIn:z,children:[a.u("input",{id:t,name:e,title:N,ref:I,type:c?"text":"button",role:"combobox","aria-haspopup":"listbox","aria-owns":f,"aria-controls":f,"aria-expanded":s,"aria-describedby":E,"aria-disabled":r,"aria-label":w,"aria-labelledby":O,"aria-autocomplete":c?"list":void 0,autoComplete:"off",className:a.cx({[Q.selectInput]:!0,[Q.selectInputFilterable]:c,[Q.selectInputNonFilterable]:!c,[Q.selectInputMinimal]:T,[Q.selectInputReadonly]:r,[Q.handlePointerEvents]:ss}),placeholder:u,value:K,disabled:r,onClick:j,onInput:L,onKeyDown:B}),!c&&!K?a.u("span",{className:Q.selectInputPlaceholder,children:u}):void 0,g&&a.u(De,{size:"small"})]})}const Bf=({id:t,item:e,selected:n,isMulti:r,isSearch:s,children:i,onSelect:o,onKeyDown:d,onFocus:c,className:l})=>a.u("li",{"aria-disabled":!!e.disabled,"aria-selected":n,className:a.cx(["adyen-kyc-dropdown-element",{"adyen-kyc-dropdown-element--active":n,"adyen-kyc-dropdown-element--disabled":!!e.disabled,"adyen-kyc-dropdown-multi-element":r,"adyen-kyc-dropdown-element-description":!r&&!s&&e.description,"adyen-kyc-dropdown-search-element":s},l]),"data-disabled":!!e.disabled,"data-value":e.id,onFocus:u=>{e.disabled||c?.(u)},onClick:u=>{u.preventDefault(),!e.disabled&&o(!n)},onKeyDown:u=>{e.disabled||d(u)},role:"option",tabIndex:-1,children:r?a.u("span",{style:{pointerEvents:"none",width:"100%"},children:a.u(_o,{id:t,onChange:Z,label:e.name,disabled:e.disabled,helper:e.description,checked:n,name:`adyen-kyc-dropdown-element__checkbox adyen-kyc-dropdown-element__checkbox--${e.id}`})}):i?[i]:a.u(a.S,{children:[e.icon&&a.u("span",{className:"adyen-kyc-dropdown-element__icon",children:e.icon}),e.description?a.u(a.S,{children:[a.u(Me,{el:"span",variant:"body-strongest",className:"adyen-kyc-dropdown-element__label",children:e.name}),a.u(Me,{el:"span",color:"secondary",className:"adyen-kyc-dropdown-element-description__text",children:e.description})]}):a.u("span",{className:"adyen-kyc-dropdown-element__label",children:e.name})]})}),Vf=re(),qf=36;function jf({selectListId:t,active:e,filteredItems:n,showList:r,isMulti:s,inputRef:i,isSearch:o,loading:d,getSearchItem:c,onKeyDown:l,onSelect:u,minimal:h,maxVisibleItems:f=5,focusProps:{focused:m,focusItem:p,focusDefaultItem:g,moveFocusToNextItem:b,moveFocusToPreviousItem:y,moveFocusToFirstItem:_,moveFocusToLastItem:I}}){const{t:T}=Ee("ui"),[E,O]=a.d(0),[w,M]=a.d(f),S=a.A(null),j=(()=>{if(S.current&&r){const P=S.current.firstElementChild?.firstElementChild?.clientHeight;if(P!==void 0)return P}})()||qf,B=n.length,L=a.T(()=>n.slice(E,w),[w,n,E]),V=a.q(P=>{const U=S.current;if(U)return U.querySelector(`[role="option"][data-value="${P.id}"]`)},[S]),N=a.q(()=>{if(!S.current)return;const{scrollTop:P}=S.current,U=B<f?B:B-f,ve=Math.min(Math.max(0,Math.floor(P/j)),U),Be=Math.min(ve+f,B);O(ve),M(Be)},[B,f,j,S]);a.y(()=>{N()},[N]);const x=a.q(P=>{if(!S.current)return;const U=n.indexOf(P);if(U===-1)return;const ve=B*j;S.current.scrollTop=Math.min(j*(U+.5),ve)},[n,j,B,S]),K=a.q(P=>{let U=V(P);U||x(P),setTimeout(()=>{U=U??V(P),U?U.focus():Vf.warn("[SelectList] still cannot see the option",P.name)},20)},[V,x]);Ms(()=>{const P=m.value;Io(P)&&K(P)});const F={[$.arrowUp]:y,[$.arrowDown]:b,[$.home]:_,[$.end]:I},he=P=>{const U=F[P.key];U&&(P.preventDefault(),U())},se=()=>d?a.u("div",{className:"adyen-kyc-dropdown-element adyen-kyc-dropdown-element--no-options",children:T(P=>P.loading)}):n.length?L.length?L.map(P=>a.u(Bf,{item:P,id:P.id,onKeyDown:U=>{l(U,P)},onFocus:U=>{p(P),U.stopPropagation()},onSelect:()=>{u(P)},selected:!!e.find(U=>U.id===P.id),isMulti:s,isSearch:o,children:c&&c(P)},P.id)):null:((E!==0||w!==f)&&(O(0),M(f)),a.u("div",{className:"adyen-kyc-dropdown-element adyen-kyc-dropdown-element--no-options",children:T(P=>P.noOptionsFound)})),W=a.T(()=>d?"auto":B>f&&j?`${j*f}px`:"auto",[j,B,d,f]),fe=B<=f,[Ae,Oe]=a.d(!1);return a.y(()=>{const P=S.current,U=i.current,ve=new ResizeObserver(()=>{const Be=P.offsetHeight,nn=window.innerHeight,It=U.getBoundingClientRect().bottom,_e=nn-It>Be,Ve=It>Be;Oe(!_e&&Ve)});return ve.observe(P),()=>{ve.disconnect()}},[i,S]),a.u("div",{className:a.cx({"adyen-kyc-dropdown-list":!0,"adyen-kyc-dropdown-list--minimal":h,"adyen-kyc-dropdown-list--active":r,"adyen-kyc-dropdown-list--above":Ae}),id:t,role:"listbox",onScroll:N,style:{overflowY:fe?"hidden":"auto",position:"absolute",height:W},onKeyDown:he,onFocus:g,tabIndex:-1,ref:S,children:a.u("ul",{className:"adyen-kyc-dropdown-list__transformer",style:{transform:`translateY(${E*j}px)`},children:[se(),a.u("div",{style:{height:`${(B-w)*j}px`}})]})})}const zf=({id:t,items:e,filterable:n=!0,readonly:r=!1,onChange:s,onSelect:i,selected:o,name:d,isInvalid:c=!1,placeholder:l="",isMulti:u,enableTracking:h=!1,maxVisibleItems:f,getSearchItem:m,onBlur:p=Z,text:g,setText:b,showList:y,setShowList:_,behaviour:I="textIsFilter",loading:T=!1,minimal:E=!1,"aria-describedby":O,"aria-label":w,"aria-labelledby":M,excludedValues:S})=>{const z=Xe(),j=a.A(null),B=a.A(null),L=lr("select"),[V,N]=rs(g,b,""),[x,K]=rs(y,_,!1),[F,he]=a.d(!1),se=a.T(()=>o===void 0?[]:(Array.isArray(o)?o:[o]).map(D=>typeof D=="object"?D:e.find(Ie=>Ie.id===D)).filter(Boolean),[e,o]),W=a.T(()=>e.filter(Ie=>!S?.includes(Ie)).filter(Ie=>n==="prefiltered"||!F?!0:Ie.name.toLowerCase().includes(V.toLowerCase())),[n,F,e,V,S]),fe=ns(se),Ae=ns(W),Oe=If({activeItems:fe,filteredItems:Ae}),{focusInput:P,focusItem:U,focusDefaultItem:ve,focusNothing:Be,moveFocusToNextItem:nn,moveFocusToPreviousItem:It}=Oe,_e=a.q(D=>{switch(I==="textIsFilter"&&N(""),K(!1),D){case"input":P();break;case"nothing":Be();break}},[I,P,Be,K,N]),Ve=a.q(()=>{x||K(!0)},[x,K]),rn=a.q(D=>{if(he(!1),!r){if(u){const St=se.find(lt=>lt.id===D.id)?se.filter(lt=>lt.id!==D.id):[...se,D];i?.(St),s?.({target:{value:St.map(lt=>lt.id),name:d??""}}),U(D)}else{const Ie=i,St=s;Ie?.(D),St?.({target:{value:D.id,name:d??""}}),_e("input")}h&&z.addFieldEvent("Interacted with form field",{actionType:"select",field:d,returnValue:D.id})}},[r,u,h,se,i,s,d,U,_e,z]),So=D=>{p(D)},To=async D=>{if(D.key===$.enter&&x)W.length===1?rn(W[0]):D.preventDefault();else if(D.key===$.escape)_e("nothing");else if(D.key===$.enter||D.key===$.space&&(!n||!x))D.preventDefault(),D.stopPropagation(),Ve(),ve();else if(D.key===$.arrowUp||D.key===$.arrowDown)switch(D.preventDefault(),D.stopPropagation(),Ve(),ve(),D.key){case $.arrowUp:It();break;case $.arrowDown:nn();break}else D.key===$.tab&&_e("nothing")},ur=D=>{j.current?.contains(D.target)||_e("nothing")},wo=(D,Ie)=>{switch(D.key){case $.escape:D.preventDefault(),_e("input");break;case $.space:case $.enter:rn(Ie);break;case $.tab:_e("nothing");break;case $.arrowUp:case $.arrowDown:case $.home:case $.end:break;default:D.preventDefault(),D.stopPropagation(),hr(Sf(D,V)),P()}},hr=a.q(D=>{Ve(),he(!0),N(D),h&&vo(z,{actionType:"input",field:d})},[h,d,N,Ve]);return a.y(()=>(document.addEventListener("click",ur,!0),()=>{document.removeEventListener("click",ur,!0)}),[]),a.u("div",{className:a.cx({"adyen-kyc-dropdown":!0,"adyen-kyc-dropdown--minimal":E}),ref:j,onFocusOut:So,children:[a.u(Uf,{id:t,name:d,active:se,filterable:n,isFiltering:F,isInvalid:c,onButtonKeyDown:To,onInput:hr,placeholder:l,readonly:r,selectListId:L,showList:x,focusProps:Oe,"aria-describedby":O||"","aria-label":w||"","aria-labelledby":M||"",isMulti:!!u,loading:T,behaviour:I,text:V,inputRef:B,enableTracking:h,minimal:E,onClick:()=>{x?_e("input"):(Ve(),P())},onFocus:()=>{P()}}),a.u(jf,{active:se,filteredItems:W,onKeyDown:wo,onSelect:rn,selectListId:L,showList:x,textFilter:V,isMulti:!!u,isSearch:n==="prefiltered",getSearchItem:m,loading:T,maxVisibleItems:f,focusProps:Oe,inputRef:B,minimal:E})]})};try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1403043e-d37f-44f9-8c74-7a93ce194a09",t._sentryDebugIdIdentifier="sentry-dbid-1403043e-d37f-44f9-8c74-7a93ce194a09")}catch{}class $f extends Event{eventName;value;constructor(e,n){super(e,{bubbles:!0,composed:!0}),this.eventName=e,this.value=n}}const Hf=(t,e,n)=>{if(!t.current)return;const r=new $f(e,n);t.current.dispatchEvent(r)};exports.ADDRESS_VALID_CHAR_REGEX=li;exports.Accordion=Wn;exports.Alert=gi;exports.Button=dt;exports.Checkbox=_o;exports.CountryCodes=v;exports.DecisionMakerTypes=q;exports.EMOJI_REGEX=ai;exports.EmbedShell=Sh;exports.EndStateLayout=af;exports.Field=yf;exports.Header=tr;exports.Icon=te;exports.IconButton=Xt;exports.KEYBOARD_KEYS=$;exports.LegalEntityTypes=G;exports.Loader=De;exports.LoaderWrapper=jh;exports.MaybeModal=Mh;exports.Modal=yo;exports.NO_ALPHABET_REGEX=di;exports.NO_ALPHABET_UNICODE_REGEX=ci;exports.ProgressBar=Kh;exports.ROOT_LE=Fe;exports.SPECIAL_CHARS=si;exports.Select=zf;exports.StackLayout=Zn;exports.StoreProviderCBB99upB=_h;exports.TaskTypes=R;exports.TaskVerificationStatus=er;exports.TrustMemberGuidanceLabels=Ze;exports.TrustMemberTypes=ze;exports.Typography=Me;exports.ValidationResult=tn;exports.__variableDynamicImportRuntimeHelper=Un;exports.addResourceBundles=Vn;exports.c=No;exports.chomeAndBanchiValidator=pi;exports.cloneObject=Qt;exports.createLogger=re;exports.datasetIdentifier=tt;exports.datasetUtilities=rr;exports.debouncedInputEvent=vo;exports.defineSlots=kn;exports.doesLegalEntityRequiresLegalRepresentative=Yn;exports.drop=Ys;exports.emitAdyenSdkEvent=Hf;exports.entriesOf=vt;exports.getDataByFields=Yh;exports.getFormattingRegEx=ii;exports.getLanguageCode=ei;exports.getLegalEntityCountry=Qe;exports.getLegalRepresentative=Xn;exports.getMaxLengthByFieldAndCountry=ni;exports.getOwnSignatories=wi;exports.hasRepeatedCharacters=hi;exports.hasSolePropInLegalEntity=Ti;exports.hasText=ri;exports.httpGet=at;exports.httpPost=Yt;exports.isEeaCountry=vi;exports.isEmpty=Ue;exports.isInvalidName=mi;exports.isUndefinedOrNull=Hn;exports.isValidMinLength=fi;exports.keysOf=_t;exports.listToRecord=or;exports.localizeDateString=df;exports.matchesRegex=ui;exports.objectsDeepEqual=qn;exports.remediationBusinessDetailsApiKeyMapping=zt;exports.remediationHasFileUploadField=Ui;exports.remediationIndividualApiKeyMapping=nr;exports.remediationPayoutApiKeyMapping=jt;exports.resolveEnvironment=wh;exports.reverseMapping=ct;exports.skipToken=Ne;exports.splitTaskIdentifier=cr;exports.stylesheets=Ih;exports.trackNavigation=Gh;exports.translateTranslatable=jn;exports.trimValWithOneSpace=oi;exports.useAnalyticsContext=Xe;exports.useApiContext=we;exports.useDataset=sr;exports.useDebouncedCallback=vf;exports.useExperimentsContext=Jt;exports.useForm=mf;exports.useGlobalStore=no;exports.useId=lr;exports.useInvalidateRootLegalEntity=Uh;exports.useLegalEntity=Ye;exports.useMutation=Ts;exports.useQuery=rt;exports.useQueryClient=Kt;exports.useSettingsContext=en;exports.useToastContext=Bh;exports.useTranslation=Ee;exports.valuesOf=Ws;exports.y=ue;
6
+ //# sourceMappingURL=emitEvent-CzZf80Am-DK0eOfQ9.cjs.map