@abtnode/webapp 1.16.34 → 1.16.35

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 (208) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-CB3E_i_7.js → Add-Iqq5UL4X.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-CfqqzEVC.js → ArrowDropDown-BzdnsirE.js} +1 -1
  5. package/dist/assets/{Autocomplete-CA8T_8VG.js → Autocomplete-BjYb6zBA.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-CixjL8_p.js → Breadcrumbs-B_yTpaGI.js} +1 -1
  7. package/dist/assets/{ButtonGroup-XrPwO8Q6.js → ButtonGroup-B9g57_Ix.js} +1 -1
  8. package/dist/assets/{CSSTransition-DeoxwYwB.js → CSSTransition-Bmy9En_5.js} +1 -1
  9. package/dist/assets/{CheckCircle-BBxMZden.js → CheckCircle-BSPdwpaz.js} +1 -1
  10. package/dist/assets/{ChevronLeft-BVEhqL0a.js → ChevronLeft-DIrjaRfk.js} +1 -1
  11. package/dist/assets/{ChevronRight-Dgndy_Tx.js → ChevronRight-BhDKV57P.js} +1 -1
  12. package/dist/assets/{Delete-D7NoNb87.js → Delete-Cgqm12Xe.js} +1 -1
  13. package/dist/assets/{DeleteOutline-CehpYKMD.js → DeleteOutline-DfpoQfad.js} +1 -1
  14. package/dist/assets/{Done-BxwBGo9Z.js → Done-CQmwtYHM.js} +1 -1
  15. package/dist/assets/{Edit-t5t3YBFr.js → Edit-C8sUZUU6.js} +1 -1
  16. package/dist/assets/{EditIcon-DPfkBGTz.js → EditIcon-CZCunhmA.js} +1 -1
  17. package/dist/assets/{ExpandMore-BiJn2W3A.js → ExpandMore-BYtoX48D.js} +1 -1
  18. package/dist/assets/{Google-Ccnubb91.js → Google-DKZLPo7-.js} +1 -1
  19. package/dist/assets/{HelpOutline-BqTojNnK.js → HelpOutline-DGp-1BRD.js} +1 -1
  20. package/dist/assets/{Https-amX5pnZ-.js → Https-BYryT_bQ.js} +1 -1
  21. package/dist/assets/{InputAdornment-1LTeHxh6.js → InputAdornment-vuq-FjCl.js} +1 -1
  22. package/dist/assets/{InputLabel-BEvb6pBW.js → InputLabel-BpHdIT50.js} +1 -1
  23. package/dist/assets/{LastPage-__GqzflZ.js → LastPage-Cr-0h2EM.js} +1 -1
  24. package/dist/assets/{Launch-Biswalm8.js → Launch-rq__ygCr.js} +1 -1
  25. package/dist/assets/{Link-D-d6ABah.js → Link-DdW83tAD.js} +1 -1
  26. package/dist/assets/{ListSubheader-D01PmlUo.js → ListSubheader-D0hIXr7u.js} +1 -1
  27. package/dist/assets/{LoadingButton-DEoIaYnW.js → LoadingButton-DM3opAqK.js} +1 -1
  28. package/dist/assets/{LockIcon-LoltP6V8.js → LockIcon-DCJGPPEt.js} +1 -1
  29. package/dist/assets/{Loop-Md-TPW17.js → Loop-nI3ml_tu.js} +1 -1
  30. package/dist/assets/{MoreHoriz-C7pSvKTB.js → MoreHoriz-BLXWI1Fn.js} +1 -1
  31. package/dist/assets/{MoreVert-Cf6FwqrB.js → MoreVert-CVu4BzQC.js} +1 -1
  32. package/dist/assets/{Pagination-CKSHSfPE.js → Pagination-Zy0ZVuUr.js} +1 -1
  33. package/dist/assets/{Public-BVz1VeTj.js → Public-DpP3zQ2V.js} +1 -1
  34. package/dist/assets/{SchemaReference.es-BKsuZfnr.js → SchemaReference.es-spndC1oz.js} +1 -1
  35. package/dist/assets/{Search-DVTTUfAR.js → Search-DgsnShxd.js} +1 -1
  36. package/dist/assets/{Select-ZoGQlFtQ.js → Select-C9prPdE8.js} +1 -1
  37. package/dist/assets/{ShoppingCart-Bs1vpvBu.js → ShoppingCart-BMe5IDQI.js} +1 -1
  38. package/dist/assets/{Skeleton-kSow7Hmt.js → Skeleton-BrUMN46n.js} +1 -1
  39. package/dist/assets/{Stepper-DHyMnin3.js → Stepper-vUXTA0k0.js} +1 -1
  40. package/dist/assets/{TextField-DAI8Qdpe.js → TextField-DmmMqMAo.js} +1 -1
  41. package/dist/assets/{ToggleButtonGroup-BqAg9PDl.js → ToggleButtonGroup-Ce-1uV__.js} +1 -1
  42. package/dist/assets/{ViewColumn-B-n8_W0D.js → ViewColumn-avwxMG4J.js} +1 -1
  43. package/dist/assets/{ViewList-CRm6tuSw.js → ViewList-CC4-2p7Y.js} +1 -1
  44. package/dist/assets/{_createAggregator-C8I6G1rY.js → _createAggregator-CB0GKIBb.js} +1 -1
  45. package/dist/assets/{actions--Jh9Ytkt.js → actions-C0Zbx3QK.js} +1 -1
  46. package/dist/assets/{actions-ChzBM1oM.js → actions-d05pHP8u.js} +1 -1
  47. package/dist/assets/{agreement-Bya0zAe5.js → agreement-Bz4EKxUK.js} +1 -1
  48. package/dist/assets/api-DUyjcTBU.js +1 -0
  49. package/dist/assets/{app-avatar-CkwqyV_0.js → app-avatar-CulnXVaa.js} +1 -1
  50. package/dist/assets/ar-BDRVvPrM.js +3 -0
  51. package/dist/assets/{audit-logs-D-hcAUw3.js → audit-logs-3c6G-2jN.js} +1 -1
  52. package/dist/assets/{base32-qDJD7e6F.js → base32-CHpjH8PG.js} +1 -1
  53. package/dist/assets/blocklet-BysF7NjN.js +1 -0
  54. package/dist/assets/{brace-fold.es-DGwXyxd0.js → brace-fold.es-CIhjNimf.js} +1 -1
  55. package/dist/assets/{bundle-avatar-CAMrkHMQ.js → bundle-avatar-CqTlQZdw.js} +1 -1
  56. package/dist/assets/{chart-X4Bt4jVl.js → chart-BV_xvVd1.js} +1 -1
  57. package/dist/assets/{click-to-copy-cyfJmCk0.js → click-to-copy-D6a3LbT7.js} +1 -1
  58. package/dist/assets/{closebrackets.es-BgVawAXa.js → closebrackets.es-D1Zn5koL.js} +1 -1
  59. package/dist/assets/{codemirror.es-BoE9lBuH.js → codemirror.es-DXnzri9H.js} +1 -1
  60. package/dist/assets/{comment.es-B63PqK2d.js → comment.es-DvMop7gW.js} +1 -1
  61. package/dist/assets/{config-navigation-C4GRMVsQ.js → config-navigation-CbheNo97.js} +3 -3
  62. package/dist/assets/{connect-to-DBFguNNN.js → connect-to-wLmbAcvg.js} +1 -1
  63. package/dist/assets/de-B227a1no.js +3 -0
  64. package/dist/assets/{delete-confirm-BiicGoxV.js → delete-confirm-CG9pn4Op.js} +1 -1
  65. package/dist/assets/{detail-BJdKApB9.js → detail-CiYveroN.js} +3 -3
  66. package/dist/assets/{dialog.es-CKZU7uWD.js → dialog.es-BKReOq1S.js} +1 -1
  67. package/dist/assets/{download-ChxYFn7N.js → download-C3ZD7Sji.js} +1 -1
  68. package/dist/assets/emotion-react.browser.esm-Ce5DYL2G.js +1 -0
  69. package/dist/assets/es-DAn9P2pX.js +3 -0
  70. package/dist/assets/{foldgutter.es-BV9veuLJ.js → foldgutter.es-BSJD2IC7.js} +1 -1
  71. package/dist/assets/fr-hW_Tvq9a.js +3 -0
  72. package/dist/assets/{get-safe-url-Dt9rPUt5.js → get-safe-url-D9TInGJ7.js} +1 -1
  73. package/dist/assets/{get-safe-url-QTk1Sdfr.js → get-safe-url-d4wdsWI-.js} +1 -1
  74. package/dist/assets/getValidReactChildren-CxWlB_GY.js +1 -0
  75. package/dist/assets/hi-6yAhJdFx.js +1 -0
  76. package/dist/assets/{hint.es-DAtLgdHT.js → hint.es-B_n7A6VT.js} +1 -1
  77. package/dist/assets/{hint.es2-VXU0fpwG.js → hint.es2-Cmps2vt6.js} +1 -1
  78. package/dist/assets/id-BMkTW_Ii.js +3 -0
  79. package/dist/assets/{iframe-CDtW5AKp.js → iframe-BKue5fLa.js} +1 -1
  80. package/dist/assets/{index-DKtwy9xB.js → index-B7UCZsjO.js} +1 -1
  81. package/dist/assets/{index-BzuXYnd8.js → index-B8LxINcc.js} +1 -1
  82. package/dist/assets/{index-BzNA0CqE.js → index-BBO4eV6M.js} +1 -1
  83. package/dist/assets/{index-D7XN3Ep7.js → index-BEA-r-Xt.js} +1 -1
  84. package/dist/assets/{index-CuulkVT6.js → index-BZpDshq_.js} +1 -1
  85. package/dist/assets/{index-CpcFfAqd.js → index-Bjz36idA.js} +1 -1
  86. package/dist/assets/{index-CMciRqbU.js → index-BlzJjap-.js} +1 -1
  87. package/dist/assets/{index-BVo1y4px.js → index-Bnj8RUhY.js} +1 -1
  88. package/dist/assets/{index-gqghhYg-.js → index-BotJ3AX5.js} +1 -1
  89. package/dist/assets/{index-BqY9yKTd.js → index-Bqlp4s5C.js} +1 -1
  90. package/dist/assets/{index-DkBqG4kx.js → index-BsQBtUGA.js} +1 -1
  91. package/dist/assets/{index-CqRkHpDP.js → index-BxmndiW6.js} +1 -1
  92. package/dist/assets/{index-BAFoOKLc.js → index-C8YFeWmi.js} +1 -1
  93. package/dist/assets/{index-DiOMxvTK.js → index-CABG6WnA.js} +1 -1
  94. package/dist/assets/{index-Cvos3rah.js → index-CF-46tr4.js} +1 -1
  95. package/dist/assets/{index-1m57D84j.js → index-COjbf0ze.js} +1 -1
  96. package/dist/assets/{index-B4paaVul.js → index-CWKzScD8.js} +3 -3
  97. package/dist/assets/{index-CHFZEsTy.js → index-CWTorMDl.js} +1 -1
  98. package/dist/assets/{index-BBwK0xsH.js → index-CXsdGe6B.js} +1 -1
  99. package/dist/assets/{index-B422IDQn.js → index-CXxy8kEI.js} +1 -1
  100. package/dist/assets/{index-CHm9qPJD.js → index-CcQsJNy1.js} +1 -1
  101. package/dist/assets/{index-D-ZaUnBi.js → index-CezAO7BR.js} +1 -1
  102. package/dist/assets/{index-DcUEykKc.js → index-Cgo_tcN6.js} +5 -5
  103. package/dist/assets/{index-DEy7D_Af.js → index-CnIyAnd4.js} +1 -1
  104. package/dist/assets/{index-Bam7k3he.js → index-Cq1Ew3yw.js} +1 -1
  105. package/dist/assets/{index-D_9nA38Z.js → index-Csp4QH_V.js} +1 -1
  106. package/dist/assets/{index-CwCvYckH.js → index-Cu_P5aPZ.js} +1 -1
  107. package/dist/assets/{index-B5aAzE-y.js → index-CvGXEvkW.js} +1 -1
  108. package/dist/assets/{index-BPomuV_D.js → index-CvqQay-i.js} +1 -1
  109. package/dist/assets/{index-BuCRKgwB.js → index-CwFt9Te9.js} +1 -1
  110. package/dist/assets/{index-fz_DOQ-g.js → index-D2z1mjPq.js} +1 -1
  111. package/dist/assets/index-D3iLUVT_.js +5 -0
  112. package/dist/assets/{index-D1i_dZNg.js → index-D6AgsP-4.js} +1 -1
  113. package/dist/assets/{index-DIFx05Kl.js → index-D9VUHffN.js} +1 -1
  114. package/dist/assets/{index-QsMyNs5M.js → index-DPd4Sq53.js} +1 -1
  115. package/dist/assets/{index-R-nzvsnB.js → index-Db12S-QJ.js} +3 -3
  116. package/dist/assets/{index-6eKiKwxy.js → index-DrDaIwTG.js} +1 -1
  117. package/dist/assets/{index-CTanw7BS.js → index-GQZM8G46.js} +1 -1
  118. package/dist/assets/{index-LfcBen0e.js → index-M3td2VXe.js} +1 -1
  119. package/dist/assets/{index-8xWytbgk.js → index-fVZinT7E.js} +1 -1
  120. package/dist/assets/{index-wbEYjXbS.js → index-gvPnSndt.js} +3 -3
  121. package/dist/assets/{index-AcK_GNM5.js → index-qhlxzrLU.js} +2 -2
  122. package/dist/assets/{index-CvoQfwdo.js → index-szLyLiKt.js} +6 -4
  123. package/dist/assets/{index.esm-J1O3GSwj.js → index.esm-CSdzhfxu.js} +1 -1
  124. package/dist/assets/{info-addon.es-Bw6LVdU4.js → info-addon.es-BiJ84hAD.js} +1 -1
  125. package/dist/assets/{info.es-ykccBWpX.js → info.es-W2OzC3tp.js} +1 -1
  126. package/dist/assets/{install-from-url-CsgX1Mrn.js → install-from-url-DkTaMKuV.js} +1 -1
  127. package/dist/assets/{invitation-anSRhUVJ.js → invitation-BOPhDE2y.js} +1 -1
  128. package/dist/assets/{is-path-prefix-equal-Cr4sQmMt.js → is-path-prefix-equal-ZyMnCod8.js} +1 -1
  129. package/dist/assets/{item-C4Tw6kqm.js → item-B4oZu1M-.js} +1 -1
  130. package/dist/assets/ja-DMoxkdsA.js +3 -0
  131. package/dist/assets/{javascript.es-DOjc_sbG.js → javascript.es-DJ9F-IUY.js} +1 -1
  132. package/dist/assets/{jump-to-line.es-D8I8baeT.js → jump-to-line.es-x9kGGHmA.js} +1 -1
  133. package/dist/assets/{jump.es-QWYfYf8Z.js → jump.es-6YBKNjTH.js} +1 -1
  134. package/dist/assets/ko-C926kBBj.js +3 -0
  135. package/dist/assets/{lint.es-BJSU_PKG.js → lint.es-DgsUO5dq.js} +1 -1
  136. package/dist/assets/{lint.es2-D1FwC8bn.js → lint.es2-BQyeTE1J.js} +1 -1
  137. package/dist/assets/{lint.es3-n4lT7F8v.js → lint.es3-BTG1clr1.js} +1 -1
  138. package/dist/assets/{list-header-8M5v0mEZ.js → list-header-CXtRgeb8.js} +1 -1
  139. package/dist/assets/{log-DnibkVKU.js → log-Cadt5khV.js} +1 -1
  140. package/dist/assets/{logo-uploader-FvI8Gg-V.js → logo-uploader-DH6CrN_X.js} +3 -3
  141. package/dist/assets/{lottie-react.esm-NYbV_1l0.js → lottie-react.esm-BSE7Hou8.js} +1 -1
  142. package/dist/assets/{matchbrackets.es-BpEPtDVu.js → matchbrackets.es-CMtdKoWo.js} +1 -1
  143. package/dist/assets/{memory-Besqmmjk.js → memory-CMzX15_3.js} +1 -1
  144. package/dist/assets/{mode.es-4LyXjQl6.js → mode.es-h6vBm9Ab.js} +1 -1
  145. package/dist/assets/{mode.es2-CoWlBN1V.js → mode.es2-obVTlMzb.js} +1 -1
  146. package/dist/assets/{mode.es3-AkivrF_d.js → mode.es3-Dvsck4WY.js} +1 -1
  147. package/dist/assets/{onlineParser.es-BTrI7ZNy.js → onlineParser.es-CNHcXfZ_.js} +1 -1
  148. package/dist/assets/{overview-D_CqZ_Zd.js → overview-DYYEl0kX.js} +1 -1
  149. package/dist/assets/pt-S0JrQ9Y4.js +1 -0
  150. package/dist/assets/{resource-dialog-Ce7XfSZ0.js → resource-dialog-B3-hy8cw.js} +1 -1
  151. package/dist/assets/ru-Qa5qbmx5.js +1 -0
  152. package/dist/assets/{runtime-D3uKAyT-.js → runtime-BXpBg9UE.js} +1 -1
  153. package/dist/assets/{schema-B2s_JuVP.js → schema-Bo-nEED9.js} +1 -1
  154. package/dist/assets/sdk-DG5Padvs.js +1 -0
  155. package/dist/assets/{search.es-1EGQHQDD.js → search.es-C2YPN9Zf.js} +1 -1
  156. package/dist/assets/{searchcursor.es-DAAQMAO0.js → searchcursor.es-DtFpodBc.js} +1 -1
  157. package/dist/assets/{service-CbegThe7.js → service-DCusgPUg.js} +1 -1
  158. package/dist/assets/{shorten-label-BLL_il_j.js → shorten-label-T_aHg8P2.js} +1 -1
  159. package/dist/assets/{show-hint.es-B7s00sXv.js → show-hint.es-Ck00IMH1.js} +1 -1
  160. package/dist/assets/{simple-select-Dkp26b_9.js → simple-select-DT-WXgAf.js} +1 -1
  161. package/dist/assets/{slicedToArray-BSVcAmJr.js → slicedToArray-C3L866dd.js} +1 -1
  162. package/dist/assets/{spaces-CDcGrBnn.js → spaces-CqfN1sHH.js} +1 -1
  163. package/dist/assets/{status-DDubVmJJ.js → status-BAuBwMKk.js} +1 -1
  164. package/dist/assets/{sublime.es-BHvkWbHt.js → sublime.es-v7EM771f.js} +1 -1
  165. package/dist/assets/{switch-control-BRA6GhdU.js → switch-control-C-0E-2ue.js} +1 -1
  166. package/dist/assets/{table-icons-ZE6_-sIK.js → table-icons-C0V1baGk.js} +1 -1
  167. package/dist/assets/{team-BsMAhTHe.js → team-C90gWPMY.js} +1 -1
  168. package/dist/assets/th-BoRhU51f.js +1 -0
  169. package/dist/assets/{toUpper-ClbAdkoz.js → toUpper-CFkfojgH.js} +1 -1
  170. package/dist/assets/{traffic-DvVSCQZw.js → traffic-BAWl5wSo.js} +1 -1
  171. package/dist/assets/{trim-CiSVnwN4.js → trim-VWi233vQ.js} +1 -1
  172. package/dist/assets/{uniqBy-L5gdenz-.js → uniqBy-DMKiy0t2.js} +1 -1
  173. package/dist/assets/{url-evaluation-CkdeW9xb.js → url-evaluation-BS1bNemt.js} +1 -1
  174. package/dist/assets/{url-join-Cj3I6f7j.js → url-join-C5gF0TYO.js} +1 -1
  175. package/dist/assets/{useAsync-C_2Izamz.js → useAsync-Cl9cUzHN.js} +1 -1
  176. package/dist/assets/{useLocalStorage-Dm8U5SnM.js → useLocalStorage-GLWMibqZ.js} +1 -1
  177. package/dist/assets/{useThemeProps-DLZVHtlO.js → useThemeProps-e0r4gLct.js} +1 -1
  178. package/dist/assets/{util-Bwj7-kW5.js → util-BL1BrZx8.js} +1 -1
  179. package/dist/assets/vi-klSG5jCL.js +1 -0
  180. package/dist/assets/{wait-container-9ZyoIbmc.js → wait-container-LWuRgdV5.js} +1 -1
  181. package/dist/assets/{withStyles-BUxuIWEH.js → withStyles-CK3EIjsg.js} +1 -1
  182. package/dist/assets/wrap-locale-CrH4CaJK.js +1 -0
  183. package/dist/assets/zh-Bbb3gm_K.js +4 -0
  184. package/dist/assets/zh-tw-D9dNfXQ_.js +3 -0
  185. package/dist/index.html +1 -1
  186. package/dist/service-worker.js +1 -1
  187. package/package.json +1 -1
  188. package/dist/assets/api-C-r9W7Df.js +0 -1
  189. package/dist/assets/ar-DdnvAQ3d.js +0 -1
  190. package/dist/assets/blocklet-DeYEPs7W.js +0 -1
  191. package/dist/assets/de-DMQbJIQd.js +0 -1
  192. package/dist/assets/emotion-react.browser.esm-D7mngV6f.js +0 -1
  193. package/dist/assets/es-D1yxfOJ-.js +0 -1
  194. package/dist/assets/fr-Db87bqVK.js +0 -1
  195. package/dist/assets/getValidReactChildren-Dsdsd33U.js +0 -1
  196. package/dist/assets/hi-Df99Lcv0.js +0 -1
  197. package/dist/assets/id-DtIWnQAT.js +0 -1
  198. package/dist/assets/index-C8jKkD0N.js +0 -5
  199. package/dist/assets/ja-C6Sh7xsg.js +0 -1
  200. package/dist/assets/ko-DOMsI63X.js +0 -1
  201. package/dist/assets/pt-DY-L1LL9.js +0 -1
  202. package/dist/assets/ru-CsG3qZSl.js +0 -1
  203. package/dist/assets/sdk-BDOUO8dj.js +0 -1
  204. package/dist/assets/th-Bxw1yx6O.js +0 -1
  205. package/dist/assets/vi-Df7bxeAg.js +0 -1
  206. package/dist/assets/wrap-locale-CC42vlla.js +0 -1
  207. package/dist/assets/zh-Cl_8lQ_b.js +0 -2
  208. package/dist/assets/zh-tw-BWV-R4Hq.js +0 -1
@@ -1,4 +1,4 @@
1
- import{cj as Le,r as I,cg as ft,f7 as Hn,b9 as Oi,ba as Ei,bj as St,f8 as et,ch as dt,f9 as _i,fa as Ci,bP as Vn,a6 as Pt,bN as ct,cX as Ri,bU as qn,j as t,g as hr,fb as Ii,fc as Pi,aN as mt,aO as gt,cP as ut,cH as Gn,e1 as Se,C as Pe,s as He,M as Y,al as tt,dk as Mi,a3 as Di,dy as Li,fd as pr,eO as fr,fe as an,aC as zi,aD as sn,aW as Oe,ff as Ut,l as G,cW as Et,fg as Ni,F as Ke,fh as Fi,aV as mr,Q as gr,f6 as ln,av as cn,G as Xn,d_ as Yn,aR as Bi,fi as Wi,fj as Ai,fk as $i,fl as Ki,N as Ui,eQ as Hi,eP as Vi,e9 as qi,dS as Gi,eN as Xi,O as _t,$ as Yi,fm as br,fn as Qi,a2 as Ne,fo as Ji,P,o as Ve,aA as vr,aQ as Qn,cy as Zi,B as Ct,a8 as eo,a9 as yr,aG as to,fp as Jn,aa as no,bm as un,D as ro,v as io,S as oo,cv as ao,U as ht,E as xr,z as $e,c as so,q as lo,b0 as co,ae as uo,eS as wr,cd as ho,el as po,W as fo}from"./index-CvoQfwdo.js";import{d as mo}from"./ChevronLeft-BVEhqL0a.js";import{d as go}from"./ChevronRight-Dgndy_Tx.js";import{d as Ot}from"./Search-DVTTUfAR.js";import{E as bo}from"./index-BBwK0xsH.js";import{O as Sr}from"./Select-ZoGQlFtQ.js";import{S as ze}from"./Skeleton-kSow7Hmt.js";import{A as vo}from"./Autocomplete-CA8T_8VG.js";import{T as kr}from"./TextField-DAI8Qdpe.js";import{I as Zn}from"./InputAdornment-1LTeHxh6.js";import{d as yo}from"./ShoppingCart-Bs1vpvBu.js";import{d as xo}from"./Add-CB3E_i_7.js";import{d as jr}from"./Launch-Biswalm8.js";import{d as wo}from"./Done-BxwBGo9Z.js";import{d as Tr}from"./DeleteOutline-CehpYKMD.js";import{C as So}from"./delete-confirm-BiicGoxV.js";import{u as ko}from"./blocklet-DeYEPs7W.js";import{d as jo}from"./MoreVert-Cf6FwqrB.js";import{g as Ue}from"./get-safe-url-QTk1Sdfr.js";import{B as er}from"./ButtonGroup-XrPwO8Q6.js";var To=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Oo=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Eo=function(e,n){n===void 0&&(n={});var s=n.target,l=n.isNoMore,h=n.threshold,f=h===void 0?100:h,g=n.direction,d=g===void 0?"bottom":g,v=n.reloadDeps,b=v===void 0?[]:v,p=n.manual,S=n.onBefore,k=n.onSuccess,x=n.onError,w=n.onFinally,C=Le(I.useState(),2),R=C[0],_=C[1],W=Le(I.useState(!1),2),M=W[0],$=W[1],X=d==="top",Q=I.useRef(),V=I.useRef(0),ce=I.useMemo(function(){return l?l(R):!1},[R]),pe=ft(function(ne){return Oi(void 0,void 0,void 0,function(){var ie,fe,Ce,Re;return Ei(this,function(bt){switch(bt.label){case 0:return[4,e(ne)];case 1:return ie=bt.sent(),_(ne?St(St({},ie),{list:X?et(et([],Le(ie.list),!1),Le((Ce=ne.list)!==null&&Ce!==void 0?Ce:[]),!1):et(et([],Le((Re=ne.list)!==null&&Re!==void 0?Re:[]),!1),Le(ie.list),!1)}):St(St({},ie),{list:et([],Le((fe=ie.list)!==null&&fe!==void 0?fe:[]),!1)})),[2,ie]}})})},{manual:p,onFinally:function(ne,ie,fe){$(!1),w==null||w(ie,fe)},onBefore:function(){return S==null?void 0:S()},onSuccess:function(ne){setTimeout(function(){if(X){var ie=Hn(s);if(ie=ie===document?document.documentElement:ie,ie){var fe=tr(ie);ie.scrollTo(0,fe-V.current)}}else be()}),k==null||k(ne)},onError:function(ne){return x==null?void 0:x(ne)}}),Ee=pe.loading,_e=pe.error,we=pe.run,ae=pe.runAsync,je=pe.cancel,z=dt(function(){ce||($(!0),we(R))}),ee=dt(function(){return ce?Promise.reject():($(!0),ae(R))}),Te=function(){return $(!1),we()},ue=function(){return $(!1),ae()},be=function(){var ne=Hn(s);if(ne){var ie=ne===document?document.documentElement:ne,fe=To(ie),Ce=tr(ie),Re=Oo(ie);X?(Q.current!==void 0&&Q.current>fe&&fe<=f&&z(),Q.current=fe,V.current=Ce-fe):Ce-fe<=Re+f&&z()}};return _i("scroll",function(){Ee||M||be()},{target:s}),Ci(function(){we()},et([],Le(b),!1)),{data:R,loading:!M&&Ee,error:_e,loadingMore:M,noMore:ce,loadMore:z,loadMoreAsync:ee,reload:dt(Te),reloadAsync:dt(ue),mutate:_,cancel:je}};const _o=["name"],Co=["children","className","clone","component"];function Ro(e,n){const s={};return Object.keys(e).forEach(l=>{n.indexOf(l)===-1&&(s[l]=e[l])}),s}function Io(e){return(s,l={})=>{const{name:h}=l,f=Vn(l,_o);let g=h;const v=Pt(typeof s=="function"?S=>({root:k=>s(ct({theme:S},k))}):{root:s},ct({Component:e,name:h||e.displayName,classNamePrefix:g},f));let b;s.filterProps&&(b=s.filterProps,delete s.filterProps),s.propTypes&&(s.propTypes,delete s.propTypes);const p=I.forwardRef(function(k,x){const{children:w,className:C,clone:R,component:_}=k,W=Vn(k,Co),M=v(k),$=qn(M.root,C);let X=W;if(b&&(X=Ro(X,b)),R)return I.cloneElement(w,ct({className:qn(w.props.className,$)},X));if(typeof w=="function")return w(ct({className:$},X));const Q=_||e;return t.jsx(Q,ct({ref:x,className:$},X,{children:w}))});return Ri(p,e),p}}const Ns="blocklet-add-component-registry",Fs="server-add-registry",Po={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'};var Mo=Ii,nr=Pi;function Do(e,n,s,l){return e==null?[]:(nr(n)||(n=n==null?[]:[n]),s=l?void 0:s,nr(s)||(s=s==null?[]:[s]),Mo(e,n,s))}var Lo=Do;const zo=hr(Lo);var dn={},No=gt;Object.defineProperty(dn,"__esModule",{value:!0});var Or=dn.default=void 0,Fo=No(mt()),Bo=t;Or=dn.default=(0,Fo.default)((0,Bo.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Wo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var Er={exports:{}};(function(e,n){(function(s,l){e.exports=l(I)})(ut,s=>(()=>{var l={703:(d,v,b)=>{var p=b(414);function S(){}function k(){}k.resetWarningCache=S,d.exports=function(){function x(R,_,W,M,$,X){if(X!==p){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}}function w(){return x}x.isRequired=x;var C={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:w,element:x,elementType:x,instanceOf:w,node:x,objectOf:w,oneOf:w,oneOfType:w,shape:w,exact:w,checkPropTypes:k,resetWarningCache:S};return C.PropTypes=C,C}},697:(d,v,b)=>{d.exports=b(703)()},414:d=>{d.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:d=>{var v=typeof Element<"u",b=typeof Map=="function",p=typeof Set=="function",S=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function k(x,w){if(x===w)return!0;if(x&&w&&typeof x=="object"&&typeof w=="object"){if(x.constructor!==w.constructor)return!1;var C,R,_,W;if(Array.isArray(x)){if((C=x.length)!=w.length)return!1;for(R=C;R--!=0;)if(!k(x[R],w[R]))return!1;return!0}if(b&&x instanceof Map&&w instanceof Map){if(x.size!==w.size)return!1;for(W=x.entries();!(R=W.next()).done;)if(!w.has(R.value[0]))return!1;for(W=x.entries();!(R=W.next()).done;)if(!k(R.value[1],w.get(R.value[0])))return!1;return!0}if(p&&x instanceof Set&&w instanceof Set){if(x.size!==w.size)return!1;for(W=x.entries();!(R=W.next()).done;)if(!w.has(R.value[0]))return!1;return!0}if(S&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(w)){if((C=x.length)!=w.length)return!1;for(R=C;R--!=0;)if(x[R]!==w[R])return!1;return!0}if(x.constructor===RegExp)return x.source===w.source&&x.flags===w.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===w.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===w.toString();if((C=(_=Object.keys(x)).length)!==Object.keys(w).length)return!1;for(R=C;R--!=0;)if(!Object.prototype.hasOwnProperty.call(w,_[R]))return!1;if(v&&x instanceof Element)return!1;for(R=C;R--!=0;)if((_[R]!=="_owner"&&_[R]!=="__v"&&_[R]!=="__o"||!x.$$typeof)&&!k(x[_[R]],w[_[R]]))return!1;return!0}return x!=x&&w!=w}d.exports=function(x,w){try{return k(x,w)}catch(C){if((C.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw C}}},359:d=>{d.exports=s}},h={};function f(d){var v=h[d];if(v!==void 0)return v.exports;var b=h[d]={exports:{}};return l[d](b,b.exports,f),b.exports}f.n=d=>{var v=d&&d.__esModule?()=>d.default:()=>d;return f.d(v,{a:v}),v},f.d=(d,v)=>{for(var b in v)f.o(v,b)&&!f.o(d,b)&&Object.defineProperty(d,b,{enumerable:!0,get:v[b]})},f.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),f.o=(d,v)=>Object.prototype.hasOwnProperty.call(d,v),f.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var g={};return(()=>{function d(a){var r,c,u="";if(typeof a=="string"||typeof a=="number")u+=a;else if(typeof a=="object")if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]&&(c=d(a[r]))&&(u&&(u+=" "),u+=c);else for(r in a)a[r]&&(u&&(u+=" "),u+=r);return u}function v(){for(var a,r,c=0,u="";c<arguments.length;)(a=arguments[c++])&&(r=d(a))&&(u&&(u+=" "),u+=r);return u}f.r(g),f.d(g,{default:()=>ji});var b=f(359),p=f.n(b);const S=function(a){var r=typeof a;return a!=null&&(r=="object"||r=="function")},k=typeof ut=="object"&&ut&&ut.Object===Object&&ut;var x=typeof self=="object"&&self&&self.Object===Object&&self;const w=k||x||Function("return this")(),C=function(){return w.Date.now()};var R=/\s/,_=/^\s+/;const W=function(a){return a&&a.slice(0,function(r){for(var c=r.length;c--&&R.test(r.charAt(c)););return c}(a)+1).replace(_,"")},M=w.Symbol;var $=Object.prototype,X=$.hasOwnProperty,Q=$.toString,V=M?M.toStringTag:void 0,ce=Object.prototype.toString,pe=M?M.toStringTag:void 0;const Ee=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":pe&&pe in Object(a)?function(r){var c=X.call(r,V),u=r[V];try{r[V]=void 0;var O=!0}catch{}var F=Q.call(r);return O&&(c?r[V]=u:delete r[V]),F}(a):function(r){return ce.call(r)}(a)};var _e=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,je=parseInt;const z=function(a){if(typeof a=="number")return a;if(function(u){return typeof u=="symbol"||function(O){return O!=null&&typeof O=="object"}(u)&&Ee(u)=="[object Symbol]"}(a))return NaN;if(S(a)){var r=typeof a.valueOf=="function"?a.valueOf():a;a=S(r)?r+"":r}if(typeof a!="string")return a===0?a:+a;a=W(a);var c=we.test(a);return c||ae.test(a)?je(a.slice(2),c?2:8):_e.test(a)?NaN:+a};var ee=Math.max,Te=Math.min;const ue=function(a,r,c){var u,O,F,q,o,i,m=0,j=!1,E=!1,T=!0;if(typeof a!="function")throw new TypeError("Expected a function");function K(B){var H=u,J=O;return u=O=void 0,m=B,q=a.apply(J,H)}function A(B){return m=B,o=setTimeout(D,r),j?K(B):q}function U(B){var H=B-i;return i===void 0||H>=r||H<0||E&&B-m>=F}function D(){var B=C();if(U(B))return L(B);o=setTimeout(D,function(H){var J=r-(H-i);return E?Te(J,F-(H-m)):J}(B))}function L(B){return o=void 0,T&&u?K(B):(u=O=void 0,q)}function N(){var B=C(),H=U(B);if(u=arguments,O=this,i=B,H){if(o===void 0)return A(i);if(E)return clearTimeout(o),o=setTimeout(D,r),K(i)}return o===void 0&&(o=setTimeout(D,r)),q}return r=z(r)||0,S(c)&&(j=!!c.leading,F=(E="maxWait"in c)?ee(z(c.maxWait)||0,r):F,T="trailing"in c?!!c.trailing:T),N.cancel=function(){o!==void 0&&clearTimeout(o),m=0,u=i=O=o=void 0},N.flush=function(){return o===void 0?q:L(C())},N},be=function(a,r,c){var u=!0,O=!0;if(typeof a!="function")throw new TypeError("Expected a function");return S(c)&&(u="leading"in c?!!c.leading:u,O="trailing"in c?!!c.trailing:O),ue(a,r,{leading:u,maxWait:r,trailing:O})};var ne=f(590),ie=f.n(ne),fe=function(){if(typeof Map<"u")return Map;function a(r,c){var u=-1;return r.some(function(O,F){return O[0]===c&&(u=F,!0)}),u}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(c){var u=a(this.__entries__,c),O=this.__entries__[u];return O&&O[1]},r.prototype.set=function(c,u){var O=a(this.__entries__,c);~O?this.__entries__[O][1]=u:this.__entries__.push([c,u])},r.prototype.delete=function(c){var u=this.__entries__,O=a(u,c);~O&&u.splice(O,1)},r.prototype.has=function(c){return!!~a(this.__entries__,c)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(c,u){u===void 0&&(u=null);for(var O=0,F=this.__entries__;O<F.length;O++){var q=F[O];c.call(u,q[1],q[0])}},r}()}(),Ce=typeof window<"u"&&typeof document<"u"&&window.document===document,Re=f.g!==void 0&&f.g.Math===Math?f.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),bt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Re):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)},ei=["top","right","bottom","left","width","height","size","weight"],ti=typeof MutationObserver<"u",ni=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(r,c){var u=!1,O=!1,F=0;function q(){u&&(u=!1,r()),O&&i()}function o(){bt(q)}function i(){var m=Date.now();if(u){if(m-F<2)return;O=!0}else u=!0,O=!1,setTimeout(o,20);F=m}return i}(this.refresh.bind(this))}return a.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},a.prototype.removeObserver=function(r){var c=this.observers_,u=c.indexOf(r);~u&&c.splice(u,1),!c.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},a.prototype.updateObservers_=function(){var r=this.observers_.filter(function(c){return c.gatherActive(),c.hasActive()});return r.forEach(function(c){return c.broadcastActive()}),r.length>0},a.prototype.connect_=function(){Ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ti?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){Ce&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(r){var c=r.propertyName,u=c===void 0?"":c;ei.some(function(O){return!!~u.indexOf(O)})&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),wn=function(a,r){for(var c=0,u=Object.keys(r);c<u.length;c++){var O=u[c];Object.defineProperty(a,O,{value:r[O],enumerable:!1,writable:!1,configurable:!0})}return a},qe=function(a){return a&&a.ownerDocument&&a.ownerDocument.defaultView||Re},Sn=yt(0,0,0,0);function vt(a){return parseFloat(a)||0}function kn(a){for(var r=[],c=1;c<arguments.length;c++)r[c-1]=arguments[c];return r.reduce(function(u,O){return u+vt(a["border-"+O+"-width"])},0)}var ri=typeof SVGGraphicsElement<"u"?function(a){return a instanceof qe(a).SVGGraphicsElement}:function(a){return a instanceof qe(a).SVGElement&&typeof a.getBBox=="function"};function ii(a){return Ce?ri(a)?function(r){var c=r.getBBox();return yt(0,0,c.width,c.height)}(a):function(r){var c=r.clientWidth,u=r.clientHeight;if(!c&&!u)return Sn;var O=qe(r).getComputedStyle(r),F=function(T){for(var K={},A=0,U=["top","right","bottom","left"];A<U.length;A++){var D=U[A],L=T["padding-"+D];K[D]=vt(L)}return K}(O),q=F.left+F.right,o=F.top+F.bottom,i=vt(O.width),m=vt(O.height);if(O.boxSizing==="border-box"&&(Math.round(i+q)!==c&&(i-=kn(O,"left","right")+q),Math.round(m+o)!==u&&(m-=kn(O,"top","bottom")+o)),!function(T){return T===qe(T).document.documentElement}(r)){var j=Math.round(i+q)-c,E=Math.round(m+o)-u;Math.abs(j)!==1&&(i-=j),Math.abs(E)!==1&&(m-=E)}return yt(F.left,F.top,i,m)}(a):Sn}function yt(a,r,c,u){return{x:a,y:r,width:c,height:u}}var oi=function(){function a(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=r}return a.prototype.isActive=function(){var r=ii(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},a}(),ai=function(a,r){var c,u,O,F,q,o,i,m=(u=(c=r).x,O=c.y,F=c.width,q=c.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype),wn(i,{x:u,y:O,width:F,height:q,top:O,right:u+F,bottom:q+O,left:u}),i);wn(this,{target:a,contentRect:m})},si=function(){function a(r,c,u){if(this.activeObservations_=[],this.observations_=new fe,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=c,this.callbackCtx_=u}return a.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)||(c.set(r,new oi(r)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)&&(c.delete(r),c.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(c){c.isActive()&&r.activeObservations_.push(c)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,c=this.activeObservations_.map(function(u){return new ai(u.target,u.broadcastRect())});this.callback_.call(r,c,r),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),jn=typeof WeakMap<"u"?new WeakMap:new fe,Tn=function a(r){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=ni.getInstance(),u=new si(r,c,this);jn.set(this,u)};["observe","unobserve","disconnect"].forEach(function(a){Tn.prototype[a]=function(){var r;return(r=jn.get(this))[a].apply(r,arguments)}});const On=Re.ResizeObserver!==void 0?Re.ResizeObserver:Tn,Ge="Left",Be="Right",Xe="Up",We="Down",Ye={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Lt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},En="mousemove",_n="mouseup";function Cn(a,r){if(r===0)return a;const c=Math.PI/180*r;return[a[0]*Math.cos(c)+a[1]*Math.sin(c),a[1]*Math.cos(c)-a[0]*Math.sin(c)]}function li(a){const{trackMouse:r}=a,c=b.useRef(Object.assign({},Lt)),u=b.useRef(Object.assign({},Ye)),O=b.useRef(Object.assign({},u.current));let F;for(F in O.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},Ye),a),Ye)u.current[F]===void 0&&(u.current[F]=Ye[F]);const[q,o]=b.useMemo(()=>function(i,m){const j=D=>{const L="touches"in D;L&&D.touches.length>1||i((N,B)=>{B.trackMouse&&!L&&(document.addEventListener(En,E),document.addEventListener(_n,K));const{clientX:H,clientY:J}=L?D.touches[0]:D,oe=Cn([H,J],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},N),Lt),{initial:oe.slice(),xy:oe,start:D.timeStamp||0})})},E=D=>{i((L,N)=>{const B="touches"in D;if(B&&D.touches.length>1)return L;if(D.timeStamp-L.start>N.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:H,clientY:J}=B?D.touches[0]:D,[oe,ve]=Cn([H,J],N.rotationAngle),me=oe-L.xy[0],de=ve-L.xy[1],re=Math.abs(me),Z=Math.abs(de),De=(D.timeStamp||0)-L.start,ot=Math.sqrt(re*re+Z*Z)/(De||1),at=[me/(De||1),de/(De||1)],Me=function(st,Ze,lt,ye){return st>Ze?lt>0?Be:Ge:ye>0?We:Xe}(re,Z,me,de),Ae=typeof N.delta=="number"?N.delta:N.delta[Me.toLowerCase()]||Ye.delta;if(re<Ae&&Z<Ae&&!L.swiping)return L;const Ie={absX:re,absY:Z,deltaX:me,deltaY:de,dir:Me,event:D,first:L.first,initial:L.initial,velocity:ot,vxvy:at};Ie.first&&N.onSwipeStart&&N.onSwipeStart(Ie),N.onSwiping&&N.onSwiping(Ie);let Je=!1;return(N.onSwiping||N.onSwiped||N[`onSwiped${Me}`])&&(Je=!0),Je&&N.preventScrollOnSwipe&&N.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:Ie,swiping:!0})})},T=D=>{i((L,N)=>{let B;if(L.swiping&&L.eventData){if(D.timeStamp-L.start<N.swipeDuration){B=Object.assign(Object.assign({},L.eventData),{event:D}),N.onSwiped&&N.onSwiped(B);const H=N[`onSwiped${B.dir}`];H&&H(B)}}else N.onTap&&N.onTap({event:D});return N.onTouchEndOrOnMouseUp&&N.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},L),Lt),{eventData:B})})},K=D=>{document.removeEventListener(En,E),document.removeEventListener(_n,K),T(D)},A=(D,L)=>{let N=()=>{};if(D&&D.addEventListener){const B=Object.assign(Object.assign({},Ye.touchEventOptions),L.touchEventOptions),H=[["touchstart",j,B],["touchmove",E,Object.assign(Object.assign({},B),L.preventScrollOnSwipe?{passive:!1}:{})],["touchend",T,B]];H.forEach(([J,oe,ve])=>D.addEventListener(J,oe,ve)),N=()=>H.forEach(([J,oe])=>D.removeEventListener(J,oe))}return N},U={ref:D=>{D!==null&&i((L,N)=>{if(L.el===D)return L;const B={};return L.el&&L.el!==D&&L.cleanUpTouch&&(L.cleanUpTouch(),B.cleanUpTouch=void 0),N.trackTouch&&D&&(B.cleanUpTouch=A(D,N)),Object.assign(Object.assign(Object.assign({},L),{el:D}),B)})}};return m.trackMouse&&(U.onMouseDown=j),[U,A]}(i=>c.current=i(c.current,u.current),{trackMouse:r}),[r]);return c.current=function(i,m,j,E){return m.trackTouch&&i.el?i.cleanUpTouch?m.preventScrollOnSwipe!==j.preventScrollOnSwipe||m.touchEventOptions.passive!==j.touchEventOptions.passive?(i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)})):i:Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)}):(i.cleanUpTouch&&i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:void 0}))}(c.current,u.current,O.current,o),q}var y=f(697);function nt(a){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nt(a)}function Rn(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function In(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Rn(Object(c),!0).forEach(function(u){ci(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Rn(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function ci(a,r,c){return(r=function(u){var O=function(F,q){if(nt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,q);if(nt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(u,"string");return nt(O)==="symbol"?O:String(O)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}var ui={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},zt=p().memo(function(a){var r=In(In({},ui),a),c=r.description,u=r.fullscreen,O=r.handleImageLoaded,F=r.isFullscreen,q=r.onImageError,o=r.original,i=r.originalAlt,m=r.originalHeight,j=r.originalWidth,E=r.originalTitle,T=r.sizes,K=r.srcSet,A=r.loading,U=F&&u||o;return p().createElement(p().Fragment,null,p().createElement("img",{className:"image-gallery-image",src:U,alt:i,srcSet:K,height:m,width:j,sizes:T,title:E,onLoad:function(D){return O(D,o)},onError:q,loading:A}),c&&p().createElement("span",{className:"image-gallery-description"},c))});zt.displayName="Item",zt.propTypes={description:y.string,fullscreen:y.string,handleImageLoaded:y.func.isRequired,isFullscreen:y.bool,onImageError:y.func.isRequired,original:y.string.isRequired,originalAlt:y.string,originalHeight:y.string,originalWidth:y.string,originalTitle:y.string,sizes:y.string,srcSet:y.string,loading:y.string};const di=zt;function rt(a){return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rt(a)}function Pn(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function Mn(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Pn(Object(c),!0).forEach(function(u){hi(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Pn(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function hi(a,r,c){return(r=function(u){var O=function(F,q){if(rt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,q);if(rt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(u,"string");return rt(O)==="symbol"?O:String(O)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}var pi={left:p().createElement("polyline",{points:"15 18 9 12 15 6"}),right:p().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:p().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:p().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:p().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:p().createElement(p().Fragment,null,p().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),p().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},fi={strokeWidth:1,viewBox:"0 0 24 24"},Dn=function(a){var r=Mn(Mn({},fi),a),c=r.strokeWidth,u=r.viewBox,O=r.icon;return p().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:u,fill:"none",stroke:"currentColor",strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"},pi[O])};Dn.propTypes={strokeWidth:y.number,viewBox:y.string,icon:(0,y.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const xt=Dn;var Nt=p().memo(function(a){var r=a.isFullscreen,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:c,"aria-label":"Open Fullscreen"},p().createElement(xt,{strokeWidth:2,icon:r?"minimize":"maximize"}))});Nt.displayName="Fullscreen",Nt.propTypes={isFullscreen:y.bool.isRequired,onClick:y.func.isRequired};const mi=Nt;var Ft=p().memo(function(a){var r=a.disabled,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:r,onClick:c,"aria-label":"Previous Slide"},p().createElement(xt,{icon:"left",viewBox:"6 0 12 24"}))});Ft.displayName="LeftNav",Ft.propTypes={disabled:y.bool.isRequired,onClick:y.func.isRequired};const gi=Ft;var Bt=p().memo(function(a){var r=a.disabled,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:r,onClick:c,"aria-label":"Next Slide"},p().createElement(xt,{icon:"right",viewBox:"6 0 12 24"}))});Bt.displayName="RightNav",Bt.propTypes={disabled:y.bool.isRequired,onClick:y.func.isRequired};const bi=Bt;var Wt=p().memo(function(a){var r=a.isPlaying,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:c,"aria-label":"Play or Pause Slideshow"},p().createElement(xt,{strokeWidth:2,icon:r?"pause":"play"}))});Wt.displayName="PlayPause",Wt.propTypes={isPlaying:y.bool.isRequired,onClick:y.func.isRequired};const vi=Wt;function it(a){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},it(a)}function At(){return At=Object.assign?Object.assign.bind():function(a){for(var r=1;r<arguments.length;r++){var c=arguments[r];for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])}return a},At.apply(this,arguments)}function Ln(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function zn(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Ln(Object(c),!0).forEach(function(u){yi(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Ln(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function yi(a,r,c){return(r=function(u){var O=function(F,q){if(it(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,q);if(it(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(u,"string");return it(O)==="symbol"?O:String(O)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}var xi={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},Nn=function(a){var r=zn(zn({},xi),a),c=r.children,u=r.className,O=li({delta:r.delta,onSwiping:r.onSwiping,onSwiped:r.onSwiped});return p().createElement("div",At({},O,{className:u}),c)};Nn.propTypes={children:y.node.isRequired,className:y.string,delta:y.number,onSwiped:y.func,onSwiping:y.func};const Fn=Nn;function Qe(a){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qe(a)}function Bn(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function Wn(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Bn(Object(c),!0).forEach(function(u){An(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Bn(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function wi(a,r){for(var c=0;c<r.length;c++){var u=r[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,$n(u.key),u)}}function $t(a,r){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,u){return c.__proto__=u,c},$t(a,r)}function Si(a,r){if(r&&(Qe(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(a)}function se(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function wt(a){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wt(a)}function An(a,r,c){return(r=$n(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}function $n(a){var r=function(c,u){if(Qe(c)!=="object"||c===null)return c;var O=c[Symbol.toPrimitive];if(O!==void 0){var F=O.call(c,u);if(Qe(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a,"string");return Qe(r)==="symbol"?r:String(r)}var Kn=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ki=(0,y.arrayOf)((0,y.shape)({srcSet:y.string,media:y.string}));function Un(a){var r=parseInt(a.keyCode||a.which||0,10);return r===66||r===62}var Kt=function(a){(function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&$t(o,i)})(q,a);var r,c,u,O,F=(u=q,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,i=wt(u);if(O){var m=wt(this).constructor;o=Reflect.construct(i,arguments,m)}else o=i.apply(this,arguments);return Si(this,o)});function q(o){var i;return function(m,j){if(!(m instanceof j))throw new TypeError("Cannot call a class as a function")}(this,q),An(se(i=F.call(this,o)),"onBulletClick",function(m,j){var E=i.props,T=E.onBulletClick,K=E.items,A=i.state.currentIndex;m.target.blur(),A!==j&&(K.length===2?i.slideToIndexWithStyleReset(j,m):i.slideToIndex(j,m)),T&&T(m,j)}),i.state={currentIndex:o.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(o.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},i.loadedImages={},i.imageGallery=p().createRef(),i.thumbnailsWrapper=p().createRef(),i.thumbnails=p().createRef(),i.imageGallerySlideWrapper=p().createRef(),i.handleImageLoaded=i.handleImageLoaded.bind(se(i)),i.handleKeyDown=i.handleKeyDown.bind(se(i)),i.handleMouseDown=i.handleMouseDown.bind(se(i)),i.handleResize=i.handleResize.bind(se(i)),i.handleTouchMove=i.handleTouchMove.bind(se(i)),i.handleOnSwiped=i.handleOnSwiped.bind(se(i)),i.handleScreenChange=i.handleScreenChange.bind(se(i)),i.handleSwiping=i.handleSwiping.bind(se(i)),i.handleThumbnailSwiping=i.handleThumbnailSwiping.bind(se(i)),i.handleOnThumbnailSwiped=i.handleOnThumbnailSwiped.bind(se(i)),i.onThumbnailMouseLeave=i.onThumbnailMouseLeave.bind(se(i)),i.handleImageError=i.handleImageError.bind(se(i)),i.pauseOrPlay=i.pauseOrPlay.bind(se(i)),i.renderThumbInner=i.renderThumbInner.bind(se(i)),i.renderItem=i.renderItem.bind(se(i)),i.slideLeft=i.slideLeft.bind(se(i)),i.slideRight=i.slideRight.bind(se(i)),i.toggleFullScreen=i.toggleFullScreen.bind(se(i)),i.togglePlay=i.togglePlay.bind(se(i)),i.unthrottledSlideToIndex=i.slideToIndex,i.slideToIndex=be(i.unthrottledSlideToIndex,o.slideDuration,{trailing:!1}),o.lazyLoad&&(i.lazyLoaded=[]),i}return r=q,c=[{key:"componentDidMount",value:function(){var o=this.props,i=o.autoPlay,m=o.useWindowKeyDown;i&&this.play(),m?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(o,i){var m=this.props,j=m.items,E=m.lazyLoad,T=m.slideDuration,K=m.slideInterval,A=m.startIndex,U=m.thumbnailPosition,D=m.showThumbnails,L=m.useWindowKeyDown,N=this.state,B=N.currentIndex,H=N.isPlaying,J=o.items.length!==j.length,oe=!ie()(o.items,j),ve=o.startIndex!==A,me=o.thumbnailPosition!==U,de=o.showThumbnails!==D;K===o.slideInterval&&T===o.slideDuration||H&&(this.pause(),this.play()),me&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),de&&D&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),de&&!D&&this.removeThumbnailsResizeObserver(),(J||de)&&this.handleResize(),i.currentIndex!==B&&this.slideThumbnailBar(),o.slideDuration!==T&&(this.slideToIndex=be(this.unthrottledSlideToIndex,T,{trailing:!1})),!E||o.lazyLoad&&!oe||(this.lazyLoaded=[]),L!==o.useWindowKeyDown&&(L?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(ve||oe)&&this.setState({currentIndex:A,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var o=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),o?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var o=this,i=this.state,m=i.currentIndex,j=i.isTransitioning,E=this.props,T=E.onSlide,K=E.slideDuration;this.transitionTimer=window.setTimeout(function(){j&&(o.setState({isTransitioning:!j,isSwipingThumbnail:!1}),T&&T(m))},K+50)}},{key:"onThumbnailClick",value:function(o,i){var m=this.props,j=m.onThumbnailClick,E=m.items,T=this.state.currentIndex;o.target.parentNode.parentNode.blur(),T!==i&&(E.length===2?this.slideToIndexWithStyleReset(i,o):this.slideToIndex(i,o)),j&&j(o,i)}},{key:"onThumbnailMouseOver",value:function(o,i){var m=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){m.slideToIndex(i),m.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var o=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,o&&this.play()}}},{key:"setThumbsTranslate",value:function(o){this.setState({thumbsTranslate:o})}},{key:"setModalFullscreen",value:function(o){var i=this.props.onScreenChange;this.setState({modalFullscreen:o}),i&&i(o)}},{key:"getThumbsTranslate",value:function(o){var i,m=this.props,j=m.disableThumbnailScroll,E=m.items,T=this.state,K=T.thumbnailsWrapperWidth,A=T.thumbnailsWrapperHeight,U=this.thumbnails&&this.thumbnails.current;if(j)return 0;if(U){if(this.isThumbnailVertical()){if(U.scrollHeight<=A)return 0;i=U.scrollHeight-A}else{if(U.scrollWidth<=K||K<=0)return 0;i=U.scrollWidth-K}return o*(i/(E.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(o){switch(o){case"left":o=" ".concat("image-gallery-thumbnails-left");break;case"right":o=" ".concat("image-gallery-thumbnails-right");break;case"bottom":o=" ".concat("image-gallery-thumbnails-bottom");break;case"top":o=" ".concat("image-gallery-thumbnails-top")}return o}},{key:"getAlignmentClassName",value:function(o){var i=this.state.currentIndex,m=this.props,j=m.infinite,E=m.items,T="",K="image-gallery-left",A="image-gallery-right";switch(o){case i-1:T=" ".concat(K);break;case i:T=" ".concat("image-gallery-center");break;case i+1:T=" ".concat(A)}return E.length>=3&&j&&(o===0&&i===E.length-1?T=" ".concat(A):o===E.length-1&&i===0&&(T=" ".concat(K))),T}},{key:"getTranslateXForTwoSlide",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.previousIndex,T=m!==E,K=o===0&&E===0,A=o===1&&E===1,U=o===0&&m===1,D=o===1&&m===0,L=j===0,N=-100*m+100*o+j;return j>0?this.direction="left":j<0&&(this.direction="right"),D&&j>0&&(N=-100+j),U&&j<0&&(N=100+j),T?K&&L&&this.direction==="left"?N=100:A&&L&&this.direction==="right"&&(N=-100):(D&&L&&this.direction==="left"&&(N=-100),U&&L&&this.direction==="right"&&(N=100)),N}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.slideStyle,T=this.props,K=T.infinite,A=T.items,U=T.useTranslate3D,D=T.isRTL,L=-100*m,N=A.length-1,B=(L+100*o)*(D?-1:1)+j;K&&A.length>2&&(m===0&&o===N?B=-100*(D?-1:1)+j:m===N&&o===0&&(B=100*(D?-1:1)+j)),K&&A.length===2&&(B=this.getTranslateXForTwoSlide(o));var H="translate(".concat(B,"%, 0)");return U&&(H="translate3d(".concat(B,"%, 0, 0)")),Wn({display:this.isSlideVisible(o)?"inherit":"none",WebkitTransform:H,MozTransform:H,msTransform:H,OTransform:H,transform:H},E)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var o,i=this.props,m=i.useTranslate3D,j=i.isRTL,E=this.state,T=E.thumbsTranslate,K=E.thumbsStyle,A=j?-1*T:T;return this.isThumbnailVertical()?(o="translate(0, ".concat(T,"px)"),m&&(o="translate3d(0, ".concat(T,"px, 0)"))):(o="translate(".concat(A,"px, 0)"),m&&(o="translate3d(".concat(A,"px, 0, 0)"))),Wn({WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,transform:o},K)}},{key:"getSlideItems",value:function(){var o=this,i=this.state.currentIndex,m=this.props,j=m.items,E=m.slideOnThumbnailOver,T=m.onClick,K=m.lazyLoad,A=m.onTouchMove,U=m.onTouchEnd,D=m.onTouchStart,L=m.onMouseOver,N=m.onMouseLeave,B=m.renderItem,H=m.renderThumbInner,J=m.showThumbnails,oe=m.showBullets,ve=[],me=[],de=[];return j.forEach(function(re,Z){var De=o.getAlignmentClassName(Z),ot=re.originalClass?" ".concat(re.originalClass):"",at=re.thumbnailClass?" ".concat(re.thumbnailClass):"",Me=re.renderItem||B||o.renderItem,Ae=re.renderThumbInner||H||o.renderThumbInner,Ie=!K||De||o.lazyLoaded[Z];Ie&&K&&!o.lazyLoaded[Z]&&(o.lazyLoaded[Z]=!0);var Je=o.getSlideStyle(Z),st=p().createElement("div",{"aria-label":"Go to Slide ".concat(Z+1),key:"slide-".concat(Z),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(ot),style:Je,onClick:T,onKeyUp:o.handleSlideKeyUp,onTouchMove:A,onTouchEnd:U,onTouchStart:D,onMouseOver:L,onFocus:L,onMouseLeave:N,role:"button"},Ie?Me(re):p().createElement("div",{style:{height:"100%"}}));if(ve.push(st),J&&re.thumbnail){var Ze=v("image-gallery-thumbnail",at,{active:i===Z});me.push(p().createElement("button",{key:"thumbnail-".concat(Z),type:"button",tabIndex:"0","aria-pressed":i===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1),className:Ze,onMouseLeave:E?o.onThumbnailMouseLeave:null,onMouseOver:function(ye){return o.handleThumbnailMouseOver(ye,Z)},onFocus:function(ye){return o.handleThumbnailMouseOver(ye,Z)},onKeyUp:function(ye){return o.handleThumbnailKeyUp(ye,Z)},onClick:function(ye){return o.onThumbnailClick(ye,Z)}},Ae(re)))}if(oe){var lt=v("image-gallery-bullet",re.bulletClass,{active:i===Z});de.push(p().createElement("button",{type:"button",key:"bullet-".concat(Z),className:lt,onClick:function(ye){return o.onBulletClick(ye,Z)},"aria-pressed":i===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1)}))}}),{slides:ve,thumbnails:me,bullets:de}}},{key:"ignoreIsTransitioning",value:function(){var o=this.props.items,i=this.state,m=i.previousIndex,j=i.currentIndex,E=o.length-1;return Math.abs(m-j)>1&&!(m===0&&j===E)&&!(m===E&&j===0)}},{key:"isFirstOrLastSlide",value:function(o){return o===this.props.items.length-1||o===0}},{key:"slideIsTransitioning",value:function(o){var i=this.state,m=i.isTransitioning,j=i.previousIndex,E=i.currentIndex;return m&&!(o===j||o===E)}},{key:"isSlideVisible",value:function(o){return!this.slideIsTransitioning(o)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(o)}},{key:"slideThumbnailBar",value:function(){var o=this.state,i=o.currentIndex,m=o.isSwipingThumbnail,j=-this.getThumbsTranslate(i);m||(i===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:j,thumbsSwipedTranslate:j}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(o){var i=o.event,m=o.absX,j=o.dir,E=this.props,T=E.disableSwipe,K=E.stopPropagation,A=this.state,U=A.galleryWidth,D=A.isTransitioning,L=A.swipingUpDown,N=A.swipingLeftRight;if(j!==Xe&&j!==We&&!L||N){if(j!==Ge&&j!==Be||N||this.setState({swipingLeftRight:!0}),!T){var B=this.props.swipingTransitionDuration;if(K&&i.preventDefault(),D)this.setState({currentSlideOffset:0});else{var H=j===Be?1:-1,J=m/U*100;Math.abs(J)>=100&&(J=100);var oe={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:H*J,slideStyle:oe})}}}else L||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(o){var i=o.event,m=o.absX,j=o.absY,E=o.dir,T=this.props,K=T.stopPropagation,A=T.swipingThumbnailTransitionDuration,U=this.state,D=U.thumbsSwipedTranslate,L=U.thumbnailsWrapperHeight,N=U.thumbnailsWrapperWidth,B=U.swipingUpDown,H=U.swipingLeftRight;if(this.isThumbnailVertical()){if((E===Ge||E===Be||H)&&!B)return void(H||this.setState({swipingLeftRight:!0}));E!==Xe&&E!==We||B||this.setState({swipingUpDown:!0})}else{if((E===Xe||E===We||B)&&!H)return void(B||this.setState({swipingUpDown:!0}));E!==Ge&&E!==Be||H||this.setState({swipingLeftRight:!0})}var J,oe,ve,me,de,re=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(J=D+(E===We?j:-j),oe=re.scrollHeight-L+20,ve=Math.abs(J)>oe,me=J>20,de=re.scrollHeight<=L):(J=D+(E===Be?m:-m),oe=re.scrollWidth-N+20,ve=Math.abs(J)>oe,me=J>20,de=re.scrollWidth<=N),!de&&(E!==Ge&&E!==Xe||!ve)&&(E!==Be&&E!==We||!me)){K&&i.stopPropagation();var Z={transition:"transform ".concat(A,"ms ease-out")};this.setState({thumbsTranslate:J,thumbsStyle:Z})}}},{key:"handleOnThumbnailSwiped",value:function(){var o=this.state.thumbsTranslate,i=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:o,thumbsStyle:{transition:"all ".concat(i,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var o=this.state.currentSlideOffset,i=this.props.swipeThreshold;return Math.abs(o)>i}},{key:"resetSwipingDirection",value:function(){var o=this.state,i=o.swipingUpDown,m=o.swipingLeftRight;i&&this.setState({swipingUpDown:!1}),m&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(o){var i=o.event,m=o.dir,j=o.velocity,E=this.props,T=E.disableSwipe,K=E.stopPropagation,A=E.flickThreshold;if(!T){var U=this.props.isRTL;K&&i.stopPropagation(),this.resetSwipingDirection();var D=(m===Ge?1:-1)*(U?-1:1),L=j>A&&!(m===Xe||m===We);this.handleOnSwipedTo(D,L)}}},{key:"handleOnSwipedTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=j;!this.sufficientSwipe()&&!i||E||(T+=o),(o===-1&&!this.canSlideLeft()||o===1&&!this.canSlideRight())&&(T=j),this.unthrottledSlideToIndex(T)}},{key:"handleTouchMove",value:function(o){this.state.swipingLeftRight&&o.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(o){var i=this.props,m=i.disableKeyDown,j=i.useBrowserFullscreen,E=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!m)switch(parseInt(o.keyCode||o.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(o);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(o);break;case 27:E&&!j&&this.exitFullScreen()}}},{key:"handleImageError",value:function(o){var i=this.props.onErrorImageURL;i&&o.target.src.indexOf(i)===-1&&(o.target.src=i)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var o=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(o)))}},{key:"initSlideWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeSlideWrapperObserver=new On(ue(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperWidth:j.contentRect.width},i.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(o.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeThumbnailWrapperObserver=new On(ue(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperHeight:j.contentRect.height},i.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(o.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var o=this.props,i=o.onScreenChange,m=o.useBrowserFullscreen,j=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,E=this.imageGallery.current===j;i&&i(E),m&&this.setState({isFullscreen:E})}},{key:"slideToIndex",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props,K=T.items,A=T.slideDuration,U=T.onBeforeSlide;if(!E){i&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var D=K.length-1,L=o;o<0?L=D:o>D&&(L=0),U&&L!==j&&U(L),this.setState({previousIndex:j,currentIndex:L,isTransitioning:L!==j,currentSlideOffset:0,slideStyle:{transition:"all ".concat(A,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"right":"left")}},{key:"slideRight",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"left":"right")}},{key:"slideTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props.items,K=j+(i==="left"?-1:1);E||(T.length===2?this.slideToIndexWithStyleReset(K,o):this.slideToIndex(K,o))}},{key:"slideToIndexWithStyleReset",value:function(o,i){var m=this,j=this.state,E=j.currentIndex,T=j.currentSlideOffset;this.setState({currentSlideOffset:T+(E>o?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return m.slideToIndex(o,i)},25)})}},{key:"handleThumbnailMouseOver",value:function(o,i){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(o,i)}},{key:"handleThumbnailKeyUp",value:function(o,i){Un(o)&&this.onThumbnailClick(o,i)}},{key:"handleSlideKeyUp",value:function(o){Un(o)&&(0,this.props.onClick)(o)}},{key:"isThumbnailVertical",value:function(){var o=this.props.thumbnailPosition;return o==="left"||o==="right"}},{key:"addScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.addEventListener(i,o.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.removeEventListener(i,o.handleScreenChange)})}},{key:"fullScreen",value:function(){var o=this.props.useBrowserFullscreen,i=this.imageGallery.current;o?i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var o=this.state.isFullscreen,i=this.props.useBrowserFullscreen;o&&(i?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var o=this.props.infinite,i=this.state.currentIndex;o||this.canSlideRight()?this.slideToIndex(i+1):this.pause()}},{key:"play",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props,m=i.onPlay,j=i.slideInterval,E=i.slideDuration,T=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(j,E)),m&&o&&m(T))}},{key:"pause",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props.onPause,m=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),i&&o&&i(m))}},{key:"isImageLoaded",value:function(o){return!!this.loadedImages[o.original]||(this.loadedImages[o.original]=!0,!1)}},{key:"handleImageLoaded",value:function(o,i){var m=this.props.onImageLoad;!this.loadedImages[i]&&m&&(this.loadedImages[i]=!0,m(o))}},{key:"renderItem",value:function(o){var i=this.state.isFullscreen,m=this.props.onImageError||this.handleImageError;return p().createElement(di,{description:o.description,fullscreen:o.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:i,onImageError:m,original:o.original,originalAlt:o.originalAlt,originalHeight:o.originalHeight,originalWidth:o.originalWidth,originalTitle:o.originalTitle,sizes:o.sizes,loading:o.loading,srcSet:o.srcSet})}},{key:"renderThumbInner",value:function(o){var i=this.props.onThumbnailError||this.handleImageError;return p().createElement("span",{className:"image-gallery-thumbnail-inner"},p().createElement("img",{className:"image-gallery-thumbnail-image",src:o.thumbnail,height:o.thumbnailHeight,width:o.thumbnailWidth,alt:o.thumbnailAlt,title:o.thumbnailTitle,loading:o.thumbnailLoading,onError:i}),o.thumbnailLabel&&p().createElement("div",{className:"image-gallery-thumbnail-label"},o.thumbnailLabel))}},{key:"render",value:function(){var o=this.state,i=o.currentIndex,m=o.isFullscreen,j=o.modalFullscreen,E=o.isPlaying,T=this.props,K=T.additionalClass,A=T.disableThumbnailSwipe,U=T.indexSeparator,D=T.isRTL,L=T.items,N=T.thumbnailPosition,B=T.renderFullscreenButton,H=T.renderCustomControls,J=T.renderLeftNav,oe=T.renderRightNav,ve=T.showBullets,me=T.showFullscreenButton,de=T.showIndex,re=T.showThumbnails,Z=T.showNav,De=T.showPlayButton,ot=T.renderPlayPauseButton,at=this.getThumbnailStyle(),Me=this.getSlideItems(),Ae=Me.slides,Ie=Me.thumbnails,Je=Me.bullets,st=v("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(N),{"image-gallery-rtl":D}),Ze=p().createElement("div",{ref:this.imageGallerySlideWrapper,className:st},H&&H(),this.canSlide()?p().createElement(p().Fragment,null,Z&&p().createElement(p().Fragment,null,J(this.slideLeft,!this.canSlideLeft()),oe(this.slideRight,!this.canSlideRight())),p().createElement(Fn,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},p().createElement("div",{className:"image-gallery-slides"},Ae))):p().createElement("div",{className:"image-gallery-slides"},Ae),De&&ot(this.togglePlay,E),ve&&p().createElement("div",{className:"image-gallery-bullets"},p().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Je)),me&&B(this.toggleFullScreen,m),de&&p().createElement("div",{className:"image-gallery-index"},p().createElement("span",{className:"image-gallery-index-current"},i+1),p().createElement("span",{className:"image-gallery-index-separator"},U),p().createElement("span",{className:"image-gallery-index-total"},L.length))),lt=v("image-gallery",K,{"fullscreen-modal":j}),ye=v("image-gallery-content",this.getThumbnailPositionClassName(N),{fullscreen:m}),Ti=v("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(N),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&D},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!A},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!A});return p().createElement("div",{ref:this.imageGallery,className:lt,"aria-live":"polite"},p().createElement("div",{className:ye},(N==="bottom"||N==="right")&&Ze,re&&Ie.length>0?p().createElement(Fn,{className:Ti,delta:0,onSwiping:!A&&this.handleThumbnailSwiping,onSwiped:!A&&this.handleOnThumbnailSwiped},p().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},p().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:at,"aria-label":"Thumbnail Navigation"},Ie))):null,(N==="top"||N==="left")&&Ze))}}],c&&wi(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),q}(p().Component);Kt.propTypes={flickThreshold:y.number,items:(0,y.arrayOf)((0,y.shape)({bulletClass:y.string,bulletOnClick:y.func,description:y.string,original:y.string,originalHeight:y.number,originalWidth:y.number,loading:y.string,thumbnailHeight:y.number,thumbnailWidth:y.number,thumbnailLoading:y.string,fullscreen:y.string,originalAlt:y.string,originalTitle:y.string,thumbnail:y.string,thumbnailAlt:y.string,thumbnailLabel:y.string,thumbnailTitle:y.string,originalClass:y.string,thumbnailClass:y.string,renderItem:y.func,renderThumbInner:y.func,imageSet:ki,srcSet:y.string,sizes:y.string})).isRequired,showNav:y.bool,autoPlay:y.bool,lazyLoad:y.bool,infinite:y.bool,showIndex:y.bool,showBullets:y.bool,showThumbnails:y.bool,showPlayButton:y.bool,showFullscreenButton:y.bool,disableThumbnailScroll:y.bool,disableKeyDown:y.bool,disableSwipe:y.bool,disableThumbnailSwipe:y.bool,useBrowserFullscreen:y.bool,onErrorImageURL:y.string,indexSeparator:y.string,thumbnailPosition:(0,y.oneOf)(["top","bottom","left","right"]),startIndex:y.number,slideDuration:y.number,slideInterval:y.number,slideOnThumbnailOver:y.bool,swipeThreshold:y.number,swipingTransitionDuration:y.number,swipingThumbnailTransitionDuration:y.number,onSlide:y.func,onBeforeSlide:y.func,onScreenChange:y.func,onPause:y.func,onPlay:y.func,onClick:y.func,onImageLoad:y.func,onImageError:y.func,onTouchMove:y.func,onTouchEnd:y.func,onTouchStart:y.func,onMouseOver:y.func,onMouseLeave:y.func,onBulletClick:y.func,onThumbnailError:y.func,onThumbnailClick:y.func,renderCustomControls:y.func,renderLeftNav:y.func,renderRightNav:y.func,renderPlayPauseButton:y.func,renderFullscreenButton:y.func,renderItem:y.func,renderThumbInner:y.func,stopPropagation:y.bool,additionalClass:y.string,useTranslate3D:y.bool,isRTL:y.bool,useWindowKeyDown:y.bool},Kt.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(a,r){return p().createElement(gi,{onClick:a,disabled:r})},renderRightNav:function(a,r){return p().createElement(bi,{onClick:a,disabled:r})},renderPlayPauseButton:function(a,r){return p().createElement(vi,{onClick:a,isPlaying:r})},renderFullscreenButton:function(a,r){return p().createElement(mi,{onClick:a,isFullscreen:r})},useWindowKeyDown:!0};const ji=Kt})(),g})())})(Er);var Ao=Er.exports;const $o=hr(Ao);function Ko(){var e=new Map;function n(s){var l=s.root,h=s.rootMargin,f=s.threshold,g=e.get(l);g||(g=new Map,e.set(l,g));var d=JSON.stringify({rootMargin:h,threshold:f}),v=g.get(d);if(!v){var b=new Map,p=new IntersectionObserver(function(S){S.forEach(function(k){var x=b.get(k.target);x==null||x(k)})},{root:l,rootMargin:h,threshold:f});v={observer:p,entryCallbacks:b},g.set(d,v)}return{observe:function(k,x){var w,C;(w=v)==null||w.entryCallbacks.set(k,x),(C=v)==null||C.observer.observe(k)},unobserve:function(k){var x,w;(x=v)==null||x.entryCallbacks.delete(k),(w=v)==null||w.observer.unobserve(k)}}}return{getObserver:n}}var Uo="0px",Ho=[0],Vo=Ko();function qo(e){var n,s,l=(n=e==null?void 0:e.rootMargin)!=null?n:Uo,h=(s=e==null?void 0:e.threshold)!=null?s:Ho,f=I.useRef(null),g=I.useRef(null),d=I.useRef(null),v=I.useState(),b=v[0],p=v[1],S=I.useCallback(function(){var C=f.current;if(!C){p(void 0);return}var R=Vo.getObserver({root:g.current,rootMargin:l,threshold:h});R.observe(C,function(_){p(_)}),d.current=R},[l,h]),k=I.useCallback(function(){var C=d.current,R=f.current;R&&(C==null||C.unobserve(R)),d.current=null},[]),x=I.useCallback(function(C){k(),f.current=C,S()},[S,k]),w=I.useCallback(function(C){k(),g.current=C,S()},[S,k]);return[x,{entry:b,rootRef:w}]}function nn(){return nn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e},nn.apply(this,arguments)}function Go(e){var n,s=qo(e),l=s[0],h=s[1],f=!!((n=h.entry)!=null&&n.isIntersecting),g=I.useState(f),d=g[0],v=g[1];return f&&!d&&v(!0),[l,nn({},h,{isVisible:f,wasEverVisible:d})]}var Xo=100;function Yo(e){var n=e.loading,s=e.hasNextPage,l=e.onLoadMore,h=e.rootMargin,f=e.disabled,g=e.delayInMs,d=g===void 0?Xo:g,v=Go({rootMargin:h}),b=v[0],p=v[1],S=p.rootRef,k=p.isVisible,x=!f&&!n&&k&&s;return I.useEffect(function(){if(x){var w=setTimeout(function(){l()},d);return function(){clearTimeout(w)}}},[l,x,d]),[b,{rootRef:S}]}const Qo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Jo={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'};var Ht=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Vt(e,n,s,l){e.addEventListener?e.addEventListener(n,s,l):e.attachEvent&&e.attachEvent("on".concat(n),function(){s(window.event)})}function _r(e,n){for(var s=n.slice(0,n.length-1),l=0;l<s.length;l++)s[l]=e[s[l].toLowerCase()];return s}function Cr(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var n=e.split(","),s=n.lastIndexOf("");s>=0;)n[s-1]+=",",n.splice(s,1),s=n.lastIndexOf("");return n}function Zo(e,n){for(var s=e.length>=n.length?e:n,l=e.length>=n.length?n:e,h=!0,f=0;f<s.length;f++)l.indexOf(s[f])===-1&&(h=!1);return h}var hn={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ht?173:189,"=":Ht?61:187,";":Ht?59:186,"'":222,"[":219,"]":221,"\\":220},Fe={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},rn={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},he={16:!1,18:!1,17:!1,91:!1},le={};for(var kt=1;kt<20;kt++)hn["f".concat(kt)]=111+kt;var te=[],rr=!1,Rr="all",Ir=[],Mt=function(n){return hn[n.toLowerCase()]||Fe[n.toLowerCase()]||n.toUpperCase().charCodeAt(0)};function Pr(e){Rr=e||"all"}function pt(){return Rr||"all"}function ea(){return te.slice(0)}function ta(e){var n=e.target||e.srcElement,s=n.tagName,l=!0;return(n.isContentEditable||(s==="INPUT"||s==="TEXTAREA"||s==="SELECT")&&!n.readOnly)&&(l=!1),l}function na(e){return typeof e=="string"&&(e=Mt(e)),te.indexOf(e)!==-1}function ra(e,n){var s,l;e||(e=pt());for(var h in le)if(Object.prototype.hasOwnProperty.call(le,h))for(s=le[h],l=0;l<s.length;)s[l].scope===e?s.splice(l,1):l++;pt()===e&&Pr(n||"all")}function ia(e){var n=e.keyCode||e.which||e.charCode,s=te.indexOf(n);if(s>=0&&te.splice(s,1),e.key&&e.key.toLowerCase()==="meta"&&te.splice(0,te.length),(n===93||n===224)&&(n=91),n in he){he[n]=!1;for(var l in Fe)Fe[l]===n&&(xe[l]=!1)}}function oa(e){if(typeof e>"u")Object.keys(le).forEach(function(g){return delete le[g]});else if(Array.isArray(e))e.forEach(function(g){g.key&&qt(g)});else if(typeof e=="object")e.key&&qt(e);else if(typeof e=="string"){for(var n=arguments.length,s=new Array(n>1?n-1:0),l=1;l<n;l++)s[l-1]=arguments[l];var h=s[0],f=s[1];typeof h=="function"&&(f=h,h=""),qt({key:e,scope:h,method:f,splitKey:"+"})}}var qt=function(n){var s=n.key,l=n.scope,h=n.method,f=n.splitKey,g=f===void 0?"+":f,d=Cr(s);d.forEach(function(v){var b=v.split(g),p=b.length,S=b[p-1],k=S==="*"?"*":Mt(S);if(le[k]){l||(l=pt());var x=p>1?_r(Fe,b):[];le[k]=le[k].filter(function(w){var C=h?w.method===h:!0;return!(C&&w.scope===l&&Zo(w.mods,x))})}})};function ir(e,n,s,l){if(n.element===l){var h;if(n.scope===s||n.scope==="all"){h=n.mods.length>0;for(var f in he)Object.prototype.hasOwnProperty.call(he,f)&&(!he[f]&&n.mods.indexOf(+f)>-1||he[f]&&n.mods.indexOf(+f)===-1)&&(h=!1);(n.mods.length===0&&!he[16]&&!he[18]&&!he[17]&&!he[91]||h||n.shortcut==="*")&&n.method(e,n)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function or(e,n){var s=le["*"],l=e.keyCode||e.which||e.charCode;if(xe.filter.call(this,e)){if((l===93||l===224)&&(l=91),te.indexOf(l)===-1&&l!==229&&te.push(l),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(w){var C=rn[w];e[w]&&te.indexOf(C)===-1?te.push(C):!e[w]&&te.indexOf(C)>-1?te.splice(te.indexOf(C),1):w==="metaKey"&&e[w]&&te.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(te=te.slice(te.indexOf(C))))}),l in he){he[l]=!0;for(var h in Fe)Fe[h]===l&&(xe[h]=!0);if(!s)return}for(var f in he)Object.prototype.hasOwnProperty.call(he,f)&&(he[f]=e[rn[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(te.indexOf(17)===-1&&te.push(17),te.indexOf(18)===-1&&te.push(18),he[17]=!0,he[18]=!0);var g=pt();if(s)for(var d=0;d<s.length;d++)s[d].scope===g&&(e.type==="keydown"&&s[d].keydown||e.type==="keyup"&&s[d].keyup)&&ir(e,s[d],g,n);if(l in le){for(var v=0;v<le[l].length;v++)if((e.type==="keydown"&&le[l][v].keydown||e.type==="keyup"&&le[l][v].keyup)&&le[l][v].key){for(var b=le[l][v],p=b.splitKey,S=b.key.split(p),k=[],x=0;x<S.length;x++)k.push(Mt(S[x]));k.sort().join("")===te.sort().join("")&&ir(e,b,g,n)}}}}function aa(e){return Ir.indexOf(e)>-1}function xe(e,n,s){te=[];var l=Cr(e),h=[],f="all",g=document,d=0,v=!1,b=!0,p="+",S=!1;for(s===void 0&&typeof n=="function"&&(s=n),Object.prototype.toString.call(n)==="[object Object]"&&(n.scope&&(f=n.scope),n.element&&(g=n.element),n.keyup&&(v=n.keyup),n.keydown!==void 0&&(b=n.keydown),n.capture!==void 0&&(S=n.capture),typeof n.splitKey=="string"&&(p=n.splitKey)),typeof n=="string"&&(f=n);d<l.length;d++)e=l[d].split(p),h=[],e.length>1&&(h=_r(Fe,e)),e=e[e.length-1],e=e==="*"?"*":Mt(e),e in le||(le[e]=[]),le[e].push({keyup:v,keydown:b,scope:f,mods:h,shortcut:l[d],method:s,key:l[d],splitKey:p,element:g});typeof g<"u"&&!aa(g)&&window&&(Ir.push(g),Vt(g,"keydown",function(k){or(k,g)},S),rr||(rr=!0,Vt(window,"focus",function(){te=[]},S)),Vt(g,"keyup",function(k){or(k,g),ia(k)},S))}function sa(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(le).forEach(function(s){var l=le[s].find(function(h){return h.scope===n&&h.shortcut===e});l&&l.method&&l.method()})}var Gt={setScope:Pr,getScope:pt,deleteScope:ra,getPressedKeyCodes:ea,isPressed:na,filter:ta,trigger:sa,unbind:oa,keyMap:hn,modifier:Fe,modifierMap:rn};for(var Xt in Gt)Object.prototype.hasOwnProperty.call(Gt,Xt)&&(xe[Xt]=Gt[Xt]);if(typeof window<"u"){var la=window.hotkeys;xe.noConflict=function(e){return e&&window.hotkeys===xe&&(window.hotkeys=la),xe},window.hotkeys=xe}xe.filter=function(){return!0};var Mr=function(n,s){var l=n.target,h=l&&l.tagName;return!!(h&&s&&s.includes(h))},ca=function(n){return Mr(n,["INPUT","TEXTAREA","SELECT"])};function ua(e,n,s,l){s instanceof Array&&(l=s,s=void 0);var h=s||{},f=h.enableOnTags,g=h.filter,d=h.keyup,v=h.keydown,b=h.filterPreventDefault,p=b===void 0?!0:b,S=h.enabled,k=S===void 0?!0:S,x=h.enableOnContentEditable,w=x===void 0?!1:x,C=I.useRef(null),R=I.useCallback(function(_,W){var M,$;return g&&!g(_)?!p:ca(_)&&!Mr(_,f)||(M=_.target)!=null&&M.isContentEditable&&!w?!0:C.current===null||document.activeElement===C.current||($=C.current)!=null&&$.contains(document.activeElement)?(n(_,W),!0):!1},l?[C,f,g].concat(l):[C,f,g]);return I.useEffect(function(){if(!k){xe.unbind(e,R);return}return d&&v!==!0&&(s.keydown=!1),xe(e,s||{},R),function(){return xe.unbind(e,R)}},[R,e,k]),C}xe.isPressed;const Dr=I.createContext({open:!1,toggleOpen:e=>{}});function da({children:e}){const[n,s]=I.useState(!1),l=f=>{s(f??!f)},h=I.useMemo(()=>({open:n,toggleOpen:l}),[n]);return t.jsx(Dr.Provider,{value:h,children:e})}function pn(){return I.useContext(Dr)}const ke={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},ha=e=>ft(async()=>{const{data:n}=await e.get(ke.categoriesPath);return Array.isArray(n)?n:[]},{manual:!0});function pa(e,n){const s={sortBy:"popularity",sortDirection:"desc",showResources:"true",...e},{onFilterChange:l,onSearchSelect:h=d=>{n.onFilterChange({...s,keyword:d.title})},emptyCategory:f}=n;!s.category&&!f&&(s.category="All");const g=d=>{const v={...s,...d};l(Ut(v,b=>b===""||b===void 0))};return{filters:e,cleanFilter:d=>{const v=d?Ut(s,(b,p)=>d.includes(p)):{};l(Ut(v,b=>b===""||b===void 0))},handleSort:(d,v)=>{g({sortBy:d,sortDirection:v||d==="nameAsc"?"asc":"desc"})},handleKeyword:d=>{g({category:void 0,keyword:d||void 0})},handlePrice:d=>{g({price:d===e.price?void 0:d})},handleCategory:d=>{g({category:d===e.category?"":d})},handleDeveloper:d=>{g({owner:d||void 0})},handlePage:d=>{g({currentPage:d})},handleSwitchShowResources:d=>{g({showResources:d})},handleSearchSelect:d=>{h(d)}}}const fa=(e,n,s)=>e&&n||!s,Lr=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],zr=(e,n,s)=>{var l,h;const f=Wi(e),g=Ai(f.search);if((l=$i(e,{strict:!0}))!=null&&l.endsWith(".gif"))return g.imageFilter?Ki({...f,search:""}):e;if(g.imageFilter)return e;const d=s||((h=window.blocklet)==null?void 0:h.version),{w:v,h:b}=typeof n=="object"?{w:n.w,h:n.h}:{w:n,h:n};return ln(e,{...v||b?{imageFilter:"resize",w:v,h:b}:{},v:d})},ma=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],ga=(e=[],n="en")=>e.map(s=>({name:s.locales[n]||s.locales.en,value:s._id})),ba=(e,n)=>e==null?void 0:e.replace(/{(\w*)}/g,(s,l)=>n.hasOwnProperty(l)?n[l]:""),va=()=>window.innerWidth<=600,ya={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",price:"Price",category:"Category",categories:"Categories",resourceType:"Resource Type",clear:"Clear",cancel:"Cancel",search:"Search",fetchError:"Failed to fetch data, please try again later"},explore:{title:"Explore",trending:"Trending",topRated:"Top Rated",recentlyUpdated:"Recently Updated",viewDetail:"View Details"},sort:{sort:"Sort",rating:"Rating",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No blocklet found.",free:"Free",search:'Results for "{keyword}"',authorTag:"Blocklet by {name}",resourceTag:"Extensions for {name}",resultCount:"{count} Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'View all search results for "{name}"'}},xa={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试"},explore:{title:"探索",trending:"趋势",topRated:"评分最高",recentlyUpdated:"最近更新",viewDetail:"查看详情"},sort:{sort:"排序",rating:"评分",popularity:"最热门",lastPublished:"最新发布"},category:{all:"全部",placeholder:"分类名称",helperText:"请选择分类"},blocklet:{noResults:"未搜索到 Blocklet",free:"免费",search:'搜索 "{keyword}" 的结果',authorTag:"{name} 的 Blocklet",resourceTag:"{name} 的拓展",resultCount:"{count} 个 Blocklet",emptyTip:"建议:",filterTip:"适当减少筛选条件",keywordTip:"尝试其他关键字",owner:"来自 {name} 的 Blocklets",noBlockletPart1:'没有找到与"',noBlockletPart2:'"相关的 Blocklets',noCategoryResults1:'无 "',noCategoryResults2:'" 类别的 Blocklets'},autocomplete:{expandResult:"查看 “{name}” 的所有搜索结果"}},Yt={en:Gn(ya),zh:Gn(xa)},Nr=(e,n)=>{const s={};return e&&(s["x-blocklet-server-version"]=e),n&&(s["x-blocklet-store-version"]=n),s},wa=e=>(n,s)=>{const l=Yt[e]?Yt[e][n]:Yt.en[n];return ba(l,s)||n},Fr={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!1},endpoint:"",wrapChildren:()=>null,t:e=>e,storeVersion:"",minItemWidth:350,serverVersion:"",layout:{},selectedCategory:void 0,categoryList:[],blockletRender:()=>null,locale:"en",categoryOptions:[],priceOptions:[],storeApi:null,baseSearch:!1,showResourcesSwitch:!1,showCategory:!1,tagFilters:[],developerName:"",onFilterChange:()=>{},updateDeveloperName:()=>{},getCategoryLocale:()=>null,search:{filters:{},cleanFilter:()=>{},handleSort:()=>{},handleKeyword:()=>{},handlePrice:()=>{},handleCategory:()=>{},handleDeveloper:()=>{},handleSwitchShowResources:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},Br=I.createContext(Fr),{Provider:Sa,Consumer:Bs}=Br;function ka(e){const{locale:n="zh",filters:s={},serverVersion:l="",onFilterChange:h=()=>{},minItemWidth:f=350,queryFilter:g=!0,layout:d={},wrapChildren:v=ue=>ue,extraFilter:b=ue=>ue,baseSearch:p=!1,fetchCategoryDelay:S=0,showResourcesSwitch:k=!1,showCategory:x=!0,tagFilters:w=[],children:C,storeVersion:R,onSearchSelect:_=()=>{},endpoint:W,blockletRender:M}=e,$=Nr(l,R),X=I.useMemo(()=>pr({baseURL:W,headers:$}),[W]),Q=pa(s,{onFilterChange:h,emptyCategory:!d.showExplore,onSearchSelect:_}),[V,ce]=I.useState(""),{data:pe=[],error:Ee,loading:_e,run:we}=ha(X),ae=I.useMemo(()=>{const ue=zo(pe,[ne=>ne.name],["asc"]),be=ue.findIndex(ne=>ne.name==="All"||ne.locales.en==="All");return be>-1?[{...ue[be],_id:"All"},...ue.slice(0,be),...ue.slice(be+1)]:ue},[pe]),je=I.useCallback(wa(n),[n]),z=I.useMemo(()=>ga(ae,n),[ae,n]),ee=ma(je),Te={search:Q,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:_e},extraFilter:b,endpoint:W,queryFilter:g,layout:{showExplore:d.showExplore??!1,showCategory:d.showCategory??!0,showTitle:d.showTitle??!0,showSearch:d.showSearch??!0},minItemWidth:f,wrapChildren:v,t:je,storeVersion:R,serverVersion:l,selectedCategory:Q.filters.category||(d.showExplore?"":"All"),categoryList:ae,blockletRender:M,locale:n,categoryOptions:z,priceOptions:ee,storeApi:X,baseSearch:p,showResourcesSwitch:k,showCategory:x,tagFilters:w,onFilterChange:h,getCategoryLocale:ue=>{if(!ue)return null;const be=pe.find(ne=>ne._id===ue||ne.locales.en==="All");return be?be.locales[n]||be.locales.en:null},get developerName(){return V},updateDeveloperName:ce};return I.useEffect(()=>{setTimeout(we,S||0)},[W,we,S]),t.jsx(Sa,{value:Te,children:C})}function ge(){return I.useContext(Br)||Fr}function Wr({children:e,onClick:n,size:s=32,...l}){return t.jsx(Se,{...l,onClick:n,variant:"outlined",sx:[{minWidth:s,height:s,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:e})}function jt(e,n){return e===void 0?n:e}function fn({xs:e,sm:n,md:s,lg:l,xl:h,exact:f}){const g=tt(),d=Ke(g.breakpoints.down("sm")),v=Ke(g.breakpoints.between("sm","md")),b=Ke(g.breakpoints.between("md","lg")),p=Ke(g.breakpoints.between("lg","xl"));if(f)return d?e||null:v?n||null:b?s||null:p?l||null:h||null;let S=e;return d||(S=jt(n,S),v)||(S=jt(s,S),b)||(S=jt(l,S),p)?S:jt(h,S)}function ja({children:e}){const{open:n,toggleOpen:s}=pn();return t.jsx(fn,{xs:t.jsx(Fi,{open:n,onClose:()=>s(!1),children:e}),md:t.jsx(Y,{children:e})})}const Ta=I.forwardRef(({loading:e,disabled:n,...s},l)=>t.jsx(Se,{ref:l,disableElevation:!0,disabled:n||e,...s,sx:[{borderRadius:"4px"},...Array.isArray(s.sx)?s.sx:[s.sx]],startIcon:e&&t.jsx(Pe,{size:"1em"})}));function Ar({value:e,options:n,onChange:s,placeholder:l,...h}){var f;const g=I.useRef(null),d=tt(),[v,b]=I.useState(!1),[p,S]=I.useState(e!==null?e:""),k=Ke(d.breakpoints.down("sm"));I.useEffect(()=>{S(e!==null?e:"")},[e]);const x=I.useCallback(()=>{b(!1)},[]),w=I.useCallback(()=>{b(!0)},[]);function C(_){S(_.value),s(_.value),k&&x()}function R(_){return _===p}return t.jsxs(t.Fragment,{children:[t.jsxs(Oa,{ref:g,onClick:w,variant:"outlined",size:"medium",className:["my-select__selector",Ui(p)?"":"my-select__selector--active"].join(" "),sx:{minWidth:"auto",color:"text.primary",borderRadius:"8px"},...h,children:[((f=n.find(_=>_.value===p))==null?void 0:f.name)||l,t.jsx(Hi,{className:"my-select__arrowdown",component:Or,sx:{width:18,height:18}})]}),t.jsx(Vi,{open:v,anchorEl:g.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:_,placement:W})=>t.jsx(qi,{..._,style:{transformOrigin:W==="bottom"?"center top":"center bottom"},children:t.jsx(Gi,{children:t.jsx(Xi,{onClickAway:x,children:t.jsx(Ea,{autoFocusItem:v,onMouseEnter:w,onMouseLeave:x,children:n.map(M=>t.jsxs(_t,{onClick:()=>C(M),sx:{fontSize:14},children:[t.jsx(Yi,{sx:{mr:1,fontSize:16,visibility:R(M.value)?"visible":"hidden"}}),M.name]},M.value))})})})})})]})}const Oa=He(Ta)`
1
+ import{cj as Le,r as I,cg as ft,f7 as Hn,b9 as Oi,ba as Ei,bj as St,f8 as et,ch as dt,f9 as _i,fa as Ci,bP as Vn,a6 as Pt,bN as ct,cX as Ri,bU as qn,j as t,g as hr,fb as Ii,fc as Pi,aN as mt,aO as gt,cP as ut,cH as Gn,e1 as Se,C as Pe,s as He,M as Y,al as tt,dk as Mi,a3 as Di,dy as Li,fd as pr,eO as fr,fe as an,aC as zi,aD as sn,aW as Oe,ff as Ut,l as G,cW as Et,fg as Ni,F as Ke,fh as Fi,aV as mr,Q as gr,f6 as ln,av as cn,G as Xn,d_ as Yn,aR as Bi,fi as Wi,fj as Ai,fk as $i,fl as Ki,N as Ui,eQ as Hi,eP as Vi,e9 as qi,dS as Gi,eN as Xi,O as _t,$ as Yi,fm as br,fn as Qi,a2 as Ne,fo as Ji,P,o as Ve,aA as vr,aQ as Qn,cy as Zi,B as Ct,a8 as eo,a9 as yr,aG as to,fp as Jn,aa as no,bm as un,D as ro,v as io,S as oo,cv as ao,U as ht,E as xr,z as $e,c as so,q as lo,b0 as co,ae as uo,eS as wr,cd as ho,el as po,W as fo}from"./index-szLyLiKt.js";import{d as mo}from"./ChevronLeft-DIrjaRfk.js";import{d as go}from"./ChevronRight-BhDKV57P.js";import{d as Ot}from"./Search-DgsnShxd.js";import{E as bo}from"./index-CXsdGe6B.js";import{O as Sr}from"./Select-C9prPdE8.js";import{S as ze}from"./Skeleton-BrUMN46n.js";import{A as vo}from"./Autocomplete-BjYb6zBA.js";import{T as kr}from"./TextField-DmmMqMAo.js";import{I as Zn}from"./InputAdornment-vuq-FjCl.js";import{d as yo}from"./ShoppingCart-BMe5IDQI.js";import{d as xo}from"./Add-Iqq5UL4X.js";import{d as jr}from"./Launch-rq__ygCr.js";import{d as wo}from"./Done-CQmwtYHM.js";import{d as Tr}from"./DeleteOutline-DfpoQfad.js";import{C as So}from"./delete-confirm-CG9pn4Op.js";import{u as ko}from"./blocklet-BysF7NjN.js";import{d as jo}from"./MoreVert-CVu4BzQC.js";import{g as Ue}from"./get-safe-url-D9TInGJ7.js";import{B as er}from"./ButtonGroup-B9g57_Ix.js";var To=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Oo=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Eo=function(e,n){n===void 0&&(n={});var s=n.target,l=n.isNoMore,h=n.threshold,f=h===void 0?100:h,g=n.direction,d=g===void 0?"bottom":g,v=n.reloadDeps,b=v===void 0?[]:v,p=n.manual,S=n.onBefore,k=n.onSuccess,x=n.onError,w=n.onFinally,C=Le(I.useState(),2),R=C[0],_=C[1],W=Le(I.useState(!1),2),M=W[0],$=W[1],X=d==="top",Q=I.useRef(),V=I.useRef(0),ce=I.useMemo(function(){return l?l(R):!1},[R]),pe=ft(function(ne){return Oi(void 0,void 0,void 0,function(){var ie,fe,Ce,Re;return Ei(this,function(bt){switch(bt.label){case 0:return[4,e(ne)];case 1:return ie=bt.sent(),_(ne?St(St({},ie),{list:X?et(et([],Le(ie.list),!1),Le((Ce=ne.list)!==null&&Ce!==void 0?Ce:[]),!1):et(et([],Le((Re=ne.list)!==null&&Re!==void 0?Re:[]),!1),Le(ie.list),!1)}):St(St({},ie),{list:et([],Le((fe=ie.list)!==null&&fe!==void 0?fe:[]),!1)})),[2,ie]}})})},{manual:p,onFinally:function(ne,ie,fe){$(!1),w==null||w(ie,fe)},onBefore:function(){return S==null?void 0:S()},onSuccess:function(ne){setTimeout(function(){if(X){var ie=Hn(s);if(ie=ie===document?document.documentElement:ie,ie){var fe=tr(ie);ie.scrollTo(0,fe-V.current)}}else be()}),k==null||k(ne)},onError:function(ne){return x==null?void 0:x(ne)}}),Ee=pe.loading,_e=pe.error,we=pe.run,ae=pe.runAsync,je=pe.cancel,z=dt(function(){ce||($(!0),we(R))}),ee=dt(function(){return ce?Promise.reject():($(!0),ae(R))}),Te=function(){return $(!1),we()},ue=function(){return $(!1),ae()},be=function(){var ne=Hn(s);if(ne){var ie=ne===document?document.documentElement:ne,fe=To(ie),Ce=tr(ie),Re=Oo(ie);X?(Q.current!==void 0&&Q.current>fe&&fe<=f&&z(),Q.current=fe,V.current=Ce-fe):Ce-fe<=Re+f&&z()}};return _i("scroll",function(){Ee||M||be()},{target:s}),Ci(function(){we()},et([],Le(b),!1)),{data:R,loading:!M&&Ee,error:_e,loadingMore:M,noMore:ce,loadMore:z,loadMoreAsync:ee,reload:dt(Te),reloadAsync:dt(ue),mutate:_,cancel:je}};const _o=["name"],Co=["children","className","clone","component"];function Ro(e,n){const s={};return Object.keys(e).forEach(l=>{n.indexOf(l)===-1&&(s[l]=e[l])}),s}function Io(e){return(s,l={})=>{const{name:h}=l,f=Vn(l,_o);let g=h;const v=Pt(typeof s=="function"?S=>({root:k=>s(ct({theme:S},k))}):{root:s},ct({Component:e,name:h||e.displayName,classNamePrefix:g},f));let b;s.filterProps&&(b=s.filterProps,delete s.filterProps),s.propTypes&&(s.propTypes,delete s.propTypes);const p=I.forwardRef(function(k,x){const{children:w,className:C,clone:R,component:_}=k,W=Vn(k,Co),M=v(k),$=qn(M.root,C);let X=W;if(b&&(X=Ro(X,b)),R)return I.cloneElement(w,ct({className:qn(w.props.className,$)},X));if(typeof w=="function")return w(ct({className:$},X));const Q=_||e;return t.jsx(Q,ct({ref:x,className:$},X,{children:w}))});return Ri(p,e),p}}const Ns="blocklet-add-component-registry",Fs="server-add-registry",Po={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'};var Mo=Ii,nr=Pi;function Do(e,n,s,l){return e==null?[]:(nr(n)||(n=n==null?[]:[n]),s=l?void 0:s,nr(s)||(s=s==null?[]:[s]),Mo(e,n,s))}var Lo=Do;const zo=hr(Lo);var dn={},No=gt;Object.defineProperty(dn,"__esModule",{value:!0});var Or=dn.default=void 0,Fo=No(mt()),Bo=t;Or=dn.default=(0,Fo.default)((0,Bo.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Wo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var Er={exports:{}};(function(e,n){(function(s,l){e.exports=l(I)})(ut,s=>(()=>{var l={703:(d,v,b)=>{var p=b(414);function S(){}function k(){}k.resetWarningCache=S,d.exports=function(){function x(R,_,W,M,$,X){if(X!==p){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}}function w(){return x}x.isRequired=x;var C={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:w,element:x,elementType:x,instanceOf:w,node:x,objectOf:w,oneOf:w,oneOfType:w,shape:w,exact:w,checkPropTypes:k,resetWarningCache:S};return C.PropTypes=C,C}},697:(d,v,b)=>{d.exports=b(703)()},414:d=>{d.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:d=>{var v=typeof Element<"u",b=typeof Map=="function",p=typeof Set=="function",S=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function k(x,w){if(x===w)return!0;if(x&&w&&typeof x=="object"&&typeof w=="object"){if(x.constructor!==w.constructor)return!1;var C,R,_,W;if(Array.isArray(x)){if((C=x.length)!=w.length)return!1;for(R=C;R--!=0;)if(!k(x[R],w[R]))return!1;return!0}if(b&&x instanceof Map&&w instanceof Map){if(x.size!==w.size)return!1;for(W=x.entries();!(R=W.next()).done;)if(!w.has(R.value[0]))return!1;for(W=x.entries();!(R=W.next()).done;)if(!k(R.value[1],w.get(R.value[0])))return!1;return!0}if(p&&x instanceof Set&&w instanceof Set){if(x.size!==w.size)return!1;for(W=x.entries();!(R=W.next()).done;)if(!w.has(R.value[0]))return!1;return!0}if(S&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(w)){if((C=x.length)!=w.length)return!1;for(R=C;R--!=0;)if(x[R]!==w[R])return!1;return!0}if(x.constructor===RegExp)return x.source===w.source&&x.flags===w.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===w.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===w.toString();if((C=(_=Object.keys(x)).length)!==Object.keys(w).length)return!1;for(R=C;R--!=0;)if(!Object.prototype.hasOwnProperty.call(w,_[R]))return!1;if(v&&x instanceof Element)return!1;for(R=C;R--!=0;)if((_[R]!=="_owner"&&_[R]!=="__v"&&_[R]!=="__o"||!x.$$typeof)&&!k(x[_[R]],w[_[R]]))return!1;return!0}return x!=x&&w!=w}d.exports=function(x,w){try{return k(x,w)}catch(C){if((C.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw C}}},359:d=>{d.exports=s}},h={};function f(d){var v=h[d];if(v!==void 0)return v.exports;var b=h[d]={exports:{}};return l[d](b,b.exports,f),b.exports}f.n=d=>{var v=d&&d.__esModule?()=>d.default:()=>d;return f.d(v,{a:v}),v},f.d=(d,v)=>{for(var b in v)f.o(v,b)&&!f.o(d,b)&&Object.defineProperty(d,b,{enumerable:!0,get:v[b]})},f.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),f.o=(d,v)=>Object.prototype.hasOwnProperty.call(d,v),f.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var g={};return(()=>{function d(a){var r,c,u="";if(typeof a=="string"||typeof a=="number")u+=a;else if(typeof a=="object")if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]&&(c=d(a[r]))&&(u&&(u+=" "),u+=c);else for(r in a)a[r]&&(u&&(u+=" "),u+=r);return u}function v(){for(var a,r,c=0,u="";c<arguments.length;)(a=arguments[c++])&&(r=d(a))&&(u&&(u+=" "),u+=r);return u}f.r(g),f.d(g,{default:()=>ji});var b=f(359),p=f.n(b);const S=function(a){var r=typeof a;return a!=null&&(r=="object"||r=="function")},k=typeof ut=="object"&&ut&&ut.Object===Object&&ut;var x=typeof self=="object"&&self&&self.Object===Object&&self;const w=k||x||Function("return this")(),C=function(){return w.Date.now()};var R=/\s/,_=/^\s+/;const W=function(a){return a&&a.slice(0,function(r){for(var c=r.length;c--&&R.test(r.charAt(c)););return c}(a)+1).replace(_,"")},M=w.Symbol;var $=Object.prototype,X=$.hasOwnProperty,Q=$.toString,V=M?M.toStringTag:void 0,ce=Object.prototype.toString,pe=M?M.toStringTag:void 0;const Ee=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":pe&&pe in Object(a)?function(r){var c=X.call(r,V),u=r[V];try{r[V]=void 0;var O=!0}catch{}var F=Q.call(r);return O&&(c?r[V]=u:delete r[V]),F}(a):function(r){return ce.call(r)}(a)};var _e=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,je=parseInt;const z=function(a){if(typeof a=="number")return a;if(function(u){return typeof u=="symbol"||function(O){return O!=null&&typeof O=="object"}(u)&&Ee(u)=="[object Symbol]"}(a))return NaN;if(S(a)){var r=typeof a.valueOf=="function"?a.valueOf():a;a=S(r)?r+"":r}if(typeof a!="string")return a===0?a:+a;a=W(a);var c=we.test(a);return c||ae.test(a)?je(a.slice(2),c?2:8):_e.test(a)?NaN:+a};var ee=Math.max,Te=Math.min;const ue=function(a,r,c){var u,O,F,q,o,i,m=0,j=!1,E=!1,T=!0;if(typeof a!="function")throw new TypeError("Expected a function");function K(B){var H=u,J=O;return u=O=void 0,m=B,q=a.apply(J,H)}function A(B){return m=B,o=setTimeout(D,r),j?K(B):q}function U(B){var H=B-i;return i===void 0||H>=r||H<0||E&&B-m>=F}function D(){var B=C();if(U(B))return L(B);o=setTimeout(D,function(H){var J=r-(H-i);return E?Te(J,F-(H-m)):J}(B))}function L(B){return o=void 0,T&&u?K(B):(u=O=void 0,q)}function N(){var B=C(),H=U(B);if(u=arguments,O=this,i=B,H){if(o===void 0)return A(i);if(E)return clearTimeout(o),o=setTimeout(D,r),K(i)}return o===void 0&&(o=setTimeout(D,r)),q}return r=z(r)||0,S(c)&&(j=!!c.leading,F=(E="maxWait"in c)?ee(z(c.maxWait)||0,r):F,T="trailing"in c?!!c.trailing:T),N.cancel=function(){o!==void 0&&clearTimeout(o),m=0,u=i=O=o=void 0},N.flush=function(){return o===void 0?q:L(C())},N},be=function(a,r,c){var u=!0,O=!0;if(typeof a!="function")throw new TypeError("Expected a function");return S(c)&&(u="leading"in c?!!c.leading:u,O="trailing"in c?!!c.trailing:O),ue(a,r,{leading:u,maxWait:r,trailing:O})};var ne=f(590),ie=f.n(ne),fe=function(){if(typeof Map<"u")return Map;function a(r,c){var u=-1;return r.some(function(O,F){return O[0]===c&&(u=F,!0)}),u}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(c){var u=a(this.__entries__,c),O=this.__entries__[u];return O&&O[1]},r.prototype.set=function(c,u){var O=a(this.__entries__,c);~O?this.__entries__[O][1]=u:this.__entries__.push([c,u])},r.prototype.delete=function(c){var u=this.__entries__,O=a(u,c);~O&&u.splice(O,1)},r.prototype.has=function(c){return!!~a(this.__entries__,c)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(c,u){u===void 0&&(u=null);for(var O=0,F=this.__entries__;O<F.length;O++){var q=F[O];c.call(u,q[1],q[0])}},r}()}(),Ce=typeof window<"u"&&typeof document<"u"&&window.document===document,Re=f.g!==void 0&&f.g.Math===Math?f.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),bt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Re):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)},ei=["top","right","bottom","left","width","height","size","weight"],ti=typeof MutationObserver<"u",ni=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(r,c){var u=!1,O=!1,F=0;function q(){u&&(u=!1,r()),O&&i()}function o(){bt(q)}function i(){var m=Date.now();if(u){if(m-F<2)return;O=!0}else u=!0,O=!1,setTimeout(o,20);F=m}return i}(this.refresh.bind(this))}return a.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},a.prototype.removeObserver=function(r){var c=this.observers_,u=c.indexOf(r);~u&&c.splice(u,1),!c.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},a.prototype.updateObservers_=function(){var r=this.observers_.filter(function(c){return c.gatherActive(),c.hasActive()});return r.forEach(function(c){return c.broadcastActive()}),r.length>0},a.prototype.connect_=function(){Ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ti?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){Ce&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(r){var c=r.propertyName,u=c===void 0?"":c;ei.some(function(O){return!!~u.indexOf(O)})&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),wn=function(a,r){for(var c=0,u=Object.keys(r);c<u.length;c++){var O=u[c];Object.defineProperty(a,O,{value:r[O],enumerable:!1,writable:!1,configurable:!0})}return a},qe=function(a){return a&&a.ownerDocument&&a.ownerDocument.defaultView||Re},Sn=yt(0,0,0,0);function vt(a){return parseFloat(a)||0}function kn(a){for(var r=[],c=1;c<arguments.length;c++)r[c-1]=arguments[c];return r.reduce(function(u,O){return u+vt(a["border-"+O+"-width"])},0)}var ri=typeof SVGGraphicsElement<"u"?function(a){return a instanceof qe(a).SVGGraphicsElement}:function(a){return a instanceof qe(a).SVGElement&&typeof a.getBBox=="function"};function ii(a){return Ce?ri(a)?function(r){var c=r.getBBox();return yt(0,0,c.width,c.height)}(a):function(r){var c=r.clientWidth,u=r.clientHeight;if(!c&&!u)return Sn;var O=qe(r).getComputedStyle(r),F=function(T){for(var K={},A=0,U=["top","right","bottom","left"];A<U.length;A++){var D=U[A],L=T["padding-"+D];K[D]=vt(L)}return K}(O),q=F.left+F.right,o=F.top+F.bottom,i=vt(O.width),m=vt(O.height);if(O.boxSizing==="border-box"&&(Math.round(i+q)!==c&&(i-=kn(O,"left","right")+q),Math.round(m+o)!==u&&(m-=kn(O,"top","bottom")+o)),!function(T){return T===qe(T).document.documentElement}(r)){var j=Math.round(i+q)-c,E=Math.round(m+o)-u;Math.abs(j)!==1&&(i-=j),Math.abs(E)!==1&&(m-=E)}return yt(F.left,F.top,i,m)}(a):Sn}function yt(a,r,c,u){return{x:a,y:r,width:c,height:u}}var oi=function(){function a(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=r}return a.prototype.isActive=function(){var r=ii(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},a}(),ai=function(a,r){var c,u,O,F,q,o,i,m=(u=(c=r).x,O=c.y,F=c.width,q=c.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype),wn(i,{x:u,y:O,width:F,height:q,top:O,right:u+F,bottom:q+O,left:u}),i);wn(this,{target:a,contentRect:m})},si=function(){function a(r,c,u){if(this.activeObservations_=[],this.observations_=new fe,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=c,this.callbackCtx_=u}return a.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)||(c.set(r,new oi(r)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)&&(c.delete(r),c.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(c){c.isActive()&&r.activeObservations_.push(c)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,c=this.activeObservations_.map(function(u){return new ai(u.target,u.broadcastRect())});this.callback_.call(r,c,r),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),jn=typeof WeakMap<"u"?new WeakMap:new fe,Tn=function a(r){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=ni.getInstance(),u=new si(r,c,this);jn.set(this,u)};["observe","unobserve","disconnect"].forEach(function(a){Tn.prototype[a]=function(){var r;return(r=jn.get(this))[a].apply(r,arguments)}});const On=Re.ResizeObserver!==void 0?Re.ResizeObserver:Tn,Ge="Left",Be="Right",Xe="Up",We="Down",Ye={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Lt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},En="mousemove",_n="mouseup";function Cn(a,r){if(r===0)return a;const c=Math.PI/180*r;return[a[0]*Math.cos(c)+a[1]*Math.sin(c),a[1]*Math.cos(c)-a[0]*Math.sin(c)]}function li(a){const{trackMouse:r}=a,c=b.useRef(Object.assign({},Lt)),u=b.useRef(Object.assign({},Ye)),O=b.useRef(Object.assign({},u.current));let F;for(F in O.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},Ye),a),Ye)u.current[F]===void 0&&(u.current[F]=Ye[F]);const[q,o]=b.useMemo(()=>function(i,m){const j=D=>{const L="touches"in D;L&&D.touches.length>1||i((N,B)=>{B.trackMouse&&!L&&(document.addEventListener(En,E),document.addEventListener(_n,K));const{clientX:H,clientY:J}=L?D.touches[0]:D,oe=Cn([H,J],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},N),Lt),{initial:oe.slice(),xy:oe,start:D.timeStamp||0})})},E=D=>{i((L,N)=>{const B="touches"in D;if(B&&D.touches.length>1)return L;if(D.timeStamp-L.start>N.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:H,clientY:J}=B?D.touches[0]:D,[oe,ve]=Cn([H,J],N.rotationAngle),me=oe-L.xy[0],de=ve-L.xy[1],re=Math.abs(me),Z=Math.abs(de),De=(D.timeStamp||0)-L.start,ot=Math.sqrt(re*re+Z*Z)/(De||1),at=[me/(De||1),de/(De||1)],Me=function(st,Ze,lt,ye){return st>Ze?lt>0?Be:Ge:ye>0?We:Xe}(re,Z,me,de),Ae=typeof N.delta=="number"?N.delta:N.delta[Me.toLowerCase()]||Ye.delta;if(re<Ae&&Z<Ae&&!L.swiping)return L;const Ie={absX:re,absY:Z,deltaX:me,deltaY:de,dir:Me,event:D,first:L.first,initial:L.initial,velocity:ot,vxvy:at};Ie.first&&N.onSwipeStart&&N.onSwipeStart(Ie),N.onSwiping&&N.onSwiping(Ie);let Je=!1;return(N.onSwiping||N.onSwiped||N[`onSwiped${Me}`])&&(Je=!0),Je&&N.preventScrollOnSwipe&&N.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:Ie,swiping:!0})})},T=D=>{i((L,N)=>{let B;if(L.swiping&&L.eventData){if(D.timeStamp-L.start<N.swipeDuration){B=Object.assign(Object.assign({},L.eventData),{event:D}),N.onSwiped&&N.onSwiped(B);const H=N[`onSwiped${B.dir}`];H&&H(B)}}else N.onTap&&N.onTap({event:D});return N.onTouchEndOrOnMouseUp&&N.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},L),Lt),{eventData:B})})},K=D=>{document.removeEventListener(En,E),document.removeEventListener(_n,K),T(D)},A=(D,L)=>{let N=()=>{};if(D&&D.addEventListener){const B=Object.assign(Object.assign({},Ye.touchEventOptions),L.touchEventOptions),H=[["touchstart",j,B],["touchmove",E,Object.assign(Object.assign({},B),L.preventScrollOnSwipe?{passive:!1}:{})],["touchend",T,B]];H.forEach(([J,oe,ve])=>D.addEventListener(J,oe,ve)),N=()=>H.forEach(([J,oe])=>D.removeEventListener(J,oe))}return N},U={ref:D=>{D!==null&&i((L,N)=>{if(L.el===D)return L;const B={};return L.el&&L.el!==D&&L.cleanUpTouch&&(L.cleanUpTouch(),B.cleanUpTouch=void 0),N.trackTouch&&D&&(B.cleanUpTouch=A(D,N)),Object.assign(Object.assign(Object.assign({},L),{el:D}),B)})}};return m.trackMouse&&(U.onMouseDown=j),[U,A]}(i=>c.current=i(c.current,u.current),{trackMouse:r}),[r]);return c.current=function(i,m,j,E){return m.trackTouch&&i.el?i.cleanUpTouch?m.preventScrollOnSwipe!==j.preventScrollOnSwipe||m.touchEventOptions.passive!==j.touchEventOptions.passive?(i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)})):i:Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)}):(i.cleanUpTouch&&i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:void 0}))}(c.current,u.current,O.current,o),q}var y=f(697);function nt(a){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nt(a)}function Rn(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function In(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Rn(Object(c),!0).forEach(function(u){ci(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Rn(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function ci(a,r,c){return(r=function(u){var O=function(F,q){if(nt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,q);if(nt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(u,"string");return nt(O)==="symbol"?O:String(O)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}var ui={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},zt=p().memo(function(a){var r=In(In({},ui),a),c=r.description,u=r.fullscreen,O=r.handleImageLoaded,F=r.isFullscreen,q=r.onImageError,o=r.original,i=r.originalAlt,m=r.originalHeight,j=r.originalWidth,E=r.originalTitle,T=r.sizes,K=r.srcSet,A=r.loading,U=F&&u||o;return p().createElement(p().Fragment,null,p().createElement("img",{className:"image-gallery-image",src:U,alt:i,srcSet:K,height:m,width:j,sizes:T,title:E,onLoad:function(D){return O(D,o)},onError:q,loading:A}),c&&p().createElement("span",{className:"image-gallery-description"},c))});zt.displayName="Item",zt.propTypes={description:y.string,fullscreen:y.string,handleImageLoaded:y.func.isRequired,isFullscreen:y.bool,onImageError:y.func.isRequired,original:y.string.isRequired,originalAlt:y.string,originalHeight:y.string,originalWidth:y.string,originalTitle:y.string,sizes:y.string,srcSet:y.string,loading:y.string};const di=zt;function rt(a){return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rt(a)}function Pn(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function Mn(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Pn(Object(c),!0).forEach(function(u){hi(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Pn(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function hi(a,r,c){return(r=function(u){var O=function(F,q){if(rt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,q);if(rt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(u,"string");return rt(O)==="symbol"?O:String(O)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}var pi={left:p().createElement("polyline",{points:"15 18 9 12 15 6"}),right:p().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:p().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:p().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:p().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:p().createElement(p().Fragment,null,p().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),p().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},fi={strokeWidth:1,viewBox:"0 0 24 24"},Dn=function(a){var r=Mn(Mn({},fi),a),c=r.strokeWidth,u=r.viewBox,O=r.icon;return p().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:u,fill:"none",stroke:"currentColor",strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"},pi[O])};Dn.propTypes={strokeWidth:y.number,viewBox:y.string,icon:(0,y.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const xt=Dn;var Nt=p().memo(function(a){var r=a.isFullscreen,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:c,"aria-label":"Open Fullscreen"},p().createElement(xt,{strokeWidth:2,icon:r?"minimize":"maximize"}))});Nt.displayName="Fullscreen",Nt.propTypes={isFullscreen:y.bool.isRequired,onClick:y.func.isRequired};const mi=Nt;var Ft=p().memo(function(a){var r=a.disabled,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:r,onClick:c,"aria-label":"Previous Slide"},p().createElement(xt,{icon:"left",viewBox:"6 0 12 24"}))});Ft.displayName="LeftNav",Ft.propTypes={disabled:y.bool.isRequired,onClick:y.func.isRequired};const gi=Ft;var Bt=p().memo(function(a){var r=a.disabled,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:r,onClick:c,"aria-label":"Next Slide"},p().createElement(xt,{icon:"right",viewBox:"6 0 12 24"}))});Bt.displayName="RightNav",Bt.propTypes={disabled:y.bool.isRequired,onClick:y.func.isRequired};const bi=Bt;var Wt=p().memo(function(a){var r=a.isPlaying,c=a.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:c,"aria-label":"Play or Pause Slideshow"},p().createElement(xt,{strokeWidth:2,icon:r?"pause":"play"}))});Wt.displayName="PlayPause",Wt.propTypes={isPlaying:y.bool.isRequired,onClick:y.func.isRequired};const vi=Wt;function it(a){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},it(a)}function At(){return At=Object.assign?Object.assign.bind():function(a){for(var r=1;r<arguments.length;r++){var c=arguments[r];for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])}return a},At.apply(this,arguments)}function Ln(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function zn(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Ln(Object(c),!0).forEach(function(u){yi(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Ln(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function yi(a,r,c){return(r=function(u){var O=function(F,q){if(it(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,q);if(it(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(u,"string");return it(O)==="symbol"?O:String(O)}(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}var xi={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},Nn=function(a){var r=zn(zn({},xi),a),c=r.children,u=r.className,O=li({delta:r.delta,onSwiping:r.onSwiping,onSwiped:r.onSwiped});return p().createElement("div",At({},O,{className:u}),c)};Nn.propTypes={children:y.node.isRequired,className:y.string,delta:y.number,onSwiped:y.func,onSwiping:y.func};const Fn=Nn;function Qe(a){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qe(a)}function Bn(a,r){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);r&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(a,O).enumerable})),c.push.apply(c,u)}return c}function Wn(a){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Bn(Object(c),!0).forEach(function(u){An(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):Bn(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}function wi(a,r){for(var c=0;c<r.length;c++){var u=r[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,$n(u.key),u)}}function $t(a,r){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,u){return c.__proto__=u,c},$t(a,r)}function Si(a,r){if(r&&(Qe(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(a)}function se(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function wt(a){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wt(a)}function An(a,r,c){return(r=$n(r))in a?Object.defineProperty(a,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[r]=c,a}function $n(a){var r=function(c,u){if(Qe(c)!=="object"||c===null)return c;var O=c[Symbol.toPrimitive];if(O!==void 0){var F=O.call(c,u);if(Qe(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a,"string");return Qe(r)==="symbol"?r:String(r)}var Kn=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ki=(0,y.arrayOf)((0,y.shape)({srcSet:y.string,media:y.string}));function Un(a){var r=parseInt(a.keyCode||a.which||0,10);return r===66||r===62}var Kt=function(a){(function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&$t(o,i)})(q,a);var r,c,u,O,F=(u=q,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,i=wt(u);if(O){var m=wt(this).constructor;o=Reflect.construct(i,arguments,m)}else o=i.apply(this,arguments);return Si(this,o)});function q(o){var i;return function(m,j){if(!(m instanceof j))throw new TypeError("Cannot call a class as a function")}(this,q),An(se(i=F.call(this,o)),"onBulletClick",function(m,j){var E=i.props,T=E.onBulletClick,K=E.items,A=i.state.currentIndex;m.target.blur(),A!==j&&(K.length===2?i.slideToIndexWithStyleReset(j,m):i.slideToIndex(j,m)),T&&T(m,j)}),i.state={currentIndex:o.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(o.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},i.loadedImages={},i.imageGallery=p().createRef(),i.thumbnailsWrapper=p().createRef(),i.thumbnails=p().createRef(),i.imageGallerySlideWrapper=p().createRef(),i.handleImageLoaded=i.handleImageLoaded.bind(se(i)),i.handleKeyDown=i.handleKeyDown.bind(se(i)),i.handleMouseDown=i.handleMouseDown.bind(se(i)),i.handleResize=i.handleResize.bind(se(i)),i.handleTouchMove=i.handleTouchMove.bind(se(i)),i.handleOnSwiped=i.handleOnSwiped.bind(se(i)),i.handleScreenChange=i.handleScreenChange.bind(se(i)),i.handleSwiping=i.handleSwiping.bind(se(i)),i.handleThumbnailSwiping=i.handleThumbnailSwiping.bind(se(i)),i.handleOnThumbnailSwiped=i.handleOnThumbnailSwiped.bind(se(i)),i.onThumbnailMouseLeave=i.onThumbnailMouseLeave.bind(se(i)),i.handleImageError=i.handleImageError.bind(se(i)),i.pauseOrPlay=i.pauseOrPlay.bind(se(i)),i.renderThumbInner=i.renderThumbInner.bind(se(i)),i.renderItem=i.renderItem.bind(se(i)),i.slideLeft=i.slideLeft.bind(se(i)),i.slideRight=i.slideRight.bind(se(i)),i.toggleFullScreen=i.toggleFullScreen.bind(se(i)),i.togglePlay=i.togglePlay.bind(se(i)),i.unthrottledSlideToIndex=i.slideToIndex,i.slideToIndex=be(i.unthrottledSlideToIndex,o.slideDuration,{trailing:!1}),o.lazyLoad&&(i.lazyLoaded=[]),i}return r=q,c=[{key:"componentDidMount",value:function(){var o=this.props,i=o.autoPlay,m=o.useWindowKeyDown;i&&this.play(),m?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(o,i){var m=this.props,j=m.items,E=m.lazyLoad,T=m.slideDuration,K=m.slideInterval,A=m.startIndex,U=m.thumbnailPosition,D=m.showThumbnails,L=m.useWindowKeyDown,N=this.state,B=N.currentIndex,H=N.isPlaying,J=o.items.length!==j.length,oe=!ie()(o.items,j),ve=o.startIndex!==A,me=o.thumbnailPosition!==U,de=o.showThumbnails!==D;K===o.slideInterval&&T===o.slideDuration||H&&(this.pause(),this.play()),me&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),de&&D&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),de&&!D&&this.removeThumbnailsResizeObserver(),(J||de)&&this.handleResize(),i.currentIndex!==B&&this.slideThumbnailBar(),o.slideDuration!==T&&(this.slideToIndex=be(this.unthrottledSlideToIndex,T,{trailing:!1})),!E||o.lazyLoad&&!oe||(this.lazyLoaded=[]),L!==o.useWindowKeyDown&&(L?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(ve||oe)&&this.setState({currentIndex:A,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var o=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),o?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var o=this,i=this.state,m=i.currentIndex,j=i.isTransitioning,E=this.props,T=E.onSlide,K=E.slideDuration;this.transitionTimer=window.setTimeout(function(){j&&(o.setState({isTransitioning:!j,isSwipingThumbnail:!1}),T&&T(m))},K+50)}},{key:"onThumbnailClick",value:function(o,i){var m=this.props,j=m.onThumbnailClick,E=m.items,T=this.state.currentIndex;o.target.parentNode.parentNode.blur(),T!==i&&(E.length===2?this.slideToIndexWithStyleReset(i,o):this.slideToIndex(i,o)),j&&j(o,i)}},{key:"onThumbnailMouseOver",value:function(o,i){var m=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){m.slideToIndex(i),m.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var o=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,o&&this.play()}}},{key:"setThumbsTranslate",value:function(o){this.setState({thumbsTranslate:o})}},{key:"setModalFullscreen",value:function(o){var i=this.props.onScreenChange;this.setState({modalFullscreen:o}),i&&i(o)}},{key:"getThumbsTranslate",value:function(o){var i,m=this.props,j=m.disableThumbnailScroll,E=m.items,T=this.state,K=T.thumbnailsWrapperWidth,A=T.thumbnailsWrapperHeight,U=this.thumbnails&&this.thumbnails.current;if(j)return 0;if(U){if(this.isThumbnailVertical()){if(U.scrollHeight<=A)return 0;i=U.scrollHeight-A}else{if(U.scrollWidth<=K||K<=0)return 0;i=U.scrollWidth-K}return o*(i/(E.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(o){switch(o){case"left":o=" ".concat("image-gallery-thumbnails-left");break;case"right":o=" ".concat("image-gallery-thumbnails-right");break;case"bottom":o=" ".concat("image-gallery-thumbnails-bottom");break;case"top":o=" ".concat("image-gallery-thumbnails-top")}return o}},{key:"getAlignmentClassName",value:function(o){var i=this.state.currentIndex,m=this.props,j=m.infinite,E=m.items,T="",K="image-gallery-left",A="image-gallery-right";switch(o){case i-1:T=" ".concat(K);break;case i:T=" ".concat("image-gallery-center");break;case i+1:T=" ".concat(A)}return E.length>=3&&j&&(o===0&&i===E.length-1?T=" ".concat(A):o===E.length-1&&i===0&&(T=" ".concat(K))),T}},{key:"getTranslateXForTwoSlide",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.previousIndex,T=m!==E,K=o===0&&E===0,A=o===1&&E===1,U=o===0&&m===1,D=o===1&&m===0,L=j===0,N=-100*m+100*o+j;return j>0?this.direction="left":j<0&&(this.direction="right"),D&&j>0&&(N=-100+j),U&&j<0&&(N=100+j),T?K&&L&&this.direction==="left"?N=100:A&&L&&this.direction==="right"&&(N=-100):(D&&L&&this.direction==="left"&&(N=-100),U&&L&&this.direction==="right"&&(N=100)),N}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.slideStyle,T=this.props,K=T.infinite,A=T.items,U=T.useTranslate3D,D=T.isRTL,L=-100*m,N=A.length-1,B=(L+100*o)*(D?-1:1)+j;K&&A.length>2&&(m===0&&o===N?B=-100*(D?-1:1)+j:m===N&&o===0&&(B=100*(D?-1:1)+j)),K&&A.length===2&&(B=this.getTranslateXForTwoSlide(o));var H="translate(".concat(B,"%, 0)");return U&&(H="translate3d(".concat(B,"%, 0, 0)")),Wn({display:this.isSlideVisible(o)?"inherit":"none",WebkitTransform:H,MozTransform:H,msTransform:H,OTransform:H,transform:H},E)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var o,i=this.props,m=i.useTranslate3D,j=i.isRTL,E=this.state,T=E.thumbsTranslate,K=E.thumbsStyle,A=j?-1*T:T;return this.isThumbnailVertical()?(o="translate(0, ".concat(T,"px)"),m&&(o="translate3d(0, ".concat(T,"px, 0)"))):(o="translate(".concat(A,"px, 0)"),m&&(o="translate3d(".concat(A,"px, 0, 0)"))),Wn({WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,transform:o},K)}},{key:"getSlideItems",value:function(){var o=this,i=this.state.currentIndex,m=this.props,j=m.items,E=m.slideOnThumbnailOver,T=m.onClick,K=m.lazyLoad,A=m.onTouchMove,U=m.onTouchEnd,D=m.onTouchStart,L=m.onMouseOver,N=m.onMouseLeave,B=m.renderItem,H=m.renderThumbInner,J=m.showThumbnails,oe=m.showBullets,ve=[],me=[],de=[];return j.forEach(function(re,Z){var De=o.getAlignmentClassName(Z),ot=re.originalClass?" ".concat(re.originalClass):"",at=re.thumbnailClass?" ".concat(re.thumbnailClass):"",Me=re.renderItem||B||o.renderItem,Ae=re.renderThumbInner||H||o.renderThumbInner,Ie=!K||De||o.lazyLoaded[Z];Ie&&K&&!o.lazyLoaded[Z]&&(o.lazyLoaded[Z]=!0);var Je=o.getSlideStyle(Z),st=p().createElement("div",{"aria-label":"Go to Slide ".concat(Z+1),key:"slide-".concat(Z),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(ot),style:Je,onClick:T,onKeyUp:o.handleSlideKeyUp,onTouchMove:A,onTouchEnd:U,onTouchStart:D,onMouseOver:L,onFocus:L,onMouseLeave:N,role:"button"},Ie?Me(re):p().createElement("div",{style:{height:"100%"}}));if(ve.push(st),J&&re.thumbnail){var Ze=v("image-gallery-thumbnail",at,{active:i===Z});me.push(p().createElement("button",{key:"thumbnail-".concat(Z),type:"button",tabIndex:"0","aria-pressed":i===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1),className:Ze,onMouseLeave:E?o.onThumbnailMouseLeave:null,onMouseOver:function(ye){return o.handleThumbnailMouseOver(ye,Z)},onFocus:function(ye){return o.handleThumbnailMouseOver(ye,Z)},onKeyUp:function(ye){return o.handleThumbnailKeyUp(ye,Z)},onClick:function(ye){return o.onThumbnailClick(ye,Z)}},Ae(re)))}if(oe){var lt=v("image-gallery-bullet",re.bulletClass,{active:i===Z});de.push(p().createElement("button",{type:"button",key:"bullet-".concat(Z),className:lt,onClick:function(ye){return o.onBulletClick(ye,Z)},"aria-pressed":i===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1)}))}}),{slides:ve,thumbnails:me,bullets:de}}},{key:"ignoreIsTransitioning",value:function(){var o=this.props.items,i=this.state,m=i.previousIndex,j=i.currentIndex,E=o.length-1;return Math.abs(m-j)>1&&!(m===0&&j===E)&&!(m===E&&j===0)}},{key:"isFirstOrLastSlide",value:function(o){return o===this.props.items.length-1||o===0}},{key:"slideIsTransitioning",value:function(o){var i=this.state,m=i.isTransitioning,j=i.previousIndex,E=i.currentIndex;return m&&!(o===j||o===E)}},{key:"isSlideVisible",value:function(o){return!this.slideIsTransitioning(o)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(o)}},{key:"slideThumbnailBar",value:function(){var o=this.state,i=o.currentIndex,m=o.isSwipingThumbnail,j=-this.getThumbsTranslate(i);m||(i===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:j,thumbsSwipedTranslate:j}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(o){var i=o.event,m=o.absX,j=o.dir,E=this.props,T=E.disableSwipe,K=E.stopPropagation,A=this.state,U=A.galleryWidth,D=A.isTransitioning,L=A.swipingUpDown,N=A.swipingLeftRight;if(j!==Xe&&j!==We&&!L||N){if(j!==Ge&&j!==Be||N||this.setState({swipingLeftRight:!0}),!T){var B=this.props.swipingTransitionDuration;if(K&&i.preventDefault(),D)this.setState({currentSlideOffset:0});else{var H=j===Be?1:-1,J=m/U*100;Math.abs(J)>=100&&(J=100);var oe={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:H*J,slideStyle:oe})}}}else L||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(o){var i=o.event,m=o.absX,j=o.absY,E=o.dir,T=this.props,K=T.stopPropagation,A=T.swipingThumbnailTransitionDuration,U=this.state,D=U.thumbsSwipedTranslate,L=U.thumbnailsWrapperHeight,N=U.thumbnailsWrapperWidth,B=U.swipingUpDown,H=U.swipingLeftRight;if(this.isThumbnailVertical()){if((E===Ge||E===Be||H)&&!B)return void(H||this.setState({swipingLeftRight:!0}));E!==Xe&&E!==We||B||this.setState({swipingUpDown:!0})}else{if((E===Xe||E===We||B)&&!H)return void(B||this.setState({swipingUpDown:!0}));E!==Ge&&E!==Be||H||this.setState({swipingLeftRight:!0})}var J,oe,ve,me,de,re=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(J=D+(E===We?j:-j),oe=re.scrollHeight-L+20,ve=Math.abs(J)>oe,me=J>20,de=re.scrollHeight<=L):(J=D+(E===Be?m:-m),oe=re.scrollWidth-N+20,ve=Math.abs(J)>oe,me=J>20,de=re.scrollWidth<=N),!de&&(E!==Ge&&E!==Xe||!ve)&&(E!==Be&&E!==We||!me)){K&&i.stopPropagation();var Z={transition:"transform ".concat(A,"ms ease-out")};this.setState({thumbsTranslate:J,thumbsStyle:Z})}}},{key:"handleOnThumbnailSwiped",value:function(){var o=this.state.thumbsTranslate,i=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:o,thumbsStyle:{transition:"all ".concat(i,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var o=this.state.currentSlideOffset,i=this.props.swipeThreshold;return Math.abs(o)>i}},{key:"resetSwipingDirection",value:function(){var o=this.state,i=o.swipingUpDown,m=o.swipingLeftRight;i&&this.setState({swipingUpDown:!1}),m&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(o){var i=o.event,m=o.dir,j=o.velocity,E=this.props,T=E.disableSwipe,K=E.stopPropagation,A=E.flickThreshold;if(!T){var U=this.props.isRTL;K&&i.stopPropagation(),this.resetSwipingDirection();var D=(m===Ge?1:-1)*(U?-1:1),L=j>A&&!(m===Xe||m===We);this.handleOnSwipedTo(D,L)}}},{key:"handleOnSwipedTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=j;!this.sufficientSwipe()&&!i||E||(T+=o),(o===-1&&!this.canSlideLeft()||o===1&&!this.canSlideRight())&&(T=j),this.unthrottledSlideToIndex(T)}},{key:"handleTouchMove",value:function(o){this.state.swipingLeftRight&&o.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(o){var i=this.props,m=i.disableKeyDown,j=i.useBrowserFullscreen,E=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!m)switch(parseInt(o.keyCode||o.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(o);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(o);break;case 27:E&&!j&&this.exitFullScreen()}}},{key:"handleImageError",value:function(o){var i=this.props.onErrorImageURL;i&&o.target.src.indexOf(i)===-1&&(o.target.src=i)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var o=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(o)))}},{key:"initSlideWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeSlideWrapperObserver=new On(ue(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperWidth:j.contentRect.width},i.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(o.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeThumbnailWrapperObserver=new On(ue(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperHeight:j.contentRect.height},i.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(o.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var o=this.props,i=o.onScreenChange,m=o.useBrowserFullscreen,j=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,E=this.imageGallery.current===j;i&&i(E),m&&this.setState({isFullscreen:E})}},{key:"slideToIndex",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props,K=T.items,A=T.slideDuration,U=T.onBeforeSlide;if(!E){i&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var D=K.length-1,L=o;o<0?L=D:o>D&&(L=0),U&&L!==j&&U(L),this.setState({previousIndex:j,currentIndex:L,isTransitioning:L!==j,currentSlideOffset:0,slideStyle:{transition:"all ".concat(A,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"right":"left")}},{key:"slideRight",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"left":"right")}},{key:"slideTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props.items,K=j+(i==="left"?-1:1);E||(T.length===2?this.slideToIndexWithStyleReset(K,o):this.slideToIndex(K,o))}},{key:"slideToIndexWithStyleReset",value:function(o,i){var m=this,j=this.state,E=j.currentIndex,T=j.currentSlideOffset;this.setState({currentSlideOffset:T+(E>o?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return m.slideToIndex(o,i)},25)})}},{key:"handleThumbnailMouseOver",value:function(o,i){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(o,i)}},{key:"handleThumbnailKeyUp",value:function(o,i){Un(o)&&this.onThumbnailClick(o,i)}},{key:"handleSlideKeyUp",value:function(o){Un(o)&&(0,this.props.onClick)(o)}},{key:"isThumbnailVertical",value:function(){var o=this.props.thumbnailPosition;return o==="left"||o==="right"}},{key:"addScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.addEventListener(i,o.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.removeEventListener(i,o.handleScreenChange)})}},{key:"fullScreen",value:function(){var o=this.props.useBrowserFullscreen,i=this.imageGallery.current;o?i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var o=this.state.isFullscreen,i=this.props.useBrowserFullscreen;o&&(i?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var o=this.props.infinite,i=this.state.currentIndex;o||this.canSlideRight()?this.slideToIndex(i+1):this.pause()}},{key:"play",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props,m=i.onPlay,j=i.slideInterval,E=i.slideDuration,T=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(j,E)),m&&o&&m(T))}},{key:"pause",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props.onPause,m=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),i&&o&&i(m))}},{key:"isImageLoaded",value:function(o){return!!this.loadedImages[o.original]||(this.loadedImages[o.original]=!0,!1)}},{key:"handleImageLoaded",value:function(o,i){var m=this.props.onImageLoad;!this.loadedImages[i]&&m&&(this.loadedImages[i]=!0,m(o))}},{key:"renderItem",value:function(o){var i=this.state.isFullscreen,m=this.props.onImageError||this.handleImageError;return p().createElement(di,{description:o.description,fullscreen:o.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:i,onImageError:m,original:o.original,originalAlt:o.originalAlt,originalHeight:o.originalHeight,originalWidth:o.originalWidth,originalTitle:o.originalTitle,sizes:o.sizes,loading:o.loading,srcSet:o.srcSet})}},{key:"renderThumbInner",value:function(o){var i=this.props.onThumbnailError||this.handleImageError;return p().createElement("span",{className:"image-gallery-thumbnail-inner"},p().createElement("img",{className:"image-gallery-thumbnail-image",src:o.thumbnail,height:o.thumbnailHeight,width:o.thumbnailWidth,alt:o.thumbnailAlt,title:o.thumbnailTitle,loading:o.thumbnailLoading,onError:i}),o.thumbnailLabel&&p().createElement("div",{className:"image-gallery-thumbnail-label"},o.thumbnailLabel))}},{key:"render",value:function(){var o=this.state,i=o.currentIndex,m=o.isFullscreen,j=o.modalFullscreen,E=o.isPlaying,T=this.props,K=T.additionalClass,A=T.disableThumbnailSwipe,U=T.indexSeparator,D=T.isRTL,L=T.items,N=T.thumbnailPosition,B=T.renderFullscreenButton,H=T.renderCustomControls,J=T.renderLeftNav,oe=T.renderRightNav,ve=T.showBullets,me=T.showFullscreenButton,de=T.showIndex,re=T.showThumbnails,Z=T.showNav,De=T.showPlayButton,ot=T.renderPlayPauseButton,at=this.getThumbnailStyle(),Me=this.getSlideItems(),Ae=Me.slides,Ie=Me.thumbnails,Je=Me.bullets,st=v("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(N),{"image-gallery-rtl":D}),Ze=p().createElement("div",{ref:this.imageGallerySlideWrapper,className:st},H&&H(),this.canSlide()?p().createElement(p().Fragment,null,Z&&p().createElement(p().Fragment,null,J(this.slideLeft,!this.canSlideLeft()),oe(this.slideRight,!this.canSlideRight())),p().createElement(Fn,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},p().createElement("div",{className:"image-gallery-slides"},Ae))):p().createElement("div",{className:"image-gallery-slides"},Ae),De&&ot(this.togglePlay,E),ve&&p().createElement("div",{className:"image-gallery-bullets"},p().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Je)),me&&B(this.toggleFullScreen,m),de&&p().createElement("div",{className:"image-gallery-index"},p().createElement("span",{className:"image-gallery-index-current"},i+1),p().createElement("span",{className:"image-gallery-index-separator"},U),p().createElement("span",{className:"image-gallery-index-total"},L.length))),lt=v("image-gallery",K,{"fullscreen-modal":j}),ye=v("image-gallery-content",this.getThumbnailPositionClassName(N),{fullscreen:m}),Ti=v("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(N),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&D},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!A},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!A});return p().createElement("div",{ref:this.imageGallery,className:lt,"aria-live":"polite"},p().createElement("div",{className:ye},(N==="bottom"||N==="right")&&Ze,re&&Ie.length>0?p().createElement(Fn,{className:Ti,delta:0,onSwiping:!A&&this.handleThumbnailSwiping,onSwiped:!A&&this.handleOnThumbnailSwiped},p().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},p().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:at,"aria-label":"Thumbnail Navigation"},Ie))):null,(N==="top"||N==="left")&&Ze))}}],c&&wi(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),q}(p().Component);Kt.propTypes={flickThreshold:y.number,items:(0,y.arrayOf)((0,y.shape)({bulletClass:y.string,bulletOnClick:y.func,description:y.string,original:y.string,originalHeight:y.number,originalWidth:y.number,loading:y.string,thumbnailHeight:y.number,thumbnailWidth:y.number,thumbnailLoading:y.string,fullscreen:y.string,originalAlt:y.string,originalTitle:y.string,thumbnail:y.string,thumbnailAlt:y.string,thumbnailLabel:y.string,thumbnailTitle:y.string,originalClass:y.string,thumbnailClass:y.string,renderItem:y.func,renderThumbInner:y.func,imageSet:ki,srcSet:y.string,sizes:y.string})).isRequired,showNav:y.bool,autoPlay:y.bool,lazyLoad:y.bool,infinite:y.bool,showIndex:y.bool,showBullets:y.bool,showThumbnails:y.bool,showPlayButton:y.bool,showFullscreenButton:y.bool,disableThumbnailScroll:y.bool,disableKeyDown:y.bool,disableSwipe:y.bool,disableThumbnailSwipe:y.bool,useBrowserFullscreen:y.bool,onErrorImageURL:y.string,indexSeparator:y.string,thumbnailPosition:(0,y.oneOf)(["top","bottom","left","right"]),startIndex:y.number,slideDuration:y.number,slideInterval:y.number,slideOnThumbnailOver:y.bool,swipeThreshold:y.number,swipingTransitionDuration:y.number,swipingThumbnailTransitionDuration:y.number,onSlide:y.func,onBeforeSlide:y.func,onScreenChange:y.func,onPause:y.func,onPlay:y.func,onClick:y.func,onImageLoad:y.func,onImageError:y.func,onTouchMove:y.func,onTouchEnd:y.func,onTouchStart:y.func,onMouseOver:y.func,onMouseLeave:y.func,onBulletClick:y.func,onThumbnailError:y.func,onThumbnailClick:y.func,renderCustomControls:y.func,renderLeftNav:y.func,renderRightNav:y.func,renderPlayPauseButton:y.func,renderFullscreenButton:y.func,renderItem:y.func,renderThumbInner:y.func,stopPropagation:y.bool,additionalClass:y.string,useTranslate3D:y.bool,isRTL:y.bool,useWindowKeyDown:y.bool},Kt.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(a,r){return p().createElement(gi,{onClick:a,disabled:r})},renderRightNav:function(a,r){return p().createElement(bi,{onClick:a,disabled:r})},renderPlayPauseButton:function(a,r){return p().createElement(vi,{onClick:a,isPlaying:r})},renderFullscreenButton:function(a,r){return p().createElement(mi,{onClick:a,isFullscreen:r})},useWindowKeyDown:!0};const ji=Kt})(),g})())})(Er);var Ao=Er.exports;const $o=hr(Ao);function Ko(){var e=new Map;function n(s){var l=s.root,h=s.rootMargin,f=s.threshold,g=e.get(l);g||(g=new Map,e.set(l,g));var d=JSON.stringify({rootMargin:h,threshold:f}),v=g.get(d);if(!v){var b=new Map,p=new IntersectionObserver(function(S){S.forEach(function(k){var x=b.get(k.target);x==null||x(k)})},{root:l,rootMargin:h,threshold:f});v={observer:p,entryCallbacks:b},g.set(d,v)}return{observe:function(k,x){var w,C;(w=v)==null||w.entryCallbacks.set(k,x),(C=v)==null||C.observer.observe(k)},unobserve:function(k){var x,w;(x=v)==null||x.entryCallbacks.delete(k),(w=v)==null||w.observer.unobserve(k)}}}return{getObserver:n}}var Uo="0px",Ho=[0],Vo=Ko();function qo(e){var n,s,l=(n=e==null?void 0:e.rootMargin)!=null?n:Uo,h=(s=e==null?void 0:e.threshold)!=null?s:Ho,f=I.useRef(null),g=I.useRef(null),d=I.useRef(null),v=I.useState(),b=v[0],p=v[1],S=I.useCallback(function(){var C=f.current;if(!C){p(void 0);return}var R=Vo.getObserver({root:g.current,rootMargin:l,threshold:h});R.observe(C,function(_){p(_)}),d.current=R},[l,h]),k=I.useCallback(function(){var C=d.current,R=f.current;R&&(C==null||C.unobserve(R)),d.current=null},[]),x=I.useCallback(function(C){k(),f.current=C,S()},[S,k]),w=I.useCallback(function(C){k(),g.current=C,S()},[S,k]);return[x,{entry:b,rootRef:w}]}function nn(){return nn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e},nn.apply(this,arguments)}function Go(e){var n,s=qo(e),l=s[0],h=s[1],f=!!((n=h.entry)!=null&&n.isIntersecting),g=I.useState(f),d=g[0],v=g[1];return f&&!d&&v(!0),[l,nn({},h,{isVisible:f,wasEverVisible:d})]}var Xo=100;function Yo(e){var n=e.loading,s=e.hasNextPage,l=e.onLoadMore,h=e.rootMargin,f=e.disabled,g=e.delayInMs,d=g===void 0?Xo:g,v=Go({rootMargin:h}),b=v[0],p=v[1],S=p.rootRef,k=p.isVisible,x=!f&&!n&&k&&s;return I.useEffect(function(){if(x){var w=setTimeout(function(){l()},d);return function(){clearTimeout(w)}}},[l,x,d]),[b,{rootRef:S}]}const Qo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Jo={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'};var Ht=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Vt(e,n,s,l){e.addEventListener?e.addEventListener(n,s,l):e.attachEvent&&e.attachEvent("on".concat(n),function(){s(window.event)})}function _r(e,n){for(var s=n.slice(0,n.length-1),l=0;l<s.length;l++)s[l]=e[s[l].toLowerCase()];return s}function Cr(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var n=e.split(","),s=n.lastIndexOf("");s>=0;)n[s-1]+=",",n.splice(s,1),s=n.lastIndexOf("");return n}function Zo(e,n){for(var s=e.length>=n.length?e:n,l=e.length>=n.length?n:e,h=!0,f=0;f<s.length;f++)l.indexOf(s[f])===-1&&(h=!1);return h}var hn={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ht?173:189,"=":Ht?61:187,";":Ht?59:186,"'":222,"[":219,"]":221,"\\":220},Fe={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},rn={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},he={16:!1,18:!1,17:!1,91:!1},le={};for(var kt=1;kt<20;kt++)hn["f".concat(kt)]=111+kt;var te=[],rr=!1,Rr="all",Ir=[],Mt=function(n){return hn[n.toLowerCase()]||Fe[n.toLowerCase()]||n.toUpperCase().charCodeAt(0)};function Pr(e){Rr=e||"all"}function pt(){return Rr||"all"}function ea(){return te.slice(0)}function ta(e){var n=e.target||e.srcElement,s=n.tagName,l=!0;return(n.isContentEditable||(s==="INPUT"||s==="TEXTAREA"||s==="SELECT")&&!n.readOnly)&&(l=!1),l}function na(e){return typeof e=="string"&&(e=Mt(e)),te.indexOf(e)!==-1}function ra(e,n){var s,l;e||(e=pt());for(var h in le)if(Object.prototype.hasOwnProperty.call(le,h))for(s=le[h],l=0;l<s.length;)s[l].scope===e?s.splice(l,1):l++;pt()===e&&Pr(n||"all")}function ia(e){var n=e.keyCode||e.which||e.charCode,s=te.indexOf(n);if(s>=0&&te.splice(s,1),e.key&&e.key.toLowerCase()==="meta"&&te.splice(0,te.length),(n===93||n===224)&&(n=91),n in he){he[n]=!1;for(var l in Fe)Fe[l]===n&&(xe[l]=!1)}}function oa(e){if(typeof e>"u")Object.keys(le).forEach(function(g){return delete le[g]});else if(Array.isArray(e))e.forEach(function(g){g.key&&qt(g)});else if(typeof e=="object")e.key&&qt(e);else if(typeof e=="string"){for(var n=arguments.length,s=new Array(n>1?n-1:0),l=1;l<n;l++)s[l-1]=arguments[l];var h=s[0],f=s[1];typeof h=="function"&&(f=h,h=""),qt({key:e,scope:h,method:f,splitKey:"+"})}}var qt=function(n){var s=n.key,l=n.scope,h=n.method,f=n.splitKey,g=f===void 0?"+":f,d=Cr(s);d.forEach(function(v){var b=v.split(g),p=b.length,S=b[p-1],k=S==="*"?"*":Mt(S);if(le[k]){l||(l=pt());var x=p>1?_r(Fe,b):[];le[k]=le[k].filter(function(w){var C=h?w.method===h:!0;return!(C&&w.scope===l&&Zo(w.mods,x))})}})};function ir(e,n,s,l){if(n.element===l){var h;if(n.scope===s||n.scope==="all"){h=n.mods.length>0;for(var f in he)Object.prototype.hasOwnProperty.call(he,f)&&(!he[f]&&n.mods.indexOf(+f)>-1||he[f]&&n.mods.indexOf(+f)===-1)&&(h=!1);(n.mods.length===0&&!he[16]&&!he[18]&&!he[17]&&!he[91]||h||n.shortcut==="*")&&n.method(e,n)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function or(e,n){var s=le["*"],l=e.keyCode||e.which||e.charCode;if(xe.filter.call(this,e)){if((l===93||l===224)&&(l=91),te.indexOf(l)===-1&&l!==229&&te.push(l),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(w){var C=rn[w];e[w]&&te.indexOf(C)===-1?te.push(C):!e[w]&&te.indexOf(C)>-1?te.splice(te.indexOf(C),1):w==="metaKey"&&e[w]&&te.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(te=te.slice(te.indexOf(C))))}),l in he){he[l]=!0;for(var h in Fe)Fe[h]===l&&(xe[h]=!0);if(!s)return}for(var f in he)Object.prototype.hasOwnProperty.call(he,f)&&(he[f]=e[rn[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(te.indexOf(17)===-1&&te.push(17),te.indexOf(18)===-1&&te.push(18),he[17]=!0,he[18]=!0);var g=pt();if(s)for(var d=0;d<s.length;d++)s[d].scope===g&&(e.type==="keydown"&&s[d].keydown||e.type==="keyup"&&s[d].keyup)&&ir(e,s[d],g,n);if(l in le){for(var v=0;v<le[l].length;v++)if((e.type==="keydown"&&le[l][v].keydown||e.type==="keyup"&&le[l][v].keyup)&&le[l][v].key){for(var b=le[l][v],p=b.splitKey,S=b.key.split(p),k=[],x=0;x<S.length;x++)k.push(Mt(S[x]));k.sort().join("")===te.sort().join("")&&ir(e,b,g,n)}}}}function aa(e){return Ir.indexOf(e)>-1}function xe(e,n,s){te=[];var l=Cr(e),h=[],f="all",g=document,d=0,v=!1,b=!0,p="+",S=!1;for(s===void 0&&typeof n=="function"&&(s=n),Object.prototype.toString.call(n)==="[object Object]"&&(n.scope&&(f=n.scope),n.element&&(g=n.element),n.keyup&&(v=n.keyup),n.keydown!==void 0&&(b=n.keydown),n.capture!==void 0&&(S=n.capture),typeof n.splitKey=="string"&&(p=n.splitKey)),typeof n=="string"&&(f=n);d<l.length;d++)e=l[d].split(p),h=[],e.length>1&&(h=_r(Fe,e)),e=e[e.length-1],e=e==="*"?"*":Mt(e),e in le||(le[e]=[]),le[e].push({keyup:v,keydown:b,scope:f,mods:h,shortcut:l[d],method:s,key:l[d],splitKey:p,element:g});typeof g<"u"&&!aa(g)&&window&&(Ir.push(g),Vt(g,"keydown",function(k){or(k,g)},S),rr||(rr=!0,Vt(window,"focus",function(){te=[]},S)),Vt(g,"keyup",function(k){or(k,g),ia(k)},S))}function sa(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(le).forEach(function(s){var l=le[s].find(function(h){return h.scope===n&&h.shortcut===e});l&&l.method&&l.method()})}var Gt={setScope:Pr,getScope:pt,deleteScope:ra,getPressedKeyCodes:ea,isPressed:na,filter:ta,trigger:sa,unbind:oa,keyMap:hn,modifier:Fe,modifierMap:rn};for(var Xt in Gt)Object.prototype.hasOwnProperty.call(Gt,Xt)&&(xe[Xt]=Gt[Xt]);if(typeof window<"u"){var la=window.hotkeys;xe.noConflict=function(e){return e&&window.hotkeys===xe&&(window.hotkeys=la),xe},window.hotkeys=xe}xe.filter=function(){return!0};var Mr=function(n,s){var l=n.target,h=l&&l.tagName;return!!(h&&s&&s.includes(h))},ca=function(n){return Mr(n,["INPUT","TEXTAREA","SELECT"])};function ua(e,n,s,l){s instanceof Array&&(l=s,s=void 0);var h=s||{},f=h.enableOnTags,g=h.filter,d=h.keyup,v=h.keydown,b=h.filterPreventDefault,p=b===void 0?!0:b,S=h.enabled,k=S===void 0?!0:S,x=h.enableOnContentEditable,w=x===void 0?!1:x,C=I.useRef(null),R=I.useCallback(function(_,W){var M,$;return g&&!g(_)?!p:ca(_)&&!Mr(_,f)||(M=_.target)!=null&&M.isContentEditable&&!w?!0:C.current===null||document.activeElement===C.current||($=C.current)!=null&&$.contains(document.activeElement)?(n(_,W),!0):!1},l?[C,f,g].concat(l):[C,f,g]);return I.useEffect(function(){if(!k){xe.unbind(e,R);return}return d&&v!==!0&&(s.keydown=!1),xe(e,s||{},R),function(){return xe.unbind(e,R)}},[R,e,k]),C}xe.isPressed;const Dr=I.createContext({open:!1,toggleOpen:e=>{}});function da({children:e}){const[n,s]=I.useState(!1),l=f=>{s(f??!f)},h=I.useMemo(()=>({open:n,toggleOpen:l}),[n]);return t.jsx(Dr.Provider,{value:h,children:e})}function pn(){return I.useContext(Dr)}const ke={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},ha=e=>ft(async()=>{const{data:n}=await e.get(ke.categoriesPath);return Array.isArray(n)?n:[]},{manual:!0});function pa(e,n){const s={sortBy:"popularity",sortDirection:"desc",showResources:"true",...e},{onFilterChange:l,onSearchSelect:h=d=>{n.onFilterChange({...s,keyword:d.title})},emptyCategory:f}=n;!s.category&&!f&&(s.category="All");const g=d=>{const v={...s,...d};l(Ut(v,b=>b===""||b===void 0))};return{filters:e,cleanFilter:d=>{const v=d?Ut(s,(b,p)=>d.includes(p)):{};l(Ut(v,b=>b===""||b===void 0))},handleSort:(d,v)=>{g({sortBy:d,sortDirection:v||d==="nameAsc"?"asc":"desc"})},handleKeyword:d=>{g({category:void 0,keyword:d||void 0})},handlePrice:d=>{g({price:d===e.price?void 0:d})},handleCategory:d=>{g({category:d===e.category?"":d})},handleDeveloper:d=>{g({owner:d||void 0})},handlePage:d=>{g({currentPage:d})},handleSwitchShowResources:d=>{g({showResources:d})},handleSearchSelect:d=>{h(d)}}}const fa=(e,n,s)=>e&&n||!s,Lr=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],zr=(e,n,s)=>{var l,h;const f=Wi(e),g=Ai(f.search);if((l=$i(e,{strict:!0}))!=null&&l.endsWith(".gif"))return g.imageFilter?Ki({...f,search:""}):e;if(g.imageFilter)return e;const d=s||((h=window.blocklet)==null?void 0:h.version),{w:v,h:b}=typeof n=="object"?{w:n.w,h:n.h}:{w:n,h:n};return ln(e,{...v||b?{imageFilter:"resize",w:v,h:b}:{},v:d})},ma=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],ga=(e=[],n="en")=>e.map(s=>({name:s.locales[n]||s.locales.en,value:s._id})),ba=(e,n)=>e==null?void 0:e.replace(/{(\w*)}/g,(s,l)=>n.hasOwnProperty(l)?n[l]:""),va=()=>window.innerWidth<=600,ya={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",price:"Price",category:"Category",categories:"Categories",resourceType:"Resource Type",clear:"Clear",cancel:"Cancel",search:"Search",fetchError:"Failed to fetch data, please try again later"},explore:{title:"Explore",trending:"Trending",topRated:"Top Rated",recentlyUpdated:"Recently Updated",viewDetail:"View Details"},sort:{sort:"Sort",rating:"Rating",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No blocklet found.",free:"Free",search:'Results for "{keyword}"',authorTag:"Blocklet by {name}",resourceTag:"Extensions for {name}",resultCount:"{count} Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'View all search results for "{name}"'}},xa={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试"},explore:{title:"探索",trending:"趋势",topRated:"评分最高",recentlyUpdated:"最近更新",viewDetail:"查看详情"},sort:{sort:"排序",rating:"评分",popularity:"最热门",lastPublished:"最新发布"},category:{all:"全部",placeholder:"分类名称",helperText:"请选择分类"},blocklet:{noResults:"未搜索到 Blocklet",free:"免费",search:'搜索 "{keyword}" 的结果',authorTag:"{name} 的 Blocklet",resourceTag:"{name} 的拓展",resultCount:"{count} 个 Blocklet",emptyTip:"建议:",filterTip:"适当减少筛选条件",keywordTip:"尝试其他关键字",owner:"来自 {name} 的 Blocklets",noBlockletPart1:'没有找到与"',noBlockletPart2:'"相关的 Blocklets',noCategoryResults1:'无 "',noCategoryResults2:'" 类别的 Blocklets'},autocomplete:{expandResult:"查看 “{name}” 的所有搜索结果"}},Yt={en:Gn(ya),zh:Gn(xa)},Nr=(e,n)=>{const s={};return e&&(s["x-blocklet-server-version"]=e),n&&(s["x-blocklet-store-version"]=n),s},wa=e=>(n,s)=>{const l=Yt[e]?Yt[e][n]:Yt.en[n];return ba(l,s)||n},Fr={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!1},endpoint:"",wrapChildren:()=>null,t:e=>e,storeVersion:"",minItemWidth:350,serverVersion:"",layout:{},selectedCategory:void 0,categoryList:[],blockletRender:()=>null,locale:"en",categoryOptions:[],priceOptions:[],storeApi:null,baseSearch:!1,showResourcesSwitch:!1,showCategory:!1,tagFilters:[],developerName:"",onFilterChange:()=>{},updateDeveloperName:()=>{},getCategoryLocale:()=>null,search:{filters:{},cleanFilter:()=>{},handleSort:()=>{},handleKeyword:()=>{},handlePrice:()=>{},handleCategory:()=>{},handleDeveloper:()=>{},handleSwitchShowResources:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},Br=I.createContext(Fr),{Provider:Sa,Consumer:Bs}=Br;function ka(e){const{locale:n="zh",filters:s={},serverVersion:l="",onFilterChange:h=()=>{},minItemWidth:f=350,queryFilter:g=!0,layout:d={},wrapChildren:v=ue=>ue,extraFilter:b=ue=>ue,baseSearch:p=!1,fetchCategoryDelay:S=0,showResourcesSwitch:k=!1,showCategory:x=!0,tagFilters:w=[],children:C,storeVersion:R,onSearchSelect:_=()=>{},endpoint:W,blockletRender:M}=e,$=Nr(l,R),X=I.useMemo(()=>pr({baseURL:W,headers:$}),[W]),Q=pa(s,{onFilterChange:h,emptyCategory:!d.showExplore,onSearchSelect:_}),[V,ce]=I.useState(""),{data:pe=[],error:Ee,loading:_e,run:we}=ha(X),ae=I.useMemo(()=>{const ue=zo(pe,[ne=>ne.name],["asc"]),be=ue.findIndex(ne=>ne.name==="All"||ne.locales.en==="All");return be>-1?[{...ue[be],_id:"All"},...ue.slice(0,be),...ue.slice(be+1)]:ue},[pe]),je=I.useCallback(wa(n),[n]),z=I.useMemo(()=>ga(ae,n),[ae,n]),ee=ma(je),Te={search:Q,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:_e},extraFilter:b,endpoint:W,queryFilter:g,layout:{showExplore:d.showExplore??!1,showCategory:d.showCategory??!0,showTitle:d.showTitle??!0,showSearch:d.showSearch??!0},minItemWidth:f,wrapChildren:v,t:je,storeVersion:R,serverVersion:l,selectedCategory:Q.filters.category||(d.showExplore?"":"All"),categoryList:ae,blockletRender:M,locale:n,categoryOptions:z,priceOptions:ee,storeApi:X,baseSearch:p,showResourcesSwitch:k,showCategory:x,tagFilters:w,onFilterChange:h,getCategoryLocale:ue=>{if(!ue)return null;const be=pe.find(ne=>ne._id===ue||ne.locales.en==="All");return be?be.locales[n]||be.locales.en:null},get developerName(){return V},updateDeveloperName:ce};return I.useEffect(()=>{setTimeout(we,S||0)},[W,we,S]),t.jsx(Sa,{value:Te,children:C})}function ge(){return I.useContext(Br)||Fr}function Wr({children:e,onClick:n,size:s=32,...l}){return t.jsx(Se,{...l,onClick:n,variant:"outlined",sx:[{minWidth:s,height:s,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:e})}function jt(e,n){return e===void 0?n:e}function fn({xs:e,sm:n,md:s,lg:l,xl:h,exact:f}){const g=tt(),d=Ke(g.breakpoints.down("sm")),v=Ke(g.breakpoints.between("sm","md")),b=Ke(g.breakpoints.between("md","lg")),p=Ke(g.breakpoints.between("lg","xl"));if(f)return d?e||null:v?n||null:b?s||null:p?l||null:h||null;let S=e;return d||(S=jt(n,S),v)||(S=jt(s,S),b)||(S=jt(l,S),p)?S:jt(h,S)}function ja({children:e}){const{open:n,toggleOpen:s}=pn();return t.jsx(fn,{xs:t.jsx(Fi,{open:n,onClose:()=>s(!1),children:e}),md:t.jsx(Y,{children:e})})}const Ta=I.forwardRef(({loading:e,disabled:n,...s},l)=>t.jsx(Se,{ref:l,disableElevation:!0,disabled:n||e,...s,sx:[{borderRadius:"4px"},...Array.isArray(s.sx)?s.sx:[s.sx]],startIcon:e&&t.jsx(Pe,{size:"1em"})}));function Ar({value:e,options:n,onChange:s,placeholder:l,...h}){var f;const g=I.useRef(null),d=tt(),[v,b]=I.useState(!1),[p,S]=I.useState(e!==null?e:""),k=Ke(d.breakpoints.down("sm"));I.useEffect(()=>{S(e!==null?e:"")},[e]);const x=I.useCallback(()=>{b(!1)},[]),w=I.useCallback(()=>{b(!0)},[]);function C(_){S(_.value),s(_.value),k&&x()}function R(_){return _===p}return t.jsxs(t.Fragment,{children:[t.jsxs(Oa,{ref:g,onClick:w,variant:"outlined",size:"medium",className:["my-select__selector",Ui(p)?"":"my-select__selector--active"].join(" "),sx:{minWidth:"auto",color:"text.primary",borderRadius:"8px"},...h,children:[((f=n.find(_=>_.value===p))==null?void 0:f.name)||l,t.jsx(Hi,{className:"my-select__arrowdown",component:Or,sx:{width:18,height:18}})]}),t.jsx(Vi,{open:v,anchorEl:g.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:_,placement:W})=>t.jsx(qi,{..._,style:{transformOrigin:W==="bottom"?"center top":"center bottom"},children:t.jsx(Gi,{children:t.jsx(Xi,{onClickAway:x,children:t.jsx(Ea,{autoFocusItem:v,onMouseEnter:w,onMouseLeave:x,children:n.map(M=>t.jsxs(_t,{onClick:()=>C(M),sx:{fontSize:14},children:[t.jsx(Yi,{sx:{mr:1,fontSize:16,visibility:R(M.value)?"visible":"hidden"}}),M.name]},M.value))})})})})})]})}const Oa=He(Ta)`
2
2
  border: 1px solid #f0f0f0;
3
3
  padding: 6px 8px 6px 12px;
4
4
  font-weight: ${e=>e.theme.typography.fontWeightRegular};