@dcl/landing-site 0.5.1-24685869120.commit-1de5712 → 0.5.1-24686484792.commit-e56f2bf

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 (182) hide show
  1. package/assets/{AnimatedBackground--tmRk4pB.js → AnimatedBackground-BbbuCmrW.js} +2 -2
  2. package/assets/{AnimatedBackground--tmRk4pB.js.map → AnimatedBackground-BbbuCmrW.js.map} +1 -1
  3. package/assets/{AnimatedSection-4VTaj_2R.js → AnimatedSection-CcAt5h6R.js} +1 -1
  4. package/assets/{AnimatedSection-4VTaj_2R.js.map → AnimatedSection-CcAt5h6R.js.map} +1 -1
  5. package/assets/{ArrowBackIosNew-BmStpKu0.js → ArrowBackIosNew-lqzUFZQL.js} +1 -1
  6. package/assets/{ArrowBackIosNew-BmStpKu0.js.map → ArrowBackIosNew-lqzUFZQL.js.map} +1 -1
  7. package/assets/{AuthorPage-DsEGDjQw.js → AuthorPage-4inFQH2X.js} +1 -1
  8. package/assets/{AuthorPage-DsEGDjQw.js.map → AuthorPage-4inFQH2X.js.map} +1 -1
  9. package/assets/{Badges-DFm-dJP0.js → Badges-DPcq_7dC.js} +1 -1
  10. package/assets/{Badges-DFm-dJP0.js.map → Badges-DPcq_7dC.js.map} +1 -1
  11. package/assets/{BlogLayout-CxiSrxYR.js → BlogLayout-Bl9FID_L.js} +1 -1
  12. package/assets/{BlogLayout-CxiSrxYR.js.map → BlogLayout-Bl9FID_L.js.map} +1 -1
  13. package/assets/{BlogPage-BrmWjpqW.js → BlogPage-4c8ZFzdw.js} +1 -1
  14. package/assets/{BlogPage-BrmWjpqW.js.map → BlogPage-4c8ZFzdw.js.map} +1 -1
  15. package/assets/{CTAButton-DiWefRTF.js → CTAButton-D8_9d6Wu.js} +1 -1
  16. package/assets/{CTAButton-DiWefRTF.js.map → CTAButton-D8_9d6Wu.js.map} +1 -1
  17. package/assets/{CardContent-BGQcwSBj.js → CardContent-BQ0iSa2p.js} +1 -1
  18. package/assets/{CardContent-BGQcwSBj.js.map → CardContent-BQ0iSa2p.js.map} +1 -1
  19. package/assets/{CardMedia-RFT7-c29.js → CardMedia-B6PneSTk.js} +1 -1
  20. package/assets/{CardMedia-RFT7-c29.js.map → CardMedia-B6PneSTk.js.map} +1 -1
  21. package/assets/{Carousel-pw-zJClB.js → Carousel-DJd7E-wq.js} +1 -1
  22. package/assets/{Carousel-pw-zJClB.js.map → Carousel-DJd7E-wq.js.map} +1 -1
  23. package/assets/{CategoryPage-ZdXQJP2n.js → CategoryPage-DNQI3nXz.js} +1 -1
  24. package/assets/{CategoryPage-ZdXQJP2n.js.map → CategoryPage-DNQI3nXz.js.map} +1 -1
  25. package/assets/{CircleAndArrow-DjRydx_v.js → CircleAndArrow-DIeWRbH9.js} +1 -1
  26. package/assets/{CircleAndArrow-DjRydx_v.js.map → CircleAndArrow-DIeWRbH9.js.map} +1 -1
  27. package/assets/{CircularProgress-CpGrVwOe.js → CircularProgress-AsNM1BvH.js} +1 -1
  28. package/assets/{CircularProgress-CpGrVwOe.js.map → CircularProgress-AsNM1BvH.js.map} +1 -1
  29. package/assets/{ContentCopy-Biu7mI_B.js → ContentCopy-CDhBZqHF.js} +1 -1
  30. package/assets/{ContentCopy-Biu7mI_B.js.map → ContentCopy-CDhBZqHF.js.map} +1 -1
  31. package/assets/{CreateEventPage-CSyGxQEM.js → CreateEventPage-NcQUT47j.js} +1 -1
  32. package/assets/{CreateEventPage-CSyGxQEM.js.map → CreateEventPage-NcQUT47j.js.map} +1 -1
  33. package/assets/{CreatorHubDownload-C0lTqfvy.js → CreatorHubDownload-y9x_B8ll.js} +1 -1
  34. package/assets/{CreatorHubDownload-C0lTqfvy.js.map → CreatorHubDownload-y9x_B8ll.js.map} +1 -1
  35. package/assets/{CreatorHubDownloadSuccess-OmyWSLJA.js → CreatorHubDownloadSuccess-BP7MSbSp.js} +1 -1
  36. package/assets/{CreatorHubDownloadSuccess-OmyWSLJA.js.map → CreatorHubDownloadSuccess-BP7MSbSp.js.map} +1 -1
  37. package/assets/{DappsShell-DNMjP5_u.js → DappsShell-HNAsXcn5.js} +1 -1
  38. package/assets/{DappsShell-DNMjP5_u.js.map → DappsShell-HNAsXcn5.js.map} +1 -1
  39. package/assets/{DownloadSuccessLayout-OfN-COoN.js → DownloadSuccessLayout-COBp7A1N.js} +1 -1
  40. package/assets/{DownloadSuccessLayout-OfN-COoN.js.map → DownloadSuccessLayout-COBp7A1N.js.map} +1 -1
  41. package/assets/{Grow-vvw5xHGO.js → Grow-eKASrvPe.js} +1 -1
  42. package/assets/{Grow-vvw5xHGO.js.map → Grow-eKASrvPe.js.map} +1 -1
  43. package/assets/HomePage-CZwkfB5G.js +3 -0
  44. package/assets/HomePage-CZwkfB5G.js.map +1 -0
  45. package/assets/{InviteFaqs-VtXtD9Y7.js → InviteFaqs-BkOvxqyN.js} +1 -1
  46. package/assets/{InviteFaqs-VtXtD9Y7.js.map → InviteFaqs-BkOvxqyN.js.map} +1 -1
  47. package/assets/{InvitePage-B2ILV0JT.js → InvitePage-D5lELZNP.js} +2 -2
  48. package/assets/{InvitePage-B2ILV0JT.js.map → InvitePage-D5lELZNP.js.map} +1 -1
  49. package/assets/{JumpInIcon-DQLZFf5_.js → JumpInIcon-bPOWl5ae.js} +1 -1
  50. package/assets/{JumpInIcon-DQLZFf5_.js.map → JumpInIcon-bPOWl5ae.js.map} +1 -1
  51. package/assets/{LegalPageLayout-BPmxsGkt.js → LegalPageLayout-DeH35WpT.js} +1 -1
  52. package/assets/{LegalPageLayout-BPmxsGkt.js.map → LegalPageLayout-DeH35WpT.js.map} +1 -1
  53. package/assets/{Link-CRy-ui2j.js → Link-C3GGl2C6.js} +1 -1
  54. package/assets/{Link-CRy-ui2j.js.map → Link-C3GGl2C6.js.map} +1 -1
  55. package/assets/{MenuItem--w_lFNXz.js → MenuItem-B0piwgTa.js} +1 -1
  56. package/assets/{MenuItem--w_lFNXz.js.map → MenuItem-B0piwgTa.js.map} +1 -1
  57. package/assets/{Paper-DkTuC9MF.js → Paper-BfSYUoim.js} +1 -1
  58. package/assets/{Paper-DkTuC9MF.js.map → Paper-BfSYUoim.js.map} +1 -1
  59. package/assets/{PostCard-CoBBQR_z.js → PostCard-Zsk0_WYz.js} +1 -1
  60. package/assets/{PostCard-CoBBQR_z.js.map → PostCard-Zsk0_WYz.js.map} +1 -1
  61. package/assets/{PostPage-DTs37H2-.js → PostPage-FBb63V37.js} +1 -1
  62. package/assets/{PostPage-DTs37H2-.js.map → PostPage-FBb63V37.js.map} +1 -1
  63. package/assets/{PostPage.styled-DLL8lMAH.js → PostPage.styled-B7Xofl3c.js} +3 -3
  64. package/assets/{PostPage.styled-DLL8lMAH.js.map → PostPage.styled-B7Xofl3c.js.map} +1 -1
  65. package/assets/{PreviewPage-CM24MWpu.js → PreviewPage-Dla6vQZW.js} +1 -1
  66. package/assets/{PreviewPage-CM24MWpu.js.map → PreviewPage-Dla6vQZW.js.map} +1 -1
  67. package/assets/{SEO-B1CZcHhQ.js → SEO-CGGKu_zm.js} +1 -1
  68. package/assets/{SEO-B1CZcHhQ.js.map → SEO-CGGKu_zm.js.map} +1 -1
  69. package/assets/{SearchPage-Bc-IQg_Z.js → SearchPage-ByMcz1c8.js} +1 -1
  70. package/assets/{SearchPage-Bc-IQg_Z.js.map → SearchPage-ByMcz1c8.js.map} +1 -1
  71. package/assets/{SignInRedirect-CytWMFc_.js → SignInRedirect-BNwfxyGB.js} +1 -1
  72. package/assets/{SignInRedirect-CytWMFc_.js.map → SignInRedirect-BNwfxyGB.js.map} +1 -1
  73. package/assets/{SignInRedirect-CHd5tZSP.js → SignInRedirect-Bxl1dwag.js} +1 -1
  74. package/assets/{SignInRedirect-CHd5tZSP.js.map → SignInRedirect-Bxl1dwag.js.map} +1 -1
  75. package/assets/{Skeleton-Bp_3tZG7.js → Skeleton-BP1Os8gY.js} +1 -1
  76. package/assets/{Skeleton-Bp_3tZG7.js.map → Skeleton-BP1Os8gY.js.map} +1 -1
  77. package/assets/{TwitterEmbed-qGRZ9Jyy.js → TwitterEmbed-BbSYYog-.js} +1 -1
  78. package/assets/{TwitterEmbed-qGRZ9Jyy.js.map → TwitterEmbed-BbSYYog-.js.map} +1 -1
  79. package/assets/{Video-DnCE7TZC.js → Video--A0fBGqz.js} +1 -1
  80. package/assets/{Video-DnCE7TZC.js.map → Video--A0fBGqz.js.map} +1 -1
  81. package/assets/WearablePreview-KunRQByO.js +4 -0
  82. package/assets/{WearablePreview-DLAIz58Z.js.map → WearablePreview-KunRQByO.js.map} +1 -1
  83. package/assets/{auto-track-DyJFTD4H.js → auto-track-DJw7KsLA.js} +1 -1
  84. package/assets/{auto-track-DyJFTD4H.js.map → auto-track-DJw7KsLA.js.map} +1 -1
  85. package/assets/{ccip-Dh2ZOi0c.js → ccip-EHA4QwVS.js} +1 -1
  86. package/assets/{ccip-Dh2ZOi0c.js.map → ccip-EHA4QwVS.js.map} +1 -1
  87. package/assets/{createSvgIcon-DPMfLii4.js → createSvgIcon-CnAtXIjx.js} +1 -1
  88. package/assets/{createSvgIcon-DPMfLii4.js.map → createSvgIcon-CnAtXIjx.js.map} +1 -1
  89. package/assets/{download-30qm_WAk.js → download-Csh0UAX4.js} +2 -2
  90. package/assets/{download-30qm_WAk.js.map → download-Csh0UAX4.js.map} +1 -1
  91. package/assets/{downloadWithIdentity-BtEnlEpV.js → downloadWithIdentity-imzC-1Iy.js} +1 -1
  92. package/assets/{downloadWithIdentity-BtEnlEpV.js.map → downloadWithIdentity-imzC-1Iy.js.map} +1 -1
  93. package/assets/{events.client-Cm_vJXoK.js → events.client-BypQp_hx.js} +1 -1
  94. package/assets/{events.client-Cm_vJXoK.js.map → events.client-BypQp_hx.js.map} +1 -1
  95. package/assets/{index-DphyojdM.js → index-0VgKmd34.js} +1 -1
  96. package/assets/{index-DphyojdM.js.map → index-0VgKmd34.js.map} +1 -1
  97. package/assets/{index-CnliSg2U.js → index-B-PLjKpI.js} +1 -1
  98. package/assets/{index-CnliSg2U.js.map → index-B-PLjKpI.js.map} +1 -1
  99. package/assets/{index-3Yl6UR--.js → index-BKY10VNY.js} +1 -1
  100. package/assets/{index-3Yl6UR--.js.map → index-BKY10VNY.js.map} +1 -1
  101. package/assets/{index-CcVwIken.js → index-BO6ciUn8.js} +1 -1
  102. package/assets/{index-CcVwIken.js.map → index-BO6ciUn8.js.map} +1 -1
  103. package/assets/{index-C1q8L88E.js → index-BVu5N7d0.js} +1 -1
  104. package/assets/{index-C1q8L88E.js.map → index-BVu5N7d0.js.map} +1 -1
  105. package/assets/{index-BxZNYwr3.js → index-BaEE4ZXP.js} +1 -1
  106. package/assets/{index-BxZNYwr3.js.map → index-BaEE4ZXP.js.map} +1 -1
  107. package/assets/{index-C7VbadJ8.js → index-Bd63106P.js} +1 -1
  108. package/assets/{index-C7VbadJ8.js.map → index-Bd63106P.js.map} +1 -1
  109. package/assets/{index-SmcmwtEm.js → index-Bfn0rTR9.js} +1 -1
  110. package/assets/{index-SmcmwtEm.js.map → index-Bfn0rTR9.js.map} +1 -1
  111. package/assets/{index-BMggQVV_.js → index-Bq7PojkE.js} +1 -1
  112. package/assets/{index-BMggQVV_.js.map → index-Bq7PojkE.js.map} +1 -1
  113. package/assets/{index-BgUWva8u.js → index-BtL1Whr6.js} +1 -1
  114. package/assets/{index-BgUWva8u.js.map → index-BtL1Whr6.js.map} +1 -1
  115. package/assets/{index-XqSXzv-4.js → index-BzmWmDt2.js} +1 -1
  116. package/assets/{index-XqSXzv-4.js.map → index-BzmWmDt2.js.map} +1 -1
  117. package/assets/{index-Dgp9VKxh.js → index-C1apFG92.js} +1 -1
  118. package/assets/{index-Dgp9VKxh.js.map → index-C1apFG92.js.map} +1 -1
  119. package/assets/{index-CAq1HW41.js → index-CC8b5SLA.js} +1 -1
  120. package/assets/{index-CAq1HW41.js.map → index-CC8b5SLA.js.map} +1 -1
  121. package/assets/{index-D6BepkG_.js → index-CJ9b6HdV.js} +1 -1
  122. package/assets/{index-D6BepkG_.js.map → index-CJ9b6HdV.js.map} +1 -1
  123. package/assets/{index--KeAUoz4.js → index-CXMTgMUj.js} +1 -1
  124. package/assets/{index--KeAUoz4.js.map → index-CXMTgMUj.js.map} +1 -1
  125. package/assets/{index-C62RHb__.js → index-CfKiEnnb.js} +1 -1
  126. package/assets/{index-C62RHb__.js.map → index-CfKiEnnb.js.map} +1 -1
  127. package/assets/{index-vUzwsML4.js → index-CqU_IKja.js} +1 -1
  128. package/assets/{index-vUzwsML4.js.map → index-CqU_IKja.js.map} +1 -1
  129. package/assets/{index-DchvHHlK.js → index-CsY_wahP.js} +1 -1
  130. package/assets/{index-DchvHHlK.js.map → index-CsY_wahP.js.map} +1 -1
  131. package/assets/{index-B6K794Rf.js → index-DIU7xr_7.js} +1 -1
  132. package/assets/{index-B6K794Rf.js.map → index-DIU7xr_7.js.map} +1 -1
  133. package/assets/{index-BY3JByxP.js → index-DJdpP3iF.js} +1 -1
  134. package/assets/{index-BY3JByxP.js.map → index-DJdpP3iF.js.map} +1 -1
  135. package/assets/{index-D0nE3AYE.js → index-DUmIu2EK.js} +37 -37
  136. package/assets/index-DUmIu2EK.js.map +1 -0
  137. package/assets/{index-C8cR2Ojr.js → index-DV8UooZK.js} +1 -1
  138. package/assets/{index-C8cR2Ojr.js.map → index-DV8UooZK.js.map} +1 -1
  139. package/assets/{index-DLkc1FLr.js → index-DW87VeBc.js} +1 -1
  140. package/assets/{index-DLkc1FLr.js.map → index-DW87VeBc.js.map} +1 -1
  141. package/assets/{index-BrT6YuSM.js → index-DwKCx_Fj.js} +4 -4
  142. package/assets/{index-BrT6YuSM.js.map → index-DwKCx_Fj.js.map} +1 -1
  143. package/assets/{index-C_4lnhwn.js → index-Dx9lzInm.js} +1 -1
  144. package/assets/{index-C_4lnhwn.js.map → index-Dx9lzInm.js.map} +1 -1
  145. package/assets/{index-DsMEKak1.js → index-FcfsIuei.js} +1 -1
  146. package/assets/{index-DsMEKak1.js.map → index-FcfsIuei.js.map} +1 -1
  147. package/assets/{index-tdgsZ4Yr.js → index-Hs2OtJ7_.js} +1 -1
  148. package/assets/{index-tdgsZ4Yr.js.map → index-Hs2OtJ7_.js.map} +1 -1
  149. package/assets/{index-CALzixlI.js → index-KkMZZ6nz.js} +1 -1
  150. package/assets/{index-CALzixlI.js.map → index-KkMZZ6nz.js.map} +1 -1
  151. package/assets/{index-CTcKnQdc.js → index-XwRFjo-F.js} +3 -3
  152. package/assets/{index-CTcKnQdc.js.map → index-XwRFjo-F.js.map} +1 -1
  153. package/assets/{index-Fbn9W4zr.js → index-fmnLygLZ.js} +1 -1
  154. package/assets/{index-Fbn9W4zr.js.map → index-fmnLygLZ.js.map} +1 -1
  155. package/assets/{index-DklThyvZ.js → index-iTL2dY0l.js} +1 -1
  156. package/assets/{index-DklThyvZ.js.map → index-iTL2dY0l.js.map} +1 -1
  157. package/assets/{index-cnaXlDby.js → index-pguZ7Pr7.js} +2 -2
  158. package/assets/{index-cnaXlDby.js.map → index-pguZ7Pr7.js.map} +1 -1
  159. package/assets/{profile.client-DJkJAVO7.js → profile.client-BtZZbgxj.js} +1 -1
  160. package/assets/{profile.client-DJkJAVO7.js.map → profile.client-BtZZbgxj.js.map} +1 -1
  161. package/assets/{shared.styled-CdKr8-z1.js → shared.styled-D8qloAmp.js} +1 -1
  162. package/assets/{shared.styled-CdKr8-z1.js.map → shared.styled-D8qloAmp.js.map} +1 -1
  163. package/assets/{store-B-SZNpsH.js → store-OyTPwmKI.js} +1 -1
  164. package/assets/{store-B-SZNpsH.js.map → store-OyTPwmKI.js.map} +1 -1
  165. package/assets/{url-B6S3bwqB.js → url-BHzlJYXC.js} +1 -1
  166. package/assets/{url-B6S3bwqB.js.map → url-BHzlJYXC.js.map} +1 -1
  167. package/assets/{useAuthIdentity-BlDTBxRE.js → useAuthIdentity-D2zQ3q5X.js} +1 -1
  168. package/assets/{useAuthIdentity-BlDTBxRE.js.map → useAuthIdentity-D2zQ3q5X.js.map} +1 -1
  169. package/assets/{useCreatorHubDownload-TIbrehIm.js → useCreatorHubDownload-Dp_zMaiv.js} +1 -1
  170. package/assets/{useCreatorHubDownload-TIbrehIm.js.map → useCreatorHubDownload-Dp_zMaiv.js.map} +1 -1
  171. package/assets/{useInfiniteBlogPosts-DKtXiohd.js → useInfiniteBlogPosts-B9Mv_Fup.js} +1 -1
  172. package/assets/{useInfiniteBlogPosts-DKtXiohd.js.map → useInfiniteBlogPosts-B9Mv_Fup.js.map} +1 -1
  173. package/assets/{useSlot-B74_4mYS.js → useSlot-DM_UQPu8.js} +1 -1
  174. package/assets/{useSlot-B74_4mYS.js.map → useSlot-DM_UQPu8.js.map} +1 -1
  175. package/assets/{utils-B-HvTNW5.js → utils-CJGePSnj.js} +1 -1
  176. package/assets/{utils-B-HvTNW5.js.map → utils-CJGePSnj.js.map} +1 -1
  177. package/index.html +15 -15
  178. package/package.json +3 -3
  179. package/assets/HomePage-9QTR-dt7.js +0 -3
  180. package/assets/HomePage-9QTR-dt7.js.map +0 -1
  181. package/assets/WearablePreview-DLAIz58Z.js +0 -4
  182. package/assets/index-D0nE3AYE.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{g as ir,s as B,a as G,aJ as _t,x as bn,j as L}from"./index-D0nE3AYE.js";import{d as cr,r as ie,R as _e,L as ur,e as Ta,u as Sa}from"./vendor-router-D_36sTKu.js";import"./vendor-ua-D7qqAxdq.js";import{c as va,a as ba,g as ve,b as jt,s as _a,d as Aa}from"./store-B-SZNpsH.js";var _n={},ze={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return a}});var a=function(s){return s.DOCUMENT="document",s.PARAGRAPH="paragraph",s.HEADING_1="heading-1",s.HEADING_2="heading-2",s.HEADING_3="heading-3",s.HEADING_4="heading-4",s.HEADING_5="heading-5",s.HEADING_6="heading-6",s.OL_LIST="ordered-list",s.UL_LIST="unordered-list",s.LIST_ITEM="list-item",s.HR="hr",s.QUOTE="blockquote",s.EMBEDDED_ENTRY="embedded-entry-block",s.EMBEDDED_ASSET="embedded-asset-block",s.EMBEDDED_RESOURCE="embedded-resource-block",s.TABLE="table",s.TABLE_ROW="table-row",s.TABLE_CELL="table-cell",s.TABLE_HEADER_CELL="table-header-cell",s}({})})(ze);var st={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return a}});var a=function(s){return s.ASSET_HYPERLINK="asset-hyperlink",s.EMBEDDED_ENTRY="embedded-entry-inline",s.EMBEDDED_RESOURCE="embedded-resource-inline",s.ENTRY_HYPERLINK="entry-hyperlink",s.HYPERLINK="hyperlink",s.RESOURCE_HYPERLINK="resource-hyperlink",s}({})})(st);var lr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return a}});var a=function(s){return s.BOLD="bold",s.ITALIC="italic",s.UNDERLINE="underline",s.CODE="code",s.SUPERSCRIPT="superscript",s.SUBSCRIPT="subscript",s.STRIKETHROUGH="strikethrough",s}({})})(lr);var hr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(S,b){for(var O in b)Object.defineProperty(S,O,{enumerable:!0,get:Object.getOwnPropertyDescriptor(b,O).get})}a(t,{get CONTAINERS(){return P},get HEADINGS(){return q},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return h},get TEXT_CONTAINERS(){return E},get TOP_LEVEL_BLOCKS(){return u},get V1_MARKS(){return _},get V1_NODE_TYPES(){return w},get VOID_BLOCKS(){return d}});var s=ze,l=st,m=lr;function f(S,b){(b==null||b>S.length)&&(b=S.length);for(var O=0,R=new Array(b);O<b;O++)R[O]=S[O];return R}function p(S){if(Array.isArray(S))return f(S)}function n(S,b,O){return b in S?Object.defineProperty(S,b,{value:O,enumerable:!0,configurable:!0,writable:!0}):S[b]=O,S}function e(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(S){return p(S)||e(S)||i(S)||r()}function i(S,b){if(S){if(typeof S=="string")return f(S,b);var O=Object.prototype.toString.call(S).slice(8,-1);if(O==="Object"&&S.constructor&&(O=S.constructor.name),O==="Map"||O==="Set")return Array.from(O);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return f(S,b)}}var u=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE,s.BLOCKS.TABLE],c=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],h=[s.BLOCKS.TABLE,s.BLOCKS.TABLE_ROW,s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL],d=[s.BLOCKS.HR,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],g,P=(g={},n(g,s.BLOCKS.OL_LIST,[s.BLOCKS.LIST_ITEM]),n(g,s.BLOCKS.UL_LIST,[s.BLOCKS.LIST_ITEM]),n(g,s.BLOCKS.LIST_ITEM,c),n(g,s.BLOCKS.QUOTE,[s.BLOCKS.PARAGRAPH]),n(g,s.BLOCKS.TABLE,[s.BLOCKS.TABLE_ROW]),n(g,s.BLOCKS.TABLE_ROW,[s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL]),n(g,s.BLOCKS.TABLE_CELL,[s.BLOCKS.PARAGRAPH,s.BLOCKS.UL_LIST,s.BLOCKS.OL_LIST]),n(g,s.BLOCKS.TABLE_HEADER_CELL,[s.BLOCKS.PARAGRAPH]),g),q=[s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6],E=[s.BLOCKS.PARAGRAPH].concat(o(q)),w=[s.BLOCKS.DOCUMENT,s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.LIST_ITEM,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,l.INLINES.HYPERLINK,l.INLINES.ENTRY_HYPERLINK,l.INLINES.ASSET_HYPERLINK,l.INLINES.EMBEDDED_ENTRY,"text"],_=[m.MARKS.BOLD,m.MARKS.CODE,m.MARKS.ITALIC,m.MARKS.UNDERLINE]})(hr);var An={};Object.defineProperty(An,"__esModule",{value:!0});var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return s}});var a=ze,s={nodeType:a.BLOCKS.DOCUMENT,data:{},content:[{nodeType:a.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}})(On);var In={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(P,q){for(var E in q)Object.defineProperty(P,E,{enumerable:!0,get:Object.getOwnPropertyDescriptor(q,E).get})}a(t,{get isBlock(){return i},get isEmptyParagraph(){return c},get isInline(){return o},get isText(){return u},get stripEmptyTrailingParagraphFromDocument(){return g}});var s=ze,l=st;function m(P,q,E){return q in P?Object.defineProperty(P,q,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[q]=E,P}function f(P){for(var q=1;q<arguments.length;q++){var E=arguments[q]!=null?arguments[q]:{},w=Object.keys(E);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(E).filter(function(_){return Object.getOwnPropertyDescriptor(E,_).enumerable}))),w.forEach(function(_){m(P,_,E[_])})}return P}function p(P,q){var E=Object.keys(P);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(P);E.push.apply(E,w)}return E}function n(P,q){return q=q??{},Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(q)):p(Object(q)).forEach(function(E){Object.defineProperty(P,E,Object.getOwnPropertyDescriptor(q,E))}),P}function e(P){"@swc/helpers - typeof";return P&&typeof Symbol<"u"&&P.constructor===Symbol?"symbol":typeof P}function r(P,q){var E=!0,w=!1,_=void 0;try{for(var S=Object.keys(P)[Symbol.iterator](),b;!(E=(b=S.next()).done);E=!0){var O=b.value;if(q===P[O])return!0}}catch(R){w=!0,_=R}finally{try{!E&&S.return!=null&&S.return()}finally{if(w)throw _}}return!1}function o(P){return r(l.INLINES,P.nodeType)}function i(P){return r(s.BLOCKS,P.nodeType)}function u(P){return P.nodeType==="text"}function c(P){if(P.nodeType!==s.BLOCKS.PARAGRAPH||P.content.length!==1)return!1;var q=P.content[0];return q.nodeType==="text"&&q.value===""}function h(P){return P!=null&&(typeof P>"u"?"undefined":e(P))==="object"&&"content"in P&&Array.isArray(P.content)}var d=2;function g(P){if(!h(P)||P.content.length<d)return P;var q=P.content[P.content.length-1];return c(q)?n(f({},P),{content:P.content.slice(0,-1)}):P}})(In);var Rn={},At={},Ca=t=>{if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const a=Object.getPrototypeOf(t);return a===null||a===Object.prototype},Dn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(h,d){for(var g in d)Object.defineProperty(h,g,{enumerable:!0,get:Object.getOwnPropertyDescriptor(d,g).get})}a(t,{get enumError(){return i},get maxSizeError(){return o},get minSizeError(){return r},get requiredPropertyError(){return c},get typeMismatchError(){return e},get unknownPropertyError(){return u}});function s(h,d){(d==null||d>h.length)&&(d=h.length);for(var g=0,P=new Array(d);g<d;g++)P[g]=h[g];return P}function l(h){if(Array.isArray(h))return s(h)}function m(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(h){return l(h)||m(h)||n(h)||f()}function n(h,d){if(h){if(typeof h=="string")return s(h,d);var g=Object.prototype.toString.call(h).slice(8,-1);if(g==="Object"&&h.constructor&&(g=h.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return s(h,d)}}var e=function(h){var d=h.path,g=h.property,P=h.typeName,q=h.value;return{details:'The type of "'.concat(g,'" is incorrect, expected type: ').concat(P),name:"type",path:d.toArray(),type:P,value:q}},r=function(h){var d=h.min,g=h.value,P=h.path;return{name:"size",min:d,path:P.toArray(),details:"Size must be at least ".concat(d),value:g}},o=function(h){var d=h.max,g=h.value,P=h.path;return{name:"size",max:d,path:P.toArray(),details:"Size must be at most ".concat(d),value:g}},i=function(h){var d=h.expected,g=h.value,P=h.path;return{details:"Value must be one of expected values",name:"in",expected:p(d).sort(),path:P.toArray(),value:g}},u=function(h){var d=h.property,g=h.path;return{details:'The property "'.concat(d,'" is not expected'),name:"unexpected",path:g.toArray()}},c=function(h){var d=h.property,g=h.path;return{details:'The property "'.concat(d,'" is required here'),name:"required",path:g.toArray()}}})(Dn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ObjectAssertion",{enumerable:!0,get:function(){return h}});var a=r(Ca),s=Dn;function l(d,g){(g==null||g>d.length)&&(g=d.length);for(var P=0,q=new Array(g);P<g;P++)q[P]=d[P];return q}function m(d){if(Array.isArray(d))return l(d)}function f(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function p(d,g){for(var P=0;P<g.length;P++){var q=g[P];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}function n(d,g,P){return g&&p(d.prototype,g),d}function e(d,g,P){return g in d?Object.defineProperty(d,g,{value:P,enumerable:!0,configurable:!0,writable:!0}):d[g]=P,d}function r(d){return d&&d.__esModule?d:{default:d}}function o(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(d){return m(d)||o(d)||c(d)||i()}function c(d,g){if(d){if(typeof d=="string")return l(d,g);var P=Object.prototype.toString.call(d).slice(8,-1);if(P==="Object"&&d.constructor&&(P=d.constructor.name),P==="Map"||P==="Set")return Array.from(P);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return l(d,g)}}var h=function(){function d(g,P){var q=this,E=this;f(this,d),e(this,"obj",void 0),e(this,"path",void 0),e(this,"_errors",void 0),e(this,"catch",void 0),e(this,"exists",void 0),e(this,"object",void 0),e(this,"string",void 0),e(this,"number",void 0),e(this,"array",void 0),e(this,"enum",void 0),e(this,"empty",void 0),e(this,"minLength",void 0),e(this,"noAdditionalProperties",void 0),e(this,"each",void 0),this.obj=g,this.path=P,this._errors=[],this.catch=function(){for(var w=arguments.length,_=new Array(w),S=0;S<w;S++)_[S]=arguments[S];var b;(b=E._errors).push.apply(b,u(_))},this.exists=function(w){return w in q.obj?!0:(q.catch((0,s.requiredPropertyError)({property:w,path:q.path.of(w)})),!1)},this.object=function(w){var _=w?q.obj[w]:q.obj;if(w&&!q.exists(w))return!1;if((0,a.default)(_))return!0;var S=w?q.path.of(w):q.path,b,O=(b=w??q.path.last())!==null&&b!==void 0?b:"value";return q.catch((0,s.typeMismatchError)({typeName:"Object",property:O,path:S,value:_})),!1},this.string=function(w){var _=q.obj[w];return w&&!q.exists(w)?!1:typeof _=="string"?!0:(q.catch((0,s.typeMismatchError)({typeName:"String",property:w,path:q.path.of(w),value:_})),!1)},this.number=function(w,_){var S=q.obj[w];return _&&!(w in q.obj)?!0:q.exists(w)?typeof S=="number"&&!Number.isNaN(S)?!0:(q.catch((0,s.typeMismatchError)({typeName:"Number",property:w,path:q.path.of(w),value:S})),!1):!1},this.array=function(w){var _=q.obj[w];return w&&!q.exists(w)?!1:Array.isArray(_)?!0:(q.catch((0,s.typeMismatchError)({typeName:"Array",property:w,path:q.path.of(w),value:_})),!1)},this.enum=function(w,_){var S=q.obj[w];return typeof S=="string"&&_.includes(S)?!0:(q.catch((0,s.enumError)({expected:_,value:S,path:q.path.of(w)})),!1)},this.empty=function(w){if(!q.array(w))return!1;var _=q.obj[w];return _.length===0?!0:(q.catch((0,s.maxSizeError)({max:0,value:_,path:q.path.of(w)})),!1)},this.minLength=function(w,_){if(!q.array(w))return!1;var S=q.obj[w];return S.length>=_?!0:(q.catch((0,s.minSizeError)({min:_,value:S,path:q.path.of(w)})),!1)},this.noAdditionalProperties=function(w){var _=Object.keys(q.obj).sort().filter(function(S){return!w.includes(S)});return _.forEach(function(S){return q.catch((0,s.unknownPropertyError)({property:S,path:q.path.of(S)}))}),_.length===0},this.each=function(w,_){if(q.array(w)){var S=q.obj[w],b=!1;S.forEach(function(O,R){if(!b){var W=_(O,q.path.of(w).of(R));W.length>0&&(b=!0),q.catch.apply(q,u(W))}})}}}return n(d,[{key:"errors",get:function(){var P=this,q=function(E){return JSON.stringify({details:E.details,path:E.path})};return this._errors.filter(function(E,w){return P._errors.findIndex(function(_){return q(E)===q(_)})===w})}}]),d}()})(At);var xn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(T,A){for(var D in A)Object.defineProperty(T,D,{enumerable:!0,get:Object.getOwnPropertyDescriptor(A,D).get})}a(t,{get EntityLinkAssertion(){return b},get HyperLinkAssertion(){return O},get NodeAssertion(){return S},get VOID_CONTENT(){return _},get assert(){return R},get assertLink(){return W}});var s=At;function l(T,A){(A==null||A>T.length)&&(A=T.length);for(var D=0,N=new Array(A);D<A;D++)N[D]=T[D];return N}function m(T){if(Array.isArray(T))return l(T)}function f(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function p(T,A,D){return A=i(A),d(T,w()?Reflect.construct(A,D||[],i(T).constructor):A.apply(T,D))}function n(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function e(T,A){for(var D=0;D<A.length;D++){var N=A[D];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(T,N.key,N)}}function r(T,A,D){return A&&e(T.prototype,A),T}function o(T,A,D){return A in T?Object.defineProperty(T,A,{value:D,enumerable:!0,configurable:!0,writable:!0}):T[A]=D,T}function i(T){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},i(T)}function u(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),A&&g(T,A)}function c(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(T,A){return A&&(q(A)==="object"||typeof A=="function")?A:f(T)}function g(T,A){return g=Object.setPrototypeOf||function(N,x){return N.__proto__=x,N},g(T,A)}function P(T){return m(T)||c(T)||E(T)||h()}function q(T){"@swc/helpers - typeof";return T&&typeof Symbol<"u"&&T.constructor===Symbol?"symbol":typeof T}function E(T,A){if(T){if(typeof T=="string")return l(T,A);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(D);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return l(T,A)}}function w(){try{var T=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w=function(){return!!T})()}var _=[],S=function(){function T(A,D){n(this,T),o(this,"contentRule",void 0),o(this,"validateData",void 0),this.contentRule=A,this.validateData=D}return r(T,[{key:"assert",value:function(D,N){var x=new s.ObjectAssertion(D,N);if(!x.object())return x.errors;x.noAdditionalProperties(["nodeType","data","content"]);var z=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(D,N),re=z.nodeTypes,le=z.min,Te=le===void 0?0:le;if(re.length===0&&Te>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(Te," with no nodeTypes"));if(x.minLength("content",Te),re.length===0?x.empty("content"):x.each("content",function(M,Ae){var Se=new s.ObjectAssertion(M,Ae);return Se.object()&&Se.enum("nodeType",re),Se.errors}),x.object("data")){var Z,H,Fe,$,it=($=(H=(Fe=this).validateData)===null||H===void 0?void 0:H.call(Fe,D.data,N.of("data")))!==null&&$!==void 0?$:[];(Z=x).catch.apply(Z,P(it))}return x.errors}}]),T}(),b=function(T){u(A,T);function A(D,N){n(this,A);var x;return x=p(this,A,[N,function(z,re){return f(x).assertLink(z,re)}]),o(x,"linkType",void 0),o(x,"type",void 0),o(x,"assertLink",void 0),x.linkType=D,x.assertLink=function(z,re){var le=new s.ObjectAssertion(z,re);if(le.object("target")){var Te,Z=new s.ObjectAssertion(z.target.sys,re.of("target").of("sys"));Z.object()&&(Z.enum("type",[x.type]),Z.enum("linkType",[x.linkType]),x.type==="Link"?(Z.string("id"),Z.noAdditionalProperties(["type","linkType","id"])):x.type==="ResourceLink"&&(Z.string("urn"),Z.noAdditionalProperties(["type","linkType","urn"]))),(Te=le).catch.apply(Te,P(Z.errors))}return le.noAdditionalProperties(["target"]),le.errors},x.type=x.linkType.startsWith("Contentful:")?"ResourceLink":"Link",x}return A}(S),O=function(T){u(A,T);function A(){n(this,A);var D;return D=p(this,A,[["text"],function(N,x){return f(D).assertLink(N,x)}]),o(D,"assertLink",function(N,x){var z=new s.ObjectAssertion(N,x);return z.string("uri"),z.noAdditionalProperties(["uri"]),z.errors}),D}return A}(S),R=function(T,A){return new S(T,A)},W=function(T,A){return new b(T,A)}})(xn);var Ln={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return r}});function a(o,i){(i==null||i>o.length)&&(i=o.length);for(var u=0,c=new Array(i);u<i;u++)c[u]=o[u];return c}function s(o){if(Array.isArray(o))return a(o)}function l(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function m(o,i,u){return i in o?Object.defineProperty(o,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[i]=u,o}function f(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(o){return s(o)||f(o)||e(o)||p()}function e(o,i){if(o){if(typeof o=="string")return a(o,i);var u=Object.prototype.toString.call(o).slice(8,-1);if(u==="Object"&&o.constructor&&(u=o.constructor.name),u==="Map"||u==="Set")return Array.from(u);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(o,i)}}var r=function o(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l(this,o),m(this,"path",void 0),m(this,"of",void 0),m(this,"isRoot",void 0),m(this,"last",void 0),m(this,"toArray",void 0),this.path=u,this.of=function(c){return new o(n(i.path).concat([c]))},this.isRoot=function(){return i.path.length===0},this.last=function(){return i.path[i.path.length-1]},this.toArray=function(){return i.path}}})(Ln);var kn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assertText",{enumerable:!0,get:function(){return s}});var a=At;function s(l,m){var f=new a.ObjectAssertion(l,m);return f.object()&&(f.noAdditionalProperties(["nodeType","data","value","marks"]),f.object("data"),f.each("marks",function(p,n){var e=new a.ObjectAssertion(p,n);return e.object()&&e.string("type"),e.errors}),f.string("value")),f.errors}})(kn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"validateRichTextDocument",{enumerable:!0,get:function(){return S}});var a=ze,s=st,l=hr,m=At,f=xn,p=Ln,n=kn;function e(b,O){(O==null||O>b.length)&&(O=b.length);for(var R=0,W=new Array(O);R<O;R++)W[R]=b[R];return W}function r(b){if(Array.isArray(b))return e(b)}function o(b,O,R){return O in b?Object.defineProperty(b,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):b[O]=R,b}function i(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(b){return r(b)||i(b)||h(b)||u()}function h(b,O){if(b){if(typeof b=="string")return e(b,O);var R=Object.prototype.toString.call(b).slice(8,-1);if(R==="Object"&&b.constructor&&(R=b.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return e(b,O)}}var d=(0,f.assert)(c(Object.values(s.INLINES)).concat(["text"]).sort()),g=(0,f.assert)([a.BLOCKS.LIST_ITEM]),P=(0,f.assertLink)("Entry",f.VOID_CONTENT),q=(0,f.assert)(function(){return{nodeTypes:[a.BLOCKS.PARAGRAPH],min:1}},function(b,O){var R=new m.ObjectAssertion(b,O);return R.noAdditionalProperties(["colspan","rowspan"]),R.number("colspan",!0),R.number("rowspan",!0),R.errors}),E,w=(E={},o(E,a.BLOCKS.DOCUMENT,(0,f.assert)(l.TOP_LEVEL_BLOCKS)),o(E,a.BLOCKS.PARAGRAPH,d),o(E,a.BLOCKS.HEADING_1,d),o(E,a.BLOCKS.HEADING_2,d),o(E,a.BLOCKS.HEADING_3,d),o(E,a.BLOCKS.HEADING_4,d),o(E,a.BLOCKS.HEADING_5,d),o(E,a.BLOCKS.HEADING_6,d),o(E,a.BLOCKS.QUOTE,(0,f.assert)(l.CONTAINERS[a.BLOCKS.QUOTE])),o(E,a.BLOCKS.EMBEDDED_ENTRY,P),o(E,a.BLOCKS.EMBEDDED_ASSET,(0,f.assertLink)("Asset",f.VOID_CONTENT)),o(E,a.BLOCKS.EMBEDDED_RESOURCE,(0,f.assertLink)("Contentful:Entry",f.VOID_CONTENT)),o(E,a.BLOCKS.HR,(0,f.assert)(f.VOID_CONTENT)),o(E,a.BLOCKS.OL_LIST,g),o(E,a.BLOCKS.UL_LIST,g),o(E,a.BLOCKS.LIST_ITEM,(0,f.assert)(c(l.LIST_ITEM_BLOCKS).sort())),o(E,a.BLOCKS.TABLE,(0,f.assert)(function(){return{nodeTypes:[a.BLOCKS.TABLE_ROW],min:1}})),o(E,a.BLOCKS.TABLE_ROW,(0,f.assert)(function(){return{nodeTypes:[a.BLOCKS.TABLE_CELL,a.BLOCKS.TABLE_HEADER_CELL],min:1}})),o(E,a.BLOCKS.TABLE_CELL,q),o(E,a.BLOCKS.TABLE_HEADER_CELL,q),o(E,s.INLINES.HYPERLINK,new f.HyperLinkAssertion),o(E,s.INLINES.EMBEDDED_ENTRY,P),o(E,s.INLINES.EMBEDDED_RESOURCE,(0,f.assertLink)("Contentful:Entry",f.VOID_CONTENT)),o(E,s.INLINES.ENTRY_HYPERLINK,(0,f.assertLink)("Entry",["text"])),o(E,s.INLINES.ASSET_HYPERLINK,(0,f.assertLink)("Asset",["text"])),o(E,s.INLINES.RESOURCE_HYPERLINK,(0,f.assertLink)("Contentful:Entry",["text"])),E);function _(b,O){if(b.nodeType==="text")return(0,n.assertText)(b,O);var R=w[b.nodeType].assert(b,O);if(R.length>0)return R;var W=new m.ObjectAssertion(b,O);return W.each("content",function(T,A){return _(T,A)}),W.errors}var S=function(b){var O=new p.Path,R=new m.ObjectAssertion(b,O);return R.object()&&R.enum("nodeType",[a.BLOCKS.DOCUMENT]),R.errors.length>0?R.errors:_(b,O)}})(Rn);(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(i,u){for(var c in u)Object.defineProperty(i,c,{enumerable:!0,get:Object.getOwnPropertyDescriptor(u,c).get})}a(t,{get BLOCKS(){return s.BLOCKS},get EMPTY_DOCUMENT(){return f.EMPTY_DOCUMENT},get INLINES(){return l.INLINES},get MARKS(){return m.MARKS},get helpers(){return p},get validateRichTextDocument(){return n.validateRichTextDocument}});var s=ze,l=st,m=lr;e(hr,t),e(An,t),e(Cn,t);var f=On,p=o(In),n=Rn;function e(i,u){return Object.keys(i).forEach(function(c){c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:function(){return i[c]}})}),i}function r(i){if(typeof WeakMap!="function")return null;var u=new WeakMap,c=new WeakMap;return(r=function(h){return h?c:u})(i)}function o(i,u){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var c=r(u);if(c&&c.has(i))return c.get(i);var h={__proto__:null},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in i)if(g!=="default"&&Object.prototype.hasOwnProperty.call(i,g)){var P=d?Object.getOwnPropertyDescriptor(i,g):null;P&&(P.get||P.set)?Object.defineProperty(h,g,P):h[g]=i[g]}return h.default=i,c&&c.set(i,h),h}})(_n);var Oa=typeof Element<"u",Ia=typeof Map=="function",Ra=typeof Set=="function",Da=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Et(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var s,l,m;if(Array.isArray(t)){if(s=t.length,s!=a.length)return!1;for(l=s;l--!==0;)if(!Et(t[l],a[l]))return!1;return!0}var f;if(Ia&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(f=t.entries();!(l=f.next()).done;)if(!a.has(l.value[0]))return!1;for(f=t.entries();!(l=f.next()).done;)if(!Et(l.value[1],a.get(l.value[0])))return!1;return!0}if(Ra&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(f=t.entries();!(l=f.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(Da&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if(s=t.length,s!=a.length)return!1;for(l=s;l--!==0;)if(t[l]!==a[l])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof a.valueOf=="function")return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof a.toString=="function")return t.toString()===a.toString();if(m=Object.keys(t),s=m.length,s!==Object.keys(a).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(a,m[l]))return!1;if(Oa&&t instanceof Element)return!1;for(l=s;l--!==0;)if(!((m[l]==="_owner"||m[l]==="__v"||m[l]==="__o")&&t.$$typeof)&&!Et(t[m[l]],a[m[l]]))return!1;return!0}return t!==t&&a!==a}var xa=function(a,s){try{return Et(a,s)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}};const La=cr(xa);var ka=function(t,a,s,l,m,f,p,n){if(!t){var e;if(a===void 0)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var r=[s,l,m,f,p,n],o=0;e=new Error(a.replace(/%s/g,function(){return r[o++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}},Na=ka;const Kr=cr(Na);var Ua=function(a,s,l,m){var f=l?l.call(m,a,s):void 0;if(f!==void 0)return!!f;if(a===s)return!0;if(typeof a!="object"||!a||typeof s!="object"||!s)return!1;var p=Object.keys(a),n=Object.keys(s);if(p.length!==n.length)return!1;for(var e=Object.prototype.hasOwnProperty.bind(s),r=0;r<p.length;r++){var o=p[r];if(!e(o))return!1;var i=a[o],u=s[o];if(f=l?l.call(m,i,u,o):void 0,f===!1||f===void 0&&i!==u)return!1}return!0};const Ba=cr(Ua);var Nn=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Nn||{}),Mt={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zr=Object.values(Nn),dr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ja=Object.entries(dr).reduce((t,[a,s])=>(t[s]=a,t),{}),ce="data-rh",He={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ge=(t,a)=>{for(let s=t.length-1;s>=0;s-=1){const l=t[s];if(Object.prototype.hasOwnProperty.call(l,a))return l[a]}return null},Ma=t=>{let a=Ge(t,"title");const s=Ge(t,He.TITLE_TEMPLATE);if(Array.isArray(a)&&(a=a.join("")),s&&a)return s.replace(/%s/g,()=>a);const l=Ge(t,He.DEFAULT_TITLE);return a||l||void 0},Ha=t=>Ge(t,He.ON_CHANGE_CLIENT_STATE)||(()=>{}),Ht=(t,a)=>a.filter(s=>typeof s[t]<"u").map(s=>s[t]).reduce((s,l)=>({...s,...l}),{}),Ga=(t,a)=>a.filter(s=>typeof s.base<"u").map(s=>s.base).reverse().reduce((s,l)=>{if(!s.length){const m=Object.keys(l);for(let f=0;f<m.length;f+=1){const n=m[f].toLowerCase();if(t.indexOf(n)!==-1&&l[n])return s.concat(l)}}return s},[]),$a=t=>console&&typeof console.warn=="function"&&console.warn(t),Ye=(t,a,s)=>{const l={};return s.filter(m=>Array.isArray(m[t])?!0:(typeof m[t]<"u"&&$a(`Helmet: ${t} should be of type "Array". Instead found type "${typeof m[t]}"`),!1)).map(m=>m[t]).reverse().reduce((m,f)=>{const p={};f.filter(e=>{let r;const o=Object.keys(e);for(let u=0;u<o.length;u+=1){const c=o[u],h=c.toLowerCase();a.indexOf(h)!==-1&&!(r==="rel"&&e[r].toLowerCase()==="canonical")&&!(h==="rel"&&e[h].toLowerCase()==="stylesheet")&&(r=h),a.indexOf(c)!==-1&&(c==="innerHTML"||c==="cssText"||c==="itemprop")&&(r=c)}if(!r||!e[r])return!1;const i=e[r].toLowerCase();return l[r]||(l[r]={}),p[r]||(p[r]={}),l[r][i]?!1:(p[r][i]=!0,!0)}).reverse().forEach(e=>m.push(e));const n=Object.keys(p);for(let e=0;e<n.length;e+=1){const r=n[e],o={...l[r],...p[r]};l[r]=o}return m},[]).reverse()},Ka=(t,a)=>{if(Array.isArray(t)&&t.length){for(let s=0;s<t.length;s+=1)if(t[s][a])return!0}return!1},za=t=>({baseTag:Ga(["href"],t),bodyAttributes:Ht("bodyAttributes",t),defer:Ge(t,He.DEFER),encode:Ge(t,He.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ht("htmlAttributes",t),linkTags:Ye("link",["rel","href"],t),metaTags:Ye("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:Ye("noscript",["innerHTML"],t),onChangeClientState:Ha(t),scriptTags:Ye("script",["src","innerHTML"],t),styleTags:Ye("style",["cssText"],t),title:Ma(t),titleAttributes:Ht("titleAttributes",t),prioritizeSeoTags:Ka(t,He.PRIORITIZE_SEO_TAGS)}),Un=t=>Array.isArray(t)?t.join(""):t,Fa=(t,a)=>{const s=Object.keys(t);for(let l=0;l<s.length;l+=1)if(a[s[l]]&&a[s[l]].includes(t[s[l]]))return!0;return!1},Gt=(t,a)=>Array.isArray(t)?t.reduce((s,l)=>(Fa(l,a)?s.priority.push(l):s.default.push(l),s),{priority:[],default:[]}):{default:t,priority:[]},Fr=(t,a)=>({...t,[a]:void 0}),Wa=["noscript","script","style"],Jt=(t,a=!0)=>a===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Bn=t=>Object.keys(t).reduce((a,s)=>{const l=typeof t[s]<"u"?`${s}="${t[s]}"`:`${s}`;return a?`${a} ${l}`:l},""),Va=(t,a,s,l)=>{const m=Bn(s),f=Un(a);return m?`<${t} ${ce}="true" ${m}>${Jt(f,l)}</${t}>`:`<${t} ${ce}="true">${Jt(f,l)}</${t}>`},Qa=(t,a,s=!0)=>a.reduce((l,m)=>{const f=m,p=Object.keys(f).filter(r=>!(r==="innerHTML"||r==="cssText")).reduce((r,o)=>{const i=typeof f[o]>"u"?o:`${o}="${Jt(f[o],s)}"`;return r?`${r} ${i}`:i},""),n=f.innerHTML||f.cssText||"",e=Wa.indexOf(t)===-1;return`${l}<${t} ${ce}="true" ${p}${e?"/>":`>${n}</${t}>`}`},""),jn=(t,a={})=>Object.keys(t).reduce((s,l)=>{const m=dr[l];return s[m||l]=t[l],s},a),Ya=(t,a,s)=>{const l={key:a,[ce]:!0},m=jn(s,l);return[_e.createElement("title",m,a)]},Tt=(t,a)=>a.map((s,l)=>{const m={key:l,[ce]:!0};return Object.keys(s).forEach(f=>{const n=dr[f]||f;if(n==="innerHTML"||n==="cssText"){const e=s.innerHTML||s.cssText;m.dangerouslySetInnerHTML={__html:e}}else m[n]=s[f]}),_e.createElement(t,m)}),ne=(t,a,s=!0)=>{switch(t){case"title":return{toComponent:()=>Ya(t,a.title,a.titleAttributes),toString:()=>Va(t,a.title,a.titleAttributes,s)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>jn(a),toString:()=>Bn(a)};default:return{toComponent:()=>Tt(t,a),toString:()=>Qa(t,a,s)}}},Xa=({metaTags:t,linkTags:a,scriptTags:s,encode:l})=>{const m=Gt(t,Mt.meta),f=Gt(a,Mt.link),p=Gt(s,Mt.script);return{priorityMethods:{toComponent:()=>[...Tt("meta",m.priority),...Tt("link",f.priority),...Tt("script",p.priority)],toString:()=>`${ne("meta",m.priority,l)} ${ne("link",f.priority,l)} ${ne("script",p.priority,l)}`},metaTags:m.default,linkTags:f.default,scriptTags:p.default}},Ja=t=>{const{baseTag:a,bodyAttributes:s,encode:l=!0,htmlAttributes:m,noscriptTags:f,styleTags:p,title:n="",titleAttributes:e,prioritizeSeoTags:r}=t;let{linkTags:o,metaTags:i,scriptTags:u}=t,c={toComponent:()=>{},toString:()=>""};return r&&({priorityMethods:c,linkTags:o,metaTags:i,scriptTags:u}=Xa(t)),{priority:c,base:ne("base",a,l),bodyAttributes:ne("bodyAttributes",s,l),htmlAttributes:ne("htmlAttributes",m,l),link:ne("link",o,l),meta:ne("meta",i,l),noscript:ne("noscript",f,l),script:ne("script",u,l),style:ne("style",p,l),title:ne("title",{title:n,titleAttributes:e},l)}},Zt=Ja,pt=[],Mn=!!(typeof window<"u"&&window.document&&window.document.createElement),er=class{instances=[];canUseDOM=Mn;context;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?pt:this.instances,add:t=>{(this.canUseDOM?pt:this.instances).push(t)},remove:t=>{const a=(this.canUseDOM?pt:this.instances).indexOf(t);(this.canUseDOM?pt:this.instances).splice(a,1)}}};constructor(t,a){this.context=t,this.canUseDOM=a||!1,a||(t.helmet=Zt({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Za={},Hn=_e.createContext(Za),Gn=class $n extends ie.Component{static canUseDOM=Mn;helmetData;constructor(a){super(a),this.helmetData=new er(this.props.context||{},$n.canUseDOM)}render(){return _e.createElement(Hn.Provider,{value:this.helmetData.value},this.props.children)}},Be=(t,a)=>{const s=document.head||document.querySelector("head"),l=s.querySelectorAll(`${t}[${ce}]`),m=[].slice.call(l),f=[];let p;return a&&a.length&&a.forEach(n=>{const e=document.createElement(t);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r))if(r==="innerHTML")e.innerHTML=n.innerHTML;else if(r==="cssText")e.styleSheet?e.styleSheet.cssText=n.cssText:e.appendChild(document.createTextNode(n.cssText));else{const o=r,i=typeof n[o]>"u"?"":n[o];e.setAttribute(r,i)}e.setAttribute(ce,"true"),m.some((r,o)=>(p=o,e.isEqualNode(r)))?m.splice(p,1):f.push(e)}),m.forEach(n=>n.parentNode?.removeChild(n)),f.forEach(n=>s.appendChild(n)),{oldTags:m,newTags:f}},tr=(t,a)=>{const s=document.getElementsByTagName(t)[0];if(!s)return;const l=s.getAttribute(ce),m=l?l.split(","):[],f=[...m],p=Object.keys(a);for(const n of p){const e=a[n]||"";s.getAttribute(n)!==e&&s.setAttribute(n,e),m.indexOf(n)===-1&&m.push(n);const r=f.indexOf(n);r!==-1&&f.splice(r,1)}for(let n=f.length-1;n>=0;n-=1)s.removeAttribute(f[n]);m.length===f.length?s.removeAttribute(ce):s.getAttribute(ce)!==p.join(",")&&s.setAttribute(ce,p.join(","))},es=(t,a)=>{typeof t<"u"&&document.title!==t&&(document.title=Un(t)),tr("title",a)},Wr=(t,a)=>{const{baseTag:s,bodyAttributes:l,htmlAttributes:m,linkTags:f,metaTags:p,noscriptTags:n,onChangeClientState:e,scriptTags:r,styleTags:o,title:i,titleAttributes:u}=t;tr("body",l),tr("html",m),es(i,u);const c={baseTag:Be("base",s),linkTags:Be("link",f),metaTags:Be("meta",p),noscriptTags:Be("noscript",n),scriptTags:Be("script",r),styleTags:Be("style",o)},h={},d={};Object.keys(c).forEach(g=>{const{newTags:P,oldTags:q}=c[g];P.length&&(h[g]=P),q.length&&(d[g]=c[g].oldTags)}),a&&a(),e(t,h,d)},Xe=null,ts=t=>{Xe&&cancelAnimationFrame(Xe),t.defer?Xe=requestAnimationFrame(()=>{Wr(t,()=>{Xe=null})}):(Wr(t),Xe=null)},rs=ts,Vr=class extends ie.Component{rendered=!1;shouldComponentUpdate(t){return!Ba(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:a}=this.props.context;let s=null;const l=za(t.get().map(m=>{const f={...m.props};return delete f.context,f}));Gn.canUseDOM?rs(l):Zt&&(s=Zt(l)),a(s)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},ui=class extends ie.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!La(Fr(this.props,"helmetData"),Fr(t,"helmetData"))}mapNestedChildrenToProps(t,a){if(!a)return null;switch(t.type){case"script":case"noscript":return{innerHTML:a};case"style":return{cssText:a};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,a,s,l){return{...a,[t.type]:[...a[t.type]||[],{...s,...this.mapNestedChildrenToProps(t,l)}]}}mapObjectTypeChildren(t,a,s,l){switch(t.type){case"title":return{...a,[t.type]:l,titleAttributes:{...s}};case"body":return{...a,bodyAttributes:{...s}};case"html":return{...a,htmlAttributes:{...s}};default:return{...a,[t.type]:{...s}}}}mapArrayTypeChildrenToProps(t,a){let s={...a};return Object.keys(t).forEach(l=>{s={...s,[l]:t[l]}}),s}warnOnInvalidChildren(t,a){return Kr(zr.some(s=>t.type===s),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zr.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),Kr(!a||typeof a=="string"||Array.isArray(a)&&!a.some(s=>typeof s!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,a){let s={};return _e.Children.forEach(t,l=>{if(!l||!l.props)return;const{children:m,...f}=l.props,p=Object.keys(f).reduce((e,r)=>(e[ja[r]||r]=f[r],e),{});let{type:n}=l;switch(typeof n=="symbol"?n=n.toString():this.warnOnInvalidChildren(l,m),n){case"Symbol(react.fragment)":a=this.mapChildrenToProps(m,a);break;case"link":case"meta":case"noscript":case"script":case"style":s=this.flattenArrayTypeChildren(l,s,p,m);break;default:a=this.mapObjectTypeChildren(l,a,p,m);break}}),this.mapArrayTypeChildrenToProps(s,a)}render(){const{children:t,...a}=this.props;let s={...a},{helmetData:l}=a;if(t&&(s=this.mapChildrenToProps(t,s)),l&&!(l instanceof er)){const m=l;l=new er(m.context,!0),delete s.helmetData}return l?_e.createElement(Vr,{...s,context:l.value}):_e.createElement(Hn.Consumer,null,m=>_e.createElement(Vr,{...s,context:m}))}};const Qr=(t,a)=>t.id||a||"",mr=async(t,a)=>{const s=va,l=new URL(`${s}${t}`,window.location.origin),m=await fetch(l.toString());if(!m.ok)throw new Error(`CMS API error: ${m.status} ${m.statusText}`);return m.json()},$t=new Map,Je=new Map,$e=new Map,me=new Map,Re=async t=>{const a=t;if(a?.sys?.type==="Link"&&a.sys.linkType==="Asset"){const s=a.sys.id;if($t.has(s))return $t.get(s);if(Je.has(s))return Je.get(s);const l=mr(`/assets/${s}`).then(m=>{const f=m;return $t.set(s,f),Je.delete(s),f}).catch(()=>(Je.delete(s),t));return Je.set(s,l),l}return t},je=new Map,Me=new Map,Kn=async t=>{if($e.has(t))return $e.get(t);if(me.has(t))return me.get(t);const a=mr(`/entries/${t}`).then(async s=>{const l=s;return l.fields?.image&&(l.fields.image=await Re(l.fields.image)),$e.set(t,l),me.delete(t),l}).catch(()=>{throw me.delete(t),new Error(`Failed to fetch entry ${t}`)});return me.set(t,a),a},ns=async t=>{const a=t,s=t;if(a?.sys?.type==="Link"&&a.sys.linkType==="Entry"){const l=a.sys.id;if(je.has(l))return je.get(l);try{const m=await Kn(l);return je.set(l,m),m}catch{return t}}return s?.sys?.id&&s?.fields?je.has(s.sys.id)?je.get(s.sys.id):(s.fields.image&&(s.fields.image=await Re(s.fields.image)),je.set(s.sys.id,s),s):t},as=async t=>{const a=t,s=t;if(a?.sys?.type==="Link"&&a.sys.linkType==="Entry"){const l=a.sys.id;if(Me.has(l))return Me.get(l);try{const m=await Kn(l);return Me.set(l,m),m}catch{return t}}return s?.sys?.id&&s?.fields?Me.has(s.sys.id)?Me.get(s.sys.id):(s.fields.image&&(s.fields.image=await Re(s.fields.image)),Me.set(s.sys.id,s),s):t},Yr=async t=>{if(!t)return"";const l=(await Re({sys:{type:"Link",linkType:"Asset",id:t}}))?.fields?.file?.url||"";return l.startsWith("//")?`https:${l}`:l},Xr=async t=>{if(!t)return"";if($e.has(t))return $e.get(t)?.fields?.id;if(me.has(t))return(await me.get(t))?.fields?.id;try{const a=mr(`/entries/${t}`);me.set(t,a);const s=await a;return $e.set(t,s),me.delete(t),s?.fields?.id}catch{return me.delete(t),""}};function ss(t){if(!t)return"";const a=t,s=new Date(a.includes("T")?a:`${a}T00:00:00Z`);return Number.isNaN(s.getTime())?a:new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"2-digit",year:"numeric"}).format(s)}const Ze="/blog",Ke={home:()=>"/",blogs:()=>Ze,category:t=>`${Ze}/${t}`,blog:(t,a)=>`${Ze}/${t}/${a}`,author:t=>`${Ze}/author/${t}`,search:t=>`${Ze}/search?q=${encodeURIComponent(t)}`,twitter:t=>{const a=`${window.location.origin}${t.url}`;return`https://x.com/intent/post?text=${encodeURIComponent(t.title)}&url=${encodeURIComponent(a)}`},facebook:t=>{const a=`${window.location.origin}${t.url}`;return`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(a)}`}},zn=t=>t?t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,""):"";function Ct(t){if(!t||!t.sys||!t.fields||!t.fields.file)return null;const a=t.fields.file.url;return a?{id:t.sys.id,url:a.startsWith("//")?`https:${a}`:a,width:t.fields.file.details?.image?.width||0,height:t.fields.file.details?.image?.height||0,mimeType:t.fields.file.contentType||"image/jpeg"}:null}function rr(t){if(!t||!t.sys||!t.fields)return null;const a=t.fields.id||zn(t.fields.title||"");if(!a)return null;const s=Ct(t.fields.image);return s?{id:t.sys.id,slug:a,title:t.fields.title||"",description:t.fields.description||"",image:s,isShownInMenu:t.fields.isShownInMenu??!0,url:Ke.category(a)}:null}function os(t){return{id:t||"uncategorized",slug:"uncategorized",title:"Uncategorized",description:"Posts without a valid category",image:{id:"default-category-image",url:"https://decentraland.org/logos/png/color.png",width:200,height:200,mimeType:"image/png"},isShownInMenu:!1,url:Ke.category("uncategorized")}}function is(t){return{id:t||"default-image",url:"https://decentraland.org/logos/png/color.png",width:1200,height:630,mimeType:"image/png"}}function Jr(t){const a=t||"decentraland";return{id:t||"unknown",slug:a,title:"Decentraland",description:"Decentraland Team",image:{id:"default-avatar",url:"https://decentraland.org/logos/png/color.png",width:200,height:200,mimeType:"image/png"},url:Ke.author(a)}}function St(t){if(!t||!t.sys||!t.fields)return Jr(t?.sys?.id);if(Object.keys(t.fields).length===0)return Jr(t.sys.id);const s=t.fields.title||"",l=t.fields.id||zn(s)||t.sys.id,m=Ct(t.fields.image);return m?{id:t.sys.id,slug:l,title:s,description:t.fields.description||"",image:m,url:Ke.author(l)}:{id:t.sys.id,slug:l,title:s||"Decentraland",description:t.fields.description||"",image:{id:"default-avatar",url:"https://decentraland.org/logos/png/color.png",width:200,height:200,mimeType:"image/png"},url:Ke.author(l)}}function gt(t){if(!t||!t.sys||!t.fields)return null;let a=rr(t.fields.category);a||(a=os(t.sys.id));const s=St(t.fields.author);let l=Ct(t.fields.image);l||(l=is(t.sys.id));const m=t.fields.title||"",f=t.fields.id,p=t.fields.publishedDate,n=t.fields.body;return{id:t.sys.id,slug:f,title:m,description:t.fields.description||"",publishedDate:ss(p),body:n||{},bodyAssets:{},image:l,category:a,author:s,url:Ke.blog(a.slug,f)}}const Kt=t=>_a.getState().blog.entities[t],Pt=async t=>{const a={...t,fields:{...t.fields}},[s,l,m]=await Promise.all([a.fields.category?ns(a.fields.category):void 0,a.fields.author?as(a.fields.author):void 0,a.fields.image?Re(a.fields.image):void 0]);return s&&(a.fields.category=s),l&&(a.fields.author=l),m&&(a.fields.image=m),a},yt=async t=>{const a={...t,fields:{...t.fields}};return a.fields.image&&(a.fields.image=await Re(a.fields.image)),a},Oe=t=>{if(t instanceof Error)return t.message;if(typeof t=="object"&&t!==null&&"error"in t){const a=t.error;if(typeof a=="string")return a}return"Unknown error"},Fn=t=>{const a=[];if(t.nodeType===_n.BLOCKS.EMBEDDED_ASSET&&t.data?.target?.sys?.id&&a.push(t.data.target.sys.id),t.content)for(const s of t.content)a.push(...Fn(s));return a},zt=async t=>{const a=Fn(t),s=[...new Set(a)];if(s.length===0)return{};const l=await Promise.all(s.map(async f=>{const p=await Re({sys:{type:"Link",linkType:"Asset",id:f}}),n=Ct(p);return{id:f,asset:n}})),m={};for(const{id:f,asset:p}of l)p&&(m[f]=p);return m},cs=ba.injectEndpoints({endpoints:t=>({getBlogPosts:t.query({serializeQueryArgs:({queryArgs:a})=>`posts-${a.category||"all"}-${a.author||"all"}`,merge:(a,s,{arg:l})=>{if(l.skip===0)return a.posts.length>s.posts.length?a:s;const m=new Set(a.posts.map(p=>p.id)),f=s.posts.filter(p=>!m.has(p.id));return{posts:[...a.posts,...f],total:s.total,hasMore:s.hasMore,nextCmsSkip:s.nextCmsSkip}},forceRefetch:({currentArg:a,previousArg:s})=>s?a?.skip!==s?.skip&&(a?.skip??0)>(s?.skip??0):!0,query:({category:a,author:s,limit:l=20,skip:m=0})=>({url:ve()+"/blog/posts",params:{category:a,author:s,limit:l,skip:m}}),transformResponse:async(a,s,{skip:l=0})=>{try{const m=a.total,p=(await Promise.all(a.items.map(async r=>{const o=r.sys?.id;if(o){const i=Kt(o);if(i)return i}try{const i=await Pt(r);return gt(i)}catch{return null}}))).filter(r=>r!==null),n=l+a.items.length,e=a.items.length===0?!1:n<m;return{posts:p,total:m,hasMore:e,nextCmsSkip:n}}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},async onQueryStarted(a,{dispatch:s,queryFulfilled:l}){try{const{data:m}=await l;m.posts.length>0&&s(jt(m.posts))}catch{}},keepUnusedDataFor:60,providesTags:a=>a?[...a.posts.map(({id:s})=>({type:"BlogPosts",id:s})),{type:"BlogPosts",id:"LIST"}]:[{type:"BlogPosts",id:"LIST"}]}),getBlogPost:t.query({query:({id:a})=>({url:ve()+`/entries/${a}`}),transformResponse:async(a,s,{id:l})=>{try{const m=Kt(l);if(m&&m.bodyAssets&&Object.keys(m.bodyAssets).length>0)return m;const f=await Pt(a),p=gt(f);if(!p)throw{status:"CUSTOM_ERROR",error:"Failed to map blog post: missing required fields"};return p.body&&(p.bodyAssets=await zt(p.body)),p}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},async onQueryStarted(a,{dispatch:s,queryFulfilled:l}){try{const{data:m}=await l;s(jt([m]))}catch{}},providesTags:(a,s,l)=>a?[{type:"BlogPost",id:l.id}]:[]}),getBlogCategories:t.query({query:()=>({url:ve()+"/blog/categories"}),transformResponse:async a=>{try{return(await Promise.all(a.items.map(l=>yt(l)))).map(l=>rr(l)).filter(l=>l!==null)}catch(s){throw{status:"CUSTOM_ERROR",error:Oe(s)}}},providesTags:["Categories"]}),getBlogCategoryBySlug:t.query({query:()=>({url:ve()+"/blog/categories"}),transformResponse:async(a,s,{slug:l})=>{try{const m=a.items.find(n=>{const e=n.fields;return Qr(e,n.sys.id)===l});if(!m)throw{status:"CUSTOM_ERROR",error:`Category with slug "${l}" not found`};const f=await yt(m),p=rr(f);if(!p)throw{status:"CUSTOM_ERROR",error:"Failed to map category: missing required fields"};return p}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},providesTags:(a,s,l)=>a?[{type:"Categories",id:l.slug}]:[]}),getBlogPostBySlug:t.query({query:({postSlug:a})=>({url:ve()+"/blog/posts",params:{slug:a}}),transformResponse:async(a,s,{postSlug:l})=>{try{const m=a.items.find(e=>e.fields.id===l);if(!m)throw{status:"CUSTOM_ERROR",error:`Post with slug "${l}" not found`};const f=m.sys?.id;if(f){const e=Kt(f);if(e&&e.bodyAssets&&Object.keys(e.bodyAssets).length>0)return e}const p=await Pt(m),n=gt(p);if(!n)throw{status:"CUSTOM_ERROR",error:"Failed to map post: missing required fields"};return n.body&&(n.bodyAssets=await zt(n.body)),n}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},async onQueryStarted(a,{dispatch:s,queryFulfilled:l}){try{const{data:m}=await l;s(jt([m]))}catch{}},providesTags:(a,s,l)=>a?[{type:"BlogPost",id:`${l.categorySlug}/${l.postSlug}`}]:[]}),getBlogAuthors:t.query({query:()=>({url:ve()+"/blog/authors"}),transformResponse:async a=>{try{return(await Promise.all(a.items.map(l=>yt(l)))).map(l=>St(l)).filter(l=>l!==null)}catch(s){throw{status:"CUSTOM_ERROR",error:s instanceof Error?s.message:"Unknown error"}}},providesTags:["Authors"]}),getBlogAuthor:t.query({query:({id:a})=>({url:ve()+`/entries/${a}`}),transformResponse:a=>{const s=St(a);if(!s)throw{status:"CUSTOM_ERROR",error:"Failed to map author: missing required fields"};return s},providesTags:(a,s,l)=>a?[{type:"Authors",id:l.id}]:[]}),getBlogAuthorBySlug:t.query({query:()=>({url:ve()+"/blog/authors"}),transformResponse:async(a,s,{slug:l})=>{try{const m=a.items.find(n=>{const e=n.fields;return Qr(e,n.sys.id)===l});if(!m)throw{status:"CUSTOM_ERROR",error:`Author with slug "${l}" not found`};const f=await yt(m),p=St(f);if(!p)throw{status:"CUSTOM_ERROR",error:"Failed to map author: missing required fields"};return p}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},providesTags:(a,s,l)=>a?[{type:"Authors",id:l.slug}]:[]}),getBlogPostPreview:t.query({queryFn:async({id:a,env:s,token:l,previewBaseUrl:m,spaceId:f})=>{try{const p=`${m}/spaces/${f}/environments/${s}/entries?content_type=blog_post&fields.id=${a}&access_token=${l}`,n=await fetch(p);if(!n.ok)return{error:{status:n.status,data:`Failed to fetch preview: ${n.statusText}`}};const e=await n.json();if(!e.items||e.items.length===0)return{error:{status:"CUSTOM_ERROR",error:`Preview post with id "${a}" not found`}};const r=e.items[0],o=await Pt(r),i=gt(o);return i?(i.body&&(i.bodyAssets=await zt(i.body)),{data:i}):{error:{status:"CUSTOM_ERROR",error:"Failed to map preview post: missing required fields"}}}catch(p){return{error:{status:"CUSTOM_ERROR",error:Oe(p)}}}},providesTags:(a,s,l)=>a?[{type:"BlogPost",id:`preview-${l.id}`}]:[]})}),overrideExisting:!1}),{useGetBlogPostsQuery:li,useGetBlogCategoriesQuery:us,useGetBlogCategoryBySlugQuery:hi,useGetBlogPostBySlugQuery:di,useGetBlogAuthorBySlugQuery:mi,useGetBlogPostPreviewQuery:fi}=cs;function fe(){function t(a){return new Promise(s=>{let l=new XMLHttpRequest;l.open(a.method,a.url,!0),Object.keys(a.headers).forEach(n=>l.setRequestHeader(n,a.headers[n]));let m=(n,e)=>setTimeout(()=>{l.abort(),s({status:0,content:e,isTimedOut:!0})},n),f=m(a.connectTimeout,"Connection timeout"),p;l.onreadystatechange=()=>{l.readyState>l.OPENED&&p===void 0&&(clearTimeout(f),p=m(a.responseTimeout,"Socket timeout"))},l.onerror=()=>{l.status===0&&(clearTimeout(f),clearTimeout(p),s({content:l.responseText||"Network request failed",status:l.status,isTimedOut:!1}))},l.onload=()=>{clearTimeout(f),clearTimeout(p),s({content:l.responseText,status:l.status,isTimedOut:!1})},l.send(a.data)})}return{send:t}}function pe(t){let a;const s=`algolia-client-js-${t.key}`;function l(){return a===void 0&&(a=t.localStorage||window.localStorage),a}function m(){return JSON.parse(l().getItem(s)||"{}")}function f(n){l().setItem(s,JSON.stringify(n))}function p(){const n=t.timeToLive?t.timeToLive*1e3:null,e=m(),r=Object.fromEntries(Object.entries(e).filter(([,i])=>i.timestamp!==void 0));if(f(r),!n)return;const o=Object.fromEntries(Object.entries(r).filter(([,i])=>{const u=new Date().getTime();return!(i.timestamp+n<u)}));f(o)}return{get(n,e,r={miss:()=>Promise.resolve()}){return Promise.resolve().then(()=>(p(),m()[JSON.stringify(n)])).then(o=>Promise.all([o?o.value:e(),o!==void 0])).then(([o,i])=>Promise.all([o,i||r.miss(o)])).then(([o])=>o)},set(n,e){return Promise.resolve().then(()=>{const r=m();return r[JSON.stringify(n)]={timestamp:new Date().getTime(),value:e},l().setItem(s,JSON.stringify(r)),e})},delete(n){return Promise.resolve().then(()=>{const e=m();delete e[JSON.stringify(n)],l().setItem(s,JSON.stringify(e))})},clear(){return Promise.resolve().then(()=>{l().removeItem(s)})}}}function ls(){return{get(t,a,s={miss:()=>Promise.resolve()}){return a().then(m=>Promise.all([m,s.miss(m)])).then(([m])=>m)},set(t,a){return Promise.resolve(a)},delete(t){return Promise.resolve()},clear(){return Promise.resolve()}}}function te(t){const a=[...t.caches],s=a.shift();return s===void 0?ls():{get(l,m,f={miss:()=>Promise.resolve()}){return s.get(l,m,f).catch(()=>te({caches:a}).get(l,m,f))},set(l,m){return s.set(l,m).catch(()=>te({caches:a}).set(l,m))},delete(l){return s.delete(l).catch(()=>te({caches:a}).delete(l))},clear(){return s.clear().catch(()=>te({caches:a}).clear())}}}function U(t={serializable:!0}){let a={};return{get(s,l,m={miss:()=>Promise.resolve()}){const f=JSON.stringify(s);if(f in a)return Promise.resolve(t.serializable?JSON.parse(a[f]):a[f]);const p=l();return p.then(n=>m.miss(n)).then(()=>p)},set(s,l){return a[JSON.stringify(s)]=t.serializable?JSON.stringify(l):l,Promise.resolve(l)},delete(s){return delete a[JSON.stringify(s)],Promise.resolve()},clear(){return a={},Promise.resolve()}}}function hs(t){const a={value:`Algolia for JavaScript (${t})`,add(s){const l=`; ${s.segment}${s.version!==void 0?` (${s.version})`:""}`;return a.value.indexOf(l)===-1&&(a.value=`${a.value}${l}`),a}};return a}function ge(t,a,s="WithinHeaders"){const l={"x-algolia-api-key":a,"x-algolia-application-id":t};return{headers(){return s==="WithinHeaders"?l:{}},queryParameters(){return s==="WithinQueryParameters"?l:{}}}}function be({func:t,validate:a,aggregator:s,error:l,timeout:m=()=>0}){const f=p=>new Promise((n,e)=>{t(p).then(async r=>(s&&await s(r),await a(r)?n(r):l&&await l.validate(r)?e(new Error(await l.message(r))):setTimeout(()=>{f(r).then(n).catch(e)},await m()))).catch(r=>{e(r)})});return f()}function Pe({algoliaAgents:t,client:a,version:s}){const l=hs(s).add({segment:a,version:s});return t.forEach(m=>l.add(m)),l}function ye(){return{debug(t,a){return Promise.resolve()},info(t,a){return Promise.resolve()},error(t,a){return Promise.resolve()}}}var Zr=2*60*1e3;function en(t,a="up"){const s=Date.now();function l(){return a==="up"||Date.now()-s>Zr}function m(){return a==="timed out"&&Date.now()-s<=Zr}return{...t,status:a,lastUpdate:s,isUp:l,isTimedOut:m}}var Wn=class extends Error{name="AlgoliaError";constructor(t,a){super(t),a&&(this.name=a)}},Vn=class extends Wn{stackTrace;constructor(t,a,s){super(t,s),this.stackTrace=a}},ds=class extends Vn{constructor(t){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",t,"RetryError")}},bt=class extends Vn{status;constructor(t,a,s,l="ApiError"){super(t,s,l),this.status=a}},ms=class extends Wn{response;constructor(t,a){super(t,"DeserializationError"),this.response=a}},fs=class extends bt{error;constructor(t,a,s,l){super(t,a,l,"DetailedApiError"),this.error=s}};function Qn(t){const a=t;for(let s=t.length-1;s>0;s--){const l=Math.floor(Math.random()*(s+1)),m=t[s];a[s]=t[l],a[l]=m}return a}function ps(t,a,s){const l=gs(s);let m=`${t.protocol}://${t.url}${t.port?`:${t.port}`:""}/${a.charAt(0)==="/"?a.substring(1):a}`;return l.length&&(m+=`?${l}`),m}function gs(t){return Object.keys(t).filter(a=>t[a]!==void 0).sort().map(a=>`${a}=${encodeURIComponent(Object.prototype.toString.call(t[a])==="[object Array]"?t[a].join(","):t[a]).replace(/\+/g,"%20")}`).join("&")}function Ps(t,a){if(t.method==="GET"||t.data===void 0&&a.data===void 0)return;const s=Array.isArray(t.data)?t.data:{...t.data,...a.data};return JSON.stringify(s)}function ys(t,a,s){const l={Accept:"application/json",...t,...a,...s},m={};return Object.keys(l).forEach(f=>{const p=l[f];m[f.toLowerCase()]=p}),m}function qs(t){try{return JSON.parse(t.content)}catch(a){throw new ms(a.message,t)}}function ws({content:t,status:a},s){try{const l=JSON.parse(t);return"error"in l?new fs(l.message,a,l.error,s):new bt(l.message,a,s)}catch{}return new bt(t,a,s)}function Es({isTimedOut:t,status:a}){return!t&&~~a===0}function Ts({isTimedOut:t,status:a}){return t||Es({isTimedOut:t,status:a})||~~(a/100)!==2&&~~(a/100)!==4}function Ss({status:t}){return~~(t/100)===2}function vs(t){return t.map(a=>Yn(a))}function Yn(t){const a=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...t,request:{...t.request,headers:{...t.request.headers,...a}}}}function qe({hosts:t,hostsCache:a,baseHeaders:s,logger:l,baseQueryParameters:m,algoliaAgent:f,timeouts:p,requester:n,requestsCache:e,responsesCache:r}){async function o(c){const h=await Promise.all(c.map(E=>a.get(E,()=>Promise.resolve(en(E))))),d=h.filter(E=>E.isUp()),g=h.filter(E=>E.isTimedOut()),P=[...d,...g];return{hosts:P.length>0?P:c,getTimeout(E,w){return(g.length===0&&E===0?1:g.length+3+E)*w}}}async function i(c,h,d=!0){const g=[],P=Ps(c,h),q=ys(s,c.headers,h.headers),E=c.method==="GET"?{...c.data,...h.data}:{},w={...m,...c.queryParameters,...E};if(f.value&&(w["x-algolia-agent"]=f.value),h&&h.queryParameters)for(const R of Object.keys(h.queryParameters))!h.queryParameters[R]||Object.prototype.toString.call(h.queryParameters[R])==="[object Object]"?w[R]=h.queryParameters[R]:w[R]=h.queryParameters[R].toString();let _=0;const S=async(R,W)=>{const T=R.pop();if(T===void 0)throw new ds(vs(g));const A={...p,...h.timeouts},D={data:P,headers:q,method:c.method,url:ps(T,c.path,w),connectTimeout:W(_,A.connect),responseTimeout:W(_,d?A.read:A.write)},N=z=>{const re={request:D,response:z,host:T,triesLeft:R.length};return g.push(re),re},x=await n.send(D);if(Ts(x)){const z=N(x);return x.isTimedOut&&_++,l.info("Retryable failure",Yn(z)),await a.set(T,en(T,x.isTimedOut?"timed out":"down")),S(R,W)}if(Ss(x))return qs(x);throw N(x),ws(x,g)},b=t.filter(R=>R.accept==="readWrite"||(d?R.accept==="read":R.accept==="write")),O=await o(b);return S([...O.hosts].reverse(),O.getTimeout)}function u(c,h={}){const d=c.useReadTransporter||c.method==="GET";if(!d)return i(c,h,d);const g=()=>i(c,h);if((h.cacheable||c.cacheable)!==!0)return g();const q={request:c,requestOptions:h,transporter:{queryParameters:m,headers:s}};return r.get(q,()=>e.get(q,()=>e.set(q,g()).then(E=>Promise.all([e.delete(q),E]),E=>Promise.all([e.delete(q),Promise.reject(E)])).then(([E,w])=>w)),{miss:E=>r.set(q,E)})}return{hostsCache:a,requester:n,timeouts:p,logger:l,algoliaAgent:f,baseHeaders:s,baseQueryParameters:m,hosts:t,request:u,requestsCache:e,responsesCache:r}}var fr="1.7.0",tn=["de","us"];function bs(t){return[{url:t?"analytics.{region}.algolia.com".replace("{region}",t):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function _s({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:bs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"AbtestingV3",version:fr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},addABTests(e,r){if(!e)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.metrics)throw new Error("Parameter `addABTestsRequest.metrics` is required when calling `addABTests`.");if(!e.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const c={method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const c={method:"DELETE",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},estimateABTest(e,r){if(!e)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const c={method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e};return n.request(c,r)},getABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `getABTest`.");const c={method:"GET",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTimeseries({id:e,startDate:r,endDate:o,metric:i},u){if(!e)throw new Error("Parameter `id` is required when calling `getTimeseries`.");const c="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),h={},d={};r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.metric=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},listABTests({offset:e,limit:r,indexPrefix:o,indexSuffix:i,direction:u}={},c=void 0){const h="/3/abtests",d={},g={};e!==void 0&&(g.offset=e.toString()),r!==void 0&&(g.limit=r.toString()),o!==void 0&&(g.indexPrefix=o.toString()),i!==void 0&&(g.indexSuffix=i.toString()),u!==void 0&&(g.direction=u.toString());const P={method:"GET",path:h,queryParameters:g,headers:d};return n.request(P,c)},scheduleABTest(e,r){if(!e)throw new Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw new Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw new Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.metrics)throw new Error("Parameter `scheduleABTestsRequest.metrics` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw new Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw new Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");const c={method:"POST",path:"/3/abtests/schedule",queryParameters:{},headers:{},data:e};return n.request(c,r)},stopABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `stopABTest`.");const c={method:"POST",path:"/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)}}}function Xn(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!tn.includes(s)))throw new Error(`\`region\` must be one of the following: ${tn.join(", ")}`);return _s({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${fr}-${t}`}),U()]}),...l})}const As=Object.freeze(Object.defineProperty({__proto__:null,abtestingV3Client:Xn,apiClientVersion:fr},Symbol.toStringTag,{value:"Module"}));var pr="5.41.0",rn=["de","us"];function Cs(t){return[{url:t?"analytics.{region}.algolia.com".replace("{region}",t):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function Os({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Cs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Abtesting",version:pr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},addABTests(e,r){if(!e)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const c={method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const c={method:"DELETE",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},estimateABTest(e,r){if(!e)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const c={method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:e};return n.request(c,r)},getABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `getABTest`.");const c={method:"GET",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},listABTests({offset:e,limit:r,indexPrefix:o,indexSuffix:i}={},u=void 0){const c="/2/abtests",h={},d={};e!==void 0&&(d.offset=e.toString()),r!==void 0&&(d.limit=r.toString()),o!==void 0&&(d.indexPrefix=o.toString()),i!==void 0&&(d.indexSuffix=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},scheduleABTest(e,r){if(!e)throw new Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw new Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw new Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw new Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw new Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");const c={method:"POST",path:"/2/abtests/schedule",queryParameters:{},headers:{},data:e};return n.request(c,r)},stopABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `stopABTest`.");const c={method:"POST",path:"/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)}}}function Jn(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!rn.includes(s)))throw new Error(`\`region\` must be one of the following: ${rn.join(", ")}`);return Os({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${pr}-${t}`}),U()]}),...l})}const Is=Object.freeze(Object.defineProperty({__proto__:null,abtestingClient:Jn,apiClientVersion:pr},Symbol.toStringTag,{value:"Module"}));var gr="5.41.0",nn=["de","us"];function Rs(t){return[{url:t?"analytics.{region}.algolia.com".replace("{region}",t):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function Ds({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Rs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Analytics",version:gr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},getAddToCartRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getAddToCartRate`.");const c="/2/conversions/addToCartRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getAverageClickPosition({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getAverageClickPosition`.");const c="/2/clicks/averageClickPosition",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getClickPositions({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getClickPositions`.");const c="/2/clicks/positions",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getClickThroughRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getClickThroughRate`.");const c="/2/clicks/clickThroughRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getConversionRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getConversionRate`.");const c="/2/conversions/conversionRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getNoClickRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getNoClickRate`.");const c="/2/searches/noClickRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getNoResultsRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getNoResultsRate`.");const c="/2/searches/noResultRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getPurchaseRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getPurchaseRate`.");const c="/2/conversions/purchaseRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getRevenue({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getRevenue`.");const c="/2/conversions/revenue",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getSearchesCount({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesCount`.");const c="/2/searches/count",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getSearchesNoClicks({index:e,startDate:r,endDate:o,limit:i,offset:u,tags:c},h){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoClicks`.");const d="/2/searches/noClicks",g={},P={};e!==void 0&&(P.index=e.toString()),r!==void 0&&(P.startDate=r.toString()),o!==void 0&&(P.endDate=o.toString()),i!==void 0&&(P.limit=i.toString()),u!==void 0&&(P.offset=u.toString()),c!==void 0&&(P.tags=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},getSearchesNoResults({index:e,startDate:r,endDate:o,limit:i,offset:u,tags:c},h){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoResults`.");const d="/2/searches/noResults",g={},P={};e!==void 0&&(P.index=e.toString()),r!==void 0&&(P.startDate=r.toString()),o!==void 0&&(P.endDate=o.toString()),i!==void 0&&(P.limit=i.toString()),u!==void 0&&(P.offset=u.toString()),c!==void 0&&(P.tags=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},getStatus({index:e},r){if(!e)throw new Error("Parameter `index` is required when calling `getStatus`.");const o="/2/status",i={},u={};e!==void 0&&(u.index=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return n.request(c,r)},getTopCountries({index:e,startDate:r,endDate:o,limit:i,offset:u,tags:c},h){if(!e)throw new Error("Parameter `index` is required when calling `getTopCountries`.");const d="/2/countries",g={},P={};e!==void 0&&(P.index=e.toString()),r!==void 0&&(P.startDate=r.toString()),o!==void 0&&(P.endDate=o.toString()),i!==void 0&&(P.limit=i.toString()),u!==void 0&&(P.offset=u.toString()),c!==void 0&&(P.tags=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},getTopFilterAttributes({index:e,search:r,startDate:o,endDate:i,limit:u,offset:c,tags:h},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const g="/2/filters",P={},q={};e!==void 0&&(q.index=e.toString()),r!==void 0&&(q.search=r.toString()),o!==void 0&&(q.startDate=o.toString()),i!==void 0&&(q.endDate=i.toString()),u!==void 0&&(q.limit=u.toString()),c!==void 0&&(q.offset=c.toString()),h!==void 0&&(q.tags=h.toString());const E={method:"GET",path:g,queryParameters:q,headers:P};return n.request(E,d)},getTopFilterForAttribute({attribute:e,index:r,search:o,startDate:i,endDate:u,limit:c,offset:h,tags:d},g){if(!e)throw new Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!r)throw new Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");const P="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),q={},E={};r!==void 0&&(E.index=r.toString()),o!==void 0&&(E.search=o.toString()),i!==void 0&&(E.startDate=i.toString()),u!==void 0&&(E.endDate=u.toString()),c!==void 0&&(E.limit=c.toString()),h!==void 0&&(E.offset=h.toString()),d!==void 0&&(E.tags=d.toString());const w={method:"GET",path:P,queryParameters:E,headers:q};return n.request(w,g)},getTopFiltersNoResults({index:e,search:r,startDate:o,endDate:i,limit:u,offset:c,tags:h},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const g="/2/filters/noResults",P={},q={};e!==void 0&&(q.index=e.toString()),r!==void 0&&(q.search=r.toString()),o!==void 0&&(q.startDate=o.toString()),i!==void 0&&(q.endDate=i.toString()),u!==void 0&&(q.limit=u.toString()),c!==void 0&&(q.offset=c.toString()),h!==void 0&&(q.tags=h.toString());const E={method:"GET",path:g,queryParameters:q,headers:P};return n.request(E,d)},getTopHits({index:e,search:r,clickAnalytics:o,revenueAnalytics:i,startDate:u,endDate:c,limit:h,offset:d,tags:g},P){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const q="/2/hits",E={},w={};e!==void 0&&(w.index=e.toString()),r!==void 0&&(w.search=r.toString()),o!==void 0&&(w.clickAnalytics=o.toString()),i!==void 0&&(w.revenueAnalytics=i.toString()),u!==void 0&&(w.startDate=u.toString()),c!==void 0&&(w.endDate=c.toString()),h!==void 0&&(w.limit=h.toString()),d!==void 0&&(w.offset=d.toString()),g!==void 0&&(w.tags=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},getTopSearches({index:e,clickAnalytics:r,revenueAnalytics:o,startDate:i,endDate:u,orderBy:c,direction:h,limit:d,offset:g,tags:P},q){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const E="/2/searches",w={},_={};e!==void 0&&(_.index=e.toString()),r!==void 0&&(_.clickAnalytics=r.toString()),o!==void 0&&(_.revenueAnalytics=o.toString()),i!==void 0&&(_.startDate=i.toString()),u!==void 0&&(_.endDate=u.toString()),c!==void 0&&(_.orderBy=c.toString()),h!==void 0&&(_.direction=h.toString()),d!==void 0&&(_.limit=d.toString()),g!==void 0&&(_.offset=g.toString()),P!==void 0&&(_.tags=P.toString());const S={method:"GET",path:E,queryParameters:_,headers:w};return n.request(S,q)},getUsersCount({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getUsersCount`.");const c="/2/users/count",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)}}}function Zn(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!nn.includes(s)))throw new Error(`\`region\` must be one of the following: ${nn.join(", ")}`);return Ds({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${gr}-${t}`}),U()]}),...l})}const xs=Object.freeze(Object.defineProperty({__proto__:null,analyticsClient:Zn,apiClientVersion:gr},Symbol.toStringTag,{value:"Module"}));var Pr="5.41.0",an=["de","us"];function Ls(t){return[{url:t?"insights.{region}.algolia.io".replace("{region}",t):"insights.algolia.io",accept:"readWrite",protocol:"https"}]}function ks({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Ls(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Insights",version:Pr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteUserToken({userToken:e},r){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserToken`.");const c={method:"DELETE",path:"/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},pushEvents(e,r){if(!e)throw new Error("Parameter `insightsEvents` is required when calling `pushEvents`.");if(!e.events)throw new Error("Parameter `insightsEvents.events` is required when calling `pushEvents`.");const c={method:"POST",path:"/1/events",queryParameters:{},headers:{},data:e};return n.request(c,r)}}}function ea(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!an.includes(s)))throw new Error(`\`region\` must be one of the following: ${an.join(", ")}`);return ks({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${Pr}-${t}`}),U()]}),...l})}const Ns=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Pr,insightsClient:ea},Symbol.toStringTag,{value:"Module"}));var yr="5.41.0",sn=["eu","us"];function Us(t){return[{url:"personalization.{region}.algolia.com".replace("{region}",t),accept:"readWrite",protocol:"https"}]}function Bs({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Us(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Personalization",version:yr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteUserProfile({userToken:e},r){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserProfile`.");const c={method:"DELETE",path:"/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getPersonalizationStrategy(e){const u={method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}};return n.request(u,e)},getUserTokenProfile({userToken:e},r){if(!e)throw new Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");const c={method:"GET",path:"/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},setPersonalizationStrategy(e,r){if(!e)throw new Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!e.eventsScoring)throw new Error("Parameter `personalizationStrategyParams.eventsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.facetsScoring)throw new Error("Parameter `personalizationStrategyParams.facetsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.personalizationImpact)throw new Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");const c={method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e};return n.request(c,r)}}}function ta(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(!s||s&&(typeof s!="string"||!sn.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${sn.join(", ")}`);return Bs({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${yr}-${t}`}),U()]}),...l})}const js=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:yr,personalizationClient:ta},Symbol.toStringTag,{value:"Module"}));var qr="5.41.0",on=["eu","us"];function Ms(t){return[{url:"query-suggestions.{region}.algolia.com".replace("{region}",t),accept:"readWrite",protocol:"https"}]}function Hs({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Ms(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"QuerySuggestions",version:qr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},createConfig(e,r){if(!e)throw new Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");const c={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteConfig({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const c={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getAllConfigs(e){const u={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return n.request(u,e)},getConfig({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const c={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getConfigStatus({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const c={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getLogFile({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const c={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},updateConfig({indexName:e,configuration:r},o){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!r)throw new Error("Parameter `configuration` is required when calling `updateConfig`.");if(!r.sourceIndices)throw new Error("Parameter `configuration.sourceIndices` is required when calling `updateConfig`.");const h={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)}}}function ra(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(!s||s&&(typeof s!="string"||!on.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${on.join(", ")}`);return Hs({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${qr}-${t}`}),U()]}),...l})}const Gs=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:qr,querySuggestionsClient:ra},Symbol.toStringTag,{value:"Module"}));var ot="5.41.0";function $s(t){return[{url:`${t}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${t}.algolia.net`,accept:"write",protocol:"https"}].concat(Qn([{url:`${t}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function Ks({appId:t,apiKey:a,authMode:s,algoliaAgents:l,...m}){const f=ge(t,a,s),p=qe({hosts:$s(t),...m,algoliaAgent:Pe({algoliaAgents:l,client:"Search",version:ot}),baseHeaders:{"content-type":"text/plain",...f.headers(),...m.baseHeaders},baseQueryParameters:{...f.queryParameters(),...m.baseQueryParameters}});return{transporter:p,appId:t,apiKey:a,clearCache(){return Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>{})},get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(n,e){p.algoliaAgent.add({segment:n,version:e})},setClientApiKey({apiKey:n}){!s||s==="WithinHeaders"?p.baseHeaders["x-algolia-api-key"]=n:p.baseQueryParameters["x-algolia-api-key"]=n},waitForTask({indexName:n,taskID:e,maxRetries:r=50,timeout:o=u=>Math.min(u*200,5e3)},i){let u=0;return be({func:()=>this.getTask({indexName:n,taskID:e},i),validate:c=>c.status==="published",aggregator:()=>u+=1,error:{validate:()=>u>=r,message:()=>`The maximum number of retries exceeded. (${u}/${r})`},timeout:()=>o(u)})},waitForAppTask({taskID:n,maxRetries:e=50,timeout:r=i=>Math.min(i*200,5e3)},o){let i=0;return be({func:()=>this.getAppTask({taskID:n},o),validate:u=>u.status==="published",aggregator:()=>i+=1,error:{validate:()=>i>=e,message:()=>`The maximum number of retries exceeded. (${i}/${e})`},timeout:()=>r(i)})},waitForApiKey({operation:n,key:e,apiKey:r,maxRetries:o=50,timeout:i=c=>Math.min(c*200,5e3)},u){let c=0;const h={aggregator:()=>c+=1,error:{validate:()=>c>=o,message:()=>`The maximum number of retries exceeded. (${c}/${o})`},timeout:()=>i(c)};if(n==="update"){if(!r)throw new Error("`apiKey` is required when waiting for an `update` operation.");return be({...h,func:()=>this.getApiKey({key:e},u),validate:d=>{for(const g of Object.keys(r)){const P=r[g],q=d[g];if(Array.isArray(P)&&Array.isArray(q)){if(P.length!==q.length||P.some((E,w)=>E!==q[w]))return!1}else if(P!==q)return!1}return!0}})}return be({...h,func:()=>this.getApiKey({key:e},u).catch(d=>{if(d.status!==404)throw d}),validate:d=>n==="add"?d!==void 0:d===void 0})},browseObjects({indexName:n,browseParams:e,...r},o){return be({func:i=>this.browse({indexName:n,browseParams:{cursor:i?i.cursor:void 0,hitsPerPage:1e3,...e}},o),validate:i=>i.cursor===void 0,...r})},browseRules({indexName:n,searchRulesParams:e,...r},o){const i={...e,hitsPerPage:e?.hitsPerPage||1e3};return be({func:u=>this.searchRules({indexName:n,searchRulesParams:{...i,page:u?u.page+1:i.page||0}},o),validate:u=>u.hits.length<i.hitsPerPage,...r})},browseSynonyms({indexName:n,searchSynonymsParams:e,...r},o){const i={...e,page:e?.page||0,hitsPerPage:1e3};return be({func:u=>{const c=this.searchSynonyms({indexName:n,searchSynonymsParams:{...i,page:i.page}},o);return i.page+=1,c},validate:u=>u.hits.length<i.hitsPerPage,...r})},async chunkedBatch({indexName:n,objects:e,action:r="addObject",waitForTasks:o,batchSize:i=1e3},u){let c=[];const h=[],d=e.entries();for(const[g,P]of d)c.push({action:r,body:P}),(c.length===i||g===e.length-1)&&(h.push(await this.batch({indexName:n,batchWriteParams:{requests:c}},u)),c=[]);if(o)for(const g of h)await this.waitForTask({indexName:n,taskID:g.taskID});return h},async saveObjects({indexName:n,objects:e,waitForTasks:r,batchSize:o},i){return await this.chunkedBatch({indexName:n,objects:e,action:"addObject",waitForTasks:r,batchSize:o},i)},async deleteObjects({indexName:n,objectIDs:e,waitForTasks:r,batchSize:o},i){return await this.chunkedBatch({indexName:n,objects:e.map(u=>({objectID:u})),action:"deleteObject",waitForTasks:r,batchSize:o},i)},async partialUpdateObjects({indexName:n,objects:e,createIfNotExists:r,waitForTasks:o,batchSize:i},u){return await this.chunkedBatch({indexName:n,objects:e,action:r?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:i,waitForTasks:o},u)},async replaceAllObjects({indexName:n,objects:e,batchSize:r,scopes:o},i){const u=Math.floor(Math.random()*1e6)+1e5,c=`${n}_tmp_${u}`;o===void 0&&(o=["settings","rules","synonyms"]);try{let h=await this.operationIndex({indexName:n,operationIndexParams:{operation:"copy",destination:c,scope:o}},i);const d=await this.chunkedBatch({indexName:c,objects:e,waitForTasks:!0,batchSize:r},i);await this.waitForTask({indexName:c,taskID:h.taskID}),h=await this.operationIndex({indexName:n,operationIndexParams:{operation:"copy",destination:c,scope:o}},i),await this.waitForTask({indexName:c,taskID:h.taskID});const g=await this.operationIndex({indexName:c,operationIndexParams:{operation:"move",destination:n}},i);return await this.waitForTask({indexName:c,taskID:g.taskID}),{copyOperationResponse:h,batchResponses:d,moveOperationResponse:g}}catch(h){throw await this.deleteIndex({indexName:c}),h}},async indexExists({indexName:n}){try{await this.getSettings({indexName:n})}catch(e){if(e instanceof bt&&e.status===404)return!1;throw e}return!0},searchForHits(n,e){return this.search(n,e)},searchForFacets(n,e){return this.search(n,e)},addApiKey(n,e){if(!n)throw new Error("Parameter `apiKey` is required when calling `addApiKey`.");if(!n.acl)throw new Error("Parameter `apiKey.acl` is required when calling `addApiKey`.");const u={method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:n};return p.request(u,e)},addOrUpdateObject({indexName:n,objectID:e,body:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `addOrUpdateObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `addOrUpdateObject`.");if(!r)throw new Error("Parameter `body` is required when calling `addOrUpdateObject`.");const h={method:"PUT",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return p.request(h,o)},appendSource(n,e){if(!n)throw new Error("Parameter `source` is required when calling `appendSource`.");if(!n.source)throw new Error("Parameter `source.source` is required when calling `appendSource`.");const u={method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:n};return p.request(u,e)},assignUserId({xAlgoliaUserID:n,assignUserIdParams:e},r){if(!n)throw new Error("Parameter `xAlgoliaUserID` is required when calling `assignUserId`.");if(!e)throw new Error("Parameter `assignUserIdParams` is required when calling `assignUserId`.");if(!e.cluster)throw new Error("Parameter `assignUserIdParams.cluster` is required when calling `assignUserId`.");const o="/1/clusters/mapping",i={},u={};n!==void 0&&(i["X-Algolia-User-ID"]=n.toString());const c={method:"POST",path:o,queryParameters:u,headers:i,data:e};return p.request(c,r)},batch({indexName:n,batchWriteParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `batch`.");if(!e)throw new Error("Parameter `batchWriteParams` is required when calling `batch`.");if(!e.requests)throw new Error("Parameter `batchWriteParams.requests` is required when calling `batch`.");const c={method:"POST",path:"/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},batchAssignUserIds({xAlgoliaUserID:n,batchAssignUserIdsParams:e},r){if(!n)throw new Error("Parameter `xAlgoliaUserID` is required when calling `batchAssignUserIds`.");if(!e)throw new Error("Parameter `batchAssignUserIdsParams` is required when calling `batchAssignUserIds`.");if(!e.cluster)throw new Error("Parameter `batchAssignUserIdsParams.cluster` is required when calling `batchAssignUserIds`.");if(!e.users)throw new Error("Parameter `batchAssignUserIdsParams.users` is required when calling `batchAssignUserIds`.");const o="/1/clusters/mapping/batch",i={},u={};n!==void 0&&(i["X-Algolia-User-ID"]=n.toString());const c={method:"POST",path:o,queryParameters:u,headers:i,data:e};return p.request(c,r)},batchDictionaryEntries({dictionaryName:n,batchDictionaryEntriesParams:e},r){if(!n)throw new Error("Parameter `dictionaryName` is required when calling `batchDictionaryEntries`.");if(!e)throw new Error("Parameter `batchDictionaryEntriesParams` is required when calling `batchDictionaryEntries`.");if(!e.requests)throw new Error("Parameter `batchDictionaryEntriesParams.requests` is required when calling `batchDictionaryEntries`.");const c={method:"POST",path:"/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},browse({indexName:n,browseParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `browse`.");const c={method:"POST",path:"/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0};return p.request(c,r)},clearObjects({indexName:n},e){if(!n)throw new Error("Parameter `indexName` is required when calling `clearObjects`.");const u={method:"POST",path:"/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},clearRules({indexName:n,forwardToReplicas:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `clearRules`.");const o="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(n)),i={},u={};e!==void 0&&(u.forwardToReplicas=e.toString());const c={method:"POST",path:o,queryParameters:u,headers:i};return p.request(c,r)},clearSynonyms({indexName:n,forwardToReplicas:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `clearSynonyms`.");const o="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(n)),i={},u={};e!==void 0&&(u.forwardToReplicas=e.toString());const c={method:"POST",path:o,queryParameters:u,headers:i};return p.request(c,r)},customDelete({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const c={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customGet({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const c={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customPost({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const h={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},customPut({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const h={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},deleteApiKey({key:n},e){if(!n)throw new Error("Parameter `key` is required when calling `deleteApiKey`.");const u={method:"DELETE",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},deleteBy({indexName:n,deleteByParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteBy`.");if(!e)throw new Error("Parameter `deleteByParams` is required when calling `deleteBy`.");const c={method:"POST",path:"/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},deleteIndex({indexName:n},e){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteIndex`.");const u={method:"DELETE",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},deleteObject({indexName:n,objectID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `deleteObject`.");const c={method:"DELETE",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},deleteRule({indexName:n,objectID:e,forwardToReplicas:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteRule`.");if(!e)throw new Error("Parameter `objectID` is required when calling `deleteRule`.");const i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),u={},c={};r!==void 0&&(c.forwardToReplicas=r.toString());const h={method:"DELETE",path:i,queryParameters:c,headers:u};return p.request(h,o)},deleteSource({source:n},e){if(!n)throw new Error("Parameter `source` is required when calling `deleteSource`.");const u={method:"DELETE",path:"/1/security/sources/{source}".replace("{source}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},deleteSynonym({indexName:n,objectID:e,forwardToReplicas:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteSynonym`.");if(!e)throw new Error("Parameter `objectID` is required when calling `deleteSynonym`.");const i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),u={},c={};r!==void 0&&(c.forwardToReplicas=r.toString());const h={method:"DELETE",path:i,queryParameters:c,headers:u};return p.request(h,o)},getApiKey({key:n},e){if(!n)throw new Error("Parameter `key` is required when calling `getApiKey`.");const u={method:"GET",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getAppTask({taskID:n},e){if(!n)throw new Error("Parameter `taskID` is required when calling `getAppTask`.");const u={method:"GET",path:"/1/task/{taskID}".replace("{taskID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getDictionaryLanguages(n){const i={method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}};return p.request(i,n)},getDictionarySettings(n){const i={method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}};return p.request(i,n)},getLogs({offset:n,length:e,indexName:r,type:o}={},i=void 0){const u="/1/logs",c={},h={};n!==void 0&&(h.offset=n.toString()),e!==void 0&&(h.length=e.toString()),r!==void 0&&(h.indexName=r.toString()),o!==void 0&&(h.type=o.toString());const d={method:"GET",path:u,queryParameters:h,headers:c};return p.request(d,i)},getObject({indexName:n,objectID:e,attributesToRetrieve:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `getObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `getObject`.");const i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),u={},c={};r!==void 0&&(c.attributesToRetrieve=r.toString());const h={method:"GET",path:i,queryParameters:c,headers:u};return p.request(h,o)},getObjects(n,e){if(!n)throw new Error("Parameter `getObjectsParams` is required when calling `getObjects`.");if(!n.requests)throw new Error("Parameter `getObjectsParams.requests` is required when calling `getObjects`.");const u={method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},getRule({indexName:n,objectID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getRule`.");if(!e)throw new Error("Parameter `objectID` is required when calling `getRule`.");const c={method:"GET",path:"/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getSettings({indexName:n,getVersion:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getSettings`.");const o="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(n)),i={},u={};e!==void 0&&(u.getVersion=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return p.request(c,r)},getSources(n){const i={method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}};return p.request(i,n)},getSynonym({indexName:n,objectID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getSynonym`.");if(!e)throw new Error("Parameter `objectID` is required when calling `getSynonym`.");const c={method:"GET",path:"/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getTask({indexName:n,taskID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getTask`.");if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const c={method:"GET",path:"/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(n)).replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getTopUserIds(n){const i={method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}};return p.request(i,n)},getUserId({userID:n},e){if(!n)throw new Error("Parameter `userID` is required when calling `getUserId`.");const u={method:"GET",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},hasPendingMappings({getClusters:n}={},e=void 0){const r="/1/clusters/mapping/pending",o={},i={};n!==void 0&&(i.getClusters=n.toString());const u={method:"GET",path:r,queryParameters:i,headers:o};return p.request(u,e)},listApiKeys(n){const i={method:"GET",path:"/1/keys",queryParameters:{},headers:{}};return p.request(i,n)},listClusters(n){const i={method:"GET",path:"/1/clusters",queryParameters:{},headers:{}};return p.request(i,n)},listIndices({page:n,hitsPerPage:e}={},r=void 0){const o="/1/indexes",i={},u={};n!==void 0&&(u.page=n.toString()),e!==void 0&&(u.hitsPerPage=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return p.request(c,r)},listUserIds({page:n,hitsPerPage:e}={},r=void 0){const o="/1/clusters/mapping",i={},u={};n!==void 0&&(u.page=n.toString()),e!==void 0&&(u.hitsPerPage=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return p.request(c,r)},multipleBatch(n,e){if(!n)throw new Error("Parameter `batchParams` is required when calling `multipleBatch`.");if(!n.requests)throw new Error("Parameter `batchParams.requests` is required when calling `multipleBatch`.");const u={method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:n};return p.request(u,e)},operationIndex({indexName:n,operationIndexParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `operationIndex`.");if(!e)throw new Error("Parameter `operationIndexParams` is required when calling `operationIndex`.");if(!e.operation)throw new Error("Parameter `operationIndexParams.operation` is required when calling `operationIndex`.");if(!e.destination)throw new Error("Parameter `operationIndexParams.destination` is required when calling `operationIndex`.");const c={method:"POST",path:"/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},partialUpdateObject({indexName:n,objectID:e,attributesToUpdate:r,createIfNotExists:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `partialUpdateObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `partialUpdateObject`.");if(!r)throw new Error("Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.");const u="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.createIfNotExists=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:r};return p.request(d,i)},removeUserId({userID:n},e){if(!n)throw new Error("Parameter `userID` is required when calling `removeUserId`.");const u={method:"DELETE",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},replaceSources({source:n},e){if(!n)throw new Error("Parameter `source` is required when calling `replaceSources`.");const u={method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:n};return p.request(u,e)},restoreApiKey({key:n},e){if(!n)throw new Error("Parameter `key` is required when calling `restoreApiKey`.");const u={method:"POST",path:"/1/keys/{key}/restore".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},saveObject({indexName:n,body:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `saveObject`.");if(!e)throw new Error("Parameter `body` is required when calling `saveObject`.");const c={method:"POST",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},saveRule({indexName:n,objectID:e,rule:r,forwardToReplicas:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveRule`.");if(!e)throw new Error("Parameter `objectID` is required when calling `saveRule`.");if(!r)throw new Error("Parameter `rule` is required when calling `saveRule`.");if(!r.objectID)throw new Error("Parameter `rule.objectID` is required when calling `saveRule`.");if(!r.consequence)throw new Error("Parameter `rule.consequence` is required when calling `saveRule`.");const u="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.forwardToReplicas=o.toString());const d={method:"PUT",path:u,queryParameters:h,headers:c,data:r};return p.request(d,i)},saveRules({indexName:n,rules:e,forwardToReplicas:r,clearExistingRules:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveRules`.");if(!e)throw new Error("Parameter `rules` is required when calling `saveRules`.");const u="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(n)),c={},h={};r!==void 0&&(h.forwardToReplicas=r.toString()),o!==void 0&&(h.clearExistingRules=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:e};return p.request(d,i)},saveSynonym({indexName:n,objectID:e,synonymHit:r,forwardToReplicas:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveSynonym`.");if(!e)throw new Error("Parameter `objectID` is required when calling `saveSynonym`.");if(!r)throw new Error("Parameter `synonymHit` is required when calling `saveSynonym`.");if(!r.objectID)throw new Error("Parameter `synonymHit.objectID` is required when calling `saveSynonym`.");if(!r.type)throw new Error("Parameter `synonymHit.type` is required when calling `saveSynonym`.");const u="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.forwardToReplicas=o.toString());const d={method:"PUT",path:u,queryParameters:h,headers:c,data:r};return p.request(d,i)},saveSynonyms({indexName:n,synonymHit:e,forwardToReplicas:r,replaceExistingSynonyms:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveSynonyms`.");if(!e)throw new Error("Parameter `synonymHit` is required when calling `saveSynonyms`.");const u="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(n)),c={},h={};r!==void 0&&(h.forwardToReplicas=r.toString()),o!==void 0&&(h.replaceExistingSynonyms=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:e};return p.request(d,i)},search(n,e){if(n&&Array.isArray(n)&&(n={requests:n.map(({params:h,...d})=>d.type==="facet"?{...d,...h,type:"facet"}:{...d,...h,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!n)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!n.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const u={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},searchDictionaryEntries({dictionaryName:n,searchDictionaryEntriesParams:e},r){if(!n)throw new Error("Parameter `dictionaryName` is required when calling `searchDictionaryEntries`.");if(!e)throw new Error("Parameter `searchDictionaryEntriesParams` is required when calling `searchDictionaryEntries`.");if(!e.query)throw new Error("Parameter `searchDictionaryEntriesParams.query` is required when calling `searchDictionaryEntries`.");const c={method:"POST",path:"/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchForFacetValues({indexName:n,facetName:e,searchForFacetValuesRequest:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `searchForFacetValues`.");if(!e)throw new Error("Parameter `facetName` is required when calling `searchForFacetValues`.");const h={method:"POST",path:"/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(n)).replace("{facetName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0};return p.request(h,o)},searchRules({indexName:n,searchRulesParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `searchRules`.");const c={method:"POST",path:"/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchSingleIndex({indexName:n,searchParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `searchSingleIndex`.");const c={method:"POST",path:"/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchSynonyms({indexName:n,searchSynonymsParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `searchSynonyms`.");const c={method:"POST",path:"/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchUserIds(n,e){if(!n)throw new Error("Parameter `searchUserIdsParams` is required when calling `searchUserIds`.");if(!n.query)throw new Error("Parameter `searchUserIdsParams.query` is required when calling `searchUserIds`.");const u={method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},setDictionarySettings(n,e){if(!n)throw new Error("Parameter `dictionarySettingsParams` is required when calling `setDictionarySettings`.");if(!n.disableStandardEntries)throw new Error("Parameter `dictionarySettingsParams.disableStandardEntries` is required when calling `setDictionarySettings`.");const u={method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:n};return p.request(u,e)},setSettings({indexName:n,indexSettings:e,forwardToReplicas:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `setSettings`.");if(!e)throw new Error("Parameter `indexSettings` is required when calling `setSettings`.");const i="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(n)),u={},c={};r!==void 0&&(c.forwardToReplicas=r.toString());const h={method:"PUT",path:i,queryParameters:c,headers:u,data:e};return p.request(h,o)},updateApiKey({key:n,apiKey:e},r){if(!n)throw new Error("Parameter `key` is required when calling `updateApiKey`.");if(!e)throw new Error("Parameter `apiKey` is required when calling `updateApiKey`.");if(!e.acl)throw new Error("Parameter `apiKey.acl` is required when calling `updateApiKey`.");const c={method:"PUT",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)}}}function na(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");return Ks({appId:t,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${ot}-${t}`}),U()]}),...s})}const zs=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:ot,searchClient:na},Symbol.toStringTag,{value:"Module"}));var wr="1.41.0",cn=["eu","us"];function Fs(t){return[{url:"data.{region}.algolia.com".replace("{region}",t),accept:"readWrite",protocol:"https"}]}function Ws(t){return t.type==="onDemand"}function Vs(t){return t.type==="schedule"}function Qs(t){return t.type==="subscription"}function Ys({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Fs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Ingestion",version:wr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:r,action:o="addObject",waitForTasks:i,batchSize:u=1e3,referenceIndexName:c},h){let d=[],g=0;const P=[],q=Math.floor(u/10)||u,E=r.entries();for(const[w,_]of E)if(d.push(_),(d.length===u||w===r.length-1)&&(P.push(await this.push({indexName:e,pushTaskPayload:{action:o,records:d},referenceIndexName:c},h)),d=[]),i&&P.length>0&&(P.length%q===0||w===r.length-1)){for(const S of P.slice(g,g+q)){if(!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");let b=0;await be({func:async()=>{if(S.eventID===void 0||!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:S.runID,eventID:S.eventID}).catch(O=>{if(O.status!==404)throw O})},validate:O=>O!==void 0,aggregator:()=>b+=1,error:{validate:()=>b>=50,message:()=>`The maximum number of retries exceeded. (${b}/50)`},timeout:()=>Math.min(b*500,5e3)})}g+=q}return P},createAuthentication(e,r){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");const c={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return n.request(c,r)},createDestination(e,r){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");const c={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return n.request(c,r)},createSource(e,r){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");const c={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return n.request(c,r)},createTask(e,r){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const c={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return n.request(c,r)},createTaskV1(e,r){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!e.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");const c={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return n.request(c,r)},createTransformation(e,r){if(!e)throw new Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!e.name)throw new Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");const c={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const c={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const c={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const c={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const c={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTaskV1`.");const c={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `deleteTransformation`.");const c={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},disableTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const c={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},disableTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTaskV1`.");const c={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},enableTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const c={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},enableTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTaskV1`.");const c={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const c={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const c={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getEvent({runID:e,eventID:r},o){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!r)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const h={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return n.request(h,o)},getRun({runID:e},r){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const c={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const c={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const c={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTaskV1`.");const c={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");const c={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},listAuthentications({itemsPerPage:e,page:r,type:o,platform:i,sort:u,order:c}={},h=void 0){const d="/1/authentications",g={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),r!==void 0&&(P.page=r.toString()),o!==void 0&&(P.type=o.toString()),i!==void 0&&(P.platform=i.toString()),u!==void 0&&(P.sort=u.toString()),c!==void 0&&(P.order=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},listDestinations({itemsPerPage:e,page:r,type:o,authenticationID:i,transformationID:u,sort:c,order:h}={},d=void 0){const g="/1/destinations",P={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),r!==void 0&&(q.page=r.toString()),o!==void 0&&(q.type=o.toString()),i!==void 0&&(q.authenticationID=i.toString()),u!==void 0&&(q.transformationID=u.toString()),c!==void 0&&(q.sort=c.toString()),h!==void 0&&(q.order=h.toString());const E={method:"GET",path:g,queryParameters:q,headers:P};return n.request(E,d)},listEvents({runID:e,itemsPerPage:r,page:o,status:i,type:u,sort:c,order:h,startDate:d,endDate:g},P){if(!e)throw new Error("Parameter `runID` is required when calling `listEvents`.");const q="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),E={},w={};r!==void 0&&(w.itemsPerPage=r.toString()),o!==void 0&&(w.page=o.toString()),i!==void 0&&(w.status=i.toString()),u!==void 0&&(w.type=u.toString()),c!==void 0&&(w.sort=c.toString()),h!==void 0&&(w.order=h.toString()),d!==void 0&&(w.startDate=d.toString()),g!==void 0&&(w.endDate=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},listRuns({itemsPerPage:e,page:r,status:o,type:i,taskID:u,sort:c,order:h,startDate:d,endDate:g}={},P=void 0){const q="/1/runs",E={},w={};e!==void 0&&(w.itemsPerPage=e.toString()),r!==void 0&&(w.page=r.toString()),o!==void 0&&(w.status=o.toString()),i!==void 0&&(w.type=i.toString()),u!==void 0&&(w.taskID=u.toString()),c!==void 0&&(w.sort=c.toString()),h!==void 0&&(w.order=h.toString()),d!==void 0&&(w.startDate=d.toString()),g!==void 0&&(w.endDate=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},listSources({itemsPerPage:e,page:r,type:o,authenticationID:i,sort:u,order:c}={},h=void 0){const d="/1/sources",g={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),r!==void 0&&(P.page=r.toString()),o!==void 0&&(P.type=o.toString()),i!==void 0&&(P.authenticationID=i.toString()),u!==void 0&&(P.sort=u.toString()),c!==void 0&&(P.order=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},listTasks({itemsPerPage:e,page:r,action:o,enabled:i,sourceID:u,sourceType:c,destinationID:h,triggerType:d,withEmailNotifications:g,sort:P,order:q}={},E=void 0){const w="/2/tasks",_={},S={};e!==void 0&&(S.itemsPerPage=e.toString()),r!==void 0&&(S.page=r.toString()),o!==void 0&&(S.action=o.toString()),i!==void 0&&(S.enabled=i.toString()),u!==void 0&&(S.sourceID=u.toString()),c!==void 0&&(S.sourceType=c.toString()),h!==void 0&&(S.destinationID=h.toString()),d!==void 0&&(S.triggerType=d.toString()),g!==void 0&&(S.withEmailNotifications=g.toString()),P!==void 0&&(S.sort=P.toString()),q!==void 0&&(S.order=q.toString());const b={method:"GET",path:w,queryParameters:S,headers:_};return n.request(b,E)},listTasksV1({itemsPerPage:e,page:r,action:o,enabled:i,sourceID:u,destinationID:c,triggerType:h,sort:d,order:g}={},P=void 0){const q="/1/tasks",E={},w={};e!==void 0&&(w.itemsPerPage=e.toString()),r!==void 0&&(w.page=r.toString()),o!==void 0&&(w.action=o.toString()),i!==void 0&&(w.enabled=i.toString()),u!==void 0&&(w.sourceID=u.toString()),c!==void 0&&(w.destinationID=c.toString()),h!==void 0&&(w.triggerType=h.toString()),d!==void 0&&(w.sort=d.toString()),g!==void 0&&(w.order=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},listTransformations({itemsPerPage:e,page:r,sort:o,order:i,type:u}={},c=void 0){const h="/1/transformations",d={},g={};e!==void 0&&(g.itemsPerPage=e.toString()),r!==void 0&&(g.page=r.toString()),o!==void 0&&(g.sort=o.toString()),i!==void 0&&(g.order=i.toString()),u!==void 0&&(g.type=u.toString());const P={method:"GET",path:h,queryParameters:g,headers:d};return n.request(P,c)},push({indexName:e,pushTaskPayload:r,watch:o,referenceIndexName:i},u){if(!e)throw new Error("Parameter `indexName` is required when calling `push`.");if(!r)throw new Error("Parameter `pushTaskPayload` is required when calling `push`.");if(!r.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!r.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `push`.");const c="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),h={},d={};o!==void 0&&(d.watch=o.toString()),i!==void 0&&(d.referenceIndexName=i.toString());const g={method:"POST",path:c,queryParameters:d,headers:h,data:r};return u={timeouts:{connect:18e4,read:18e4,write:18e4,...u?.timeouts}},n.request(g,u)},pushTask({taskID:e,pushTaskPayload:r,watch:o},i){if(!e)throw new Error("Parameter `taskID` is required when calling `pushTask`.");if(!r)throw new Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!r.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!r.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");const u="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.watch=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:r};return i={timeouts:{connect:18e4,read:18e4,write:18e4,...i?.timeouts}},n.request(d,i)},replaceTask({taskID:e,taskReplace:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `replaceTask`.");if(!r)throw new Error("Parameter `taskReplace` is required when calling `replaceTask`.");if(!r.destinationID)throw new Error("Parameter `taskReplace.destinationID` is required when calling `replaceTask`.");if(!r.action)throw new Error("Parameter `taskReplace.action` is required when calling `replaceTask`.");const h={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},runSource({sourceID:e,runSourcePayload:r},o){if(!e)throw new Error("Parameter `sourceID` is required when calling `runSource`.");const h={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return n.request(h,o)},runTask({taskID:e,runTaskPayload:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const h={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return n.request(h,o)},runTaskV1({taskID:e,runTaskPayload:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");const h={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return n.request(h,o)},searchAuthentications(e,r){if(!e)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");const c={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchDestinations(e,r){if(!e)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");const c={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchSources(e,r){if(!e)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");const c={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchTasks(e,r){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");const c={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchTasksV1(e,r){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");const c={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchTransformations(e,r){if(!e)throw new Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!e.transformationIDs)throw new Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");const c={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},triggerDockerSourceDiscover({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const c={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},n.request(c,r)},tryTransformation(e,r){if(!e)throw new Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!e.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");const c={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return n.request(c,r)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:r},o){if(!e)throw new Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!r)throw new Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!r.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");const h={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateAuthentication({authenticationID:e,authenticationUpdate:r},o){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!r)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const h={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateDestination({destinationID:e,destinationUpdate:r},o){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!r)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const h={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateSource({sourceID:e,sourceUpdate:r},o){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const h={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateTask({taskID:e,taskUpdate:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const h={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateTaskV1({taskID:e,taskUpdate:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");const h={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateTransformation({transformationID:e,transformationCreate:r},o){if(!e)throw new Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!r)throw new Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!r.name)throw new Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");const h={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},validateSource(e,r=void 0){const c={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},n.request(c,r)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:r},o){if(!e)throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");const h={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return o={timeouts:{connect:18e4,read:18e4,write:18e4,...o?.timeouts}},n.request(h,o)}}}function nr(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(!s||s&&(typeof s!="string"||!cn.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${cn.join(", ")}`);return Ys({appId:t,apiKey:a,region:s,timeouts:{connect:25e3,read:25e3,write:25e3},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${wr}-${t}`}),U()]}),...l})}const Xs=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:wr,ingestionClient:nr,isOnDemandTrigger:Ws,isScheduleTrigger:Vs,isSubscriptionTrigger:Qs},Symbol.toStringTag,{value:"Module"}));var Er="1.41.0";function Js(){return[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}]}function Zs({appId:t,apiKey:a,authMode:s,algoliaAgents:l,...m}){const f=ge(t,a,s),p=qe({hosts:Js(),...m,algoliaAgent:Pe({algoliaAgents:l,client:"Monitoring",version:Er}),baseHeaders:{"content-type":"text/plain",...f.headers(),...m.baseHeaders},baseQueryParameters:{...f.queryParameters(),...m.baseQueryParameters}});return{transporter:p,appId:t,apiKey:a,clearCache(){return Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>{})},get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(n,e){p.algoliaAgent.add({segment:n,version:e})},setClientApiKey({apiKey:n}){!s||s==="WithinHeaders"?p.baseHeaders["x-algolia-api-key"]=n:p.baseQueryParameters["x-algolia-api-key"]=n},customDelete({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const c={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customGet({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const c={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customPost({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const h={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},customPut({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const h={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},getClusterIncidents({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getClusterIncidents`.");const u={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getClusterStatus({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getClusterStatus`.");const u={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getIncidents(n){const i={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return p.request(i,n)},getIndexingTime({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getIndexingTime`.");const u={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getLatency({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getLatency`.");const u={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getMetrics({metric:n,period:e},r){if(!n)throw new Error("Parameter `metric` is required when calling `getMetrics`.");if(!e)throw new Error("Parameter `period` is required when calling `getMetrics`.");const c={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getReachability({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getReachability`.");const u={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getServers(n){const i={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return p.request(i,n)},getStatus(n){const i={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return p.request(i,n)}}}function aa(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");return Zs({appId:t,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${Er}-${t}`}),U()]}),...s})}const eo=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Er,monitoringClient:aa},Symbol.toStringTag,{value:"Module"}));var Tr="5.41.0";function to(t){return[{url:`${t}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${t}.algolia.net`,accept:"write",protocol:"https"}].concat(Qn([{url:`${t}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function ro({appId:t,apiKey:a,authMode:s,algoliaAgents:l,...m}){const f=ge(t,a,s),p=qe({hosts:to(t),...m,algoliaAgent:Pe({algoliaAgents:l,client:"Recommend",version:Tr}),baseHeaders:{"content-type":"text/plain",...f.headers(),...m.baseHeaders},baseQueryParameters:{...f.queryParameters(),...m.baseQueryParameters}});return{transporter:p,appId:t,apiKey:a,clearCache(){return Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>{})},get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(n,e){p.algoliaAgent.add({segment:n,version:e})},setClientApiKey({apiKey:n}){!s||s==="WithinHeaders"?p.baseHeaders["x-algolia-api-key"]=n:p.baseQueryParameters["x-algolia-api-key"]=n},batchRecommendRules({indexName:n,model:e,recommendRule:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `batchRecommendRules`.");if(!e)throw new Error("Parameter `model` is required when calling `batchRecommendRules`.");const h={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return p.request(h,o)},customDelete({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const c={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customGet({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const c={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customPost({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const h={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},customPut({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const h={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},deleteRecommendRule({indexName:n,model:e,objectID:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteRecommendRule`.");if(!e)throw new Error("Parameter `model` is required when calling `deleteRecommendRule`.");if(!r)throw new Error("Parameter `objectID` is required when calling `deleteRecommendRule`.");const h={method:"DELETE",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return p.request(h,o)},getRecommendRule({indexName:n,model:e,objectID:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `getRecommendRule`.");if(!e)throw new Error("Parameter `model` is required when calling `getRecommendRule`.");if(!r)throw new Error("Parameter `objectID` is required when calling `getRecommendRule`.");const h={method:"GET",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return p.request(h,o)},getRecommendStatus({indexName:n,model:e,taskID:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `getRecommendStatus`.");if(!e)throw new Error("Parameter `model` is required when calling `getRecommendStatus`.");if(!r)throw new Error("Parameter `taskID` is required when calling `getRecommendStatus`.");const h={method:"GET",path:"/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return p.request(h,o)},getRecommendations(n,e){if(n&&Array.isArray(n)&&(n={requests:n}),!n)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!n.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const u={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},searchRecommendRules({indexName:n,model:e,searchRecommendRulesParams:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `searchRecommendRules`.");if(!e)throw new Error("Parameter `model` is required when calling `searchRecommendRules`.");const h={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0};return p.request(h,o)}}}function sa(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");return ro({appId:t,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${Tr}-${t}`}),U()]}),...s})}const no=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Tr,recommendClient:sa},Symbol.toStringTag,{value:"Module"}));var oa=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,so=Object.getOwnPropertyNames,oo=Object.prototype.hasOwnProperty,ia=(t,a)=>{for(var s in a)oa(t,s,{get:a[s],enumerable:!0})},io=(t,a,s,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(let m of so(a))!oo.call(t,m)&&m!==s&&oa(t,m,{get:()=>a[m],enumerable:!(l=ao(a,m))||l.enumerable});return t},ue=(t,a,s)=>(io(t,a,"default"),s),ca={};ia(ca,{algoliasearch:()=>ar,apiClientVersion:()=>ot});var se={};ia(se,{apiClientVersion:()=>ot});ue(se,As);ue(se,Is);ue(se,xs);ue(se,Ns);ue(se,js);ue(se,Gs);ue(se,zs);ue(se,Xs);ue(se,eo);ue(se,no);ue(ca,se);function ar(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");const l=na(t,a,s);let m;if(s?.transformation){if(!s.transformation.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");m=nr(t,a,s.transformation.region,s)}return{...l,async saveObjectsWithTransformation({indexName:f,objects:p,waitForTasks:n},e){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!s?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");return m.chunkedPush({indexName:f,objects:p,action:"addObject",waitForTasks:n},e)},async partialUpdateObjectsWithTransformation({indexName:f,objects:p,createIfNotExists:n,waitForTasks:e},r){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!s?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");return m.chunkedPush({indexName:f,objects:p,action:n?"partialUpdateObject":"partialUpdateObjectNoCreate",waitForTasks:e},r)},async replaceAllObjectsWithTransformation({indexName:f,objects:p,batchSize:n,scopes:e},r){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!s?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");const o=Math.floor(Math.random()*1e6)+1e5,i=`${f}_tmp_${o}`;e===void 0&&(e=["settings","rules","synonyms"]);try{let u=await this.operationIndex({indexName:f,operationIndexParams:{operation:"copy",destination:i,scope:e}},r);const c=await m.chunkedPush({indexName:i,objects:p,waitForTasks:!0,batchSize:n,referenceIndexName:f},r);await this.waitForTask({indexName:i,taskID:u.taskID}),u=await this.operationIndex({indexName:f,operationIndexParams:{operation:"copy",destination:i,scope:e}},r),await this.waitForTask({indexName:i,taskID:u.taskID});const h=await this.operationIndex({indexName:i,operationIndexParams:{operation:"move",destination:f}},r);return await this.waitForTask({indexName:i,taskID:h.taskID}),{copyOperationResponse:u,watchResponses:c,moveOperationResponse:h}}catch(u){throw await this.deleteIndex({indexName:i}),u}},get _ua(){return l.transporter.algoliaAgent.value},initAbtesting:f=>Jn(f.appId||t,f.apiKey||a,f.region,f.options),initAbtestingV3:f=>Xn(f.appId||t,f.apiKey||a,f.region,f.options),initAnalytics:f=>Zn(f.appId||t,f.apiKey||a,f.region,f.options),initIngestion:f=>nr(f.appId||t,f.apiKey||a,f.region,f.options),initInsights:f=>ea(f.appId||t,f.apiKey||a,f.region,f.options),initMonitoring:(f={})=>aa(f.appId||t,f.apiKey||a,f.options),initPersonalization:f=>ta(f.appId||t,f.apiKey||a,f.region,f.options),initQuerySuggestions:f=>ra(f.appId||t,f.apiKey||a,f.region,f.options),initRecommend:(f={})=>sa(f.appId||t,f.apiKey||a,f.options)}}const un=ir("ALGOLIA_APP_ID")||"",ln=ir("ALGOLIA_API_KEY")||"",hn=ir("ALGOLIA_BLOG_INDEX")||"decentraland-blog",co=Aa.injectEndpoints({endpoints:t=>({searchBlogPosts:t.query({queryFn:async({query:a,hitsPerPage:s=10,page:l=0})=>{try{if(a.length<3)return{data:{results:[],total:0,hasMore:!1}};const f=await ar(un,ln).searchSingleIndex({indexName:hn,searchParams:{query:a,hitsPerPage:s,page:l}}),p=f.hits||[];return{data:{results:await Promise.all(p.map(async e=>{const o=e.imageObject?.sys?.id||"",u=e.categoryObject?.sys?.id||"",[c,h]=await Promise.all([Yr(o),Xr(u)]);return{url:`/blog/${h}/${e.id}`,image:c,title:e._highlightResult?.title?.value||e.title,description:e._highlightResult?.description?.value||e.description}})),total:f.nbHits||0,hasMore:(l+1)*s<(f.nbHits||0)}}}catch(m){return{error:{status:"CUSTOM_ERROR",error:m instanceof Error?m.message:"Unknown error"}}}},providesTags:(a,s,l)=>[{type:"SearchResults",id:l.query}]}),searchBlog:t.query({queryFn:async({query:a,hitsPerPage:s=10,page:l=0})=>{try{if(a.length<3)return{data:[]};const p=(await ar(un,ln).searchSingleIndex({indexName:hn,searchParams:{query:a,hitsPerPage:s,page:l}})).hits||[];return{data:await Promise.all(p.map(async e=>{const o=e.imageObject?.sys?.id||"",u=e.categoryObject?.sys?.id||"",[c,h]=await Promise.all([Yr(o),Xr(u)]);return{id:e.id,categoryId:h,url:`/blog/${h}/${e.id}`,image:c,highlightedTitle:e._highlightResult?.title?.value||e.title,highlightedDescription:e._highlightResult?.description?.value||e.description}}))}}catch(m){return{error:{status:"CUSTOM_ERROR",error:m instanceof Error?m.message:"Unknown error"}}}},providesTags:(a,s,l)=>[{type:"SearchResults",id:l.query}]})}),overrideExisting:!1}),{useSearchBlogPostsQuery:pi,useSearchBlogQuery:uo}=co;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:ua,setPrototypeOf:dn,isFrozen:lo,getPrototypeOf:ho,getOwnPropertyDescriptor:mo}=Object;let{freeze:X,seal:ae,create:la}=Object,{apply:sr,construct:or}=typeof Reflect<"u"&&Reflect;X||(X=function(a){return a});ae||(ae=function(a){return a});sr||(sr=function(a,s,l){return a.apply(s,l)});or||(or=function(a,s){return new a(...s)});const qt=J(Array.prototype.forEach),fo=J(Array.prototype.lastIndexOf),mn=J(Array.prototype.pop),et=J(Array.prototype.push),po=J(Array.prototype.splice),vt=J(String.prototype.toLowerCase),Ft=J(String.prototype.toString),fn=J(String.prototype.match),tt=J(String.prototype.replace),go=J(String.prototype.indexOf),Po=J(String.prototype.trim),oe=J(Object.prototype.hasOwnProperty),Y=J(RegExp.prototype.test),rt=yo(TypeError);function J(t){return function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),m=1;m<s;m++)l[m-1]=arguments[m];return sr(t,a,l)}}function yo(t){return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return or(t,s)}}function k(t,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vt;dn&&dn(t,null);let l=a.length;for(;l--;){let m=a[l];if(typeof m=="string"){const f=s(m);f!==m&&(lo(a)||(a[l]=f),m=f)}t[m]=!0}return t}function qo(t){for(let a=0;a<t.length;a++)oe(t,a)||(t[a]=null);return t}function Ie(t){const a=la(null);for(const[s,l]of ua(t))oe(t,s)&&(Array.isArray(l)?a[s]=qo(l):l&&typeof l=="object"&&l.constructor===Object?a[s]=Ie(l):a[s]=l);return a}function nt(t,a){for(;t!==null;){const l=mo(t,a);if(l){if(l.get)return J(l.get);if(typeof l.value=="function")return J(l.value)}t=ho(t)}function s(){return null}return s}const pn=X(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wt=X(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vt=X(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wo=X(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qt=X(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Eo=X(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gn=X(["#text"]),Pn=X(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Yt=X(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yn=X(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wt=X(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),To=ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),So=ae(/<%[\w\W]*|[\w\W]*%>/gm),vo=ae(/\$\{[\w\W]*/gm),bo=ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),_o=ae(/^aria-[\-\w]+$/),ha=ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ao=ae(/^(?:\w+script|data):/i),Co=ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),da=ae(/^html$/i),Oo=ae(/^[a-z][.\w]*(-[.\w]+)+$/i);var qn=Object.freeze({__proto__:null,ARIA_ATTR:_o,ATTR_WHITESPACE:Co,CUSTOM_ELEMENT:Oo,DATA_ATTR:bo,DOCTYPE_NAME:da,ERB_EXPR:So,IS_ALLOWED_URI:ha,IS_SCRIPT_OR_DATA:Ao,MUSTACHE_EXPR:To,TMPLIT_EXPR:vo});const at={element:1,text:3,progressingInstruction:7,comment:8,document:9},Io=function(){return typeof window>"u"?null:window},Ro=function(a,s){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const m="data-tt-policy-suffix";s&&s.hasAttribute(m)&&(l=s.getAttribute(m));const f="dompurify"+(l?"#"+l:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},wn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ma(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Io();const a=I=>ma(I);if(a.version="3.2.4",a.removed=[],!t||!t.document||t.document.nodeType!==at.document||!t.Element)return a.isSupported=!1,a;let{document:s}=t;const l=s,m=l.currentScript,{DocumentFragment:f,HTMLTemplateElement:p,Node:n,Element:e,NodeFilter:r,NamedNodeMap:o=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:i,DOMParser:u,trustedTypes:c}=t,h=e.prototype,d=nt(h,"cloneNode"),g=nt(h,"remove"),P=nt(h,"nextSibling"),q=nt(h,"childNodes"),E=nt(h,"parentNode");if(typeof p=="function"){const I=s.createElement("template");I.content&&I.content.ownerDocument&&(s=I.content.ownerDocument)}let w,_="";const{implementation:S,createNodeIterator:b,createDocumentFragment:O,getElementsByTagName:R}=s,{importNode:W}=l;let T=wn();a.isSupported=typeof ua=="function"&&typeof E=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:D,TMPLIT_EXPR:N,DATA_ATTR:x,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:Te}=qn;let{IS_ALLOWED_URI:Z}=qn,H=null;const Fe=k({},[...pn,...Wt,...Vt,...Qt,...gn]);let $=null;const it=k({},[...Pn,...Yt,...yn,...wt]);let M=Object.seal(la(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Se=null,Sr=!0,Ot=!0,vr=!1,br=!0,De=!1,It=!0,Ce=!1,Rt=!1,Dt=!1,xe=!1,ct=!1,ut=!1,_r=!0,Ar=!1;const fa="user-content-";let xt=!0,We=!1,Le={},ke=null;const Cr=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Or=null;const Ir=k({},["audio","video","img","source","image","track"]);let Lt=null;const Rr=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ne=we,kt=!1,Nt=null;const pa=k({},[lt,ht,we],Ft);let dt=k({},["mi","mo","mn","ms","mtext"]),mt=k({},["annotation-xml"]);const ga=k({},["title","style","font","a","script"]);let Ve=null;const Pa=["application/xhtml+xml","text/html"],ya="text/html";let K=null,Ue=null;const qa=s.createElement("form"),Dr=function(y){return y instanceof RegExp||y instanceof Function},Ut=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ue&&Ue===y)){if((!y||typeof y!="object")&&(y={}),y=Ie(y),Ve=Pa.indexOf(y.PARSER_MEDIA_TYPE)===-1?ya:y.PARSER_MEDIA_TYPE,K=Ve==="application/xhtml+xml"?Ft:vt,H=oe(y,"ALLOWED_TAGS")?k({},y.ALLOWED_TAGS,K):Fe,$=oe(y,"ALLOWED_ATTR")?k({},y.ALLOWED_ATTR,K):it,Nt=oe(y,"ALLOWED_NAMESPACES")?k({},y.ALLOWED_NAMESPACES,Ft):pa,Lt=oe(y,"ADD_URI_SAFE_ATTR")?k(Ie(Rr),y.ADD_URI_SAFE_ATTR,K):Rr,Or=oe(y,"ADD_DATA_URI_TAGS")?k(Ie(Ir),y.ADD_DATA_URI_TAGS,K):Ir,ke=oe(y,"FORBID_CONTENTS")?k({},y.FORBID_CONTENTS,K):Cr,Ae=oe(y,"FORBID_TAGS")?k({},y.FORBID_TAGS,K):{},Se=oe(y,"FORBID_ATTR")?k({},y.FORBID_ATTR,K):{},Le=oe(y,"USE_PROFILES")?y.USE_PROFILES:!1,Sr=y.ALLOW_ARIA_ATTR!==!1,Ot=y.ALLOW_DATA_ATTR!==!1,vr=y.ALLOW_UNKNOWN_PROTOCOLS||!1,br=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=y.SAFE_FOR_TEMPLATES||!1,It=y.SAFE_FOR_XML!==!1,Ce=y.WHOLE_DOCUMENT||!1,xe=y.RETURN_DOM||!1,ct=y.RETURN_DOM_FRAGMENT||!1,ut=y.RETURN_TRUSTED_TYPE||!1,Dt=y.FORCE_BODY||!1,_r=y.SANITIZE_DOM!==!1,Ar=y.SANITIZE_NAMED_PROPS||!1,xt=y.KEEP_CONTENT!==!1,We=y.IN_PLACE||!1,Z=y.ALLOWED_URI_REGEXP||ha,Ne=y.NAMESPACE||we,dt=y.MATHML_TEXT_INTEGRATION_POINTS||dt,mt=y.HTML_INTEGRATION_POINTS||mt,M=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Dr(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Dr(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ot=!1),ct&&(xe=!0),Le&&(H=k({},gn),$=[],Le.html===!0&&(k(H,pn),k($,Pn)),Le.svg===!0&&(k(H,Wt),k($,Yt),k($,wt)),Le.svgFilters===!0&&(k(H,Vt),k($,Yt),k($,wt)),Le.mathMl===!0&&(k(H,Qt),k($,yn),k($,wt))),y.ADD_TAGS&&(H===Fe&&(H=Ie(H)),k(H,y.ADD_TAGS,K)),y.ADD_ATTR&&($===it&&($=Ie($)),k($,y.ADD_ATTR,K)),y.ADD_URI_SAFE_ATTR&&k(Lt,y.ADD_URI_SAFE_ATTR,K),y.FORBID_CONTENTS&&(ke===Cr&&(ke=Ie(ke)),k(ke,y.FORBID_CONTENTS,K)),xt&&(H["#text"]=!0),Ce&&k(H,["html","head","body"]),H.table&&(k(H,["tbody"]),delete Ae.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw rt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=y.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else w===void 0&&(w=Ro(c,m)),w!==null&&typeof _=="string"&&(_=w.createHTML(""));X&&X(y),Ue=y}},xr=k({},[...Wt,...Vt,...wo]),Lr=k({},[...Qt,...Eo]),wa=function(y){let v=E(y);(!v||!v.tagName)&&(v={namespaceURI:Ne,tagName:"template"});const C=vt(y.tagName),j=vt(v.tagName);return Nt[y.namespaceURI]?y.namespaceURI===ht?v.namespaceURI===we?C==="svg":v.namespaceURI===lt?C==="svg"&&(j==="annotation-xml"||dt[j]):!!xr[C]:y.namespaceURI===lt?v.namespaceURI===we?C==="math":v.namespaceURI===ht?C==="math"&&mt[j]:!!Lr[C]:y.namespaceURI===we?v.namespaceURI===ht&&!mt[j]||v.namespaceURI===lt&&!dt[j]?!1:!Lr[C]&&(ga[C]||!xr[C]):!!(Ve==="application/xhtml+xml"&&Nt[y.namespaceURI]):!1},he=function(y){et(a.removed,{element:y});try{E(y).removeChild(y)}catch{g(y)}},ft=function(y,v){try{et(a.removed,{attribute:v.getAttributeNode(y),from:v})}catch{et(a.removed,{attribute:null,from:v})}if(v.removeAttribute(y),y==="is")if(xe||ct)try{he(v)}catch{}else try{v.setAttribute(y,"")}catch{}},kr=function(y){let v=null,C=null;if(Dt)y="<remove></remove>"+y;else{const F=fn(y,/^[\r\n\t ]+/);C=F&&F[0]}Ve==="application/xhtml+xml"&&Ne===we&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const j=w?w.createHTML(y):y;if(Ne===we)try{v=new u().parseFromString(j,Ve)}catch{}if(!v||!v.documentElement){v=S.createDocument(Ne,"template",null);try{v.documentElement.innerHTML=kt?_:j}catch{}}const V=v.body||v.documentElement;return y&&C&&V.insertBefore(s.createTextNode(C),V.childNodes[0]||null),Ne===we?R.call(v,Ce?"html":"body")[0]:Ce?v.documentElement:V},Nr=function(y){return b.call(y.ownerDocument||y,y,r.SHOW_ELEMENT|r.SHOW_COMMENT|r.SHOW_TEXT|r.SHOW_PROCESSING_INSTRUCTION|r.SHOW_CDATA_SECTION,null)},Bt=function(y){return y instanceof i&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof o)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},Ur=function(y){return typeof n=="function"&&y instanceof n};function Ee(I,y,v){qt(I,C=>{C.call(a,y,v,Ue)})}const Br=function(y){let v=null;if(Ee(T.beforeSanitizeElements,y,null),Bt(y))return he(y),!0;const C=K(y.nodeName);if(Ee(T.uponSanitizeElement,y,{tagName:C,allowedTags:H}),y.hasChildNodes()&&!Ur(y.firstElementChild)&&Y(/<[/\w]/g,y.innerHTML)&&Y(/<[/\w]/g,y.textContent)||y.nodeType===at.progressingInstruction||It&&y.nodeType===at.comment&&Y(/<[/\w]/g,y.data))return he(y),!0;if(!H[C]||Ae[C]){if(!Ae[C]&&Mr(C)&&(M.tagNameCheck instanceof RegExp&&Y(M.tagNameCheck,C)||M.tagNameCheck instanceof Function&&M.tagNameCheck(C)))return!1;if(xt&&!ke[C]){const j=E(y)||y.parentNode,V=q(y)||y.childNodes;if(V&&j){const F=V.length;for(let ee=F-1;ee>=0;--ee){const de=d(V[ee],!0);de.__removalCount=(y.__removalCount||0)+1,j.insertBefore(de,P(y))}}}return he(y),!0}return y instanceof e&&!wa(y)||(C==="noscript"||C==="noembed"||C==="noframes")&&Y(/<\/no(script|embed|frames)/i,y.innerHTML)?(he(y),!0):(De&&y.nodeType===at.text&&(v=y.textContent,qt([A,D,N],j=>{v=tt(v,j," ")}),y.textContent!==v&&(et(a.removed,{element:y.cloneNode()}),y.textContent=v)),Ee(T.afterSanitizeElements,y,null),!1)},jr=function(y,v,C){if(_r&&(v==="id"||v==="name")&&(C in s||C in qa))return!1;if(!(Ot&&!Se[v]&&Y(x,v))){if(!(Sr&&Y(z,v))){if(!$[v]||Se[v]){if(!(Mr(y)&&(M.tagNameCheck instanceof RegExp&&Y(M.tagNameCheck,y)||M.tagNameCheck instanceof Function&&M.tagNameCheck(y))&&(M.attributeNameCheck instanceof RegExp&&Y(M.attributeNameCheck,v)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(v))||v==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&Y(M.tagNameCheck,C)||M.tagNameCheck instanceof Function&&M.tagNameCheck(C))))return!1}else if(!Lt[v]){if(!Y(Z,tt(C,le,""))){if(!((v==="src"||v==="xlink:href"||v==="href")&&y!=="script"&&go(C,"data:")===0&&Or[y])){if(!(vr&&!Y(re,tt(C,le,"")))){if(C)return!1}}}}}}return!0},Mr=function(y){return y!=="annotation-xml"&&fn(y,Te)},Hr=function(y){Ee(T.beforeSanitizeAttributes,y,null);const{attributes:v}=y;if(!v||Bt(y))return;const C={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let j=v.length;for(;j--;){const V=v[j],{name:F,namespaceURI:ee,value:de}=V,Qe=K(F);let Q=F==="value"?de:Po(de);if(C.attrName=Qe,C.attrValue=Q,C.keepAttr=!0,C.forceKeepAttr=void 0,Ee(T.uponSanitizeAttribute,y,C),Q=C.attrValue,Ar&&(Qe==="id"||Qe==="name")&&(ft(F,y),Q=fa+Q),It&&Y(/((--!?|])>)|<\/(style|title)/i,Q)){ft(F,y);continue}if(C.forceKeepAttr||(ft(F,y),!C.keepAttr))continue;if(!br&&Y(/\/>/i,Q)){ft(F,y);continue}De&&qt([A,D,N],$r=>{Q=tt(Q,$r," ")});const Gr=K(y.nodeName);if(jr(Gr,Qe,Q)){if(w&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!ee)switch(c.getAttributeType(Gr,Qe)){case"TrustedHTML":{Q=w.createHTML(Q);break}case"TrustedScriptURL":{Q=w.createScriptURL(Q);break}}try{ee?y.setAttributeNS(ee,F,Q):y.setAttribute(F,Q),Bt(y)?he(y):mn(a.removed)}catch{}}}Ee(T.afterSanitizeAttributes,y,null)},Ea=function I(y){let v=null;const C=Nr(y);for(Ee(T.beforeSanitizeShadowDOM,y,null);v=C.nextNode();)Ee(T.uponSanitizeShadowNode,v,null),Br(v),Hr(v),v.content instanceof f&&I(v.content);Ee(T.afterSanitizeShadowDOM,y,null)};return a.sanitize=function(I){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=null,C=null,j=null,V=null;if(kt=!I,kt&&(I="<!-->"),typeof I!="string"&&!Ur(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw rt("dirty is not a string, aborting")}else throw rt("toString is not a function");if(!a.isSupported)return I;if(Rt||Ut(y),a.removed=[],typeof I=="string"&&(We=!1),We){if(I.nodeName){const de=K(I.nodeName);if(!H[de]||Ae[de])throw rt("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof n)v=kr("<!---->"),C=v.ownerDocument.importNode(I,!0),C.nodeType===at.element&&C.nodeName==="BODY"||C.nodeName==="HTML"?v=C:v.appendChild(C);else{if(!xe&&!De&&!Ce&&I.indexOf("<")===-1)return w&&ut?w.createHTML(I):I;if(v=kr(I),!v)return xe?null:ut?_:""}v&&Dt&&he(v.firstChild);const F=Nr(We?I:v);for(;j=F.nextNode();)Br(j),Hr(j),j.content instanceof f&&Ea(j.content);if(We)return I;if(xe){if(ct)for(V=O.call(v.ownerDocument);v.firstChild;)V.appendChild(v.firstChild);else V=v;return($.shadowroot||$.shadowrootmode)&&(V=W.call(l,V,!0)),V}let ee=Ce?v.outerHTML:v.innerHTML;return Ce&&H["!doctype"]&&v.ownerDocument&&v.ownerDocument.doctype&&v.ownerDocument.doctype.name&&Y(da,v.ownerDocument.doctype.name)&&(ee="<!DOCTYPE "+v.ownerDocument.doctype.name+`>
1
+ import{g as ir,s as B,a as G,aJ as _t,x as bn,j as L}from"./index-DUmIu2EK.js";import{d as cr,r as ie,R as _e,L as ur,e as Ta,u as Sa}from"./vendor-router-D_36sTKu.js";import"./vendor-ua-D7qqAxdq.js";import{c as va,a as ba,g as ve,b as jt,s as _a,d as Aa}from"./store-OyTPwmKI.js";var _n={},ze={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return a}});var a=function(s){return s.DOCUMENT="document",s.PARAGRAPH="paragraph",s.HEADING_1="heading-1",s.HEADING_2="heading-2",s.HEADING_3="heading-3",s.HEADING_4="heading-4",s.HEADING_5="heading-5",s.HEADING_6="heading-6",s.OL_LIST="ordered-list",s.UL_LIST="unordered-list",s.LIST_ITEM="list-item",s.HR="hr",s.QUOTE="blockquote",s.EMBEDDED_ENTRY="embedded-entry-block",s.EMBEDDED_ASSET="embedded-asset-block",s.EMBEDDED_RESOURCE="embedded-resource-block",s.TABLE="table",s.TABLE_ROW="table-row",s.TABLE_CELL="table-cell",s.TABLE_HEADER_CELL="table-header-cell",s}({})})(ze);var st={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return a}});var a=function(s){return s.ASSET_HYPERLINK="asset-hyperlink",s.EMBEDDED_ENTRY="embedded-entry-inline",s.EMBEDDED_RESOURCE="embedded-resource-inline",s.ENTRY_HYPERLINK="entry-hyperlink",s.HYPERLINK="hyperlink",s.RESOURCE_HYPERLINK="resource-hyperlink",s}({})})(st);var lr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return a}});var a=function(s){return s.BOLD="bold",s.ITALIC="italic",s.UNDERLINE="underline",s.CODE="code",s.SUPERSCRIPT="superscript",s.SUBSCRIPT="subscript",s.STRIKETHROUGH="strikethrough",s}({})})(lr);var hr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(S,b){for(var O in b)Object.defineProperty(S,O,{enumerable:!0,get:Object.getOwnPropertyDescriptor(b,O).get})}a(t,{get CONTAINERS(){return P},get HEADINGS(){return q},get LIST_ITEM_BLOCKS(){return c},get TABLE_BLOCKS(){return h},get TEXT_CONTAINERS(){return E},get TOP_LEVEL_BLOCKS(){return u},get V1_MARKS(){return _},get V1_NODE_TYPES(){return w},get VOID_BLOCKS(){return d}});var s=ze,l=st,m=lr;function f(S,b){(b==null||b>S.length)&&(b=S.length);for(var O=0,R=new Array(b);O<b;O++)R[O]=S[O];return R}function p(S){if(Array.isArray(S))return f(S)}function n(S,b,O){return b in S?Object.defineProperty(S,b,{value:O,enumerable:!0,configurable:!0,writable:!0}):S[b]=O,S}function e(S){if(typeof Symbol<"u"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(S){return p(S)||e(S)||i(S)||r()}function i(S,b){if(S){if(typeof S=="string")return f(S,b);var O=Object.prototype.toString.call(S).slice(8,-1);if(O==="Object"&&S.constructor&&(O=S.constructor.name),O==="Map"||O==="Set")return Array.from(O);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return f(S,b)}}var u=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE,s.BLOCKS.TABLE],c=[s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],h=[s.BLOCKS.TABLE,s.BLOCKS.TABLE_ROW,s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL],d=[s.BLOCKS.HR,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,s.BLOCKS.EMBEDDED_RESOURCE],g,P=(g={},n(g,s.BLOCKS.OL_LIST,[s.BLOCKS.LIST_ITEM]),n(g,s.BLOCKS.UL_LIST,[s.BLOCKS.LIST_ITEM]),n(g,s.BLOCKS.LIST_ITEM,c),n(g,s.BLOCKS.QUOTE,[s.BLOCKS.PARAGRAPH]),n(g,s.BLOCKS.TABLE,[s.BLOCKS.TABLE_ROW]),n(g,s.BLOCKS.TABLE_ROW,[s.BLOCKS.TABLE_CELL,s.BLOCKS.TABLE_HEADER_CELL]),n(g,s.BLOCKS.TABLE_CELL,[s.BLOCKS.PARAGRAPH,s.BLOCKS.UL_LIST,s.BLOCKS.OL_LIST]),n(g,s.BLOCKS.TABLE_HEADER_CELL,[s.BLOCKS.PARAGRAPH]),g),q=[s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6],E=[s.BLOCKS.PARAGRAPH].concat(o(q)),w=[s.BLOCKS.DOCUMENT,s.BLOCKS.PARAGRAPH,s.BLOCKS.HEADING_1,s.BLOCKS.HEADING_2,s.BLOCKS.HEADING_3,s.BLOCKS.HEADING_4,s.BLOCKS.HEADING_5,s.BLOCKS.HEADING_6,s.BLOCKS.OL_LIST,s.BLOCKS.UL_LIST,s.BLOCKS.LIST_ITEM,s.BLOCKS.HR,s.BLOCKS.QUOTE,s.BLOCKS.EMBEDDED_ENTRY,s.BLOCKS.EMBEDDED_ASSET,l.INLINES.HYPERLINK,l.INLINES.ENTRY_HYPERLINK,l.INLINES.ASSET_HYPERLINK,l.INLINES.EMBEDDED_ENTRY,"text"],_=[m.MARKS.BOLD,m.MARKS.CODE,m.MARKS.ITALIC,m.MARKS.UNDERLINE]})(hr);var An={};Object.defineProperty(An,"__esModule",{value:!0});var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});var On={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return s}});var a=ze,s={nodeType:a.BLOCKS.DOCUMENT,data:{},content:[{nodeType:a.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}})(On);var In={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(P,q){for(var E in q)Object.defineProperty(P,E,{enumerable:!0,get:Object.getOwnPropertyDescriptor(q,E).get})}a(t,{get isBlock(){return i},get isEmptyParagraph(){return c},get isInline(){return o},get isText(){return u},get stripEmptyTrailingParagraphFromDocument(){return g}});var s=ze,l=st;function m(P,q,E){return q in P?Object.defineProperty(P,q,{value:E,enumerable:!0,configurable:!0,writable:!0}):P[q]=E,P}function f(P){for(var q=1;q<arguments.length;q++){var E=arguments[q]!=null?arguments[q]:{},w=Object.keys(E);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(E).filter(function(_){return Object.getOwnPropertyDescriptor(E,_).enumerable}))),w.forEach(function(_){m(P,_,E[_])})}return P}function p(P,q){var E=Object.keys(P);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(P);E.push.apply(E,w)}return E}function n(P,q){return q=q??{},Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(q)):p(Object(q)).forEach(function(E){Object.defineProperty(P,E,Object.getOwnPropertyDescriptor(q,E))}),P}function e(P){"@swc/helpers - typeof";return P&&typeof Symbol<"u"&&P.constructor===Symbol?"symbol":typeof P}function r(P,q){var E=!0,w=!1,_=void 0;try{for(var S=Object.keys(P)[Symbol.iterator](),b;!(E=(b=S.next()).done);E=!0){var O=b.value;if(q===P[O])return!0}}catch(R){w=!0,_=R}finally{try{!E&&S.return!=null&&S.return()}finally{if(w)throw _}}return!1}function o(P){return r(l.INLINES,P.nodeType)}function i(P){return r(s.BLOCKS,P.nodeType)}function u(P){return P.nodeType==="text"}function c(P){if(P.nodeType!==s.BLOCKS.PARAGRAPH||P.content.length!==1)return!1;var q=P.content[0];return q.nodeType==="text"&&q.value===""}function h(P){return P!=null&&(typeof P>"u"?"undefined":e(P))==="object"&&"content"in P&&Array.isArray(P.content)}var d=2;function g(P){if(!h(P)||P.content.length<d)return P;var q=P.content[P.content.length-1];return c(q)?n(f({},P),{content:P.content.slice(0,-1)}):P}})(In);var Rn={},At={},Ca=t=>{if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const a=Object.getPrototypeOf(t);return a===null||a===Object.prototype},Dn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(h,d){for(var g in d)Object.defineProperty(h,g,{enumerable:!0,get:Object.getOwnPropertyDescriptor(d,g).get})}a(t,{get enumError(){return i},get maxSizeError(){return o},get minSizeError(){return r},get requiredPropertyError(){return c},get typeMismatchError(){return e},get unknownPropertyError(){return u}});function s(h,d){(d==null||d>h.length)&&(d=h.length);for(var g=0,P=new Array(d);g<d;g++)P[g]=h[g];return P}function l(h){if(Array.isArray(h))return s(h)}function m(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(h){return l(h)||m(h)||n(h)||f()}function n(h,d){if(h){if(typeof h=="string")return s(h,d);var g=Object.prototype.toString.call(h).slice(8,-1);if(g==="Object"&&h.constructor&&(g=h.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return s(h,d)}}var e=function(h){var d=h.path,g=h.property,P=h.typeName,q=h.value;return{details:'The type of "'.concat(g,'" is incorrect, expected type: ').concat(P),name:"type",path:d.toArray(),type:P,value:q}},r=function(h){var d=h.min,g=h.value,P=h.path;return{name:"size",min:d,path:P.toArray(),details:"Size must be at least ".concat(d),value:g}},o=function(h){var d=h.max,g=h.value,P=h.path;return{name:"size",max:d,path:P.toArray(),details:"Size must be at most ".concat(d),value:g}},i=function(h){var d=h.expected,g=h.value,P=h.path;return{details:"Value must be one of expected values",name:"in",expected:p(d).sort(),path:P.toArray(),value:g}},u=function(h){var d=h.property,g=h.path;return{details:'The property "'.concat(d,'" is not expected'),name:"unexpected",path:g.toArray()}},c=function(h){var d=h.property,g=h.path;return{details:'The property "'.concat(d,'" is required here'),name:"required",path:g.toArray()}}})(Dn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ObjectAssertion",{enumerable:!0,get:function(){return h}});var a=r(Ca),s=Dn;function l(d,g){(g==null||g>d.length)&&(g=d.length);for(var P=0,q=new Array(g);P<g;P++)q[P]=d[P];return q}function m(d){if(Array.isArray(d))return l(d)}function f(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function p(d,g){for(var P=0;P<g.length;P++){var q=g[P];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}function n(d,g,P){return g&&p(d.prototype,g),d}function e(d,g,P){return g in d?Object.defineProperty(d,g,{value:P,enumerable:!0,configurable:!0,writable:!0}):d[g]=P,d}function r(d){return d&&d.__esModule?d:{default:d}}function o(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(d){return m(d)||o(d)||c(d)||i()}function c(d,g){if(d){if(typeof d=="string")return l(d,g);var P=Object.prototype.toString.call(d).slice(8,-1);if(P==="Object"&&d.constructor&&(P=d.constructor.name),P==="Map"||P==="Set")return Array.from(P);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return l(d,g)}}var h=function(){function d(g,P){var q=this,E=this;f(this,d),e(this,"obj",void 0),e(this,"path",void 0),e(this,"_errors",void 0),e(this,"catch",void 0),e(this,"exists",void 0),e(this,"object",void 0),e(this,"string",void 0),e(this,"number",void 0),e(this,"array",void 0),e(this,"enum",void 0),e(this,"empty",void 0),e(this,"minLength",void 0),e(this,"noAdditionalProperties",void 0),e(this,"each",void 0),this.obj=g,this.path=P,this._errors=[],this.catch=function(){for(var w=arguments.length,_=new Array(w),S=0;S<w;S++)_[S]=arguments[S];var b;(b=E._errors).push.apply(b,u(_))},this.exists=function(w){return w in q.obj?!0:(q.catch((0,s.requiredPropertyError)({property:w,path:q.path.of(w)})),!1)},this.object=function(w){var _=w?q.obj[w]:q.obj;if(w&&!q.exists(w))return!1;if((0,a.default)(_))return!0;var S=w?q.path.of(w):q.path,b,O=(b=w??q.path.last())!==null&&b!==void 0?b:"value";return q.catch((0,s.typeMismatchError)({typeName:"Object",property:O,path:S,value:_})),!1},this.string=function(w){var _=q.obj[w];return w&&!q.exists(w)?!1:typeof _=="string"?!0:(q.catch((0,s.typeMismatchError)({typeName:"String",property:w,path:q.path.of(w),value:_})),!1)},this.number=function(w,_){var S=q.obj[w];return _&&!(w in q.obj)?!0:q.exists(w)?typeof S=="number"&&!Number.isNaN(S)?!0:(q.catch((0,s.typeMismatchError)({typeName:"Number",property:w,path:q.path.of(w),value:S})),!1):!1},this.array=function(w){var _=q.obj[w];return w&&!q.exists(w)?!1:Array.isArray(_)?!0:(q.catch((0,s.typeMismatchError)({typeName:"Array",property:w,path:q.path.of(w),value:_})),!1)},this.enum=function(w,_){var S=q.obj[w];return typeof S=="string"&&_.includes(S)?!0:(q.catch((0,s.enumError)({expected:_,value:S,path:q.path.of(w)})),!1)},this.empty=function(w){if(!q.array(w))return!1;var _=q.obj[w];return _.length===0?!0:(q.catch((0,s.maxSizeError)({max:0,value:_,path:q.path.of(w)})),!1)},this.minLength=function(w,_){if(!q.array(w))return!1;var S=q.obj[w];return S.length>=_?!0:(q.catch((0,s.minSizeError)({min:_,value:S,path:q.path.of(w)})),!1)},this.noAdditionalProperties=function(w){var _=Object.keys(q.obj).sort().filter(function(S){return!w.includes(S)});return _.forEach(function(S){return q.catch((0,s.unknownPropertyError)({property:S,path:q.path.of(S)}))}),_.length===0},this.each=function(w,_){if(q.array(w)){var S=q.obj[w],b=!1;S.forEach(function(O,R){if(!b){var W=_(O,q.path.of(w).of(R));W.length>0&&(b=!0),q.catch.apply(q,u(W))}})}}}return n(d,[{key:"errors",get:function(){var P=this,q=function(E){return JSON.stringify({details:E.details,path:E.path})};return this._errors.filter(function(E,w){return P._errors.findIndex(function(_){return q(E)===q(_)})===w})}}]),d}()})(At);var xn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(T,A){for(var D in A)Object.defineProperty(T,D,{enumerable:!0,get:Object.getOwnPropertyDescriptor(A,D).get})}a(t,{get EntityLinkAssertion(){return b},get HyperLinkAssertion(){return O},get NodeAssertion(){return S},get VOID_CONTENT(){return _},get assert(){return R},get assertLink(){return W}});var s=At;function l(T,A){(A==null||A>T.length)&&(A=T.length);for(var D=0,N=new Array(A);D<A;D++)N[D]=T[D];return N}function m(T){if(Array.isArray(T))return l(T)}function f(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function p(T,A,D){return A=i(A),d(T,w()?Reflect.construct(A,D||[],i(T).constructor):A.apply(T,D))}function n(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function e(T,A){for(var D=0;D<A.length;D++){var N=A[D];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(T,N.key,N)}}function r(T,A,D){return A&&e(T.prototype,A),T}function o(T,A,D){return A in T?Object.defineProperty(T,A,{value:D,enumerable:!0,configurable:!0,writable:!0}):T[A]=D,T}function i(T){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},i(T)}function u(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),A&&g(T,A)}function c(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(T,A){return A&&(q(A)==="object"||typeof A=="function")?A:f(T)}function g(T,A){return g=Object.setPrototypeOf||function(N,x){return N.__proto__=x,N},g(T,A)}function P(T){return m(T)||c(T)||E(T)||h()}function q(T){"@swc/helpers - typeof";return T&&typeof Symbol<"u"&&T.constructor===Symbol?"symbol":typeof T}function E(T,A){if(T){if(typeof T=="string")return l(T,A);var D=Object.prototype.toString.call(T).slice(8,-1);if(D==="Object"&&T.constructor&&(D=T.constructor.name),D==="Map"||D==="Set")return Array.from(D);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return l(T,A)}}function w(){try{var T=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w=function(){return!!T})()}var _=[],S=function(){function T(A,D){n(this,T),o(this,"contentRule",void 0),o(this,"validateData",void 0),this.contentRule=A,this.validateData=D}return r(T,[{key:"assert",value:function(D,N){var x=new s.ObjectAssertion(D,N);if(!x.object())return x.errors;x.noAdditionalProperties(["nodeType","data","content"]);var z=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(D,N),re=z.nodeTypes,le=z.min,Te=le===void 0?0:le;if(re.length===0&&Te>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(Te," with no nodeTypes"));if(x.minLength("content",Te),re.length===0?x.empty("content"):x.each("content",function(M,Ae){var Se=new s.ObjectAssertion(M,Ae);return Se.object()&&Se.enum("nodeType",re),Se.errors}),x.object("data")){var Z,H,Fe,$,it=($=(H=(Fe=this).validateData)===null||H===void 0?void 0:H.call(Fe,D.data,N.of("data")))!==null&&$!==void 0?$:[];(Z=x).catch.apply(Z,P(it))}return x.errors}}]),T}(),b=function(T){u(A,T);function A(D,N){n(this,A);var x;return x=p(this,A,[N,function(z,re){return f(x).assertLink(z,re)}]),o(x,"linkType",void 0),o(x,"type",void 0),o(x,"assertLink",void 0),x.linkType=D,x.assertLink=function(z,re){var le=new s.ObjectAssertion(z,re);if(le.object("target")){var Te,Z=new s.ObjectAssertion(z.target.sys,re.of("target").of("sys"));Z.object()&&(Z.enum("type",[x.type]),Z.enum("linkType",[x.linkType]),x.type==="Link"?(Z.string("id"),Z.noAdditionalProperties(["type","linkType","id"])):x.type==="ResourceLink"&&(Z.string("urn"),Z.noAdditionalProperties(["type","linkType","urn"]))),(Te=le).catch.apply(Te,P(Z.errors))}return le.noAdditionalProperties(["target"]),le.errors},x.type=x.linkType.startsWith("Contentful:")?"ResourceLink":"Link",x}return A}(S),O=function(T){u(A,T);function A(){n(this,A);var D;return D=p(this,A,[["text"],function(N,x){return f(D).assertLink(N,x)}]),o(D,"assertLink",function(N,x){var z=new s.ObjectAssertion(N,x);return z.string("uri"),z.noAdditionalProperties(["uri"]),z.errors}),D}return A}(S),R=function(T,A){return new S(T,A)},W=function(T,A){return new b(T,A)}})(xn);var Ln={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return r}});function a(o,i){(i==null||i>o.length)&&(i=o.length);for(var u=0,c=new Array(i);u<i;u++)c[u]=o[u];return c}function s(o){if(Array.isArray(o))return a(o)}function l(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function m(o,i,u){return i in o?Object.defineProperty(o,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[i]=u,o}function f(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(o){return s(o)||f(o)||e(o)||p()}function e(o,i){if(o){if(typeof o=="string")return a(o,i);var u=Object.prototype.toString.call(o).slice(8,-1);if(u==="Object"&&o.constructor&&(u=o.constructor.name),u==="Map"||u==="Set")return Array.from(u);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(o,i)}}var r=function o(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l(this,o),m(this,"path",void 0),m(this,"of",void 0),m(this,"isRoot",void 0),m(this,"last",void 0),m(this,"toArray",void 0),this.path=u,this.of=function(c){return new o(n(i.path).concat([c]))},this.isRoot=function(){return i.path.length===0},this.last=function(){return i.path[i.path.length-1]},this.toArray=function(){return i.path}}})(Ln);var kn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assertText",{enumerable:!0,get:function(){return s}});var a=At;function s(l,m){var f=new a.ObjectAssertion(l,m);return f.object()&&(f.noAdditionalProperties(["nodeType","data","value","marks"]),f.object("data"),f.each("marks",function(p,n){var e=new a.ObjectAssertion(p,n);return e.object()&&e.string("type"),e.errors}),f.string("value")),f.errors}})(kn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"validateRichTextDocument",{enumerable:!0,get:function(){return S}});var a=ze,s=st,l=hr,m=At,f=xn,p=Ln,n=kn;function e(b,O){(O==null||O>b.length)&&(O=b.length);for(var R=0,W=new Array(O);R<O;R++)W[R]=b[R];return W}function r(b){if(Array.isArray(b))return e(b)}function o(b,O,R){return O in b?Object.defineProperty(b,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):b[O]=R,b}function i(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(b){return r(b)||i(b)||h(b)||u()}function h(b,O){if(b){if(typeof b=="string")return e(b,O);var R=Object.prototype.toString.call(b).slice(8,-1);if(R==="Object"&&b.constructor&&(R=b.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return e(b,O)}}var d=(0,f.assert)(c(Object.values(s.INLINES)).concat(["text"]).sort()),g=(0,f.assert)([a.BLOCKS.LIST_ITEM]),P=(0,f.assertLink)("Entry",f.VOID_CONTENT),q=(0,f.assert)(function(){return{nodeTypes:[a.BLOCKS.PARAGRAPH],min:1}},function(b,O){var R=new m.ObjectAssertion(b,O);return R.noAdditionalProperties(["colspan","rowspan"]),R.number("colspan",!0),R.number("rowspan",!0),R.errors}),E,w=(E={},o(E,a.BLOCKS.DOCUMENT,(0,f.assert)(l.TOP_LEVEL_BLOCKS)),o(E,a.BLOCKS.PARAGRAPH,d),o(E,a.BLOCKS.HEADING_1,d),o(E,a.BLOCKS.HEADING_2,d),o(E,a.BLOCKS.HEADING_3,d),o(E,a.BLOCKS.HEADING_4,d),o(E,a.BLOCKS.HEADING_5,d),o(E,a.BLOCKS.HEADING_6,d),o(E,a.BLOCKS.QUOTE,(0,f.assert)(l.CONTAINERS[a.BLOCKS.QUOTE])),o(E,a.BLOCKS.EMBEDDED_ENTRY,P),o(E,a.BLOCKS.EMBEDDED_ASSET,(0,f.assertLink)("Asset",f.VOID_CONTENT)),o(E,a.BLOCKS.EMBEDDED_RESOURCE,(0,f.assertLink)("Contentful:Entry",f.VOID_CONTENT)),o(E,a.BLOCKS.HR,(0,f.assert)(f.VOID_CONTENT)),o(E,a.BLOCKS.OL_LIST,g),o(E,a.BLOCKS.UL_LIST,g),o(E,a.BLOCKS.LIST_ITEM,(0,f.assert)(c(l.LIST_ITEM_BLOCKS).sort())),o(E,a.BLOCKS.TABLE,(0,f.assert)(function(){return{nodeTypes:[a.BLOCKS.TABLE_ROW],min:1}})),o(E,a.BLOCKS.TABLE_ROW,(0,f.assert)(function(){return{nodeTypes:[a.BLOCKS.TABLE_CELL,a.BLOCKS.TABLE_HEADER_CELL],min:1}})),o(E,a.BLOCKS.TABLE_CELL,q),o(E,a.BLOCKS.TABLE_HEADER_CELL,q),o(E,s.INLINES.HYPERLINK,new f.HyperLinkAssertion),o(E,s.INLINES.EMBEDDED_ENTRY,P),o(E,s.INLINES.EMBEDDED_RESOURCE,(0,f.assertLink)("Contentful:Entry",f.VOID_CONTENT)),o(E,s.INLINES.ENTRY_HYPERLINK,(0,f.assertLink)("Entry",["text"])),o(E,s.INLINES.ASSET_HYPERLINK,(0,f.assertLink)("Asset",["text"])),o(E,s.INLINES.RESOURCE_HYPERLINK,(0,f.assertLink)("Contentful:Entry",["text"])),E);function _(b,O){if(b.nodeType==="text")return(0,n.assertText)(b,O);var R=w[b.nodeType].assert(b,O);if(R.length>0)return R;var W=new m.ObjectAssertion(b,O);return W.each("content",function(T,A){return _(T,A)}),W.errors}var S=function(b){var O=new p.Path,R=new m.ObjectAssertion(b,O);return R.object()&&R.enum("nodeType",[a.BLOCKS.DOCUMENT]),R.errors.length>0?R.errors:_(b,O)}})(Rn);(function(t){Object.defineProperty(t,"__esModule",{value:!0});function a(i,u){for(var c in u)Object.defineProperty(i,c,{enumerable:!0,get:Object.getOwnPropertyDescriptor(u,c).get})}a(t,{get BLOCKS(){return s.BLOCKS},get EMPTY_DOCUMENT(){return f.EMPTY_DOCUMENT},get INLINES(){return l.INLINES},get MARKS(){return m.MARKS},get helpers(){return p},get validateRichTextDocument(){return n.validateRichTextDocument}});var s=ze,l=st,m=lr;e(hr,t),e(An,t),e(Cn,t);var f=On,p=o(In),n=Rn;function e(i,u){return Object.keys(i).forEach(function(c){c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:function(){return i[c]}})}),i}function r(i){if(typeof WeakMap!="function")return null;var u=new WeakMap,c=new WeakMap;return(r=function(h){return h?c:u})(i)}function o(i,u){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var c=r(u);if(c&&c.has(i))return c.get(i);var h={__proto__:null},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in i)if(g!=="default"&&Object.prototype.hasOwnProperty.call(i,g)){var P=d?Object.getOwnPropertyDescriptor(i,g):null;P&&(P.get||P.set)?Object.defineProperty(h,g,P):h[g]=i[g]}return h.default=i,c&&c.set(i,h),h}})(_n);var Oa=typeof Element<"u",Ia=typeof Map=="function",Ra=typeof Set=="function",Da=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Et(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var s,l,m;if(Array.isArray(t)){if(s=t.length,s!=a.length)return!1;for(l=s;l--!==0;)if(!Et(t[l],a[l]))return!1;return!0}var f;if(Ia&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(f=t.entries();!(l=f.next()).done;)if(!a.has(l.value[0]))return!1;for(f=t.entries();!(l=f.next()).done;)if(!Et(l.value[1],a.get(l.value[0])))return!1;return!0}if(Ra&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(f=t.entries();!(l=f.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(Da&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if(s=t.length,s!=a.length)return!1;for(l=s;l--!==0;)if(t[l]!==a[l])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof a.valueOf=="function")return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof a.toString=="function")return t.toString()===a.toString();if(m=Object.keys(t),s=m.length,s!==Object.keys(a).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(a,m[l]))return!1;if(Oa&&t instanceof Element)return!1;for(l=s;l--!==0;)if(!((m[l]==="_owner"||m[l]==="__v"||m[l]==="__o")&&t.$$typeof)&&!Et(t[m[l]],a[m[l]]))return!1;return!0}return t!==t&&a!==a}var xa=function(a,s){try{return Et(a,s)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}};const La=cr(xa);var ka=function(t,a,s,l,m,f,p,n){if(!t){var e;if(a===void 0)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var r=[s,l,m,f,p,n],o=0;e=new Error(a.replace(/%s/g,function(){return r[o++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}},Na=ka;const Kr=cr(Na);var Ua=function(a,s,l,m){var f=l?l.call(m,a,s):void 0;if(f!==void 0)return!!f;if(a===s)return!0;if(typeof a!="object"||!a||typeof s!="object"||!s)return!1;var p=Object.keys(a),n=Object.keys(s);if(p.length!==n.length)return!1;for(var e=Object.prototype.hasOwnProperty.bind(s),r=0;r<p.length;r++){var o=p[r];if(!e(o))return!1;var i=a[o],u=s[o];if(f=l?l.call(m,i,u,o):void 0,f===!1||f===void 0&&i!==u)return!1}return!0};const Ba=cr(Ua);var Nn=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Nn||{}),Mt={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},zr=Object.values(Nn),dr={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ja=Object.entries(dr).reduce((t,[a,s])=>(t[s]=a,t),{}),ce="data-rh",He={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ge=(t,a)=>{for(let s=t.length-1;s>=0;s-=1){const l=t[s];if(Object.prototype.hasOwnProperty.call(l,a))return l[a]}return null},Ma=t=>{let a=Ge(t,"title");const s=Ge(t,He.TITLE_TEMPLATE);if(Array.isArray(a)&&(a=a.join("")),s&&a)return s.replace(/%s/g,()=>a);const l=Ge(t,He.DEFAULT_TITLE);return a||l||void 0},Ha=t=>Ge(t,He.ON_CHANGE_CLIENT_STATE)||(()=>{}),Ht=(t,a)=>a.filter(s=>typeof s[t]<"u").map(s=>s[t]).reduce((s,l)=>({...s,...l}),{}),Ga=(t,a)=>a.filter(s=>typeof s.base<"u").map(s=>s.base).reverse().reduce((s,l)=>{if(!s.length){const m=Object.keys(l);for(let f=0;f<m.length;f+=1){const n=m[f].toLowerCase();if(t.indexOf(n)!==-1&&l[n])return s.concat(l)}}return s},[]),$a=t=>console&&typeof console.warn=="function"&&console.warn(t),Ye=(t,a,s)=>{const l={};return s.filter(m=>Array.isArray(m[t])?!0:(typeof m[t]<"u"&&$a(`Helmet: ${t} should be of type "Array". Instead found type "${typeof m[t]}"`),!1)).map(m=>m[t]).reverse().reduce((m,f)=>{const p={};f.filter(e=>{let r;const o=Object.keys(e);for(let u=0;u<o.length;u+=1){const c=o[u],h=c.toLowerCase();a.indexOf(h)!==-1&&!(r==="rel"&&e[r].toLowerCase()==="canonical")&&!(h==="rel"&&e[h].toLowerCase()==="stylesheet")&&(r=h),a.indexOf(c)!==-1&&(c==="innerHTML"||c==="cssText"||c==="itemprop")&&(r=c)}if(!r||!e[r])return!1;const i=e[r].toLowerCase();return l[r]||(l[r]={}),p[r]||(p[r]={}),l[r][i]?!1:(p[r][i]=!0,!0)}).reverse().forEach(e=>m.push(e));const n=Object.keys(p);for(let e=0;e<n.length;e+=1){const r=n[e],o={...l[r],...p[r]};l[r]=o}return m},[]).reverse()},Ka=(t,a)=>{if(Array.isArray(t)&&t.length){for(let s=0;s<t.length;s+=1)if(t[s][a])return!0}return!1},za=t=>({baseTag:Ga(["href"],t),bodyAttributes:Ht("bodyAttributes",t),defer:Ge(t,He.DEFER),encode:Ge(t,He.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ht("htmlAttributes",t),linkTags:Ye("link",["rel","href"],t),metaTags:Ye("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:Ye("noscript",["innerHTML"],t),onChangeClientState:Ha(t),scriptTags:Ye("script",["src","innerHTML"],t),styleTags:Ye("style",["cssText"],t),title:Ma(t),titleAttributes:Ht("titleAttributes",t),prioritizeSeoTags:Ka(t,He.PRIORITIZE_SEO_TAGS)}),Un=t=>Array.isArray(t)?t.join(""):t,Fa=(t,a)=>{const s=Object.keys(t);for(let l=0;l<s.length;l+=1)if(a[s[l]]&&a[s[l]].includes(t[s[l]]))return!0;return!1},Gt=(t,a)=>Array.isArray(t)?t.reduce((s,l)=>(Fa(l,a)?s.priority.push(l):s.default.push(l),s),{priority:[],default:[]}):{default:t,priority:[]},Fr=(t,a)=>({...t,[a]:void 0}),Wa=["noscript","script","style"],Jt=(t,a=!0)=>a===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Bn=t=>Object.keys(t).reduce((a,s)=>{const l=typeof t[s]<"u"?`${s}="${t[s]}"`:`${s}`;return a?`${a} ${l}`:l},""),Va=(t,a,s,l)=>{const m=Bn(s),f=Un(a);return m?`<${t} ${ce}="true" ${m}>${Jt(f,l)}</${t}>`:`<${t} ${ce}="true">${Jt(f,l)}</${t}>`},Qa=(t,a,s=!0)=>a.reduce((l,m)=>{const f=m,p=Object.keys(f).filter(r=>!(r==="innerHTML"||r==="cssText")).reduce((r,o)=>{const i=typeof f[o]>"u"?o:`${o}="${Jt(f[o],s)}"`;return r?`${r} ${i}`:i},""),n=f.innerHTML||f.cssText||"",e=Wa.indexOf(t)===-1;return`${l}<${t} ${ce}="true" ${p}${e?"/>":`>${n}</${t}>`}`},""),jn=(t,a={})=>Object.keys(t).reduce((s,l)=>{const m=dr[l];return s[m||l]=t[l],s},a),Ya=(t,a,s)=>{const l={key:a,[ce]:!0},m=jn(s,l);return[_e.createElement("title",m,a)]},Tt=(t,a)=>a.map((s,l)=>{const m={key:l,[ce]:!0};return Object.keys(s).forEach(f=>{const n=dr[f]||f;if(n==="innerHTML"||n==="cssText"){const e=s.innerHTML||s.cssText;m.dangerouslySetInnerHTML={__html:e}}else m[n]=s[f]}),_e.createElement(t,m)}),ne=(t,a,s=!0)=>{switch(t){case"title":return{toComponent:()=>Ya(t,a.title,a.titleAttributes),toString:()=>Va(t,a.title,a.titleAttributes,s)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>jn(a),toString:()=>Bn(a)};default:return{toComponent:()=>Tt(t,a),toString:()=>Qa(t,a,s)}}},Xa=({metaTags:t,linkTags:a,scriptTags:s,encode:l})=>{const m=Gt(t,Mt.meta),f=Gt(a,Mt.link),p=Gt(s,Mt.script);return{priorityMethods:{toComponent:()=>[...Tt("meta",m.priority),...Tt("link",f.priority),...Tt("script",p.priority)],toString:()=>`${ne("meta",m.priority,l)} ${ne("link",f.priority,l)} ${ne("script",p.priority,l)}`},metaTags:m.default,linkTags:f.default,scriptTags:p.default}},Ja=t=>{const{baseTag:a,bodyAttributes:s,encode:l=!0,htmlAttributes:m,noscriptTags:f,styleTags:p,title:n="",titleAttributes:e,prioritizeSeoTags:r}=t;let{linkTags:o,metaTags:i,scriptTags:u}=t,c={toComponent:()=>{},toString:()=>""};return r&&({priorityMethods:c,linkTags:o,metaTags:i,scriptTags:u}=Xa(t)),{priority:c,base:ne("base",a,l),bodyAttributes:ne("bodyAttributes",s,l),htmlAttributes:ne("htmlAttributes",m,l),link:ne("link",o,l),meta:ne("meta",i,l),noscript:ne("noscript",f,l),script:ne("script",u,l),style:ne("style",p,l),title:ne("title",{title:n,titleAttributes:e},l)}},Zt=Ja,pt=[],Mn=!!(typeof window<"u"&&window.document&&window.document.createElement),er=class{instances=[];canUseDOM=Mn;context;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?pt:this.instances,add:t=>{(this.canUseDOM?pt:this.instances).push(t)},remove:t=>{const a=(this.canUseDOM?pt:this.instances).indexOf(t);(this.canUseDOM?pt:this.instances).splice(a,1)}}};constructor(t,a){this.context=t,this.canUseDOM=a||!1,a||(t.helmet=Zt({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Za={},Hn=_e.createContext(Za),Gn=class $n extends ie.Component{static canUseDOM=Mn;helmetData;constructor(a){super(a),this.helmetData=new er(this.props.context||{},$n.canUseDOM)}render(){return _e.createElement(Hn.Provider,{value:this.helmetData.value},this.props.children)}},Be=(t,a)=>{const s=document.head||document.querySelector("head"),l=s.querySelectorAll(`${t}[${ce}]`),m=[].slice.call(l),f=[];let p;return a&&a.length&&a.forEach(n=>{const e=document.createElement(t);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r))if(r==="innerHTML")e.innerHTML=n.innerHTML;else if(r==="cssText")e.styleSheet?e.styleSheet.cssText=n.cssText:e.appendChild(document.createTextNode(n.cssText));else{const o=r,i=typeof n[o]>"u"?"":n[o];e.setAttribute(r,i)}e.setAttribute(ce,"true"),m.some((r,o)=>(p=o,e.isEqualNode(r)))?m.splice(p,1):f.push(e)}),m.forEach(n=>n.parentNode?.removeChild(n)),f.forEach(n=>s.appendChild(n)),{oldTags:m,newTags:f}},tr=(t,a)=>{const s=document.getElementsByTagName(t)[0];if(!s)return;const l=s.getAttribute(ce),m=l?l.split(","):[],f=[...m],p=Object.keys(a);for(const n of p){const e=a[n]||"";s.getAttribute(n)!==e&&s.setAttribute(n,e),m.indexOf(n)===-1&&m.push(n);const r=f.indexOf(n);r!==-1&&f.splice(r,1)}for(let n=f.length-1;n>=0;n-=1)s.removeAttribute(f[n]);m.length===f.length?s.removeAttribute(ce):s.getAttribute(ce)!==p.join(",")&&s.setAttribute(ce,p.join(","))},es=(t,a)=>{typeof t<"u"&&document.title!==t&&(document.title=Un(t)),tr("title",a)},Wr=(t,a)=>{const{baseTag:s,bodyAttributes:l,htmlAttributes:m,linkTags:f,metaTags:p,noscriptTags:n,onChangeClientState:e,scriptTags:r,styleTags:o,title:i,titleAttributes:u}=t;tr("body",l),tr("html",m),es(i,u);const c={baseTag:Be("base",s),linkTags:Be("link",f),metaTags:Be("meta",p),noscriptTags:Be("noscript",n),scriptTags:Be("script",r),styleTags:Be("style",o)},h={},d={};Object.keys(c).forEach(g=>{const{newTags:P,oldTags:q}=c[g];P.length&&(h[g]=P),q.length&&(d[g]=c[g].oldTags)}),a&&a(),e(t,h,d)},Xe=null,ts=t=>{Xe&&cancelAnimationFrame(Xe),t.defer?Xe=requestAnimationFrame(()=>{Wr(t,()=>{Xe=null})}):(Wr(t),Xe=null)},rs=ts,Vr=class extends ie.Component{rendered=!1;shouldComponentUpdate(t){return!Ba(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:a}=this.props.context;let s=null;const l=za(t.get().map(m=>{const f={...m.props};return delete f.context,f}));Gn.canUseDOM?rs(l):Zt&&(s=Zt(l)),a(s)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},ui=class extends ie.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!La(Fr(this.props,"helmetData"),Fr(t,"helmetData"))}mapNestedChildrenToProps(t,a){if(!a)return null;switch(t.type){case"script":case"noscript":return{innerHTML:a};case"style":return{cssText:a};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,a,s,l){return{...a,[t.type]:[...a[t.type]||[],{...s,...this.mapNestedChildrenToProps(t,l)}]}}mapObjectTypeChildren(t,a,s,l){switch(t.type){case"title":return{...a,[t.type]:l,titleAttributes:{...s}};case"body":return{...a,bodyAttributes:{...s}};case"html":return{...a,htmlAttributes:{...s}};default:return{...a,[t.type]:{...s}}}}mapArrayTypeChildrenToProps(t,a){let s={...a};return Object.keys(t).forEach(l=>{s={...s,[l]:t[l]}}),s}warnOnInvalidChildren(t,a){return Kr(zr.some(s=>t.type===s),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${zr.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),Kr(!a||typeof a=="string"||Array.isArray(a)&&!a.some(s=>typeof s!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,a){let s={};return _e.Children.forEach(t,l=>{if(!l||!l.props)return;const{children:m,...f}=l.props,p=Object.keys(f).reduce((e,r)=>(e[ja[r]||r]=f[r],e),{});let{type:n}=l;switch(typeof n=="symbol"?n=n.toString():this.warnOnInvalidChildren(l,m),n){case"Symbol(react.fragment)":a=this.mapChildrenToProps(m,a);break;case"link":case"meta":case"noscript":case"script":case"style":s=this.flattenArrayTypeChildren(l,s,p,m);break;default:a=this.mapObjectTypeChildren(l,a,p,m);break}}),this.mapArrayTypeChildrenToProps(s,a)}render(){const{children:t,...a}=this.props;let s={...a},{helmetData:l}=a;if(t&&(s=this.mapChildrenToProps(t,s)),l&&!(l instanceof er)){const m=l;l=new er(m.context,!0),delete s.helmetData}return l?_e.createElement(Vr,{...s,context:l.value}):_e.createElement(Hn.Consumer,null,m=>_e.createElement(Vr,{...s,context:m}))}};const Qr=(t,a)=>t.id||a||"",mr=async(t,a)=>{const s=va,l=new URL(`${s}${t}`,window.location.origin),m=await fetch(l.toString());if(!m.ok)throw new Error(`CMS API error: ${m.status} ${m.statusText}`);return m.json()},$t=new Map,Je=new Map,$e=new Map,me=new Map,Re=async t=>{const a=t;if(a?.sys?.type==="Link"&&a.sys.linkType==="Asset"){const s=a.sys.id;if($t.has(s))return $t.get(s);if(Je.has(s))return Je.get(s);const l=mr(`/assets/${s}`).then(m=>{const f=m;return $t.set(s,f),Je.delete(s),f}).catch(()=>(Je.delete(s),t));return Je.set(s,l),l}return t},je=new Map,Me=new Map,Kn=async t=>{if($e.has(t))return $e.get(t);if(me.has(t))return me.get(t);const a=mr(`/entries/${t}`).then(async s=>{const l=s;return l.fields?.image&&(l.fields.image=await Re(l.fields.image)),$e.set(t,l),me.delete(t),l}).catch(()=>{throw me.delete(t),new Error(`Failed to fetch entry ${t}`)});return me.set(t,a),a},ns=async t=>{const a=t,s=t;if(a?.sys?.type==="Link"&&a.sys.linkType==="Entry"){const l=a.sys.id;if(je.has(l))return je.get(l);try{const m=await Kn(l);return je.set(l,m),m}catch{return t}}return s?.sys?.id&&s?.fields?je.has(s.sys.id)?je.get(s.sys.id):(s.fields.image&&(s.fields.image=await Re(s.fields.image)),je.set(s.sys.id,s),s):t},as=async t=>{const a=t,s=t;if(a?.sys?.type==="Link"&&a.sys.linkType==="Entry"){const l=a.sys.id;if(Me.has(l))return Me.get(l);try{const m=await Kn(l);return Me.set(l,m),m}catch{return t}}return s?.sys?.id&&s?.fields?Me.has(s.sys.id)?Me.get(s.sys.id):(s.fields.image&&(s.fields.image=await Re(s.fields.image)),Me.set(s.sys.id,s),s):t},Yr=async t=>{if(!t)return"";const l=(await Re({sys:{type:"Link",linkType:"Asset",id:t}}))?.fields?.file?.url||"";return l.startsWith("//")?`https:${l}`:l},Xr=async t=>{if(!t)return"";if($e.has(t))return $e.get(t)?.fields?.id;if(me.has(t))return(await me.get(t))?.fields?.id;try{const a=mr(`/entries/${t}`);me.set(t,a);const s=await a;return $e.set(t,s),me.delete(t),s?.fields?.id}catch{return me.delete(t),""}};function ss(t){if(!t)return"";const a=t,s=new Date(a.includes("T")?a:`${a}T00:00:00Z`);return Number.isNaN(s.getTime())?a:new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"2-digit",year:"numeric"}).format(s)}const Ze="/blog",Ke={home:()=>"/",blogs:()=>Ze,category:t=>`${Ze}/${t}`,blog:(t,a)=>`${Ze}/${t}/${a}`,author:t=>`${Ze}/author/${t}`,search:t=>`${Ze}/search?q=${encodeURIComponent(t)}`,twitter:t=>{const a=`${window.location.origin}${t.url}`;return`https://x.com/intent/post?text=${encodeURIComponent(t.title)}&url=${encodeURIComponent(a)}`},facebook:t=>{const a=`${window.location.origin}${t.url}`;return`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(a)}`}},zn=t=>t?t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,""):"";function Ct(t){if(!t||!t.sys||!t.fields||!t.fields.file)return null;const a=t.fields.file.url;return a?{id:t.sys.id,url:a.startsWith("//")?`https:${a}`:a,width:t.fields.file.details?.image?.width||0,height:t.fields.file.details?.image?.height||0,mimeType:t.fields.file.contentType||"image/jpeg"}:null}function rr(t){if(!t||!t.sys||!t.fields)return null;const a=t.fields.id||zn(t.fields.title||"");if(!a)return null;const s=Ct(t.fields.image);return s?{id:t.sys.id,slug:a,title:t.fields.title||"",description:t.fields.description||"",image:s,isShownInMenu:t.fields.isShownInMenu??!0,url:Ke.category(a)}:null}function os(t){return{id:t||"uncategorized",slug:"uncategorized",title:"Uncategorized",description:"Posts without a valid category",image:{id:"default-category-image",url:"https://decentraland.org/logos/png/color.png",width:200,height:200,mimeType:"image/png"},isShownInMenu:!1,url:Ke.category("uncategorized")}}function is(t){return{id:t||"default-image",url:"https://decentraland.org/logos/png/color.png",width:1200,height:630,mimeType:"image/png"}}function Jr(t){const a=t||"decentraland";return{id:t||"unknown",slug:a,title:"Decentraland",description:"Decentraland Team",image:{id:"default-avatar",url:"https://decentraland.org/logos/png/color.png",width:200,height:200,mimeType:"image/png"},url:Ke.author(a)}}function St(t){if(!t||!t.sys||!t.fields)return Jr(t?.sys?.id);if(Object.keys(t.fields).length===0)return Jr(t.sys.id);const s=t.fields.title||"",l=t.fields.id||zn(s)||t.sys.id,m=Ct(t.fields.image);return m?{id:t.sys.id,slug:l,title:s,description:t.fields.description||"",image:m,url:Ke.author(l)}:{id:t.sys.id,slug:l,title:s||"Decentraland",description:t.fields.description||"",image:{id:"default-avatar",url:"https://decentraland.org/logos/png/color.png",width:200,height:200,mimeType:"image/png"},url:Ke.author(l)}}function gt(t){if(!t||!t.sys||!t.fields)return null;let a=rr(t.fields.category);a||(a=os(t.sys.id));const s=St(t.fields.author);let l=Ct(t.fields.image);l||(l=is(t.sys.id));const m=t.fields.title||"",f=t.fields.id,p=t.fields.publishedDate,n=t.fields.body;return{id:t.sys.id,slug:f,title:m,description:t.fields.description||"",publishedDate:ss(p),body:n||{},bodyAssets:{},image:l,category:a,author:s,url:Ke.blog(a.slug,f)}}const Kt=t=>_a.getState().blog.entities[t],Pt=async t=>{const a={...t,fields:{...t.fields}},[s,l,m]=await Promise.all([a.fields.category?ns(a.fields.category):void 0,a.fields.author?as(a.fields.author):void 0,a.fields.image?Re(a.fields.image):void 0]);return s&&(a.fields.category=s),l&&(a.fields.author=l),m&&(a.fields.image=m),a},yt=async t=>{const a={...t,fields:{...t.fields}};return a.fields.image&&(a.fields.image=await Re(a.fields.image)),a},Oe=t=>{if(t instanceof Error)return t.message;if(typeof t=="object"&&t!==null&&"error"in t){const a=t.error;if(typeof a=="string")return a}return"Unknown error"},Fn=t=>{const a=[];if(t.nodeType===_n.BLOCKS.EMBEDDED_ASSET&&t.data?.target?.sys?.id&&a.push(t.data.target.sys.id),t.content)for(const s of t.content)a.push(...Fn(s));return a},zt=async t=>{const a=Fn(t),s=[...new Set(a)];if(s.length===0)return{};const l=await Promise.all(s.map(async f=>{const p=await Re({sys:{type:"Link",linkType:"Asset",id:f}}),n=Ct(p);return{id:f,asset:n}})),m={};for(const{id:f,asset:p}of l)p&&(m[f]=p);return m},cs=ba.injectEndpoints({endpoints:t=>({getBlogPosts:t.query({serializeQueryArgs:({queryArgs:a})=>`posts-${a.category||"all"}-${a.author||"all"}`,merge:(a,s,{arg:l})=>{if(l.skip===0)return a.posts.length>s.posts.length?a:s;const m=new Set(a.posts.map(p=>p.id)),f=s.posts.filter(p=>!m.has(p.id));return{posts:[...a.posts,...f],total:s.total,hasMore:s.hasMore,nextCmsSkip:s.nextCmsSkip}},forceRefetch:({currentArg:a,previousArg:s})=>s?a?.skip!==s?.skip&&(a?.skip??0)>(s?.skip??0):!0,query:({category:a,author:s,limit:l=20,skip:m=0})=>({url:ve()+"/blog/posts",params:{category:a,author:s,limit:l,skip:m}}),transformResponse:async(a,s,{skip:l=0})=>{try{const m=a.total,p=(await Promise.all(a.items.map(async r=>{const o=r.sys?.id;if(o){const i=Kt(o);if(i)return i}try{const i=await Pt(r);return gt(i)}catch{return null}}))).filter(r=>r!==null),n=l+a.items.length,e=a.items.length===0?!1:n<m;return{posts:p,total:m,hasMore:e,nextCmsSkip:n}}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},async onQueryStarted(a,{dispatch:s,queryFulfilled:l}){try{const{data:m}=await l;m.posts.length>0&&s(jt(m.posts))}catch{}},keepUnusedDataFor:60,providesTags:a=>a?[...a.posts.map(({id:s})=>({type:"BlogPosts",id:s})),{type:"BlogPosts",id:"LIST"}]:[{type:"BlogPosts",id:"LIST"}]}),getBlogPost:t.query({query:({id:a})=>({url:ve()+`/entries/${a}`}),transformResponse:async(a,s,{id:l})=>{try{const m=Kt(l);if(m&&m.bodyAssets&&Object.keys(m.bodyAssets).length>0)return m;const f=await Pt(a),p=gt(f);if(!p)throw{status:"CUSTOM_ERROR",error:"Failed to map blog post: missing required fields"};return p.body&&(p.bodyAssets=await zt(p.body)),p}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},async onQueryStarted(a,{dispatch:s,queryFulfilled:l}){try{const{data:m}=await l;s(jt([m]))}catch{}},providesTags:(a,s,l)=>a?[{type:"BlogPost",id:l.id}]:[]}),getBlogCategories:t.query({query:()=>({url:ve()+"/blog/categories"}),transformResponse:async a=>{try{return(await Promise.all(a.items.map(l=>yt(l)))).map(l=>rr(l)).filter(l=>l!==null)}catch(s){throw{status:"CUSTOM_ERROR",error:Oe(s)}}},providesTags:["Categories"]}),getBlogCategoryBySlug:t.query({query:()=>({url:ve()+"/blog/categories"}),transformResponse:async(a,s,{slug:l})=>{try{const m=a.items.find(n=>{const e=n.fields;return Qr(e,n.sys.id)===l});if(!m)throw{status:"CUSTOM_ERROR",error:`Category with slug "${l}" not found`};const f=await yt(m),p=rr(f);if(!p)throw{status:"CUSTOM_ERROR",error:"Failed to map category: missing required fields"};return p}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},providesTags:(a,s,l)=>a?[{type:"Categories",id:l.slug}]:[]}),getBlogPostBySlug:t.query({query:({postSlug:a})=>({url:ve()+"/blog/posts",params:{slug:a}}),transformResponse:async(a,s,{postSlug:l})=>{try{const m=a.items.find(e=>e.fields.id===l);if(!m)throw{status:"CUSTOM_ERROR",error:`Post with slug "${l}" not found`};const f=m.sys?.id;if(f){const e=Kt(f);if(e&&e.bodyAssets&&Object.keys(e.bodyAssets).length>0)return e}const p=await Pt(m),n=gt(p);if(!n)throw{status:"CUSTOM_ERROR",error:"Failed to map post: missing required fields"};return n.body&&(n.bodyAssets=await zt(n.body)),n}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},async onQueryStarted(a,{dispatch:s,queryFulfilled:l}){try{const{data:m}=await l;s(jt([m]))}catch{}},providesTags:(a,s,l)=>a?[{type:"BlogPost",id:`${l.categorySlug}/${l.postSlug}`}]:[]}),getBlogAuthors:t.query({query:()=>({url:ve()+"/blog/authors"}),transformResponse:async a=>{try{return(await Promise.all(a.items.map(l=>yt(l)))).map(l=>St(l)).filter(l=>l!==null)}catch(s){throw{status:"CUSTOM_ERROR",error:s instanceof Error?s.message:"Unknown error"}}},providesTags:["Authors"]}),getBlogAuthor:t.query({query:({id:a})=>({url:ve()+`/entries/${a}`}),transformResponse:a=>{const s=St(a);if(!s)throw{status:"CUSTOM_ERROR",error:"Failed to map author: missing required fields"};return s},providesTags:(a,s,l)=>a?[{type:"Authors",id:l.id}]:[]}),getBlogAuthorBySlug:t.query({query:()=>({url:ve()+"/blog/authors"}),transformResponse:async(a,s,{slug:l})=>{try{const m=a.items.find(n=>{const e=n.fields;return Qr(e,n.sys.id)===l});if(!m)throw{status:"CUSTOM_ERROR",error:`Author with slug "${l}" not found`};const f=await yt(m),p=St(f);if(!p)throw{status:"CUSTOM_ERROR",error:"Failed to map author: missing required fields"};return p}catch(m){throw{status:"CUSTOM_ERROR",error:Oe(m)}}},providesTags:(a,s,l)=>a?[{type:"Authors",id:l.slug}]:[]}),getBlogPostPreview:t.query({queryFn:async({id:a,env:s,token:l,previewBaseUrl:m,spaceId:f})=>{try{const p=`${m}/spaces/${f}/environments/${s}/entries?content_type=blog_post&fields.id=${a}&access_token=${l}`,n=await fetch(p);if(!n.ok)return{error:{status:n.status,data:`Failed to fetch preview: ${n.statusText}`}};const e=await n.json();if(!e.items||e.items.length===0)return{error:{status:"CUSTOM_ERROR",error:`Preview post with id "${a}" not found`}};const r=e.items[0],o=await Pt(r),i=gt(o);return i?(i.body&&(i.bodyAssets=await zt(i.body)),{data:i}):{error:{status:"CUSTOM_ERROR",error:"Failed to map preview post: missing required fields"}}}catch(p){return{error:{status:"CUSTOM_ERROR",error:Oe(p)}}}},providesTags:(a,s,l)=>a?[{type:"BlogPost",id:`preview-${l.id}`}]:[]})}),overrideExisting:!1}),{useGetBlogPostsQuery:li,useGetBlogCategoriesQuery:us,useGetBlogCategoryBySlugQuery:hi,useGetBlogPostBySlugQuery:di,useGetBlogAuthorBySlugQuery:mi,useGetBlogPostPreviewQuery:fi}=cs;function fe(){function t(a){return new Promise(s=>{let l=new XMLHttpRequest;l.open(a.method,a.url,!0),Object.keys(a.headers).forEach(n=>l.setRequestHeader(n,a.headers[n]));let m=(n,e)=>setTimeout(()=>{l.abort(),s({status:0,content:e,isTimedOut:!0})},n),f=m(a.connectTimeout,"Connection timeout"),p;l.onreadystatechange=()=>{l.readyState>l.OPENED&&p===void 0&&(clearTimeout(f),p=m(a.responseTimeout,"Socket timeout"))},l.onerror=()=>{l.status===0&&(clearTimeout(f),clearTimeout(p),s({content:l.responseText||"Network request failed",status:l.status,isTimedOut:!1}))},l.onload=()=>{clearTimeout(f),clearTimeout(p),s({content:l.responseText,status:l.status,isTimedOut:!1})},l.send(a.data)})}return{send:t}}function pe(t){let a;const s=`algolia-client-js-${t.key}`;function l(){return a===void 0&&(a=t.localStorage||window.localStorage),a}function m(){return JSON.parse(l().getItem(s)||"{}")}function f(n){l().setItem(s,JSON.stringify(n))}function p(){const n=t.timeToLive?t.timeToLive*1e3:null,e=m(),r=Object.fromEntries(Object.entries(e).filter(([,i])=>i.timestamp!==void 0));if(f(r),!n)return;const o=Object.fromEntries(Object.entries(r).filter(([,i])=>{const u=new Date().getTime();return!(i.timestamp+n<u)}));f(o)}return{get(n,e,r={miss:()=>Promise.resolve()}){return Promise.resolve().then(()=>(p(),m()[JSON.stringify(n)])).then(o=>Promise.all([o?o.value:e(),o!==void 0])).then(([o,i])=>Promise.all([o,i||r.miss(o)])).then(([o])=>o)},set(n,e){return Promise.resolve().then(()=>{const r=m();return r[JSON.stringify(n)]={timestamp:new Date().getTime(),value:e},l().setItem(s,JSON.stringify(r)),e})},delete(n){return Promise.resolve().then(()=>{const e=m();delete e[JSON.stringify(n)],l().setItem(s,JSON.stringify(e))})},clear(){return Promise.resolve().then(()=>{l().removeItem(s)})}}}function ls(){return{get(t,a,s={miss:()=>Promise.resolve()}){return a().then(m=>Promise.all([m,s.miss(m)])).then(([m])=>m)},set(t,a){return Promise.resolve(a)},delete(t){return Promise.resolve()},clear(){return Promise.resolve()}}}function te(t){const a=[...t.caches],s=a.shift();return s===void 0?ls():{get(l,m,f={miss:()=>Promise.resolve()}){return s.get(l,m,f).catch(()=>te({caches:a}).get(l,m,f))},set(l,m){return s.set(l,m).catch(()=>te({caches:a}).set(l,m))},delete(l){return s.delete(l).catch(()=>te({caches:a}).delete(l))},clear(){return s.clear().catch(()=>te({caches:a}).clear())}}}function U(t={serializable:!0}){let a={};return{get(s,l,m={miss:()=>Promise.resolve()}){const f=JSON.stringify(s);if(f in a)return Promise.resolve(t.serializable?JSON.parse(a[f]):a[f]);const p=l();return p.then(n=>m.miss(n)).then(()=>p)},set(s,l){return a[JSON.stringify(s)]=t.serializable?JSON.stringify(l):l,Promise.resolve(l)},delete(s){return delete a[JSON.stringify(s)],Promise.resolve()},clear(){return a={},Promise.resolve()}}}function hs(t){const a={value:`Algolia for JavaScript (${t})`,add(s){const l=`; ${s.segment}${s.version!==void 0?` (${s.version})`:""}`;return a.value.indexOf(l)===-1&&(a.value=`${a.value}${l}`),a}};return a}function ge(t,a,s="WithinHeaders"){const l={"x-algolia-api-key":a,"x-algolia-application-id":t};return{headers(){return s==="WithinHeaders"?l:{}},queryParameters(){return s==="WithinQueryParameters"?l:{}}}}function be({func:t,validate:a,aggregator:s,error:l,timeout:m=()=>0}){const f=p=>new Promise((n,e)=>{t(p).then(async r=>(s&&await s(r),await a(r)?n(r):l&&await l.validate(r)?e(new Error(await l.message(r))):setTimeout(()=>{f(r).then(n).catch(e)},await m()))).catch(r=>{e(r)})});return f()}function Pe({algoliaAgents:t,client:a,version:s}){const l=hs(s).add({segment:a,version:s});return t.forEach(m=>l.add(m)),l}function ye(){return{debug(t,a){return Promise.resolve()},info(t,a){return Promise.resolve()},error(t,a){return Promise.resolve()}}}var Zr=2*60*1e3;function en(t,a="up"){const s=Date.now();function l(){return a==="up"||Date.now()-s>Zr}function m(){return a==="timed out"&&Date.now()-s<=Zr}return{...t,status:a,lastUpdate:s,isUp:l,isTimedOut:m}}var Wn=class extends Error{name="AlgoliaError";constructor(t,a){super(t),a&&(this.name=a)}},Vn=class extends Wn{stackTrace;constructor(t,a,s){super(t,s),this.stackTrace=a}},ds=class extends Vn{constructor(t){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",t,"RetryError")}},bt=class extends Vn{status;constructor(t,a,s,l="ApiError"){super(t,s,l),this.status=a}},ms=class extends Wn{response;constructor(t,a){super(t,"DeserializationError"),this.response=a}},fs=class extends bt{error;constructor(t,a,s,l){super(t,a,l,"DetailedApiError"),this.error=s}};function Qn(t){const a=t;for(let s=t.length-1;s>0;s--){const l=Math.floor(Math.random()*(s+1)),m=t[s];a[s]=t[l],a[l]=m}return a}function ps(t,a,s){const l=gs(s);let m=`${t.protocol}://${t.url}${t.port?`:${t.port}`:""}/${a.charAt(0)==="/"?a.substring(1):a}`;return l.length&&(m+=`?${l}`),m}function gs(t){return Object.keys(t).filter(a=>t[a]!==void 0).sort().map(a=>`${a}=${encodeURIComponent(Object.prototype.toString.call(t[a])==="[object Array]"?t[a].join(","):t[a]).replace(/\+/g,"%20")}`).join("&")}function Ps(t,a){if(t.method==="GET"||t.data===void 0&&a.data===void 0)return;const s=Array.isArray(t.data)?t.data:{...t.data,...a.data};return JSON.stringify(s)}function ys(t,a,s){const l={Accept:"application/json",...t,...a,...s},m={};return Object.keys(l).forEach(f=>{const p=l[f];m[f.toLowerCase()]=p}),m}function qs(t){try{return JSON.parse(t.content)}catch(a){throw new ms(a.message,t)}}function ws({content:t,status:a},s){try{const l=JSON.parse(t);return"error"in l?new fs(l.message,a,l.error,s):new bt(l.message,a,s)}catch{}return new bt(t,a,s)}function Es({isTimedOut:t,status:a}){return!t&&~~a===0}function Ts({isTimedOut:t,status:a}){return t||Es({isTimedOut:t,status:a})||~~(a/100)!==2&&~~(a/100)!==4}function Ss({status:t}){return~~(t/100)===2}function vs(t){return t.map(a=>Yn(a))}function Yn(t){const a=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...t,request:{...t.request,headers:{...t.request.headers,...a}}}}function qe({hosts:t,hostsCache:a,baseHeaders:s,logger:l,baseQueryParameters:m,algoliaAgent:f,timeouts:p,requester:n,requestsCache:e,responsesCache:r}){async function o(c){const h=await Promise.all(c.map(E=>a.get(E,()=>Promise.resolve(en(E))))),d=h.filter(E=>E.isUp()),g=h.filter(E=>E.isTimedOut()),P=[...d,...g];return{hosts:P.length>0?P:c,getTimeout(E,w){return(g.length===0&&E===0?1:g.length+3+E)*w}}}async function i(c,h,d=!0){const g=[],P=Ps(c,h),q=ys(s,c.headers,h.headers),E=c.method==="GET"?{...c.data,...h.data}:{},w={...m,...c.queryParameters,...E};if(f.value&&(w["x-algolia-agent"]=f.value),h&&h.queryParameters)for(const R of Object.keys(h.queryParameters))!h.queryParameters[R]||Object.prototype.toString.call(h.queryParameters[R])==="[object Object]"?w[R]=h.queryParameters[R]:w[R]=h.queryParameters[R].toString();let _=0;const S=async(R,W)=>{const T=R.pop();if(T===void 0)throw new ds(vs(g));const A={...p,...h.timeouts},D={data:P,headers:q,method:c.method,url:ps(T,c.path,w),connectTimeout:W(_,A.connect),responseTimeout:W(_,d?A.read:A.write)},N=z=>{const re={request:D,response:z,host:T,triesLeft:R.length};return g.push(re),re},x=await n.send(D);if(Ts(x)){const z=N(x);return x.isTimedOut&&_++,l.info("Retryable failure",Yn(z)),await a.set(T,en(T,x.isTimedOut?"timed out":"down")),S(R,W)}if(Ss(x))return qs(x);throw N(x),ws(x,g)},b=t.filter(R=>R.accept==="readWrite"||(d?R.accept==="read":R.accept==="write")),O=await o(b);return S([...O.hosts].reverse(),O.getTimeout)}function u(c,h={}){const d=c.useReadTransporter||c.method==="GET";if(!d)return i(c,h,d);const g=()=>i(c,h);if((h.cacheable||c.cacheable)!==!0)return g();const q={request:c,requestOptions:h,transporter:{queryParameters:m,headers:s}};return r.get(q,()=>e.get(q,()=>e.set(q,g()).then(E=>Promise.all([e.delete(q),E]),E=>Promise.all([e.delete(q),Promise.reject(E)])).then(([E,w])=>w)),{miss:E=>r.set(q,E)})}return{hostsCache:a,requester:n,timeouts:p,logger:l,algoliaAgent:f,baseHeaders:s,baseQueryParameters:m,hosts:t,request:u,requestsCache:e,responsesCache:r}}var fr="1.7.0",tn=["de","us"];function bs(t){return[{url:t?"analytics.{region}.algolia.com".replace("{region}",t):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function _s({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:bs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"AbtestingV3",version:fr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},addABTests(e,r){if(!e)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.metrics)throw new Error("Parameter `addABTestsRequest.metrics` is required when calling `addABTests`.");if(!e.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const c={method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const c={method:"DELETE",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},estimateABTest(e,r){if(!e)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const c={method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e};return n.request(c,r)},getABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `getABTest`.");const c={method:"GET",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTimeseries({id:e,startDate:r,endDate:o,metric:i},u){if(!e)throw new Error("Parameter `id` is required when calling `getTimeseries`.");const c="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),h={},d={};r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.metric=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},listABTests({offset:e,limit:r,indexPrefix:o,indexSuffix:i,direction:u}={},c=void 0){const h="/3/abtests",d={},g={};e!==void 0&&(g.offset=e.toString()),r!==void 0&&(g.limit=r.toString()),o!==void 0&&(g.indexPrefix=o.toString()),i!==void 0&&(g.indexSuffix=i.toString()),u!==void 0&&(g.direction=u.toString());const P={method:"GET",path:h,queryParameters:g,headers:d};return n.request(P,c)},scheduleABTest(e,r){if(!e)throw new Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw new Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw new Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.metrics)throw new Error("Parameter `scheduleABTestsRequest.metrics` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw new Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw new Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");const c={method:"POST",path:"/3/abtests/schedule",queryParameters:{},headers:{},data:e};return n.request(c,r)},stopABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `stopABTest`.");const c={method:"POST",path:"/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)}}}function Xn(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!tn.includes(s)))throw new Error(`\`region\` must be one of the following: ${tn.join(", ")}`);return _s({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${fr}-${t}`}),U()]}),...l})}const As=Object.freeze(Object.defineProperty({__proto__:null,abtestingV3Client:Xn,apiClientVersion:fr},Symbol.toStringTag,{value:"Module"}));var pr="5.41.0",rn=["de","us"];function Cs(t){return[{url:t?"analytics.{region}.algolia.com".replace("{region}",t):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function Os({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Cs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Abtesting",version:pr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},addABTests(e,r){if(!e)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const c={method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const c={method:"DELETE",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},estimateABTest(e,r){if(!e)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const c={method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:e};return n.request(c,r)},getABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `getABTest`.");const c={method:"GET",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},listABTests({offset:e,limit:r,indexPrefix:o,indexSuffix:i}={},u=void 0){const c="/2/abtests",h={},d={};e!==void 0&&(d.offset=e.toString()),r!==void 0&&(d.limit=r.toString()),o!==void 0&&(d.indexPrefix=o.toString()),i!==void 0&&(d.indexSuffix=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},scheduleABTest(e,r){if(!e)throw new Error("Parameter `scheduleABTestsRequest` is required when calling `scheduleABTest`.");if(!e.name)throw new Error("Parameter `scheduleABTestsRequest.name` is required when calling `scheduleABTest`.");if(!e.variants)throw new Error("Parameter `scheduleABTestsRequest.variants` is required when calling `scheduleABTest`.");if(!e.scheduledAt)throw new Error("Parameter `scheduleABTestsRequest.scheduledAt` is required when calling `scheduleABTest`.");if(!e.endAt)throw new Error("Parameter `scheduleABTestsRequest.endAt` is required when calling `scheduleABTest`.");const c={method:"POST",path:"/2/abtests/schedule",queryParameters:{},headers:{},data:e};return n.request(c,r)},stopABTest({id:e},r){if(!e)throw new Error("Parameter `id` is required when calling `stopABTest`.");const c={method:"POST",path:"/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)}}}function Jn(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!rn.includes(s)))throw new Error(`\`region\` must be one of the following: ${rn.join(", ")}`);return Os({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${pr}-${t}`}),U()]}),...l})}const Is=Object.freeze(Object.defineProperty({__proto__:null,abtestingClient:Jn,apiClientVersion:pr},Symbol.toStringTag,{value:"Module"}));var gr="5.41.0",nn=["de","us"];function Rs(t){return[{url:t?"analytics.{region}.algolia.com".replace("{region}",t):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}function Ds({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Rs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Analytics",version:gr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},getAddToCartRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getAddToCartRate`.");const c="/2/conversions/addToCartRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getAverageClickPosition({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getAverageClickPosition`.");const c="/2/clicks/averageClickPosition",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getClickPositions({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getClickPositions`.");const c="/2/clicks/positions",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getClickThroughRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getClickThroughRate`.");const c="/2/clicks/clickThroughRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getConversionRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getConversionRate`.");const c="/2/conversions/conversionRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getNoClickRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getNoClickRate`.");const c="/2/searches/noClickRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getNoResultsRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getNoResultsRate`.");const c="/2/searches/noResultRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getPurchaseRate({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getPurchaseRate`.");const c="/2/conversions/purchaseRate",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getRevenue({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getRevenue`.");const c="/2/conversions/revenue",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getSearchesCount({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesCount`.");const c="/2/searches/count",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)},getSearchesNoClicks({index:e,startDate:r,endDate:o,limit:i,offset:u,tags:c},h){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoClicks`.");const d="/2/searches/noClicks",g={},P={};e!==void 0&&(P.index=e.toString()),r!==void 0&&(P.startDate=r.toString()),o!==void 0&&(P.endDate=o.toString()),i!==void 0&&(P.limit=i.toString()),u!==void 0&&(P.offset=u.toString()),c!==void 0&&(P.tags=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},getSearchesNoResults({index:e,startDate:r,endDate:o,limit:i,offset:u,tags:c},h){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoResults`.");const d="/2/searches/noResults",g={},P={};e!==void 0&&(P.index=e.toString()),r!==void 0&&(P.startDate=r.toString()),o!==void 0&&(P.endDate=o.toString()),i!==void 0&&(P.limit=i.toString()),u!==void 0&&(P.offset=u.toString()),c!==void 0&&(P.tags=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},getStatus({index:e},r){if(!e)throw new Error("Parameter `index` is required when calling `getStatus`.");const o="/2/status",i={},u={};e!==void 0&&(u.index=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return n.request(c,r)},getTopCountries({index:e,startDate:r,endDate:o,limit:i,offset:u,tags:c},h){if(!e)throw new Error("Parameter `index` is required when calling `getTopCountries`.");const d="/2/countries",g={},P={};e!==void 0&&(P.index=e.toString()),r!==void 0&&(P.startDate=r.toString()),o!==void 0&&(P.endDate=o.toString()),i!==void 0&&(P.limit=i.toString()),u!==void 0&&(P.offset=u.toString()),c!==void 0&&(P.tags=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},getTopFilterAttributes({index:e,search:r,startDate:o,endDate:i,limit:u,offset:c,tags:h},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const g="/2/filters",P={},q={};e!==void 0&&(q.index=e.toString()),r!==void 0&&(q.search=r.toString()),o!==void 0&&(q.startDate=o.toString()),i!==void 0&&(q.endDate=i.toString()),u!==void 0&&(q.limit=u.toString()),c!==void 0&&(q.offset=c.toString()),h!==void 0&&(q.tags=h.toString());const E={method:"GET",path:g,queryParameters:q,headers:P};return n.request(E,d)},getTopFilterForAttribute({attribute:e,index:r,search:o,startDate:i,endDate:u,limit:c,offset:h,tags:d},g){if(!e)throw new Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!r)throw new Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");const P="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),q={},E={};r!==void 0&&(E.index=r.toString()),o!==void 0&&(E.search=o.toString()),i!==void 0&&(E.startDate=i.toString()),u!==void 0&&(E.endDate=u.toString()),c!==void 0&&(E.limit=c.toString()),h!==void 0&&(E.offset=h.toString()),d!==void 0&&(E.tags=d.toString());const w={method:"GET",path:P,queryParameters:E,headers:q};return n.request(w,g)},getTopFiltersNoResults({index:e,search:r,startDate:o,endDate:i,limit:u,offset:c,tags:h},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const g="/2/filters/noResults",P={},q={};e!==void 0&&(q.index=e.toString()),r!==void 0&&(q.search=r.toString()),o!==void 0&&(q.startDate=o.toString()),i!==void 0&&(q.endDate=i.toString()),u!==void 0&&(q.limit=u.toString()),c!==void 0&&(q.offset=c.toString()),h!==void 0&&(q.tags=h.toString());const E={method:"GET",path:g,queryParameters:q,headers:P};return n.request(E,d)},getTopHits({index:e,search:r,clickAnalytics:o,revenueAnalytics:i,startDate:u,endDate:c,limit:h,offset:d,tags:g},P){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const q="/2/hits",E={},w={};e!==void 0&&(w.index=e.toString()),r!==void 0&&(w.search=r.toString()),o!==void 0&&(w.clickAnalytics=o.toString()),i!==void 0&&(w.revenueAnalytics=i.toString()),u!==void 0&&(w.startDate=u.toString()),c!==void 0&&(w.endDate=c.toString()),h!==void 0&&(w.limit=h.toString()),d!==void 0&&(w.offset=d.toString()),g!==void 0&&(w.tags=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},getTopSearches({index:e,clickAnalytics:r,revenueAnalytics:o,startDate:i,endDate:u,orderBy:c,direction:h,limit:d,offset:g,tags:P},q){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const E="/2/searches",w={},_={};e!==void 0&&(_.index=e.toString()),r!==void 0&&(_.clickAnalytics=r.toString()),o!==void 0&&(_.revenueAnalytics=o.toString()),i!==void 0&&(_.startDate=i.toString()),u!==void 0&&(_.endDate=u.toString()),c!==void 0&&(_.orderBy=c.toString()),h!==void 0&&(_.direction=h.toString()),d!==void 0&&(_.limit=d.toString()),g!==void 0&&(_.offset=g.toString()),P!==void 0&&(_.tags=P.toString());const S={method:"GET",path:E,queryParameters:_,headers:w};return n.request(S,q)},getUsersCount({index:e,startDate:r,endDate:o,tags:i},u){if(!e)throw new Error("Parameter `index` is required when calling `getUsersCount`.");const c="/2/users/count",h={},d={};e!==void 0&&(d.index=e.toString()),r!==void 0&&(d.startDate=r.toString()),o!==void 0&&(d.endDate=o.toString()),i!==void 0&&(d.tags=i.toString());const g={method:"GET",path:c,queryParameters:d,headers:h};return n.request(g,u)}}}function Zn(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!nn.includes(s)))throw new Error(`\`region\` must be one of the following: ${nn.join(", ")}`);return Ds({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${gr}-${t}`}),U()]}),...l})}const xs=Object.freeze(Object.defineProperty({__proto__:null,analyticsClient:Zn,apiClientVersion:gr},Symbol.toStringTag,{value:"Module"}));var Pr="5.41.0",an=["de","us"];function Ls(t){return[{url:t?"insights.{region}.algolia.io".replace("{region}",t):"insights.algolia.io",accept:"readWrite",protocol:"https"}]}function ks({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Ls(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Insights",version:Pr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteUserToken({userToken:e},r){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserToken`.");const c={method:"DELETE",path:"/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},pushEvents(e,r){if(!e)throw new Error("Parameter `insightsEvents` is required when calling `pushEvents`.");if(!e.events)throw new Error("Parameter `insightsEvents.events` is required when calling `pushEvents`.");const c={method:"POST",path:"/1/events",queryParameters:{},headers:{},data:e};return n.request(c,r)}}}function ea(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(s&&(typeof s!="string"||!an.includes(s)))throw new Error(`\`region\` must be one of the following: ${an.join(", ")}`);return ks({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${Pr}-${t}`}),U()]}),...l})}const Ns=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Pr,insightsClient:ea},Symbol.toStringTag,{value:"Module"}));var yr="5.41.0",sn=["eu","us"];function Us(t){return[{url:"personalization.{region}.algolia.com".replace("{region}",t),accept:"readWrite",protocol:"https"}]}function Bs({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Us(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Personalization",version:yr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteUserProfile({userToken:e},r){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserProfile`.");const c={method:"DELETE",path:"/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getPersonalizationStrategy(e){const u={method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}};return n.request(u,e)},getUserTokenProfile({userToken:e},r){if(!e)throw new Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");const c={method:"GET",path:"/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},setPersonalizationStrategy(e,r){if(!e)throw new Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!e.eventsScoring)throw new Error("Parameter `personalizationStrategyParams.eventsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.facetsScoring)throw new Error("Parameter `personalizationStrategyParams.facetsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.personalizationImpact)throw new Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");const c={method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e};return n.request(c,r)}}}function ta(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(!s||s&&(typeof s!="string"||!sn.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${sn.join(", ")}`);return Bs({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${yr}-${t}`}),U()]}),...l})}const js=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:yr,personalizationClient:ta},Symbol.toStringTag,{value:"Module"}));var qr="5.41.0",on=["eu","us"];function Ms(t){return[{url:"query-suggestions.{region}.algolia.com".replace("{region}",t),accept:"readWrite",protocol:"https"}]}function Hs({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Ms(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"QuerySuggestions",version:qr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},createConfig(e,r){if(!e)throw new Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");const c={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteConfig({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const c={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getAllConfigs(e){const u={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return n.request(u,e)},getConfig({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const c={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getConfigStatus({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const c={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getLogFile({indexName:e},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const c={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},updateConfig({indexName:e,configuration:r},o){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!r)throw new Error("Parameter `configuration` is required when calling `updateConfig`.");if(!r.sourceIndices)throw new Error("Parameter `configuration.sourceIndices` is required when calling `updateConfig`.");const h={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)}}}function ra(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(!s||s&&(typeof s!="string"||!on.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${on.join(", ")}`);return Hs({appId:t,apiKey:a,region:s,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${qr}-${t}`}),U()]}),...l})}const Gs=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:qr,querySuggestionsClient:ra},Symbol.toStringTag,{value:"Module"}));var ot="5.41.0";function $s(t){return[{url:`${t}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${t}.algolia.net`,accept:"write",protocol:"https"}].concat(Qn([{url:`${t}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function Ks({appId:t,apiKey:a,authMode:s,algoliaAgents:l,...m}){const f=ge(t,a,s),p=qe({hosts:$s(t),...m,algoliaAgent:Pe({algoliaAgents:l,client:"Search",version:ot}),baseHeaders:{"content-type":"text/plain",...f.headers(),...m.baseHeaders},baseQueryParameters:{...f.queryParameters(),...m.baseQueryParameters}});return{transporter:p,appId:t,apiKey:a,clearCache(){return Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>{})},get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(n,e){p.algoliaAgent.add({segment:n,version:e})},setClientApiKey({apiKey:n}){!s||s==="WithinHeaders"?p.baseHeaders["x-algolia-api-key"]=n:p.baseQueryParameters["x-algolia-api-key"]=n},waitForTask({indexName:n,taskID:e,maxRetries:r=50,timeout:o=u=>Math.min(u*200,5e3)},i){let u=0;return be({func:()=>this.getTask({indexName:n,taskID:e},i),validate:c=>c.status==="published",aggregator:()=>u+=1,error:{validate:()=>u>=r,message:()=>`The maximum number of retries exceeded. (${u}/${r})`},timeout:()=>o(u)})},waitForAppTask({taskID:n,maxRetries:e=50,timeout:r=i=>Math.min(i*200,5e3)},o){let i=0;return be({func:()=>this.getAppTask({taskID:n},o),validate:u=>u.status==="published",aggregator:()=>i+=1,error:{validate:()=>i>=e,message:()=>`The maximum number of retries exceeded. (${i}/${e})`},timeout:()=>r(i)})},waitForApiKey({operation:n,key:e,apiKey:r,maxRetries:o=50,timeout:i=c=>Math.min(c*200,5e3)},u){let c=0;const h={aggregator:()=>c+=1,error:{validate:()=>c>=o,message:()=>`The maximum number of retries exceeded. (${c}/${o})`},timeout:()=>i(c)};if(n==="update"){if(!r)throw new Error("`apiKey` is required when waiting for an `update` operation.");return be({...h,func:()=>this.getApiKey({key:e},u),validate:d=>{for(const g of Object.keys(r)){const P=r[g],q=d[g];if(Array.isArray(P)&&Array.isArray(q)){if(P.length!==q.length||P.some((E,w)=>E!==q[w]))return!1}else if(P!==q)return!1}return!0}})}return be({...h,func:()=>this.getApiKey({key:e},u).catch(d=>{if(d.status!==404)throw d}),validate:d=>n==="add"?d!==void 0:d===void 0})},browseObjects({indexName:n,browseParams:e,...r},o){return be({func:i=>this.browse({indexName:n,browseParams:{cursor:i?i.cursor:void 0,hitsPerPage:1e3,...e}},o),validate:i=>i.cursor===void 0,...r})},browseRules({indexName:n,searchRulesParams:e,...r},o){const i={...e,hitsPerPage:e?.hitsPerPage||1e3};return be({func:u=>this.searchRules({indexName:n,searchRulesParams:{...i,page:u?u.page+1:i.page||0}},o),validate:u=>u.hits.length<i.hitsPerPage,...r})},browseSynonyms({indexName:n,searchSynonymsParams:e,...r},o){const i={...e,page:e?.page||0,hitsPerPage:1e3};return be({func:u=>{const c=this.searchSynonyms({indexName:n,searchSynonymsParams:{...i,page:i.page}},o);return i.page+=1,c},validate:u=>u.hits.length<i.hitsPerPage,...r})},async chunkedBatch({indexName:n,objects:e,action:r="addObject",waitForTasks:o,batchSize:i=1e3},u){let c=[];const h=[],d=e.entries();for(const[g,P]of d)c.push({action:r,body:P}),(c.length===i||g===e.length-1)&&(h.push(await this.batch({indexName:n,batchWriteParams:{requests:c}},u)),c=[]);if(o)for(const g of h)await this.waitForTask({indexName:n,taskID:g.taskID});return h},async saveObjects({indexName:n,objects:e,waitForTasks:r,batchSize:o},i){return await this.chunkedBatch({indexName:n,objects:e,action:"addObject",waitForTasks:r,batchSize:o},i)},async deleteObjects({indexName:n,objectIDs:e,waitForTasks:r,batchSize:o},i){return await this.chunkedBatch({indexName:n,objects:e.map(u=>({objectID:u})),action:"deleteObject",waitForTasks:r,batchSize:o},i)},async partialUpdateObjects({indexName:n,objects:e,createIfNotExists:r,waitForTasks:o,batchSize:i},u){return await this.chunkedBatch({indexName:n,objects:e,action:r?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:i,waitForTasks:o},u)},async replaceAllObjects({indexName:n,objects:e,batchSize:r,scopes:o},i){const u=Math.floor(Math.random()*1e6)+1e5,c=`${n}_tmp_${u}`;o===void 0&&(o=["settings","rules","synonyms"]);try{let h=await this.operationIndex({indexName:n,operationIndexParams:{operation:"copy",destination:c,scope:o}},i);const d=await this.chunkedBatch({indexName:c,objects:e,waitForTasks:!0,batchSize:r},i);await this.waitForTask({indexName:c,taskID:h.taskID}),h=await this.operationIndex({indexName:n,operationIndexParams:{operation:"copy",destination:c,scope:o}},i),await this.waitForTask({indexName:c,taskID:h.taskID});const g=await this.operationIndex({indexName:c,operationIndexParams:{operation:"move",destination:n}},i);return await this.waitForTask({indexName:c,taskID:g.taskID}),{copyOperationResponse:h,batchResponses:d,moveOperationResponse:g}}catch(h){throw await this.deleteIndex({indexName:c}),h}},async indexExists({indexName:n}){try{await this.getSettings({indexName:n})}catch(e){if(e instanceof bt&&e.status===404)return!1;throw e}return!0},searchForHits(n,e){return this.search(n,e)},searchForFacets(n,e){return this.search(n,e)},addApiKey(n,e){if(!n)throw new Error("Parameter `apiKey` is required when calling `addApiKey`.");if(!n.acl)throw new Error("Parameter `apiKey.acl` is required when calling `addApiKey`.");const u={method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:n};return p.request(u,e)},addOrUpdateObject({indexName:n,objectID:e,body:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `addOrUpdateObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `addOrUpdateObject`.");if(!r)throw new Error("Parameter `body` is required when calling `addOrUpdateObject`.");const h={method:"PUT",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return p.request(h,o)},appendSource(n,e){if(!n)throw new Error("Parameter `source` is required when calling `appendSource`.");if(!n.source)throw new Error("Parameter `source.source` is required when calling `appendSource`.");const u={method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:n};return p.request(u,e)},assignUserId({xAlgoliaUserID:n,assignUserIdParams:e},r){if(!n)throw new Error("Parameter `xAlgoliaUserID` is required when calling `assignUserId`.");if(!e)throw new Error("Parameter `assignUserIdParams` is required when calling `assignUserId`.");if(!e.cluster)throw new Error("Parameter `assignUserIdParams.cluster` is required when calling `assignUserId`.");const o="/1/clusters/mapping",i={},u={};n!==void 0&&(i["X-Algolia-User-ID"]=n.toString());const c={method:"POST",path:o,queryParameters:u,headers:i,data:e};return p.request(c,r)},batch({indexName:n,batchWriteParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `batch`.");if(!e)throw new Error("Parameter `batchWriteParams` is required when calling `batch`.");if(!e.requests)throw new Error("Parameter `batchWriteParams.requests` is required when calling `batch`.");const c={method:"POST",path:"/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},batchAssignUserIds({xAlgoliaUserID:n,batchAssignUserIdsParams:e},r){if(!n)throw new Error("Parameter `xAlgoliaUserID` is required when calling `batchAssignUserIds`.");if(!e)throw new Error("Parameter `batchAssignUserIdsParams` is required when calling `batchAssignUserIds`.");if(!e.cluster)throw new Error("Parameter `batchAssignUserIdsParams.cluster` is required when calling `batchAssignUserIds`.");if(!e.users)throw new Error("Parameter `batchAssignUserIdsParams.users` is required when calling `batchAssignUserIds`.");const o="/1/clusters/mapping/batch",i={},u={};n!==void 0&&(i["X-Algolia-User-ID"]=n.toString());const c={method:"POST",path:o,queryParameters:u,headers:i,data:e};return p.request(c,r)},batchDictionaryEntries({dictionaryName:n,batchDictionaryEntriesParams:e},r){if(!n)throw new Error("Parameter `dictionaryName` is required when calling `batchDictionaryEntries`.");if(!e)throw new Error("Parameter `batchDictionaryEntriesParams` is required when calling `batchDictionaryEntries`.");if(!e.requests)throw new Error("Parameter `batchDictionaryEntriesParams.requests` is required when calling `batchDictionaryEntries`.");const c={method:"POST",path:"/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},browse({indexName:n,browseParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `browse`.");const c={method:"POST",path:"/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0};return p.request(c,r)},clearObjects({indexName:n},e){if(!n)throw new Error("Parameter `indexName` is required when calling `clearObjects`.");const u={method:"POST",path:"/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},clearRules({indexName:n,forwardToReplicas:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `clearRules`.");const o="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(n)),i={},u={};e!==void 0&&(u.forwardToReplicas=e.toString());const c={method:"POST",path:o,queryParameters:u,headers:i};return p.request(c,r)},clearSynonyms({indexName:n,forwardToReplicas:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `clearSynonyms`.");const o="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(n)),i={},u={};e!==void 0&&(u.forwardToReplicas=e.toString());const c={method:"POST",path:o,queryParameters:u,headers:i};return p.request(c,r)},customDelete({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const c={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customGet({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const c={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customPost({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const h={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},customPut({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const h={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},deleteApiKey({key:n},e){if(!n)throw new Error("Parameter `key` is required when calling `deleteApiKey`.");const u={method:"DELETE",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},deleteBy({indexName:n,deleteByParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteBy`.");if(!e)throw new Error("Parameter `deleteByParams` is required when calling `deleteBy`.");const c={method:"POST",path:"/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},deleteIndex({indexName:n},e){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteIndex`.");const u={method:"DELETE",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},deleteObject({indexName:n,objectID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `deleteObject`.");const c={method:"DELETE",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},deleteRule({indexName:n,objectID:e,forwardToReplicas:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteRule`.");if(!e)throw new Error("Parameter `objectID` is required when calling `deleteRule`.");const i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),u={},c={};r!==void 0&&(c.forwardToReplicas=r.toString());const h={method:"DELETE",path:i,queryParameters:c,headers:u};return p.request(h,o)},deleteSource({source:n},e){if(!n)throw new Error("Parameter `source` is required when calling `deleteSource`.");const u={method:"DELETE",path:"/1/security/sources/{source}".replace("{source}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},deleteSynonym({indexName:n,objectID:e,forwardToReplicas:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteSynonym`.");if(!e)throw new Error("Parameter `objectID` is required when calling `deleteSynonym`.");const i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),u={},c={};r!==void 0&&(c.forwardToReplicas=r.toString());const h={method:"DELETE",path:i,queryParameters:c,headers:u};return p.request(h,o)},getApiKey({key:n},e){if(!n)throw new Error("Parameter `key` is required when calling `getApiKey`.");const u={method:"GET",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getAppTask({taskID:n},e){if(!n)throw new Error("Parameter `taskID` is required when calling `getAppTask`.");const u={method:"GET",path:"/1/task/{taskID}".replace("{taskID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getDictionaryLanguages(n){const i={method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}};return p.request(i,n)},getDictionarySettings(n){const i={method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}};return p.request(i,n)},getLogs({offset:n,length:e,indexName:r,type:o}={},i=void 0){const u="/1/logs",c={},h={};n!==void 0&&(h.offset=n.toString()),e!==void 0&&(h.length=e.toString()),r!==void 0&&(h.indexName=r.toString()),o!==void 0&&(h.type=o.toString());const d={method:"GET",path:u,queryParameters:h,headers:c};return p.request(d,i)},getObject({indexName:n,objectID:e,attributesToRetrieve:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `getObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `getObject`.");const i="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),u={},c={};r!==void 0&&(c.attributesToRetrieve=r.toString());const h={method:"GET",path:i,queryParameters:c,headers:u};return p.request(h,o)},getObjects(n,e){if(!n)throw new Error("Parameter `getObjectsParams` is required when calling `getObjects`.");if(!n.requests)throw new Error("Parameter `getObjectsParams.requests` is required when calling `getObjects`.");const u={method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},getRule({indexName:n,objectID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getRule`.");if(!e)throw new Error("Parameter `objectID` is required when calling `getRule`.");const c={method:"GET",path:"/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getSettings({indexName:n,getVersion:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getSettings`.");const o="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(n)),i={},u={};e!==void 0&&(u.getVersion=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return p.request(c,r)},getSources(n){const i={method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}};return p.request(i,n)},getSynonym({indexName:n,objectID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getSynonym`.");if(!e)throw new Error("Parameter `objectID` is required when calling `getSynonym`.");const c={method:"GET",path:"/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getTask({indexName:n,taskID:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `getTask`.");if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const c={method:"GET",path:"/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(n)).replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getTopUserIds(n){const i={method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}};return p.request(i,n)},getUserId({userID:n},e){if(!n)throw new Error("Parameter `userID` is required when calling `getUserId`.");const u={method:"GET",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},hasPendingMappings({getClusters:n}={},e=void 0){const r="/1/clusters/mapping/pending",o={},i={};n!==void 0&&(i.getClusters=n.toString());const u={method:"GET",path:r,queryParameters:i,headers:o};return p.request(u,e)},listApiKeys(n){const i={method:"GET",path:"/1/keys",queryParameters:{},headers:{}};return p.request(i,n)},listClusters(n){const i={method:"GET",path:"/1/clusters",queryParameters:{},headers:{}};return p.request(i,n)},listIndices({page:n,hitsPerPage:e}={},r=void 0){const o="/1/indexes",i={},u={};n!==void 0&&(u.page=n.toString()),e!==void 0&&(u.hitsPerPage=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return p.request(c,r)},listUserIds({page:n,hitsPerPage:e}={},r=void 0){const o="/1/clusters/mapping",i={},u={};n!==void 0&&(u.page=n.toString()),e!==void 0&&(u.hitsPerPage=e.toString());const c={method:"GET",path:o,queryParameters:u,headers:i};return p.request(c,r)},multipleBatch(n,e){if(!n)throw new Error("Parameter `batchParams` is required when calling `multipleBatch`.");if(!n.requests)throw new Error("Parameter `batchParams.requests` is required when calling `multipleBatch`.");const u={method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:n};return p.request(u,e)},operationIndex({indexName:n,operationIndexParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `operationIndex`.");if(!e)throw new Error("Parameter `operationIndexParams` is required when calling `operationIndex`.");if(!e.operation)throw new Error("Parameter `operationIndexParams.operation` is required when calling `operationIndex`.");if(!e.destination)throw new Error("Parameter `operationIndexParams.destination` is required when calling `operationIndex`.");const c={method:"POST",path:"/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},partialUpdateObject({indexName:n,objectID:e,attributesToUpdate:r,createIfNotExists:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `partialUpdateObject`.");if(!e)throw new Error("Parameter `objectID` is required when calling `partialUpdateObject`.");if(!r)throw new Error("Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.");const u="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.createIfNotExists=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:r};return p.request(d,i)},removeUserId({userID:n},e){if(!n)throw new Error("Parameter `userID` is required when calling `removeUserId`.");const u={method:"DELETE",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},replaceSources({source:n},e){if(!n)throw new Error("Parameter `source` is required when calling `replaceSources`.");const u={method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:n};return p.request(u,e)},restoreApiKey({key:n},e){if(!n)throw new Error("Parameter `key` is required when calling `restoreApiKey`.");const u={method:"POST",path:"/1/keys/{key}/restore".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},saveObject({indexName:n,body:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `saveObject`.");if(!e)throw new Error("Parameter `body` is required when calling `saveObject`.");const c={method:"POST",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)},saveRule({indexName:n,objectID:e,rule:r,forwardToReplicas:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveRule`.");if(!e)throw new Error("Parameter `objectID` is required when calling `saveRule`.");if(!r)throw new Error("Parameter `rule` is required when calling `saveRule`.");if(!r.objectID)throw new Error("Parameter `rule.objectID` is required when calling `saveRule`.");if(!r.consequence)throw new Error("Parameter `rule.consequence` is required when calling `saveRule`.");const u="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.forwardToReplicas=o.toString());const d={method:"PUT",path:u,queryParameters:h,headers:c,data:r};return p.request(d,i)},saveRules({indexName:n,rules:e,forwardToReplicas:r,clearExistingRules:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveRules`.");if(!e)throw new Error("Parameter `rules` is required when calling `saveRules`.");const u="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(n)),c={},h={};r!==void 0&&(h.forwardToReplicas=r.toString()),o!==void 0&&(h.clearExistingRules=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:e};return p.request(d,i)},saveSynonym({indexName:n,objectID:e,synonymHit:r,forwardToReplicas:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveSynonym`.");if(!e)throw new Error("Parameter `objectID` is required when calling `saveSynonym`.");if(!r)throw new Error("Parameter `synonymHit` is required when calling `saveSynonym`.");if(!r.objectID)throw new Error("Parameter `synonymHit.objectID` is required when calling `saveSynonym`.");if(!r.type)throw new Error("Parameter `synonymHit.type` is required when calling `saveSynonym`.");const u="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{objectID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.forwardToReplicas=o.toString());const d={method:"PUT",path:u,queryParameters:h,headers:c,data:r};return p.request(d,i)},saveSynonyms({indexName:n,synonymHit:e,forwardToReplicas:r,replaceExistingSynonyms:o},i){if(!n)throw new Error("Parameter `indexName` is required when calling `saveSynonyms`.");if(!e)throw new Error("Parameter `synonymHit` is required when calling `saveSynonyms`.");const u="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(n)),c={},h={};r!==void 0&&(h.forwardToReplicas=r.toString()),o!==void 0&&(h.replaceExistingSynonyms=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:e};return p.request(d,i)},search(n,e){if(n&&Array.isArray(n)&&(n={requests:n.map(({params:h,...d})=>d.type==="facet"?{...d,...h,type:"facet"}:{...d,...h,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!n)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!n.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const u={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},searchDictionaryEntries({dictionaryName:n,searchDictionaryEntriesParams:e},r){if(!n)throw new Error("Parameter `dictionaryName` is required when calling `searchDictionaryEntries`.");if(!e)throw new Error("Parameter `searchDictionaryEntriesParams` is required when calling `searchDictionaryEntries`.");if(!e.query)throw new Error("Parameter `searchDictionaryEntriesParams.query` is required when calling `searchDictionaryEntries`.");const c={method:"POST",path:"/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchForFacetValues({indexName:n,facetName:e,searchForFacetValuesRequest:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `searchForFacetValues`.");if(!e)throw new Error("Parameter `facetName` is required when calling `searchForFacetValues`.");const h={method:"POST",path:"/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(n)).replace("{facetName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0};return p.request(h,o)},searchRules({indexName:n,searchRulesParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `searchRules`.");const c={method:"POST",path:"/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchSingleIndex({indexName:n,searchParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `searchSingleIndex`.");const c={method:"POST",path:"/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchSynonyms({indexName:n,searchSynonymsParams:e},r){if(!n)throw new Error("Parameter `indexName` is required when calling `searchSynonyms`.");const c={method:"POST",path:"/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e||{},useReadTransporter:!0,cacheable:!0};return p.request(c,r)},searchUserIds(n,e){if(!n)throw new Error("Parameter `searchUserIdsParams` is required when calling `searchUserIds`.");if(!n.query)throw new Error("Parameter `searchUserIdsParams.query` is required when calling `searchUserIds`.");const u={method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},setDictionarySettings(n,e){if(!n)throw new Error("Parameter `dictionarySettingsParams` is required when calling `setDictionarySettings`.");if(!n.disableStandardEntries)throw new Error("Parameter `dictionarySettingsParams.disableStandardEntries` is required when calling `setDictionarySettings`.");const u={method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:n};return p.request(u,e)},setSettings({indexName:n,indexSettings:e,forwardToReplicas:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `setSettings`.");if(!e)throw new Error("Parameter `indexSettings` is required when calling `setSettings`.");const i="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(n)),u={},c={};r!==void 0&&(c.forwardToReplicas=r.toString());const h={method:"PUT",path:i,queryParameters:c,headers:u,data:e};return p.request(h,o)},updateApiKey({key:n,apiKey:e},r){if(!n)throw new Error("Parameter `key` is required when calling `updateApiKey`.");if(!e)throw new Error("Parameter `apiKey` is required when calling `updateApiKey`.");if(!e.acl)throw new Error("Parameter `apiKey.acl` is required when calling `updateApiKey`.");const c={method:"PUT",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(n)),queryParameters:{},headers:{},data:e};return p.request(c,r)}}}function na(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");return Ks({appId:t,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${ot}-${t}`}),U()]}),...s})}const zs=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:ot,searchClient:na},Symbol.toStringTag,{value:"Module"}));var wr="1.41.0",cn=["eu","us"];function Fs(t){return[{url:"data.{region}.algolia.com".replace("{region}",t),accept:"readWrite",protocol:"https"}]}function Ws(t){return t.type==="onDemand"}function Vs(t){return t.type==="schedule"}function Qs(t){return t.type==="subscription"}function Ys({appId:t,apiKey:a,authMode:s,algoliaAgents:l,region:m,...f}){const p=ge(t,a,s),n=qe({hosts:Fs(m),...f,algoliaAgent:Pe({algoliaAgents:l,client:"Ingestion",version:wr}),baseHeaders:{"content-type":"text/plain",...p.headers(),...f.baseHeaders},baseQueryParameters:{...p.queryParameters(),...f.baseQueryParameters}});return{transporter:n,appId:t,apiKey:a,clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})},get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,r){n.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){!s||s==="WithinHeaders"?n.baseHeaders["x-algolia-api-key"]=e:n.baseQueryParameters["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:r,action:o="addObject",waitForTasks:i,batchSize:u=1e3,referenceIndexName:c},h){let d=[],g=0;const P=[],q=Math.floor(u/10)||u,E=r.entries();for(const[w,_]of E)if(d.push(_),(d.length===u||w===r.length-1)&&(P.push(await this.push({indexName:e,pushTaskPayload:{action:o,records:d},referenceIndexName:c},h)),d=[]),i&&P.length>0&&(P.length%q===0||w===r.length-1)){for(const S of P.slice(g,g+q)){if(!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");let b=0;await be({func:async()=>{if(S.eventID===void 0||!S.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:S.runID,eventID:S.eventID}).catch(O=>{if(O.status!==404)throw O})},validate:O=>O!==void 0,aggregator:()=>b+=1,error:{validate:()=>b>=50,message:()=>`The maximum number of retries exceeded. (${b}/50)`},timeout:()=>Math.min(b*500,5e3)})}g+=q}return P},createAuthentication(e,r){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");const c={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return n.request(c,r)},createDestination(e,r){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");const c={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return n.request(c,r)},createSource(e,r){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");const c={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return n.request(c,r)},createTask(e,r){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const c={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return n.request(c,r)},createTaskV1(e,r){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!e.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");const c={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return n.request(c,r)},createTransformation(e,r){if(!e)throw new Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!e.name)throw new Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");const c={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return n.request(c,r)},customDelete({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const h={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customGet({path:e,parameters:r},o){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const h={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{}};return n.request(h,o)},customPost({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const d={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},customPut({path:e,parameters:r,body:o},i){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const d={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:r||{},headers:{},data:o||{}};return n.request(d,i)},deleteAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const c={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const c={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const c={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const c={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTaskV1`.");const c={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},deleteTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `deleteTransformation`.");const c={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},disableTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const c={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},disableTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTaskV1`.");const c={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},enableTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const c={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},enableTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTaskV1`.");const c={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getAuthentication({authenticationID:e},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const c={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getDestination({destinationID:e},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const c={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getEvent({runID:e,eventID:r},o){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!r)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const h={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return n.request(h,o)},getRun({runID:e},r){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const c={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getSource({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const c={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTask({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const c={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTaskV1({taskID:e},r){if(!e)throw new Error("Parameter `taskID` is required when calling `getTaskV1`.");const c={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},getTransformation({transformationID:e},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");const c={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return n.request(c,r)},listAuthentications({itemsPerPage:e,page:r,type:o,platform:i,sort:u,order:c}={},h=void 0){const d="/1/authentications",g={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),r!==void 0&&(P.page=r.toString()),o!==void 0&&(P.type=o.toString()),i!==void 0&&(P.platform=i.toString()),u!==void 0&&(P.sort=u.toString()),c!==void 0&&(P.order=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},listDestinations({itemsPerPage:e,page:r,type:o,authenticationID:i,transformationID:u,sort:c,order:h}={},d=void 0){const g="/1/destinations",P={},q={};e!==void 0&&(q.itemsPerPage=e.toString()),r!==void 0&&(q.page=r.toString()),o!==void 0&&(q.type=o.toString()),i!==void 0&&(q.authenticationID=i.toString()),u!==void 0&&(q.transformationID=u.toString()),c!==void 0&&(q.sort=c.toString()),h!==void 0&&(q.order=h.toString());const E={method:"GET",path:g,queryParameters:q,headers:P};return n.request(E,d)},listEvents({runID:e,itemsPerPage:r,page:o,status:i,type:u,sort:c,order:h,startDate:d,endDate:g},P){if(!e)throw new Error("Parameter `runID` is required when calling `listEvents`.");const q="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),E={},w={};r!==void 0&&(w.itemsPerPage=r.toString()),o!==void 0&&(w.page=o.toString()),i!==void 0&&(w.status=i.toString()),u!==void 0&&(w.type=u.toString()),c!==void 0&&(w.sort=c.toString()),h!==void 0&&(w.order=h.toString()),d!==void 0&&(w.startDate=d.toString()),g!==void 0&&(w.endDate=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},listRuns({itemsPerPage:e,page:r,status:o,type:i,taskID:u,sort:c,order:h,startDate:d,endDate:g}={},P=void 0){const q="/1/runs",E={},w={};e!==void 0&&(w.itemsPerPage=e.toString()),r!==void 0&&(w.page=r.toString()),o!==void 0&&(w.status=o.toString()),i!==void 0&&(w.type=i.toString()),u!==void 0&&(w.taskID=u.toString()),c!==void 0&&(w.sort=c.toString()),h!==void 0&&(w.order=h.toString()),d!==void 0&&(w.startDate=d.toString()),g!==void 0&&(w.endDate=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},listSources({itemsPerPage:e,page:r,type:o,authenticationID:i,sort:u,order:c}={},h=void 0){const d="/1/sources",g={},P={};e!==void 0&&(P.itemsPerPage=e.toString()),r!==void 0&&(P.page=r.toString()),o!==void 0&&(P.type=o.toString()),i!==void 0&&(P.authenticationID=i.toString()),u!==void 0&&(P.sort=u.toString()),c!==void 0&&(P.order=c.toString());const q={method:"GET",path:d,queryParameters:P,headers:g};return n.request(q,h)},listTasks({itemsPerPage:e,page:r,action:o,enabled:i,sourceID:u,sourceType:c,destinationID:h,triggerType:d,withEmailNotifications:g,sort:P,order:q}={},E=void 0){const w="/2/tasks",_={},S={};e!==void 0&&(S.itemsPerPage=e.toString()),r!==void 0&&(S.page=r.toString()),o!==void 0&&(S.action=o.toString()),i!==void 0&&(S.enabled=i.toString()),u!==void 0&&(S.sourceID=u.toString()),c!==void 0&&(S.sourceType=c.toString()),h!==void 0&&(S.destinationID=h.toString()),d!==void 0&&(S.triggerType=d.toString()),g!==void 0&&(S.withEmailNotifications=g.toString()),P!==void 0&&(S.sort=P.toString()),q!==void 0&&(S.order=q.toString());const b={method:"GET",path:w,queryParameters:S,headers:_};return n.request(b,E)},listTasksV1({itemsPerPage:e,page:r,action:o,enabled:i,sourceID:u,destinationID:c,triggerType:h,sort:d,order:g}={},P=void 0){const q="/1/tasks",E={},w={};e!==void 0&&(w.itemsPerPage=e.toString()),r!==void 0&&(w.page=r.toString()),o!==void 0&&(w.action=o.toString()),i!==void 0&&(w.enabled=i.toString()),u!==void 0&&(w.sourceID=u.toString()),c!==void 0&&(w.destinationID=c.toString()),h!==void 0&&(w.triggerType=h.toString()),d!==void 0&&(w.sort=d.toString()),g!==void 0&&(w.order=g.toString());const _={method:"GET",path:q,queryParameters:w,headers:E};return n.request(_,P)},listTransformations({itemsPerPage:e,page:r,sort:o,order:i,type:u}={},c=void 0){const h="/1/transformations",d={},g={};e!==void 0&&(g.itemsPerPage=e.toString()),r!==void 0&&(g.page=r.toString()),o!==void 0&&(g.sort=o.toString()),i!==void 0&&(g.order=i.toString()),u!==void 0&&(g.type=u.toString());const P={method:"GET",path:h,queryParameters:g,headers:d};return n.request(P,c)},push({indexName:e,pushTaskPayload:r,watch:o,referenceIndexName:i},u){if(!e)throw new Error("Parameter `indexName` is required when calling `push`.");if(!r)throw new Error("Parameter `pushTaskPayload` is required when calling `push`.");if(!r.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!r.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `push`.");const c="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),h={},d={};o!==void 0&&(d.watch=o.toString()),i!==void 0&&(d.referenceIndexName=i.toString());const g={method:"POST",path:c,queryParameters:d,headers:h,data:r};return u={timeouts:{connect:18e4,read:18e4,write:18e4,...u?.timeouts}},n.request(g,u)},pushTask({taskID:e,pushTaskPayload:r,watch:o},i){if(!e)throw new Error("Parameter `taskID` is required when calling `pushTask`.");if(!r)throw new Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!r.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!r.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");const u="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),c={},h={};o!==void 0&&(h.watch=o.toString());const d={method:"POST",path:u,queryParameters:h,headers:c,data:r};return i={timeouts:{connect:18e4,read:18e4,write:18e4,...i?.timeouts}},n.request(d,i)},replaceTask({taskID:e,taskReplace:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `replaceTask`.");if(!r)throw new Error("Parameter `taskReplace` is required when calling `replaceTask`.");if(!r.destinationID)throw new Error("Parameter `taskReplace.destinationID` is required when calling `replaceTask`.");if(!r.action)throw new Error("Parameter `taskReplace.action` is required when calling `replaceTask`.");const h={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},runSource({sourceID:e,runSourcePayload:r},o){if(!e)throw new Error("Parameter `sourceID` is required when calling `runSource`.");const h={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return n.request(h,o)},runTask({taskID:e,runTaskPayload:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const h={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return n.request(h,o)},runTaskV1({taskID:e,runTaskPayload:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");const h={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return n.request(h,o)},searchAuthentications(e,r){if(!e)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");const c={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchDestinations(e,r){if(!e)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");const c={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchSources(e,r){if(!e)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");const c={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchTasks(e,r){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");const c={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchTasksV1(e,r){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");const c={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},searchTransformations(e,r){if(!e)throw new Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!e.transformationIDs)throw new Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");const c={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return n.request(c,r)},triggerDockerSourceDiscover({sourceID:e},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const c={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},n.request(c,r)},tryTransformation(e,r){if(!e)throw new Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!e.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");const c={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return n.request(c,r)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:r},o){if(!e)throw new Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!r)throw new Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!r.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");const h={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateAuthentication({authenticationID:e,authenticationUpdate:r},o){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!r)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const h={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateDestination({destinationID:e,destinationUpdate:r},o){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!r)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const h={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateSource({sourceID:e,sourceUpdate:r},o){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const h={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateTask({taskID:e,taskUpdate:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const h={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateTaskV1({taskID:e,taskUpdate:r},o){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!r)throw new Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");const h={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},updateTransformation({transformationID:e,transformationCreate:r},o){if(!e)throw new Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!r)throw new Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!r.name)throw new Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");const h={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return n.request(h,o)},validateSource(e,r=void 0){const c={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},n.request(c,r)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:r},o){if(!e)throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!r)throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");const h={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r};return o={timeouts:{connect:18e4,read:18e4,write:18e4,...o?.timeouts}},n.request(h,o)}}}function nr(t,a,s,l){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");if(!s||s&&(typeof s!="string"||!cn.includes(s)))throw new Error(`\`region\` is required and must be one of the following: ${cn.join(", ")}`);return Ys({appId:t,apiKey:a,region:s,timeouts:{connect:25e3,read:25e3,write:25e3},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${wr}-${t}`}),U()]}),...l})}const Xs=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:wr,ingestionClient:nr,isOnDemandTrigger:Ws,isScheduleTrigger:Vs,isSubscriptionTrigger:Qs},Symbol.toStringTag,{value:"Module"}));var Er="1.41.0";function Js(){return[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}]}function Zs({appId:t,apiKey:a,authMode:s,algoliaAgents:l,...m}){const f=ge(t,a,s),p=qe({hosts:Js(),...m,algoliaAgent:Pe({algoliaAgents:l,client:"Monitoring",version:Er}),baseHeaders:{"content-type":"text/plain",...f.headers(),...m.baseHeaders},baseQueryParameters:{...f.queryParameters(),...m.baseQueryParameters}});return{transporter:p,appId:t,apiKey:a,clearCache(){return Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>{})},get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(n,e){p.algoliaAgent.add({segment:n,version:e})},setClientApiKey({apiKey:n}){!s||s==="WithinHeaders"?p.baseHeaders["x-algolia-api-key"]=n:p.baseQueryParameters["x-algolia-api-key"]=n},customDelete({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const c={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customGet({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const c={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customPost({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const h={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},customPut({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const h={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},getClusterIncidents({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getClusterIncidents`.");const u={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getClusterStatus({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getClusterStatus`.");const u={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getIncidents(n){const i={method:"GET",path:"/1/incidents",queryParameters:{},headers:{}};return p.request(i,n)},getIndexingTime({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getIndexingTime`.");const u={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getLatency({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getLatency`.");const u={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getMetrics({metric:n,period:e},r){if(!n)throw new Error("Parameter `metric` is required when calling `getMetrics`.");if(!e)throw new Error("Parameter `period` is required when calling `getMetrics`.");const c={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(n)).replace("{period}",encodeURIComponent(e)),queryParameters:{},headers:{}};return p.request(c,r)},getReachability({clusters:n},e){if(!n)throw new Error("Parameter `clusters` is required when calling `getReachability`.");const u={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(n)),queryParameters:{},headers:{}};return p.request(u,e)},getServers(n){const i={method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}};return p.request(i,n)},getStatus(n){const i={method:"GET",path:"/1/status",queryParameters:{},headers:{}};return p.request(i,n)}}}function aa(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");return Zs({appId:t,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${Er}-${t}`}),U()]}),...s})}const eo=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Er,monitoringClient:aa},Symbol.toStringTag,{value:"Module"}));var Tr="5.41.0";function to(t){return[{url:`${t}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${t}.algolia.net`,accept:"write",protocol:"https"}].concat(Qn([{url:`${t}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function ro({appId:t,apiKey:a,authMode:s,algoliaAgents:l,...m}){const f=ge(t,a,s),p=qe({hosts:to(t),...m,algoliaAgent:Pe({algoliaAgents:l,client:"Recommend",version:Tr}),baseHeaders:{"content-type":"text/plain",...f.headers(),...m.baseHeaders},baseQueryParameters:{...f.queryParameters(),...m.baseQueryParameters}});return{transporter:p,appId:t,apiKey:a,clearCache(){return Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>{})},get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(n,e){p.algoliaAgent.add({segment:n,version:e})},setClientApiKey({apiKey:n}){!s||s==="WithinHeaders"?p.baseHeaders["x-algolia-api-key"]=n:p.baseQueryParameters["x-algolia-api-key"]=n},batchRecommendRules({indexName:n,model:e,recommendRule:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `batchRecommendRules`.");if(!e)throw new Error("Parameter `model` is required when calling `batchRecommendRules`.");const h={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{}};return p.request(h,o)},customDelete({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customDelete`.");const c={method:"DELETE",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customGet({path:n,parameters:e},r){if(!n)throw new Error("Parameter `path` is required when calling `customGet`.");const c={method:"GET",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{}};return p.request(c,r)},customPost({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPost`.");const h={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},customPut({path:n,parameters:e,body:r},o){if(!n)throw new Error("Parameter `path` is required when calling `customPut`.");const h={method:"PUT",path:"/{path}".replace("{path}",n),queryParameters:e||{},headers:{},data:r||{}};return p.request(h,o)},deleteRecommendRule({indexName:n,model:e,objectID:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `deleteRecommendRule`.");if(!e)throw new Error("Parameter `model` is required when calling `deleteRecommendRule`.");if(!r)throw new Error("Parameter `objectID` is required when calling `deleteRecommendRule`.");const h={method:"DELETE",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return p.request(h,o)},getRecommendRule({indexName:n,model:e,objectID:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `getRecommendRule`.");if(!e)throw new Error("Parameter `model` is required when calling `getRecommendRule`.");if(!r)throw new Error("Parameter `objectID` is required when calling `getRecommendRule`.");const h={method:"GET",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return p.request(h,o)},getRecommendStatus({indexName:n,model:e,taskID:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `getRecommendStatus`.");if(!e)throw new Error("Parameter `model` is required when calling `getRecommendStatus`.");if(!r)throw new Error("Parameter `taskID` is required when calling `getRecommendStatus`.");const h={method:"GET",path:"/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return p.request(h,o)},getRecommendations(n,e){if(n&&Array.isArray(n)&&(n={requests:n}),!n)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!n.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const u={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:n,useReadTransporter:!0,cacheable:!0};return p.request(u,e)},searchRecommendRules({indexName:n,model:e,searchRecommendRulesParams:r},o){if(!n)throw new Error("Parameter `indexName` is required when calling `searchRecommendRules`.");if(!e)throw new Error("Parameter `model` is required when calling `searchRecommendRules`.");const h={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(n)).replace("{model}",encodeURIComponent(e)),queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0};return p.request(h,o)}}}function sa(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");return ro({appId:t,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},logger:ye(),requester:fe(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:U(),requestsCache:U({serializable:!1}),hostsCache:te({caches:[pe({key:`${Tr}-${t}`}),U()]}),...s})}const no=Object.freeze(Object.defineProperty({__proto__:null,apiClientVersion:Tr,recommendClient:sa},Symbol.toStringTag,{value:"Module"}));var oa=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,so=Object.getOwnPropertyNames,oo=Object.prototype.hasOwnProperty,ia=(t,a)=>{for(var s in a)oa(t,s,{get:a[s],enumerable:!0})},io=(t,a,s,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(let m of so(a))!oo.call(t,m)&&m!==s&&oa(t,m,{get:()=>a[m],enumerable:!(l=ao(a,m))||l.enumerable});return t},ue=(t,a,s)=>(io(t,a,"default"),s),ca={};ia(ca,{algoliasearch:()=>ar,apiClientVersion:()=>ot});var se={};ia(se,{apiClientVersion:()=>ot});ue(se,As);ue(se,Is);ue(se,xs);ue(se,Ns);ue(se,js);ue(se,Gs);ue(se,zs);ue(se,Xs);ue(se,eo);ue(se,no);ue(ca,se);function ar(t,a,s){if(!t||typeof t!="string")throw new Error("`appId` is missing.");if(!a||typeof a!="string")throw new Error("`apiKey` is missing.");const l=na(t,a,s);let m;if(s?.transformation){if(!s.transformation.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");m=nr(t,a,s.transformation.region,s)}return{...l,async saveObjectsWithTransformation({indexName:f,objects:p,waitForTasks:n},e){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!s?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");return m.chunkedPush({indexName:f,objects:p,action:"addObject",waitForTasks:n},e)},async partialUpdateObjectsWithTransformation({indexName:f,objects:p,createIfNotExists:n,waitForTasks:e},r){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!s?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");return m.chunkedPush({indexName:f,objects:p,action:n?"partialUpdateObject":"partialUpdateObjectNoCreate",waitForTasks:e},r)},async replaceAllObjectsWithTransformation({indexName:f,objects:p,batchSize:n,scopes:e},r){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!s?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");const o=Math.floor(Math.random()*1e6)+1e5,i=`${f}_tmp_${o}`;e===void 0&&(e=["settings","rules","synonyms"]);try{let u=await this.operationIndex({indexName:f,operationIndexParams:{operation:"copy",destination:i,scope:e}},r);const c=await m.chunkedPush({indexName:i,objects:p,waitForTasks:!0,batchSize:n,referenceIndexName:f},r);await this.waitForTask({indexName:i,taskID:u.taskID}),u=await this.operationIndex({indexName:f,operationIndexParams:{operation:"copy",destination:i,scope:e}},r),await this.waitForTask({indexName:i,taskID:u.taskID});const h=await this.operationIndex({indexName:i,operationIndexParams:{operation:"move",destination:f}},r);return await this.waitForTask({indexName:i,taskID:h.taskID}),{copyOperationResponse:u,watchResponses:c,moveOperationResponse:h}}catch(u){throw await this.deleteIndex({indexName:i}),u}},get _ua(){return l.transporter.algoliaAgent.value},initAbtesting:f=>Jn(f.appId||t,f.apiKey||a,f.region,f.options),initAbtestingV3:f=>Xn(f.appId||t,f.apiKey||a,f.region,f.options),initAnalytics:f=>Zn(f.appId||t,f.apiKey||a,f.region,f.options),initIngestion:f=>nr(f.appId||t,f.apiKey||a,f.region,f.options),initInsights:f=>ea(f.appId||t,f.apiKey||a,f.region,f.options),initMonitoring:(f={})=>aa(f.appId||t,f.apiKey||a,f.options),initPersonalization:f=>ta(f.appId||t,f.apiKey||a,f.region,f.options),initQuerySuggestions:f=>ra(f.appId||t,f.apiKey||a,f.region,f.options),initRecommend:(f={})=>sa(f.appId||t,f.apiKey||a,f.options)}}const un=ir("ALGOLIA_APP_ID")||"",ln=ir("ALGOLIA_API_KEY")||"",hn=ir("ALGOLIA_BLOG_INDEX")||"decentraland-blog",co=Aa.injectEndpoints({endpoints:t=>({searchBlogPosts:t.query({queryFn:async({query:a,hitsPerPage:s=10,page:l=0})=>{try{if(a.length<3)return{data:{results:[],total:0,hasMore:!1}};const f=await ar(un,ln).searchSingleIndex({indexName:hn,searchParams:{query:a,hitsPerPage:s,page:l}}),p=f.hits||[];return{data:{results:await Promise.all(p.map(async e=>{const o=e.imageObject?.sys?.id||"",u=e.categoryObject?.sys?.id||"",[c,h]=await Promise.all([Yr(o),Xr(u)]);return{url:`/blog/${h}/${e.id}`,image:c,title:e._highlightResult?.title?.value||e.title,description:e._highlightResult?.description?.value||e.description}})),total:f.nbHits||0,hasMore:(l+1)*s<(f.nbHits||0)}}}catch(m){return{error:{status:"CUSTOM_ERROR",error:m instanceof Error?m.message:"Unknown error"}}}},providesTags:(a,s,l)=>[{type:"SearchResults",id:l.query}]}),searchBlog:t.query({queryFn:async({query:a,hitsPerPage:s=10,page:l=0})=>{try{if(a.length<3)return{data:[]};const p=(await ar(un,ln).searchSingleIndex({indexName:hn,searchParams:{query:a,hitsPerPage:s,page:l}})).hits||[];return{data:await Promise.all(p.map(async e=>{const o=e.imageObject?.sys?.id||"",u=e.categoryObject?.sys?.id||"",[c,h]=await Promise.all([Yr(o),Xr(u)]);return{id:e.id,categoryId:h,url:`/blog/${h}/${e.id}`,image:c,highlightedTitle:e._highlightResult?.title?.value||e.title,highlightedDescription:e._highlightResult?.description?.value||e.description}}))}}catch(m){return{error:{status:"CUSTOM_ERROR",error:m instanceof Error?m.message:"Unknown error"}}}},providesTags:(a,s,l)=>[{type:"SearchResults",id:l.query}]})}),overrideExisting:!1}),{useSearchBlogPostsQuery:pi,useSearchBlogQuery:uo}=co;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:ua,setPrototypeOf:dn,isFrozen:lo,getPrototypeOf:ho,getOwnPropertyDescriptor:mo}=Object;let{freeze:X,seal:ae,create:la}=Object,{apply:sr,construct:or}=typeof Reflect<"u"&&Reflect;X||(X=function(a){return a});ae||(ae=function(a){return a});sr||(sr=function(a,s,l){return a.apply(s,l)});or||(or=function(a,s){return new a(...s)});const qt=J(Array.prototype.forEach),fo=J(Array.prototype.lastIndexOf),mn=J(Array.prototype.pop),et=J(Array.prototype.push),po=J(Array.prototype.splice),vt=J(String.prototype.toLowerCase),Ft=J(String.prototype.toString),fn=J(String.prototype.match),tt=J(String.prototype.replace),go=J(String.prototype.indexOf),Po=J(String.prototype.trim),oe=J(Object.prototype.hasOwnProperty),Y=J(RegExp.prototype.test),rt=yo(TypeError);function J(t){return function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),m=1;m<s;m++)l[m-1]=arguments[m];return sr(t,a,l)}}function yo(t){return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return or(t,s)}}function k(t,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vt;dn&&dn(t,null);let l=a.length;for(;l--;){let m=a[l];if(typeof m=="string"){const f=s(m);f!==m&&(lo(a)||(a[l]=f),m=f)}t[m]=!0}return t}function qo(t){for(let a=0;a<t.length;a++)oe(t,a)||(t[a]=null);return t}function Ie(t){const a=la(null);for(const[s,l]of ua(t))oe(t,s)&&(Array.isArray(l)?a[s]=qo(l):l&&typeof l=="object"&&l.constructor===Object?a[s]=Ie(l):a[s]=l);return a}function nt(t,a){for(;t!==null;){const l=mo(t,a);if(l){if(l.get)return J(l.get);if(typeof l.value=="function")return J(l.value)}t=ho(t)}function s(){return null}return s}const pn=X(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wt=X(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vt=X(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wo=X(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qt=X(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Eo=X(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gn=X(["#text"]),Pn=X(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Yt=X(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yn=X(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wt=X(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),To=ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),So=ae(/<%[\w\W]*|[\w\W]*%>/gm),vo=ae(/\$\{[\w\W]*/gm),bo=ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),_o=ae(/^aria-[\-\w]+$/),ha=ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ao=ae(/^(?:\w+script|data):/i),Co=ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),da=ae(/^html$/i),Oo=ae(/^[a-z][.\w]*(-[.\w]+)+$/i);var qn=Object.freeze({__proto__:null,ARIA_ATTR:_o,ATTR_WHITESPACE:Co,CUSTOM_ELEMENT:Oo,DATA_ATTR:bo,DOCTYPE_NAME:da,ERB_EXPR:So,IS_ALLOWED_URI:ha,IS_SCRIPT_OR_DATA:Ao,MUSTACHE_EXPR:To,TMPLIT_EXPR:vo});const at={element:1,text:3,progressingInstruction:7,comment:8,document:9},Io=function(){return typeof window>"u"?null:window},Ro=function(a,s){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const m="data-tt-policy-suffix";s&&s.hasAttribute(m)&&(l=s.getAttribute(m));const f="dompurify"+(l?"#"+l:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},wn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ma(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Io();const a=I=>ma(I);if(a.version="3.2.4",a.removed=[],!t||!t.document||t.document.nodeType!==at.document||!t.Element)return a.isSupported=!1,a;let{document:s}=t;const l=s,m=l.currentScript,{DocumentFragment:f,HTMLTemplateElement:p,Node:n,Element:e,NodeFilter:r,NamedNodeMap:o=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:i,DOMParser:u,trustedTypes:c}=t,h=e.prototype,d=nt(h,"cloneNode"),g=nt(h,"remove"),P=nt(h,"nextSibling"),q=nt(h,"childNodes"),E=nt(h,"parentNode");if(typeof p=="function"){const I=s.createElement("template");I.content&&I.content.ownerDocument&&(s=I.content.ownerDocument)}let w,_="";const{implementation:S,createNodeIterator:b,createDocumentFragment:O,getElementsByTagName:R}=s,{importNode:W}=l;let T=wn();a.isSupported=typeof ua=="function"&&typeof E=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:D,TMPLIT_EXPR:N,DATA_ATTR:x,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:Te}=qn;let{IS_ALLOWED_URI:Z}=qn,H=null;const Fe=k({},[...pn,...Wt,...Vt,...Qt,...gn]);let $=null;const it=k({},[...Pn,...Yt,...yn,...wt]);let M=Object.seal(la(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Se=null,Sr=!0,Ot=!0,vr=!1,br=!0,De=!1,It=!0,Ce=!1,Rt=!1,Dt=!1,xe=!1,ct=!1,ut=!1,_r=!0,Ar=!1;const fa="user-content-";let xt=!0,We=!1,Le={},ke=null;const Cr=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Or=null;const Ir=k({},["audio","video","img","source","image","track"]);let Lt=null;const Rr=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ne=we,kt=!1,Nt=null;const pa=k({},[lt,ht,we],Ft);let dt=k({},["mi","mo","mn","ms","mtext"]),mt=k({},["annotation-xml"]);const ga=k({},["title","style","font","a","script"]);let Ve=null;const Pa=["application/xhtml+xml","text/html"],ya="text/html";let K=null,Ue=null;const qa=s.createElement("form"),Dr=function(y){return y instanceof RegExp||y instanceof Function},Ut=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ue&&Ue===y)){if((!y||typeof y!="object")&&(y={}),y=Ie(y),Ve=Pa.indexOf(y.PARSER_MEDIA_TYPE)===-1?ya:y.PARSER_MEDIA_TYPE,K=Ve==="application/xhtml+xml"?Ft:vt,H=oe(y,"ALLOWED_TAGS")?k({},y.ALLOWED_TAGS,K):Fe,$=oe(y,"ALLOWED_ATTR")?k({},y.ALLOWED_ATTR,K):it,Nt=oe(y,"ALLOWED_NAMESPACES")?k({},y.ALLOWED_NAMESPACES,Ft):pa,Lt=oe(y,"ADD_URI_SAFE_ATTR")?k(Ie(Rr),y.ADD_URI_SAFE_ATTR,K):Rr,Or=oe(y,"ADD_DATA_URI_TAGS")?k(Ie(Ir),y.ADD_DATA_URI_TAGS,K):Ir,ke=oe(y,"FORBID_CONTENTS")?k({},y.FORBID_CONTENTS,K):Cr,Ae=oe(y,"FORBID_TAGS")?k({},y.FORBID_TAGS,K):{},Se=oe(y,"FORBID_ATTR")?k({},y.FORBID_ATTR,K):{},Le=oe(y,"USE_PROFILES")?y.USE_PROFILES:!1,Sr=y.ALLOW_ARIA_ATTR!==!1,Ot=y.ALLOW_DATA_ATTR!==!1,vr=y.ALLOW_UNKNOWN_PROTOCOLS||!1,br=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=y.SAFE_FOR_TEMPLATES||!1,It=y.SAFE_FOR_XML!==!1,Ce=y.WHOLE_DOCUMENT||!1,xe=y.RETURN_DOM||!1,ct=y.RETURN_DOM_FRAGMENT||!1,ut=y.RETURN_TRUSTED_TYPE||!1,Dt=y.FORCE_BODY||!1,_r=y.SANITIZE_DOM!==!1,Ar=y.SANITIZE_NAMED_PROPS||!1,xt=y.KEEP_CONTENT!==!1,We=y.IN_PLACE||!1,Z=y.ALLOWED_URI_REGEXP||ha,Ne=y.NAMESPACE||we,dt=y.MATHML_TEXT_INTEGRATION_POINTS||dt,mt=y.HTML_INTEGRATION_POINTS||mt,M=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Dr(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Dr(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ot=!1),ct&&(xe=!0),Le&&(H=k({},gn),$=[],Le.html===!0&&(k(H,pn),k($,Pn)),Le.svg===!0&&(k(H,Wt),k($,Yt),k($,wt)),Le.svgFilters===!0&&(k(H,Vt),k($,Yt),k($,wt)),Le.mathMl===!0&&(k(H,Qt),k($,yn),k($,wt))),y.ADD_TAGS&&(H===Fe&&(H=Ie(H)),k(H,y.ADD_TAGS,K)),y.ADD_ATTR&&($===it&&($=Ie($)),k($,y.ADD_ATTR,K)),y.ADD_URI_SAFE_ATTR&&k(Lt,y.ADD_URI_SAFE_ATTR,K),y.FORBID_CONTENTS&&(ke===Cr&&(ke=Ie(ke)),k(ke,y.FORBID_CONTENTS,K)),xt&&(H["#text"]=!0),Ce&&k(H,["html","head","body"]),H.table&&(k(H,["tbody"]),delete Ae.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw rt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=y.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else w===void 0&&(w=Ro(c,m)),w!==null&&typeof _=="string"&&(_=w.createHTML(""));X&&X(y),Ue=y}},xr=k({},[...Wt,...Vt,...wo]),Lr=k({},[...Qt,...Eo]),wa=function(y){let v=E(y);(!v||!v.tagName)&&(v={namespaceURI:Ne,tagName:"template"});const C=vt(y.tagName),j=vt(v.tagName);return Nt[y.namespaceURI]?y.namespaceURI===ht?v.namespaceURI===we?C==="svg":v.namespaceURI===lt?C==="svg"&&(j==="annotation-xml"||dt[j]):!!xr[C]:y.namespaceURI===lt?v.namespaceURI===we?C==="math":v.namespaceURI===ht?C==="math"&&mt[j]:!!Lr[C]:y.namespaceURI===we?v.namespaceURI===ht&&!mt[j]||v.namespaceURI===lt&&!dt[j]?!1:!Lr[C]&&(ga[C]||!xr[C]):!!(Ve==="application/xhtml+xml"&&Nt[y.namespaceURI]):!1},he=function(y){et(a.removed,{element:y});try{E(y).removeChild(y)}catch{g(y)}},ft=function(y,v){try{et(a.removed,{attribute:v.getAttributeNode(y),from:v})}catch{et(a.removed,{attribute:null,from:v})}if(v.removeAttribute(y),y==="is")if(xe||ct)try{he(v)}catch{}else try{v.setAttribute(y,"")}catch{}},kr=function(y){let v=null,C=null;if(Dt)y="<remove></remove>"+y;else{const F=fn(y,/^[\r\n\t ]+/);C=F&&F[0]}Ve==="application/xhtml+xml"&&Ne===we&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const j=w?w.createHTML(y):y;if(Ne===we)try{v=new u().parseFromString(j,Ve)}catch{}if(!v||!v.documentElement){v=S.createDocument(Ne,"template",null);try{v.documentElement.innerHTML=kt?_:j}catch{}}const V=v.body||v.documentElement;return y&&C&&V.insertBefore(s.createTextNode(C),V.childNodes[0]||null),Ne===we?R.call(v,Ce?"html":"body")[0]:Ce?v.documentElement:V},Nr=function(y){return b.call(y.ownerDocument||y,y,r.SHOW_ELEMENT|r.SHOW_COMMENT|r.SHOW_TEXT|r.SHOW_PROCESSING_INSTRUCTION|r.SHOW_CDATA_SECTION,null)},Bt=function(y){return y instanceof i&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof o)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},Ur=function(y){return typeof n=="function"&&y instanceof n};function Ee(I,y,v){qt(I,C=>{C.call(a,y,v,Ue)})}const Br=function(y){let v=null;if(Ee(T.beforeSanitizeElements,y,null),Bt(y))return he(y),!0;const C=K(y.nodeName);if(Ee(T.uponSanitizeElement,y,{tagName:C,allowedTags:H}),y.hasChildNodes()&&!Ur(y.firstElementChild)&&Y(/<[/\w]/g,y.innerHTML)&&Y(/<[/\w]/g,y.textContent)||y.nodeType===at.progressingInstruction||It&&y.nodeType===at.comment&&Y(/<[/\w]/g,y.data))return he(y),!0;if(!H[C]||Ae[C]){if(!Ae[C]&&Mr(C)&&(M.tagNameCheck instanceof RegExp&&Y(M.tagNameCheck,C)||M.tagNameCheck instanceof Function&&M.tagNameCheck(C)))return!1;if(xt&&!ke[C]){const j=E(y)||y.parentNode,V=q(y)||y.childNodes;if(V&&j){const F=V.length;for(let ee=F-1;ee>=0;--ee){const de=d(V[ee],!0);de.__removalCount=(y.__removalCount||0)+1,j.insertBefore(de,P(y))}}}return he(y),!0}return y instanceof e&&!wa(y)||(C==="noscript"||C==="noembed"||C==="noframes")&&Y(/<\/no(script|embed|frames)/i,y.innerHTML)?(he(y),!0):(De&&y.nodeType===at.text&&(v=y.textContent,qt([A,D,N],j=>{v=tt(v,j," ")}),y.textContent!==v&&(et(a.removed,{element:y.cloneNode()}),y.textContent=v)),Ee(T.afterSanitizeElements,y,null),!1)},jr=function(y,v,C){if(_r&&(v==="id"||v==="name")&&(C in s||C in qa))return!1;if(!(Ot&&!Se[v]&&Y(x,v))){if(!(Sr&&Y(z,v))){if(!$[v]||Se[v]){if(!(Mr(y)&&(M.tagNameCheck instanceof RegExp&&Y(M.tagNameCheck,y)||M.tagNameCheck instanceof Function&&M.tagNameCheck(y))&&(M.attributeNameCheck instanceof RegExp&&Y(M.attributeNameCheck,v)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(v))||v==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&Y(M.tagNameCheck,C)||M.tagNameCheck instanceof Function&&M.tagNameCheck(C))))return!1}else if(!Lt[v]){if(!Y(Z,tt(C,le,""))){if(!((v==="src"||v==="xlink:href"||v==="href")&&y!=="script"&&go(C,"data:")===0&&Or[y])){if(!(vr&&!Y(re,tt(C,le,"")))){if(C)return!1}}}}}}return!0},Mr=function(y){return y!=="annotation-xml"&&fn(y,Te)},Hr=function(y){Ee(T.beforeSanitizeAttributes,y,null);const{attributes:v}=y;if(!v||Bt(y))return;const C={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let j=v.length;for(;j--;){const V=v[j],{name:F,namespaceURI:ee,value:de}=V,Qe=K(F);let Q=F==="value"?de:Po(de);if(C.attrName=Qe,C.attrValue=Q,C.keepAttr=!0,C.forceKeepAttr=void 0,Ee(T.uponSanitizeAttribute,y,C),Q=C.attrValue,Ar&&(Qe==="id"||Qe==="name")&&(ft(F,y),Q=fa+Q),It&&Y(/((--!?|])>)|<\/(style|title)/i,Q)){ft(F,y);continue}if(C.forceKeepAttr||(ft(F,y),!C.keepAttr))continue;if(!br&&Y(/\/>/i,Q)){ft(F,y);continue}De&&qt([A,D,N],$r=>{Q=tt(Q,$r," ")});const Gr=K(y.nodeName);if(jr(Gr,Qe,Q)){if(w&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!ee)switch(c.getAttributeType(Gr,Qe)){case"TrustedHTML":{Q=w.createHTML(Q);break}case"TrustedScriptURL":{Q=w.createScriptURL(Q);break}}try{ee?y.setAttributeNS(ee,F,Q):y.setAttribute(F,Q),Bt(y)?he(y):mn(a.removed)}catch{}}}Ee(T.afterSanitizeAttributes,y,null)},Ea=function I(y){let v=null;const C=Nr(y);for(Ee(T.beforeSanitizeShadowDOM,y,null);v=C.nextNode();)Ee(T.uponSanitizeShadowNode,v,null),Br(v),Hr(v),v.content instanceof f&&I(v.content);Ee(T.afterSanitizeShadowDOM,y,null)};return a.sanitize=function(I){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=null,C=null,j=null,V=null;if(kt=!I,kt&&(I="<!-->"),typeof I!="string"&&!Ur(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw rt("dirty is not a string, aborting")}else throw rt("toString is not a function");if(!a.isSupported)return I;if(Rt||Ut(y),a.removed=[],typeof I=="string"&&(We=!1),We){if(I.nodeName){const de=K(I.nodeName);if(!H[de]||Ae[de])throw rt("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof n)v=kr("<!---->"),C=v.ownerDocument.importNode(I,!0),C.nodeType===at.element&&C.nodeName==="BODY"||C.nodeName==="HTML"?v=C:v.appendChild(C);else{if(!xe&&!De&&!Ce&&I.indexOf("<")===-1)return w&&ut?w.createHTML(I):I;if(v=kr(I),!v)return xe?null:ut?_:""}v&&Dt&&he(v.firstChild);const F=Nr(We?I:v);for(;j=F.nextNode();)Br(j),Hr(j),j.content instanceof f&&Ea(j.content);if(We)return I;if(xe){if(ct)for(V=O.call(v.ownerDocument);v.firstChild;)V.appendChild(v.firstChild);else V=v;return($.shadowroot||$.shadowrootmode)&&(V=W.call(l,V,!0)),V}let ee=Ce?v.outerHTML:v.innerHTML;return Ce&&H["!doctype"]&&v.ownerDocument&&v.ownerDocument.doctype&&v.ownerDocument.doctype.name&&Y(da,v.ownerDocument.doctype.name)&&(ee="<!DOCTYPE "+v.ownerDocument.doctype.name+`>
2
2
  `+ee),De&&qt([A,D,N],de=>{ee=tt(ee,de," ")}),w&&ut?w.createHTML(ee):ee},a.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(I),Rt=!0},a.clearConfig=function(){Ue=null,Rt=!1},a.isValidAttribute=function(I,y,v){Ue||Ut({});const C=K(I),j=K(y);return jr(C,j,v)},a.addHook=function(I,y){typeof y=="function"&&et(T[I],y)},a.removeHook=function(I,y){if(y!==void 0){const v=fo(T[I],y);return v===-1?void 0:po(T[I],v,1)[0]}return mn(T[I])},a.removeHooks=function(I){T[I]=[]},a.removeAllHooks=function(){T=wn()},a}var Do=ma();const En=t=>Do.sanitize(t,{ALLOWED_TAGS:["em","mark"],ALLOWED_ATTR:[]}),xo=t=>{try{const a=new URL(t);return a.protocol!=="https:"?"":a.toString().replace(/"/g,"%22")}catch{return""}},Lo=B(G,{shouldForwardProp:t=>t!=="$hasResults"})(({theme:t,$hasResults:a})=>({position:"relative",width:"auto",zIndex:a?t.zIndex.modal:1,[t.breakpoints.down("sm")]:{width:"100%"}})),ko=B(G)(({theme:t})=>({position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:t.zIndex.modal-1})),No=B(G)(()=>({position:"relative",display:"flex",alignItems:"center",width:"100%"})),Uo=B(G)(({theme:t})=>({width:"300px",padding:`${t.spacing(1.5)} ${t.spacing(5)} ${t.spacing(1.5)} ${t.spacing(2)}`,border:"1px solid rgba(255, 255, 255, 0.15)",borderRadius:t.spacing(1),backgroundColor:"rgba(255, 255, 255, 0.05)",color:t.palette.text.primary,fontSize:"15px",outline:"none",transition:"all 200ms ease","&::placeholder":{color:"rgba(255, 255, 255, 0.5)"},"&:focus":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.25)"},"@media (max-width: 1450px)":{width:"100%",marginBottom:t.spacing(2)}})).withComponent("input"),Bo=B(G)(({theme:t})=>({position:"absolute",right:t.spacing(1.5),top:"50%",transform:"translateY(-50%)",background:"none",border:"none",color:"rgba(255, 255, 255, 0.5)",fontSize:"24px",cursor:"pointer",padding:t.spacing(.5),lineHeight:1,transition:"color 200ms ease","&:hover":{color:t.palette.text.primary}})).withComponent("button"),jo=B(G)(({theme:t})=>({position:"absolute",top:`calc(100% + ${t.spacing(1)})`,right:0,width:"500px",maxWidth:"90vw",backgroundColor:t.palette.background.paper,borderRadius:t.spacing(1.5),boxShadow:"0 8px 24px rgba(0, 0, 0, 0.4)",listStyleType:"none",margin:0,padding:t.spacing(1),maxHeight:"600px",overflowY:"auto",zIndex:t.zIndex.modal+1,"@media (max-width: 1450px)":{width:`calc(100vw - ${t.spacing(6)})`,left:0,right:"auto"}})).withComponent("ul"),Mo=B(G,{shouldForwardProp:t=>t!=="$selected"})(({theme:t,$selected:a})=>({borderRadius:t.spacing(1),backgroundColor:a?t.palette.action.hover:"transparent",transition:"background-color 200ms ease",marginBottom:t.spacing(.5),"&:last-child":{marginBottom:0}})).withComponent("li"),Ho=B(ur)(({theme:t})=>({display:"flex",padding:t.spacing(1.5),textDecoration:"none",color:"inherit",gap:t.spacing(1.5)})),Go=B(G,{shouldForwardProp:t=>t!=="$image"})(({theme:t,$image:a})=>({width:"80px",height:"80px",flexShrink:0,borderRadius:t.spacing(1),backgroundColor:"rgba(255, 255, 255, 0.05)",backgroundImage:a?`url("${xo(a)}")`:"none",backgroundSize:"cover",backgroundPosition:"center"})),$o=B(G)(({theme:t})=>({flex:1,display:"flex",flexDirection:"column",gap:t.spacing(.5),overflow:"hidden"})),Ko=B(G)(({theme:t})=>({color:t.palette.text.primary,fontSize:"15px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& em":{fontStyle:"normal",color:_t.primary}})),zo=B(G)(({theme:t})=>({color:t.palette.text.secondary,fontSize:"13px",lineHeight:"1.5",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical","& em":{fontStyle:"normal",color:_t.primary}})),Xt=B(G)(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"center",padding:`${t.spacing(5)} ${t.spacing(2.5)}`,textAlign:"center",color:t.palette.text.secondary,"& strong":{color:t.palette.text.primary,fontSize:"17px",marginBottom:t.spacing(1)},"& span":{fontSize:"15px"}})).withComponent("li"),Tn=B(G)(({theme:t})=>({fontSize:"48px",marginBottom:t.spacing(2),opacity:.5})),Fo=B(G,{shouldForwardProp:t=>t!=="$selected"})(({theme:t,$selected:a})=>({borderRadius:t.spacing(1),backgroundColor:a?t.palette.action.hover:"transparent",transition:"background-color 200ms ease",marginTop:t.spacing(.5)})).withComponent("li"),Wo=B(ur)(({theme:t})=>({display:"block",padding:t.spacing(1.5),textAlign:"center",color:_t.primary,fontSize:"15px",fontWeight:500,textDecoration:"none",transition:"opacity 200ms ease","&:hover":{opacity:.8}}));function Vo(t,a){if(typeof t=="object"&&t!==null&&"error"in t){const s=t.error;if(typeof s=="string")return s}return a}const Qo=({placeholder:t,onClose:a})=>{const{t:s}=bn(),l=Ta(),[m,f]=ie.useState(""),[p,n]=ie.useState(-1),[e,r]=ie.useState("");ie.useEffect(()=>{const q=setTimeout(()=>{r(m)},300);return()=>clearTimeout(q)},[m]);const{data:o=[],isLoading:i,error:u,isError:c}=uo({query:e,hitsPerPage:5,page:0},{skip:e.trim().length<=2}),h=ie.useCallback(()=>{f(""),n(-1),a?.()},[a]),d=ie.useCallback(q=>{const E=o.length>3?4:o.length;if(q.key==="ArrowUp")q.preventDefault(),n(w=>w<=0?E:w-1);else if(q.key==="ArrowDown")q.preventDefault(),n(w=>w>=E?0:w+1);else if(q.key==="Enter"){if(q.preventDefault(),p===4||p===-1)l(`/blog/search?q=${encodeURIComponent(m)}`);else if(p>=0&&o[p]){const w=o[p];l(`/blog/${w.categoryId}/${w.id}`)}h()}else q.key==="Escape"&&h()},[m,p,o,l,h]),g=m.trim().length>2,P=o.length>0;return L.jsxs(Lo,{$hasResults:g,children:[g&&L.jsx(ko,{onClick:h}),L.jsxs(No,{children:[L.jsx(Uo,{type:"text",value:m,onChange:q=>f(q.target.value),onKeyDown:d,placeholder:t||s("search.placeholder")}),m&&L.jsx(Bo,{onClick:h,"aria-label":s("search.clear"),children:"×"})]}),g&&L.jsxs(jo,{children:[i&&L.jsx(Xt,{children:L.jsx("span",{children:s("search.searching")})}),!i&&c&&L.jsxs(Xt,{children:[L.jsx(Tn,{children:"⚠️"}),L.jsx("strong",{children:s("search.error")}),L.jsx("span",{children:Vo(u,s("error.generic"))})]}),!i&&!c&&!P&&L.jsxs(Xt,{children:[L.jsx(Tn,{children:"🔍"}),L.jsx("strong",{children:s("search.no_matches")}),L.jsx("span",{children:s("search.try_something_else")})]}),!i&&!c&&P&&o.slice(0,4).map((q,E)=>L.jsx(Mo,{$selected:E===p,onMouseEnter:()=>n(E),children:L.jsxs(Ho,{to:`/blog/${q.categoryId}/${q.id}`,onClick:h,children:[L.jsx(Go,{$image:q.image}),L.jsxs($o,{children:[L.jsx(Ko,{dangerouslySetInnerHTML:{__html:En(q.highlightedTitle)}}),L.jsx(zo,{dangerouslySetInnerHTML:{__html:En(q.highlightedDescription)}})]})]})},q.id)),!i&&!c&&o.length>4&&L.jsx(Fo,{$selected:p===4,onMouseEnter:()=>n(4),children:L.jsx(Wo,{to:`/blog/search?q=${encodeURIComponent(m)}`,onClick:h,children:s("search.see_more_results")})})]})]})},Yo="96px",Xo=B(G,{shouldForwardProp:t=>t!=="$embedded"})(({$embedded:t})=>({width:"100%",...t&&{marginTop:Yo}})),Jo=B(G)(({theme:t})=>({paddingTop:t.spacing(2),height:"84px",position:"relative",borderBottom:"1px solid",borderColor:t.palette.divider,display:"flex","@media (max-width: 1450px)":{height:"auto"}})),Zo=B(G)(({theme:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",margin:"0 auto",padding:`0 ${t.spacing(3)}`,"@media (max-width: 1450px)":{flexDirection:"column-reverse",alignItems:"flex-start"}})),ei=B(G)(({theme:t})=>({overflowX:"auto",overflowY:"hidden",width:"auto","@media (max-width: 1450px)":{width:"100%",paddingBottom:t.spacing(1)}})).withComponent("nav"),ti=B(G)(()=>({display:"flex",flexDirection:"row",listStyleType:"none",margin:0,padding:0,minWidth:"210px"})).withComponent("ul"),Sn=B(G)(({theme:t})=>({marginRight:t.spacing(4),whiteSpace:"nowrap"})).withComponent("li"),vn=B(ur,{shouldForwardProp:t=>t!=="$active"})(({theme:t,$active:a})=>({color:t.palette.text.primary,display:"flex",alignItems:"center",fontSize:"17px",fontWeight:a?700:400,height:"64px",padding:0,position:"relative",textDecoration:"none",WebkitTapHighlightColor:"transparent","&::after":{content:'""',position:"absolute",height:"1px",backgroundColor:_t.primary,left:0,right:0,bottom:0,opacity:a?1:0,transition:"opacity 250ms ease"},"&:hover::after":{opacity:1}})),ri=({active:t,embedded:a})=>{const{t:s}=bn(),l=Sa(),{data:m=[]}=us(),f=ie.useMemo(()=>m.filter(n=>n.isShownInMenu),[m]),p=ie.useCallback(n=>t?t==="all_articles"&&n==="/blog"?!0:`/blog/${t}`===n:l.pathname===n,[t,l.pathname]);return L.jsx(Xo,{$embedded:a,children:L.jsx(Jo,{children:L.jsxs(Zo,{children:[L.jsx(ei,{children:L.jsxs(ti,{children:[L.jsx(Sn,{children:L.jsx(vn,{to:"/blog",$active:p("/blog")||t==="all_articles",children:s("blog.all_articles")})}),f.map(n=>L.jsx(Sn,{children:L.jsx(vn,{to:`/blog/${n.slug}`,$active:p(`/blog/${n.slug}`),children:n.title})},n.id))]})}),L.jsx(Qo,{})]})})})},ni=B(G)(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",paddingTop:64,[t.breakpoints.up("md")]:{paddingTop:96}})),ai=B(G)(({theme:t})=>({flex:1,padding:t.spacing(5,0,2,0),maxWidth:t.spacing(133),margin:"0 auto",[t.breakpoints.down("md")]:{padding:t.spacing(5,2,2,2)}}));function gi({children:t,activeCategory:a,banner:s,showBlogNavigation:l=!0,relatedPosts:m}){return L.jsx(Gn,{children:L.jsxs(ni,{children:[l&&L.jsx(ri,{active:a}),s,L.jsx(ai,{component:"main",children:t}),m]})})}export{gi as B,ui as H,fi as a,hi as b,En as c,pi as d,_n as e,ss as f,li as g,di as h,Ke as l,xo as s,mi as u};