boreal-ui 0.0.39 → 0.0.40

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 (461) hide show
  1. package/dist/core/{Badge-DOn6E2bS.cjs → Badge-CyGz8K5W.cjs} +4 -1
  2. package/dist/core/Badge-CyGz8K5W.cjs.map +1 -0
  3. package/dist/core/{Badge-Dpjq6lUF.js → Badge-DnE8lt7-.js} +4 -1
  4. package/dist/core/Badge-DnE8lt7-.js.map +1 -0
  5. package/dist/core/Badge.cjs.js +1 -1
  6. package/dist/core/Badge.js +1 -1
  7. package/dist/core/{Card-DftqfPue.cjs → Card-CmyXglyZ.cjs} +6 -5
  8. package/dist/core/Card-CmyXglyZ.cjs.map +1 -0
  9. package/dist/core/{Card-D-GQwaUJ.js → Card-v8Cu1hJe.js} +6 -5
  10. package/dist/core/Card-v8Cu1hJe.js.map +1 -0
  11. package/dist/core/Card.cjs.js +1 -1
  12. package/dist/core/Card.js +1 -1
  13. package/dist/core/{Chip-D4vbSudX.js → Chip-BjbtoFKm.js} +2 -2
  14. package/dist/core/{Chip-D4vbSudX.js.map → Chip-BjbtoFKm.js.map} +1 -1
  15. package/dist/core/{Chip-CWsfLyyU.cjs → Chip-c2mN7R-R.cjs} +2 -2
  16. package/dist/core/{Chip-CWsfLyyU.cjs.map → Chip-c2mN7R-R.cjs.map} +1 -1
  17. package/dist/core/Chip.cjs.js +1 -1
  18. package/dist/core/Chip.js +1 -1
  19. package/dist/core/{CommandPalette-CXKBDCbP.cjs → CommandPalette-CPhVbQAc.cjs} +2 -2
  20. package/dist/core/{CommandPalette-CXKBDCbP.cjs.map → CommandPalette-CPhVbQAc.cjs.map} +1 -1
  21. package/dist/core/{CommandPalette-N556smLj.js → CommandPalette-Df69KRv4.js} +2 -2
  22. package/dist/core/{CommandPalette-N556smLj.js.map → CommandPalette-Df69KRv4.js.map} +1 -1
  23. package/dist/core/CommandPalette.cjs.js +1 -1
  24. package/dist/core/CommandPalette.js +1 -1
  25. package/dist/core/{Dropdown-CwofYHjq.js → Dropdown-CR3xr5K-.js} +2 -2
  26. package/dist/core/{Dropdown-CwofYHjq.js.map → Dropdown-CR3xr5K-.js.map} +1 -1
  27. package/dist/core/{Dropdown-DvwHouyC.cjs → Dropdown-CjPfU1K-.cjs} +2 -2
  28. package/dist/core/{Dropdown-DvwHouyC.cjs.map → Dropdown-CjPfU1K-.cjs.map} +1 -1
  29. package/dist/core/Dropdown.cjs.js +1 -1
  30. package/dist/core/Dropdown.js +1 -1
  31. package/dist/core/{FileUpload-Du7vDDdf.cjs → FileUpload-BJ3RJxT3.cjs} +3 -3
  32. package/dist/core/{FileUpload-Du7vDDdf.cjs.map → FileUpload-BJ3RJxT3.cjs.map} +1 -1
  33. package/dist/core/{FileUpload-Q8aDsaFs.js → FileUpload-C0eHx1h8.js} +3 -3
  34. package/dist/core/{FileUpload-Q8aDsaFs.js.map → FileUpload-C0eHx1h8.js.map} +1 -1
  35. package/dist/core/FileUpload.cjs.js +1 -1
  36. package/dist/core/FileUpload.js +1 -1
  37. package/dist/core/{Footer-DMOA1W7N.cjs → Footer-CYIUIgV1.cjs} +3 -3
  38. package/dist/core/Footer-CYIUIgV1.cjs.map +1 -0
  39. package/dist/core/{Footer-zO4RGjCl.js → Footer-D9RimHx9.js} +3 -3
  40. package/dist/core/Footer-D9RimHx9.js.map +1 -0
  41. package/dist/core/Footer.cjs.js +1 -1
  42. package/dist/core/Footer.js +1 -1
  43. package/dist/core/{FormGroup-C2TWC17P.cjs → FormGroup-Cit_2_Wo.cjs} +5 -8
  44. package/dist/core/FormGroup-Cit_2_Wo.cjs.map +1 -0
  45. package/dist/core/{FormGroup-tSK_NN0-.js → FormGroup-DDZ1D_CI.js} +5 -8
  46. package/dist/core/FormGroup-DDZ1D_CI.js.map +1 -0
  47. package/dist/core/FormGroup.cjs.js +1 -1
  48. package/dist/core/FormGroup.js +1 -1
  49. package/dist/core/{IconButton-_lxTppua.js → IconButton-BMZhwYXB.js} +2 -2
  50. package/dist/core/IconButton-BMZhwYXB.js.map +1 -0
  51. package/dist/core/{IconButton-CR9bTZoJ.cjs → IconButton-Bio6Azm-.cjs} +2 -2
  52. package/dist/core/IconButton-Bio6Azm-.cjs.map +1 -0
  53. package/dist/core/IconButton.cjs.js +1 -1
  54. package/dist/core/IconButton.js +1 -1
  55. package/dist/core/{MarkdownRenderer-LUXCa_a8.cjs → MarkdownRenderer-Bn6vcfSd.cjs} +3 -2
  56. package/dist/core/MarkdownRenderer-Bn6vcfSd.cjs.map +1 -0
  57. package/dist/core/{MarkdownRenderer-B1LmmpZm.js → MarkdownRenderer-Co787hku.js} +3 -2
  58. package/dist/core/MarkdownRenderer-Co787hku.js.map +1 -0
  59. package/dist/core/MarkdownRenderer.cjs.js +1 -1
  60. package/dist/core/MarkdownRenderer.js +1 -1
  61. package/dist/core/MessagePopUp.cjs.js +1 -1
  62. package/dist/core/MessagePopUp.js +1 -1
  63. package/dist/core/{MessagePopup-BlbPMecd.js → MessagePopup-B3lEfar7.js} +2 -2
  64. package/dist/core/{MessagePopup-BlbPMecd.js.map → MessagePopup-B3lEfar7.js.map} +1 -1
  65. package/dist/core/{MessagePopup-hxloT7aK.cjs → MessagePopup-CtdpuRFv.cjs} +2 -2
  66. package/dist/core/{MessagePopup-hxloT7aK.cjs.map → MessagePopup-CtdpuRFv.cjs.map} +1 -1
  67. package/dist/core/{MetricBox-Dh911MS2.js → MetricBox-CPug-nxo.js} +11 -2
  68. package/dist/core/MetricBox-CPug-nxo.js.map +1 -0
  69. package/dist/core/{MetricBox-BcOdQM-l.cjs → MetricBox-DVo4UUQv.cjs} +11 -2
  70. package/dist/core/MetricBox-DVo4UUQv.cjs.map +1 -0
  71. package/dist/core/MetricBox.cjs.js +1 -1
  72. package/dist/core/MetricBox.js +1 -1
  73. package/dist/core/{Modal-D1G1Csp9.js → Modal-DFhYDYb9.js} +2 -2
  74. package/dist/core/{Modal-D1G1Csp9.js.map → Modal-DFhYDYb9.js.map} +1 -1
  75. package/dist/core/{Modal-D-ZoA_xx.cjs → Modal-FB4mTmQW.cjs} +2 -2
  76. package/dist/core/{Modal-D-ZoA_xx.cjs.map → Modal-FB4mTmQW.cjs.map} +1 -1
  77. package/dist/core/Modal.cjs.js +1 -1
  78. package/dist/core/Modal.js +1 -1
  79. package/dist/core/{NotificationCenter-BrUNpJAx.js → NotificationCenter-DLCzWNve.js} +2 -2
  80. package/dist/core/{NotificationCenter-BrUNpJAx.js.map → NotificationCenter-DLCzWNve.js.map} +1 -1
  81. package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs → NotificationCenter-DfOOEt9N.cjs} +2 -2
  82. package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs.map → NotificationCenter-DfOOEt9N.cjs.map} +1 -1
  83. package/dist/core/NotificationCenter.cjs.js +1 -1
  84. package/dist/core/NotificationCenter.js +1 -1
  85. package/dist/core/{Pager-CZF6O7rq.js → Pager-DBHI7yRW.js} +2 -2
  86. package/dist/core/{Pager-CZF6O7rq.js.map → Pager-DBHI7yRW.js.map} +1 -1
  87. package/dist/core/{Pager-C_SG4CIc.cjs → Pager-Dv6D3kXa.cjs} +2 -2
  88. package/dist/core/{Pager-C_SG4CIc.cjs.map → Pager-Dv6D3kXa.cjs.map} +1 -1
  89. package/dist/core/Pager.cjs.js +1 -1
  90. package/dist/core/Pager.js +1 -1
  91. package/dist/core/{Skeleton-Cwn3_gc7.js → Skeleton-BjpQHG5i.js} +2 -2
  92. package/dist/core/{Skeleton-Cwn3_gc7.js.map → Skeleton-BjpQHG5i.js.map} +1 -1
  93. package/dist/core/{Skeleton-BLVD5mDI.cjs → Skeleton-tetAZCSl.cjs} +2 -2
  94. package/dist/core/{Skeleton-BLVD5mDI.cjs.map → Skeleton-tetAZCSl.cjs.map} +1 -1
  95. package/dist/core/Skeleton.cjs.js +1 -1
  96. package/dist/core/Skeleton.js +1 -1
  97. package/dist/core/{Spinner-D81UG24n.js → Spinner-D1CHbKYU.js} +2 -2
  98. package/dist/core/Spinner-D1CHbKYU.js.map +1 -0
  99. package/dist/core/{Spinner-CEIk_hpT.cjs → Spinner-JTcQ_d4T.cjs} +2 -2
  100. package/dist/core/Spinner-JTcQ_d4T.cjs.map +1 -0
  101. package/dist/core/Spinner.cjs.js +1 -1
  102. package/dist/core/Spinner.js +1 -1
  103. package/dist/core/{Stepper-Cjb7ckXo.js → Stepper-C6xjvhZJ.js} +2 -2
  104. package/dist/core/{Stepper-Cjb7ckXo.js.map → Stepper-C6xjvhZJ.js.map} +1 -1
  105. package/dist/core/{Stepper-BuCLqbtQ.cjs → Stepper-JNVBVHc3.cjs} +2 -2
  106. package/dist/core/{Stepper-BuCLqbtQ.cjs.map → Stepper-JNVBVHc3.cjs.map} +1 -1
  107. package/dist/core/Stepper.cjs.js +1 -1
  108. package/dist/core/Stepper.js +1 -1
  109. package/dist/core/TagInput.cjs.js +1 -1
  110. package/dist/core/TagInput.js +1 -1
  111. package/dist/core/{Taginput-DgbxDttA.cjs → Taginput-BXCxdLf0.cjs} +3 -3
  112. package/dist/core/{Taginput-DgbxDttA.cjs.map → Taginput-BXCxdLf0.cjs.map} +1 -1
  113. package/dist/core/{Taginput-CKekAR72.js → Taginput-CoxxwLXg.js} +3 -3
  114. package/dist/core/{Taginput-CKekAR72.js.map → Taginput-CoxxwLXg.js.map} +1 -1
  115. package/dist/core/{TextInput-DFOjxri2.cjs → TextInput-DYALlUc_.cjs} +2 -2
  116. package/dist/core/{TextInput-DFOjxri2.cjs.map → TextInput-DYALlUc_.cjs.map} +1 -1
  117. package/dist/core/{TextInput-7kV66ccj.js → TextInput-qw-jAx_3.js} +2 -2
  118. package/dist/core/{TextInput-7kV66ccj.js.map → TextInput-qw-jAx_3.js.map} +1 -1
  119. package/dist/core/TextInput.cjs.js +1 -1
  120. package/dist/core/TextInput.js +1 -1
  121. package/dist/core/{style.css → boreal-ui.css} +6976 -6974
  122. package/dist/core/index.cjs.js +20 -20
  123. package/dist/core/index.js +20 -20
  124. package/dist/next/{Accordion-DKNh8FaP.cjs → Accordion-BPWTEHym.cjs} +50 -50
  125. package/dist/next/{Accordion-DKNh8FaP.cjs.map → Accordion-BPWTEHym.cjs.map} +1 -1
  126. package/dist/next/{Accordion-BkiAI6vY.js → Accordion-DY243Bq9.js} +50 -50
  127. package/dist/next/{Accordion-BkiAI6vY.js.map → Accordion-DY243Bq9.js.map} +1 -1
  128. package/dist/next/Accordion.cjs.js +1 -1
  129. package/dist/next/Accordion.js +1 -1
  130. package/dist/next/{Avatar-ijMVfQpY.js → Avatar-B-Ws4Ueo.js} +42 -42
  131. package/dist/next/{Avatar-ijMVfQpY.js.map → Avatar-B-Ws4Ueo.js.map} +1 -1
  132. package/dist/next/{Avatar-Ctm74prt.cjs → Avatar-B9sMyRWr.cjs} +42 -42
  133. package/dist/next/{Avatar-Ctm74prt.cjs.map → Avatar-B9sMyRWr.cjs.map} +1 -1
  134. package/dist/next/Avatar.cjs.js +1 -1
  135. package/dist/next/Avatar.js +1 -1
  136. package/dist/next/{Badge-k6Dk5S_p.js → Badge-BZNYm0IU.js} +34 -31
  137. package/dist/next/Badge-BZNYm0IU.js.map +1 -0
  138. package/dist/next/{Badge-DbmM5wGc.cjs → Badge-dTyh833r.cjs} +34 -31
  139. package/dist/next/Badge-dTyh833r.cjs.map +1 -0
  140. package/dist/next/Badge.cjs.js +1 -1
  141. package/dist/next/Badge.js +1 -1
  142. package/dist/next/{Breadcrumbs-CWv3TrV_.js → Breadcrumbs-BPWmV24h.js} +39 -39
  143. package/dist/next/{Breadcrumbs-CWv3TrV_.js.map → Breadcrumbs-BPWmV24h.js.map} +1 -1
  144. package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs → Breadcrumbs-BcXj2PgR.cjs} +39 -39
  145. package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs.map → Breadcrumbs-BcXj2PgR.cjs.map} +1 -1
  146. package/dist/next/Breadcrumbs.cjs.js +1 -1
  147. package/dist/next/Breadcrumbs.js +1 -1
  148. package/dist/next/{Button-D8Kff8sN.cjs → Button-B1Fh4G0_.cjs} +47 -47
  149. package/dist/next/{Button-D8Kff8sN.cjs.map → Button-B1Fh4G0_.cjs.map} +1 -1
  150. package/dist/next/{Button-BjY7f3mw.js → Button-uZ3xTOOt.js} +47 -47
  151. package/dist/next/{Button-BjY7f3mw.js.map → Button-uZ3xTOOt.js.map} +1 -1
  152. package/dist/next/Button.cjs.js +1 -1
  153. package/dist/next/Button.js +1 -1
  154. package/dist/next/{Card-BFmGnvxN.cjs → Card-BOu9cws1.cjs} +68 -67
  155. package/dist/next/Card-BOu9cws1.cjs.map +1 -0
  156. package/dist/next/{Card-DhxLw6XZ.js → Card-CZu4-xEt.js} +68 -67
  157. package/dist/next/Card-CZu4-xEt.js.map +1 -0
  158. package/dist/next/Card.cjs.js +1 -1
  159. package/dist/next/Card.js +1 -1
  160. package/dist/next/CheckBox.cjs.js +1 -1
  161. package/dist/next/CheckBox.js +1 -1
  162. package/dist/next/{Checkbox-DVr6H6mN.js → Checkbox-BJ0rBZLF.js} +44 -44
  163. package/dist/next/{Checkbox-DVr6H6mN.js.map → Checkbox-BJ0rBZLF.js.map} +1 -1
  164. package/dist/next/{Checkbox-B-y0lEjJ.cjs → Checkbox-Ch7osD3y.cjs} +44 -44
  165. package/dist/next/{Checkbox-B-y0lEjJ.cjs.map → Checkbox-Ch7osD3y.cjs.map} +1 -1
  166. package/dist/next/{Chip-C8ayWG9-.js → Chip-BB3Awc2g.js} +51 -51
  167. package/dist/next/{Chip-C8ayWG9-.js.map → Chip-BB3Awc2g.js.map} +1 -1
  168. package/dist/next/{Chip-C4-KUcHh.cjs → Chip-DzFaUPed.cjs} +51 -51
  169. package/dist/next/{Chip-C4-KUcHh.cjs.map → Chip-DzFaUPed.cjs.map} +1 -1
  170. package/dist/next/Chip.cjs.js +1 -1
  171. package/dist/next/Chip.js +1 -1
  172. package/dist/next/{CircularProgress-Cz9G0WeQ.js → CircularProgress-BUqdguII.js} +37 -37
  173. package/dist/next/{CircularProgress-Cz9G0WeQ.js.map → CircularProgress-BUqdguII.js.map} +1 -1
  174. package/dist/next/{CircularProgress-UhpLA94q.cjs → CircularProgress-Cp2pGFmc.cjs} +37 -37
  175. package/dist/next/{CircularProgress-UhpLA94q.cjs.map → CircularProgress-Cp2pGFmc.cjs.map} +1 -1
  176. package/dist/next/CircularProgress.cjs.js +1 -1
  177. package/dist/next/CircularProgress.js +1 -1
  178. package/dist/next/{ColorPicker-DvgeIT_p.cjs → ColorPicker-BHtO2mbU.cjs} +38 -38
  179. package/dist/next/{ColorPicker-DvgeIT_p.cjs.map → ColorPicker-BHtO2mbU.cjs.map} +1 -1
  180. package/dist/next/{ColorPicker-1naDOGhp.js → ColorPicker-ChWOekWP.js} +38 -38
  181. package/dist/next/{ColorPicker-1naDOGhp.js.map → ColorPicker-ChWOekWP.js.map} +1 -1
  182. package/dist/next/ColorPicker.cjs.js +1 -1
  183. package/dist/next/ColorPicker.js +1 -1
  184. package/dist/next/{CommandPalette-ypXbi8zW.cjs → CommandPalette-BT9X_yL0.cjs} +42 -42
  185. package/dist/next/{CommandPalette-ypXbi8zW.cjs.map → CommandPalette-BT9X_yL0.cjs.map} +1 -1
  186. package/dist/next/{CommandPalette-XP4v5FE6.js → CommandPalette-DEf12Et3.js} +42 -42
  187. package/dist/next/{CommandPalette-XP4v5FE6.js.map → CommandPalette-DEf12Et3.js.map} +1 -1
  188. package/dist/next/CommandPalette.cjs.js +1 -1
  189. package/dist/next/CommandPalette.js +1 -1
  190. package/dist/next/{DataTable-jUelgv2H.js → DataTable-CnvOkZrU.js} +40 -40
  191. package/dist/next/{DataTable-jUelgv2H.js.map → DataTable-CnvOkZrU.js.map} +1 -1
  192. package/dist/next/{DataTable-jq0suGoA.cjs → DataTable-DQ1QRyZw.cjs} +40 -40
  193. package/dist/next/{DataTable-jq0suGoA.cjs.map → DataTable-DQ1QRyZw.cjs.map} +1 -1
  194. package/dist/next/DataTable.cjs.js +1 -1
  195. package/dist/next/DataTable.js +1 -1
  196. package/dist/next/{DateTimePicker-D5gEfxvd.cjs → DateTimePicker-2M4AJJXm.cjs} +46 -46
  197. package/dist/next/{DateTimePicker-D5gEfxvd.cjs.map → DateTimePicker-2M4AJJXm.cjs.map} +1 -1
  198. package/dist/next/{DateTimePicker-BTm6T3-E.js → DateTimePicker-IvBWNgkK.js} +46 -46
  199. package/dist/next/{DateTimePicker-BTm6T3-E.js.map → DateTimePicker-IvBWNgkK.js.map} +1 -1
  200. package/dist/next/DateTimePicker.cjs.js +1 -1
  201. package/dist/next/DateTimePicker.js +1 -1
  202. package/dist/next/{Divider-BYKFFi3a.js → Divider-BCCzNbAE.js} +28 -28
  203. package/dist/next/{Divider-BYKFFi3a.js.map → Divider-BCCzNbAE.js.map} +1 -1
  204. package/dist/next/{Divider-CczNc7mx.cjs → Divider-ByDYa4v6.cjs} +28 -28
  205. package/dist/next/{Divider-CczNc7mx.cjs.map → Divider-ByDYa4v6.cjs.map} +1 -1
  206. package/dist/next/Divider.cjs.js +1 -1
  207. package/dist/next/Divider.js +1 -1
  208. package/dist/next/{Dropdown-yaMx19im.cjs → Dropdown-DEdk2QjS.cjs} +22 -22
  209. package/dist/next/{Dropdown-yaMx19im.cjs.map → Dropdown-DEdk2QjS.cjs.map} +1 -1
  210. package/dist/next/{Dropdown-CJGb6wyQ.js → Dropdown-qdxH-NQR.js} +22 -22
  211. package/dist/next/{Dropdown-CJGb6wyQ.js.map → Dropdown-qdxH-NQR.js.map} +1 -1
  212. package/dist/next/Dropdown.cjs.js +1 -1
  213. package/dist/next/Dropdown.js +1 -1
  214. package/dist/next/{EmptyState-DIymA2cZ.js → EmptyState-BNzFHAk3.js} +31 -31
  215. package/dist/next/{EmptyState-DIymA2cZ.js.map → EmptyState-BNzFHAk3.js.map} +1 -1
  216. package/dist/next/{EmptyState-CGPIGpz2.cjs → EmptyState-CXyx1WlG.cjs} +31 -31
  217. package/dist/next/{EmptyState-CGPIGpz2.cjs.map → EmptyState-CXyx1WlG.cjs.map} +1 -1
  218. package/dist/next/EmptyState.cjs.js +1 -1
  219. package/dist/next/EmptyState.js +1 -1
  220. package/dist/next/{FileUpload-CIued3w1.js → FileUpload-DBSXPL55.js} +52 -52
  221. package/dist/next/{FileUpload-CIued3w1.js.map → FileUpload-DBSXPL55.js.map} +1 -1
  222. package/dist/next/{FileUpload-MVXOV0j9.cjs → FileUpload-DwlqapHn.cjs} +52 -52
  223. package/dist/next/{FileUpload-MVXOV0j9.cjs.map → FileUpload-DwlqapHn.cjs.map} +1 -1
  224. package/dist/next/FileUpload.cjs.js +1 -1
  225. package/dist/next/FileUpload.js +1 -1
  226. package/dist/next/{Footer-DAZLz11H.cjs → Footer-BxrsmJyY.cjs} +45 -45
  227. package/dist/next/Footer-BxrsmJyY.cjs.map +1 -0
  228. package/dist/next/{Footer-BSEbf6CL.js → Footer-CP_PaLon.js} +45 -45
  229. package/dist/next/Footer-CP_PaLon.js.map +1 -0
  230. package/dist/next/Footer.cjs.js +1 -1
  231. package/dist/next/Footer.js +1 -1
  232. package/dist/next/{FormGroup-DbUqgg_b.js → FormGroup-QfUhtyhx.js} +34 -37
  233. package/dist/next/FormGroup-QfUhtyhx.js.map +1 -0
  234. package/dist/next/{FormGroup-6Ss6pNqV.cjs → FormGroup-U3EwnB0M.cjs} +34 -37
  235. package/dist/next/FormGroup-U3EwnB0M.cjs.map +1 -0
  236. package/dist/next/FormGroup.cjs.js +1 -1
  237. package/dist/next/FormGroup.js +1 -1
  238. package/dist/next/{IconButton-VSz8qAIg.cjs → IconButton-2l-_HOMB.cjs} +31 -31
  239. package/dist/next/IconButton-2l-_HOMB.cjs.map +1 -0
  240. package/dist/next/{IconButton-qQljwBB2.js → IconButton-BTUFKRZt.js} +31 -31
  241. package/dist/next/IconButton-BTUFKRZt.js.map +1 -0
  242. package/dist/next/IconButton.cjs.js +1 -1
  243. package/dist/next/IconButton.js +1 -1
  244. package/dist/next/{MarkdownRenderer-B7lwemDw.js → MarkdownRenderer-B8_D0j7d.js} +14 -13
  245. package/dist/next/{MarkdownRenderer-B7lwemDw.js.map → MarkdownRenderer-B8_D0j7d.js.map} +1 -1
  246. package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs → MarkdownRenderer-l6hdKOt0.cjs} +14 -13
  247. package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs.map → MarkdownRenderer-l6hdKOt0.cjs.map} +1 -1
  248. package/dist/next/MarkdownRenderer.cjs.js +1 -1
  249. package/dist/next/MarkdownRenderer.js +1 -1
  250. package/dist/next/MessagePopUp.cjs.js +1 -1
  251. package/dist/next/MessagePopUp.js +1 -1
  252. package/dist/next/{MessagePopup-B5OaSUBr.js → MessagePopup-N2n3NvgX.js} +19 -19
  253. package/dist/next/{MessagePopup-B5OaSUBr.js.map → MessagePopup-N2n3NvgX.js.map} +1 -1
  254. package/dist/next/{MessagePopup-BQ4OFvwo.cjs → MessagePopup-PB3e2lTg.cjs} +19 -19
  255. package/dist/next/{MessagePopup-BQ4OFvwo.cjs.map → MessagePopup-PB3e2lTg.cjs.map} +1 -1
  256. package/dist/next/{MetricBox-Dl3iruBZ.js → MetricBox-BjdAzOrZ.js} +57 -48
  257. package/dist/next/MetricBox-BjdAzOrZ.js.map +1 -0
  258. package/dist/next/{MetricBox-BylPOvoO.cjs → MetricBox-C3B6Bkcb.cjs} +57 -48
  259. package/dist/next/MetricBox-C3B6Bkcb.cjs.map +1 -0
  260. package/dist/next/MetricBox.cjs.js +1 -1
  261. package/dist/next/MetricBox.js +1 -1
  262. package/dist/next/{Modal-CevpqeOy.cjs → Modal-DHTrvNfc.cjs} +17 -17
  263. package/dist/next/{Modal-CevpqeOy.cjs.map → Modal-DHTrvNfc.cjs.map} +1 -1
  264. package/dist/next/{Modal-BARibygG.js → Modal-QTq5IcKa.js} +17 -17
  265. package/dist/next/{Modal-BARibygG.js.map → Modal-QTq5IcKa.js.map} +1 -1
  266. package/dist/next/Modal.cjs.js +1 -1
  267. package/dist/next/Modal.js +1 -1
  268. package/dist/next/{NavBar-C5FBdZT6.cjs → NavBar-Ds_02bAe.cjs} +40 -40
  269. package/dist/next/{NavBar-C5FBdZT6.cjs.map → NavBar-Ds_02bAe.cjs.map} +1 -1
  270. package/dist/next/{NavBar-Bucpo8_3.js → NavBar-v_ckzQIo.js} +40 -40
  271. package/dist/next/{NavBar-Bucpo8_3.js.map → NavBar-v_ckzQIo.js.map} +1 -1
  272. package/dist/next/NavBar.cjs.js +1 -1
  273. package/dist/next/NavBar.js +1 -1
  274. package/dist/next/{NotificationCenter-BD58bbOZ.cjs → NotificationCenter-DbYxpoy6.cjs} +43 -43
  275. package/dist/next/{NotificationCenter-BD58bbOZ.cjs.map → NotificationCenter-DbYxpoy6.cjs.map} +1 -1
  276. package/dist/next/{NotificationCenter-CSwbscYh.js → NotificationCenter-DxK09uJd.js} +43 -43
  277. package/dist/next/{NotificationCenter-CSwbscYh.js.map → NotificationCenter-DxK09uJd.js.map} +1 -1
  278. package/dist/next/NotificationCenter.cjs.js +1 -1
  279. package/dist/next/NotificationCenter.js +1 -1
  280. package/dist/next/{Pager-B-xaM28_.cjs → Pager-BU5RjNwR.cjs} +7 -7
  281. package/dist/next/{Pager-B-xaM28_.cjs.map → Pager-BU5RjNwR.cjs.map} +1 -1
  282. package/dist/next/{Pager-DWzCtb2Q.js → Pager-CtzyTqIl.js} +7 -7
  283. package/dist/next/{Pager-DWzCtb2Q.js.map → Pager-CtzyTqIl.js.map} +1 -1
  284. package/dist/next/Pager.cjs.js +1 -1
  285. package/dist/next/Pager.js +1 -1
  286. package/dist/next/{PopOver-QAYHaYcd.js → PopOver-CmPp9PkL.js} +40 -40
  287. package/dist/next/{PopOver-QAYHaYcd.js.map → PopOver-CmPp9PkL.js.map} +1 -1
  288. package/dist/next/{PopOver-Dp4eqN8G.cjs → PopOver-ixERZLpM.cjs} +40 -40
  289. package/dist/next/{PopOver-Dp4eqN8G.cjs.map → PopOver-ixERZLpM.cjs.map} +1 -1
  290. package/dist/next/PopOver.cjs.js +1 -1
  291. package/dist/next/PopOver.js +1 -1
  292. package/dist/next/{ProgressBar-BrO0fvaM.js → ProgressBar-BoU2HJv3.js} +42 -42
  293. package/dist/next/{ProgressBar-BrO0fvaM.js.map → ProgressBar-BoU2HJv3.js.map} +1 -1
  294. package/dist/next/{ProgressBar-DfXSlpKX.cjs → ProgressBar-C6zKbiq5.cjs} +42 -42
  295. package/dist/next/{ProgressBar-DfXSlpKX.cjs.map → ProgressBar-C6zKbiq5.cjs.map} +1 -1
  296. package/dist/next/ProgressBar.cjs.js +1 -1
  297. package/dist/next/ProgressBar.js +1 -1
  298. package/dist/next/{RadioButton-6cb-ZRjy.cjs → RadioButton-BCu934Uo.cjs} +38 -38
  299. package/dist/next/{RadioButton-6cb-ZRjy.cjs.map → RadioButton-BCu934Uo.cjs.map} +1 -1
  300. package/dist/next/{RadioButton-Dz_e0WUT.js → RadioButton-C14Rsx9o.js} +38 -38
  301. package/dist/next/{RadioButton-Dz_e0WUT.js.map → RadioButton-C14Rsx9o.js.map} +1 -1
  302. package/dist/next/RadioButton.cjs.js +1 -1
  303. package/dist/next/RadioButton.js +1 -1
  304. package/dist/next/{Rating-C4pqzKNQ.cjs → Rating-C9BgQANc.cjs} +34 -34
  305. package/dist/next/{Rating-C4pqzKNQ.cjs.map → Rating-C9BgQANc.cjs.map} +1 -1
  306. package/dist/next/{Rating-DbQ61tMY.js → Rating-aheV3uZJ.js} +34 -34
  307. package/dist/next/{Rating-DbQ61tMY.js.map → Rating-aheV3uZJ.js.map} +1 -1
  308. package/dist/next/Rating.cjs.js +1 -1
  309. package/dist/next/Rating.js +1 -1
  310. package/dist/next/{STT-CCzJFcVP.js → STT-CFFr1_Ls.js} +14 -14
  311. package/dist/next/{STT-CCzJFcVP.js.map → STT-CFFr1_Ls.js.map} +1 -1
  312. package/dist/next/{STT-C6kV0zwW.cjs → STT-GyAuX3-m.cjs} +14 -14
  313. package/dist/next/{STT-C6kV0zwW.cjs.map → STT-GyAuX3-m.cjs.map} +1 -1
  314. package/dist/next/ScrollToTop.cjs.js +1 -1
  315. package/dist/next/ScrollToTop.js +1 -1
  316. package/dist/next/{Select-CZivQIlV.js → Select-CPwU0IV9.js} +32 -32
  317. package/dist/next/{Select-CZivQIlV.js.map → Select-CPwU0IV9.js.map} +1 -1
  318. package/dist/next/{Select-CSAN6B98.cjs → Select-Dgcy2vVe.cjs} +32 -32
  319. package/dist/next/{Select-CSAN6B98.cjs.map → Select-Dgcy2vVe.cjs.map} +1 -1
  320. package/dist/next/Select.cjs.js +1 -1
  321. package/dist/next/Select.js +1 -1
  322. package/dist/next/{Sidebar-BVeRWv61.js → Sidebar-CJ4VrQIW.js} +38 -38
  323. package/dist/next/{Sidebar-BVeRWv61.js.map → Sidebar-CJ4VrQIW.js.map} +1 -1
  324. package/dist/next/{Sidebar-DcDJjNrK.cjs → Sidebar-DajVSn82.cjs} +38 -38
  325. package/dist/next/{Sidebar-DcDJjNrK.cjs.map → Sidebar-DajVSn82.cjs.map} +1 -1
  326. package/dist/next/Sidebar.cjs.js +1 -1
  327. package/dist/next/Sidebar.js +1 -1
  328. package/dist/next/{Skeleton-rSW1X4hk.js → Skeleton-D8C29p3K.js} +27 -27
  329. package/dist/next/{Skeleton-rSW1X4hk.js.map → Skeleton-D8C29p3K.js.map} +1 -1
  330. package/dist/next/{Skeleton-JgU17y-3.cjs → Skeleton-Dmz7m0dj.cjs} +27 -27
  331. package/dist/next/{Skeleton-JgU17y-3.cjs.map → Skeleton-Dmz7m0dj.cjs.map} +1 -1
  332. package/dist/next/Skeleton.cjs.js +1 -1
  333. package/dist/next/Skeleton.js +1 -1
  334. package/dist/next/{Slider-CdSPPw1x.js → Slider-BOAgWYkH.js} +43 -43
  335. package/dist/next/{Slider-CdSPPw1x.js.map → Slider-BOAgWYkH.js.map} +1 -1
  336. package/dist/next/{Slider-B8e96nMm.cjs → Slider-DQM9nV1P.cjs} +43 -43
  337. package/dist/next/{Slider-B8e96nMm.cjs.map → Slider-DQM9nV1P.cjs.map} +1 -1
  338. package/dist/next/Slider.cjs.js +1 -1
  339. package/dist/next/Slider.js +1 -1
  340. package/dist/next/{Spinner-B89FhxVt.cjs → Spinner-0GZngKjG.cjs} +38 -38
  341. package/dist/next/Spinner-0GZngKjG.cjs.map +1 -0
  342. package/dist/next/{Spinner-ChiOXzru.js → Spinner-BFAOf4tt.js} +38 -38
  343. package/dist/next/Spinner-BFAOf4tt.js.map +1 -0
  344. package/dist/next/Spinner.cjs.js +1 -1
  345. package/dist/next/Spinner.js +1 -1
  346. package/dist/next/{Stepper-9uHSgp7y.js → Stepper-B03bz8wT.js} +40 -40
  347. package/dist/next/{Stepper-9uHSgp7y.js.map → Stepper-B03bz8wT.js.map} +1 -1
  348. package/dist/next/{Stepper-UwSloxRf.cjs → Stepper-XZSIlydV.cjs} +40 -40
  349. package/dist/next/{Stepper-UwSloxRf.cjs.map → Stepper-XZSIlydV.cjs.map} +1 -1
  350. package/dist/next/Stepper.cjs.js +1 -1
  351. package/dist/next/Stepper.js +1 -1
  352. package/dist/next/{Tabs-D2jqRrxR.cjs → Tabs-D8Efg8wn.cjs} +44 -44
  353. package/dist/next/{Tabs-D2jqRrxR.cjs.map → Tabs-D8Efg8wn.cjs.map} +1 -1
  354. package/dist/next/{Tabs-CvYx2xtH.js → Tabs-DmrS_FUa.js} +44 -44
  355. package/dist/next/{Tabs-CvYx2xtH.js.map → Tabs-DmrS_FUa.js.map} +1 -1
  356. package/dist/next/Tabs.cjs.js +1 -1
  357. package/dist/next/Tabs.js +1 -1
  358. package/dist/next/{TagInput-Dym0BPK1.cjs → TagInput-Bfjg9pZQ.cjs} +48 -48
  359. package/dist/next/{TagInput-Dym0BPK1.cjs.map → TagInput-Bfjg9pZQ.cjs.map} +1 -1
  360. package/dist/next/{TagInput-DUWgLslk.js → TagInput-CtYKwhEi.js} +48 -48
  361. package/dist/next/{TagInput-DUWgLslk.js.map → TagInput-CtYKwhEi.js.map} +1 -1
  362. package/dist/next/TagInput.cjs.js +1 -1
  363. package/dist/next/TagInput.js +1 -1
  364. package/dist/next/{TextArea-xg4t0Lzo.js → TextArea-n9HgwyJE.js} +25 -25
  365. package/dist/next/{TextArea-xg4t0Lzo.js.map → TextArea-n9HgwyJE.js.map} +1 -1
  366. package/dist/next/{TextArea-9AvILSCY.cjs → TextArea-rwkjK4Rf.cjs} +25 -25
  367. package/dist/next/{TextArea-9AvILSCY.cjs.map → TextArea-rwkjK4Rf.cjs.map} +1 -1
  368. package/dist/next/TextArea.cjs.js +1 -1
  369. package/dist/next/TextArea.js +1 -1
  370. package/dist/next/{TextInput-D9dzooMU.js → TextInput-ChmIMzj2.js} +26 -26
  371. package/dist/next/{TextInput-D9dzooMU.js.map → TextInput-ChmIMzj2.js.map} +1 -1
  372. package/dist/next/{TextInput-Cr0WjibW.cjs → TextInput-Z2izAjJj.cjs} +26 -26
  373. package/dist/next/{TextInput-Cr0WjibW.cjs.map → TextInput-Z2izAjJj.cjs.map} +1 -1
  374. package/dist/next/TextInput.cjs.js +1 -1
  375. package/dist/next/TextInput.js +1 -1
  376. package/dist/next/{Timeline-DXSXZumg.cjs → Timeline-3bNOgI6C.cjs} +28 -28
  377. package/dist/next/{Timeline-DXSXZumg.cjs.map → Timeline-3bNOgI6C.cjs.map} +1 -1
  378. package/dist/next/{Timeline-Cg0FWWVc.js → Timeline-9947mxJO.js} +28 -28
  379. package/dist/next/{Timeline-Cg0FWWVc.js.map → Timeline-9947mxJO.js.map} +1 -1
  380. package/dist/next/Timeline.cjs.js +1 -1
  381. package/dist/next/Timeline.js +1 -1
  382. package/dist/next/{Toggle-CnpONDwl.js → Toggle-C60HtU15.js} +30 -30
  383. package/dist/next/{Toggle-CnpONDwl.js.map → Toggle-C60HtU15.js.map} +1 -1
  384. package/dist/next/{Toggle-BNK7uC_N.cjs → Toggle-XcxNC4zl.cjs} +30 -30
  385. package/dist/next/{Toggle-BNK7uC_N.cjs.map → Toggle-XcxNC4zl.cjs.map} +1 -1
  386. package/dist/next/Toggle.cjs.js +1 -1
  387. package/dist/next/Toggle.js +1 -1
  388. package/dist/next/{Toolbar-DHUozW08.cjs → Toolbar-C45B_I44.cjs} +35 -35
  389. package/dist/next/{Toolbar-DHUozW08.cjs.map → Toolbar-C45B_I44.cjs.map} +1 -1
  390. package/dist/next/{Toolbar-007Q19jl.js → Toolbar-Dq1qqx4P.js} +35 -35
  391. package/dist/next/{Toolbar-007Q19jl.js.map → Toolbar-Dq1qqx4P.js.map} +1 -1
  392. package/dist/next/Toolbar.cjs.js +1 -1
  393. package/dist/next/Toolbar.js +1 -1
  394. package/dist/next/{Tooltip-2XEuDIAw.js → Tooltip-BHIA1zE1.js} +39 -39
  395. package/dist/next/{Tooltip-2XEuDIAw.js.map → Tooltip-BHIA1zE1.js.map} +1 -1
  396. package/dist/next/{Tooltip-FCqrcC7D.cjs → Tooltip-BXd5FXXv.cjs} +39 -39
  397. package/dist/next/{Tooltip-FCqrcC7D.cjs.map → Tooltip-BXd5FXXv.cjs.map} +1 -1
  398. package/dist/next/Tooltip.cjs.js +1 -1
  399. package/dist/next/Tooltip.js +1 -1
  400. package/dist/next/{style.css → boreal-ui.css} +9636 -9636
  401. package/dist/next/{image-VX9Ty9NQ.cjs → image-A4nTeRaX.cjs} +1079 -1025
  402. package/dist/next/image-A4nTeRaX.cjs.map +1 -0
  403. package/dist/next/{image-CEz9QtOW.js → image-BBS8QO15.js} +1083 -1029
  404. package/dist/next/image-BBS8QO15.js.map +1 -0
  405. package/dist/next/index.cjs.js +69 -69
  406. package/dist/next/index.js +69 -69
  407. package/dist/next/link-CxWP3aXr.js +3829 -0
  408. package/dist/next/link-CxWP3aXr.js.map +1 -0
  409. package/dist/next/link-lNk_lOdS.cjs +3828 -0
  410. package/dist/next/link-lNk_lOdS.cjs.map +1 -0
  411. package/dist/next/navigation-CZU71Pmb.cjs +2443 -0
  412. package/dist/next/navigation-CZU71Pmb.cjs.map +1 -0
  413. package/dist/next/navigation-DxXFNXZM.js +2444 -0
  414. package/dist/next/navigation-DxXFNXZM.js.map +1 -0
  415. package/dist/tsconfig.build.tsbuildinfo +1 -1
  416. package/dist/types/components/Badge/BadgeBase.d.ts.map +1 -1
  417. package/dist/types/components/Card/CardBase.d.ts.map +1 -1
  418. package/dist/types/components/FormGroup/FormGroupBase.d.ts.map +1 -1
  419. package/dist/types/components/MarkdownRenderer/MarkdownRendererBase.d.ts.map +1 -1
  420. package/dist/types/components/MetricBox/MetricBoxBase.d.ts.map +1 -1
  421. package/package.json +12 -11
  422. package/dist/core/Badge-DOn6E2bS.cjs.map +0 -1
  423. package/dist/core/Badge-Dpjq6lUF.js.map +0 -1
  424. package/dist/core/Card-D-GQwaUJ.js.map +0 -1
  425. package/dist/core/Card-DftqfPue.cjs.map +0 -1
  426. package/dist/core/Footer-DMOA1W7N.cjs.map +0 -1
  427. package/dist/core/Footer-zO4RGjCl.js.map +0 -1
  428. package/dist/core/FormGroup-C2TWC17P.cjs.map +0 -1
  429. package/dist/core/FormGroup-tSK_NN0-.js.map +0 -1
  430. package/dist/core/IconButton-CR9bTZoJ.cjs.map +0 -1
  431. package/dist/core/IconButton-_lxTppua.js.map +0 -1
  432. package/dist/core/MarkdownRenderer-B1LmmpZm.js.map +0 -1
  433. package/dist/core/MarkdownRenderer-LUXCa_a8.cjs.map +0 -1
  434. package/dist/core/MetricBox-BcOdQM-l.cjs.map +0 -1
  435. package/dist/core/MetricBox-Dh911MS2.js.map +0 -1
  436. package/dist/core/Spinner-CEIk_hpT.cjs.map +0 -1
  437. package/dist/core/Spinner-D81UG24n.js.map +0 -1
  438. package/dist/next/Badge-DbmM5wGc.cjs.map +0 -1
  439. package/dist/next/Badge-k6Dk5S_p.js.map +0 -1
  440. package/dist/next/Card-BFmGnvxN.cjs.map +0 -1
  441. package/dist/next/Card-DhxLw6XZ.js.map +0 -1
  442. package/dist/next/Footer-BSEbf6CL.js.map +0 -1
  443. package/dist/next/Footer-DAZLz11H.cjs.map +0 -1
  444. package/dist/next/FormGroup-6Ss6pNqV.cjs.map +0 -1
  445. package/dist/next/FormGroup-DbUqgg_b.js.map +0 -1
  446. package/dist/next/IconButton-VSz8qAIg.cjs.map +0 -1
  447. package/dist/next/IconButton-qQljwBB2.js.map +0 -1
  448. package/dist/next/MetricBox-BylPOvoO.cjs.map +0 -1
  449. package/dist/next/MetricBox-Dl3iruBZ.js.map +0 -1
  450. package/dist/next/Spinner-B89FhxVt.cjs.map +0 -1
  451. package/dist/next/Spinner-ChiOXzru.js.map +0 -1
  452. package/dist/next/image-CEz9QtOW.js.map +0 -1
  453. package/dist/next/image-VX9Ty9NQ.cjs.map +0 -1
  454. package/dist/next/link-Bik5xH00.js +0 -2878
  455. package/dist/next/link-Bik5xH00.js.map +0 -1
  456. package/dist/next/link-hxAaLm0Q.cjs +0 -2877
  457. package/dist/next/link-hxAaLm0Q.cjs.map +0 -1
  458. package/dist/next/navigation-DTwYCgCL.js +0 -1991
  459. package/dist/next/navigation-DTwYCgCL.js.map +0 -1
  460. package/dist/next/navigation-m012syo9.cjs +0 -1990
  461. package/dist/next/navigation-m012syo9.cjs.map +0 -1
@@ -1,647 +1,705 @@
1
- import { _ as _interop_require_default, a as _interop_require_wildcard, r as requireRouterContext_sharedRuntime, b as requireUseMergedRef, g as getDefaultExportFromCjs } from "./link-Bik5xH00.js";
1
+ import { r as require_interop_require_default, a as require_interop_require_wildcard, b as requireRouterContext_sharedRuntime, c as requireUseMergedRef, g as getDefaultExportFromCjs } from "./link-CxWP3aXr.js";
2
2
  import require$$2 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import ReactDOM from "react-dom";
5
5
  var imageExternal = {};
6
6
  var getImgProps = {};
7
7
  var warnOnce = {};
8
- (function(exports) {
9
- Object.defineProperty(exports, "__esModule", {
10
- value: true
11
- });
12
- Object.defineProperty(exports, "warnOnce", {
13
- enumerable: true,
14
- get: function() {
15
- return warnOnce2;
16
- }
17
- });
18
- let warnOnce2 = (_) => {
19
- };
20
- if (process.env.NODE_ENV !== "production") {
21
- const warnings = /* @__PURE__ */ new Set();
22
- warnOnce2 = (msg) => {
23
- if (!warnings.has(msg)) {
24
- console.warn(msg);
8
+ var hasRequiredWarnOnce;
9
+ function requireWarnOnce() {
10
+ if (hasRequiredWarnOnce) return warnOnce;
11
+ hasRequiredWarnOnce = 1;
12
+ (function(exports$1) {
13
+ Object.defineProperty(exports$1, "__esModule", {
14
+ value: true
15
+ });
16
+ Object.defineProperty(exports$1, "warnOnce", {
17
+ enumerable: true,
18
+ get: function() {
19
+ return warnOnce2;
25
20
  }
26
- warnings.add(msg);
21
+ });
22
+ let warnOnce2 = (_) => {
27
23
  };
28
- }
29
- })(warnOnce);
24
+ if (process.env.NODE_ENV !== "production") {
25
+ const warnings = /* @__PURE__ */ new Set();
26
+ warnOnce2 = (msg) => {
27
+ if (!warnings.has(msg)) {
28
+ console.warn(msg);
29
+ }
30
+ warnings.add(msg);
31
+ };
32
+ }
33
+ })(warnOnce);
34
+ return warnOnce;
35
+ }
30
36
  var imageBlurSvg = {};
31
- (function(exports) {
32
- Object.defineProperty(exports, "__esModule", {
33
- value: true
34
- });
35
- Object.defineProperty(exports, "getImageBlurSvg", {
36
- enumerable: true,
37
- get: function() {
38
- return getImageBlurSvg;
37
+ var hasRequiredImageBlurSvg;
38
+ function requireImageBlurSvg() {
39
+ if (hasRequiredImageBlurSvg) return imageBlurSvg;
40
+ hasRequiredImageBlurSvg = 1;
41
+ (function(exports$1) {
42
+ Object.defineProperty(exports$1, "__esModule", {
43
+ value: true
44
+ });
45
+ Object.defineProperty(exports$1, "getImageBlurSvg", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return getImageBlurSvg;
49
+ }
50
+ });
51
+ function getImageBlurSvg({ widthInt, heightInt, blurWidth, blurHeight, blurDataURL, objectFit }) {
52
+ const std = 20;
53
+ const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
54
+ const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
55
+ const viewBox = svgWidth && svgHeight ? `viewBox='0 0 ${svgWidth} ${svgHeight}'` : "";
56
+ const preserveAspectRatio = viewBox ? "none" : objectFit === "contain" ? "xMidYMid" : objectFit === "cover" ? "xMidYMid slice" : "none";
57
+ return `%3Csvg xmlns='http://www.w3.org/2000/svg' ${viewBox}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${preserveAspectRatio}' style='filter: url(%23b);' href='${blurDataURL}'/%3E%3C/svg%3E`;
39
58
  }
40
- });
41
- function getImageBlurSvg(param) {
42
- let { widthInt, heightInt, blurWidth, blurHeight, blurDataURL, objectFit } = param;
43
- const std = 20;
44
- const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
45
- const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
46
- const viewBox = svgWidth && svgHeight ? "viewBox='0 0 " + svgWidth + " " + svgHeight + "'" : "";
47
- const preserveAspectRatio = viewBox ? "none" : objectFit === "contain" ? "xMidYMid" : objectFit === "cover" ? "xMidYMid slice" : "none";
48
- return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + viewBox + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + std + "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" + std + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + preserveAspectRatio + "' style='filter: url(%23b);' href='" + blurDataURL + "'/%3E%3C/svg%3E";
49
- }
50
- })(imageBlurSvg);
59
+ })(imageBlurSvg);
60
+ return imageBlurSvg;
61
+ }
51
62
  var imageConfig = {};
52
- (function(exports) {
53
- Object.defineProperty(exports, "__esModule", {
54
- value: true
55
- });
56
- function _export(target, all) {
57
- for (var name in all) Object.defineProperty(target, name, {
58
- enumerable: true,
59
- get: all[name]
63
+ var hasRequiredImageConfig;
64
+ function requireImageConfig() {
65
+ if (hasRequiredImageConfig) return imageConfig;
66
+ hasRequiredImageConfig = 1;
67
+ (function(exports$1) {
68
+ Object.defineProperty(exports$1, "__esModule", {
69
+ value: true
60
70
  });
61
- }
62
- _export(exports, {
63
- VALID_LOADERS: function() {
64
- return VALID_LOADERS;
65
- },
66
- imageConfigDefault: function() {
67
- return imageConfigDefault;
71
+ function _export(target, all) {
72
+ for (var name in all) Object.defineProperty(target, name, {
73
+ enumerable: true,
74
+ get: all[name]
75
+ });
68
76
  }
69
- });
70
- const VALID_LOADERS = [
71
- "default",
72
- "imgix",
73
- "cloudinary",
74
- "akamai",
75
- "custom"
76
- ];
77
- const imageConfigDefault = {
78
- deviceSizes: [
79
- 640,
80
- 750,
81
- 828,
82
- 1080,
83
- 1200,
84
- 1920,
85
- 2048,
86
- 3840
87
- ],
88
- imageSizes: [
89
- 16,
90
- 32,
91
- 48,
92
- 64,
93
- 96,
94
- 128,
95
- 256,
96
- 384
97
- ],
98
- path: "/_next/image",
99
- loader: "default",
100
- loaderFile: "",
101
- domains: [],
102
- disableStaticImages: false,
103
- minimumCacheTTL: 60,
104
- formats: [
105
- "image/webp"
106
- ],
107
- dangerouslyAllowSVG: false,
108
- contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
109
- contentDispositionType: "attachment",
110
- localPatterns: void 0,
111
- remotePatterns: [],
112
- qualities: void 0,
113
- unoptimized: false
114
- };
115
- })(imageConfig);
116
- (function(exports) {
117
- Object.defineProperty(exports, "__esModule", {
118
- value: true
119
- });
120
- Object.defineProperty(exports, "getImgProps", {
121
- enumerable: true,
122
- get: function() {
123
- return getImgProps2;
77
+ _export(exports$1, {
78
+ VALID_LOADERS: function() {
79
+ return VALID_LOADERS;
80
+ },
81
+ imageConfigDefault: function() {
82
+ return imageConfigDefault;
83
+ }
84
+ });
85
+ const VALID_LOADERS = [
86
+ "default",
87
+ "imgix",
88
+ "cloudinary",
89
+ "akamai",
90
+ "custom"
91
+ ];
92
+ const imageConfigDefault = {
93
+ deviceSizes: [
94
+ 640,
95
+ 750,
96
+ 828,
97
+ 1080,
98
+ 1200,
99
+ 1920,
100
+ 2048,
101
+ 3840
102
+ ],
103
+ imageSizes: [
104
+ 32,
105
+ 48,
106
+ 64,
107
+ 96,
108
+ 128,
109
+ 256,
110
+ 384
111
+ ],
112
+ path: "/_next/image",
113
+ loader: "default",
114
+ loaderFile: "",
115
+ /**
116
+ * @deprecated Use `remotePatterns` instead to protect your application from malicious users.
117
+ */
118
+ domains: [],
119
+ disableStaticImages: false,
120
+ minimumCacheTTL: 14400,
121
+ formats: [
122
+ "image/webp"
123
+ ],
124
+ maximumRedirects: 3,
125
+ dangerouslyAllowLocalIP: false,
126
+ dangerouslyAllowSVG: false,
127
+ contentSecurityPolicy: `script-src 'none'; frame-src 'none'; sandbox;`,
128
+ contentDispositionType: "attachment",
129
+ localPatterns: void 0,
130
+ remotePatterns: [],
131
+ qualities: [
132
+ 75
133
+ ],
134
+ unoptimized: false
135
+ };
136
+ })(imageConfig);
137
+ return imageConfig;
138
+ }
139
+ var hasRequiredGetImgProps;
140
+ function requireGetImgProps() {
141
+ if (hasRequiredGetImgProps) return getImgProps;
142
+ hasRequiredGetImgProps = 1;
143
+ (function(exports$1) {
144
+ Object.defineProperty(exports$1, "__esModule", {
145
+ value: true
146
+ });
147
+ Object.defineProperty(exports$1, "getImgProps", {
148
+ enumerable: true,
149
+ get: function() {
150
+ return getImgProps2;
151
+ }
152
+ });
153
+ const _warnonce = requireWarnOnce();
154
+ const _imageblursvg = requireImageBlurSvg();
155
+ const _imageconfig = requireImageConfig();
156
+ const VALID_LOADING_VALUES = [
157
+ "lazy",
158
+ "eager",
159
+ void 0
160
+ ];
161
+ const INVALID_BACKGROUND_SIZE_VALUES = [
162
+ "-moz-initial",
163
+ "fill",
164
+ "none",
165
+ "scale-down",
166
+ void 0
167
+ ];
168
+ function isStaticRequire(src) {
169
+ return src.default !== void 0;
124
170
  }
125
- });
126
- const _warnonce = warnOnce;
127
- const _imageblursvg = imageBlurSvg;
128
- const _imageconfig = imageConfig;
129
- const VALID_LOADING_VALUES = [
130
- "lazy",
131
- "eager",
132
- void 0
133
- ];
134
- const INVALID_BACKGROUND_SIZE_VALUES = [
135
- "-moz-initial",
136
- "fill",
137
- "none",
138
- "scale-down",
139
- void 0
140
- ];
141
- function isStaticRequire(src) {
142
- return src.default !== void 0;
143
- }
144
- function isStaticImageData(src) {
145
- return src.src !== void 0;
146
- }
147
- function isStaticImport(src) {
148
- return !!src && typeof src === "object" && (isStaticRequire(src) || isStaticImageData(src));
149
- }
150
- const allImgs = /* @__PURE__ */ new Map();
151
- let perfObserver;
152
- function getInt(x) {
153
- if (typeof x === "undefined") {
154
- return x;
171
+ function isStaticImageData(src) {
172
+ return src.src !== void 0;
155
173
  }
156
- if (typeof x === "number") {
157
- return Number.isFinite(x) ? x : NaN;
174
+ function isStaticImport(src) {
175
+ return !!src && typeof src === "object" && (isStaticRequire(src) || isStaticImageData(src));
158
176
  }
159
- if (typeof x === "string" && /^[0-9]+$/.test(x)) {
160
- return parseInt(x, 10);
177
+ const allImgs = /* @__PURE__ */ new Map();
178
+ let perfObserver;
179
+ function getInt(x) {
180
+ if (typeof x === "undefined") {
181
+ return x;
182
+ }
183
+ if (typeof x === "number") {
184
+ return Number.isFinite(x) ? x : NaN;
185
+ }
186
+ if (typeof x === "string" && /^[0-9]+$/.test(x)) {
187
+ return parseInt(x, 10);
188
+ }
189
+ return NaN;
161
190
  }
162
- return NaN;
163
- }
164
- function getWidths(param, width, sizes) {
165
- let { deviceSizes, allSizes } = param;
166
- if (sizes) {
167
- const viewportWidthRe = /(^|\s)(1?\d?\d)vw/g;
168
- const percentSizes = [];
169
- for (let match; match = viewportWidthRe.exec(sizes); match) {
170
- percentSizes.push(parseInt(match[2]));
191
+ function getWidths({ deviceSizes, allSizes }, width, sizes) {
192
+ if (sizes) {
193
+ const viewportWidthRe = /(^|\s)(1?\d?\d)vw/g;
194
+ const percentSizes = [];
195
+ for (let match; match = viewportWidthRe.exec(sizes); match) {
196
+ percentSizes.push(parseInt(match[2]));
197
+ }
198
+ if (percentSizes.length) {
199
+ const smallestRatio = Math.min(...percentSizes) * 0.01;
200
+ return {
201
+ widths: allSizes.filter((s) => s >= deviceSizes[0] * smallestRatio),
202
+ kind: "w"
203
+ };
204
+ }
205
+ return {
206
+ widths: allSizes,
207
+ kind: "w"
208
+ };
171
209
  }
172
- if (percentSizes.length) {
173
- const smallestRatio = Math.min(...percentSizes) * 0.01;
210
+ if (typeof width !== "number") {
174
211
  return {
175
- widths: allSizes.filter((s) => s >= deviceSizes[0] * smallestRatio),
212
+ widths: deviceSizes,
176
213
  kind: "w"
177
214
  };
178
215
  }
216
+ const widths = [
217
+ ...new Set(
218
+ // > This means that most OLED screens that say they are 3x resolution,
219
+ // > are actually 3x in the green color, but only 1.5x in the red and
220
+ // > blue colors. Showing a 3x resolution image in the app vs a 2x
221
+ // > resolution image will be visually the same, though the 3x image
222
+ // > takes significantly more data. Even true 3x resolution screens are
223
+ // > wasteful as the human eye cannot see that level of detail without
224
+ // > something like a magnifying glass.
225
+ // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
226
+ [
227
+ width,
228
+ width * 2
229
+ /*, width * 3*/
230
+ ].map((w) => allSizes.find((p) => p >= w) || allSizes[allSizes.length - 1])
231
+ )
232
+ ];
179
233
  return {
180
- widths: allSizes,
181
- kind: "w"
182
- };
183
- }
184
- if (typeof width !== "number") {
185
- return {
186
- widths: deviceSizes,
187
- kind: "w"
188
- };
189
- }
190
- const widths = [
191
- ...new Set(
192
- // > This means that most OLED screens that say they are 3x resolution,
193
- // > are actually 3x in the green color, but only 1.5x in the red and
194
- // > blue colors. Showing a 3x resolution image in the app vs a 2x
195
- // > resolution image will be visually the same, though the 3x image
196
- // > takes significantly more data. Even true 3x resolution screens are
197
- // > wasteful as the human eye cannot see that level of detail without
198
- // > something like a magnifying glass.
199
- // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
200
- [
201
- width,
202
- width * 2
203
- /*, width * 3*/
204
- ].map((w) => allSizes.find((p) => p >= w) || allSizes[allSizes.length - 1])
205
- )
206
- ];
207
- return {
208
- widths,
209
- kind: "x"
210
- };
211
- }
212
- function generateImgAttrs(param) {
213
- let { config, src, unoptimized, width, quality, sizes, loader } = param;
214
- if (unoptimized) {
215
- return {
216
- src,
217
- srcSet: void 0,
218
- sizes: void 0
219
- };
220
- }
221
- const { widths, kind } = getWidths(config, width, sizes);
222
- const last = widths.length - 1;
223
- return {
224
- sizes: !sizes && kind === "w" ? "100vw" : sizes,
225
- srcSet: widths.map((w, i) => loader({
226
- config,
227
- src,
228
- quality,
229
- width: w
230
- }) + " " + (kind === "w" ? w : i + 1) + kind).join(", "),
231
- // It's intended to keep `src` the last attribute because React updates
232
- // attributes in order. If we keep `src` the first one, Safari will
233
- // immediately start to fetch `src`, before `sizes` and `srcSet` are even
234
- // updated by React. That causes multiple unnecessary requests if `srcSet`
235
- // and `sizes` are defined.
236
- // This bug cannot be reproduced in Chrome or Firefox.
237
- src: loader({
238
- config,
239
- src,
240
- quality,
241
- width: widths[last]
242
- })
243
- };
244
- }
245
- function getImgProps2(param, _state) {
246
- let { src, sizes, unoptimized = false, priority = false, loading, className, quality, width, height, fill = false, style, overrideSrc, onLoad, onLoadingComplete, placeholder = "empty", blurDataURL, fetchPriority, decoding = "async", layout, objectFit, objectPosition, lazyBoundary, lazyRoot, ...rest } = param;
247
- const { imgConf, showAltText, blurComplete, defaultLoader } = _state;
248
- let config;
249
- let c = imgConf || _imageconfig.imageConfigDefault;
250
- if ("allSizes" in c) {
251
- config = c;
252
- } else {
253
- var _c_qualities;
254
- const allSizes = [
255
- ...c.deviceSizes,
256
- ...c.imageSizes
257
- ].sort((a, b) => a - b);
258
- const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
259
- const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
260
- config = {
261
- ...c,
262
- allSizes,
263
- deviceSizes,
264
- qualities
234
+ widths,
235
+ kind: "x"
265
236
  };
266
237
  }
267
- if (typeof defaultLoader === "undefined") {
268
- throw Object.defineProperty(new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"), "__NEXT_ERROR_CODE", {
269
- value: "E163",
270
- enumerable: false,
271
- configurable: true
272
- });
273
- }
274
- let loader = rest.loader || defaultLoader;
275
- delete rest.loader;
276
- delete rest.srcSet;
277
- const isDefaultLoader = "__next_img_default" in loader;
278
- if (isDefaultLoader) {
279
- if (config.loader === "custom") {
280
- throw Object.defineProperty(new Error('Image with src "' + src + '" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'), "__NEXT_ERROR_CODE", {
281
- value: "E252",
282
- enumerable: false,
283
- configurable: true
284
- });
238
+ function generateImgAttrs({ config, src, unoptimized, width, quality, sizes, loader }) {
239
+ if (unoptimized) {
240
+ return {
241
+ src,
242
+ srcSet: void 0,
243
+ sizes: void 0
244
+ };
285
245
  }
286
- } else {
287
- const customImageLoader = loader;
288
- loader = (obj) => {
289
- const { config: _, ...opts } = obj;
290
- return customImageLoader(opts);
246
+ const { widths, kind } = getWidths(config, width, sizes);
247
+ const last = widths.length - 1;
248
+ return {
249
+ sizes: !sizes && kind === "w" ? "100vw" : sizes,
250
+ srcSet: widths.map((w, i) => `${loader({
251
+ config,
252
+ src,
253
+ quality,
254
+ width: w
255
+ })} ${kind === "w" ? w : i + 1}${kind}`).join(", "),
256
+ // It's intended to keep `src` the last attribute because React updates
257
+ // attributes in order. If we keep `src` the first one, Safari will
258
+ // immediately start to fetch `src`, before `sizes` and `srcSet` are even
259
+ // updated by React. That causes multiple unnecessary requests if `srcSet`
260
+ // and `sizes` are defined.
261
+ // This bug cannot be reproduced in Chrome or Firefox.
262
+ src: loader({
263
+ config,
264
+ src,
265
+ quality,
266
+ width: widths[last]
267
+ })
291
268
  };
292
269
  }
293
- if (layout) {
294
- if (layout === "fill") {
295
- fill = true;
296
- }
297
- const layoutToStyle = {
298
- intrinsic: {
299
- maxWidth: "100%",
300
- height: "auto"
301
- },
302
- responsive: {
303
- width: "100%",
304
- height: "auto"
305
- }
306
- };
307
- const layoutToSizes = {
308
- responsive: "100vw",
309
- fill: "100vw"
310
- };
311
- const layoutStyle = layoutToStyle[layout];
312
- if (layoutStyle) {
313
- style = {
314
- ...style,
315
- ...layoutStyle
270
+ function getImgProps2({ src, sizes, unoptimized = false, priority = false, preload = false, loading, className, quality, width, height, fill = false, style, overrideSrc, onLoad, onLoadingComplete, placeholder = "empty", blurDataURL, fetchPriority, decoding = "async", layout, objectFit, objectPosition, lazyBoundary, lazyRoot, ...rest }, _state) {
271
+ var _a;
272
+ const { imgConf, showAltText, blurComplete, defaultLoader } = _state;
273
+ let config;
274
+ let c = imgConf || _imageconfig.imageConfigDefault;
275
+ if ("allSizes" in c) {
276
+ config = c;
277
+ } else {
278
+ const allSizes = [
279
+ ...c.deviceSizes,
280
+ ...c.imageSizes
281
+ ].sort((a, b) => a - b);
282
+ const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
283
+ const qualities = (_a = c.qualities) == null ? void 0 : _a.sort((a, b) => a - b);
284
+ config = {
285
+ ...c,
286
+ allSizes,
287
+ deviceSizes,
288
+ qualities
316
289
  };
317
290
  }
318
- const layoutSizes = layoutToSizes[layout];
319
- if (layoutSizes && !sizes) {
320
- sizes = layoutSizes;
321
- }
322
- }
323
- let staticSrc = "";
324
- let widthInt = getInt(width);
325
- let heightInt = getInt(height);
326
- let blurWidth;
327
- let blurHeight;
328
- if (isStaticImport(src)) {
329
- const staticImageData = isStaticRequire(src) ? src.default : src;
330
- if (!staticImageData.src) {
331
- throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " + JSON.stringify(staticImageData)), "__NEXT_ERROR_CODE", {
332
- value: "E460",
333
- enumerable: false,
334
- configurable: true
335
- });
336
- }
337
- if (!staticImageData.height || !staticImageData.width) {
338
- throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received " + JSON.stringify(staticImageData)), "__NEXT_ERROR_CODE", {
339
- value: "E48",
291
+ if (typeof defaultLoader === "undefined") {
292
+ throw Object.defineProperty(new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"), "__NEXT_ERROR_CODE", {
293
+ value: "E163",
340
294
  enumerable: false,
341
295
  configurable: true
342
296
  });
343
297
  }
344
- blurWidth = staticImageData.blurWidth;
345
- blurHeight = staticImageData.blurHeight;
346
- blurDataURL = blurDataURL || staticImageData.blurDataURL;
347
- staticSrc = staticImageData.src;
348
- if (!fill) {
349
- if (!widthInt && !heightInt) {
350
- widthInt = staticImageData.width;
351
- heightInt = staticImageData.height;
352
- } else if (widthInt && !heightInt) {
353
- const ratio = widthInt / staticImageData.width;
354
- heightInt = Math.round(staticImageData.height * ratio);
355
- } else if (!widthInt && heightInt) {
356
- const ratio = heightInt / staticImageData.height;
357
- widthInt = Math.round(staticImageData.width * ratio);
298
+ let loader = rest.loader || defaultLoader;
299
+ delete rest.loader;
300
+ delete rest.srcSet;
301
+ const isDefaultLoader = "__next_img_default" in loader;
302
+ if (isDefaultLoader) {
303
+ if (config.loader === "custom") {
304
+ throw Object.defineProperty(new Error(`Image with src "${src}" is missing "loader" prop.
305
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT_ERROR_CODE", {
306
+ value: "E252",
307
+ enumerable: false,
308
+ configurable: true
309
+ });
358
310
  }
359
- }
360
- }
361
- src = typeof src === "string" ? src : staticSrc;
362
- let isLazy = !priority && (loading === "lazy" || typeof loading === "undefined");
363
- if (!src || src.startsWith("data:") || src.startsWith("blob:")) {
364
- unoptimized = true;
365
- isLazy = false;
366
- }
367
- if (config.unoptimized) {
368
- unoptimized = true;
369
- }
370
- if (isDefaultLoader && !config.dangerouslyAllowSVG && src.split("?", 1)[0].endsWith(".svg")) {
371
- unoptimized = true;
372
- }
373
- const qualityInt = getInt(quality);
374
- if (process.env.NODE_ENV !== "production") {
375
- if (config.output === "export" && isDefaultLoader && !unoptimized) {
376
- throw Object.defineProperty(new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api"), "__NEXT_ERROR_CODE", {
377
- value: "E500",
378
- enumerable: false,
379
- configurable: true
380
- });
381
- }
382
- if (!src) {
383
- unoptimized = true;
384
311
  } else {
385
- if (fill) {
386
- if (width) {
387
- throw Object.defineProperty(new Error('Image with src "' + src + '" has both "width" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
388
- value: "E96",
389
- enumerable: false,
390
- configurable: true
391
- });
392
- }
393
- if (height) {
394
- throw Object.defineProperty(new Error('Image with src "' + src + '" has both "height" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
395
- value: "E115",
396
- enumerable: false,
397
- configurable: true
398
- });
399
- }
400
- if ((style == null ? void 0 : style.position) && style.position !== "absolute") {
401
- throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.'), "__NEXT_ERROR_CODE", {
402
- value: "E216",
403
- enumerable: false,
404
- configurable: true
405
- });
406
- }
407
- if ((style == null ? void 0 : style.width) && style.width !== "100%") {
408
- throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
409
- value: "E73",
410
- enumerable: false,
411
- configurable: true
412
- });
413
- }
414
- if ((style == null ? void 0 : style.height) && style.height !== "100%") {
415
- throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
416
- value: "E404",
417
- enumerable: false,
418
- configurable: true
419
- });
420
- }
421
- } else {
422
- if (typeof widthInt === "undefined") {
423
- throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "width" property.'), "__NEXT_ERROR_CODE", {
424
- value: "E451",
425
- enumerable: false,
426
- configurable: true
427
- });
428
- } else if (isNaN(widthInt)) {
429
- throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "width" property. Expected a numeric value in pixels but received "' + width + '".'), "__NEXT_ERROR_CODE", {
430
- value: "E66",
431
- enumerable: false,
432
- configurable: true
433
- });
434
- }
435
- if (typeof heightInt === "undefined") {
436
- throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "height" property.'), "__NEXT_ERROR_CODE", {
437
- value: "E397",
438
- enumerable: false,
439
- configurable: true
440
- });
441
- } else if (isNaN(heightInt)) {
442
- throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "height" property. Expected a numeric value in pixels but received "' + height + '".'), "__NEXT_ERROR_CODE", {
443
- value: "E444",
444
- enumerable: false,
445
- configurable: true
446
- });
447
- }
448
- if (/^[\x00-\x20]/.test(src)) {
449
- throw Object.defineProperty(new Error('Image with src "' + src + '" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
450
- value: "E176",
451
- enumerable: false,
452
- configurable: true
453
- });
312
+ const customImageLoader = loader;
313
+ loader = (obj) => {
314
+ const { config: _, ...opts } = obj;
315
+ return customImageLoader(opts);
316
+ };
317
+ }
318
+ if (layout) {
319
+ if (layout === "fill") {
320
+ fill = true;
321
+ }
322
+ const layoutToStyle = {
323
+ intrinsic: {
324
+ maxWidth: "100%",
325
+ height: "auto"
326
+ },
327
+ responsive: {
328
+ width: "100%",
329
+ height: "auto"
454
330
  }
455
- if (/[\x00-\x20]$/.test(src)) {
456
- throw Object.defineProperty(new Error('Image with src "' + src + '" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
457
- value: "E21",
458
- enumerable: false,
459
- configurable: true
460
- });
331
+ };
332
+ const layoutToSizes = {
333
+ responsive: "100vw",
334
+ fill: "100vw"
335
+ };
336
+ const layoutStyle = layoutToStyle[layout];
337
+ if (layoutStyle) {
338
+ style = {
339
+ ...style,
340
+ ...layoutStyle
341
+ };
342
+ }
343
+ const layoutSizes = layoutToSizes[layout];
344
+ if (layoutSizes && !sizes) {
345
+ sizes = layoutSizes;
346
+ }
347
+ }
348
+ let staticSrc = "";
349
+ let widthInt = getInt(width);
350
+ let heightInt = getInt(height);
351
+ let blurWidth;
352
+ let blurHeight;
353
+ if (isStaticImport(src)) {
354
+ const staticImageData = isStaticRequire(src) ? src.default : src;
355
+ if (!staticImageData.src) {
356
+ throw Object.defineProperty(new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(staticImageData)}`), "__NEXT_ERROR_CODE", {
357
+ value: "E460",
358
+ enumerable: false,
359
+ configurable: true
360
+ });
361
+ }
362
+ if (!staticImageData.height || !staticImageData.width) {
363
+ throw Object.defineProperty(new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(staticImageData)}`), "__NEXT_ERROR_CODE", {
364
+ value: "E48",
365
+ enumerable: false,
366
+ configurable: true
367
+ });
368
+ }
369
+ blurWidth = staticImageData.blurWidth;
370
+ blurHeight = staticImageData.blurHeight;
371
+ blurDataURL = blurDataURL || staticImageData.blurDataURL;
372
+ staticSrc = staticImageData.src;
373
+ if (!fill) {
374
+ if (!widthInt && !heightInt) {
375
+ widthInt = staticImageData.width;
376
+ heightInt = staticImageData.height;
377
+ } else if (widthInt && !heightInt) {
378
+ const ratio = widthInt / staticImageData.width;
379
+ heightInt = Math.round(staticImageData.height * ratio);
380
+ } else if (!widthInt && heightInt) {
381
+ const ratio = heightInt / staticImageData.height;
382
+ widthInt = Math.round(staticImageData.width * ratio);
461
383
  }
462
384
  }
463
385
  }
464
- if (!VALID_LOADING_VALUES.includes(loading)) {
465
- throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "loading" property. Provided "' + loading + '" should be one of ' + VALID_LOADING_VALUES.map(String).join(",") + "."), "__NEXT_ERROR_CODE", {
466
- value: "E357",
467
- enumerable: false,
468
- configurable: true
469
- });
386
+ src = typeof src === "string" ? src : staticSrc;
387
+ let isLazy = !priority && !preload && (loading === "lazy" || typeof loading === "undefined");
388
+ if (!src || src.startsWith("data:") || src.startsWith("blob:")) {
389
+ unoptimized = true;
390
+ isLazy = false;
470
391
  }
471
- if (priority && loading === "lazy") {
472
- throw Object.defineProperty(new Error('Image with src "' + src + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
473
- value: "E218",
474
- enumerable: false,
475
- configurable: true
476
- });
392
+ if (config.unoptimized) {
393
+ unoptimized = true;
477
394
  }
478
- if (placeholder !== "empty" && placeholder !== "blur" && !placeholder.startsWith("data:image/")) {
479
- throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "placeholder" property "' + placeholder + '".'), "__NEXT_ERROR_CODE", {
480
- value: "E431",
481
- enumerable: false,
482
- configurable: true
483
- });
395
+ if (isDefaultLoader && !config.dangerouslyAllowSVG && src.split("?", 1)[0].endsWith(".svg")) {
396
+ unoptimized = true;
484
397
  }
485
- if (placeholder !== "empty") {
486
- if (widthInt && heightInt && widthInt * heightInt < 1600) {
487
- (0, _warnonce.warnOnce)('Image with src "' + src + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.');
398
+ const qualityInt = getInt(quality);
399
+ if (process.env.NODE_ENV !== "production") {
400
+ if (config.output === "export" && isDefaultLoader && !unoptimized) {
401
+ throw Object.defineProperty(new Error(`Image Optimization using the default loader is not compatible with \`{ output: 'export' }\`.
402
+ Possible solutions:
403
+ - Remove \`{ output: 'export' }\` and run "next start" to run server mode including the Image Optimization API.
404
+ - Configure \`{ images: { unoptimized: true } }\` in \`next.config.js\` to disable the Image Optimization API.
405
+ Read more: https://nextjs.org/docs/messages/export-image-api`), "__NEXT_ERROR_CODE", {
406
+ value: "E500",
407
+ enumerable: false,
408
+ configurable: true
409
+ });
488
410
  }
489
- }
490
- if (placeholder === "blur" && !blurDataURL) {
491
- const VALID_BLUR_EXT = [
492
- "jpeg",
493
- "png",
494
- "webp",
495
- "avif"
496
- ];
497
- throw Object.defineProperty(new Error('Image with src "' + src + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
411
+ if (!src) {
412
+ unoptimized = true;
413
+ } else {
414
+ if (fill) {
415
+ if (width) {
416
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "width" and "fill" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
417
+ value: "E96",
418
+ enumerable: false,
419
+ configurable: true
420
+ });
421
+ }
422
+ if (height) {
423
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "height" and "fill" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
424
+ value: "E115",
425
+ enumerable: false,
426
+ configurable: true
427
+ });
428
+ }
429
+ if ((style == null ? void 0 : style.position) && style.position !== "absolute") {
430
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.`), "__NEXT_ERROR_CODE", {
431
+ value: "E216",
432
+ enumerable: false,
433
+ configurable: true
434
+ });
435
+ }
436
+ if ((style == null ? void 0 : style.width) && style.width !== "100%") {
437
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.`), "__NEXT_ERROR_CODE", {
438
+ value: "E73",
439
+ enumerable: false,
440
+ configurable: true
441
+ });
442
+ }
443
+ if ((style == null ? void 0 : style.height) && style.height !== "100%") {
444
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.`), "__NEXT_ERROR_CODE", {
445
+ value: "E404",
446
+ enumerable: false,
447
+ configurable: true
448
+ });
449
+ }
450
+ } else {
451
+ if (typeof widthInt === "undefined") {
452
+ throw Object.defineProperty(new Error(`Image with src "${src}" is missing required "width" property.`), "__NEXT_ERROR_CODE", {
453
+ value: "E451",
454
+ enumerable: false,
455
+ configurable: true
456
+ });
457
+ } else if (isNaN(widthInt)) {
458
+ throw Object.defineProperty(new Error(`Image with src "${src}" has invalid "width" property. Expected a numeric value in pixels but received "${width}".`), "__NEXT_ERROR_CODE", {
459
+ value: "E66",
460
+ enumerable: false,
461
+ configurable: true
462
+ });
463
+ }
464
+ if (typeof heightInt === "undefined") {
465
+ throw Object.defineProperty(new Error(`Image with src "${src}" is missing required "height" property.`), "__NEXT_ERROR_CODE", {
466
+ value: "E397",
467
+ enumerable: false,
468
+ configurable: true
469
+ });
470
+ } else if (isNaN(heightInt)) {
471
+ throw Object.defineProperty(new Error(`Image with src "${src}" has invalid "height" property. Expected a numeric value in pixels but received "${height}".`), "__NEXT_ERROR_CODE", {
472
+ value: "E444",
473
+ enumerable: false,
474
+ configurable: true
475
+ });
476
+ }
477
+ if (/^[\x00-\x20]/.test(src)) {
478
+ throw Object.defineProperty(new Error(`Image with src "${src}" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.`), "__NEXT_ERROR_CODE", {
479
+ value: "E176",
480
+ enumerable: false,
481
+ configurable: true
482
+ });
483
+ }
484
+ if (/[\x00-\x20]$/.test(src)) {
485
+ throw Object.defineProperty(new Error(`Image with src "${src}" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.`), "__NEXT_ERROR_CODE", {
486
+ value: "E21",
487
+ enumerable: false,
488
+ configurable: true
489
+ });
490
+ }
491
+ }
492
+ }
493
+ if (!VALID_LOADING_VALUES.includes(loading)) {
494
+ throw Object.defineProperty(new Error(`Image with src "${src}" has invalid "loading" property. Provided "${loading}" should be one of ${VALID_LOADING_VALUES.map(String).join(",")}.`), "__NEXT_ERROR_CODE", {
495
+ value: "E357",
496
+ enumerable: false,
497
+ configurable: true
498
+ });
499
+ }
500
+ if (priority && loading === "lazy") {
501
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
502
+ value: "E218",
503
+ enumerable: false,
504
+ configurable: true
505
+ });
506
+ }
507
+ if (preload && loading === "lazy") {
508
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "preload" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
509
+ value: "E803",
510
+ enumerable: false,
511
+ configurable: true
512
+ });
513
+ }
514
+ if (preload && priority) {
515
+ throw Object.defineProperty(new Error(`Image with src "${src}" has both "preload" and "priority" properties. Only "preload" should be used.`), "__NEXT_ERROR_CODE", {
516
+ value: "E802",
517
+ enumerable: false,
518
+ configurable: true
519
+ });
520
+ }
521
+ if (placeholder !== "empty" && placeholder !== "blur" && !placeholder.startsWith("data:image/")) {
522
+ throw Object.defineProperty(new Error(`Image with src "${src}" has invalid "placeholder" property "${placeholder}".`), "__NEXT_ERROR_CODE", {
523
+ value: "E431",
524
+ enumerable: false,
525
+ configurable: true
526
+ });
527
+ }
528
+ if (placeholder !== "empty") {
529
+ if (widthInt && heightInt && widthInt * heightInt < 1600) {
530
+ (0, _warnonce.warnOnce)(`Image with src "${src}" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.`);
531
+ }
532
+ }
533
+ if (qualityInt && config.qualities && !config.qualities.includes(qualityInt)) {
534
+ (0, _warnonce.warnOnce)(`Image with src "${src}" is using quality "${qualityInt}" which is not configured in images.qualities [${config.qualities.join(", ")}]. Please update your config to [${[
535
+ ...config.qualities,
536
+ qualityInt
537
+ ].sort().join(", ")}].
538
+ Read more: https://nextjs.org/docs/messages/next-image-unconfigured-qualities`);
539
+ }
540
+ if (placeholder === "blur" && !blurDataURL) {
541
+ const VALID_BLUR_EXT = [
542
+ "jpeg",
543
+ "png",
544
+ "webp",
545
+ "avif"
546
+ ];
547
+ throw Object.defineProperty(new Error(`Image with src "${src}" has "placeholder='blur'" property but is missing the "blurDataURL" property.
498
548
  Possible solutions:
499
549
  - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
500
- - Change the "src" property to a static import with one of the supported file types: ` + VALID_BLUR_EXT.join(",") + ' (animated images not supported)\n - Remove the "placeholder" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url'), "__NEXT_ERROR_CODE", {
501
- value: "E371",
502
- enumerable: false,
503
- configurable: true
504
- });
505
- }
506
- if ("ref" in rest) {
507
- (0, _warnonce.warnOnce)('Image with src "' + src + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.');
508
- }
509
- if (!unoptimized && !isDefaultLoader) {
510
- const urlStr = loader({
511
- config,
512
- src,
513
- width: widthInt || 400,
514
- quality: qualityInt || 75
515
- });
516
- let url;
517
- try {
518
- url = new URL(urlStr);
519
- } catch (err) {
550
+ - Change the "src" property to a static import with one of the supported file types: ${VALID_BLUR_EXT.join(",")} (animated images not supported)
551
+ - Remove the "placeholder" property, effectively no blur effect
552
+ Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`), "__NEXT_ERROR_CODE", {
553
+ value: "E371",
554
+ enumerable: false,
555
+ configurable: true
556
+ });
520
557
  }
521
- if (urlStr === src || url && url.pathname === src && !url.search) {
522
- (0, _warnonce.warnOnce)('Image with src "' + src + '" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width');
558
+ if ("ref" in rest) {
559
+ (0, _warnonce.warnOnce)(`Image with src "${src}" is using unsupported "ref" property. Consider using the "onLoad" property instead.`);
560
+ }
561
+ if (!unoptimized && !isDefaultLoader) {
562
+ const urlStr = loader({
563
+ config,
564
+ src,
565
+ width: widthInt || 400,
566
+ quality: qualityInt || 75
567
+ });
568
+ let url;
569
+ try {
570
+ url = new URL(urlStr);
571
+ } catch (err) {
572
+ }
573
+ if (urlStr === src || url && url.pathname === src && !url.search) {
574
+ (0, _warnonce.warnOnce)(`Image with src "${src}" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
575
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
576
+ }
577
+ }
578
+ if (onLoadingComplete) {
579
+ (0, _warnonce.warnOnce)(`Image with src "${src}" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.`);
580
+ }
581
+ for (const [legacyKey, legacyValue] of Object.entries({
582
+ layout,
583
+ objectFit,
584
+ objectPosition,
585
+ lazyBoundary,
586
+ lazyRoot
587
+ })) {
588
+ if (legacyValue) {
589
+ (0, _warnonce.warnOnce)(`Image with src "${src}" has legacy prop "${legacyKey}". Did you forget to run the codemod?
590
+ Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
591
+ }
592
+ }
593
+ if (typeof window !== "undefined" && !perfObserver && window.PerformanceObserver) {
594
+ perfObserver = new PerformanceObserver((entryList) => {
595
+ var _a2;
596
+ for (const entry of entryList.getEntries()) {
597
+ const imgSrc = ((_a2 = entry == null ? void 0 : entry.element) == null ? void 0 : _a2.src) || "";
598
+ const lcpImage = allImgs.get(imgSrc);
599
+ if (lcpImage && lcpImage.loading === "lazy" && lcpImage.placeholder === "empty" && !lcpImage.src.startsWith("data:") && !lcpImage.src.startsWith("blob:")) {
600
+ (0, _warnonce.warnOnce)(`Image with src "${lcpImage.src}" was detected as the Largest Contentful Paint (LCP). Please add the \`loading="eager"\` property if this image is above the fold.
601
+ Read more: https://nextjs.org/docs/app/api-reference/components/image#loading`);
602
+ }
603
+ }
604
+ });
605
+ try {
606
+ perfObserver.observe({
607
+ type: "largest-contentful-paint",
608
+ buffered: true
609
+ });
610
+ } catch (err) {
611
+ console.error(err);
612
+ }
523
613
  }
524
614
  }
525
- if (onLoadingComplete) {
526
- (0, _warnonce.warnOnce)('Image with src "' + src + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
527
- }
528
- for (const [legacyKey, legacyValue] of Object.entries({
529
- layout,
615
+ const imgStyle = Object.assign(fill ? {
616
+ position: "absolute",
617
+ height: "100%",
618
+ width: "100%",
619
+ left: 0,
620
+ top: 0,
621
+ right: 0,
622
+ bottom: 0,
530
623
  objectFit,
531
- objectPosition,
532
- lazyBoundary,
533
- lazyRoot
534
- })) {
535
- if (legacyValue) {
536
- (0, _warnonce.warnOnce)('Image with src "' + src + '" has legacy prop "' + legacyKey + '". Did you forget to run the codemod?\nRead more: https://nextjs.org/docs/messages/next-image-upgrade-to-13');
624
+ objectPosition
625
+ } : {}, showAltText ? {} : {
626
+ color: "transparent"
627
+ }, style);
628
+ const backgroundImage = !blurComplete && placeholder !== "empty" ? placeholder === "blur" ? `url("data:image/svg+xml;charset=utf-8,${(0, _imageblursvg.getImageBlurSvg)({
629
+ widthInt,
630
+ heightInt,
631
+ blurWidth,
632
+ blurHeight,
633
+ blurDataURL: blurDataURL || "",
634
+ objectFit: imgStyle.objectFit
635
+ })}")` : `url("${placeholder}")` : null;
636
+ const backgroundSize = !INVALID_BACKGROUND_SIZE_VALUES.includes(imgStyle.objectFit) ? imgStyle.objectFit : imgStyle.objectFit === "fill" ? "100% 100%" : "cover";
637
+ let placeholderStyle = backgroundImage ? {
638
+ backgroundSize,
639
+ backgroundPosition: imgStyle.objectPosition || "50% 50%",
640
+ backgroundRepeat: "no-repeat",
641
+ backgroundImage
642
+ } : {};
643
+ if (process.env.NODE_ENV === "development") {
644
+ if (placeholderStyle.backgroundImage && placeholder === "blur" && (blurDataURL == null ? void 0 : blurDataURL.startsWith("/"))) {
645
+ placeholderStyle.backgroundImage = `url("${blurDataURL}")`;
537
646
  }
538
647
  }
539
- if (typeof window !== "undefined" && !perfObserver && window.PerformanceObserver) {
540
- perfObserver = new PerformanceObserver((entryList) => {
541
- for (const entry of entryList.getEntries()) {
542
- var _entry_element;
543
- const imgSrc = (entry == null ? void 0 : (_entry_element = entry.element) == null ? void 0 : _entry_element.src) || "";
544
- const lcpImage = allImgs.get(imgSrc);
545
- if (lcpImage && !lcpImage.priority && lcpImage.placeholder === "empty" && !lcpImage.src.startsWith("data:") && !lcpImage.src.startsWith("blob:")) {
546
- (0, _warnonce.warnOnce)('Image with src "' + lcpImage.src + '" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.\nRead more: https://nextjs.org/docs/api-reference/next/image#priority');
547
- }
648
+ const imgAttributes = generateImgAttrs({
649
+ config,
650
+ src,
651
+ unoptimized,
652
+ width: widthInt,
653
+ quality: qualityInt,
654
+ sizes,
655
+ loader
656
+ });
657
+ const loadingFinal = isLazy ? "lazy" : loading;
658
+ if (process.env.NODE_ENV !== "production") {
659
+ if (typeof window !== "undefined") {
660
+ let fullUrl;
661
+ try {
662
+ fullUrl = new URL(imgAttributes.src);
663
+ } catch (e) {
664
+ fullUrl = new URL(imgAttributes.src, window.location.href);
548
665
  }
549
- });
550
- try {
551
- perfObserver.observe({
552
- type: "largest-contentful-paint",
553
- buffered: true
666
+ allImgs.set(fullUrl.href, {
667
+ src,
668
+ loading: loadingFinal,
669
+ placeholder
554
670
  });
555
- } catch (err) {
556
- console.error(err);
557
- }
558
- }
559
- }
560
- const imgStyle = Object.assign(fill ? {
561
- position: "absolute",
562
- height: "100%",
563
- width: "100%",
564
- left: 0,
565
- top: 0,
566
- right: 0,
567
- bottom: 0,
568
- objectFit,
569
- objectPosition
570
- } : {}, showAltText ? {} : {
571
- color: "transparent"
572
- }, style);
573
- const backgroundImage = !blurComplete && placeholder !== "empty" ? placeholder === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, _imageblursvg.getImageBlurSvg)({
574
- widthInt,
575
- heightInt,
576
- blurWidth,
577
- blurHeight,
578
- blurDataURL: blurDataURL || "",
579
- objectFit: imgStyle.objectFit
580
- }) + '")' : 'url("' + placeholder + '")' : null;
581
- const backgroundSize = !INVALID_BACKGROUND_SIZE_VALUES.includes(imgStyle.objectFit) ? imgStyle.objectFit : imgStyle.objectFit === "fill" ? "100% 100%" : "cover";
582
- let placeholderStyle = backgroundImage ? {
583
- backgroundSize,
584
- backgroundPosition: imgStyle.objectPosition || "50% 50%",
585
- backgroundRepeat: "no-repeat",
586
- backgroundImage
587
- } : {};
588
- if (process.env.NODE_ENV === "development") {
589
- if (placeholderStyle.backgroundImage && placeholder === "blur" && (blurDataURL == null ? void 0 : blurDataURL.startsWith("/"))) {
590
- placeholderStyle.backgroundImage = 'url("' + blurDataURL + '")';
591
- }
592
- }
593
- const imgAttributes = generateImgAttrs({
594
- config,
595
- src,
596
- unoptimized,
597
- width: widthInt,
598
- quality: qualityInt,
599
- sizes,
600
- loader
601
- });
602
- if (process.env.NODE_ENV !== "production") {
603
- if (typeof window !== "undefined") {
604
- let fullUrl;
605
- try {
606
- fullUrl = new URL(imgAttributes.src);
607
- } catch (e) {
608
- fullUrl = new URL(imgAttributes.src, window.location.href);
609
671
  }
610
- allImgs.set(fullUrl.href, {
611
- src,
612
- priority,
613
- placeholder
614
- });
615
672
  }
673
+ const props = {
674
+ ...rest,
675
+ loading: loadingFinal,
676
+ fetchPriority,
677
+ width: widthInt,
678
+ height: heightInt,
679
+ decoding,
680
+ className,
681
+ style: {
682
+ ...imgStyle,
683
+ ...placeholderStyle
684
+ },
685
+ sizes: imgAttributes.sizes,
686
+ srcSet: imgAttributes.srcSet,
687
+ src: overrideSrc || imgAttributes.src
688
+ };
689
+ const meta = {
690
+ unoptimized,
691
+ preload: preload || priority,
692
+ placeholder,
693
+ fill
694
+ };
695
+ return {
696
+ props,
697
+ meta
698
+ };
616
699
  }
617
- const props = {
618
- ...rest,
619
- loading: isLazy ? "lazy" : loading,
620
- fetchPriority,
621
- width: widthInt,
622
- height: heightInt,
623
- decoding,
624
- className,
625
- style: {
626
- ...imgStyle,
627
- ...placeholderStyle
628
- },
629
- sizes: imgAttributes.sizes,
630
- srcSet: imgAttributes.srcSet,
631
- src: overrideSrc || imgAttributes.src
632
- };
633
- const meta = {
634
- unoptimized,
635
- priority,
636
- placeholder,
637
- fill
638
- };
639
- return {
640
- props,
641
- meta
642
- };
643
- }
644
- })(getImgProps);
700
+ })(getImgProps);
701
+ return getImgProps;
702
+ }
645
703
  var imageComponent = { exports: {} };
646
704
  var head = { exports: {} };
647
705
  var sideEffect = {};
@@ -649,11 +707,11 @@ var hasRequiredSideEffect;
649
707
  function requireSideEffect() {
650
708
  if (hasRequiredSideEffect) return sideEffect;
651
709
  hasRequiredSideEffect = 1;
652
- (function(exports) {
653
- Object.defineProperty(exports, "__esModule", {
710
+ (function(exports$1) {
711
+ Object.defineProperty(exports$1, "__esModule", {
654
712
  value: true
655
713
  });
656
- Object.defineProperty(exports, "default", {
714
+ Object.defineProperty(exports$1, "default", {
657
715
  enumerable: true,
658
716
  get: function() {
659
717
  return SideEffect;
@@ -666,24 +724,24 @@ function requireSideEffect() {
666
724
  const useClientOnlyEffect = isServer ? () => {
667
725
  } : _react.useEffect;
668
726
  function SideEffect(props) {
727
+ var _a;
669
728
  const { headManager, reduceComponentsToState } = props;
670
729
  function emitChange() {
671
730
  if (headManager && headManager.mountedInstances) {
672
731
  const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));
673
- headManager.updateHead(reduceComponentsToState(headElements, props));
732
+ headManager.updateHead(reduceComponentsToState(headElements));
674
733
  }
675
734
  }
676
735
  if (isServer) {
677
- var _headManager_mountedInstances;
678
- headManager == null ? void 0 : (_headManager_mountedInstances = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances.add(props.children);
736
+ (_a = headManager == null ? void 0 : headManager.mountedInstances) == null ? void 0 : _a.add(props.children);
679
737
  emitChange();
680
738
  }
681
739
  useClientOnlyLayoutEffect(() => {
682
- var _headManager_mountedInstances2;
683
- headManager == null ? void 0 : (_headManager_mountedInstances2 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances2.add(props.children);
740
+ var _a2;
741
+ (_a2 = headManager == null ? void 0 : headManager.mountedInstances) == null ? void 0 : _a2.add(props.children);
684
742
  return () => {
685
- var _headManager_mountedInstances3;
686
- headManager == null ? void 0 : (_headManager_mountedInstances3 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances3.delete(props.children);
743
+ var _a3;
744
+ (_a3 = headManager == null ? void 0 : headManager.mountedInstances) == null ? void 0 : _a3.delete(props.children);
687
745
  };
688
746
  });
689
747
  useClientOnlyLayoutEffect(() => {
@@ -713,47 +771,23 @@ function requireSideEffect() {
713
771
  })(sideEffect);
714
772
  return sideEffect;
715
773
  }
716
- var ampContext_sharedRuntime = {};
717
- var hasRequiredAmpContext_sharedRuntime;
718
- function requireAmpContext_sharedRuntime() {
719
- if (hasRequiredAmpContext_sharedRuntime) return ampContext_sharedRuntime;
720
- hasRequiredAmpContext_sharedRuntime = 1;
721
- (function(exports) {
722
- Object.defineProperty(exports, "__esModule", {
723
- value: true
724
- });
725
- Object.defineProperty(exports, "AmpStateContext", {
726
- enumerable: true,
727
- get: function() {
728
- return AmpStateContext;
729
- }
730
- });
731
- const _interop_require_default$1 = _interop_require_default;
732
- const _react = /* @__PURE__ */ _interop_require_default$1._(React);
733
- const AmpStateContext = _react.default.createContext({});
734
- if (process.env.NODE_ENV !== "production") {
735
- AmpStateContext.displayName = "AmpStateContext";
736
- }
737
- })(ampContext_sharedRuntime);
738
- return ampContext_sharedRuntime;
739
- }
740
774
  var headManagerContext_sharedRuntime = {};
741
775
  var hasRequiredHeadManagerContext_sharedRuntime;
742
776
  function requireHeadManagerContext_sharedRuntime() {
743
777
  if (hasRequiredHeadManagerContext_sharedRuntime) return headManagerContext_sharedRuntime;
744
778
  hasRequiredHeadManagerContext_sharedRuntime = 1;
745
- (function(exports) {
746
- Object.defineProperty(exports, "__esModule", {
779
+ (function(exports$1) {
780
+ Object.defineProperty(exports$1, "__esModule", {
747
781
  value: true
748
782
  });
749
- Object.defineProperty(exports, "HeadManagerContext", {
783
+ Object.defineProperty(exports$1, "HeadManagerContext", {
750
784
  enumerable: true,
751
785
  get: function() {
752
786
  return HeadManagerContext;
753
787
  }
754
788
  });
755
- const _interop_require_default$1 = _interop_require_default;
756
- const _react = /* @__PURE__ */ _interop_require_default$1._(React);
789
+ const _interop_require_default = /* @__PURE__ */ require_interop_require_default();
790
+ const _react = /* @__PURE__ */ _interop_require_default._(React);
757
791
  const HeadManagerContext = _react.default.createContext({});
758
792
  if (process.env.NODE_ENV !== "production") {
759
793
  HeadManagerContext.displayName = "HeadManagerContext";
@@ -761,35 +795,13 @@ function requireHeadManagerContext_sharedRuntime() {
761
795
  })(headManagerContext_sharedRuntime);
762
796
  return headManagerContext_sharedRuntime;
763
797
  }
764
- var ampMode = {};
765
- var hasRequiredAmpMode;
766
- function requireAmpMode() {
767
- if (hasRequiredAmpMode) return ampMode;
768
- hasRequiredAmpMode = 1;
769
- (function(exports) {
770
- Object.defineProperty(exports, "__esModule", {
771
- value: true
772
- });
773
- Object.defineProperty(exports, "isInAmpMode", {
774
- enumerable: true,
775
- get: function() {
776
- return isInAmpMode;
777
- }
778
- });
779
- function isInAmpMode(param) {
780
- let { ampFirst = false, hybrid = false, hasQuery = false } = param === void 0 ? {} : param;
781
- return ampFirst || hybrid && hasQuery;
782
- }
783
- })(ampMode);
784
- return ampMode;
785
- }
786
798
  var hasRequiredHead;
787
799
  function requireHead() {
788
800
  if (hasRequiredHead) return head.exports;
789
801
  hasRequiredHead = 1;
790
- (function(module, exports) {
802
+ (function(module, exports$1) {
791
803
  "use client";
792
- Object.defineProperty(exports, "__esModule", {
804
+ Object.defineProperty(exports$1, "__esModule", {
793
805
  value: true
794
806
  });
795
807
  function _export(target, all) {
@@ -798,7 +810,7 @@ function requireHead() {
798
810
  get: all[name]
799
811
  });
800
812
  }
801
- _export(exports, {
813
+ _export(exports$1, {
802
814
  default: function() {
803
815
  return _default;
804
816
  },
@@ -806,28 +818,23 @@ function requireHead() {
806
818
  return defaultHead;
807
819
  }
808
820
  });
809
- const _interop_require_default$1 = _interop_require_default;
810
- const _interop_require_wildcard$1 = _interop_require_wildcard;
821
+ const _interop_require_default = /* @__PURE__ */ require_interop_require_default();
822
+ const _interop_require_wildcard = /* @__PURE__ */ require_interop_require_wildcard();
811
823
  const _jsxruntime = require$$2;
812
- const _react = /* @__PURE__ */ _interop_require_wildcard$1._(React);
813
- const _sideeffect = /* @__PURE__ */ _interop_require_default$1._(requireSideEffect());
814
- const _ampcontextsharedruntime = requireAmpContext_sharedRuntime();
824
+ const _react = /* @__PURE__ */ _interop_require_wildcard._(React);
825
+ const _sideeffect = /* @__PURE__ */ _interop_require_default._(requireSideEffect());
815
826
  const _headmanagercontextsharedruntime = requireHeadManagerContext_sharedRuntime();
816
- const _ampmode = requireAmpMode();
817
- const _warnonce = warnOnce;
818
- function defaultHead(inAmpMode) {
819
- if (inAmpMode === void 0) inAmpMode = false;
827
+ const _warnonce = requireWarnOnce();
828
+ function defaultHead() {
820
829
  const head2 = [
821
830
  /* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
822
831
  charSet: "utf-8"
823
- }, "charset")
824
- ];
825
- if (!inAmpMode) {
826
- head2.push(/* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
832
+ }, "charset"),
833
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
827
834
  name: "viewport",
828
835
  content: "width=device-width"
829
- }, "viewport"));
830
- }
836
+ }, "viewport")
837
+ ];
831
838
  return head2;
832
839
  }
833
840
  function onlyReactElement(list, child) {
@@ -909,16 +916,17 @@ function requireHead() {
909
916
  return isUnique;
910
917
  };
911
918
  }
912
- function reduceComponents(headChildrenElements, props) {
913
- const { inAmpMode } = props;
914
- return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i) => {
919
+ function reduceComponents(headChildrenElements) {
920
+ return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead().reverse()).filter(unique()).reverse().map((c, i) => {
915
921
  const key = c.key || i;
916
922
  if (process.env.NODE_ENV === "development") {
917
923
  if (c.type === "script" && c.props["type"] !== "application/ld+json") {
918
- const srcMessage = c.props["src"] ? '<script> tag with src="' + c.props["src"] + '"' : "inline <script>";
919
- (0, _warnonce.warnOnce)("Do not add <script> tags using next/head (see " + srcMessage + "). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component");
924
+ const srcMessage = c.props["src"] ? `<script> tag with src="${c.props["src"]}"` : `inline <script>`;
925
+ (0, _warnonce.warnOnce)(`Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead.
926
+ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
920
927
  } else if (c.type === "link" && c.props["rel"] === "stylesheet") {
921
- (0, _warnonce.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + c.props["href"] + '"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component');
928
+ (0, _warnonce.warnOnce)(`Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="${c.props["href"]}"). Use Document instead.
929
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
922
930
  }
923
931
  }
924
932
  return /* @__PURE__ */ _react.default.cloneElement(c, {
@@ -926,22 +934,19 @@ function requireHead() {
926
934
  });
927
935
  });
928
936
  }
929
- function Head(param) {
930
- let { children } = param;
931
- const ampState = (0, _react.useContext)(_ampcontextsharedruntime.AmpStateContext);
937
+ function Head({ children }) {
932
938
  const headManager = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
933
939
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sideeffect.default, {
934
940
  reduceComponentsToState: reduceComponents,
935
941
  headManager,
936
- inAmpMode: (0, _ampmode.isInAmpMode)(ampState),
937
942
  children
938
943
  });
939
944
  }
940
945
  const _default = Head;
941
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
942
- Object.defineProperty(exports.default, "__esModule", { value: true });
943
- Object.assign(exports.default, exports);
944
- module.exports = exports.default;
946
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
947
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
948
+ Object.assign(exports$1.default, exports$1);
949
+ module.exports = exports$1.default;
945
950
  }
946
951
  })(head, head.exports);
947
952
  return head.exports;
@@ -951,19 +956,19 @@ var hasRequiredImageConfigContext_sharedRuntime;
951
956
  function requireImageConfigContext_sharedRuntime() {
952
957
  if (hasRequiredImageConfigContext_sharedRuntime) return imageConfigContext_sharedRuntime;
953
958
  hasRequiredImageConfigContext_sharedRuntime = 1;
954
- (function(exports) {
955
- Object.defineProperty(exports, "__esModule", {
959
+ (function(exports$1) {
960
+ Object.defineProperty(exports$1, "__esModule", {
956
961
  value: true
957
962
  });
958
- Object.defineProperty(exports, "ImageConfigContext", {
963
+ Object.defineProperty(exports$1, "ImageConfigContext", {
959
964
  enumerable: true,
960
965
  get: function() {
961
966
  return ImageConfigContext;
962
967
  }
963
968
  });
964
- const _interop_require_default$1 = _interop_require_default;
965
- const _react = /* @__PURE__ */ _interop_require_default$1._(React);
966
- const _imageconfig = imageConfig;
969
+ const _interop_require_default = /* @__PURE__ */ require_interop_require_default();
970
+ const _react = /* @__PURE__ */ _interop_require_default._(React);
971
+ const _imageconfig = requireImageConfig();
967
972
  const ImageConfigContext = _react.default.createContext(_imageconfig.imageConfigDefault);
968
973
  if (process.env.NODE_ENV !== "production") {
969
974
  ImageConfigContext.displayName = "ImageConfigContext";
@@ -972,6 +977,32 @@ function requireImageConfigContext_sharedRuntime() {
972
977
  return imageConfigContext_sharedRuntime;
973
978
  }
974
979
  var imageLoader = {};
980
+ var findClosestQuality = {};
981
+ var hasRequiredFindClosestQuality;
982
+ function requireFindClosestQuality() {
983
+ if (hasRequiredFindClosestQuality) return findClosestQuality;
984
+ hasRequiredFindClosestQuality = 1;
985
+ (function(exports$1) {
986
+ Object.defineProperty(exports$1, "__esModule", {
987
+ value: true
988
+ });
989
+ Object.defineProperty(exports$1, "findClosestQuality", {
990
+ enumerable: true,
991
+ get: function() {
992
+ return findClosestQuality2;
993
+ }
994
+ });
995
+ function findClosestQuality2(quality, config) {
996
+ var _a;
997
+ const q = quality || 75;
998
+ if (!((_a = config == null ? void 0 : config.qualities) == null ? void 0 : _a.length)) {
999
+ return q;
1000
+ }
1001
+ return config.qualities.reduce((prev, cur) => Math.abs(cur - q) < Math.abs(prev - q) ? cur : prev, 0);
1002
+ }
1003
+ })(findClosestQuality);
1004
+ return findClosestQuality;
1005
+ }
975
1006
  var matchLocalPattern = {};
976
1007
  var picomatch = { exports: {} };
977
1008
  var hasRequiredPicomatch;
@@ -1039,7 +1070,7 @@ function requirePicomatch() {
1039
1070
  try {
1040
1071
  new RegExp(u3);
1041
1072
  } catch (e4) {
1042
- return t3.map((t4) => o.escapeRegex(t4)).join("..");
1073
+ return t3.map(((t4) => o.escapeRegex(t4))).join("..");
1043
1074
  }
1044
1075
  return u3;
1045
1076
  };
@@ -1173,7 +1204,7 @@ function requirePicomatch() {
1173
1204
  };
1174
1205
  if (u3.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(t3)) {
1175
1206
  let n2 = false;
1176
- let s2 = t3.replace(i, (t4, e4, u4, o2, s3, r2) => {
1207
+ let s2 = t3.replace(i, ((t4, e4, u4, o2, s3, r2) => {
1177
1208
  if (o2 === "\\") {
1178
1209
  n2 = true;
1179
1210
  return t4;
@@ -1197,12 +1228,12 @@ function requirePicomatch() {
1197
1228
  return k;
1198
1229
  }
1199
1230
  return e4 ? t4 : `\\${t4}`;
1200
- });
1231
+ }));
1201
1232
  if (n2 === true) {
1202
1233
  if (u3.unescape === true) {
1203
1234
  s2 = s2.replace(/\\/g, "");
1204
1235
  } else {
1205
- s2 = s2.replace(/\\+/g, (t4) => t4.length % 2 === 0 ? "\\\\" : t4 ? "\\" : "");
1236
+ s2 = s2.replace(/\\+/g, ((t4) => t4.length % 2 === 0 ? "\\\\" : t4 ? "\\" : ""));
1206
1237
  }
1207
1238
  }
1208
1239
  if (s2 === t3 && u3.contains === true) {
@@ -1739,7 +1770,7 @@ function requirePicomatch() {
1739
1770
  const isObject = (t3) => t3 && typeof t3 === "object" && !Array.isArray(t3);
1740
1771
  const picomatch2 = (t3, e3, u3 = false) => {
1741
1772
  if (Array.isArray(t3)) {
1742
- const n3 = t3.map((t4) => picomatch2(t4, e3, u3));
1773
+ const n3 = t3.map(((t4) => picomatch2(t4, e3, u3)));
1743
1774
  const arrayMatcher = (t4) => {
1744
1775
  for (const e4 of n3) {
1745
1776
  const u4 = e4(t4);
@@ -1820,7 +1851,7 @@ function requirePicomatch() {
1820
1851
  };
1821
1852
  picomatch2.isMatch = (t3, e3, u3) => picomatch2(e3, u3)(t3);
1822
1853
  picomatch2.parse = (t3, e3) => {
1823
- if (Array.isArray(t3)) return t3.map((t4) => picomatch2.parse(t4, e3));
1854
+ if (Array.isArray(t3)) return t3.map(((t4) => picomatch2.parse(t4, e3)));
1824
1855
  return o(t3, { ...e3, fastpaths: false });
1825
1856
  };
1826
1857
  picomatch2.scan = (t3, e3) => n(t3, e3);
@@ -2150,7 +2181,7 @@ function requirePicomatch() {
2150
2181
  e2.isRegexChar = (t3) => t3.length === 1 && e2.hasRegexChars(t3);
2151
2182
  e2.escapeRegex = (t3) => t3.replace(r, "\\$1");
2152
2183
  e2.toPosixSlashes = (t3) => t3.replace(n, "/");
2153
- e2.removeBackslashes = (t3) => t3.replace(o, (t4) => t4 === "\\" ? "" : t4);
2184
+ e2.removeBackslashes = (t3) => t3.replace(o, ((t4) => t4 === "\\" ? "" : t4));
2154
2185
  e2.escapeLast = (t3, u3, n2) => {
2155
2186
  const o2 = t3.lastIndexOf(u3, n2);
2156
2187
  if (o2 === -1) return t3;
@@ -2209,8 +2240,8 @@ var hasRequiredMatchLocalPattern;
2209
2240
  function requireMatchLocalPattern() {
2210
2241
  if (hasRequiredMatchLocalPattern) return matchLocalPattern;
2211
2242
  hasRequiredMatchLocalPattern = 1;
2212
- (function(exports) {
2213
- Object.defineProperty(exports, "__esModule", {
2243
+ (function(exports$1) {
2244
+ Object.defineProperty(exports$1, "__esModule", {
2214
2245
  value: true
2215
2246
  });
2216
2247
  function _export(target, all) {
@@ -2219,7 +2250,7 @@ function requireMatchLocalPattern() {
2219
2250
  get: all[name]
2220
2251
  });
2221
2252
  }
2222
- _export(exports, {
2253
+ _export(exports$1, {
2223
2254
  hasLocalMatch: function() {
2224
2255
  return hasLocalMatch;
2225
2256
  },
@@ -2234,8 +2265,7 @@ function requireMatchLocalPattern() {
2234
2265
  return false;
2235
2266
  }
2236
2267
  }
2237
- var _pattern_pathname;
2238
- if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
2268
+ if (!(0, _picomatch.makeRe)(pattern.pathname ?? "**", {
2239
2269
  dot: true
2240
2270
  }).test(url.pathname)) {
2241
2271
  return false;
@@ -2257,8 +2287,8 @@ var hasRequiredMatchRemotePattern;
2257
2287
  function requireMatchRemotePattern() {
2258
2288
  if (hasRequiredMatchRemotePattern) return matchRemotePattern;
2259
2289
  hasRequiredMatchRemotePattern = 1;
2260
- (function(exports) {
2261
- Object.defineProperty(exports, "__esModule", {
2290
+ (function(exports$1) {
2291
+ Object.defineProperty(exports$1, "__esModule", {
2262
2292
  value: true
2263
2293
  });
2264
2294
  function _export(target, all) {
@@ -2267,7 +2297,7 @@ function requireMatchRemotePattern() {
2267
2297
  get: all[name]
2268
2298
  });
2269
2299
  }
2270
- _export(exports, {
2300
+ _export(exports$1, {
2271
2301
  hasRemoteMatch: function() {
2272
2302
  return hasRemoteMatch;
2273
2303
  },
@@ -2288,7 +2318,8 @@ function requireMatchRemotePattern() {
2288
2318
  }
2289
2319
  }
2290
2320
  if (pattern.hostname === void 0) {
2291
- throw Object.defineProperty(new Error("Pattern should define hostname but found\n" + JSON.stringify(pattern)), "__NEXT_ERROR_CODE", {
2321
+ throw Object.defineProperty(new Error(`Pattern should define hostname but found
2322
+ ${JSON.stringify(pattern)}`), "__NEXT_ERROR_CODE", {
2292
2323
  value: "E410",
2293
2324
  enumerable: false,
2294
2325
  configurable: true
@@ -2303,8 +2334,7 @@ function requireMatchRemotePattern() {
2303
2334
  return false;
2304
2335
  }
2305
2336
  }
2306
- var _pattern_pathname;
2307
- if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
2337
+ if (!(0, _picomatch.makeRe)(pattern.pathname ?? "**", {
2308
2338
  dot: true
2309
2339
  }).test(url.pathname)) {
2310
2340
  return false;
@@ -2321,37 +2351,44 @@ var hasRequiredImageLoader;
2321
2351
  function requireImageLoader() {
2322
2352
  if (hasRequiredImageLoader) return imageLoader;
2323
2353
  hasRequiredImageLoader = 1;
2324
- (function(exports) {
2325
- Object.defineProperty(exports, "__esModule", {
2354
+ (function(exports$1) {
2355
+ Object.defineProperty(exports$1, "__esModule", {
2326
2356
  value: true
2327
2357
  });
2328
- Object.defineProperty(exports, "default", {
2358
+ Object.defineProperty(exports$1, "default", {
2329
2359
  enumerable: true,
2330
2360
  get: function() {
2331
2361
  return _default;
2332
2362
  }
2333
2363
  });
2334
- const DEFAULT_Q = 75;
2335
- function defaultLoader(param) {
2336
- let { config, src, width, quality } = param;
2337
- var _config_qualities;
2364
+ const _findclosestquality = requireFindClosestQuality();
2365
+ function defaultLoader({ config, src, width, quality }) {
2366
+ var _a;
2367
+ if (src.startsWith("/") && src.includes("?") && ((_a = config.localPatterns) == null ? void 0 : _a.length) === 1 && config.localPatterns[0].pathname === "**" && config.localPatterns[0].search === "") {
2368
+ throw Object.defineProperty(new Error(`Image with src "${src}" is using a query string which is not configured in images.localPatterns.
2369
+ Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), "__NEXT_ERROR_CODE", {
2370
+ value: "E871",
2371
+ enumerable: false,
2372
+ configurable: true
2373
+ });
2374
+ }
2338
2375
  if (process.env.NODE_ENV !== "production") {
2339
2376
  const missingValues = [];
2340
2377
  if (!src) missingValues.push("src");
2341
2378
  if (!width) missingValues.push("width");
2342
2379
  if (missingValues.length > 0) {
2343
- throw Object.defineProperty(new Error("Next Image Optimization requires " + missingValues.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
2380
+ throw Object.defineProperty(new Error(`Next Image Optimization requires ${missingValues.join(", ")} to be provided. Make sure you pass them as props to the \`next/image\` component. Received: ${JSON.stringify({
2344
2381
  src,
2345
2382
  width,
2346
2383
  quality
2347
- })), "__NEXT_ERROR_CODE", {
2384
+ })}`), "__NEXT_ERROR_CODE", {
2348
2385
  value: "E188",
2349
2386
  enumerable: false,
2350
2387
  configurable: true
2351
2388
  });
2352
2389
  }
2353
2390
  if (src.startsWith("//")) {
2354
- throw Object.defineProperty(new Error('Failed to parse src "' + src + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
2391
+ throw Object.defineProperty(new Error(`Failed to parse src "${src}" on \`next/image\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)`), "__NEXT_ERROR_CODE", {
2355
2392
  value: "E360",
2356
2393
  enumerable: false,
2357
2394
  configurable: true
@@ -2362,7 +2399,8 @@ function requireImageLoader() {
2362
2399
  process.env.NEXT_RUNTIME !== "edge") {
2363
2400
  const { hasLocalMatch } = requireMatchLocalPattern();
2364
2401
  if (!hasLocalMatch(config.localPatterns, src)) {
2365
- throw Object.defineProperty(new Error("Invalid src prop (" + src + ") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns"), "__NEXT_ERROR_CODE", {
2402
+ throw Object.defineProperty(new Error(`Invalid src prop (${src}) on \`next/image\` does not match \`images.localPatterns\` configured in your \`next.config.js\`
2403
+ See more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), "__NEXT_ERROR_CODE", {
2366
2404
  value: "E426",
2367
2405
  enumerable: false,
2368
2406
  configurable: true
@@ -2376,7 +2414,7 @@ function requireImageLoader() {
2376
2414
  parsedSrc = new URL(src);
2377
2415
  } catch (err) {
2378
2416
  console.error(err);
2379
- throw Object.defineProperty(new Error('Failed to parse src "' + src + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
2417
+ throw Object.defineProperty(new Error(`Failed to parse src "${src}" on \`next/image\`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)`), "__NEXT_ERROR_CODE", {
2380
2418
  value: "E63",
2381
2419
  enumerable: false,
2382
2420
  configurable: true
@@ -2386,7 +2424,8 @@ function requireImageLoader() {
2386
2424
  process.env.NEXT_RUNTIME !== "edge") {
2387
2425
  const { hasRemoteMatch } = requireMatchRemotePattern();
2388
2426
  if (!hasRemoteMatch(config.domains, config.remotePatterns, parsedSrc)) {
2389
- throw Object.defineProperty(new Error("Invalid src prop (" + src + ') on `next/image`, hostname "' + parsedSrc.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host'), "__NEXT_ERROR_CODE", {
2427
+ throw Object.defineProperty(new Error(`Invalid src prop (${src}) on \`next/image\`, hostname "${parsedSrc.hostname}" is not configured under images in your \`next.config.js\`
2428
+ See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host`), "__NEXT_ERROR_CODE", {
2390
2429
  value: "E231",
2391
2430
  enumerable: false,
2392
2431
  configurable: true
@@ -2394,350 +2433,365 @@ function requireImageLoader() {
2394
2433
  }
2395
2434
  }
2396
2435
  }
2397
- if (quality && config.qualities && !config.qualities.includes(quality)) {
2398
- throw Object.defineProperty(new Error("Invalid quality prop (" + quality + ") on `next/image` does not match `images.qualities` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-qualities"), "__NEXT_ERROR_CODE", {
2399
- value: "E623",
2400
- enumerable: false,
2401
- configurable: true
2402
- });
2403
- }
2404
2436
  }
2405
- const q = quality || ((_config_qualities = config.qualities) == null ? void 0 : _config_qualities.reduce((prev, cur) => Math.abs(cur - DEFAULT_Q) < Math.abs(prev - DEFAULT_Q) ? cur : prev)) || DEFAULT_Q;
2406
- return config.path + "?url=" + encodeURIComponent(src) + "&w=" + width + "&q=" + q + (src.startsWith("/_next/static/media/") && process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
2437
+ const q = (0, _findclosestquality.findClosestQuality)(quality, config);
2438
+ return `${config.path}?url=${encodeURIComponent(src)}&w=${width}&q=${q}${src.startsWith("/_next/static/media/") && process.env.NEXT_DEPLOYMENT_ID ? `&dpl=${process.env.NEXT_DEPLOYMENT_ID}` : ""}`;
2407
2439
  }
2408
2440
  defaultLoader.__next_img_default = true;
2409
2441
  const _default = defaultLoader;
2410
2442
  })(imageLoader);
2411
2443
  return imageLoader;
2412
2444
  }
2413
- (function(module, exports) {
2414
- "use client";
2415
- Object.defineProperty(exports, "__esModule", {
2416
- value: true
2417
- });
2418
- Object.defineProperty(exports, "Image", {
2419
- enumerable: true,
2420
- get: function() {
2421
- return Image2;
2422
- }
2423
- });
2424
- const _interop_require_default$1 = _interop_require_default;
2425
- const _interop_require_wildcard$1 = _interop_require_wildcard;
2426
- const _jsxruntime = require$$2;
2427
- const _react = /* @__PURE__ */ _interop_require_wildcard$1._(React);
2428
- const _reactdom = /* @__PURE__ */ _interop_require_default$1._(ReactDOM);
2429
- const _head = /* @__PURE__ */ _interop_require_default$1._(requireHead());
2430
- const _getimgprops = getImgProps;
2431
- const _imageconfig = imageConfig;
2432
- const _imageconfigcontextsharedruntime = requireImageConfigContext_sharedRuntime();
2433
- const _warnonce = warnOnce;
2434
- const _routercontextsharedruntime = requireRouterContext_sharedRuntime();
2435
- const _imageloader = /* @__PURE__ */ _interop_require_default$1._(requireImageLoader());
2436
- const _usemergedref = requireUseMergedRef();
2437
- const configEnv = process.env.__NEXT_IMAGE_OPTS;
2438
- if (typeof window === "undefined") {
2439
- globalThis.__NEXT_IMAGE_IMPORTED = true;
2440
- }
2441
- function handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput) {
2442
- const src = img == null ? void 0 : img.src;
2443
- if (!img || img["data-loaded-src"] === src) {
2444
- return;
2445
+ var hasRequiredImageComponent;
2446
+ function requireImageComponent() {
2447
+ if (hasRequiredImageComponent) return imageComponent.exports;
2448
+ hasRequiredImageComponent = 1;
2449
+ (function(module, exports$1) {
2450
+ "use client";
2451
+ Object.defineProperty(exports$1, "__esModule", {
2452
+ value: true
2453
+ });
2454
+ Object.defineProperty(exports$1, "Image", {
2455
+ enumerable: true,
2456
+ get: function() {
2457
+ return Image2;
2458
+ }
2459
+ });
2460
+ const _interop_require_default = /* @__PURE__ */ require_interop_require_default();
2461
+ const _interop_require_wildcard = /* @__PURE__ */ require_interop_require_wildcard();
2462
+ const _jsxruntime = require$$2;
2463
+ const _react = /* @__PURE__ */ _interop_require_wildcard._(React);
2464
+ const _reactdom = /* @__PURE__ */ _interop_require_default._(ReactDOM);
2465
+ const _head = /* @__PURE__ */ _interop_require_default._(requireHead());
2466
+ const _getimgprops = requireGetImgProps();
2467
+ const _imageconfig = requireImageConfig();
2468
+ const _imageconfigcontextsharedruntime = requireImageConfigContext_sharedRuntime();
2469
+ const _warnonce = requireWarnOnce();
2470
+ const _routercontextsharedruntime = requireRouterContext_sharedRuntime();
2471
+ const _imageloader = /* @__PURE__ */ _interop_require_default._(requireImageLoader());
2472
+ const _usemergedref = requireUseMergedRef();
2473
+ const configEnv = process.env.__NEXT_IMAGE_OPTS;
2474
+ if (typeof window === "undefined") {
2475
+ globalThis.__NEXT_IMAGE_IMPORTED = true;
2445
2476
  }
2446
- img["data-loaded-src"] = src;
2447
- const p = "decode" in img ? img.decode() : Promise.resolve();
2448
- p.catch(() => {
2449
- }).then(() => {
2450
- if (!img.parentElement || !img.isConnected) {
2477
+ function handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput) {
2478
+ const src = img == null ? void 0 : img.src;
2479
+ if (!img || img["data-loaded-src"] === src) {
2451
2480
  return;
2452
2481
  }
2453
- if (placeholder !== "empty") {
2454
- setBlurComplete(true);
2455
- }
2456
- if (onLoadRef == null ? void 0 : onLoadRef.current) {
2457
- const event = new Event("load");
2458
- Object.defineProperty(event, "target", {
2459
- writable: false,
2460
- value: img
2461
- });
2462
- let prevented = false;
2463
- let stopped = false;
2464
- onLoadRef.current({
2465
- ...event,
2466
- nativeEvent: event,
2467
- currentTarget: img,
2468
- target: img,
2469
- isDefaultPrevented: () => prevented,
2470
- isPropagationStopped: () => stopped,
2471
- persist: () => {
2472
- },
2473
- preventDefault: () => {
2474
- prevented = true;
2475
- event.preventDefault();
2476
- },
2477
- stopPropagation: () => {
2478
- stopped = true;
2479
- event.stopPropagation();
2480
- }
2481
- });
2482
- }
2483
- if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {
2484
- onLoadingCompleteRef.current(img);
2485
- }
2486
- if (process.env.NODE_ENV !== "production") {
2487
- const origSrc = new URL(src, "http://n").searchParams.get("url") || src;
2488
- if (img.getAttribute("data-nimg") === "fill") {
2489
- if (!unoptimized && (!sizesInput || sizesInput === "100vw")) {
2490
- let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;
2491
- if (widthViewportRatio < 0.6) {
2492
- if (sizesInput === "100vw") {
2493
- (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes');
2494
- } else {
2495
- (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes');
2482
+ img["data-loaded-src"] = src;
2483
+ const p = "decode" in img ? img.decode() : Promise.resolve();
2484
+ p.catch(() => {
2485
+ }).then(() => {
2486
+ if (!img.parentElement || !img.isConnected) {
2487
+ return;
2488
+ }
2489
+ if (placeholder !== "empty") {
2490
+ setBlurComplete(true);
2491
+ }
2492
+ if (onLoadRef == null ? void 0 : onLoadRef.current) {
2493
+ const event = new Event("load");
2494
+ Object.defineProperty(event, "target", {
2495
+ writable: false,
2496
+ value: img
2497
+ });
2498
+ let prevented = false;
2499
+ let stopped = false;
2500
+ onLoadRef.current({
2501
+ ...event,
2502
+ nativeEvent: event,
2503
+ currentTarget: img,
2504
+ target: img,
2505
+ isDefaultPrevented: () => prevented,
2506
+ isPropagationStopped: () => stopped,
2507
+ persist: () => {
2508
+ },
2509
+ preventDefault: () => {
2510
+ prevented = true;
2511
+ event.preventDefault();
2512
+ },
2513
+ stopPropagation: () => {
2514
+ stopped = true;
2515
+ event.stopPropagation();
2516
+ }
2517
+ });
2518
+ }
2519
+ if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {
2520
+ onLoadingCompleteRef.current(img);
2521
+ }
2522
+ if (process.env.NODE_ENV !== "production") {
2523
+ const origSrc = new URL(src, "http://n").searchParams.get("url") || src;
2524
+ if (img.getAttribute("data-nimg") === "fill") {
2525
+ if (!unoptimized && (!sizesInput || sizesInput === "100vw")) {
2526
+ let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;
2527
+ if (widthViewportRatio < 0.6) {
2528
+ if (sizesInput === "100vw") {
2529
+ (0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes`);
2530
+ } else {
2531
+ (0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes`);
2532
+ }
2496
2533
  }
2497
2534
  }
2498
- }
2499
- if (img.parentElement) {
2500
- const { position } = window.getComputedStyle(img.parentElement);
2501
- const valid = [
2502
- "absolute",
2503
- "fixed",
2504
- "relative"
2505
- ];
2506
- if (!valid.includes(position)) {
2507
- (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" and parent element with invalid "position". Provided "' + position + '" should be one of ' + valid.map(String).join(",") + ".");
2535
+ if (img.parentElement) {
2536
+ const { position } = window.getComputedStyle(img.parentElement);
2537
+ const valid = [
2538
+ "absolute",
2539
+ "fixed",
2540
+ "relative"
2541
+ ];
2542
+ if (!valid.includes(position)) {
2543
+ (0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" and parent element with invalid "position". Provided "${position}" should be one of ${valid.map(String).join(",")}.`);
2544
+ }
2545
+ }
2546
+ if (img.height === 0) {
2547
+ (0, _warnonce.warnOnce)(`Image with src "${origSrc}" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.`);
2508
2548
  }
2509
2549
  }
2510
- if (img.height === 0) {
2511
- (0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');
2550
+ const heightModified = img.height.toString() !== img.getAttribute("height");
2551
+ const widthModified = img.width.toString() !== img.getAttribute("width");
2552
+ if (heightModified && !widthModified || !heightModified && widthModified) {
2553
+ (0, _warnonce.warnOnce)(`Image with src "${origSrc}" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
2512
2554
  }
2513
2555
  }
2514
- const heightModified = img.height.toString() !== img.getAttribute("height");
2515
- const widthModified = img.width.toString() !== img.getAttribute("width");
2516
- if (heightModified && !widthModified || !heightModified && widthModified) {
2517
- (0, _warnonce.warnOnce)('Image with src "' + origSrc + `" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
2518
- }
2556
+ });
2557
+ }
2558
+ function getDynamicProps(fetchPriority) {
2559
+ if (Boolean(_react.use)) {
2560
+ return {
2561
+ fetchPriority
2562
+ };
2519
2563
  }
2520
- });
2521
- }
2522
- function getDynamicProps(fetchPriority) {
2523
- if (Boolean(_react.use)) {
2524
2564
  return {
2525
- fetchPriority
2565
+ fetchpriority: fetchPriority
2526
2566
  };
2527
2567
  }
2528
- return {
2529
- fetchpriority: fetchPriority
2530
- };
2531
- }
2532
- const ImageElement = /* @__PURE__ */ (0, _react.forwardRef)((param, forwardedRef) => {
2533
- let { src, srcSet, sizes, height, width, decoding, className, style, fetchPriority, placeholder, loading, unoptimized, fill, onLoadRef, onLoadingCompleteRef, setBlurComplete, setShowAltText, sizesInput, onLoad, onError, ...rest } = param;
2534
- const ownRef = (0, _react.useCallback)((img) => {
2535
- if (!img) {
2536
- return;
2537
- }
2538
- if (onError) {
2539
- img.src = img.src;
2540
- }
2541
- if (process.env.NODE_ENV !== "production") {
2542
- if (!src) {
2543
- console.error('Image is missing required "src" property:', img);
2568
+ const ImageElement = /* @__PURE__ */ (0, _react.forwardRef)(({ src, srcSet, sizes, height, width, decoding, className, style, fetchPriority, placeholder, loading, unoptimized, fill, onLoadRef, onLoadingCompleteRef, setBlurComplete, setShowAltText, sizesInput, onLoad, onError, ...rest }, forwardedRef) => {
2569
+ const ownRef = (0, _react.useCallback)((img) => {
2570
+ if (!img) {
2571
+ return;
2544
2572
  }
2545
- if (img.getAttribute("alt") === null) {
2546
- console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.');
2573
+ if (onError) {
2574
+ img.src = img.src;
2547
2575
  }
2548
- }
2549
- if (img.complete) {
2550
- handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2551
- }
2552
- }, [
2553
- src,
2554
- placeholder,
2555
- onLoadRef,
2556
- onLoadingCompleteRef,
2557
- setBlurComplete,
2558
- onError,
2559
- unoptimized,
2560
- sizesInput
2561
- ]);
2562
- const ref = (0, _usemergedref.useMergedRef)(forwardedRef, ownRef);
2563
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
2564
- ...rest,
2565
- ...getDynamicProps(fetchPriority),
2566
- // It's intended to keep `loading` before `src` because React updates
2567
- // props in order which causes Safari/Firefox to not lazy load properly.
2568
- // See https://github.com/facebook/react/issues/25883
2569
- loading,
2570
- width,
2571
- height,
2572
- decoding,
2573
- "data-nimg": fill ? "fill" : "1",
2574
- className,
2575
- style,
2576
- // It's intended to keep `src` the last attribute because React updates
2577
- // attributes in order. If we keep `src` the first one, Safari will
2578
- // immediately start to fetch `src`, before `sizes` and `srcSet` are even
2579
- // updated by React. That causes multiple unnecessary requests if `srcSet`
2580
- // and `sizes` are defined.
2581
- // This bug cannot be reproduced in Chrome or Firefox.
2582
- sizes,
2583
- srcSet,
2584
- src,
2585
- ref,
2586
- onLoad: (event) => {
2587
- const img = event.currentTarget;
2588
- handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2589
- },
2590
- onError: (event) => {
2591
- setShowAltText(true);
2592
- if (placeholder !== "empty") {
2593
- setBlurComplete(true);
2576
+ if (process.env.NODE_ENV !== "production") {
2577
+ if (!src) {
2578
+ console.error(`Image is missing required "src" property:`, img);
2579
+ }
2580
+ if (img.getAttribute("alt") === null) {
2581
+ console.error(`Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.`);
2582
+ }
2594
2583
  }
2595
- if (onError) {
2596
- onError(event);
2584
+ if (img.complete) {
2585
+ handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2597
2586
  }
2598
- }
2599
- });
2600
- });
2601
- function ImagePreload(param) {
2602
- let { isAppRouter, imgAttributes } = param;
2603
- const opts = {
2604
- as: "image",
2605
- imageSrcSet: imgAttributes.srcSet,
2606
- imageSizes: imgAttributes.sizes,
2607
- crossOrigin: imgAttributes.crossOrigin,
2608
- referrerPolicy: imgAttributes.referrerPolicy,
2609
- ...getDynamicProps(imgAttributes.fetchPriority)
2610
- };
2611
- if (isAppRouter && _reactdom.default.preload) {
2612
- _reactdom.default.preload(imgAttributes.src, opts);
2613
- return null;
2614
- }
2615
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_head.default, {
2616
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("link", {
2617
- rel: "preload",
2618
- // Note how we omit the `href` attribute, as it would only be relevant
2619
- // for browsers that do not support `imagesrcset`, and in those cases
2620
- // it would cause the incorrect image to be preloaded.
2621
- //
2622
- // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
2623
- href: imgAttributes.srcSet ? void 0 : imgAttributes.src,
2624
- ...opts
2625
- }, "__nimg-" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes)
2587
+ }, [
2588
+ src,
2589
+ placeholder,
2590
+ onLoadRef,
2591
+ onLoadingCompleteRef,
2592
+ setBlurComplete,
2593
+ onError,
2594
+ unoptimized,
2595
+ sizesInput
2596
+ ]);
2597
+ const ref = (0, _usemergedref.useMergedRef)(forwardedRef, ownRef);
2598
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
2599
+ ...rest,
2600
+ ...getDynamicProps(fetchPriority),
2601
+ // It's intended to keep `loading` before `src` because React updates
2602
+ // props in order which causes Safari/Firefox to not lazy load properly.
2603
+ // See https://github.com/facebook/react/issues/25883
2604
+ loading,
2605
+ width,
2606
+ height,
2607
+ decoding,
2608
+ "data-nimg": fill ? "fill" : "1",
2609
+ className,
2610
+ style,
2611
+ // It's intended to keep `src` the last attribute because React updates
2612
+ // attributes in order. If we keep `src` the first one, Safari will
2613
+ // immediately start to fetch `src`, before `sizes` and `srcSet` are even
2614
+ // updated by React. That causes multiple unnecessary requests if `srcSet`
2615
+ // and `sizes` are defined.
2616
+ // This bug cannot be reproduced in Chrome or Firefox.
2617
+ sizes,
2618
+ srcSet,
2619
+ src,
2620
+ ref,
2621
+ onLoad: (event) => {
2622
+ const img = event.currentTarget;
2623
+ handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2624
+ },
2625
+ onError: (event) => {
2626
+ setShowAltText(true);
2627
+ if (placeholder !== "empty") {
2628
+ setBlurComplete(true);
2629
+ }
2630
+ if (onError) {
2631
+ onError(event);
2632
+ }
2633
+ }
2634
+ });
2626
2635
  });
2627
- }
2628
- const Image2 = /* @__PURE__ */ (0, _react.forwardRef)((props, forwardedRef) => {
2629
- const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
2630
- const isAppRouter = !pagesRouter;
2631
- const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);
2632
- const config = (0, _react.useMemo)(() => {
2633
- var _c_qualities;
2634
- const c = configEnv || configContext || _imageconfig.imageConfigDefault;
2635
- const allSizes = [
2636
- ...c.deviceSizes,
2637
- ...c.imageSizes
2638
- ].sort((a, b) => a - b);
2639
- const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
2640
- const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
2641
- return {
2642
- ...c,
2643
- allSizes,
2644
- deviceSizes,
2645
- qualities
2636
+ function ImagePreload({ isAppRouter, imgAttributes }) {
2637
+ const opts = {
2638
+ as: "image",
2639
+ imageSrcSet: imgAttributes.srcSet,
2640
+ imageSizes: imgAttributes.sizes,
2641
+ crossOrigin: imgAttributes.crossOrigin,
2642
+ referrerPolicy: imgAttributes.referrerPolicy,
2643
+ ...getDynamicProps(imgAttributes.fetchPriority)
2646
2644
  };
2647
- }, [
2648
- configContext
2649
- ]);
2650
- const { onLoad, onLoadingComplete } = props;
2651
- const onLoadRef = (0, _react.useRef)(onLoad);
2652
- (0, _react.useEffect)(() => {
2653
- onLoadRef.current = onLoad;
2654
- }, [
2655
- onLoad
2656
- ]);
2657
- const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);
2658
- (0, _react.useEffect)(() => {
2659
- onLoadingCompleteRef.current = onLoadingComplete;
2660
- }, [
2661
- onLoadingComplete
2662
- ]);
2663
- const [blurComplete, setBlurComplete] = (0, _react.useState)(false);
2664
- const [showAltText, setShowAltText] = (0, _react.useState)(false);
2665
- const { props: imgAttributes, meta: imgMeta } = (0, _getimgprops.getImgProps)(props, {
2666
- defaultLoader: _imageloader.default,
2667
- imgConf: config,
2668
- blurComplete,
2669
- showAltText
2670
- });
2671
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
2672
- children: [
2673
- /* @__PURE__ */ (0, _jsxruntime.jsx)(ImageElement, {
2674
- ...imgAttributes,
2675
- unoptimized: imgMeta.unoptimized,
2676
- placeholder: imgMeta.placeholder,
2677
- fill: imgMeta.fill,
2678
- onLoadRef,
2679
- onLoadingCompleteRef,
2680
- setBlurComplete,
2681
- setShowAltText,
2682
- sizesInput: props.sizes,
2683
- ref: forwardedRef
2684
- }),
2685
- imgMeta.priority ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ImagePreload, {
2686
- isAppRouter,
2687
- imgAttributes
2688
- }) : null
2689
- ]
2645
+ if (isAppRouter && _reactdom.default.preload) {
2646
+ _reactdom.default.preload(imgAttributes.src, opts);
2647
+ return null;
2648
+ }
2649
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_head.default, {
2650
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("link", {
2651
+ rel: "preload",
2652
+ // Note how we omit the `href` attribute, as it would only be relevant
2653
+ // for browsers that do not support `imagesrcset`, and in those cases
2654
+ // it would cause the incorrect image to be preloaded.
2655
+ //
2656
+ // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
2657
+ href: imgAttributes.srcSet ? void 0 : imgAttributes.src,
2658
+ ...opts
2659
+ }, "__nimg-" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes)
2660
+ });
2661
+ }
2662
+ const Image2 = /* @__PURE__ */ (0, _react.forwardRef)((props, forwardedRef) => {
2663
+ const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
2664
+ const isAppRouter = !pagesRouter;
2665
+ const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);
2666
+ const config = (0, _react.useMemo)(() => {
2667
+ var _a;
2668
+ const c = configEnv || configContext || _imageconfig.imageConfigDefault;
2669
+ const allSizes = [
2670
+ ...c.deviceSizes,
2671
+ ...c.imageSizes
2672
+ ].sort((a, b) => a - b);
2673
+ const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
2674
+ const qualities = (_a = c.qualities) == null ? void 0 : _a.sort((a, b) => a - b);
2675
+ return {
2676
+ ...c,
2677
+ allSizes,
2678
+ deviceSizes,
2679
+ qualities,
2680
+ // During the SSR, configEnv (__NEXT_IMAGE_OPTS) does not include
2681
+ // security sensitive configs like `localPatterns`, which is needed
2682
+ // during the server render to ensure it's validated. Therefore use
2683
+ // configContext, which holds the config from the server for validation.
2684
+ localPatterns: typeof window === "undefined" ? configContext == null ? void 0 : configContext.localPatterns : c.localPatterns
2685
+ };
2686
+ }, [
2687
+ configContext
2688
+ ]);
2689
+ const { onLoad, onLoadingComplete } = props;
2690
+ const onLoadRef = (0, _react.useRef)(onLoad);
2691
+ (0, _react.useEffect)(() => {
2692
+ onLoadRef.current = onLoad;
2693
+ }, [
2694
+ onLoad
2695
+ ]);
2696
+ const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);
2697
+ (0, _react.useEffect)(() => {
2698
+ onLoadingCompleteRef.current = onLoadingComplete;
2699
+ }, [
2700
+ onLoadingComplete
2701
+ ]);
2702
+ const [blurComplete, setBlurComplete] = (0, _react.useState)(false);
2703
+ const [showAltText, setShowAltText] = (0, _react.useState)(false);
2704
+ const { props: imgAttributes, meta: imgMeta } = (0, _getimgprops.getImgProps)(props, {
2705
+ defaultLoader: _imageloader.default,
2706
+ imgConf: config,
2707
+ blurComplete,
2708
+ showAltText
2709
+ });
2710
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
2711
+ children: [
2712
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(ImageElement, {
2713
+ ...imgAttributes,
2714
+ unoptimized: imgMeta.unoptimized,
2715
+ placeholder: imgMeta.placeholder,
2716
+ fill: imgMeta.fill,
2717
+ onLoadRef,
2718
+ onLoadingCompleteRef,
2719
+ setBlurComplete,
2720
+ setShowAltText,
2721
+ sizesInput: props.sizes,
2722
+ ref: forwardedRef
2723
+ }),
2724
+ imgMeta.preload ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ImagePreload, {
2725
+ isAppRouter,
2726
+ imgAttributes
2727
+ }) : null
2728
+ ]
2729
+ });
2690
2730
  });
2691
- });
2692
- if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
2693
- Object.defineProperty(exports.default, "__esModule", { value: true });
2694
- Object.assign(exports.default, exports);
2695
- module.exports = exports.default;
2696
- }
2697
- })(imageComponent, imageComponent.exports);
2698
- var imageComponentExports = imageComponent.exports;
2699
- (function(exports) {
2700
- Object.defineProperty(exports, "__esModule", {
2701
- value: true
2702
- });
2703
- function _export(target, all) {
2704
- for (var name in all) Object.defineProperty(target, name, {
2705
- enumerable: true,
2706
- get: all[name]
2731
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
2732
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
2733
+ Object.assign(exports$1.default, exports$1);
2734
+ module.exports = exports$1.default;
2735
+ }
2736
+ })(imageComponent, imageComponent.exports);
2737
+ return imageComponent.exports;
2738
+ }
2739
+ var hasRequiredImageExternal;
2740
+ function requireImageExternal() {
2741
+ if (hasRequiredImageExternal) return imageExternal;
2742
+ hasRequiredImageExternal = 1;
2743
+ (function(exports$1) {
2744
+ Object.defineProperty(exports$1, "__esModule", {
2745
+ value: true
2707
2746
  });
2708
- }
2709
- _export(exports, {
2710
- default: function() {
2711
- return _default;
2712
- },
2713
- getImageProps: function() {
2714
- return getImageProps;
2747
+ function _export(target, all) {
2748
+ for (var name in all) Object.defineProperty(target, name, {
2749
+ enumerable: true,
2750
+ get: all[name]
2751
+ });
2715
2752
  }
2716
- });
2717
- const _interop_require_default$1 = _interop_require_default;
2718
- const _getimgprops = getImgProps;
2719
- const _imagecomponent = imageComponentExports;
2720
- const _imageloader = /* @__PURE__ */ _interop_require_default$1._(requireImageLoader());
2721
- function getImageProps(imgProps) {
2722
- const { props } = (0, _getimgprops.getImgProps)(imgProps, {
2723
- defaultLoader: _imageloader.default,
2724
- // This is replaced by webpack define plugin
2725
- imgConf: process.env.__NEXT_IMAGE_OPTS
2753
+ _export(exports$1, {
2754
+ default: function() {
2755
+ return _default;
2756
+ },
2757
+ getImageProps: function() {
2758
+ return getImageProps;
2759
+ }
2726
2760
  });
2727
- for (const [key, value] of Object.entries(props)) {
2728
- if (value === void 0) {
2729
- delete props[key];
2761
+ const _interop_require_default = /* @__PURE__ */ require_interop_require_default();
2762
+ const _getimgprops = requireGetImgProps();
2763
+ const _imagecomponent = requireImageComponent();
2764
+ const _imageloader = /* @__PURE__ */ _interop_require_default._(requireImageLoader());
2765
+ function getImageProps(imgProps) {
2766
+ const { props } = (0, _getimgprops.getImgProps)(imgProps, {
2767
+ defaultLoader: _imageloader.default,
2768
+ // This is replaced by webpack define plugin
2769
+ imgConf: process.env.__NEXT_IMAGE_OPTS
2770
+ });
2771
+ for (const [key, value] of Object.entries(props)) {
2772
+ if (value === void 0) {
2773
+ delete props[key];
2774
+ }
2730
2775
  }
2776
+ return {
2777
+ props
2778
+ };
2731
2779
  }
2732
- return {
2733
- props
2734
- };
2735
- }
2736
- const _default = _imagecomponent.Image;
2737
- })(imageExternal);
2738
- var image = imageExternal;
2739
- const Image = /* @__PURE__ */ getDefaultExportFromCjs(image);
2780
+ const _default = _imagecomponent.Image;
2781
+ })(imageExternal);
2782
+ return imageExternal;
2783
+ }
2784
+ var image;
2785
+ var hasRequiredImage;
2786
+ function requireImage() {
2787
+ if (hasRequiredImage) return image;
2788
+ hasRequiredImage = 1;
2789
+ image = requireImageExternal();
2790
+ return image;
2791
+ }
2792
+ var imageExports = requireImage();
2793
+ const Image = /* @__PURE__ */ getDefaultExportFromCjs(imageExports);
2740
2794
  export {
2741
2795
  Image as I
2742
2796
  };
2743
- //# sourceMappingURL=image-CEz9QtOW.js.map
2797
+ //# sourceMappingURL=image-BBS8QO15.js.map