@local-logic/sdks-app 1.24.40 → 1.24.41

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 (254) hide show
  1. package/dist/assets/{Attribution-1Rs_lSaP.js → Attribution-BFX5_TA0.js} +2 -2
  2. package/dist/assets/{Attribution-1Rs_lSaP.js.map → Attribution-BFX5_TA0.js.map} +1 -1
  3. package/dist/assets/{Attribution-legacy-z2BjL7p0.js → Attribution-legacy-CdR3a3DX.js} +2 -2
  4. package/dist/assets/{Attribution-legacy-z2BjL7p0.js.map → Attribution-legacy-CdR3a3DX.js.map} +1 -1
  5. package/dist/assets/{Cluster-BHQcO6iC-xa0oCXAy.js → Cluster-BHQcO6iC-BOZz2skE.js} +2 -2
  6. package/dist/assets/{Cluster-BHQcO6iC-xa0oCXAy.js.map → Cluster-BHQcO6iC-BOZz2skE.js.map} +1 -1
  7. package/dist/assets/{Cluster-BHQcO6iC-legacy-Bybijjfk.js → Cluster-BHQcO6iC-legacy-B_rK_gsZ.js} +2 -2
  8. package/dist/assets/{Cluster-BHQcO6iC-legacy-Bybijjfk.js.map → Cluster-BHQcO6iC-legacy-B_rK_gsZ.js.map} +1 -1
  9. package/dist/assets/{Google-CH7a2yx--ovYZ-h3M.js → Google-CH7a2yx--DwQd7dvh.js} +2 -2
  10. package/dist/assets/{Google-CH7a2yx--ovYZ-h3M.js.map → Google-CH7a2yx--DwQd7dvh.js.map} +1 -1
  11. package/dist/assets/{Google-CH7a2yx--legacy-C6u2uwAw.js → Google-CH7a2yx--legacy-C0xakqb8.js} +2 -2
  12. package/dist/assets/{Google-CH7a2yx--legacy-C6u2uwAw.js.map → Google-CH7a2yx--legacy-C0xakqb8.js.map} +1 -1
  13. package/dist/assets/{Google-CXGCn-oJ-BXFc5F9y.js → Google-CXGCn-oJ-Dh7vAF1i.js} +2 -2
  14. package/dist/assets/{Google-CXGCn-oJ-BXFc5F9y.js.map → Google-CXGCn-oJ-Dh7vAF1i.js.map} +1 -1
  15. package/dist/assets/{Google-CXGCn-oJ-legacy-Bv9lya5C.js → Google-CXGCn-oJ-legacy-B35yyRBB.js} +2 -2
  16. package/dist/assets/{Google-CXGCn-oJ-legacy-Bv9lya5C.js.map → Google-CXGCn-oJ-legacy-B35yyRBB.js.map} +1 -1
  17. package/dist/assets/{Google-D1kMMDIv-CyqUDjcJ.js → Google-D1kMMDIv-CAaNq2xc.js} +2 -2
  18. package/dist/assets/{Google-D1kMMDIv-CyqUDjcJ.js.map → Google-D1kMMDIv-CAaNq2xc.js.map} +1 -1
  19. package/dist/assets/{Google-D1kMMDIv-legacy-DKdnDC4w.js → Google-D1kMMDIv-legacy-CwFf8lIw.js} +2 -2
  20. package/dist/assets/{Google-D1kMMDIv-legacy-DKdnDC4w.js.map → Google-D1kMMDIv-legacy-CwFf8lIw.js.map} +1 -1
  21. package/dist/assets/{Google-DScXSvYv-legacy-BOwywVA7.js → Google-DScXSvYv-legacy-DEJ7UsBu.js} +2 -2
  22. package/dist/assets/{Google-DScXSvYv-legacy-BOwywVA7.js.map → Google-DScXSvYv-legacy-DEJ7UsBu.js.map} +1 -1
  23. package/dist/assets/{Google-DScXSvYv-CMLGBG91.js → Google-DScXSvYv-qp1ruzZ-.js} +2 -2
  24. package/dist/assets/{Google-DScXSvYv-CMLGBG91.js.map → Google-DScXSvYv-qp1ruzZ-.js.map} +1 -1
  25. package/dist/assets/{Google-qvGtRAuh-PwpE9X2p.js → Google-qvGtRAuh-CubndKzb.js} +2 -2
  26. package/dist/assets/{Google-qvGtRAuh-PwpE9X2p.js.map → Google-qvGtRAuh-CubndKzb.js.map} +1 -1
  27. package/dist/assets/{Google-qvGtRAuh-legacy-DzpIwQOn.js → Google-qvGtRAuh-legacy-CDAA2PYJ.js} +2 -2
  28. package/dist/assets/{Google-qvGtRAuh-legacy-DzpIwQOn.js.map → Google-qvGtRAuh-legacy-CDAA2PYJ.js.map} +1 -1
  29. package/dist/assets/{GridGraph-BtocIeP6.js → GridGraph-Ce2K4lJE.js} +2 -2
  30. package/dist/assets/{GridGraph-BtocIeP6.js.map → GridGraph-Ce2K4lJE.js.map} +1 -1
  31. package/dist/assets/{GridGraph-legacy-BjpzUUXY.js → GridGraph-legacy-QpuvSlS4.js} +2 -2
  32. package/dist/assets/{GridGraph-legacy-BjpzUUXY.js.map → GridGraph-legacy-QpuvSlS4.js.map} +1 -1
  33. package/dist/assets/{LeadCapture-C6J4SFYX.js → LeadCapture-DQ_u-trr.js} +2 -2
  34. package/dist/assets/{LeadCapture-C6J4SFYX.js.map → LeadCapture-DQ_u-trr.js.map} +1 -1
  35. package/dist/assets/{LeadCapture-legacy-CvtD-JLs.js → LeadCapture-legacy-9N32vfea.js} +2 -2
  36. package/dist/assets/{LeadCapture-legacy-CvtD-JLs.js.map → LeadCapture-legacy-9N32vfea.js.map} +1 -1
  37. package/dist/assets/{LocalContent-D_By1RQx.js → LocalContent-2pJKWECA.js} +2 -2
  38. package/dist/assets/{LocalContent-D_By1RQx.js.map → LocalContent-2pJKWECA.js.map} +1 -1
  39. package/dist/assets/{LocalContent-legacy-ySWyVUnO.js → LocalContent-legacy-DPfe8JRY.js} +2 -2
  40. package/dist/assets/{LocalContent-legacy-ySWyVUnO.js.map → LocalContent-legacy-DPfe8JRY.js.map} +1 -1
  41. package/dist/assets/{LocalDemographics-DJ2-OAQf.js → LocalDemographics-CCLrxAlH.js} +2 -2
  42. package/dist/assets/{LocalDemographics-DJ2-OAQf.js.map → LocalDemographics-CCLrxAlH.js.map} +1 -1
  43. package/dist/assets/{LocalDemographics-legacy-BdndzMcL.js → LocalDemographics-legacy-BpeV7vKR.js} +2 -2
  44. package/dist/assets/{LocalDemographics-legacy-BdndzMcL.js.map → LocalDemographics-legacy-BpeV7vKR.js.map} +1 -1
  45. package/dist/assets/{Mapbox-B7oionsm-uR5IXeyy.js → Mapbox-B7oionsm-KJ9BTAVS.js} +2 -2
  46. package/dist/assets/{Mapbox-B7oionsm-uR5IXeyy.js.map → Mapbox-B7oionsm-KJ9BTAVS.js.map} +1 -1
  47. package/dist/assets/{Mapbox-B7oionsm-legacy-DbFnvW90.js → Mapbox-B7oionsm-legacy-DOVfzEvQ.js} +2 -2
  48. package/dist/assets/{Mapbox-B7oionsm-legacy-DbFnvW90.js.map → Mapbox-B7oionsm-legacy-DOVfzEvQ.js.map} +1 -1
  49. package/dist/assets/{Mapbox-CIislOVu-_SCNyNvm.js → Mapbox-CIislOVu-CI4DWbq-.js} +2 -2
  50. package/dist/assets/{Mapbox-CIislOVu-_SCNyNvm.js.map → Mapbox-CIislOVu-CI4DWbq-.js.map} +1 -1
  51. package/dist/assets/{Mapbox-CIislOVu-legacy-BFRdB1ZB.js → Mapbox-CIislOVu-legacy-BE7lsxI8.js} +2 -2
  52. package/dist/assets/{Mapbox-CIislOVu-legacy-BFRdB1ZB.js.map → Mapbox-CIislOVu-legacy-BE7lsxI8.js.map} +1 -1
  53. package/dist/assets/{Mapbox-DDJ1gHRb-DEMJ-azB.js → Mapbox-DDJ1gHRb-1dK4LbZk.js} +2 -2
  54. package/dist/assets/{Mapbox-DDJ1gHRb-DEMJ-azB.js.map → Mapbox-DDJ1gHRb-1dK4LbZk.js.map} +1 -1
  55. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-FX0OT-av.js → Mapbox-DDJ1gHRb-legacy-p6YhQitU.js} +2 -2
  56. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-FX0OT-av.js.map → Mapbox-DDJ1gHRb-legacy-p6YhQitU.js.map} +1 -1
  57. package/dist/assets/{Mapbox-DtZmt1D_-CylJOr0s.js → Mapbox-DtZmt1D_-BfV4qnN4.js} +2 -2
  58. package/dist/assets/{Mapbox-DtZmt1D_-CylJOr0s.js.map → Mapbox-DtZmt1D_-BfV4qnN4.js.map} +1 -1
  59. package/dist/assets/{Mapbox-DtZmt1D_-legacy-CEf_t8Ho.js → Mapbox-DtZmt1D_-legacy-Dd0GlX-Y.js} +2 -2
  60. package/dist/assets/{Mapbox-DtZmt1D_-legacy-CEf_t8Ho.js.map → Mapbox-DtZmt1D_-legacy-Dd0GlX-Y.js.map} +1 -1
  61. package/dist/assets/{Mapbox-vp91lH9I-2azJqyBH.js → Mapbox-vp91lH9I-CkAfe1Ca.js} +2 -2
  62. package/dist/assets/{Mapbox-vp91lH9I-2azJqyBH.js.map → Mapbox-vp91lH9I-CkAfe1Ca.js.map} +1 -1
  63. package/dist/assets/{Mapbox-vp91lH9I-legacy-DPw2IdjJ.js → Mapbox-vp91lH9I-legacy-B00zbfjv.js} +2 -2
  64. package/dist/assets/{Mapbox-vp91lH9I-legacy-DPw2IdjJ.js.map → Mapbox-vp91lH9I-legacy-B00zbfjv.js.map} +1 -1
  65. package/dist/assets/{Maptiler-BQliPE7n-fHYr_Sy8.js → Maptiler-BQliPE7n-B4cS19Fa.js} +2 -2
  66. package/dist/assets/{Maptiler-BQliPE7n-fHYr_Sy8.js.map → Maptiler-BQliPE7n-B4cS19Fa.js.map} +1 -1
  67. package/dist/assets/{Maptiler-BQliPE7n-legacy-eo7KI-_O.js → Maptiler-BQliPE7n-legacy-DBnYfT32.js} +2 -2
  68. package/dist/assets/{Maptiler-BQliPE7n-legacy-eo7KI-_O.js.map → Maptiler-BQliPE7n-legacy-DBnYfT32.js.map} +1 -1
  69. package/dist/assets/{Maptiler-BtYYeJoo-CTmdD2ZG.js → Maptiler-BtYYeJoo-Vhp1tVrO.js} +2 -2
  70. package/dist/assets/{Maptiler-BtYYeJoo-CTmdD2ZG.js.map → Maptiler-BtYYeJoo-Vhp1tVrO.js.map} +1 -1
  71. package/dist/assets/{Maptiler-BtYYeJoo-legacy-3OoLRcAt.js → Maptiler-BtYYeJoo-legacy-CHcjlox7.js} +2 -2
  72. package/dist/assets/{Maptiler-BtYYeJoo-legacy-3OoLRcAt.js.map → Maptiler-BtYYeJoo-legacy-CHcjlox7.js.map} +1 -1
  73. package/dist/assets/{Maptiler-Cy2r6w4G-CP-nhmYn.js → Maptiler-Cy2r6w4G-BhmMrh_F.js} +2 -2
  74. package/dist/assets/{Maptiler-Cy2r6w4G-CP-nhmYn.js.map → Maptiler-Cy2r6w4G-BhmMrh_F.js.map} +1 -1
  75. package/dist/assets/{Maptiler-Cy2r6w4G-legacy-ZYpf9l6D.js → Maptiler-Cy2r6w4G-legacy-Dtiu6fim.js} +2 -2
  76. package/dist/assets/{Maptiler-Cy2r6w4G-legacy-ZYpf9l6D.js.map → Maptiler-Cy2r6w4G-legacy-Dtiu6fim.js.map} +1 -1
  77. package/dist/assets/{Maptiler-DJScKW8p-Crd7Z6cV.js → Maptiler-DJScKW8p-B4sYvTN1.js} +2 -2
  78. package/dist/assets/{Maptiler-DJScKW8p-Crd7Z6cV.js.map → Maptiler-DJScKW8p-B4sYvTN1.js.map} +1 -1
  79. package/dist/assets/{Maptiler-DJScKW8p-legacy-CtCw_AMy.js → Maptiler-DJScKW8p-legacy-BfcUaZSe.js} +2 -2
  80. package/dist/assets/{Maptiler-DJScKW8p-legacy-CtCw_AMy.js.map → Maptiler-DJScKW8p-legacy-BfcUaZSe.js.map} +1 -1
  81. package/dist/assets/{Maptiler-DqeshLom-CrkvMF_T.js → Maptiler-DqeshLom-Dj7UvFn7.js} +2 -2
  82. package/dist/assets/{Maptiler-DqeshLom-CrkvMF_T.js.map → Maptiler-DqeshLom-Dj7UvFn7.js.map} +1 -1
  83. package/dist/assets/{Maptiler-DqeshLom-legacy-DDfM5Hzg.js → Maptiler-DqeshLom-legacy-bBrlYN2Q.js} +2 -2
  84. package/dist/assets/{Maptiler-DqeshLom-legacy-DDfM5Hzg.js.map → Maptiler-DqeshLom-legacy-bBrlYN2Q.js.map} +1 -1
  85. package/dist/assets/{MarkerIcon-Bc3X9WQk-MIM92a-D.js → MarkerIcon-Bc3X9WQk-CGChV4D4.js} +2 -2
  86. package/dist/assets/{MarkerIcon-Bc3X9WQk-MIM92a-D.js.map → MarkerIcon-Bc3X9WQk-CGChV4D4.js.map} +1 -1
  87. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-Df6-FiGi.js → MarkerIcon-Bc3X9WQk-legacy-BhBhhwrP.js} +2 -2
  88. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-Df6-FiGi.js.map → MarkerIcon-Bc3X9WQk-legacy-BhBhhwrP.js.map} +1 -1
  89. package/dist/assets/{NeighborhoodCard-vYnzmXHM.js → NeighborhoodCard-BaGtTms0.js} +2 -2
  90. package/dist/assets/{NeighborhoodCard-vYnzmXHM.js.map → NeighborhoodCard-BaGtTms0.js.map} +1 -1
  91. package/dist/assets/{NeighborhoodCard-legacy-DFcfelXl.js → NeighborhoodCard-legacy-B9W6aCqR.js} +2 -2
  92. package/dist/assets/{NeighborhoodCard-legacy-DFcfelXl.js.map → NeighborhoodCard-legacy-B9W6aCqR.js.map} +1 -1
  93. package/dist/assets/{NeighborhoodCharacteristics-CKDqcqBD.js → NeighborhoodCharacteristics-D56qnuca.js} +2 -2
  94. package/dist/assets/{NeighborhoodCharacteristics-CKDqcqBD.js.map → NeighborhoodCharacteristics-D56qnuca.js.map} +1 -1
  95. package/dist/assets/{NeighborhoodCharacteristics-legacy-CLa_SgDg.js → NeighborhoodCharacteristics-legacy-DlowZFEG.js} +2 -2
  96. package/dist/assets/{NeighborhoodCharacteristics-legacy-CLa_SgDg.js.map → NeighborhoodCharacteristics-legacy-DlowZFEG.js.map} +1 -1
  97. package/dist/assets/{NeighborhoodDemographics-9bIYm41b.js → NeighborhoodDemographics-C0jX8lOM.js} +2 -2
  98. package/dist/assets/{NeighborhoodDemographics-9bIYm41b.js.map → NeighborhoodDemographics-C0jX8lOM.js.map} +1 -1
  99. package/dist/assets/{NeighborhoodDemographics-legacy-CS8oTDkw.js → NeighborhoodDemographics-legacy-CnNPTNnh.js} +2 -2
  100. package/dist/assets/{NeighborhoodDemographics-legacy-CS8oTDkw.js.map → NeighborhoodDemographics-legacy-CnNPTNnh.js.map} +1 -1
  101. package/dist/assets/{NeighborhoodFeatured-CqLcXNVj.js → NeighborhoodFeatured-Dy3pyH2M.js} +2 -2
  102. package/dist/assets/{NeighborhoodFeatured-CqLcXNVj.js.map → NeighborhoodFeatured-Dy3pyH2M.js.map} +1 -1
  103. package/dist/assets/{NeighborhoodFeatured-legacy-CUYFzaci.js → NeighborhoodFeatured-legacy-BEY92Bli.js} +2 -2
  104. package/dist/assets/{NeighborhoodFeatured-legacy-CUYFzaci.js.map → NeighborhoodFeatured-legacy-BEY92Bli.js.map} +1 -1
  105. package/dist/assets/{NeighborhoodHero-CvvE1ltz.js → NeighborhoodHero-Ccge3SCR.js} +2 -2
  106. package/dist/assets/{NeighborhoodHero-CvvE1ltz.js.map → NeighborhoodHero-Ccge3SCR.js.map} +1 -1
  107. package/dist/assets/{NeighborhoodHero-legacy-D1mVa22Q.js → NeighborhoodHero-legacy-Cb5s0tRe.js} +2 -2
  108. package/dist/assets/{NeighborhoodHero-legacy-D1mVa22Q.js.map → NeighborhoodHero-legacy-Cb5s0tRe.js.map} +1 -1
  109. package/dist/assets/{NeighborhoodHighlights-CZPdH88M.js → NeighborhoodHighlights-BFiTF1H2.js} +2 -2
  110. package/dist/assets/{NeighborhoodHighlights-CZPdH88M.js.map → NeighborhoodHighlights-BFiTF1H2.js.map} +1 -1
  111. package/dist/assets/{NeighborhoodHighlights-legacy-D9U7NrXB.js → NeighborhoodHighlights-legacy-BQJvJ1kW.js} +2 -2
  112. package/dist/assets/{NeighborhoodHighlights-legacy-D9U7NrXB.js.map → NeighborhoodHighlights-legacy-BQJvJ1kW.js.map} +1 -1
  113. package/dist/assets/{NeighborhoodMap-CW5YonYt.js → NeighborhoodMap-Cs2mW6eY.js} +2 -2
  114. package/dist/assets/{NeighborhoodMap-CW5YonYt.js.map → NeighborhoodMap-Cs2mW6eY.js.map} +1 -1
  115. package/dist/assets/{NeighborhoodMap-legacy-DJc98Olx.js → NeighborhoodMap-legacy-ItxtWyNg.js} +2 -2
  116. package/dist/assets/{NeighborhoodMap-legacy-DJc98Olx.js.map → NeighborhoodMap-legacy-ItxtWyNg.js.map} +1 -1
  117. package/dist/assets/{NeighborhoodMarketTrends-C9k7JehA.js → NeighborhoodMarketTrends-BPFS-IP7.js} +3 -3
  118. package/dist/assets/{NeighborhoodMarketTrends-C9k7JehA.js.map → NeighborhoodMarketTrends-BPFS-IP7.js.map} +1 -1
  119. package/dist/assets/{NeighborhoodMarketTrends-legacy-2bMV1Qzk.js → NeighborhoodMarketTrends-legacy-BFUSfWBV.js} +2 -2
  120. package/dist/assets/{NeighborhoodMarketTrends-legacy-2bMV1Qzk.js.map → NeighborhoodMarketTrends-legacy-BFUSfWBV.js.map} +1 -1
  121. package/dist/assets/{NeighborhoodMatch-D1Ih_N5y.js → NeighborhoodMatch-DyGrO6rV.js} +2 -2
  122. package/dist/assets/{NeighborhoodMatch-D1Ih_N5y.js.map → NeighborhoodMatch-DyGrO6rV.js.map} +1 -1
  123. package/dist/assets/{NeighborhoodMatch-legacy-JIbRT5P5.js → NeighborhoodMatch-legacy-Dk7eubJO.js} +2 -2
  124. package/dist/assets/{NeighborhoodMatch-legacy-JIbRT5P5.js.map → NeighborhoodMatch-legacy-Dk7eubJO.js.map} +1 -1
  125. package/dist/assets/{NeighborhoodPropertyValueDrivers-BZqsNnYY.js → NeighborhoodPropertyValueDrivers-CkZQt4Un.js} +2 -2
  126. package/dist/assets/{NeighborhoodPropertyValueDrivers-BZqsNnYY.js.map → NeighborhoodPropertyValueDrivers-CkZQt4Un.js.map} +1 -1
  127. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-DFZzKasL.js → NeighborhoodPropertyValueDrivers-legacy-t-PsDc7H.js} +2 -2
  128. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-DFZzKasL.js.map → NeighborhoodPropertyValueDrivers-legacy-t-PsDc7H.js.map} +1 -1
  129. package/dist/assets/{NeighborhoodSchools-vdqXmI6x.js → NeighborhoodSchools-CYj0W8g4.js} +2 -2
  130. package/dist/assets/{NeighborhoodSchools-vdqXmI6x.js.map → NeighborhoodSchools-CYj0W8g4.js.map} +1 -1
  131. package/dist/assets/{NeighborhoodSchools-legacy-DZvrq0M0.js → NeighborhoodSchools-legacy-CIoYquJq.js} +2 -2
  132. package/dist/assets/{NeighborhoodSchools-legacy-DZvrq0M0.js.map → NeighborhoodSchools-legacy-CIoYquJq.js.map} +1 -1
  133. package/dist/assets/{NeighborhoodShowcase-IMXpKRt7.js → NeighborhoodShowcase-CHCSD8YZ.js} +2 -2
  134. package/dist/assets/{NeighborhoodShowcase-IMXpKRt7.js.map → NeighborhoodShowcase-CHCSD8YZ.js.map} +1 -1
  135. package/dist/assets/{NeighborhoodShowcase-legacy-DsybUJu-.js → NeighborhoodShowcase-legacy-DyZTfaNU.js} +2 -2
  136. package/dist/assets/{NeighborhoodShowcase-legacy-DsybUJu-.js.map → NeighborhoodShowcase-legacy-DyZTfaNU.js.map} +1 -1
  137. package/dist/assets/{NoDataContent-C0rYoHx-.js → NoDataContent-CEAzGzUq.js} +2 -2
  138. package/dist/assets/{NoDataContent-C0rYoHx-.js.map → NoDataContent-CEAzGzUq.js.map} +1 -1
  139. package/dist/assets/{NoDataContent-legacy-KJTrIi_f.js → NoDataContent-legacy-DT86maak.js} +2 -2
  140. package/dist/assets/{NoDataContent-legacy-KJTrIi_f.js.map → NoDataContent-legacy-DT86maak.js.map} +1 -1
  141. package/dist/assets/{ResizeWrapper-C7FI0ut2.js → ResizeWrapper-D7ns3o39.js} +2 -2
  142. package/dist/assets/{ResizeWrapper-C7FI0ut2.js.map → ResizeWrapper-D7ns3o39.js.map} +1 -1
  143. package/dist/assets/{ResizeWrapper-legacy-CxGgsSO0.js → ResizeWrapper-legacy-DibF7KTC.js} +2 -2
  144. package/dist/assets/{ResizeWrapper-legacy-CxGgsSO0.js.map → ResizeWrapper-legacy-DibF7KTC.js.map} +1 -1
  145. package/dist/assets/{ScoreCardList-Cpdc2cjx.js → ScoreCardList-BYAr0xig.js} +2 -2
  146. package/dist/assets/{ScoreCardList-Cpdc2cjx.js.map → ScoreCardList-BYAr0xig.js.map} +1 -1
  147. package/dist/assets/{ScoreCardList-legacy-CEYUmBc-.js → ScoreCardList-legacy-Db7k9lb3.js} +2 -2
  148. package/dist/assets/{ScoreCardList-legacy-CEYUmBc-.js.map → ScoreCardList-legacy-Db7k9lb3.js.map} +1 -1
  149. package/dist/assets/{ScoreIcon-t1E2TT1n.js → ScoreIcon-CWGLoE_R.js} +2 -2
  150. package/dist/assets/{ScoreIcon-t1E2TT1n.js.map → ScoreIcon-CWGLoE_R.js.map} +1 -1
  151. package/dist/assets/{ScoreIcon-legacy-DkcfBQiQ.js → ScoreIcon-legacy-DGUI0vRG.js} +2 -2
  152. package/dist/assets/{ScoreIcon-legacy-DkcfBQiQ.js.map → ScoreIcon-legacy-DGUI0vRG.js.map} +1 -1
  153. package/dist/assets/{Testing--n5Ro0Ek-BsPetIU5.js → Testing--n5Ro0Ek-DXRiz8JT.js} +2 -2
  154. package/dist/assets/{Testing--n5Ro0Ek-BsPetIU5.js.map → Testing--n5Ro0Ek-DXRiz8JT.js.map} +1 -1
  155. package/dist/assets/{Testing--n5Ro0Ek-legacy-CsbvD4x2.js → Testing--n5Ro0Ek-legacy-B6FpaP3L.js} +2 -2
  156. package/dist/assets/{Testing--n5Ro0Ek-legacy-CsbvD4x2.js.map → Testing--n5Ro0Ek-legacy-B6FpaP3L.js.map} +1 -1
  157. package/dist/assets/{Testing-BNJwzbRK-BEmMvKs-.js → Testing-BNJwzbRK-VAOz2xBT.js} +2 -2
  158. package/dist/assets/{Testing-BNJwzbRK-BEmMvKs-.js.map → Testing-BNJwzbRK-VAOz2xBT.js.map} +1 -1
  159. package/dist/assets/{Testing-BNJwzbRK-legacy-CyJlRp16.js → Testing-BNJwzbRK-legacy-CcRLjo0P.js} +2 -2
  160. package/dist/assets/{Testing-BNJwzbRK-legacy-CyJlRp16.js.map → Testing-BNJwzbRK-legacy-CcRLjo0P.js.map} +1 -1
  161. package/dist/assets/{Testing-CoRLhmNT-CPD-TUoo.js → Testing-CoRLhmNT-DkH9taDM.js} +2 -2
  162. package/dist/assets/{Testing-CoRLhmNT-CPD-TUoo.js.map → Testing-CoRLhmNT-DkH9taDM.js.map} +1 -1
  163. package/dist/assets/{Testing-CoRLhmNT-legacy-DfgW_o9l.js → Testing-CoRLhmNT-legacy-D75s8djK.js} +2 -2
  164. package/dist/assets/{Testing-CoRLhmNT-legacy-DfgW_o9l.js.map → Testing-CoRLhmNT-legacy-D75s8djK.js.map} +1 -1
  165. package/dist/assets/{Testing-DGUeGxdc-BdjxCDn4.js → Testing-DGUeGxdc-dBjPjKfX.js} +2 -2
  166. package/dist/assets/{Testing-DGUeGxdc-BdjxCDn4.js.map → Testing-DGUeGxdc-dBjPjKfX.js.map} +1 -1
  167. package/dist/assets/{Testing-DGUeGxdc-legacy-BMmCiaA9.js → Testing-DGUeGxdc-legacy-Bo3xf4lS.js} +2 -2
  168. package/dist/assets/{Testing-DGUeGxdc-legacy-BMmCiaA9.js.map → Testing-DGUeGxdc-legacy-Bo3xf4lS.js.map} +1 -1
  169. package/dist/assets/{Testing-DzWAcbhL-D9IV0vyX.js → Testing-DzWAcbhL-CORqap_0.js} +2 -2
  170. package/dist/assets/{Testing-DzWAcbhL-D9IV0vyX.js.map → Testing-DzWAcbhL-CORqap_0.js.map} +1 -1
  171. package/dist/assets/{Testing-DzWAcbhL-legacy-ByYDbJ2R.js → Testing-DzWAcbhL-legacy-C_L0YDrv.js} +2 -2
  172. package/dist/assets/{Testing-DzWAcbhL-legacy-ByYDbJ2R.js.map → Testing-DzWAcbhL-legacy-C_L0YDrv.js.map} +1 -1
  173. package/dist/assets/{TitleHeader-legacy-BLb6gLY8.js → TitleHeader-legacy-Dkn0qrYi.js} +2 -2
  174. package/dist/assets/{TitleHeader-legacy-BLb6gLY8.js.map → TitleHeader-legacy-Dkn0qrYi.js.map} +1 -1
  175. package/dist/assets/{TitleHeader-D5FOkV2k.js → TitleHeader-q22P7nGv.js} +2 -2
  176. package/dist/assets/{TitleHeader-D5FOkV2k.js.map → TitleHeader-q22P7nGv.js.map} +1 -1
  177. package/dist/assets/{Trans-D7Lw95-5.js → Trans-CoQWpfjg.js} +2 -2
  178. package/dist/assets/{Trans-D7Lw95-5.js.map → Trans-CoQWpfjg.js.map} +1 -1
  179. package/dist/assets/{Trans-legacy-CpzDXXlm.js → Trans-legacy-CVX9qUZX.js} +2 -2
  180. package/dist/assets/{Trans-legacy-CpzDXXlm.js.map → Trans-legacy-CVX9qUZX.js.map} +1 -1
  181. package/dist/assets/{ValidateOptions-DO60DBsp.js → ValidateOptions-CBV1N5jv.js} +2 -2
  182. package/dist/assets/{ValidateOptions-DO60DBsp.js.map → ValidateOptions-CBV1N5jv.js.map} +1 -1
  183. package/dist/assets/{ValidateOptions-legacy-3q4kbk3m.js → ValidateOptions-legacy-DSqr0GvA.js} +2 -2
  184. package/dist/assets/{ValidateOptions-legacy-3q4kbk3m.js.map → ValidateOptions-legacy-DSqr0GvA.js.map} +1 -1
  185. package/dist/assets/{dist-DR7fC17q.js → dist-BS0nF9v1.js} +2 -2
  186. package/dist/assets/{dist-DR7fC17q.js.map → dist-BS0nF9v1.js.map} +1 -1
  187. package/dist/assets/{dist-legacy-cfZE5xAd.js → dist-legacy-DvNzEKrH.js} +2 -2
  188. package/dist/assets/{dist-legacy-cfZE5xAd.js.map → dist-legacy-DvNzEKrH.js.map} +1 -1
  189. package/dist/assets/{getMapProviderConfig-CioaIqLl.js → getMapProviderConfig-Bzfs0Sdc.js} +3 -3
  190. package/dist/assets/{getMapProviderConfig-CioaIqLl.js.map → getMapProviderConfig-Bzfs0Sdc.js.map} +1 -1
  191. package/dist/assets/{getMapProviderConfig-legacy-Bvhnps7J.js → getMapProviderConfig-legacy-J1T1rgyn.js} +2 -2
  192. package/dist/assets/{getMapProviderConfig-legacy-Bvhnps7J.js.map → getMapProviderConfig-legacy-J1T1rgyn.js.map} +1 -1
  193. package/dist/assets/{index-Bs6_tEDn.js → index-_e6zO9FA.js} +3 -3
  194. package/dist/assets/{index-Bs6_tEDn.js.map → index-_e6zO9FA.js.map} +1 -1
  195. package/dist/assets/{index-legacy-4jEyS75d.js → index-legacy-D77-aBOf.js} +2 -2
  196. package/dist/assets/{index-legacy-4jEyS75d.js.map → index-legacy-D77-aBOf.js.map} +1 -1
  197. package/dist/assets/{index.es-DqsbUu3C.js → index.es-CWTeuLFE.js} +2 -2
  198. package/dist/assets/{index.es-DqsbUu3C.js.map → index.es-CWTeuLFE.js.map} +1 -1
  199. package/dist/assets/{index.es-legacy-D0YewKKM.js → index.es-legacy-C0a6QEDw.js} +2 -2
  200. package/dist/assets/{index.es-legacy-D0YewKKM.js.map → index.es-legacy-C0a6QEDw.js.map} +1 -1
  201. package/dist/assets/{mapbox-jb8Zev6T-C9a-fLxp.js → mapbox-jb8Zev6T-Ddgqj9VI.js} +2 -2
  202. package/dist/assets/{mapbox-jb8Zev6T-C9a-fLxp.js.map → mapbox-jb8Zev6T-Ddgqj9VI.js.map} +1 -1
  203. package/dist/assets/{mapbox-jb8Zev6T-legacy-C5JRCz3k.js → mapbox-jb8Zev6T-legacy-vMWDQC6s.js} +2 -2
  204. package/dist/assets/{mapbox-jb8Zev6T-legacy-C5JRCz3k.js.map → mapbox-jb8Zev6T-legacy-vMWDQC6s.js.map} +1 -1
  205. package/dist/assets/{maplibre-CUYkxr-D-DB5uPmy7.js → maplibre-CUYkxr-D-C7Skcfn8.js} +2 -2
  206. package/dist/assets/{maplibre-CUYkxr-D-DB5uPmy7.js.map → maplibre-CUYkxr-D-C7Skcfn8.js.map} +1 -1
  207. package/dist/assets/{maplibre-CUYkxr-D-legacy-BrYegJJb.js → maplibre-CUYkxr-D-legacy-CuAPk6TP.js} +2 -2
  208. package/dist/assets/{maplibre-CUYkxr-D-legacy-BrYegJJb.js.map → maplibre-CUYkxr-D-legacy-CuAPk6TP.js.map} +1 -1
  209. package/dist/assets/neighborhood-fallback-CizB5oi9.js.map +1 -1
  210. package/dist/assets/neighborhood-fallback-legacy-Bu1BwGpC.js.map +1 -1
  211. package/dist/assets/sdks-BuksrzcW.js +2 -0
  212. package/dist/assets/sdks-BuksrzcW.js.map +1 -0
  213. package/dist/assets/sdks-legacy-CoLf_W4Z.js +2 -0
  214. package/dist/assets/sdks-legacy-CoLf_W4Z.js.map +1 -0
  215. package/dist/assets/{useDemographicsData-C0C4upsm.js → useDemographicsData-B4it1cPj.js} +2 -2
  216. package/dist/assets/{useDemographicsData-C0C4upsm.js.map → useDemographicsData-B4it1cPj.js.map} +1 -1
  217. package/dist/assets/{useDemographicsData-legacy-DPnr3Jmh.js → useDemographicsData-legacy-BYnQNjDv.js} +2 -2
  218. package/dist/assets/{useDemographicsData-legacy-DPnr3Jmh.js.map → useDemographicsData-legacy-BYnQNjDv.js.map} +1 -1
  219. package/dist/assets/{useGeographies-Dsip5TUe.js → useGeographies-h5AWa9mj.js} +2 -2
  220. package/dist/assets/{useGeographies-Dsip5TUe.js.map → useGeographies-h5AWa9mj.js.map} +1 -1
  221. package/dist/assets/{useGeographies-legacy-CZm4sQ-W.js → useGeographies-legacy-D7XUaxgU.js} +2 -2
  222. package/dist/assets/{useGeographies-legacy-CZm4sQ-W.js.map → useGeographies-legacy-D7XUaxgU.js.map} +1 -1
  223. package/dist/assets/{useIsMobile-D1ppstVc.js → useIsMobile-CEgZCKoT.js} +2 -2
  224. package/dist/assets/{useIsMobile-D1ppstVc.js.map → useIsMobile-CEgZCKoT.js.map} +1 -1
  225. package/dist/assets/{useIsMobile-legacy-BCGf3xRg.js → useIsMobile-legacy-BYXlMXeW.js} +2 -2
  226. package/dist/assets/{useIsMobile-legacy-BCGf3xRg.js.map → useIsMobile-legacy-BYXlMXeW.js.map} +1 -1
  227. package/dist/assets/{useLocation-woeqoUC-.js → useLocation-KxuXzpB1.js} +2 -2
  228. package/dist/assets/{useLocation-woeqoUC-.js.map → useLocation-KxuXzpB1.js.map} +1 -1
  229. package/dist/assets/{useLocation-legacy-CrONniQb.js → useLocation-legacy-TYbGg3Qq.js} +2 -2
  230. package/dist/assets/{useLocation-legacy-CrONniQb.js.map → useLocation-legacy-TYbGg3Qq.js.map} +1 -1
  231. package/dist/assets/{useProfiles-BD0axzG_.js → useProfiles-BMZF6PTl.js} +2 -2
  232. package/dist/assets/{useProfiles-BD0axzG_.js.map → useProfiles-BMZF6PTl.js.map} +1 -1
  233. package/dist/assets/{useProfiles-legacy-xMXLwJ8a.js → useProfiles-legacy-CtdD2AM8.js} +2 -2
  234. package/dist/assets/{useProfiles-legacy-xMXLwJ8a.js.map → useProfiles-legacy-CtdD2AM8.js.map} +1 -1
  235. package/dist/assets/{useSchools-Bp4ifAPV.js → useSchools-Dmfxgddk.js} +2 -2
  236. package/dist/assets/{useSchools-Bp4ifAPV.js.map → useSchools-Dmfxgddk.js.map} +1 -1
  237. package/dist/assets/{useSchools-legacy-CBF47OQq.js → useSchools-legacy-CBA1yga4.js} +2 -2
  238. package/dist/assets/{useSchools-legacy-CBF47OQq.js.map → useSchools-legacy-CBA1yga4.js.map} +1 -1
  239. package/dist/assets/{useScores-C3u-1G5Q.js → useScores-BYEwsLLe.js} +2 -2
  240. package/dist/assets/{useScores-C3u-1G5Q.js.map → useScores-BYEwsLLe.js.map} +1 -1
  241. package/dist/assets/{useScores-legacy-DlQbFEJD.js → useScores-legacy-CCbzbNWr.js} +2 -2
  242. package/dist/assets/{useScores-legacy-DlQbFEJD.js.map → useScores-legacy-CCbzbNWr.js.map} +1 -1
  243. package/dist/index.html +2 -2
  244. package/dist/types/tracking/tracker/index.d.ts.map +1 -1
  245. package/dist/types/tracking/tracker/index.js +15 -0
  246. package/dist/types/tracking/tracker/index.js.map +1 -1
  247. package/dist/types/utils/errorTracker/index.d.ts.map +1 -1
  248. package/dist/types/utils/errorTracker/index.js +7 -8
  249. package/dist/types/utils/errorTracker/index.js.map +1 -1
  250. package/package.json +2 -1
  251. package/dist/assets/sdks-BLrYTJCI.js +0 -2
  252. package/dist/assets/sdks-BLrYTJCI.js.map +0 -1
  253. package/dist/assets/sdks-legacy-BKNGokn5.js +0 -2
  254. package/dist/assets/sdks-legacy-BKNGokn5.js.map +0 -1
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalContent-D_By1RQx.js","assets/sdks-BLrYTJCI.js","assets/rolldown-runtime-C_ttsnZz.js","assets/google-maps-vendor-DvfEEdRU.js","assets/getMapProviderConfig-CioaIqLl.js","assets/Tree.es-DVzuYmwJ.js","assets/IconBase.es-CEehl5AX.js","assets/Backpack.es-VkU9yjoN.js","assets/Tote.es-COcEXhV_.js","assets/Train.es-FFDTvKv8.js","assets/Buildings.es-Cy83SPQS.js","assets/GraduationCap.es-Bvo9K-N3.js","assets/MapPin.es-DUGzA8QJ.js","assets/X.es-6bJd6-yU.js","assets/constants-DOpa8YMW-CAHGepUD.js","assets/context-BrD4AniQ-DZ0ZiGRI.js","assets/esm-Be30MpcN-ls4GMpDI.js","assets/useSchools-Bp4ifAPV.js","assets/getMapProviderConfig-Dg2c_6rt.css","assets/Bicycle.es-DPIBL6np.js","assets/Car.es-BZ3jmhfm.js","assets/CaretDown.es-nJe-LNlT.js","assets/CaretLeft.es-DbiCI58w.js","assets/ScoreIcon-t1E2TT1n.js","assets/MagnifyingGlass.es-CEBdL4tD.js","assets/bundle-mjs-orX75hSI.js","assets/index.es-DqsbUu3C.js","assets/Attribution-1Rs_lSaP.js","assets/ValidateOptions-DO60DBsp.js","assets/useScores-C3u-1G5Q.js","assets/useLocation-woeqoUC-.js","assets/useResponsiveBreakpoints-Dq6mGzIW.js","assets/globals-C8w3r3u3.css","assets/LocalDemographics-DJ2-OAQf.js","assets/useDemographicsData-C0C4upsm.js","assets/UsersThree.es-Di-ux4sv.js","assets/dist-DR7fC17q.js","assets/useIsMobile-D1ppstVc.js","assets/ResizeWrapper-C7FI0ut2.js","assets/TitleHeader-D5FOkV2k.js","assets/old-tailwind-BY9c-y5g.css","assets/NeighborhoodHero-CvvE1ltz.js","assets/useGeographies-Dsip5TUe.js","assets/useProfiles-BD0axzG_.js","assets/NeighborhoodMap-CW5YonYt.js","assets/NeighborhoodCharacteristics-CKDqcqBD.js","assets/ScoreCardList-Cpdc2cjx.js","assets/NeighborhoodHighlights-CZPdH88M.js","assets/NoDataContent-C0rYoHx-.js","assets/NeighborhoodDemographics-9bIYm41b.js","assets/NeighborhoodPropertyValueDrivers-BZqsNnYY.js","assets/NeighborhoodMatch-D1Ih_N5y.js","assets/neighborhood-fallback-CizB5oi9.js","assets/NeighborhoodMarketTrends-C9k7JehA.js","assets/HandCoins.es-CC012gfJ.js","assets/NeighborhoodSchools-vdqXmI6x.js","assets/NeighborhoodSchools-tmPY96MM.css","assets/NeighborhoodShowcase-IMXpKRt7.js","assets/Trans-D7Lw95-5.js","assets/NeighborhoodCard-vYnzmXHM.js","assets/NeighborhoodFeatured-CqLcXNVj.js","assets/LeadCapture-C6J4SFYX.js"])))=>i.map(i=>d[i]);
2
- import'data:text/javascript,"assets/index-Bs6_tEDn.js";if(!import.meta.resolve)throw Error("import.meta.resolve not supported")';export function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}import{a as e,i as t,n,r,t as o}from"./rolldown-runtime-C_ttsnZz.js";import{c as i,l as s}from"./google-maps-vendor-DvfEEdRU.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var a=o(e=>{var t=i();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}),c="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l="8.55.0",u=globalThis;function d(e,t,n){const r=n||u,o=r.__SENTRY__=r.__SENTRY__||{},i=o[l]=o["8.55.0"]||{};return i[e]||(i[e]=t())}var h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=["debug","info","warn","error","log","assert","trace"],f={};function g(e){if(!("console"in u))return e();const t=u.console,n={},r=Object.keys(f);r.forEach(e=>{const r=f[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}var m=d("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return h?p.forEach(n=>{t[n]=(...t)=>{e&&g(()=>{u.console[n](`Sentry Logger [${n}]:`,...t)})}}):p.forEach(e=>{t[e]=()=>{}}),t}),v=/\(error: (.*)\)/,y=/captureMessage|captureException/;function b(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let s=n;s<i.length;s++){const e=i[s];if(e.length>1024)continue;const n=v.test(e)?e.replace(v,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(w(t).function||"")&&t.pop();t.reverse(),y.test(w(t).function||"")&&(t.pop(),y.test(w(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||w(t).filename,function:e.function||"?"}))}(o.slice(r))}}function w(e){return e[e.length-1]||{}}var _="<anonymous>";function x(e){try{return e&&"function"==typeof e&&e.name||_}catch(sv){return _}}function E(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(n){return}}}var S={},k={};function O(e,t){S[e]=S[e]||[],S[e].push(t)}function C(e,t){if(!k[e]){k[e]=!0;try{t()}catch(sv){h&&m.error(`Error while instrumenting ${e}`,sv)}}}function P(e,t){const n=e&&S[e];if(n)for(const r of n)try{r(t)}catch(sv){h&&m.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${x(r)}\nError:`,sv)}}var R=null;function L(){R=u.onerror,u.onerror=function(e,t,n,r,o){return P("error",{column:r,error:o,line:n,msg:e,url:t}),!!R&&R.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0}var T=null;function D(){T=u.onunhandledrejection,u.onunhandledrejection=function(e){return P("unhandledrejection",e),!T||T.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function N(){return j(u),u}function j(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.55.0",t[l]=t["8.55.0"]||{}}var A=Object.prototype.toString;function I(e){switch(A.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return K(e,Error)}}function M(e,t){return A.call(e)===`[object ${t}]`}function $(e){return M(e,"ErrorEvent")}function F(e){return M(e,"DOMError")}function H(e){return M(e,"String")}function U(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function q(e){return null===e||U(e)||"object"!=typeof e&&"function"!=typeof e}function B(e){return M(e,"Object")}function z(e){return"undefined"!=typeof Event&&K(e,Event)}function V(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function K(e,t){try{return e instanceof t}catch(Ri){return!1}}function W(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}var G=u;function J(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=3;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=Y(n,u),!("html"===l||i>1&&s+o.length*c+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function Y(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(G.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&H(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}for(const i of["aria-label","type","name","title","alt"]){const e=n.getAttribute(i);e&&r.push(`[${i}="${e}"]`)}return r.join("")}function Q(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function X(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const t=e[r];try{W(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(sv){n.push("[value cannot be serialized]")}}return n.join(t)}function Z(e,t,n=!1){return!!H(e)&&(M(t,"RegExp")?t.test(e):!!H(t)&&(n?e===t:e.includes(t)))}function ee(e,t=[],n=!1){return t.some(t=>Z(e,t,n))}function te(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&re(o,r);try{e[t]=o}catch(sv){h&&m.log(`Failed to replace method "${t}" in object`,e)}}function ne(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){h&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function re(e,t){try{e.prototype=t.prototype=t.prototype||{},ne(e,"__sentry_original__",t)}catch(n){}}function oe(e){return e.__sentry_original__}function ie(e){if(I(e))return{message:e.message,name:e.name,stack:e.stack,...ae(e)};if(z(e)){const t={type:e.type,target:se(e.target),currentTarget:se(e.currentTarget),...ae(e)};return"undefined"!=typeof CustomEvent&&K(e,CustomEvent)&&(t.detail=e.detail),t}return e}function se(e){try{return t=e,"undefined"!=typeof Element&&K(t,Element)?J(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function ae(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ce(e){return le(e,new Map)}function le(e,t){if(function(e){if(!B(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=le(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(le(e,t))}),r}return e}function ue(){return Date.now()/1e3}var de,he=function(){const{performance:e}=u;if(!e||!e.now)return ue;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{const{performance:e}=u;if(!e||!e.now)return void 0;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;(i||a<t)&&(o<=a&&e.timeOrigin)})();function pe(){const e=u,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(Mo){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function fe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ge(e){const{message:t,event_id:n}=e;if(t)return t;const r=fe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function me(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ve(e,t){const n=fe(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function ye(e){if(function(e){try{return e.__sentry_captured__}catch(sv){}}(e))return!0;try{ne(e,"__sentry_captured__",!0)}catch(t){}return!1}function be(e){return new _e(t=>{t(e)})}function we(e){return new _e((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(de||(de={}));var _e=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=de.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(sv){this._reject(sv)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(sv){r(sv)}else e(n)},t=>{if(n)try{e(n(t))}catch(sv){r(sv)}else r(t)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,o;return this.then(e=>{o=!1,r=e,t&&t()},e=>{o=!0,r=e,t&&t()}).then(()=>{o?n(r):e(r)})})}__init(){this._resolve=e=>{this._setResult(de.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(de.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===de.PENDING&&(V(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===de.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===de.RESOLVED&&e[1](this._value),this._state===de.REJECTED&&e[2](this._value),e[0]=!0)})}}};function xe(e){const t=he(),n={sid:pe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ce({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ee(n,e),n}function Ee(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||he(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:pe()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Se(){return pe()}function ke(){return pe().substring(16)}function Oe(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Oe(r[o],t[o],n-1));return r}var Ce="_sentrySpan";function Pe(e,t){t?ne(e,Ce,t):delete e[Ce]}function Re(e){return e[Ce]}var Le=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Se(),spanId:ke()}}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Pe(t,Re(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ee(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Le?[t.getScopeData(),t.getRequestSession()]:B(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Pe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Se()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ue(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Re(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Oe(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:ke(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:pe();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};var Te=class{constructor(e,t){let n,r;n=e||new Le,r=t||new Le,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(sv){throw this._popScope(),sv}return V(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}};function De(){const e=j(N());return e.stack=e.stack||new Te(d("defaultCurrentScope",()=>new Le),d("defaultIsolationScope",()=>new Le))}function Ne(e){return De().withScope(e)}function je(e,t){const n=De();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ae(e){return De().withScope(()=>e(De().getIsolationScope()))}function Ie(e){const t=j(e);return t.acs?t.acs:{withIsolationScope:Ae,withScope:Ne,withSetScope:je,withSetIsolationScope:(e,t)=>Ae(t),getCurrentScope:()=>De().getScope(),getIsolationScope:()=>De().getIsolationScope()}}function Me(){return Ie(N()).getCurrentScope()}function $e(){return Ie(N()).getIsolationScope()}function Fe(){return Me().getClient()}function He(e){const{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return ce({trace_id:t,span_id:n,parent_span_id:r})}function Ue(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(ce(o));return n}var qe=/^sentry-/;function Be(e){const t=function(e){if(!e||!H(e)&&!Array.isArray(e))return;return Array.isArray(e)?e.reduce((e,t)=>{const n=ze(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ze(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(qe)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function ze(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Ve=!1;function Ke(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return ce({parent_span_id:r?t:Je(e).parent_span_id,span_id:r?ke():t,trace_id:n})}function We(e){return"number"==typeof e?Ge(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ge(e.getTime()):he()}function Ge(e){return e>9999999999?e/1e3:e}function Je(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return ce({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:We(o),timestamp:We(s)||void 0,status:Ye(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ue(e)})}return{span_id:t,trace_id:n}}catch(sv){return{}}}function Ye(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Qe(e){return e._sentryRootSpan||e}function Xe(){Ve||(g(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Ve=!0)}var Ze="production";function et(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=ce({environment:n.environment||"production",release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function tt(e,t){const n=t.getPropagationContext();return n.dsc||et(n.traceId,e)}function nt(e){const t=Fe();if(!t)return{};const n=Qe(e),r=n._frozenDsc;if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&Be(i);if(s)return s;const a=et(e.spanContext().traceId,t),c=Je(n),l=c.data||{},u=l["sentry.sample_rate"];null!=u&&(a.sample_rate=`${u}`);const d=l["sentry.source"],h=c.description;return"url"!==d&&h&&(a.transaction=h),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Fe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(a.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n))),t.emit("createDsc",a,n),a}var rt,ot=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function it(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function st(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function at(e){const t="string"==typeof e?function(e){const t=ot.exec(e);if(!t)return void g(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return st({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}(e):st(e);if(t&&function(e){if(!h)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(m.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(m.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var ct=n(()=>{rt=globalThis||self});function lt(e,t=100,n=1/0){try{return dt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ut(e,t=3,n=102400){const r=lt(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?ut(e,t-1,n):r;var o}function dt(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==rt&&t===rt)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(W(t))return"[VueViewModel]";if(B(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${x(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return dt("",l.toJSON(),c-1,r,o)}catch(p){}const u=Array.isArray(t)?[]:{};let d=0;const h=ie(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(d>=r){u[f]="[MaxProperties ~]";break}const e=h[f];u[f]=dt(f,e,c-1,r,o),d++}return s(t),u}function ht(e,t=[]){return[e,t]}function pt(e,t){const[n,r]=e;return[n,[...r,t]]}function ft(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function gt(e){return u.__SENTRY__&&u.__SENTRY__.encodePolyfill?u.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function mt(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[gt(r),e]:r.push("string"==typeof e?gt(e):e)}for(const i of n){const[e,t]=i;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(sv){e=JSON.stringify(lt(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}function vt(e){const t="string"==typeof e.data?gt(e.data):e.data;return[ce({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}ct();var yt,bt,wt,_t={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function xt(e){return _t[e]}function Et(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function St(e,t,n,r){const o=Et(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:it(r)},...o&&{trace:ce({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,ht(s,[[{type:i},e]])}function kt(e,t,n,r=0){return new _e((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);c&&s.id&&null===a&&m.log(`Event processor "${s.id}" dropped event`),V(a)?a.then(t=>kt(e,t,n,r+1).then(o)).then(null,i):kt(e,a,n,r+1).then(o).then(null,i)}})}function Ot(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=ce(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=ce(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=ce(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=ce(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});s&&(e.level=s);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ke(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:nt(t),...e.sdkProcessingMetadata};const n=Je(Qe(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function Ct(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;Pt(e,"extra",n),Pt(e,"tags",r),Pt(e,"user",o),Pt(e,"contexts",i),e.sdkProcessingMetadata=Oe(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function Pt(e,t,n){e[t]=Oe(e[t],n,1)}function Rt(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||pe(),timestamp:t.timestamp||ue()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=Q(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Q(s.value,i));const a=e.request;a&&a.url&&(a.url=Q(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=u._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return wt&&n.length===bt||(bt=n.length,wt=n.reduce((n,r)=>{yt||(yt={});const o=yt[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=i&&i.filename,a=t[r];if(s&&a){n[s]=a,yt[r]=[s,a];break}}}return n},{})),wt}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(sv){}}(c,e.stackParser);const h=function(e,t){if(!t)return e;const n=e?e.clone():new Le;return n.update(t),n}(r,n.captureContext);n.mechanism&&ve(c,n.mechanism);const p=o?o.getEventProcessors():[],f=d("globalScope",()=>new Le).getScopeData();i&&Ct(f,i.getScopeData()),h&&Ct(f,h.getScopeData());const g=[...n.attachments||[],...f.attachments];return g.length&&(n.attachments=g),Ot(c,f),kt([...p,...f.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(sv){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}}))},...e.user&&{user:lt(e.user,t,n)},...e.contexts&&{contexts:lt(e.contexts,t,n)},...e.extra&&{extra:lt(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lt(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=lt(e.contexts.flags,3,n));return r}(e,s,a):e))}function Lt(e){if(e)return function(e){return e instanceof Le||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Tt.includes(e))}(e)?{captureContext:e}:e}var Tt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Dt(e,t){return Me().captureException(e,Lt(t))}function Nt(e,t){return Me().captureEvent(e,t)}function jt(e,t){$e().setContext(e,t)}function At(e){const t=Fe(),n=$e(),r=Me(),{release:o,environment:i=Ze}=t&&t.getOptions()||{},{userAgent:s}=u.navigator||{},a=xe({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&Ee(c,{status:"exited"}),It(),n.setSession(a),r.setSession(a),a}function It(){const e=$e(),t=Me(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Ee(e,n)}(n),Mt(),e.setSession(),t.setSession()}function Mt(){const e=$e(),t=Me(),n=Fe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function $t(e=!1){e?It():Mt()}function Ft(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}var Ht=[];function Ut(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),i=o.findIndex(e=>"Debug"===e.name);if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o}function qt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Bt(e,t,n){if(n[t.name])c&&m.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Ht.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ht.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}c&&m.log(`Integration installed: ${t.name}`)}}var zt=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}},Vt="Not capturing exception because it's already been captured.",Kt=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=at(e.dsn):c&&m.warn("No DSN provided, client will not send events."),this._dsn){const t=Ft(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t]);t&&g(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){const r=pe();if(ye(e))return c&&m.log(Vt),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:pe(),...n},i=U(e)?e:String(e),s=q(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=pe();if(t&&t.originalException&&ye(t.originalException))return c&&m.log(Vt),r;const o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?c&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ee(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):be(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Bt(this,e,this._integrations),t||qt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=St(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=pt(n,vt(o));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=Et(n);return ht({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:it(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;c&&m.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(c&&m.error("Error while sending envelope:",e),e)):(c&&m.error("Transport disabled"),be({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Bt(e,t,n)}),n}(this,e),qt(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Ee(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new _e(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=Me(),r=$e()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Rt(o,e,t,n,this,r).then(e=>(null===e||(e.contexts={trace:He(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tt(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{c&&(e instanceof zt&&"log"===e.logLevel?m.log(e.message):m.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Gt(e),s=Wt(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;c&&m.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(o);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),we(new zt(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d="replay_event"===a?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",d,e),new zt("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(V(e))return e.then(e=>{if(!B(e)&&null!==e)throw new zt(n);return e},e=>{throw new zt(`${t} rejected with ${e}`)});if(!B(e)&&null!==e)throw new zt(n);return e}(function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Wt(n)&&o)return o(n,r);if(Gt(n)){if(n.spans&&s){const t=[];for(const r of n.spans){const n=s(r);n?t.push(n):(Xe(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(i){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",d,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new zt(`${l} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof zt)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new zt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){c&&m.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(c&&m.log("No outcomes to send"));if(!this._dsn)return void(c&&m.log("No dsn provided, will not send outcomes"));c&&m.log("Sending outcomes:",e);const t=(n=e,ht((r=this._options.tunnel&&it(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||ue(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(t)}};function Wt(e){return void 0===e.type}function Gt(e){return"transaction"===e.type}function Jt(e,t){!0===t.debug&&(c?m.enable():g(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Me().update(t.initialScope);const n=new e(t);return function(e){Me().setClient(e)}(n),n.init(),n}function Yt(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return we(new zt("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new _e((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{be(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}function Qt(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[e,t,,,n]=a.split(":",5),i=parseInt(e,10),s=1e3*(isNaN(i)?60:i);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=r+s);else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function Xt(e,t,n=Yt(e.bufferSize||64)){let r={};return{send:function(o){const i=[];if(ft(o,(t,n)=>{const o=xt(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=Zt(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)}),0===i.length)return be({});const s=ht(o[0],i),a=t=>{ft(s,(n,r)=>{const o=Zt(n,r);e.recordDroppedEvent(t,xt(r),o)})};return n.add(()=>t({body:mt(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&c&&m.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Qt(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof zt)return c&&m.error("Skipped sending event because buffer is full."),a("queue_overflow"),be({});throw e})},flush:e=>n.drain(e)}}function Zt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function en(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&tn(e)===tn(t)}(e,r)}function tn(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function nn(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:l})),version:l}),e._metadata=o}var rn,on=100;function sn(e,t){const n=Fe(),r=$e();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=on}=n.getOptions();if(i<=0)return;const s={timestamp:ue(),...e},a=o?g(()=>o(s,t)):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}var an=new WeakMap,cn=()=>({name:"FunctionToString",setupOnce(){rn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=oe(this),n=an.has(Fe())&&void 0!==t?t:this;return rn.apply(n,e)}}catch(sv){}},setup(e){an.set(e,!0)}}),ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],un=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(sv){}return!1}(e))return c&&m.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ge(e)}`),!0;if(function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(sv){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>ee(e,t))}(e,t.ignoreErrors))return c&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ge(e)}`),!0;if(function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e))return c&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ge(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions))return c&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ge(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=dn(e);return!!n&&ee(n,t)}(e,t.denyUrls))return c&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=dn(e);return!n||ee(n,t)}(e,t.allowUrls))return c&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;return!1}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ln],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions()))?null:t});function dn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(sv){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return c&&m.error(`Cannot extract url for event ${ge(e)}`),null}}function hn(e,t,n=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&K(s.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,l;a&&(i.exception.values=(c=pn(e,t,o,s.originalException,r,i.exception.values,a,0),l=n,c.map(e=>(e.value&&(e.value=Q(e.value,l)),e))))}function pn(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(K(r[o],Error)){fn(s,a);const i=e(t,r[o]),l=c.length;gn(i,o,l,a),c=pn(e,t,n,r[o],o,[i,...c],i,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(K(r,Error)){fn(s,a);const l=e(t,r),u=c.length;gn(l,`errors[${i}]`,u,a),c=pn(e,t,n,r,o,[l,...c],l,u)}}),c}function fn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function gn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function mn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vn(){"console"in u&&p.forEach(function(e){e in u.console&&te(u.console,e,function(t){return f[e]=t,function(...t){P("console",{args:t,level:e});const n=f[e];n&&n.apply(u.console,t)}})})}function yn(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var bn=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!_n(e,t)&&!!wn(e,t))))}(e,t)||!!function(e,t){const n=xn(t),r=xn(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!_n(e,t)&&!!wn(e,t)))}(e,t))}(t,e))return c&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function wn(e,t){let n=E(e),r=E(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const e=r[o],t=n[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function _n(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(o){return!1}}function xn(e){return e.exception&&e.exception.values&&e.exception.values[0]}var En=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i=250}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!I(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=I(i)||"string"==typeof i?Q(`${i}`,n):i}if(t&&void 0!==e.cause&&(o.cause=I(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=I(n)?n.toString():n}}return o}catch(r){c&&m.error("Unable to extract extra data from the Error object:",r)}return null}(t.originalException,r,o);if(s){const t={...e.contexts},r=lt(s,n);return B(r)&&(ne(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};function Sn(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var kn=u;function On(){if(!("fetch"in kn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(sv){return!1}}function Cn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Pn(){if("string"==typeof EdgeRuntime)return!0;if(!On())return!1;if(Cn(kn.fetch))return!0;let e=!1;const t=kn.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Cn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){h&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Rn(e,t){const n="fetch";O(n,e),C(n,()=>function(e,t=!1){if(t&&!Pn())return;te(u,"fetch",function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Tn(t),method:Ln(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Tn(t),method:Ln(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*he(),virtualError:r};return e||P("fetch",{...s}),t.apply(u,n).then(async t=>(e?e(t):P("fetch",{...s,endTimestamp:1e3*he(),response:t}),t),e=>{throw P("fetch",{...s,endTimestamp:1e3*he(),error:e}),I(e)&&void 0===e.stack&&(e.stack=r.stack,ne(e,"framesToPop",1)),e})}})}(void 0,t))}function Ln(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Tn(e){return"string"==typeof e?e:e?Ln(e,"url")?e.url:e.toString?e.toString():"":""}var Dn=u;var Nn=u,jn=0;function An(){return jn>0}function In(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(oe(e))return e}catch(sv){return e}const n=function(...n){try{const r=n.map(e=>In(e,t));return e.apply(this,r)}catch(r){throw jn++,setTimeout(()=>{jn--}),function(...e){const t=Ie(N());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(me(e,void 0,void 0),ve(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Dt(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(r){}re(n,e),ne(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(o){}return n}var Mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $n(e,t){const n=Un(e,t),r={type:zn(t),value:Vn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Fn(e,t,n,r){const o=Fe(),i=o&&o.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:ut(t,i)};if(s)return{exception:{values:[$n(e,s)]},extra:a};const c={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Gn(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Un(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Hn(e,t){return{exception:{values:[$n(e,t)]}}}function Un(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&qn.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch(sv){}return[]}var qn=/Minified React error #\d+;/i;function Bn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function zn(e){const t=e&&e.name;return!t&&Bn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Vn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Bn(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Kn(e,t,n,r,o){let i;if($(t)&&t.error)return Hn(e,t.error);if(F(t)||M(t,"DOMException")){const o=t;if("stack"in t)i=Hn(e,t);else{const t=o.name||(F(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=Wn(e,s,n,r),me(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return I(t)?Hn(e,t):B(t)||z(t)?(i=Fn(e,t,n,o),ve(i,{synthetic:!0}),i):(i=Wn(e,t,n,r),me(i,`${t}`,void 0),ve(i,{synthetic:!0}),i)}function Wn(e,t,n,r){const o={};if(r&&n){const r=Un(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),ve(o,{synthetic:!0})}if(U(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Gn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(ie(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Q(r,t);for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ");if(!(e.length>t))return o===n.length?e:Q(e,t)}return""}(e),r=t?"promise rejection":"exception";return $(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(sv){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Jn(e){return[{type:"user_report"},e]}var Yn,Qn,Xn,Zn,er=class extends Kt{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};nn(t,"browser",["browser"],Nn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Nn.document&&Nn.document.addEventListener("visibilitychange",()=>{"hidden"===Nn.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=Kn(e,t,n&&n.syntheticException||void 0,r);return ve(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),be(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Wn(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),be(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Mn&&m.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){return ht({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:it(r)}},[Jn(e)])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}},tr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nr=u;function rr(){if(!nr.document)return;const e=P.bind(null,"dom"),t=or(e,!0);nr.document.addEventListener("click",t,!1),nr.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=nr[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(te(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=or(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(sv){}return t.call(this,n,r,o)}}),te(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(sv){}return e.call(this,t,n,r)}}))})}function or(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(sv){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;ne(n,"_sentryCaptured",!0),r&&!r._sentryId&&ne(r,"_sentryId",pe());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Qn)return!1;try{if(!e.target||e.target._sentryId!==Xn)return!1}catch(sv){}return!0})(n)||(e({event:n,name:o,global:t}),Qn=n.type,Xn=r?r._sentryId:void 0),clearTimeout(Yn),Yn=nr.setTimeout(()=>{Xn=void 0,Qn=void 0},1e3)}}function ir(e){const t="history";O(t,e),C(t,sr)}function sr(){if(!function(){const e=Dn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Dn&&!!Dn.history.pushState&&!!Dn.history.replaceState;return!t&&n}())return;const e=nr.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Zn,t=String(n);Zn=t,P("history",{from:e,to:t})}return e.apply(this,t)}}nr.onpopstate=function(...t){const n=nr.location.href,r=Zn;if(Zn=n,P("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},te(nr.history,"pushState",t),te(nr.history,"replaceState",t)}var ar={};function cr(e){ar[e]=void 0}var lr="__sentry_xhr_v3__";function ur(e){O("xhr",e),C("xhr",dr)}function dr(){if(!nr.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*he(),i=H(n[0])?n[0].toUpperCase():void 0,s=function(e){if(H(e))return e;try{return e.toString()}catch(t){}}(n[1]);if(!i||!s)return e.apply(t,n);t[lr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[lr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(sv){}P("xhr",{endTimestamp:1e3*he(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[lr];return i&&H(r)&&H(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[lr];return r?(void 0!==n[0]&&(r.body=n[0]),P("xhr",{startTimestamp:1e3*he(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function hr(e,t=function(e){const t=ar[e];if(t)return t;let n=nr[e];if(Cn(n))return ar[e]=n.bind(nr);const r=nr.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(sv){tr&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,sv)}return n?ar[e]=n.bind(nr):n}("fetch")){let n=0,r=0;return Xt(e,function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return cr("fetch"),we("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(sv){return cr("fetch"),n-=i,r--,we(sv)}})}function pr(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var fr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,gr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,vr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,br=b(...[[30,e=>{const t=fr.exec(e);if(t){const[,e,n,r]=t;return pr(e,"?",+n,+r)}const n=gr.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=mr.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=wr(n[1]||"?",n[2]);return pr(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=vr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=wr(n,e),pr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),wr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},_r=1024,xr=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";O(t,e),C(t,vn)}(function(e){return function(t){if(Fe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:yn(t.level),message:X(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${X(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}sn(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Fe()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>_r&&(Mn&&m.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=_r),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=J(t,{keyAttrs:i,maxStringLength:s}),o=function(e){if(!G.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(sv){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),sn(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),O("dom",n),C("dom",rr)),t.xhr&&ur(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[lr];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,l={method:i,url:s,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};sn({category:"xhr",data:l,type:"http",level:Sn(a)},u)}}(e)),t.fetch&&Rn(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){sn({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};sn({category:"fetch",data:o,type:"http",level:Sn(o.status_code)},i)}}}(e)),t.history&&ir(function(e){return function(t){if(Fe()!==e)return;let n=t.from,r=t.to;const o=mn(Nn.location.href);let i=n?mn(n):void 0;const s=mn(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),sn({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Fe()===e&&sn({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ge(t)},{event:t})}}(e))}}};var Er=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Sr=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&te(Nn,"setTimeout",kr),t.setInterval&&te(Nn,"setInterval",kr),t.requestAnimationFrame&&te(Nn,"requestAnimationFrame",Or),t.XMLHttpRequest&&"XMLHttpRequest"in Nn&&te(XMLHttpRequest.prototype,"send",Cr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Er).forEach(Pr)}}};function kr(e){return function(...t){const n=t[0];return t[0]=In(n,{mechanism:{data:{function:x(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Or(e){return function(t){return e.apply(this,[In(t,{mechanism:{data:{function:"requestAnimationFrame",handler:x(e)},handled:!1,type:"instrument"}})])}}function Cr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&te(n,e,function(t){const n={mechanism:{data:{function:e,handler:x(t)},handled:!1,type:"instrument"}},r=oe(t);return r&&(n.mechanism.data.handler=x(r)),In(t,n)})}),e.apply(this,t)}}function Pr(e){const t=Nn[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(te(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=In(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:x(r),target:e},handled:!1,type:"instrument"}}))}catch(i){}return t.apply(this,[n,In(r,{mechanism:{data:{function:"addEventListener",handler:x(r),target:e},handled:!1,type:"instrument"}}),o])}}),te(n,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(sv){}return e.call(this,t,n,r)}}))}var Rr=()=>({name:"BrowserSession",setupOnce(){void 0!==Nn.document?(At({ignoreDuration:!0}),$t(),ir(({from:e,to:t})=>{void 0!==e&&e!==t&&(At({ignoreDuration:!0}),$t())})):Mn&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),Lr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";O(t,e),C(t,L)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=H(t)&&t.length>0?t:function(){try{return G.document.location.href}catch(e){return""}}();0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u});return e}(Kn(n,c||o,void 0,r,!1),i,s,a);l.level="error",Nt(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),Tr("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";O(t,e),C(t,D)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const o=function(e){if(q(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),i=q(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Kn(n,o,void 0,r,!0);i.level="error",Nt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),Tr("onunhandledrejection"))}}};function Tr(e){Mn&&m.log(`Global Handler attached: ${e}`)}function Dr(){const e=Fe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var Nr=()=>({name:"HttpContext",preprocessEvent(e){if(!Nn.navigator&&!Nn.location&&!Nn.document)return;const t=e.request&&e.request.url||Nn.location&&Nn.location.href,{referrer:n}=Nn.document||{},{userAgent:r}=Nn.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:o}}}),jr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();hn($n,i.stackParser,i.maxValueLength,n,t,e,r)}}};function Ar(e){const t=[un(),cn(),Sr(),xr(),Lr(),jr(),bn(),Nr()];return!1!==e.autoSessionTracking&&t.push(Rr()),t}function Ir(e={}){const t=function(e={}){const t={defaultIntegrations:Ar(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Nn.SENTRY_RELEASE&&Nn.SENTRY_RELEASE.id?Nn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);var n;if(t.skipBrowserExtensionCheck||!function(){const e=void 0!==Nn.window&&Nn;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Nn.location&&Nn.location.href||"",o=!!n&&Nn===Nn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>r.startsWith(`${e}//`)),i=void 0!==e.nw;return!!n&&!o&&!i}())return Mn&&(On()||m.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")),Jt(er,{...t,stackParser:(n=t.stackParser||br,Array.isArray(n)?b(...n):n),integrations:Ut(t),transport:t.transport||hr});g(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})}var Mr=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!Pn())return;Rn(n=>{if(Fe()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(Ur(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let i,s,a,c;Br()&&([i,a]=$r("Cookie",e),[s,c]=$r("Set-Cookie",n)),Nt(qr({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o}))}}(t,a,r,c,i||s)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in u))return;ur(n=>{if(Fe()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[lr];if(!s)return;const{method:a,request_headers:c}=s;try{!function(e,t,n,r,o){if(Ur(e,t.status,t.responseURL)){let e,a,c;if(Br()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=Hr(e))}catch(i){}try{c=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch(s){}e=r}Nt(qr({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:a,error:o}))}}(t,i,a,c,r||o)}catch(sv){Mn&&m.warn("Error while extracting response event form XHR response",sv)}})}(e,t)}}};function $r(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Hr(t))}catch(o){}return[n,r]}function Fr(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Hr(e){return e.split("; ").reduce((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function Ur(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!en(n,Fe());var r,o}function qr(e){const t=Fe(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Fr(e.responseHeaders)}}};return ve(i,{type:"http.client",handled:!1}),i}function Br(){const e=Fe();return!!e&&Boolean(e.getOptions().sendDefaultPii)}var zr=e(s());function Vr(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(zr.version)&&I(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return Dt(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Kr=o(e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case u:case o:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case f:case a:return e;default:return t}}case r:return t}}}function _(e){return w(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=a,e.Element=n,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=f,e.Portal=r,e.Profiler=s,e.StrictMode=i,e.Suspense=h,e.isAsyncMode=function(e){return _(e)||w(e)===l},e.isConcurrentMode=_,e.isContextConsumer=function(e){return w(e)===c},e.isContextProvider=function(e){return w(e)===a},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return w(e)===d},e.isFragment=function(e){return w(e)===o},e.isLazy=function(e){return w(e)===g},e.isMemo=function(e){return w(e)===f},e.isPortal=function(e){return w(e)===r},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===i},e.isSuspense=function(e){return w(e)===h},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===s||e===i||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},e.typeOf=w}),Wr=o((e,t)=>{t.exports=Kr()}),Gr=o((e,t)=>{var n=Wr(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return n.isMemo(e)?i:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var s=l(n);u&&(s=s.concat(u(n)));for(var f=a(t),g=a(n),m=0;m<s.length;++m){var v=s[m];if(!(o[v]||r&&r[v]||g&&g[v]||f&&f[v])){var y=d(n,v);try{c(t,v,y)}catch(sv){}}}}return t}}),Jr=e(a(),1);function Yr(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}for(var Qr=Yr("LaunchDarklyUnexpectedResponseError"),Xr=Yr("LaunchDarklyInvalidEnvironmentIdError"),Zr=Yr("LaunchDarklyInvalidUserError"),eo=Yr("LaunchDarklyInvalidEventKeyError"),to=Yr("LaunchDarklyInvalidArgumentError"),no=Yr("LaunchDarklyFlagFetchError"),ro={LDUnexpectedResponseError:Qr,LDInvalidEnvironmentIdError:Xr,LDInvalidUserError:Zr,LDInvalidEventKeyError:eo,LDInvalidArgumentError:to,LDInvalidDataError:Yr("LaunchDarklyInvalidDataError"),LDFlagFetchError:no,LDTimeoutError:Yr("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},oo=[],io=[],so=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),ao=0;ao<64;++ao)oo[ao]=so[ao],io[so.charCodeAt(ao)]=ao;function co(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(oo[(o=r)>>18&63]+oo[o>>12&63]+oo[o>>6&63]+oo[63&o]);return i.join("")}io["-".charCodeAt(0)]=62,io["_".charCodeAt(0)]=63;var lo=function(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(co(e,s,s+i>a?a:s+i));return 1===r?(t=e[n-1],o.push(oo[t>>2]+oo[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(oo[t>>10]+oo[t>>4&63]+oo[t<<2&63]+"=")),o.join("")},uo=Array.isArray,ho=Object.keys,po=Object.prototype.hasOwnProperty,fo=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,o,i,s=uo(t),a=uo(n);if(s&&a){if((o=t.length)!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(s!=a)return!1;var c=t instanceof Date,l=n instanceof Date;if(c!=l)return!1;if(c&&l)return t.getTime()==n.getTime();var u=t instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==n.toString();var h=ho(t);if((o=h.length)!==ho(n).length)return!1;for(r=o;0!==r--;)if(!po.call(n,h[r]))return!1;for(r=o;0!==r--;)if(!e(t[i=h[r]],n[i]))return!1;return!0}return t!=t&&n!=n},go=["key","ip","country","email","firstName","lastName","avatar","name"];function mo(e){const t=unescape(encodeURIComponent(e));return lo(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function vo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var yo,bo={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:function(e){return mo(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},btoa:mo,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return fo(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){const t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:vo,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||go.forEach(n=>{const r=e[n];void 0!==r&&"string"!=typeof r&&(t=t||{...e},t[n]=String(r))}),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n},once:function(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}},wo=new Uint8Array(16);function _o(){if(!yo&&!(yo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yo(wo)}var xo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Eo(e){return"string"==typeof e&&xo.test(e)}for(var So,ko,Oo=[],Co=0;Co<256;++Co)Oo.push((Co+256).toString(16).substr(1));function Po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oo[e[t+0]]+Oo[e[t+1]]+Oo[e[t+2]]+Oo[e[t+3]]+"-"+Oo[e[t+4]]+Oo[e[t+5]]+"-"+Oo[e[t+6]]+Oo[e[t+7]]+"-"+Oo[e[t+8]]+Oo[e[t+9]]+"-"+Oo[e[t+10]]+Oo[e[t+11]]+Oo[e[t+12]]+Oo[e[t+13]]+Oo[e[t+14]]+Oo[e[t+15]]).toLowerCase();if(!Eo(n))throw TypeError("Stringified UUID is invalid");return n}var Ro=0,Lo=0;function To(e){if(!Eo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Do(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=To(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=s[a];return o}return Po(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function No(e){return 14+(e+64>>>9<<4)+1}function jo(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ao(e,t,n,r,o,i){return jo((s=jo(jo(t,e),jo(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Io(e,t,n,r,o,i,s){return Ao(t&n|~t&r,e,t,o,i,s)}function Mo(e,t,n,r,o,i,s){return Ao(t&r|n&~r,e,t,o,i,s)}function $o(e,t,n,r,o,i,s){return Ao(t^n^r,e,t,o,i,s)}function Fo(e,t,n,r,o,i,s){return Ao(n^(t|~r),e,t,o,i,s)}var Ho=Do("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[No(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=o,u=i;n=Io(n,r,o,i,e[s],7,-680876936),i=Io(i,n,r,o,e[s+1],12,-389564586),o=Io(o,i,n,r,e[s+2],17,606105819),r=Io(r,o,i,n,e[s+3],22,-1044525330),n=Io(n,r,o,i,e[s+4],7,-176418897),i=Io(i,n,r,o,e[s+5],12,1200080426),o=Io(o,i,n,r,e[s+6],17,-1473231341),r=Io(r,o,i,n,e[s+7],22,-45705983),n=Io(n,r,o,i,e[s+8],7,1770035416),i=Io(i,n,r,o,e[s+9],12,-1958414417),o=Io(o,i,n,r,e[s+10],17,-42063),r=Io(r,o,i,n,e[s+11],22,-1990404162),n=Io(n,r,o,i,e[s+12],7,1804603682),i=Io(i,n,r,o,e[s+13],12,-40341101),o=Io(o,i,n,r,e[s+14],17,-1502002290),n=Mo(n,r=Io(r,o,i,n,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=Mo(i,n,r,o,e[s+6],9,-1069501632),o=Mo(o,i,n,r,e[s+11],14,643717713),r=Mo(r,o,i,n,e[s],20,-373897302),n=Mo(n,r,o,i,e[s+5],5,-701558691),i=Mo(i,n,r,o,e[s+10],9,38016083),o=Mo(o,i,n,r,e[s+15],14,-660478335),r=Mo(r,o,i,n,e[s+4],20,-405537848),n=Mo(n,r,o,i,e[s+9],5,568446438),i=Mo(i,n,r,o,e[s+14],9,-1019803690),o=Mo(o,i,n,r,e[s+3],14,-187363961),r=Mo(r,o,i,n,e[s+8],20,1163531501),n=Mo(n,r,o,i,e[s+13],5,-1444681467),i=Mo(i,n,r,o,e[s+2],9,-51403784),o=Mo(o,i,n,r,e[s+7],14,1735328473),n=$o(n,r=Mo(r,o,i,n,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=$o(i,n,r,o,e[s+8],11,-2022574463),o=$o(o,i,n,r,e[s+11],16,1839030562),r=$o(r,o,i,n,e[s+14],23,-35309556),n=$o(n,r,o,i,e[s+1],4,-1530992060),i=$o(i,n,r,o,e[s+4],11,1272893353),o=$o(o,i,n,r,e[s+7],16,-155497632),r=$o(r,o,i,n,e[s+10],23,-1094730640),n=$o(n,r,o,i,e[s+13],4,681279174),i=$o(i,n,r,o,e[s],11,-358537222),o=$o(o,i,n,r,e[s+3],16,-722521979),r=$o(r,o,i,n,e[s+6],23,76029189),n=$o(n,r,o,i,e[s+9],4,-640364487),i=$o(i,n,r,o,e[s+12],11,-421815835),o=$o(o,i,n,r,e[s+15],16,530742520),n=Fo(n,r=$o(r,o,i,n,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=Fo(i,n,r,o,e[s+7],10,1126891415),o=Fo(o,i,n,r,e[s+14],15,-1416354905),r=Fo(r,o,i,n,e[s+5],21,-57434055),n=Fo(n,r,o,i,e[s+12],6,1700485571),i=Fo(i,n,r,o,e[s+3],10,-1894986606),o=Fo(o,i,n,r,e[s+10],15,-1051523),r=Fo(r,o,i,n,e[s+1],21,-2054922799),n=Fo(n,r,o,i,e[s+8],6,1873313359),i=Fo(i,n,r,o,e[s+15],10,-30611744),o=Fo(o,i,n,r,e[s+6],15,-1560198380),r=Fo(r,o,i,n,e[s+13],21,1309151649),n=Fo(n,r,o,i,e[s+4],6,-145523070),i=Fo(i,n,r,o,e[s+11],10,-1120210379),o=Fo(o,i,n,r,e[s+2],15,718787259),r=Fo(r,o,i,n,e[s+9],21,-343485551),n=jo(n,a),r=jo(r,c),o=jo(o,l),i=jo(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(No(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});function Uo(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function qo(e,t){return e<<t|e>>>32-t}var Bo=Do("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=qo(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var _=Math.floor(w/20),x=qo(g,5)+Uo(_,m,v,y)+b+t[_]+h[w]>>>0;b=y,y=v,v=qo(m,30)>>>0,m=g,g=x}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),zo=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||So,s=void 0!==e.clockseq?e.clockseq:ko;if(null==i||null==s){var a=e.random||(e.rng||_o)();i??(i=So=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),s??(s=ko=16383&(a[6]<<8|a[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Lo+1,u=c-Ro+(l-Lo)/1e4;if(u<0&&void 0===e.clockseq&&(s=s+1&16383),(u<0||c>Ro)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ro=c,Lo=l,ko=s;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var h=c/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=255&h,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var p=0;p<6;++p)o[r+p]=i[p];return t||Po(o)},v3:Ho,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||_o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Po(r)},v5:Bo,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!Eo(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:Eo,stringify:Po,parse:To}),Vo=["debug","info","warn","error","none"],Ko={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],o=!(!e||!e.destination),i=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ";let s=1;if(e&&e.level)for(let l=0;l<Vo.length;l++)Vo[l]===e.level&&(s=l);function a(e,n,s){if(s.length<1)return;let a;const c=o?n+": "+i:i;if(1!==s.length&&t){const e=[...s];e[0]=c+e[0],a=t(...e)}else a=c+s[0];try{r[e](a)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}const c={};for(let l=0;l<Vo.length;l++){const e=Vo[l];if("none"!==e)if(l<s)c[e]=()=>{};else{const t=l;c[e]=function(){a(t,e,arguments)}}}return c},validateLogger:function(e){Vo.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")})}};function Wo(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var Go=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.",Jo={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+Go},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+Go},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+Go},errorFetchingFlags:function(e){return"Error fetching flag settings: "+Wo(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(ro.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+Go},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+Go},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+Wo(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+Wo(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+Go},unrecoverableStreamError:e=>`Error on stream connection ${Wo(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"},{validateLogger:Yo}=Ko,Qo={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=ei(`${e}.id`,t.id,n)),t.version&&(r.version=ei(`${e}.version`,t.version,n)),r}},inspectors:{default:[]},hooks:{default:[]},plugins:{default:[]}},Xo=/^(\w|\.|-)+$/;function Zo(e){return e&&e.replace(/\/+$/,"")}function ei(e,t,n){if("string"==typeof t&&t.match(Xo)){if(!(t.length>64))return t;n.warn(Jo.tagValueTooLong(e))}else n.warn(Jo.invalidTagValue(e))}var ti={baseOptionDefs:Qo,validate:function(e,t,n,r){const o=bo.extend({logger:{default:r}},Qo,n),i={};function s(e){bo.onNextTick(()=>{t&&t.maybeReportError(new ro.LDInvalidArgumentError(e))})}let a=bo.extend({},e||{});return function(e){const t=e;Object.keys(i).forEach(e=>{if(void 0!==t[e]){const n=i[e];r&&r.warn(Jo.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}})}(a),a=function(e){const t=bo.extend({},e);return Object.keys(o).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(a),a=function(e){const t=bo.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";const t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{const a=e[i];if(null!=a){const c=o[i];if(void 0===c)s(Jo.unknownOption(i));else{const o=c.type||n(c.default),l=c.validator;if(l){const n=l(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==o){const e=o.split("|"),r=n(a);e.indexOf(r)<0?"boolean"===o?(t[i]=!!a,s(Jo.wrongOptionTypeBoolean(i,r))):(s(Jo.wrongOptionType(i,o,r)),t[i]=c.default):"number"===r&&void 0!==c.minimum&&a<c.minimum&&(s(Jo.optionBelowMinimum(i,a,c.minimum)),t[i]=c.minimum)}}}}),t.baseUrl=Zo(t.baseUrl),t.streamUrl=Zo(t.streamUrl),t.eventsUrl=Zo(t.eventsUrl),t}(a),Yo(a.logger),a},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}},{getLDUserAgentString:ni}=bo,ri={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||"User-Agent"]=ni(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=ti.getTags(t),o=Object.keys(r);return o.length&&(n["x-launchdarkly-tags"]=o.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}},{v1:oi}=zo,{getLDHeaders:ii,transformHeaders:si}=ri,ai=function(e,t,n){const r=bo.extend({"Content-Type":"application/json"},ii(e,n)),o={sendEvents:(t,o,i)=>{if(!e.httpRequest)return Promise.resolve();const s=JSON.stringify(t),a=i?null:oi();return function t(c){const l=i?r:bo.extend({},r,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":a});return e.httpRequest("POST",o,si(l,n),s).promise.then(e=>{if(e)return e.status>=400&&ro.isHttpErrorRecoverable(e.status)&&c?t(!1):function(e){const t={status:e.status},n=e.header("date");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>c?t(!1):Promise.reject())}(!0).catch(()=>{})}};return o},ci=function e(t,n=[]){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(n.includes(t))throw new Error("Cycle detected");return Array.isArray(t)?`[${t.map(r=>e(r,[...n,t])).map(e=>void 0===e?"null":e).join(",")}]`:`{${Object.keys(t).sort().map(r=>{const o=e(t[r],[...n,t]);if(void 0!==o)return`${JSON.stringify(r)}:${o}`}).filter(e=>void 0!==e).join(",")}}`},{commonBasicLogger:li}=Ko;function ui(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function di(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var hi={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;const n=e.key,r=void 0===e.kind?"user":e.kind,o=ui(r),i="multi"===r||null!=n&&""!==n;if("multi"===r){const t=Object.keys(e).filter(e=>"kind"!==e);return i&&t.every(e=>ui(e))&&t.every(t=>{const n=e[t].key;return null!=n&&""!==n})}return i&&o}return!1},getContextKeys:function(e,t=li()){if(!e)return;const n={},{kind:r,key:o}=e;switch(r){case void 0:n.user=`${o}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${o}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${di(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${di(e[t].key)}`).join(":")}}},{getContextKinds:pi}=hi,fi=function(e){let t={},n={};return{summarizeEvent:function(e){if("feature"===e.kind){const r=ci(e.context);if(!r)return;let o=t[r];o||(t[r]=function(){const e={};let t=0,n=0,r={},o={};return e.summarizeEvent=e=>{if("feature"===e.kind){const i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),s=r[i];let a=o[e.key];a||(a=new Set,o[e.key]=a),function(e){return e.context?pi(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach(e=>a.add(e)),s?s.count=s.count+1:r[i]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let i=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...o[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),i=!1}return i?null:{startDate:t,endDate:n,features:e,kind:"summary"}},e.clearSummary=()=>{t=0,n=0,r={},o={}},e}(),o=t[r],n[r]=e.context),o.summarizeEvent(e)}},getSummaries:function(){const r=t,o=n;return t={},n={},Object.entries(r).map(([t,n])=>{const r=n.getSummary();return r.context=e.filter(o[t]),r})}}};function gi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function mi(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function vi(e){return!e.startsWith("/")}function yi(e,t){const n=vi(e),r=vi(t);if(n&&r)return e===t;if(n){const n=mi(t);return 1===n.length&&e===n[0]}if(r){const n=mi(e);return 1===n.length&&t===n[0]}return e===t}function bi(e){return`/${gi(e)}`}var wi={cloneExcluding:function(e,t){const n=[],r={},o=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:bi(t),source:e,parent:r,visited:[e]})));n.length;){const e=n.pop();if(t.some(t=>yi(t,e.ptr)))o.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>{return{key:n,ptr:(r=e.ptr,o=gi(n),`${r}/${o}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,o}))}else e.parent[e.key]=t}}return{cloned:r,excluded:o.sort()}},compare:yi,literalToReference:bi},{getContextKeys:_i}=hi,xi=function(e,t,n,r=null,o=null,i=null){const s={},a=i||ai(e,0,t),c=bo.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),l=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],o=["key","kind","_meta","anonymous"],i=["name","ip","firstName","lastName","email","avatar","country"],s=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;const{cloned:i,excluded:s}=wi.cloneExcluding(e,((e,t)=>(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!o.some(t=>wi.compare(e,t))))(e,t));return i.key=String(i.key),s.length&&(i._meta||(i._meta={}),i._meta.redactedAttributes=s),i._meta&&(delete i._meta.privateAttributes,0===Object.keys(i._meta).length&&delete i._meta),void 0!==i.anonymous&&(i.anonymous=!!i.anonymous),i};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?s((e=>{const t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of i)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?wi.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>{const n={kind:e.kind},r=Object.keys(e);for(const o of r)if("kind"!==o){const r=s(e[o],t);r&&(n[o]=r)}return n})(e,t):s(e,t),t}(t),u=fi(l),d=t.samplingInterval,h=t.eventCapacity,p=t.flushInterval,f=t.logger;let g,m=[],v=0,y=!1,b=!1;function w(){return 0===d||0===Math.floor(Math.random()*d)}function _(e){m.length<h?(m.push(e),b=!1):(b||(b=!0,f.warn(Jo.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return s.enqueue=function(e){if(y)return;let t=!1,n=!1;var r;if(u.summarizeEvent(e),"feature"===e.kind?w()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>v&&r.debugEventsUntilDate>(new Date).getTime()):t=w(),t&&_(function(e){const t=bo.extend({},e);return"identify"===e.kind||"feature"===e.kind||"custom"===e.kind?t.context=l.filter(e.context):(t.contextKeys=_i(e.context,f),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=bo.extend({},e,{kind:"debug"});t.context=l.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,_(t)}},s.flush=async function(){if(y)return Promise.resolve();const e=m;return u.getSummaries().forEach(t=>{Object.keys(t.features).length&&e.push(t)}),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(m=[],f.debug(Jo.debugPostingEvents(e.length)),a.sendEvents(e,c).then(e=>{e&&(e.serverTime&&(v=e.serverTime),ro.isHttpErrorRecoverable(e.status)||(y=!0),e.status>=400&&bo.onNextTick(()=>{o.maybeReportError(new ro.LDUnexpectedResponseError(Jo.httpErrorMessage(e.status,"event posting","some events were dropped")))}))}))},s.start=function(){const e=()=>{s.flush(),g=setTimeout(e,p)};g=setTimeout(e,p)},s.stop=function(){clearTimeout(g)},s},Ei="ready",Si="initialized",ki="failed",{appendUrlPath:Oi,base64URLEncode:Ci,objectHasOwnProperty:Pi}=bo,{getLDHeaders:Ri,transformHeaders:Li}=ri,{isHttpErrorRecoverable:Ti}=ro,Di=function(e,t,n,r){const o=t.streamUrl,i=t.logger,s={},a=Oi(o,"/eval/"+n),c=t.useReport,l=t.evaluationReasons,u=t.streamReconnectDelay,d=Ri(e,t);let h,p=!1,f=null,g=null,m=null,v=null,y=null,b=0;function w(e){if(e.status&&"number"==typeof e.status&&!Ti(e.status))return E(),i.error(Jo.unrecoverableStreamError(e)),void(g&&(clearTimeout(g),g=null));const t=function(){const e=(t=function(){const e=u*Math.pow(2,b);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return b+=1,e}();p||(i.warn(Jo.streamError(e,t)),p=!0),S(!1),E(),_(t)}function _(e){g||(e?g=setTimeout(x,e):x())}function x(){let r;g=null;let s="";const u={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=v&&(s="h="+v),c?e.eventSourceAllowsReport?(r=a,u.method="REPORT",u.headers["Content-Type"]="application/json",u.body=JSON.stringify(m)):(r=Oi(o,"/ping/"+n),s=""):r=a+"/"+Ci(JSON.stringify(m)),u.headers=Li(u.headers,t),l&&(s=s+(s?"&":"")+"withReasons=true"),r=r+(s?"?":"")+s,E(),i.info(Jo.streamConnecting(r)),h=(new Date).getTime(),f=e.eventSourceFactory(r,u);for(const e in y)Pi(y,e)&&f.addEventListener(e,y[e]);f.onerror=w,f.onopen=()=>{b=0}}}function E(){f&&(i.info(Jo.streamClosing()),f.close(),f=null)}function S(e){h&&r&&r.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return s.connect=function(e,t,n){m=e,v=t,y={};for(const r in n||{})y[r]=function(e){p=!1,S(!0),n[r]&&n[r](e)};_()},s.disconnect=function(){clearTimeout(g),g=null,E()},s.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},s},{transformHeaders:Ni,getLDHeaders:ji}=ri,Ai="application/json",Ii=function(e,t,n){const r=t.baseUrl,o=t.useReport,i=t.evaluationReasons,s=t.logger,a={},c={};function l(n,r){if(!e.httpRequest)return new Promise((e,t)=>{t(new ro.LDFlagFetchError(Jo.httpUnavailable()))});const o=r?"REPORT":"GET",i=ji(e,t);r&&(i["Content-Type"]=Ai);let s=c[n];s||(s=function(e){let t,n,r,o;const i={addPromise:(i,s)=>{t=i,n&&n(),n=s,i.then(n=>{t===i&&(r(n),e&&e())},n=>{t===i&&(o(n),e&&e())})}};return i.resultPromise=new Promise((e,t)=>{r=e,o=t}),i}(()=>{delete c[n]}),c[n]=s);const a=e.httpRequest(o,n,Ni(i,t),r),l=a.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===Ai)return JSON.parse(e.body);{const t=Jo.invalidContentType(e.header("content-type")||"");return Promise.reject(new ro.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new ro.LDInvalidEnvironmentIdError(Jo.environmentNotFound()):new ro.LDFlagFetchError(Jo.errorFetchingFlags(e.statusText||String(e.status)))}(e))},e=>Promise.reject(new ro.LDFlagFetchError(Jo.networkError(e))));return s.addPromise(l,()=>{a.cancel&&a.cancel()}),s.resultPromise}return a.fetchJSON=function(e){return l(bo.appendUrlPath(r,e),null)},a.fetchFlagSettings=function(e,t){let a,c,u,d="";return o?(c=[r,"/sdk/evalx/",n,"/context"].join(""),u=JSON.stringify(e)):(a=bo.base64URLEncode(JSON.stringify(e)),c=[r,"/sdk/evalx/",n,"/contexts/",a].join("")),t&&(d="h="+t),i&&(d=d+(d?"&":"")+"withReasons=true"),c=c+(d?"?":"")+d,s.debug(Jo.debugPolling(c)),l(c,u)},a},{v1:Mi}=zo,{getContextKinds:$i}=hi,Fi=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then(o=>{if(o)return r.key=o,r;{const o=Mi();return r.key=o,function(n,r){return e.set(t(r),n)}(o,n).then(()=>r)}}):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new ro.LDInvalidUserError(Jo.contextNotSpecified()));const t=bo.clone(e);if("multi"===e.kind){const e=$i(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}return n(e.kind,t)}},{v1:Hi}=zo,{baseOptionDefs:Ui}=ti,{appendUrlPath:qi}=bo,Bi=function(e){const t={diagnosticId:Hi()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},zi=function(e){let t,n,r,o;function i(e){t=e,n=0,r=0,o=[]}return i(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:o}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};o.push(r)},reset:i}},Vi=function(e,t,n,r,o,i,s){const a=!!e.diagnosticUseCombinedEvent,c="ld:"+o+":$diagnostics",l=qi(i.eventsUrl,"/events/diagnostic/"+o),u=i.diagnosticRecordingInterval,d=n;let h,p,f=!!i.streaming;const g={};function m(){return{sdk:b(),configuration:{customBaseURI:i.baseUrl!==Ui.baseUrl.default,customStreamURI:i.streamUrl!==Ui.streamUrl.default,customEventsURI:i.eventsUrl!==Ui.eventsUrl.default,eventsCapacity:i.eventCapacity,eventsFlushIntervalMillis:i.flushInterval,reconnectTimeMillis:i.streamReconnectDelay,streamingDisabled:!f,allAttributesPrivate:!!i.allAttributesPrivate,diagnosticRecordingIntervalMillis:i.diagnosticRecordingInterval,usingSecureMode:!!i.hash,bootstrapMode:!!i.bootstrap,fetchGoalsDisabled:!i.fetchGoals,sendEventsOnlyForVariation:!!i.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function v(e){i.logger&&i.logger.debug(Jo.debugPostingDiagnosticEvent(e)),r.sendEvents(e,l,!0).then(()=>{}).catch(()=>{})}function y(){v(function(){const e=(new Date).getTime();let t={kind:a?"diagnostic-combined":"diagnostic",id:s,creationDate:e,...d.getProps()};return a&&(t={...t,...m()}),d.reset(e),t}()),p=setTimeout(y,u),h=(new Date).getTime(),a&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(c,JSON.stringify(e))}}()}function b(){const t={...e.diagnosticSdkData};return i.wrapperName&&(t.wrapperName=i.wrapperName),i.wrapperVersion&&(t.wrapperVersion=i.wrapperVersion),t}return g.start=()=>{a?function(e){if(!t.isEnabled())return e(!1);t.get(c).then(t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),h=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){const e=(h||0)+u,t=(new Date).getTime();t>=e?y():p=setTimeout(y,e-t)}else 0===Math.floor(4*Math.random())?y():p=setTimeout(y,u)}):(v({kind:"diagnostic-init",id:s,creationDate:d.getProps().dataSinceDate,...m()}),p=setTimeout(y,u))},g.stop=()=>{p&&clearTimeout(p)},g.setStreaming=e=>{f=e},g},{onNextTick:Ki}=bo,Wi={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(Wi);var Gi={InspectorTypes:Wi,InspectorManager:function(e,t){const n={},r={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},o={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},i=e&&e.map(e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,synchronous:e.synchronous,method:(...o)=>{try{e.method(...o)}catch{n||(n=!0,t.warn(Jo.inspectorMethodError(r.type,r.name)))}}};return r}(e,t));return i&&i.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(o,e.type)&&e.synchronous?o[e.type].push(e):t.warn(Jo.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]&&r[e].length||o[e]&&o[e].length,n.onFlagUsed=(e,t,n)=>{const i=Wi.flagUsed;o[i].length&&o[i].forEach(r=>r.method(e,t,n)),r[i].length&&Ki(()=>{r[i].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{const t=Wi.flagDetailsChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{const n=Wi.flagDetailChanged;o[n].length&&o[n].forEach(n=>n.method(e,t)),r[n].length&&Ki(()=>{r[n].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{const t=Wi.clientIdentityChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n}},{LDTimeoutError:Ji}=ro,Yi="unknown hook";function Qi(e,t,n,r,o){try{return r()}catch(r){return e?.error(`An error was encountered in "${t}" of the "${n}" hook: ${r}`),o}}function Xi(e,t){try{return t.getMetadata().name||Yi}catch{return e.error("Exception thrown getting metadata for hook. Unable to get hook name."),Yi}}var Zi="unknown plugin";function es(e,t){try{return t.getMetadata().name||Zi}catch(t){return e.error("Exception thrown getting metadata for plugin. Unable to get plugin name."),Zi}}var ts={getPluginHooks:function(e,t,n){const r=[];return n.forEach(n=>{try{const o=n.getHooks?.(t);void 0===o?e.error(`Plugin ${es(e,n)} returned undefined from getHooks.`):o&&o.length>0&&r.push(...o)}catch(t){e.error(`Exception thrown getting hooks for plugin ${es(e,n)}. Unable to get hooks.`)}}),r},registerPlugins:function(e,t,n,r){r.forEach(r=>{try{r.register(n,t)}catch(t){e.error(`Exception thrown registering plugin ${es(e,r)}.`)}})},createPluginEnvironment:function(e,t,n){const r={};e.userAgent&&(r.name=e.userAgent),e.version&&(r.version=e.version),n.wrapperName&&(r.wrapperName=n.wrapperName),n.wrapperVersion&&(r.wrapperVersion=n.wrapperVersion);const o={};n.application&&(n.application.name&&(o.name=n.application.name),n.application.version&&(o.version=n.application.version));const i={sdk:r,clientSideId:t};return Object.keys(o).length>0&&(i.application=o),i}},{commonBasicLogger:ns}=Ko,{checkContext:rs,getContextKeys:os}=hi,{InspectorTypes:is,InspectorManager:ss}=Gi,{getPluginHooks:as,registerPlugins:cs,createPluginEnvironment:ls}=ts,us="change",ds="internal-change",hs={initialize:function(e,t,n,r,o){const i=n&&n.logger?n.logger:o&&o.logger&&o.logger.default||ns("warn"),s=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let o=0;o<n[e].length;o++)n[e][o].handler===t&&n[e][o].context===r&&(n[e]=n[e].slice(0,o).concat(n[e].slice(o+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let n=0;n<t.length;n++)t[n].handler.apply(t[n].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(i),a=function(e){let t=!1,n=!1,r=null,o=null;const i=new Promise(t=>{const n=()=>{e.off(Ei,n),t()};e.on(Ei,n)}).catch(()=>{});return{getInitializationPromise:()=>o||(t?Promise.resolve():n?Promise.reject(r):(o=new Promise((t,n)=>{const r=()=>{e.off(Si,r),t()},o=t=>{e.off(ki,o),n(t)};e.on(Si,r),e.on(ki,o)}),o)),getReadyPromise:()=>i,signalSuccess:()=>{t||n||(t=!0,e.emit(Si),e.emit(Ei))},signalFailure:o=>{t||n||(n=!0,r=o,e.emit(ki,o),e.emit(Ei)),e.maybeReportError(o)}}}(s),c=ti.validate(n,s,o,i),l=ss(c.inspectors,i),u=c.sendEvents;let d=e,h=c.hash;const p=[...c.plugins],f=ls(r,e,c),g=as(i,f,p),m=function(e,t){const n=t?[...t]:[];return{withEvaluation:function(t,r,o,i){if(0===n.length)return i();const s=[...n],a={flagKey:t,context:r,defaultValue:o},c=function(e,t,n){return t.map(t=>Qi(e,"beforeEvaluation",Xi(e,t),()=>t?.beforeEvaluation?.(n,{})??{},{}))}(e,s,a),l=i();return function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterEvaluation",Xi(e,s),()=>s?.afterEvaluation?.(n,a,o)??{},{})}}(e,s,a,c,l),l},identify:function(t,r){const o=[...n],i={context:t,timeout:r},s=function(e,t,n){return t.map(t=>Qi(e,"beforeIdentify",Xi(e,t),()=>t?.beforeIdentify?.(n,{})??{},{}))}(e,o,i);return t=>{!function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterIdentify",Xi(e,s),()=>s?.afterIdentify?.(n,a,o)??{},{})}}(e,o,i,s,t)}},addHook:function(e){n.push(e)},afterTrack:function(t){0!==n.length&&function(e,t,n){for(let r=t.length-1;r>=0;r-=1){const o=t[r];Qi(e,"afterTrack",Xi(e,o),()=>o?.afterTrack?.(n),void 0)}}(e,[...n],t)}}}(i,[...c.hooks,...g]),v=function(e,t){const n={};let r=!1;const o=e=>{r||(r=!0,t.warn(Jo.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise(n=>{e?e.get(t).then(n).catch(e=>{o(e),n(void 0)}):n(void 0)}),n.set=(t,n)=>new Promise(r=>{e?e.set(t,n).then(()=>r(!0)).catch(e=>{o(e),r(!1)}):r(!1)}),n.clear=t=>new Promise(n=>{e?e.clear(t).then(()=>n(!0)).catch(e=>{o(e),n(!1)}):n(!1)}),n}(r.localStorage,i),y=ai(r,0,c),b=c.sendEvents&&!c.diagnosticOptOut,w=b?Bi(d):null,_=b?zi((new Date).getTime()):null,x=b?Vi(r,v,_,y,d,c,w):null,E=Di(r,c,d,_),S=c.eventProcessor||xi(r,c,d,_,s,y),k=Ii(r,c,d);let O,C,P,R={},L=c.streaming,T=!1,D=!1,N=!0;const j=c.stateProvider,A=function(e,t){const n={};let r;return n.setContext=function(e){r=bo.sanitizeContext(e),r&&t&&t(bo.clone(r))},n.getContext=function(){return r?bo.clone(r):null},e&&n.setContext(e),n}(null,function(e){(function(e){j||e&&$({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),l.hasListeners(is.clientIdentityChanged)&&l.onIdentityChanged(A.getContext())}),I=new Fi(v),M=v.isEnabled()?function(e,t,n,r){const o={};function i(){let e="";const o=r.getContext();return o&&(e=n||bo.btoa(JSON.stringify(o))),"ld:"+t+":"+e}return o.loadFlags=()=>e.get(i()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=bo.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return o.clearFlags().then(()=>null)}}),o.saveFlags=t=>{const n=bo.extend({},t,{$schema:1});return e.set(i(),JSON.stringify(n))},o.clearFlags=()=>e.clear(i()),o}(v,d,h,A):null;function $(e){d&&(j&&j.enqueueEvent&&j.enqueueEvent(e)||(e.context?(N=!1,!u||D||r.isDoNotTrack()||(i.debug(Jo.debugEnqueueingEvent(e.kind)),S.enqueue(e))):N&&(i.warn(Jo.eventWithoutContext()),N=!1)))}function F(e,t){l.hasListeners(is.flagDetailChanged)&&l.onFlagChanged(e.key,z(t))}function H(){l.hasListeners(is.flagDetailsChanged)&&l.onFlags(Object.entries(R).map(([e,t])=>({key:e,detail:z(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function U(e,t,n,r){const o=A.getContext(),i=new Date,s={kind:"feature",key:e,context:o,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:i.getTime()},a=R[e];a&&(s.version=a.flagVersion?a.flagVersion:a.version,s.trackEvents=a.trackEvents,s.debugEventsUntilDate=a.debugEventsUntilDate),(r||a&&a.trackReason)&&t&&(s.reason=t.reason),$(s)}function q(e){return rs(e,!1)?Promise.resolve(e):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}function B(e,t,n,r,o,i){let s,a;return R&&bo.objectHasOwnProperty(R,e)&&R[e]&&!R[e].deleted?(a=R[e],s=z(a),null!==a.value&&void 0!==a.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},n&&(o||a?.prerequisites?.forEach(e=>{B(e,void 0,n,!1,!1,!1)}),U(e,s,t,r)),!o&&i&&function(e,t){l.hasListeners(is.flagUsed)&&l.onFlagUsed(e,t,A.getContext())}(e,s),s}function z(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function V(){if(C=!0,!A.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void s.maybeReportError(new ro.LDInvalidDataError(Jo.invalidData()))}};E.connect(A.getContext(),h,{ping:function(){i.debug(Jo.debugStreamPing());const e=A.getContext();k.fetchFlagSettings(e,h).then(t=>{bo.deepEquals(e,A.getContext())&&W(t||{})}).catch(e=>{s.maybeReportError(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})},put:function(t){const n=e(t.data);n&&(i.debug(Jo.debugStreamPut()),W(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=R[n.key];if(!r||!r.version||!n.version||r.version<n.version){i.debug(Jo.debugStreamPatch(n.key));const e={},t=bo.extend({},n);delete t.key,R[n.key]=t;const o=z(t);e[n.key]=r?{previous:r.value,current:o}:{current:o},F(n,t),G(e)}else i.debug(Jo.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!R[n.key]||R[n.key].version<n.version){i.debug(Jo.debugStreamDelete(n.key));const e={};R[n.key]&&!R[n.key].deleted&&(e[n.key]={previous:R[n.key].value}),R[n.key]={version:n.version,deleted:!0},F(n,R[n.key]),G(e)}else i.debug(Jo.debugStreamDeleteIgnored(n.key))}})}function K(){C&&(E.disconnect(),C=!1)}function W(e){const t={};if(!e)return Promise.resolve();for(const n in R)bo.objectHasOwnProperty(R,n)&&R[n]&&(e[n]&&!bo.deepEquals(e[n].value,R[n].value)?t[n]={previous:R[n].value,current:z(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:R[n].value}));for(const n in e)bo.objectHasOwnProperty(e,n)&&e[n]&&(!R[n]||R[n].deleted)&&(t[n]={current:z(e[n])});return R={...e},H(),G(t).catch(()=>{})}function G(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach(t=>{const r=e[t].current,o=r?r.value:void 0,i=e[t].previous;s.emit(us+":"+t,o,i),n[t]=r?{current:o,previous:i}:{previous:i}}),s.emit(us,n),s.emit(ds,R),c.sendEventsOnlyForVariation||j||t.forEach(t=>{U(t,e[t].current)})}return O&&M?M.saveFlags(R):Promise.resolve()}function J(){const e=L||P&&void 0===L;e&&!C?V():!e&&C&&K(),x&&x.setStreaming(e)}function Y(e){return e===us||e.substr(0,7)===us+":"}if("string"==typeof c.bootstrap&&"LOCALSTORAGE"===c.bootstrap.toUpperCase()&&(M?O=!0:i.warn(Jo.localStorageUnavailable())),"object"==typeof c.bootstrap&&(R=function(e){const t=Object.keys(e),n="$flagsState",r="$valid",o=e[n];!o&&t.length&&i.warn(Jo.bootstrapOldFormat()),!1===e[r]&&i.warn(Jo.bootstrapInvalid());const s={};return t.forEach(t=>{if(t!==n&&t!==r){let n={value:e[t]};o&&o[t]?n=bo.extend(n,o[t]):n.version=0,s[t]=n}}),s}(c.bootstrap)),j){const e=j.getInitialState();e?Q(e):j.on("init",Q),j.on("update",function(e){e.context&&A.setContext(e.context),e.flags&&W(e.flags)})}else(function(){if(!e)return Promise.reject(new ro.LDInvalidEnvironmentIdError(Jo.environmentNotSpecified()));let n;return I.processContext(t).then(q).then(e=>(n=bo.once(m.identify(e,void 0)),e)).then(e=>(n?.({status:"completed"}),A.setContext(e),"object"==typeof c.bootstrap?X():O?M.loadFlags().then(e=>null==e?(R={},k.fetchFlagSettings(A.getContext(),h).then(e=>W(e||{})).then(X).catch(e=>{Z(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})):(R=e,bo.onNextTick(X),k.fetchFlagSettings(A.getContext(),h).then(e=>W(e)).catch(e=>s.maybeReportError(e)))):k.fetchFlagSettings(A.getContext(),h).then(e=>{R=e||{},H(),X()}).catch(e=>{R={},Z(e)}))).catch(e=>{throw n?.({status:"error"}),e})})().catch(Z);function Q(e){d=e.environment,A.setContext(e.context),R={...e.flags},bo.onNextTick(X)}function X(){i.info(Jo.clientInitialized()),T=!0,J(),a.signalSuccess()}function Z(e){a.signalFailure(e)}const ee={waitForInitialization:function(e=void 0){if(null!=e){if("number"==typeof e)return function(e){e>5&&i.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");const t=a.getInitializationPromise(),n=function(e,t){return new Promise((n,r)=>{setTimeout(()=>{r(new Ji(`${t} timed out after ${e} seconds.`))},1e3*e)})}(e,"waitForInitialization");return Promise.race([n,t]).catch(e=>{throw e instanceof ro.LDTimeoutError&&i.error(`waitForInitialization error: ${e}`),e})}(e);i.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return i.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),a.getInitializationPromise()},waitUntilReady:()=>a.getReadyPromise(),identify:function(e,t,n){if(D)return bo.wrapPromiseCallback(Promise.resolve({}),n);if(j)return i.warn(Jo.identifyDisabled()),bo.wrapPromiseCallback(Promise.resolve(bo.transformVersionedValuesToValues(R)),n);let r;const o=O&&M?M.clearFlags():Promise.resolve();return bo.wrapPromiseCallback(o.then(()=>I.processContext(e)).then(q).then(e=>(r=bo.once(m.identify(e,void 0)),e)).then(e=>k.fetchFlagSettings(e,t).then(n=>{const r=bo.transformVersionedValuesToValues(n);return A.setContext(e),h=t,n?W(n).then(()=>r):r})).then(e=>(r?.({status:"completed"}),C&&V(),e)).catch(e=>(r?.({status:"error"}),s.maybeReportError(e),Promise.reject(e))),n)},getContext:function(){return A.getContext()},variation:function(e,t){const{value:n}=m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!1,!1,!0));return n},variationDetail:function(e,t){return m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!0,!1,!0))},track:function(e,t,n){if("string"!=typeof e)return void s.maybeReportError(new ro.LDInvalidEventKeyError(Jo.unknownCustomEventKey(e)));void 0!==n&&"number"!=typeof n&&i.warn(Jo.invalidMetricValue(typeof n)),r.customEventFilter&&!r.customEventFilter(e)&&i.warn(Jo.unknownCustomEventKey(e));const o=A.getContext(),a={kind:"custom",key:e,context:o,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};o&&o.anonymous&&(a.contextKind=o.anonymous?"anonymousUser":"user"),null!=t&&(a.data=t),null!=n&&(a.metricValue=n),$(a),m.afterTrack({context:o,key:e,data:t,metricValue:n})},on:function(e,t,n){Y(e)?(P=!0,T&&J(),s.on(e,t,n)):s.on(...arguments)},off:function(e){if(s.off(...arguments),Y(e)){let e=!1;s.getEvents().forEach(t=>{Y(t)&&s.getEventListenerCount(t)>0&&(e=!0)}),e||(P=!1,C&&void 0===L&&K())}},setStreaming:function(e){const t=null===e?void 0:e;t!==L&&(L=t,J())},flush:function(e){return bo.wrapPromiseCallback(u?S.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!R)return e;for(const t in R)bo.objectHasOwnProperty(R,t)&&!R[t].deleted&&(e[t]=B(t,null,!c.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(D)return bo.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{D=!0,R={}},n=Promise.resolve().then(()=>{if(K(),x&&x.stop(),u)return S.stop(),S.flush()}).then(t).catch(t);return bo.wrapPromiseCallback(n,e)},addHook:function(e){m.addHook(e)}};return cs(i,f,ee,p),{client:ee,options:c,emitter:s,ident:A,logger:i,requestor:k,start:function(){u&&(x&&x.start(),S.start())},enqueueEvent:$,getFlagsInternal:function(){return R},getEnvironmentId:()=>d,internalChangeEventName:ds}},commonBasicLogger:ns,errors:ro,messages:Jo,utils:bo,getContextKeys:os},ps=hs.initialize,fs=hs.errors;function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ys=hs.commonBasicLogger,bs={promise:Promise.resolve({status:200,header:function(){return null},body:null})};var ws=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function _s(e,t,n,r){var o,i,s=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":i=t,o=new RegExp("^"+ws(e.url)+"/?$");break;case"canonical":i=s,o=new RegExp("^"+ws(e.url)+"/?$");break;case"substring":i=s,o=new RegExp(".*"+ws(e.substring)+".*$");break;case"regex":i=s,o=new RegExp(e.pattern);break;default:return!1}return o.test(i)}function xs(e,t){for(var n={},r=null,o=[],i=0;i<e.length;i++)for(var s=e[i],a=s.urls||[],c=0;c<a.length;c++)if(_s(a[c],window.location.href,window.location.search,window.location.hash)){"pageview"===s.kind?t("pageview",s):(o.push(s),t("click_pageview",s));break}return o.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var o=e.target,i=t[r],s=i.selector,a=document.querySelectorAll(s);o&&a.length>0;){for(var c=0;c<a.length;c++)o===a[c]&&n.push(i);o=o.parentNode}return n}(e,o),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}var Es="goalsReady",Ss={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,o,i){var s=n.synchronousFlush&!r;return n.synchronousFlush=!1,function(e,t,n,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return bs;var i,s=new window.XMLHttpRequest;for(var a in s.open(e,t,!o),n||{})Object.prototype.hasOwnProperty.call(n,a)&&s.setRequestHeader(a,n[a]);if(o){try{s.send(r)}catch(e){}return bs}return{promise:new Promise(function(e,t){s.addEventListener("load",function(){i||e({status:s.status,header:function(e){return s.getResponseHeader(e)},body:s.responseText})}),s.addEventListener("error",function(){i||t(new Error)}),s.send(r)}),cancel:function(){i=!0,s.abort()}}}(e,t,o,i,s)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var o,i=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise(function(t){t(window.localStorage.getItem(e))})},set:function(e,t){return new Promise(function(n){window.localStorage.setItem(e,t),n()})},clear:function(e){return new Promise(function(t){window.localStorage.removeItem(e),t()})}})}catch(e){n.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var s=3e5;n.eventSourceFactory=function(e,t){var n=vs(vs({},{heartbeatTimeout:s,silentTimeout:s,skipDefaultHeaders:!0}),t);return new o(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent="JSClient",n.version="3.8.1",n.diagnosticSdkData={name:"js-client-sdk",version:"3.8.1"},n.diagnosticPlatformData={name:"JS"},n.diagnosticUseCombinedEvent=!0,n}(n),o=ps(e,t,n,r,Ss),i=o.client,s=o.options,a=o.emitter,c=new Promise(function(e){var t=a.on(Es,function(){a.off(Es,t),e()})});i.waitUntilGoalsReady=function(){return c},s.fetchGoals?function(e,t){var n,r;function o(){r&&r.dispose(),n&&n.length&&(r=xs(n,i))}function i(t,n){var r=e.ident.getContext(),o={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return"click"===t&&(o.selector=n.selector),e.enqueueEvent(o)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then(function(e){e&&e.length>0&&(r=xs(n=e,i),function(e,t){var n,r=window.location.href;function o(){(n=window.location.href)!==r&&(r=n,t())}(function e(t,n){t(),setTimeout(function(){e(t,n)},n)})(o,300),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o)}(0,o)),t()}).catch(function(n){e.emitter.maybeReportError(new fs.LDUnexpectedResponseError((n&&n.message,n.message))),t()})}(o,function(){return a.emit(Es)}):a.emit(Es),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var l=function(){r.synchronousFlush=!0,i.flush().catch(function(){}),r.synchronousFlush=!1};return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&l()}),window.addEventListener("pagehide",l),i}var Os=function(e){return ys(vs({destination:console.log},e))},Cs=o((e,t)=>{ct();var n="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",f="["+i+"]",g="["+h+"]",m="["+s+a+"]",v="\\d+",y="["+c+"]",b="["+l+"]",w="[^"+i+h+v+c+l+u+"]",_="\\ud83c[\\udffb-\\udfff]",x="[^"+i+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",k="["+u+"]",O="\\u200d",C="(?:"+b+"|"+w+")",P="(?:"+k+"|"+w+")",R="(?:['’](?:d|ll|m|re|s|t|ve))?",L="(?:['’](?:D|LL|M|RE|S|T|VE))?",T="(?:"+m+"|"+_+")"+"?",D="["+d+"]?",N=D+T+("(?:"+O+"(?:"+[x,E,S].join("|")+")"+D+T+")*"),j="(?:"+[y,E,S].join("|")+")"+N,A="(?:"+[x+m+"?",m,E,S,f].join("|")+")",I=RegExp(p,"g"),M=RegExp(m,"g"),$=RegExp(_+"(?="+_+")|"+A+N,"g"),F=RegExp([k+"?"+b+"+"+R+"(?="+[g,k,"$"].join("|")+")",P+"+"+L+"(?="+[g,k+C,"$"].join("|")+")",k+"?"+C+"+"+R,k+"+"+L,v,j].join("|"),"g"),H=RegExp("["+O+i+s+a+d+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q="object"==typeof rt&&rt&&rt.Object===Object&&rt,B="object"==typeof self&&self&&self.Object===Object&&self,z=q||B||Function("return this")();var V,K=(V={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==V?void 0:V[e]});function W(e){return H.test(e)}function G(e){return W(e)?function(e){return e.match($)||[]}(e):function(e){return e.split("")}(e)}var J=Object.prototype.toString,Y=z.Symbol,Q=Y?Y.prototype:void 0,X=Q?Q.toString:void 0;function Z(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&J.call(e)==n}(e))return X?X.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ee(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function te(e){return null==e?"":Z(e)}var ne,re=(ne=function(e,t,n){return t=t.toLowerCase(),e+(n?ie(te(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=te(e),void 0===(t=n?void 0:t)?function(e){return U.test(e)}(e)?function(e){return e.match(F)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=te(e))&&e.replace(o,K).replace(M,"")}(e).replace(I,"")),ne,"")});var oe,ie=(oe="toUpperCase",function(e){var t=W(e=te(e))?G(e):void 0,n=t?t[0]:e.charAt(0),r=t?ee(t,1).join(""):e.slice(1);return n[oe]()+r});t.exports=re}),Ps=e(Cs()),Rs=(Gr(),(0,zr.createContext)({flags:{},flagKeyMap:{},ldClient:void 0})),{Provider:Ls,Consumer:Ts}=Rs,Ds={useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0,reactContext:Rs},Ns=e=>{var t;return null!=(t=e.context)?t:e.user},js=e=>{const t={};for(const n in e)0!==n.indexOf("$")&&(t[(0,Ps.default)(n)]=e[n]);return t},As=(e,t)=>{const n=e.allFlags();return t?Object.keys(t).reduce((e,r)=>(e[r]=Object.prototype.hasOwnProperty.call(n,r)?n[r]:t[r],e),{}):n};function Is(e,t,n=Ds,r){const o=function(e,t){return void 0===t?e:Object.keys(t).reduce((t,n)=>(Ms(e,n)&&(t[n]=e[n]),t),{})}(t,r),{useCamelCaseFlagKeys:i=!0}=n,[s,a={}]=i?function(e){const t={},n={};for(const r in e){if(0===r.indexOf("$"))continue;const o=(0,Ps.default)(r);t[o]=e[r],n[o]=r}return[t,n]}(o):[o];return{flags:n.sendEventsOnFlagRead?$s(e,s,a,i):s,flagKeyMap:a}}function Ms(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t,n,r){return new Proxy(t,{get(t,o,i){const s=Reflect.get(t,o,i),a=r&&Ms(n,o)||Ms(t,o);if("symbol"==typeof o||!a)return s;if(void 0===s)return;const c=r?n[o]:o;return e.variation(c,s)}})}js.camelCaseKeys=js;var Fs={wrapperName:"react-client-sdk",wrapperVersion:"3.8.1",sendEventsOnlyForVariation:!0},Hs=Object.defineProperty,Us=Object.defineProperties,qs=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Ks=(e,t,n)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ws=(e,t)=>{for(var n in t||(t={}))zs.call(t,n)&&Ks(e,n,t[n]);if(Bs)for(var n of Bs(t))Vs.call(t,n)&&Ks(e,n,t[n]);return e},Gs=(e,t)=>Us(e,qs(t)),Js=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{a(n.next(e))}catch(e){o(e)}},s=e=>{try{a(n.throw(e))}catch(e){o(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,s);a((n=n.apply(e,t)).next())}),Ys=class extends zr.Component{constructor(e){super(e),this.getReactOptions=()=>Ws(Ws({},Ds),this.props.reactOptions),this.subscribeToChanges=e=>{const{flags:t}=this.props;e.on("change",n=>{const r=this.getReactOptions(),o=((e,t)=>{const n={};for(const r in e)t&&void 0===t[r]||(n[r]=e[r].current);return n})(n,t),i=Ws(Ws({},this.state.unproxiedFlags),o);Object.keys(o).length>0&&this.setState(n=>Ws(Gs(Ws({},n),{unproxiedFlags:i}),Is(e,i,r,t)))})},this.onFailed=(e,t)=>{this.setState(e=>Gs(Ws({},e),{error:t}))},this.onReady=(e,t,n)=>{const r=As(e,n);this.setState(o=>Ws(Gs(Ws({},o),{unproxiedFlags:r}),Is(e,r,t,n)))},this.prepareLDClient=()=>Js(this,null,function*(){var e;const{clientSideID:t,flags:n,options:r}=this.props;let o=yield this.props.ldClient;const i=this.getReactOptions();let s,a=this.state.unproxiedFlags;if(o)a=As(o,n);else{o=ks(t,null!=(e=Ns(this.props))?e:{anonymous:!0,kind:"user"},Ws(Ws({},Fs),r));try{yield o.waitForInitialization(this.props.timeout),a=As(o,n)}catch(e){s=e,null!=s&&s.name.toLowerCase().includes("timeout")&&(o.on("failed",this.onFailed),o.on("ready",()=>{this.onReady(o,i,n)}))}}this.setState(e=>Gs(Ws(Gs(Ws({},e),{unproxiedFlags:a}),Is(o,a,i,n)),{ldClient:o,error:s})),this.subscribeToChanges(o)});const{options:t}=e;if(this.state={flags:{},unproxiedFlags:{},flagKeyMap:{}},t){const{bootstrap:e}=t;if(e&&"localStorage"!==e){const{useCamelCaseFlagKeys:t}=this.getReactOptions();this.state={flags:t?js(e):e,unproxiedFlags:e,flagKeyMap:{}}}}}componentDidMount(){return Js(this,null,function*(){const{deferInitialization:e}=this.props;e&&!Ns(this.props)||(yield this.prepareLDClient())})}componentDidUpdate(e){return Js(this,null,function*(){const{deferInitialization:t}=this.props,n=!Ns(e)&&Ns(this.props);t&&n&&(yield this.prepareLDClient())})}render(){const{flags:e,flagKeyMap:t,ldClient:n,error:r}=this.state,{reactContext:o}=this.getReactOptions();return zr.createElement(o.Provider,{value:{flags:e,flagKeyMap:t,ldClient:n,error:r}},this.props.children)}},Qs=e=>{const{flags:t}=(0,zr.useContext)(null!=e?e:Ds.reactContext);return t},Xs=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit","change_ua","A network error occurred.","Non-Error promise rejection captured with value: Not implemented on this platform","TypeError: annulé","TypeError: cancelled","Error: Error response received for message <get-frame-manager-configuration>","TypeError: Load failed",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:(update|simulateEvent), ParamCount:\d+$/,"AbortError","The user aborted a request","signal is aborted without reason","Too many active WebGL contexts",/CONTEXT_LOST_WEBGL/i,/WebGL context (?:was )?lost/i,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"],Zs=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/maps\.googleapis\.com\/maps\/api\/mapsjs\/gen_204\//i],ea=[/staging.locallogic.co/,/sdk.locallogic.co/],ta=[{vendor:"maplibre",pattern:/maplibre-vendor/},{vendor:"mapbox",pattern:/mapbox-vendor/},{vendor:"google-maps",pattern:/google-maps-vendor|maps\.(googleapis|gstatic)\.com/}],na=/bot|crawl|spider|slurp|mediapartners|headless|phantom|puppeteer|playwright|selenium|scrapy|curl|wget|python-requests|axios|facebookexternalhit|bingpreview|lighthouse|pingdom|gtmetrix|semrush|ahrefs|mj12|dotbot|petalbot|bytespider|dataprovider/i,ra=Object.freeze(new class{constructor(){!function(e){const t={...e};nn(t,"react"),jt("react",{version:zr.version}),Ir(t)}({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",tracesSampleRate:.01,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:Xs,denyUrls:Zs,allowUrls:ea,release:"1.24.40",dist:"635274fea901d4eddc28a6b3483d1b8564f9a72c",integrations:[Mr({failedRequestStatusCodes:[400,402,[404,599]],failedRequestTargets:[/\/\/(api|reports-api|providers-api)(-qa)?\.locallogic\.co/,/\/\/analytics\.locallogic\.co/]}),Nr(),En()],beforeSend(e){if((()=>{if("undefined"==typeof navigator)return!1;if(navigator.webdriver)return!0;const e=navigator.userAgent||"";return!e||na.test(e)})())return null;const t=(e=>{const t=e.exception?.values;if(!t?.length)return null;const n=t[t.length-1]?.stacktrace?.frames;if(!n?.length)return null;const r=n[n.length-1],o=r?.filename||r?.abs_path||"";return ta.find(({pattern:e})=>e.test(o))?.vendor??null})(e);return t&&(e.tags={...e.tags,source:"map-vendor",mapVendor:t}),e},sendDefaultPii:!0,normalizeDepth:5}),jt("LocalLogic",{referrer:document.referrer,sdks_app_version:"1.24.40",sdks_app_path:window?.location?.pathname?.substring((window?.location?.pathname?.lastIndexOf("/")??-1)+1)})}captureException(e){this.log(e.message,"error"),Dt(e)}addBreadCrumb(e,t,n,r="info"){sn({category:e,message:t,data:n,level:r})}setTags(e){!function(e){$e().setTags(e)}(e)}log(e,t="info"){console[t]("[Local Logic] "+e)}}),oa=e=>"string"==typeof e,ia=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},sa=e=>null==e?"":""+e,aa=/###/g,ca=e=>e&&e.indexOf("###")>-1?e.replace(aa,"."):e,la=e=>!e||oa(e),ua=(e,t,n)=>{const r=oa(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(la(e))return{};const t=ca(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return la(e)?{}:{obj:e,k:ca(r[o])}},da=(e,t,n)=>{const{obj:r,k:o}=ua(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],s=t.slice(0,t.length-1),a=ua(e,s,Object);for(;void 0===a.obj&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=ua(e,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},ha=(e,t)=>{const{obj:n,k:r}=ua(e,t);if(n)return n[r]},pa=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?oa(e[r])||e[r]instanceof String||oa(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):pa(e[r],t[r],n):e[r]=t[r]);return e},fa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ga={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},ma=e=>oa(e)?e.replace(/[&<>"'\/]/g,e=>ga[e]):e,va=[" ",",","?","!",";"],ya=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),ba=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let s=i;s<r.length;++s)if(s!==i&&(t+=n),t+=r[s],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;i+=s-i+1;break}o=e}return o},wa=e=>e&&e.replace("_","-"),_a={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},xa=new class e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_a,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(oa(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}},Ea=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let i=0;i<o;i++)r.apply(r,[e,...n])})}},Sa=class extends Ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):oa(n)&&o?s.push(...n.split(o)):s.push(n)));const a=ha(this.data,s);return!a&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),!a&&i&&oa(n)?ba(this.data&&this.data[e]&&this.data[e][t],n,o):a}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),da(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)(oa(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=ha(this.data,s)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?pa(a,n,o):a={...a,...n},da(this.data,s,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},ka={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}},Oa={},Ca=class e extends Ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=xa.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=va.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=ya.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:oa(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:oa(o)?[o]:o}}translate(t,n,r){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),c=a[a.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!oa(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||oa(m)&&Array.isArray(h))if(v&&oa(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let o=!1,a=!1;const u=void 0!==n.count&&!oa(n.count),p=e.hasDefaultValue(n),f=u?this.pluralResolver.getSuffix(l,n.count,n):"",g=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",m=u&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${f}`]||n[`defaultValue${g}`]||n.defaultValue;!this.isValidLookup(h)&&p&&(o=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||o||b){if(this.logger.log(b?"updateKey":"missingKey",l,c,s,b?v:h),i){const e=this.resolve(s,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const o=p&&r!==h?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,o,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,o,b,n),this.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],s+t,n[`defaultValue${t}`]||v)})}):r(e,s,v))}h=this.extendTranslation(h,t,n,d,r),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${s}`),(a||o)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,o?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(i){const e=Array.isArray(h),t=e?[]:{},r=e?f:p;for(const o in h)if(Object.prototype.hasOwnProperty.call(h,o)){const e=`${r}${i}${o}`;t[o]=this.translate(e,{...n,joinArrays:!1,ns:a}),t[o]===e&&(t[o]=h[o])}h=t}}return o?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s=oa(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=n.replace&&!oa(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,a=oa(s)?[s]:s;return null!=e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=ka.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oa(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),c=a.key;n=c;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==s.count&&!oa(s.count),d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&(oa(s.context)||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!Oa[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(Oa[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(t))return;o=n;const i=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,c,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(c+e),s.ordinal&&0===e.indexOf(r)&&i.push(c+e.replace(r,this.options.pluralSeparator)),d&&i.push(c+t)),h){const n=`${c}${this.options.contextSeparator}${s.context}`;i.push(n),u&&(i.push(n+e),s.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let a;for(;a=i.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,s))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!oa(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}},Pa=e=>e.charAt(0).toUpperCase()+e.slice(1),Ra=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xa.create("languageUtils")}getScriptPartFromCode(e){if(!(e=wa(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=wa(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(oa(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(sv){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pa(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pa(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Pa(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),oa(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return oa(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):oa(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}},La=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ta={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},Da=["v1","v2","v3"],Na=["v4"],ja={zero:0,one:1,two:2,few:3,many:4,other:5},Aa=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=xa.create("pluralResolver"),this.options.compatibilityJSON&&!Na.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return La.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Ta[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=wa("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(r,t)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>ja[e]-ja[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Da.includes(this.options.compatibilityJSON)}},Ia=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,n)=>{const r=ha(e,n);return void 0!==r?r:ha(t,n)})(e,t,n);return!i&&o&&oa(n)&&(i=ba(e,n,r),void 0===i&&(i=ba(t,n,r))),i},Ma=e=>e.replace(/\$/g,"$$$$"),$a=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=xa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:ma,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?fa(o):i||"{{",this.suffix=s?fa(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?fa(d):h||fa("$t("),this.nestingSuffix=p?fa(p):f||fa(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Ia(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(Ia(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ma(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ma(this.escape(e)):Ma(e)}].forEach(t=>{for(s=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof l){const t=l(e,o,r);i=oa(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else oa(i)||this.useRawValueToEscape||(i=sa(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const s=i.match(/'/g),a=i.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(sv){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,sv),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];o={...i},o=o.replace&&!oa(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),a=e,c=!0}if(r=t(s.call(this,n[1].trim(),o),o),r&&n[0]===e&&!oa(r))return r;oa(r)||(r=sa(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=a.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}},Fa=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(wa(r),o),t[s]=a),a(n)}},Ha=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=xa.create("formatter"),this.options=e,this.formats={number:Fa((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:Fa((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:Fa((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:Fa((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:Fa((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Fa(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}},Ua=class extends Ea{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=xa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const s={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=ua(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(c){s(c)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();oa(e)&&(e=this.languageUtils.toResolveHierarchy(e)),oa(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,c):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>s(null,e)).catch(s):s(null,o)}catch(a){s(a)}else l(e,t,n,r,s,c)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},qa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),oa(e[1])&&(t.defaultValue=e[1]),oa(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ba=e=>(oa(e.ns)&&(e.ns=[e.ns]),oa(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),oa(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),za=()=>{},Va=class e extends Ea{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Ba(e),this.services={},this.logger=xa,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(oa(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=qa();this.options={...r,...this.options,...Ba(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?xa.init(o(this.modules.logger),this.options):xa.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Ha);const n=new Ra(this.options);this.store=new Sa(this.options.resources,this.options);const i=this.services;i.logger=xa,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new Aa(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new $a(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ua(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Ca(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=za),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=ia(),s=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za;const n=oa(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=ia();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=za),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ka.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=ia();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n=oa(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),c=2;c<s;c++)a[c-2]=arguments[c];i=r.options.overloadTranslationOptionHandler([e,t].concat(a))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||o.keyPrefix);const l=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,r.t(u,i)};return oa(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=ia();return this.options.ns?(oa(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=ia();oa(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Ra(qa());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new e(o);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Sa(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Ca(i.services,o),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Ka=Va.createInstance();Ka.createInstance=Va.createInstance;Ka.createInstance,Ka.dir,Ka.init,Ka.loadResources,Ka.reloadResources,Ka.use,Ka.changeLanguage,Ka.getFixedT,Ka.t,Ka.exists,Ka.setDefaultNamespace,Ka.hasLoadedNamespace,Ka.loadNamespaces,Ka.loadLanguages;var Wa,Ga=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ja={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ya=e=>Ja[e],Qa={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ga,Ya)},Xa=()=>Qa,Za=()=>Wa,ec={type:"3rdParty",init(e){((e={})=>{Qa={...Qa,...e}})(e.options.react),(e=>{Wa=e})(e)}};Ka.isInitialized||Ka.use(ec).init({debug:!1,fallbackLng:"en",returnEmptyString:!1,supportedLngs:["en","fr"],resources:{en:{common:{attribution:"Powered by",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Hour",hour_other:"Hours"},distance:{meter:"m",kilometer:"km",yard:"yd",mile:"mi"},language:{english:"English",french:"French",spanish:"Spanish"},map:{marker:{schoolAttributes:{levels:"Level",grades:"Grades",languages:"Languages",types:"Type",board:"Board",programs:"Programs",categories:"Categories",rating:"School rating"},schoolCta:"Link to school",district:"District",categories:{advancedPlacement:"advanced placement",charter:"charter",magnet:"magnet"}},cluster:{poiCount_one:"{{count}} Location",poiCount_other:"{{count}} Locations"}},scores:{cafes:{title:"Cafes",description:"A measure of the quantity of nearby coffee shops."},car_friendly:{title:"Car friendly",description:"Represents how well traffic flows, and how easy it is to park."},cycling_friendly:{title:"Cycling friendly",description:"Represents how suitable the area is for bicycle commuting or recreational cycling, considering nearby bike paths and lanes, the percentage of cycling commuters, the flatness of the terrain, and the presence of bike-sharing systems."},daycares:{title:"Daycares",description:"Represents the distance to the nearest daycare."},greenery:{title:"Greenery",description:"Quantity of nearby green spaces and tree canopy coverage."},groceries:{title:"Groceries",description:"A measure of the quantity of nearby grocery stores."},high_schools:{title:"High schools",description:"Represents the distance to nearest high school."},historic:{title:"Historic",description:"A measure of the quantity and size of heritage buildings, and the average building age in the area."},nightlife:{title:"Nightlife",description:"Represents the quantity of bars nearby."},parks:{title:"Parks",description:"A measure of the quantity and size of nearby parks."},pedestrian_friendly:{title:"Pedestrian friendly",description:"A measure of how many basic services can be reached on foot and how pleasant it is to walk to them."},primary_schools:{title:"Primary schools",description:"A measure of the distance to the nearest elementary school."},quiet:{title:"Quiet",description:"A measure of the average levels of noise nearby."},restaurants:{title:"Restaurants",description:"Represents the quantity of restaurants nearby."},shopping:{title:"Shopping",description:"A measure of the quantity of fashion and department stores nearby."},transit_friendly:{title:"Transit friendly",description:"A measure of the frequency and level of public transit service."},vibrant:{title:"Vibrancy",description:"Represents the level of street activity nearby."},wellness:{title:"Wellness",description:"Represents how conducive a location is to individuals' well-being."}},pois:{airports:"Airports",alcohol:"Alcohol",art_culture_science:"Art, culture, science",banks:"Banks",bus_stops:"Bus",cafes:"Coffee shops",car_fueling_stations:"Gas stations",casino:"Casino",clothing:"Clothing",common_needs:"Common needs",conference_centers:"Conference centers",convenience_stores:"Convenience stores",daycares:"Daycares",department_stores:"Department stores",entertainment:"Entertainment",fitness:"Fitness",groceries:"Groceries",groceries_specialized:"Specialty",health_care:"Health care",home_improvement:"Home improvement",hospitals:"Hospitals",libraries:"Libraries",nightlife:"Nightlife",non_food_shops:"Shopping",parks:"Parks",personal_care:"Personal care",pet_care:"Pet care",pharmacies:"Pharmacies",rapid_transit_stations:"Rapid transit",restaurants:"Restaurants",retail:"Retail",shops_and_services:"Shops and services",sport_facilities:"Sport facilities",train_stations:"Train",high_schools:"High schools",primary_schools:"Primary schools",healthy_restaurants:"Healthy restaurants",shopping:"Shopping"},valueDrivers:{bus_service_access:"Bus services",shops_and_services_access:"Shops and Services",coffee_shop_access:"Coffee shops",clothing_and_accessory_store_access:"Clothing stores",common_needs_access:"Common necessities",department_store_access:"Department stores",entertainment_venue_access:"Entertainment venues",fitness_establishment_access:"Fitness",nightlife_access:"Nightlife",pedestrian_oriented_street_access:"Walkable streets",rapid_transit_service_access:"Rapid transit service",restaurant_access:"Restaurants",specialty_grocery_store_access:"Specialty groceries",sports_facility_access:"Sport facilities",train_service_access:"Train stations",nearest_highway_proximity:"Highway access",nearest_pharmacy_proximity:"Nearby pharmacies",nearest_bicycle_share_station_proximity:"Nearby bikeshare stations",bicycle_path_access:"Bike path access",bicycle_share_station_access:"Bike share",nearest_park_area:"Nearby large park",bicycle_infrastructure_quality:"Bike infrastructure",high_schools:"High schools",primary_schools:"Elementary schools",quiet:"Quiet",daycares:"Daycares",parks:"Parks"}},leadCapture:{header:{title:"Explore {{neighborhood}}",description:"Learn about schools, prices, community vibe, and more before you decide to move.",titleNoNeighborhood:"the neighborhood"},cards:{neighborhoodIntel:{title:"Lifestyle Report",description:""},neighborhoodContext:{title:"Neighborhood Context",description:"Discover what day to day life looks like in the area."},locationInsights:{title:"Location Insights",description:"See how local amenities and features compare to the city average."},climateRisk:{title:"Climate Risk",description:"Understand how climate risks may affect lifestyle and long-term value."},communityPortrait:{title:"Community Portrait",description:"Explore demographics, housing types, and overall community vibe."},localMarketOverview:{title:"Local Market Overview",description:""},marketTrendsReport:{title:"Market Report",description:""},neighborhoodMarketTrends:{title:"Neighborhood Market Trends",description:""},dailyUpdates:{title:"Daily Updates",description:""},fiveYearHistoricalView:{title:"5-Year Historical View",description:""},easyToReadFormat:{title:"Easy-to-Read Format",description:""},actionableInsights:{title:"Actionable Insights",description:""}},downloadCard:{title:"Get your neighborhood report",description:"Uncover instant insights on local lifestyle, demographics, and market trends.",cta:"Get your report",ctaCAN:"Get your lifestyle report",select:{default:"Select report type",niReport:"Lifestyle Report",marketReport:"Market Report",both:"Both Reports"}},contactInfo:{back:"Back",title:"Almost there!",description:"Enter your details to get instant access to your neighborhood report. It’s fast, free, and full of insights.",submit:"Submit",confirmationMessage:"All set! We’ve sent your report to {{email}}",instructions:"Please check your inbox. If you don’t see it within a few minutes, check your spam or junk folder.",resendInstructions:"Still can’t find it? <resendReport>Click here to resend.</resendReport>",consentTexts:{topText:"I agree that Local Logic may share my contact information with real estate professionals so they can contact me regarding my home search.",bottomText:"This consent is required to use this tool. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>.",CANTopText:"I agree that Local Logic may share my contact information with the operator of this website so they can contact me regarding my home search.",CANBottomText:"This consent is required to use this tool. You can withdraw your consent at any time. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>."}},initialValues:{firstName:"First Name *",lastName:"Last Name *",email:"Email Address *",phone:"Phone Number"},errors:{firstName:"First Name is required",lastName:"Last Name is required",email:"Email Address is required",notValidEmail:"Email Address is not valid",privacyCheckbox:"You must agree to the privacy policy",phone:"Phone is not a valid number"},toastAlerts:{error:{title:"Something went wrong",description:"We couldn’t complete your request. Please try again in a moment. If the issue continues, ",action:"contact support."}}},localContent:{sidebar:{header:{title:"Categories",backAction:"Back to menu",toggle:{ariaLabel:"Toggle sidebar",ariaLabel_open:"Open sidebar",ariaLabel_close:"Close sidebar"}}},categoriesToggle:{toggleLabel:"Categories",backAction:"Back"},categories:{transport:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",health:"Health"},scoreComparison:{text:"Comparable to the {{name}} average of {{value}}",text_higher:"Higher than the {{name}} average of {{value}}",text_lower:"Lower than the {{name}} average of {{value}}"},poiSearchRadius:"Showing POIs in a {{radius}} {{unit}} radius",commute:{placeholder:"Search map...",cta:"Calculate commute",cta_long:"Calculate commute",cta_short:"Calculate",viewRoute:"View route",travelTypes:{walking:"Walking",driving:"Driving",cycling:"Cycling"},results:{noRoute:"No route available.",trySuggestion:"Try another query.",fastestRoute:"Fastest route"}}},localDemographics:{title:"Local Demographics",note:"Displaying demographics statistics for area {{value}} {{unit}} around selected location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",title_USA:"Income",types:{avgHouseholdIncome:"Family",avgHouseholdIncome_USA:"Household (median)",avgIndividualIncome:"Individual",avgIndividualIncome_USA:"Individual (per capita)"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodCharacteristics:{title:"Characteristics",noData:"No information is available for this neighborhood yet. Stay tuned for updates as new neighborhoods are added.",sections:{transport:{title:"Transportation"},services:{title:"Services"},character:{title:"Character"}}},neighborhoodDemographics:{title:"Demographics",note:"Displaying demographics statistics for the current location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",types:{avg_household_income:"Family",avg_individual_income:"Individual"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodFeatured:{title:"Featured Neighborhoods",exploreMoreNeighborhoods:"EXPLORE MORE NEIGHBORHOODS",noData:"You haven't added any featured and favorite neighborhoods to your list yet. Head over to the <bold><LinkToHub>Featured Neighborhoods</LinkToHub></bold> section to select them."},neighborhoodShowcase:{title:"Neighborhood Showcase",header:{title:"Search Neighborhoods",description:"Explore any neighborhood to find the location that’s right for you",search:{placeholder:"Search all neighborhoods",results:{all:"All neighborhoods",featured:"Featured neighborhoods"}}},noData:"You haven't added any neighborhoods to your list yet. Head over to the <bold><LinkToHub>Neighborhood Showcase</LinkToHub></bold> section to select them."},neighborhoodHero:{summaryTitle:"About the neighborhood",summaryTitle_area:"About the area"},neighborhoodHighlights:{title:"Highlights",noData:"Discover what this neighborhood has to offer in terms of transportation, services, and character.",highlight:{title:"This area is great for"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Scroll left",scrollRightAriaLabel:"Scroll right",allFiltersAriaLabel:"View all filters"},radius:{title:"Radius:",value:"{{value}} {{unit}}"},popup:{title:"Filters",description:"Please select one option",cta:{reset:"Reset All",apply:"Apply Filter"}}}},neighborhoodMatch:{title:"Similar neighborhoods",title_32:"Similar zip codes",title_37:"Similar counties",description:"Discover similar locations to this neighborhood and see how they compare in terms of characteristics and amenities.",descriptionWithNeighborhood:"Discover similar locations to {{neighborhoodName}} and see how they compare in terms of characteristics and amenities.",noData:"Similar neighborhoods are not available for this location.",tags:{negative:"Less affordable",neutral:"Comparable",positive:"More affordable"},pagination:{previous:"Show less",next:"Show more"}},neighborhoodPropertyValueDrivers:{title:"Property value drivers",description:"These characteristics most positively impact the values of homes in this neighborhood.",noData:"Discover characteristics that influence home prices; this list details the factors that positively affect property values in a {{locationType}}.",locationType:{neighborhood:"neighborhood",location:"location"},valueDrivers:{bus_service_access:{tag:{high:"Great access"},qualifier:{high:"Having bus services enhances connectivity and accessibility, making it more attractive to commuters and increasing the overall desirability of the {{locationType}}."}},shops_and_services_access:{tag:{high:"Many nearby"},qualifier:{high:"Having plenty of nearby shops and services that are easily accessible can increase the overall desirability of a {{locationType}}."}},coffee_shop_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby and easily accessible coffee shops can create a welcoming environment and a more desirable {{locationType}}."}},clothing_and_accessory_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Many nearby clothing and accessory stores which are easily accessible can increase the overall desirability of a {{locationType}}."}},common_needs_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to basic amenities such as hardware stores, post offices, and convenience stores can improve the accessibility of services in a {{locationType}}."}},department_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby department stores that are easily accessible can increase the overall desirability of a {{locationType}}."}},entertainment_venue_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible entertainment venues can indicate a more vibrant and desirable {{locationType}}."}},fitness_establishment_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible fitness establishments such as gyms, yoga studios, and pools can create a more desirable {{locationType}}."}},nightlife_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to local centers of nightlife, such as bars, pubs, and comedy clubs, can indicate a more vibrant {{locationType}}."}},pedestrian_oriented_street_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible commercial streets designed to be pedestrian-friendly can create a more desirable {{locationType}}."}},rapid_transit_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby rapid transit stations with frequent service can indicate a more accessible {{locationType}}."}},restaurant_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible and nearby restaurants can create a more desirable {{locationType}}."}},specialty_grocery_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby specialty grocery stores can indicate a more desirable {{locationType}}."}},sports_facility_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby sports facilities such as soccer fields, running tracks, and ice rinks can create a more desirable {{locationType}}."}},train_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby train stations with frequent service can indicate a more accessible {{locationType}}."}},nearest_highway_proximity:{tag:{high:"Great access",low:"Low density"},qualifier:{high:"Easy access to major highways can create a more accessible {{locationType}}.",low:"Few major highways nearby can create a quieter and more desirable {{locationType}}."}},nearest_pharmacy_proximity:{tag:{high:"Available close"},qualifier:{high:"Easy access to a nearby pharmacy can indicate a more accessible {{locationType}}."}},nearest_bicycle_share_station_proximity:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},bicycle_path_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible bicycle paths can create a more accessible and desirable {{locationType}}."}},bicycle_share_station_access:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},nearest_park_area:{tag:{high:"Available close"},qualifier:{high:"Large nearby parks can create a more desirable {{locationType}}."}},bicycle_infrastructure_quality:{tag:{high:"Great access"},qualifier:{high:"High-quality bicycle infrastructure can create a more accessible {{locationType}}."}},high_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},primary_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},quiet:{tag:{high:"Great access"},qualifier:{high:"Few sources of nearby noise can create a more desirable {{locationType}}."}},daycares:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby childcare can create a more desirable {{locationType}}."}},parks:{tag:{high:"Great access"},qualifier:{high:"Plenty of nearby parks can create a more desirable {{locationType}} environment."}}}},neighborhoodMarketTrends:{title:"Market trends",noData:"Market trends are not available for this neighborhood at this time.",disclaimer:{header:"Market trend information is based on home transaction data for the previous 12 months and current listing data.",footer:"Displaying trends for the selected neighborhood. Market Trend information is updated daily.",footer_large:"Displaying trends for the selected location. Market Trend information is updated daily."},tabs:{currentActivity:{title:"Current activity"},recentTrends:{title:"Recent trends"},marketConditions:{title:"Market conditions"}},marketIndicator:{increase:"increase",decrease:"decrease",noChangeDisclaimer:"There has been no change in the {{fieldTitle}} compared to the last 30 days."},valueComparison:{lower:"lower",equal:"Equal",higher:"higher"},graphs:{activeListings:{title:"Number of active listings",yAxisTitle:"Active listings"},homesSold:{title:"Homes sold",disclaimer:"The number of residential homes sold over the past 12 months.",changeDisclaimer:"The percent change in the number of homes sold over the previous 12 months."},housingMarketConditions:{title:"Housing market conditions",subtitle:"An indication of market conditions over time.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},marketType:{title:"Buyer/Seller market",disclaimer:"Buyer/Seller market indicator is based on the ratio of recent homes sold to new listings.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},medianAskingPrice:{title:"Median asking price",disclaimer:"The median asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median asking price over the previous 30 days."},medianConstructionYear:{title:"The median construction year of homes sold in the past 12 months is "},medianDaysOnMarket:{title:"Median days on market",disclaimer:"The median days on market of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median days on market over the previous 30 days.",yAxisTitle:"Days on market"},medianSalePrice:{title:"Median sales price",disclaimer:"The median sales price of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price over the previous 12 months."},medianSalePricePerSqft:{title:"Median sales price per square foot",disclaimer:"The median sales price per square foot of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price per square foot over the previous 12 months."},medianSaleVsAskingPrice:{title:"Median sales vs. asking price of sold homes",disclaimer:"The median ratio of sold price to asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the ratio of sales price to asking price of residential homes over the last 30 days."}}},neighborhoodSchools:{title:"Nearby schools",noData:"There are no available schools nearby.",noFilteredData:"There are no nearby schools that match your current filters.",english:"English",french:"French",board:"School Board or District",headers:{name:"Name",type:"Type",languages:"Languages",levels:"Levels",category:"Category",address:"Address",typesFilter:"All types",levelsFilter:"All levels"},categories:{advancedPlacement:"Advanced Placement",charter:"Charter",magnet:"Magnet"},dataDisclaimer:"Schools are selected for display based on their proximity to the location. Please contact the schools directly to verify attendance zones."}},fr:{common:{attribution:"Propulsé par",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Heure",hour_other:"Heures"},distance:{meter:"m",kilometer:"km",yard:"vg",mile:"mil"},language:{english:"Anglais",french:"Français",spanish:"Espagnol"},map:{marker:{schoolAttributes:{levels:"Niveau",grades:"Notes",languages:"Langues",types:"Type",board:"Commission",programs:"Programmes",categories:"Catégories",rating:"Note des écoles"},schoolCta:"Lien vers l'école",district:"Commission",categories:{advancedPlacement:"placement avancé",charter:"à charte",magnet:"à vocation particulière"}},cluster:{poiCount_one:"{{count}} Lieu",poiCount_other:"{{count}} Lieux"}},scores:{cafes:{title:"Cafés",description:"Une mesure de la quantité et de la diversité des cafés à proximité."},car_friendly:{title:"Adapté aux voitures",description:"Représente la fluidité de la circulation et la facilité de stationnement."},cycling_friendly:{title:"Adapté aux cyclistes",description:"Représente la qualité de l'aménagement du réseau cyclable autant pour les déplacement que pour le cyclisme récréatif, considérant les pistes et bande cyclables à proximité, le pourcentage d'habitants qui se déplacent à vélo, le dénivelé du terrain ainsi que la présence de vélos en libre-service."},daycares:{title:"Garderies",description:"Représente la distance jusqu'à la garderie la plus proche."},greenery:{title:"Verdure",description:"Quantité d'espaces verts à proximité et couverture de la canopée des arbres."},groceries:{title:"Épiceries",description:"Une mesure de la quantité d'épiceries à proximité."},high_schools:{title:"Écoles secondaires",description:"Représente la distance jusqu'à l'école secondaire la plus proche."},historic:{title:"Historique",description:"Une mesure de la quantité et de la taille des bâtiments patrimoniaux, et de l'âge moyen des bâtiments dans la région."},nightlife:{title:"Vie nocturne",description:"Représente la quantité et la diversité des bars à proximité."},parks:{title:"Parcs",description:"Une mesure de la quantité et de la taille des parcs à proximité."},pedestrian_friendly:{title:"Adapté aux piétons",description:"Une mesure de la proximité des services de base et du niveau de convivialité d'y aller à pied."},primary_schools:{title:"Écoles primaires",description:"Une mesure de la distance jusqu'à l'école primaire la plus proche."},quiet:{title:"Silencieux",description:"Une mesure des niveaux moyens de bruit à proximité."},restaurants:{title:"Restaurants",description:"Représente la quantité et la diversité des restaurants à proximité."},shopping:{title:"Magasins",description:"Une mesure de la quantité et de la diversité de magasins de mode et de grands magasins à proximité."},transit_friendly:{title:"Transport public",description:"Une mesure de la fréquence et du niveau de service de transport en commun."},vibrant:{title:"Dynamisme",description:"Représente le niveau d'activité de la rue à proximité."},wellness:{title:"Bien-être",description:"Représente à quel point un emplacement favorise le bien-être des individus."}},pois:{airports:"Aéroports",alcohol:"Alcool",art_culture_science:"Art, culture, science",banks:"Banques",bus_stops:"Autobus",cafes:"Cafés",car_fueling_stations:"Stations-service",casino:"Casino",clothing:"Vêtements",common_needs:"Besoins quotidiens",conference_centers:"Salles de conférence",convenience_stores:"Dépanneurs",daycares:"Garderies",department_stores:"Grands magasins",entertainment:"Divertissement",fitness:"Entraînement physique",groceries:"Épiceries",groceries_specialized:"Spécialisées",health_care:"Soins de santé",home_improvement:"Magasin de rénovation",hospitals:"Hôpitaux",libraries:"Librairies",nightlife:"Vie nocturne",non_food_shops:"Magasinage",parks:"Parcs",personal_care:"Soins personnels",pet_care:"Soins pour animaux",pharmacies:"Pharmacies",rapid_transit_stations:"Métro",restaurants:"Restaurants",retail:"Magasins de détail",shops_and_services:"Magasins et services",sport_facilities:"Installations sportives",train_stations:"Train",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",healthy_restaurants:"Restaurants sains",shopping:"Magasinage"},valueDrivers:{bus_service_access:"Services d'autobus",shops_and_services_access:"Magasins et services",coffee_shop_access:"Cafés",clothing_and_accessory_store_access:"Magasins de vêtements",common_needs_access:"Nécessités communes",department_store_access:"Grands magasins",entertainment_venue_access:"Lieux de divertissement",fitness_establishment_access:"Conditionnement physique",nightlife_access:"Vie nocturne",pedestrian_oriented_street_access:"Rues accessibles aux piétons",rapid_transit_service_access:"Service de transport en commun rapide",restaurant_access:"Restaurants",specialty_grocery_store_access:"Épiceries spécialisées",sports_facility_access:"Installations sportives",train_service_access:"Gares",nearest_highway_proximity:"Accès à l'autoroute",nearest_pharmacy_proximity:"Pharmacies à proximité",nearest_bicycle_share_station_proximity:"Stations de vélos en libre-service à proximité",bicycle_path_access:"Stations de vélopartage à proximité",bicycle_share_station_access:"Partage de vélo",nearest_park_area:"Grand parc à proximité",bicycle_infrastructure_quality:"Infrastructure pour vélos",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",quiet:"Calme",daycares:"Garderies",parks:"Parcs"}},leadCapture:{},localContent:{sidebar:{header:{title:"Catégories",backAction:"Retour au menu",toggle:{ariaLabel:"Basculer le menu des scores",ariaLabel_open:"Ouvrir le menu des scores",ariaLabel_close:"Fermer le menu des scores"}}},categoriesToggle:{toggleLabel:"Catégories",backAction:"Retour"},categories:{commute:"Transport",amenities:"Services",character:"Caractère",nature:"Nature",education:"Éducation",health:"Santé"},scoreComparison:{text:"Comparable à la moyenne de {{name}} de {{value}}",text_higher:"Supérieur à la moyenne de {{name}} de {{value}}",text_lower:"Inférieur à la moyenne de {{name}} de {{value}}"},poiSearchRadius:"Affichage des PO dans un rayon de {{radius}} {{unit}}",commute:{placeholder:"Faire une recherche...",cta:"Calculer le trajet",cta_long:"Calculer le trajet",cta_short:"Calculer",viewRoute:"Voir l'itinéraire",travelTypes:{walking:"À pied",driving:"En voiture",cycling:"À vélo"},results:{noRoute:"Aucun itinéraire disponible.",trySuggestion:"Essayez une autre requête.",fastestRoute:"Itinéraire le plus rapide"}}},localDemographics:{title:"Données démographiques locales",note:"Affichage des données démographiques pour la zone située à {{value}} {{unit}} autour de l'emplacement sélectionné.",noData:"Aucune donnée démographique n'est disponible pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",title_USA:"Revenu",types:{avgHouseholdIncome:"Familial",avgHouseholdIncome_USA:"Ménage (médian)",avgIndividualIncome:"Individuel",avgIndividualIncome_USA:"Individuel (par habitant)"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménages",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Modes de transport"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodCharacteristics:{title:"Caractéristiques",noData:"Aucune information n'est présentement disponible pour ce quartier. Restez à l'affût des mises à jour pour l'ajout de nouveaux quartiers.",sections:{transport:{title:"Transport"},services:{title:"Services"},character:{title:"Caractère"}}},neighborhoodDemographics:{title:"Démographie du quartier",note:"Affichage des statistiques démographiques pour le quartier.",noData:"Aucune donnée démographique n'est offerte pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",types:{avg_household_income:"Familial",avg_individual_income:"Individuel"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c.. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménage",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Mode de déplacement"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodFeatured:{title:""},neighborhoodShowcase:{},neighborhoodHero:{summaryTitle:"À propos du quartier"},neighborhoodHighlights:{title:"Points forts",noData:"Découvrez ce que ce quartier a à offrir en termes de transport, de services et de caractère.",highlight:{title:"Cette zone est idéale pour"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Défiler vers la gauche",scrollRightAriaLabel:"Défiler vers la droite",allFiltersAriaLabel:"Voir tous les filtres"},radius:{title:"Rayon :",value:"{{value}} {{unit}}"},popup:{title:"Filtres",description:"Veuillez sélectionner une option",cta:{reset:"Réinitialiser tout",apply:"Appliquer le filtre"}}}},neighborhoodMatch:{title:"Quartiers similaires",title_32:"Codes postaux similaires",title_37:"Comtés similaires",description:"Découvrez des lieux similaires à celui-ci et comparez-les en termes de caractéristiques et services de proximité.",descriptionWithNeighborhood:"Découvrez des lieux similaires à {{neighborhoodName}} et comparez-les en termes de caractéristiques et services de proximité.",noData:"Les quartiers similaires ne sont pas disponibles pour cet emplacement.",tags:{negative:"Moins abordable",neutral:"Comparable",positive:"Plus abordable"},pagination:{previous:"Afficher moins",next:"Afficher plus"}},neighborhoodPropertyValueDrivers:{title:"Facteurs de valeur immobilière",description:"Ces caractéristiques ont le plus d'impact positif sur les valeurs des maisons dans ce quartier.",noData:"Découvrez les caractéristiques qui influencent les prix des maisons; cette liste détaille les facteurs qui affectent positivement les valeurs des propriétés dans un {{locationType}}.",locationType:{neighborhood:"quartier",location:"emplacement"},valueDrivers:{bus_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de services d'autobus améliore la connectivité et l'accessibilité d'un {{locationType}}, le rendant plus attrayant pour les navetteurs et augmentant son attractivité globale."}},shops_and_services_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux commerces de proximité facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},coffee_shop_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de cafés à proximité et facilement accessibles peut créer un environnement accueillant et un {{locationType}} plus attrayant."}},clothing_and_accessory_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux magasins de vêtements et d'accessoires facilement accessibles à proximité peut accroître la désirabilité globale d'un {{locationType}}."}},common_needs_access:{tag:{high:"Excellent accès"},qualifier:{high:"L'accès facile à des commodités de base comme les quincailleries, bureaux de poste et dépanneurs peut améliorer l'accessibilité des services dans un {{locationType}}."}},department_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de grands magasins à proximité et facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},entertainment_venue_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de lieux de divertissement facilement accessibles peut être le signe d'un {{locationType}} plus vivant et plus attrayant."}},fitness_establishment_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'établissements de conditionnement physique facilement accessibles, tels que des gymnases, des studios de yoga et des piscines, peut rendre le {{locationType}} plus attrayant."}},nightlife_access:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux centres locaux de la vie nocturne, tels que les bars, les pubs et les clubs de comédie, peut être le signe d'un {{locationType}} plus dynamique."}},pedestrian_oriented_street_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de rues commerciales facilement accessibles, conçues pour être conviviales pour les piétons, peut créer un {{locationType}} plus attrayant."}},rapid_transit_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La proximité de stations de transport en commun rapide à haute fréquence peut être le signe d'un {{locationType}} plus accessible."}},restaurant_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de restaurants facilement accessibles et à proximité peut créer un {{locationType}} plus attrayant."}},specialty_grocery_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'épiceries spécialisées à proximité peut indiquer un {{locationType}} plus attrayant."}},sports_facility_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La proximité d'installations sportives telles que des terrains de football, des pistes de course et des patinoires peut rendre le {{locationType}} plus attrayant."}},train_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de gares à proximité qui ont un service fréquent peut indiquer un {{locationType}} plus accessible."}},nearest_highway_proximity:{tag:{high:"Excellent accès",low:"Faible densité"},qualifier:{high:"Un accès facile aux grandes autoroutes peut créer un {{locationType}} plus accessible.",low:"Peu d'autoroutes à proximité peut rendre le {{locationType}} plus calme et plus attrayant."}},nearest_pharmacy_proximity:{tag:{high:"Disponible à proximité"},qualifier:{high:"Un accès facile à une pharmacie à proximité peut indiquer un {{locationType}} plus accessible."}},nearest_bicycle_share_station_proximity:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},bicycle_path_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de pistes cyclables facilement accessibles peut être le signe d'un {{locationType}} plus accessible et plus attrayant."}},bicycle_share_station_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},nearest_park_area:{tag:{high:"Disponible à proximité"},qualifier:{high:"La présence de grands parcs à proximité peut être le signe d'un {{locationType}} plus attrayant."}},bicycle_infrastructure_quality:{tag:{high:"Excellent accès"},qualifier:{high:"La présence d'une infrastructure de qualité pour les vélos peut être le signe d'un {{locationType}} plus accessible."}},high_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},primary_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},quiet:{tag:{high:"Excellent accès"},qualifier:{high:"Le peu de sources de bruit à proximité peut rendre le {{locationType}} plus attrayant."}},daycares:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux services de garde à proximité peut rendre le {{locationType}} plus attrayant."}},parks:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de nombreux parcs à proximité peut rendre le {{locationType}} plus attrayant."}}}},neighborhoodMarketTrends:{},neighborhoodSchools:{title:"Écoles à proximité",noData:"Il n'y a pas d'écoles disponibles à proximité.",noFilteredData:"Aucune école à proximité ne correspond à vos filtres actuels.",english:"Anglais",french:"Français",board:"Commission scolaire ou district",headers:{name:"Nom",type:"Type",languages:"Langues",levels:"Niveaux",category:"Catégorie",address:"Adresse",typesFilter:"Tous types",levelsFilter:"Tous niveaux"},categories:{advancedPlacement:"Placement avancé",charter:"À charte",magnet:"À vocation particulière"},dataDisclaimer:"Les écoles sont sélectionnées pour être affichées en fonction de leur proximité avec le lieu. Veuillez contacter directement les écoles pour vérifier les zones de fréquentation."}}}});var tc=Ka;function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(null,arguments)}var rc,oc,ic,sc,ac,cc=n(()=>{}),lc=r({Action:()=>rc,createBrowserHistory:()=>uc,createHashHistory:()=>dc,createMemoryHistory:()=>hc,createPath:()=>vc,parsePath:()=>yc});function uc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,s=r.state||{};return[s.idx,oc({pathname:t,search:o,hash:i,state:s.usr||null,key:s.key||"default"})]}var i=null;n.addEventListener(ac,function(){if(i)d.call(i),i=null;else{var e=rc.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=c-n;s&&(i={action:e,location:r,retry:function(){v(-1*s)}},v(s))}}else m(e)}});var s=rc.Pop,a=o(),c=a[0],l=a[1],u=gc(),d=gc();function h(e){return"string"==typeof e?e:vc(e)}function p(e,t){return void 0===t&&(t=null),oc(nc({pathname:l.pathname,hash:"",search:""},"string"==typeof e?yc(e):e,{state:t,key:mc()}))}function f(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function m(e){s=e;var t=o();c=t[0],l=t[1],u.call({action:s,location:l})}function v(e){r.go(e)}return null==c&&(c=0,r.replaceState(nc({},r.state,{idx:c}),"")),{get action(){return s},get location(){return l},createHref:h,push:function e(t,o){var i=rc.Push,s=p(t,o);if(g(i,s,function(){e(t,o)})){var a=f(s,c+1),l=a[0],u=a[1];try{r.pushState(l,"",u)}catch(d){n.location.assign(u)}m(i)}},replace:function e(t,n){var o=rc.Replace,i=p(t,n);if(g(o,i,function(){e(t,n)})){var s=f(i,c),a=s[0],l=s[1];r.replaceState(a,"",l),m(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(ic,fc),function(){t(),d.length||n.removeEventListener(ic,fc)}}}}function dc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=yc(n.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,i=e.search,s=void 0===i?"":i,a=e.hash,c=void 0===a?"":a,l=r.state||{};return[l.idx,oc({pathname:o,search:s,hash:c,state:l.usr||null,key:l.key||"default"})]}var i=null;function s(){if(i)h.call(i),i=null;else{var e=rc.Pop,t=o(),n=t[0],r=t[1];if(h.length){if(null!=n){var s=l-n;s&&(i={action:e,location:r,retry:function(){y(-1*s)}},y(s))}}else v(e)}}n.addEventListener(ac,s),n.addEventListener(sc,function(){vc(o()[1])!==vc(u)&&s()});var a=rc.Pop,c=o(),l=c[0],u=c[1],d=gc(),h=gc();function p(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,o=r.indexOf("#");t=-1===o?r:r.slice(0,o)}return t}()+"#"+("string"==typeof e?e:vc(e))}function f(e,t){return void 0===t&&(t=null),oc(nc({pathname:u.pathname,hash:"",search:""},"string"==typeof e?yc(e):e,{state:t,key:mc()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=o();l=t[0],u=t[1],d.call({action:a,location:u})}function y(e){r.go(e)}return null==l&&(l=0,r.replaceState(nc({},r.state,{idx:l}),"")),{get action(){return a},get location(){return u},createHref:p,push:function e(t,o){var i=rc.Push,s=f(t,o);if(m(i,s,function(){e(t,o)})){var a=g(s,l+1),c=a[0],u=a[1];try{r.pushState(c,"",u)}catch(d){n.location.assign(u)}v(i)}},replace:function e(t,n){var o=rc.Replace,i=f(t,n);if(m(o,i,function(){e(t,n)})){var s=g(i,l),a=s[0],c=s[1];r.replaceState(a,"",c),v(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&n.addEventListener(ic,fc),function(){t(),h.length||n.removeEventListener(ic,fc)}}}}function hc(e){void 0===e&&(e={});var t=e,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,i=r.map(function(e){return oc(nc({pathname:"/",search:"",hash:"",state:null,key:mc()},"string"==typeof e?yc(e):e))}),s=pc(null==o?i.length-1:o,0,i.length-1),a=rc.Pop,c=i[s],l=gc(),u=gc();function d(e,t){return void 0===t&&(t=null),oc(nc({pathname:c.pathname,search:"",hash:""},"string"==typeof e?yc(e):e,{state:t,key:mc()}))}function h(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function p(e,t){a=e,c=t,l.call({action:a,location:c})}function f(e){var t=pc(s+e,0,i.length-1),n=rc.Pop,r=i[t];h(n,r,function(){f(e)})&&(s=t,p(n,r))}return{get index(){return s},get action(){return a},get location(){return c},createHref:function(e){return"string"==typeof e?e:vc(e)},push:function e(t,n){var r=rc.Push,o=d(t,n);h(r,o,function(){e(t,n)})&&(s+=1,i.splice(s,i.length,o),p(r,o))},replace:function e(t,n){var r=rc.Replace,o=d(t,n);h(r,o,function(){e(t,n)})&&(i[s]=o,p(r,o))},go:f,back:function(){f(-1)},forward:function(){f(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function pc(e,t,n){return Math.min(Math.max(e,t),n)}function fc(e){e.preventDefault(),e.returnValue=""}function gc(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function mc(){return Math.random().toString(36).substr(2,8)}function vc(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,s=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function yc(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var bc=n(()=>{cc(),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(rc||(rc={})),oc=function(e){return e},ic="beforeunload",sc="hashchange",ac="popstate"}),wc=o((e,n)=>{!function(r,o){"object"==typeof e&&void 0!==n?o(e,s(),(bc(),t(lc))):"function"==typeof define&&define.amd?define(["exports","react","history"],o):o((r="undefined"!=typeof globalThis?globalThis:r||self).ReactLocation={},r.React,r.History)}(e,function(e,t,n){var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e){if(!e)return"";var t=decodeURIComponent(e);return"false"!==t&&("true"===t||(0*+t==0?+t:t))}const a=["children","location","__experimental__snapshot"],c=["location","__experimental__snapshot"],l=["basepath","routes"],u=["to","search","hash","children","target","style","replace","onClick","onMouseEnter","className","getActiveProps","getInactiveProps","activeOptions","preload","disabled","_ref"],d=["style","className"],h=["style","className"],p=["pending"],f=["children"],g=r.createContext(null),m=r.createContext(null),v=r.createContext(null),y=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),b=y?r.useLayoutEffect:r.useEffect;class w{constructor(){this.listeners=[]}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e())}}function _(e){return r.createElement(m.Provider,e)}function x(){const e=S(),t=A(),n=j();return b(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class E extends w{constructor(e){var t;let{location:n,__experimental__snapshot:r}=e,s=i(e,c);super(),this.routesById={},this.update=e=>{let{basepath:t,routes:n}=e,r=i(e,l);Object.assign(this,r),this.basepath=z("/"+(null!=t?t:"")),this.routesById={};const s=(e,t)=>e.map(e=>{var n,i,a,c;const l=null!=(n=e.path)?n:"*",u=B(["root"===(null==t?void 0:t.id)?"":null==t?void 0:t.id,(null==l?void 0:l.replace(/(.)\/$/,"$1"))+(e.id?"-"+e.id:"")]);if(e=o({},e,{pendingMs:null!=(i=e.pendingMs)?i:null==r?void 0:r.defaultPendingMs,pendingMinMs:null!=(a=e.pendingMinMs)?a:null==r?void 0:r.defaultPendingMinMs,id:u}),this.routesById[u])throw new Error;return this.routesById[u]=e,e.children=null!=(c=e.children)&&c.length?s(e.children,e):void 0,e});this.routes=s(n),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=e=>{const t=e({state:this.state,pending:this.pending});this.state=t.state,this.pending=t.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var e,t,n;const r=[...null!=(e=null==this?void 0:this.state.matches)?e:[],...null!=(t=null==this||null==(n=this.pending)?void 0:n.matches)?t:[]].map(e=>e.id);Object.values(this.matchCache).forEach(e=>{var t;if(!e.updatedAt)return;if(r.includes(e.id))return;const n=Date.now()-(null!=(t=e.updatedAt)?t:0);(!e.maxAge||n>e.maxAge)&&(e.route.unloader&&e.route.unloader(e),delete this.matchCache[e.id])})},this.updateLocation=e=>{let t;return{promise:new Promise(n=>{const r=new O(this,e);this.setState(e=>o({},e,{pending:{location:r.location,matches:r.matches}})),t=r.subscribe(()=>{const e=this.state.matches;e.filter(e=>!r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.onExit||e.onExit(e)}),e.filter(e=>r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.route.onTransition||e.route.onTransition(e)}),r.matches.filter(t=>!e.find(e=>e.id===t.id)).forEach(e=>{e.onExit=null==e.route.onMatch?void 0:e.route.onMatch(e)}),this.setState(e=>o({},e,{state:{location:r.location,matches:r.matches},pending:void 0})),n()}),r.loadData(),r.startPending()}),unsubscribe:t}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(e=>{let{ownData:t,id:n}=e;return{id:n,ownData:t}})}),this.update(s);let a=[];if(r){const e=new O(this,n.current);e.matches.forEach((e,t)=>{var n,o,i,s;if(e.id!==(null==(n=r.matches[t])?void 0:n.id))throw new Error("Router hydration mismatch: "+e.id+" !== "+(null==(s=r.matches[t])?void 0:s.id));e.ownData=null!=(o=null==(i=r.matches[t])?void 0:i.ownData)?o:{}}),C(e.matches),a=e.matches}this.state={location:null!=(t=null==r?void 0:r.location)?t:n.current,matches:a},n.subscribe(()=>this.notify())}}function S(){const e=r.useContext(g);return U(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class k{constructor(e){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=e=>{var t;null==(t=this.matchLoader)||t.preNotify(e?this:void 0)},this.assignMatchLoader=e=>{this.matchLoader=e},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),void 0!==this.route.pendingMs&&(this.pendingTimeout=setTimeout(()=>{var e;"loading"===this.status&&(this.status="pending"),null==(e=this.notify)||e.call(this),void 0!==this.route.pendingMinMs&&(this.pendingMinPromise=new Promise(e=>setTimeout(e,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=e=>{var t,n;if(this.maxAge=null!=(t=null!=(n=e.maxAge)?n:this.route.loaderMaxAge)?t:e.router.defaultLoaderMaxAge,this.loaderPromise)return;const r=this.route.import;this.loaderPromise=(r?(this.isLoading=!0,r({params:this.params,search:this.search}).then(e=>{this.route=o({},this.route,e)})):Promise.resolve()).then(()=>{const t=[];["element","errorElement","pendingElement"].forEach(e=>{const n=this.route[e];this[e]||("function"==typeof n?(this.isLoading=!0,t.push(n(this).then(t=>{this[e]=t}))):this[e]=this.route[e])});const n=this.route.loader,r=n?new Promise(async t=>{this.isLoading=!0;const r=e=>{this.updatedAt=Date.now(),t(this.ownData),this.status=e},o=e=>{this.ownData=e,this.error=void 0,r("resolved")},i=e=>{console.error(e),this.error=e,r("rejected")};try{o(await n(this,{parentMatch:e.parentMatch,dispatch:async e=>{var t;"resolve"===e.type?o(e.data):"reject"===e.type?i(e.error):"loading"===e.type?this.isLoading=!0:"maxAge"===e.type&&(this.maxAge=e.maxAge),this.updatedAt=Date.now(),null==(t=this.notify)||t.call(this,!0)}}))}catch(e){i(e)}}):Promise.resolve();return Promise.all([...t,r]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var e;this.pendingTimeout&&clearTimeout(this.pendingTimeout),null==(e=this.notify)||e.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,e)}}class O extends w{constructor(e,t){var n;super(),n=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=e=>{e&&(this.preNotifiedMatches.includes(e)||this.preNotifiedMatches.push(e)),e&&this.preNotifiedMatches.length!==this.matches.length||(this.status="resolved",C(this.matches),this.notify())},this.loadData=async function(e){var t;let{maxAge:r}=void 0===e?{}:e;if(n.router.cleanMatchCache(),null!=(t=n.matches)&&t.length)return n.firstRenderPromises=[],n.matches.forEach((e,t)=>{var o,i;const s=null==(o=n.matches)?void 0:o[t-1];null==e.assignMatchLoader||e.assignMatchLoader(n),null==e.load||e.load({maxAge:r,parentMatch:s,router:n.router}),null==(i=n.firstRenderPromises)||i.push(e.loaderPromise)}),await Promise.all(n.firstRenderPromises).then(()=>(n.preNotify(),n.matches));n.preNotify()},this.load=async function(e){let{maxAge:t}=void 0===e?{}:e;return await n.loadData({maxAge:t})},this.startPending=async()=>{this.matches.forEach(e=>null==e.startPending?void 0:e.startPending())},this.router=e,this.location=t,this.matches=[];const r=R(this.router,this.location);this.matches=null==r?void 0:r.map(e=>(this.router.matchCache[e.id]||(this.router.matchCache[e.id]=new k(e)),this.router.matchCache[e.id]))}}function C(e){e?.forEach((t,n)=>{var r;const i=null==e?void 0:e[n-1];t.data=o({},null!=(r=null==i?void 0:i.data)?r:{},t.ownData)})}function P(){const e=r.useContext(v);if(!e)throw U(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function R(e,t){if(!e.routes.length)return[];const n=[],r=async(i,s)=>{var a;let{pathname:c,params:l}=s;const u=(null!=e&&e.filterRoutes?null==e?void 0:e.filterRoutes(i):i).find(n=>{var r,i;const s=B([c,n.path]),a=!!("/"!==n.path||null!=(r=n.children)&&r.length),u=$(t,{to:s,search:n.search,fuzzy:a,caseSensitive:null!=(i=n.caseSensitive)?i:e.caseSensitive});return u&&(l=o({},l,u)),!!u});if(!u)return;const d=L(u.path,l);c=B([c,d]);const h={id:L(u.id,l,!0),route:u,params:l,pathname:c,search:t.search};n.push(h),null!=(a=u.children)&&a.length&&r(u.children,h)};return r(e.routes,e.rootMatch),n}function L(e,t,n){return B(K(e).map(e=>{return"*"!==e.value||n?"param"===e.type?null!=(r=t[e.value.substring(1)])?r:"":e.value:"";var r}))}function T(){const e=S(),t=N(),n=P(),r=A();return G(async function(i,s){var a;return void 0===i&&(i=e.current),await new O(n,r(o({},i,{from:null!=(a=i.from)?a:{pathname:t.pathname}}))).load(s)})}function D(){return r.useContext(m)}function N(){var e;return null==(e=D())?void 0:e[0]}function j(){const e=S(),t=N(),n=A();return G(function(r){var o;let{search:i,hash:s,replace:a,from:c,to:l,fromCurrent:u}=r;u=null!=(o=u)?o:void 0===l;const d=n({to:l,search:i,hash:s,from:u?e.current:null!=c?c:{pathname:t.pathname}});e.navigate(d,a)})}function A(){const e=S(),t=P();return G(n=>{const r=R(t,e.buildNext(t.basepath,n)).map(e=>{var t;return null!=(t=e.route.searchFilters)?t:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,o({},n,{__searchFilters:r}))})}function I(){var e;const t=P(),[n,...o]=D(),i=o[0];if(!i)return null;const s=null!=(e=i.errorElement)?e:t.defaultErrorElement,a=(()=>{var e,n;if("rejected"===i.status){if(s)return s;if(!t.useErrorBoundary)return"An unknown error occured!";throw i.error}const o=null!=(e=i.pendingElement)?e:t.defaultPendingElement;if("loading"===i.status)return null;if("pending"===i.status&&(i.route.pendingMs||o))return null!=o?o:null;const a=null!=(n=i.element)?n:t.defaultElement;return null!=a?a:r.createElement(I,null)})();return r.createElement(_,{value:o},a)}function M(){const e=P(),t=N();return G(n=>W(e.basepath,t.pathname,z(n)))}function $(e,t){const n=V(e,t),r=function(e,t){return!(!t.search||!t.search(e.search))}(e,t);if((!t.to||n)&&(!t.search||r))return null!=n?n:{}}function F(){const e=P(),t=M();return G(n=>{let{pending:r}=n,s=i(n,p);if(s=o({},s,{to:s.to?t(""+s.to):void 0}),r){var a;if(null==(a=e.pending)||!a.location)return;return $(e.pending.location,s)}return $(e.state.location,s)})}function H(e,t){const n=S();r.useEffect(()=>{if(!t)return;let r=n.history.block(t=>{window.confirm(e)?(r(),t.retry()):n.current.pathname=window.location.pathname});return r},[t,n,e])}function U(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function q(e,t){return"function"==typeof e?e(t):e}function B(e){return z(e.filter(Boolean).join("/"))}function z(e){return(""+e).replace(/\/{2,}/g,"/")}function V(e,t){var n;const r=K(e.pathname),o=K(""+(null!=(n=t.to)?n:"*")),i={};return(()=>{for(let e=0;e<Math.max(r.length,o.length);e++){const n=r[e],s=o[e],a=e===o.length-1,c=e===r.length-1;if(s){if("wildcard"===s.type)return!(null==n||!n.value||(i["*"]=B(r.slice(e).map(e=>e.value)),0));if("pathname"===s.type){if("/"===s.value&&(null==n||!n.value))return!0;if(n)if(t.caseSensitive){if(s.value!==n.value)return!1}else if(s.value.toLowerCase()!==n.value.toLowerCase())return!1}if(!n)return!1;"param"===s.type&&(i[s.value.substring(1)]=n.value)}if(a&&!c)return!!t.fuzzy}return!0})()?i:void 0}function K(e){if(!e)return[];const t=[];if("/"===(e=z(e)).slice(0,1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(e=>e.startsWith("*")?{type:"wildcard",value:e}:":"===e.charAt(0)?{type:"param",value:e}:{type:"pathname",value:e})),"/"===e.slice(-1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function W(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=K(t);const o=K(n);return o.forEach((e,t)=>{if("/"===e.value)t?t===o.length-1&&r.push(e):r=[e];else if(".."===e.value)r.pop();else{if("."===e.value)return;r.push(e)}}),z(B([e,...r.map(e=>e.value)]))}function G(e){const t=r.useRef(),n=r.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function J(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Y(e)&&Y(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let a=0;for(let c=0;c<i;c++){const r=n?c:o[c];s[r]=J(e[r],t[r]),s[r]===e[r]&&a++}return r===i&&a===r?e:s}return t}function Y(e){if(!Q(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Q(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Q(e){return"[object Object]"===Object.prototype.toString.call(e)}const X=ee(JSON.parse),Z=te(JSON.stringify);function ee(e){return t=>{"?"===t.substring(0,1)&&(t=t.substring(1));let n=function(e){for(var t,n,r={},o=e.split("&");t=o.shift();)void 0!==r[n=(t=t.split("=")).shift()]?r[n]=[].concat(r[n],s(t.shift())):r[n]=s(t.shift());return r}(t);for(let r in n){const t=n[r];if("string"==typeof t)try{n[r]=e(t)}catch(e){}}return n}}function te(e){return t=>{(t=o({},t))&&Object.keys(t).forEach(n=>{const r=t[n];if(void 0===r||void 0===r)delete t[n];else if(r&&"object"==typeof r&&null!==r)try{t[n]=e(r)}catch(e){}});const n=function(e){var t,n,r,o="";for(t in e)if(void 0!==(r=e[t]))if(Array.isArray(r))for(n=0;n<r.length;n++)o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r[n]);else o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r);return""+o}(t).toString();return n?"?"+n:""}}Object.defineProperty(e,"createBrowserHistory",{enumerable:!0,get:function(){return n.createBrowserHistory}}),Object.defineProperty(e,"createHashHistory",{enumerable:!0,get:function(){return n.createHashHistory}}),Object.defineProperty(e,"createMemoryHistory",{enumerable:!0,get:function(){return n.createMemoryHistory}}),e.Link=function(e){var t;let{to:n=".",search:s,hash:a,children:c,target:l,style:p={},replace:f,onClick:g,onMouseEnter:m,className:v="",getActiveProps:y=()=>({className:"active"}),getInactiveProps:b=()=>({}),activeOptions:w,preload:_,disabled:x,_ref:E}=e,k=i(e,u);const O=T(),C=N(),R=S(),L=P(),D=j(),I=A();_=null!=(t=_)?t:L.defaultLinkPreloadMaxAge;try{U(!1,"<Link /> should not be used for external URLs like: "+new URL(""+n).href)}catch(e){}const M=I({to:n,search:s,hash:a,from:{pathname:C.pathname}}),$=R.current.pathname===M.pathname,F=R.current.pathname.split("/"),H=M.pathname.split("/").every((e,t)=>e===F[t]),q=R.current.hash===M.hash,B=null!=w&&w.exact?$:H,z=null==w||!w.includeHash||q,V=B&&z,K=V?y():{},{style:W={},className:G=""}=K,J=i(K,d),Y=V?{}:b(),{style:Q={},className:X=""}=Y,Z=i(Y,h);return r.createElement("a",o({ref:E,href:x?void 0:M.href,onClick:e=>{x||(g&&g(e),function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||e.defaultPrevented||l&&"_self"!==l||0!==e.button||(e.preventDefault(),D({to:n,search:s,hash:a,replace:f,from:{pathname:C.pathname}})))},onMouseEnter:e=>{m&&m(e),_&&_>0&&O({to:n,search:s,hash:a},{maxAge:_})},target:l,style:o({},p,W,Q),className:[v,G,X].filter(Boolean).join(" ")||void 0},x?{role:"link","aria-disabled":!0}:void 0,k,J,Z,{children:"function"==typeof c?c({isActive:V}):c}))},e.MatchRoute=function(e){let{children:t}=e,n=i(e,f);const r=F()(n);return"function"==typeof t?t(r):r?t:null},e.MatchesProvider=_,e.Navigate=function(e){let t=j();return b(()=>{t(e)},[t]),null},e.Outlet=I,e.Prompt=function(e){let{message:t,when:n,children:r}=e;return H(t,null==n||n),null!=r?r:null},e.ReactLocation=class extends w{constructor(e){var t,r;super(),this.isTransitioning=!1,this.history=(null==e?void 0:e.history)||(y?n.createBrowserHistory():n.createMemoryHistory()),this.stringifySearch=null!=(t=null==e?void 0:e.stringifySearch)?t:Z,this.parseSearch=null!=(r=null==e?void 0:e.parseSearch)?r:X,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(e=>{this.current=this.parseLocation(e.location,this.current),this.notify()})}buildNext(e,t){var n,r,i,s;void 0===e&&(e="/"),void 0===t&&(t={});const a=o({},this.current,t.from),c=W(e,a.pathname,""+(null!=(n=t.to)?n:".")),l=null!=(r=t.__searchFilters)&&r.length?t.__searchFilters.reduce((e,t)=>t(e),a.search):a.search,u=!0===t.search?l:t.search?null!=(i=q(t.search,l))?i:{}:null!=(s=t.__searchFilters)&&s.length?l:{},d=J(a.search,u),h=this.stringifySearch(d);let p=!0===t.hash?a.hash:q(t.hash,a.hash);return p=p?"#"+p:"",{pathname:c,search:d,searchStr:h,hash:p,href:""+c+h+p,key:t.key}}navigate(e,t){this.current=e,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let n="replace";return t||(n="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(n="replace"),"replace"===n?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(e,t){var n;const r=this.parseSearch(e.search);return{pathname:e.pathname,searchStr:e.search,search:J(null==t?void 0:t.search,r),hash:null!=(n=e.hash.split("#").reverse()[0])?n:"",href:""+e.pathname+e.search+e.hash,key:e.key}}},e.RouteMatch=k,e.Router=function(e){let{children:t,location:n,__experimental__snapshot:o}=e,s=i(e,a);const c=r.useRef(null);c.current||(c.current=new E({location:n,__experimental__snapshot:o,routes:s.routes}));const l=c.current,[u,d]=r.useReducer(()=>({}),{});return l.update(s),b(()=>l.subscribe(()=>{d()}),[]),b(()=>l.updateLocation(n.current).unsubscribe,[n.current.key]),r.createElement(g.Provider,{value:{location:n}},r.createElement(v.Provider,{value:{router:l}},r.createElement(x,null),r.createElement(_,{value:[l.rootMatch,...l.state.matches]},null!=t?t:r.createElement(I,null))))},e.RouterInstance=E,e.cleanPath=z,e.defaultParseSearch=X,e.defaultStringifySearch=Z,e.functionalUpdate=q,e.matchByPath=V,e.matchRoute=$,e.matchRoutes=R,e.parsePathname=K,e.parseSearchWith=ee,e.resolvePath=W,e.stringifySearchWith=te,e.useLoadRoute=T,e.useLocation=S,e.useMatch=N,e.useMatchRoute=F,e.useMatches=D,e.useNavigate=j,e.useParentMatches=function(){const e=P(),t=N(),n=e.state.matches;return n.slice(0,n.findIndex(e=>e.id===t.id)-1)},e.usePrompt=H,e.useResolvePath=M,e.useRouter=P,e.useSearch=function(){return S().current.search},Object.defineProperty(e,"__esModule",{value:!0})})}),_c=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xc="undefined"==typeof window||"Deno"in globalThis;function Ec(){}function Sc(e){return"number"==typeof e&&e>=0&&e!==1/0}function kc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oc(e,t){return"function"==typeof e?e(t):e}function Cc(e,t){return"function"==typeof e?e(t):e}function Pc(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Lc(s,t.options))return!1}else if(!Dc(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Rc(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Tc(t.options.mutationKey)!==Tc(i))return!1}else if(!Dc(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Lc(e,t){return(t?.queryKeyHashFn||Tc)(e)}function Tc(e){return JSON.stringify(e,(e,t)=>Ic(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dc(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>Dc(e[n],t[n])))}function Nc(e,t){if(e===t)return e;const n=Ac(e)&&Ac(t);if(n||Ic(e)&&Ic(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},c=new Set(r);let l=0;for(let u=0;u<s;u++){const r=n?u:i[u];(!n&&c.has(r)||n)&&void 0===e[r]&&void 0===t[r]?(a[r]=void 0,l++):(a[r]=Nc(e[r],t[r]),a[r]===e[r]&&void 0!==e[r]&&l++)}return o===s&&l===o?e:a}return t}function jc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ac(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ic(e){if(!Mc(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Mc(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Mc(e){return"[object Object]"===Object.prototype.toString.call(e)}function $c(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Nc(e,t):t}function Fc(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hc(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Uc=Symbol();function qc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Uc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Bc(e,t){return"function"==typeof e?e(...t):!!e}var zc,Vc,Kc,Wc=e(i(),1),Gc=wc();function Jc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Yc(e,t,n){Jc(e,t),t.set(e,n)}function Qc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Xc(e,t,n){return e.set(Qc(e,t),n),n}function Zc(e,t){return e.get(Qc(e,t))}var el,tl,nl,rl=new(zc=new WeakMap,Vc=new WeakMap,Kc=new WeakMap,class extends _c{constructor(){super(),Yc(this,zc,void 0),Yc(this,Vc,void 0),Yc(this,Kc,void 0),Xc(Kc,this,e=>{if(!xc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Zc(Vc,this)||this.setEventListener(Zc(Kc,this))}onUnsubscribe(){this.hasListeners()||(Zc(Vc,this)?.call(this),Xc(Vc,this,void 0))}setEventListener(e){Xc(Kc,this,e),Zc(Vc,this)?.call(this),Xc(Vc,this,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){Zc(zc,this)!==e&&(Xc(zc,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof Zc(zc,this)?Zc(zc,this):"hidden"!==globalThis.document?.visibilityState}}),ol=new(el=new WeakMap,tl=new WeakMap,nl=new WeakMap,class extends _c{constructor(){super(),Yc(this,el,!0),Yc(this,tl,void 0),Yc(this,nl,void 0),Xc(nl,this,e=>{if(!xc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){Zc(tl,this)||this.setEventListener(Zc(nl,this))}onUnsubscribe(){this.hasListeners()||(Zc(tl,this)?.call(this),Xc(tl,this,void 0))}setEventListener(e){Xc(nl,this,e),Zc(tl,this)?.call(this),Xc(tl,this,e(this.setOnline.bind(this)))}setOnline(e){Zc(el,this)!==e&&(Xc(el,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return Zc(el,this)}});function il(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function sl(e){return Math.min(1e3*2**e,3e4)}function al(e){return"online"!==(e??"online")||ol.isOnline()}var cl=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ll(e){return e instanceof cl}function ul(e){let t,n=!1,r=0,o=!1;const i=il(),s=()=>rl.isFocused()&&("always"===e.networkMode||ol.isOnline())&&e.canRun(),a=()=>al(e.networkMode)&&e.canRun(),c=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),i.resolve(n))},l=n=>{o||(o=!0,e.onError?.(n),t?.(),i.reject(n))},u=()=>new Promise(n=>{t=e=>{(o||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),d=()=>{if(o)return;let t;const i=0===r?e.initialPromise:void 0;try{t=i??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(c).catch(t=>{if(o)return;const i=e.retry??(xc?0:3),a=e.retryDelay??sl,c="function"==typeof a?a(r,t):a,h=!0===i||"number"==typeof i&&r<i||"function"==typeof i&&i(r,t);var p;!n&&h?(r++,e.onFail?.(r,t),(p=c,new Promise(e=>{setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{n?l(t):d()})):l(t)})};return{promise:i,cancel:t=>{o||(l(new cl(t)),e.abort?.())},continue:()=>(t?.(),i),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),i)}}var dl=e=>setTimeout(e,0);var hl,pl,fl,gl,ml,vl,yl,bl,wl,_l=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=dl;const i=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),xl=(hl=new WeakMap,class{constructor(){Yc(this,hl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sc(this.gcTime)&&Xc(hl,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xc?1/0:3e5))}clearGcTimeout(){Zc(hl,this)&&(clearTimeout(Zc(hl,this)),Xc(hl,this,void 0))}});function El(e,t){Jc(e,t),t.add(e)}var Sl,kl=(pl=new WeakMap,fl=new WeakMap,gl=new WeakMap,ml=new WeakMap,vl=new WeakMap,yl=new WeakMap,bl=new WeakMap,wl=new WeakSet,class extends xl{constructor(e){super(),El(this,wl),Yc(this,pl,void 0),Yc(this,fl,void 0),Yc(this,gl,void 0),Yc(this,ml,void 0),Yc(this,vl,void 0),Yc(this,yl,void 0),Yc(this,bl,void 0),Xc(bl,this,!1),Xc(yl,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],Xc(ml,this,e.client),Xc(gl,this,Zc(ml,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Xc(pl,this,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??Zc(pl,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return Zc(vl,this)?.promise}setOptions(e){this.options={...Zc(yl,this),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Zc(gl,this).remove(this)}setData(e,t){const n=$c(this.state.data,e,this.options);return Qc(wl,this,Ol).call(this,{data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){Qc(wl,this,Ol).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){const t=Zc(vl,this)?.promise;return Zc(vl,this)?.cancel(e),t?t.then(Ec).catch(Ec):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Zc(pl,this))}isActive(){return this.observers.some(e=>!1!==Cc(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Oc(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!kc(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),Zc(vl,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),Zc(vl,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Zc(gl,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(Zc(vl,this)&&(Zc(bl,this)?Zc(vl,this).cancel({revert:!0}):Zc(vl,this).cancelRetry()),this.scheduleGc()),Zc(gl,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Qc(wl,this,Ol).call(this,{type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(Zc(vl,this))return Zc(vl,this).continueRetry(),Zc(vl,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Xc(bl,this,!0),n.signal)})},o=()=>{const e=qc(this.options,t),n=(()=>{const e={client:Zc(ml,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return Xc(bl,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:Zc(ml,this),state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),Xc(fl,this,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||Qc(wl,this,Ol).call(this,{type:"fetch",meta:i.fetchOptions?.meta});const s=e=>{ll(e)&&e.silent||Qc(wl,this,Ol).call(this,{type:"error",error:e}),ll(e)||(Zc(gl,this).config.onError?.(e,this),Zc(gl,this).config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return Xc(vl,this,ul({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void s(t)}Zc(gl,this).config.onSuccess?.(e,this),Zc(gl,this).config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else s(new Error(`${this.queryHash} data is undefined`))},onError:s,onFail:(e,t)=>{Qc(wl,this,Ol).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Qc(wl,this,Ol).call(this,{type:"pause"})},onContinue:()=>{Qc(wl,this,Ol).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),Zc(vl,this).start()}});function Ol(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Cl(t.data,this.options),fetchMeta:e.meta??null};case"success":return Xc(fl,this,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return ll(n)&&n.revert&&Zc(fl,this)?{...Zc(fl,this),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),_l.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),Zc(gl,this).notify({query:this,type:"updated",action:e})})}function Cl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:al(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Pl,Rl,Ll,Tl,Dl,Nl,jl,Al=(Sl=new WeakMap,class extends _c{constructor(e={}){super(),Yc(this,Sl,void 0),this.config=e,Xc(Sl,this,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Lc(r,t);let i=this.get(o);return i||(i=new kl({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){Zc(Sl,this).has(e.queryHash)||(Zc(Sl,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Zc(Sl,this).get(e.queryHash);t&&(e.destroy(),t===e&&Zc(Sl,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){_l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Zc(Sl,this).get(e)}getAll(){return[...Zc(Sl,this).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Pc(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Pc(e,t)):t}notify(e){_l.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_l.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_l.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),Il=(Pl=new WeakMap,Rl=new WeakMap,Ll=new WeakMap,Tl=new WeakSet,class extends xl{constructor(e){super(),El(this,Tl),Yc(this,Pl,void 0),Yc(this,Rl,void 0),Yc(this,Ll,void 0),this.mutationId=e.mutationId,Xc(Rl,this,e.mutationCache),Xc(Pl,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Zc(Pl,this).includes(e)||(Zc(Pl,this).push(e),this.clearGcTimeout(),Zc(Rl,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Xc(Pl,this,Zc(Pl,this).filter(t=>t!==e)),this.scheduleGc(),Zc(Rl,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Zc(Pl,this).length||("pending"===this.state.status?this.scheduleGc():Zc(Rl,this).remove(this))}continue(){return Zc(Ll,this)?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{Qc(Tl,this,Ml).call(this,{type:"continue"})};Xc(Ll,this,ul({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Qc(Tl,this,Ml).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Qc(Tl,this,Ml).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Zc(Rl,this).canRun(this)}));const n="pending"===this.state.status,r=!Zc(Ll,this).canStart();try{if(n)t();else{Qc(Tl,this,Ml).call(this,{type:"pending",variables:e,isPaused:r}),await(Zc(Rl,this).config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&Qc(Tl,this,Ml).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const o=await Zc(Ll,this).start();return await(Zc(Rl,this).config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(Zc(Rl,this).config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),Qc(Tl,this,Ml).call(this,{type:"success",data:o}),o}catch(o){try{throw await(Zc(Rl,this).config.onError?.(o,e,this.state.context,this)),await(this.options.onError?.(o,e,this.state.context)),await(Zc(Rl,this).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,o,e,this.state.context)),o}finally{Qc(Tl,this,Ml).call(this,{type:"error",error:o})}}finally{Zc(Rl,this).runNext(this)}}});function Ml(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),_l.batch(()=>{Zc(Pl,this).forEach(t=>{t.onMutationUpdate(e)}),Zc(Rl,this).notify({mutation:this,type:"updated",action:e})})}function $l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fl,Hl,Ul,ql,Bl,zl,Vl,Kl,Wl=(Dl=new WeakMap,Nl=new WeakMap,jl=new WeakMap,class extends _c{constructor(e={}){super(),Yc(this,Dl,void 0),Yc(this,Nl,void 0),Yc(this,jl,void 0),this.config=e,Xc(Dl,this,new Set),Xc(Nl,this,new Map),Xc(jl,this,0)}build(e,t,n){var r;const o=new Il({mutationCache:this,mutationId:Xc(jl,this,(r=Zc(jl,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){Zc(Dl,this).add(e);const t=Gl(e);if("string"==typeof t){const n=Zc(Nl,this).get(t);n?n.push(e):Zc(Nl,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(Zc(Dl,this).delete(e)){const t=Gl(e);if("string"==typeof t){const n=Zc(Nl,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&Zc(Nl,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Gl(e);if("string"==typeof t){const n=Zc(Nl,this).get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Gl(e);return"string"==typeof t?(Zc(Nl,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_l.batch(()=>{Zc(Dl,this).forEach(e=>{this.notify({type:"removed",mutation:e})}),Zc(Dl,this).clear(),Zc(Nl,this).clear()})}getAll(){return Array.from(Zc(Dl,this))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Rc(t,e))}findAll(e={}){return this.getAll().filter(t=>Rc(e,t))}notify(e){_l.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return _l.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ec))))}});function Gl(e){return e.options.scope?.id}function Jl(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let n=!1;const l=qc(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=await l((()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})()),{maxPages:s}=t.options,a=o?Hc:Fc;return{pages:a(e.pages,i,s),pageParams:a(e.pageParams,r,s)}};if(o&&i.length){const e="backward"===o,t=e?Ql:Yl,n={pages:i,pageParams:s};a=await u(n,t(r,n),e)}else{const t=e??i.length;do{const e=0===c?s[0]??r.initialPageParam:Yl(r,a);if(c>0&&null==e)break;a=await u(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Yl(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ql(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Xl=(Fl=new WeakMap,Hl=new WeakMap,Ul=new WeakMap,ql=new WeakMap,Bl=new WeakMap,zl=new WeakMap,Vl=new WeakMap,Kl=new WeakMap,class{constructor(e={}){Yc(this,Fl,void 0),Yc(this,Hl,void 0),Yc(this,Ul,void 0),Yc(this,ql,void 0),Yc(this,Bl,void 0),Yc(this,zl,void 0),Yc(this,Vl,void 0),Yc(this,Kl,void 0),Xc(Fl,this,e.queryCache||new Al),Xc(Hl,this,e.mutationCache||new Wl),Xc(Ul,this,e.defaultOptions||{}),Xc(ql,this,new Map),Xc(Bl,this,new Map),Xc(zl,this,0)}mount(){var e;Xc(zl,this,(e=Zc(zl,this),++e)),1===Zc(zl,this)&&(Xc(Vl,this,rl.subscribe(async e=>{e&&(await this.resumePausedMutations(),Zc(Fl,this).onFocus())})),Xc(Kl,this,ol.subscribe(async e=>{e&&(await this.resumePausedMutations(),Zc(Fl,this).onOnline())})))}unmount(){var e;Xc(zl,this,(e=Zc(zl,this),--e)),0===Zc(zl,this)&&(Zc(Vl,this)?.call(this),Xc(Vl,this,void 0),Zc(Kl,this)?.call(this),Xc(Kl,this,void 0))}isFetching(e){return Zc(Fl,this).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Zc(Hl,this).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return Zc(Fl,this).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Zc(Fl,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Oc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Zc(Fl,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Zc(Fl,this).get(r.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return Zc(Fl,this).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return _l.batch(()=>Zc(Fl,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return Zc(Fl,this).get(t.queryHash)?.state}removeQueries(e){const t=Zc(Fl,this);_l.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=Zc(Fl,this);return _l.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_l.batch(()=>Zc(Fl,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ec).catch(Ec)}invalidateQueries(e,t={}){return _l.batch(()=>(Zc(Fl,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_l.batch(()=>Zc(Fl,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ec)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Ec)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Zc(Fl,this).build(this,t);return n.isStaleByTime(Oc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ec).catch(Ec)}fetchInfiniteQuery(e){return e.behavior=Jl(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ec).catch(Ec)}ensureInfiniteQueryData(e){return e.behavior=Jl(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ol.isOnline()?Zc(Hl,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return Zc(Fl,this)}getMutationCache(){return Zc(Hl,this)}getDefaultOptions(){return Zc(Ul,this)}setDefaultOptions(e){Xc(Ul,this,e)}setQueryDefaults(e,t){Zc(ql,this).set(Tc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Zc(ql,this).values()],n={};return t.forEach(t=>{Dc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){Zc(Bl,this).set(Tc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Zc(Bl,this).values()],n={};return t.forEach(t=>{Dc(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Zc(Ul,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lc(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Uc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...Zc(Ul,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Zc(Fl,this).clear(),Zc(Hl,this).clear()}}),Zl=o(e=>{var t=s(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var s,c={},l=null,u=null;for(s in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===c[s]&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.Fragment=r,e.jsx=c,e.jsxs=c}),eu=o((e,t)=>{t.exports=Zl()}),tu=eu(),nu=zr.createContext(void 0),ru=e=>{const t=zr.useContext(nu);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ou=({client:e,children:t})=>(zr.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,tu.jsx)(nu.Provider,{value:e,children:t})),iu=(0,zr.createContext)(null),su={didCatch:!1,error:null},au=class extends zr.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=su}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(su)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(su))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,zr.createElement)(n,e);else{if(void 0===r)throw i;s=r}}return(0,zr.createElement)(iu.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};var cu=function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_CONTENT_GOOGLE_MAPS="local-content-google-maps",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.LEAD_CAPTURE="lead-capture",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e}({}),lu={},uu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=i?.nonce||i?.getAttribute("nonce");o=t.map(t=>{if((t=function(e){return"/sdks-app/v1/"+e}(t))in lu)return;lu[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const i=document.createElement("link");return i.rel=r?"stylesheet":"modulepreload",r||(i.as="script"),i.crossOrigin="",i.href=t,s&&i.setAttribute("nonce",s),document.head.appendChild(i),r?new Promise((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(o.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var o;function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},du=new Gc.ReactLocation,hu=zr.lazy(()=>uu(()=>import("./LocalContent-D_By1RQx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]))),pu=zr.lazy(()=>uu(()=>import("./LocalDemographics-DJ2-OAQf.js"),__vite__mapDeps([33,1,2,3,10,6,11,34,35,36,37,27,38,39,30,40]))),fu=zr.lazy(()=>uu(()=>import("./NeighborhoodHero-CvvE1ltz.js"),__vite__mapDeps([41,1,2,3,12,6,37,38,28,42,43,32]))),gu=zr.lazy(()=>uu(()=>import("./NeighborhoodMap-CW5YonYt.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,37,26,27,28,42,31,32]))),mu=zr.lazy(()=>uu(()=>import("./NeighborhoodCharacteristics-CKDqcqBD.js"),__vite__mapDeps([45,1,2,3,37,25,27,38,46,21,6,23,5,7,8,19,20,11,39,28,42,43,29,31,32]))),vu=zr.lazy(()=>uu(()=>import("./NeighborhoodHighlights-CZPdH88M.js"),__vite__mapDeps([47,1,2,3,23,5,6,7,8,19,20,11,37,48,38,39,28,42,29,32]))),yu=zr.lazy(()=>uu(()=>import("./NeighborhoodDemographics-9bIYm41b.js"),__vite__mapDeps([49,1,2,3,20,6,21,11,34,35,37,27,48,38,39,28,42,30,31,40]))),bu=zr.lazy(()=>uu(()=>import("./NeighborhoodPropertyValueDrivers-BZqsNnYY.js"),__vite__mapDeps([50,1,2,3,5,6,9,19,37,48,38,39,28,42,40]))),wu=zr.lazy(()=>uu(()=>import("./NeighborhoodMatch-D1Ih_N5y.js"),__vite__mapDeps([51,1,2,3,37,26,27,52,48,38,46,21,6,23,5,7,8,19,20,11,25,39,28,42,31,32]))),_u=zr.lazy(()=>uu(()=>import("./NeighborhoodMarketTrends-C9k7JehA.js"),__vite__mapDeps([53,1,2,3,21,6,54,13,36,37,27,48,38,39,28,42,40]))),xu=zr.lazy(()=>uu(()=>import("./NeighborhoodSchools-vdqXmI6x.js"),__vite__mapDeps([55,1,2,3,7,6,21,11,37,25,26,27,48,38,39,28,42,17,30,56,32]))),Eu=zr.lazy(()=>uu(()=>import("./NeighborhoodShowcase-IMXpKRt7.js"),__vite__mapDeps([57,1,2,3,24,6,58,37,59,52,38,28,40]))),Su=zr.lazy(()=>uu(()=>import("./NeighborhoodFeatured-CqLcXNVj.js"),__vite__mapDeps([60,1,2,3,58,37,59,52,38,28,40]))),ku=zr.lazy(()=>uu(()=>import("./LeadCapture-C6J4SFYX.js"),__vite__mapDeps([61,1,2,3,21,6,22,54,12,35,58,37,26,27,38,28,42,30,31,32]))),Ou=({children:e})=>(0,tu.jsx)(Gc.Router,{location:du,routes:[{path:`/sdks-app/v1/${cu.LOCAL_CONTENT}`,element:(0,tu.jsx)(hu,{})},{path:`/sdks-app/v1/${cu.LOCAL_DEMOGRAPHICS}`,element:(0,tu.jsx)(pu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_MAP}`,element:(0,tu.jsx)(gu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_HERO}`,element:(0,tu.jsx)(fu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,tu.jsx)(mu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,tu.jsx)(vu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,tu.jsx)(yu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,tu.jsx)(bu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_MATCH}`,element:(0,tu.jsx)(wu,{})},{path:"/sdks-app/v1/demographics",element:(0,tu.jsx)(pu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_MAP}`,element:(0,tu.jsx)(gu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_HERO}`,element:(0,tu.jsx)(fu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,tu.jsx)(mu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,tu.jsx)(vu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,tu.jsx)(yu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,tu.jsx)(bu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_MATCH}`,element:(0,tu.jsx)(wu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_MARKET_TRENDS}`,element:(0,tu.jsx)(_u,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_SCHOOLS}`,element:(0,tu.jsx)(xu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_SHOWCASE}`,element:(0,tu.jsx)(Eu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_FEATURED}`,element:(0,tu.jsx)(Su,{})},{path:`/sdks-app/v1/${cu.LEAD_CAPTURE}`,element:(0,tu.jsx)(ku,{})}],children:e}),Cu={"--ll-base-unit":"var(--ll-base-unit)","--ll-color-primary":"var(--ll-color-primary)","--ll-color-primary-variant1":"var(--ll-color-primary-variant1)","--ll-color-background":"var(--ll-color-background)","--ll-color-surface":"var(--ll-color-surface)","--ll-color-surface-variant1":"var(--ll-color-surface-variant1)","--ll-color-surface-variant2":"var(--ll-color-surface-variant2)","--ll-color-on-primary":"var(--ll-color-on-primary)","--ll-color-on-primary-variant1":"var(--ll-color-on-primary-variant1)","--ll-color-on-background":"var(--ll-color-on-background)","--ll-color-on-background-variant1":"var(--ll-color-on-background-variant1)","--ll-color-on-surface":"var(--ll-color-on-surface)","--ll-color-on-surface-variant1":"var(--ll-color-on-surface-variant1)","--ll-color-placeholder":"var(--ll-color-placeholder)","--ll-color-disabled":"var(--ll-color-disabled)","--ll-color-border":"var(--ll-color-border)","--ll-color-link":"var(--ll-color-link)","--ll-sdk-title-color":"var(--ll-sdk-title-color)","--ll-color-error":"var(--ll-color-error)","--ll-border-radius-base-unit":"var(--ll-border-radius-base-unit)","--ll-border-radius-small":"var(--ll-border-radius-small)","--ll-border-radius-medium":"var(--ll-border-radius-medium)","--ll-border-radius-large":"var(--ll-border-radius-large)","--ll-shadow-small":"var(--ll-shadow-small)","--ll-shadow-medium":"var(--ll-shadow-medium)","--ll-spacing-base-unit":"var(--ll-spacing-base-unit)","--ll-spacing-auto":"var(--ll-spacing-auto)","--ll-spacing-xx-small":"var(--ll-spacing-xx-small)","--ll-spacing-x-small":"var(--ll-spacing-x-small)","--ll-spacing-small":"var(--ll-spacing-small)","--ll-spacing-medium":"var(--ll-spacing-medium)","--ll-spacing-large":"var(--ll-spacing-large)","--ll-spacing-x-large":"var(--ll-spacing-x-large)","--ll-spacing-xx-large":"var(--ll-spacing-xx-large)","--ll-spacing-xxx-large":"var(--ll-spacing-xxx-large)","--ll-font-family":"var(--ll-font-family)","--ll-font-family-mono":"var(--ll-font-family-mono)","--ll-font-size-base":"var(--ll-font-size-base)","--ll-font-size-h1":"var(--ll-font-size-h1)","--ll-font-size-h2":"var(--ll-font-size-h2)","--ll-font-size-h3":"var(--ll-font-size-h3)","--ll-font-size-h4":"var(--ll-font-size-h4)","--ll-font-size-h5":"var(--ll-font-size-h5)","--ll-font-size-h6":"var(--ll-font-size-h6)","--ll-font-size-p":"var(--ll-font-size-p)","--ll-font-size-caption-1":"var(--ll-font-size-caption-1)","--ll-font-size-caption-2":"var(--ll-font-size-caption-2)","--ll-font-weight-light":"var(--ll-font-weight-light)","--ll-font-weight-normal":"var(--ll-font-weight-normal)","--ll-font-weight-medium":"var(--ll-font-weight-medium)","--ll-font-weight-semibold":"var(--ll-font-weight-semibold)","--ll-font-weight-bold":"var(--ll-font-weight-bold)"},Pu=r({blueColors:()=>Tu,neutralColors:()=>Lu,primaryColors:()=>Ru}),Ru={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Lu={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},Tu={colorBlue70:"#0056D3"},Du=r({transitions:()=>Nu}),Nu={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},ju=r({screenSizes:()=>Au}),Au={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},Iu={colors:Pu,...Du,...ju},Mu=({SVGElement:e,fill:t=`${Cu["--ll-color-on-background"]}`,className:n,height:r=24,width:o=24})=>(0,tu.jsx)("div",{className:`${n} [&>svg]:fill-inherit`,style:{height:`${r}px`,width:`${o}px`,fill:t},children:(0,tu.jsx)(e,{})}),$u=({children:e,variant:t="p",align:n,color:r="--ll-color-on-background",lineClamp:o,noMargin:i,lineHeight:s,weight:a="normal",family:c="sans-serif",className:l,textTransform:u="none",letterSpacing:d,fontVariant:h="initial"})=>(0,tu.jsx)(`${["caption1","caption2","p"].includes(t)?"p":t}`,{style:{color:`${r in Cu?Cu[r]:r}`,fontVariant:`${h}`,lineHeight:s||"1.45",letterSpacing:`${d}`,fontWeight:Cu[a]},className:`${l} \n m-0 mb-2\n data-[nomargin=true]:mb-0\n data-[align=left]:text-left\n data-[align=center]:text-center\n data-[align=right]:text-right\n data-[variant=h1]:text-ll-font-size-h1\n data-[variant=h2]:text-ll-font-size-h2\n data-[variant=h3]:text-ll-font-size-h3\n data-[variant=h4]:text-ll-font-size-h4\n data-[variant=h5]:text-ll-font-size-h5\n data-[variant=h6]:text-ll-font-size-h6\n data-[variant=p]:text-ll-font-size-p\n data-[variant=caption1]:text-ll-font-size-caption-1\n data-[variant=caption2]:text-ll-font-size-caption-2\n data-[texttransform=capitalize]:capitalize\n data-[texttransform=uppercase]:uppercase\n data-[texttransform=lowercase]:lowercase\n data-[texttransform=none]:normal-case\n data-[family=sans-serif]:font-sans\n data-[family=mono]:font-mono\n\n data-[lineclamp=none]:line-clamp-none\n data-[lineclamp=none]:whitespace-nowrap\n data-[lineclamp="1"]:line-clamp-1\n data-[lineclamp="2"]:line-clamp-2\n data-[lineclamp="3"]:line-clamp-3\n data-[lineclamp="4"]:line-clamp-4\n data-[lineclamp="5"]:line-clamp-5\n data-[lineclamp="6"]:line-clamp-g\n`,"data-align":n,"data-variant":t,"data-texttransform":u,"data-family":c,"data-nomargin":i,"data-lineclamp":o,children:e});function Fu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Hu(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Fu(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Fu(e[t],null)}}}}function Uu(...e){return zr.useCallback(Hu(...e),e)}var qu=Symbol.for("react.lazy"),Bu=zr[" use ".trim().toString()];function zu(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===qu&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Vu(e){const t=zr.forwardRef((e,t)=>{let{children:n,...r}=e;if(zu(n)&&"function"==typeof Bu&&(n=Bu(n._payload)),zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?Hu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ku=Symbol("radix.slottable");function Wu(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ku}var Gu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=Vu(e),n=zr.forwardRef((e,n)=>{let{children:r,...o}=e;zu(r)&&"function"==typeof Bu&&(r=Bu(r._payload));const i=zr.Children.toArray(r),s=i.find(Wu);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,tu.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,tu.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,tu.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ju=zr.forwardRef((e,t)=>(0,tu.jsx)(Gu.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Ju.displayName="Label";var Yu=Ju,Qu=e=>(0,tu.jsx)(Yu,{className:"\n text-ll-font-size-p text-ll-on-background font-sans\n",...e}),Xu=({size:e="medium",image:t,color:n="default"})=>t?(0,tu.jsx)("img",{src:"/sdks-app/v1/assets/spinner-qYD5cm1L.gif",alt:"Loading animation",width:90,height:90,className:"h-[90px] w-[90px] max-h-auto"}):(0,tu.jsx)("div",{className:"\n border-solid \n border-ll-on-surface-variant1\n border-b-[transparent]\n rounded-[50%]\n inline-block\n border-box\n animate-spin\n\n data-[color=white]:border-white\n data-[color=white]:border-b-[transparent]\n\n data-[size=small]:h-4\n data-[size=small]:w-4\n data-[size=small]:border-2\n\n data-[size=medium]:h-6\n data-[size=medium]:w-6\n data-[size=medium]:border-4\n\n data-[size=large]:h-8\n data-[size=large]:w-8\n data-[size=large]:border-[6px]\n","data-size":e,"data-color":n}),Zu=zr.forwardRef(({children:e,disabled:t=!1,onClick:n,variant:r="contained",startAdornment:o,size:i="medium",type:s="button",isLoading:a,props:c},l)=>(0,tu.jsx)("button",{"data-variant":r,"data-size":i,onClick:e=>{t||n&&(a||n(e))},disabled:t||a,className:"\n group\n font-normal rounded inline-flex items-center justify-center cursor-pointer\n bg-transparent border-0 box-border h-10 py-0 px-3\n text-ll-font-size-p\n\n disabled:cursor-default\n\n data-[size=small]:h-8\n data-[size=small]:px-2\n data-[size=small]:text-ll-font-size-caption-1\n\n data-[size=large]:h-12\n data-[size=large]:px-4\n\n data-[variant=contained]:bg-ll-primary\n data-[variant=contained]:text-ll-on-primary\n data-[variant=contained]:border\n data-[variant=contained]:border-solid\n data-[variant=contained]:border-transparent\n data-[variant=contained]:hover:bg-ll-primary-variant1\n data-[variant=contained]:disabled:bg-ll-disabled\n \n\n data-[variant=outlined]:bg-ll-background\n data-[variant=outlined]:text-ll-primary\n data-[variant=outlined]:border\n data-[variant=outlined]:border-solid\n data-[variant=outlined]:border-ll-primary\n data-[variant=outlined]:hover:bg-ll-surface-variant1\n data-[variant=outlined]:disabled:bg-ll-disabled\n data-[variant=outlined]:disabled:text-ll-on-primary\n data-[variant=outlined]:disabled:border-ll-on-background\n\n data-[variant=text]:text-ll-on-background\n",type:s,ref:l,...c,children:a?(0,tu.jsx)(Xu,{}):(0,tu.jsxs)(tu.Fragment,{children:[o&&(0,tu.jsx)("div",{className:"\n flex items-center mr-2 ml-1\n [&>svg]:fill-current [&>svg]:h-5 [&>svg]:w-5\n\n group-data-[size=small]:[&>svg]:h-3\n group-data-[size=small]:[&>svg]:w-3\n\n group-data-[size=large]:[&>svg]:h-6\n group-data-[size=large]:[&>svg]:w-6\n",children:o}),e]})}));Zu.displayName="Button";var ed=e=>zr.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 8.59L13.59 5L15 6.41L11.41 10L15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59Z"}));function td(e,[t,n]){return Math.min(n,Math.max(t,e))}function nd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function rd(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>zr.createContext(e));return function(n){const r=n?.[e]||t;return zr.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=zr.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,a=n?.[e]?.[i]||o,c=zr.useMemo(()=>s,Object.values(s));return(0,tu.jsx)(a.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const a=s?.[e]?.[i]||o,c=zr.useContext(a);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},od(r,...t)]}function od(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return zr.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function id(e){const t=sd(e),n=zr.forwardRef((e,n)=>{const{children:r,...o}=e,i=zr.Children.toArray(r),s=i.find(ld);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,tu.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,tu.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function sd(e){const t=zr.forwardRef((e,t)=>{const{children:n,...r}=e;if(zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?Hu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(0,zr.forwardRef)(({name:e,value:t,label:n,placeholder:r,className:o,autofocus:i=!1,hasError:s=!1,adornment:a,onBlur:c,onFocus:l,onClear:u,onChange:d},h)=>{const p=(0,zr.useId)(),f=(0,zr.useRef)(null),g=(0,zr.useRef)(null);(0,zr.useImperativeHandle)(h,()=>({focus:()=>{f?.current?.focus()},get input(){return f.current},get container(){return g.current}}));const m=(0,zr.useMemo)(()=>n?(0,tu.jsx)(Qu,{htmlFor:p,style:{lineHeight:"26px"},children:n}):null,[n]);return(0,tu.jsxs)("div",{className:"\n flex flex-col flex-1\n",ref:g,children:[m,(0,tu.jsxs)("div",{className:"\n border flex items-center bg-ll-background\n rounded-sm focus-within:shadow-lg\n data-[has-error=true]:border-ll-error\n data-[has-error=false]:border-ll-border\n","data-has-error":s,children:[a&&(0,tu.jsx)("span",{className:"\n h-full w-[20px] flex justify-center items-center mx-2\n",children:a}),(0,tu.jsx)("input",{type:"text",className:`${o} \n border flex-1 text-ll-on-background h-[30px]\n inline-flex justify-center items-center py-0 px-2\n leading-none font-sans text-ll-font-size-h6 md:text-ll-font-size-p \n `,ref:f,name:e,autoFocus:i,id:p,value:t,onBlur:c,onFocus:l,onChange:d,placeholder:r,style:a&&{width:"-webkit-fill-available"}}),u&&(0,tu.jsx)(Zu,{size:"small",variant:"text",onClick:u,children:(0,tu.jsx)(ed,{})})]})]})}).displayName="Input";var ad,cd=Symbol("radix.slottable");function ld(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===cd}function ud(e){const t=e+"CollectionProvider",[n,r]=rd(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=zr.useRef(null),i=zr.useRef(new Map).current;return(0,tu.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const a=e+"CollectionSlot",c=id(a),l=zr.forwardRef((e,t)=>{const{scope:n,children:r}=e;return(0,tu.jsx)(c,{ref:Uu(t,i(a,n).collectionRef),children:r})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=id(u),p=zr.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,s=zr.useRef(null),a=Uu(t,s),c=i(u,n);return zr.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)})),(0,tu.jsx)(h,{[d]:"",ref:a,children:r})});return p.displayName=u,[{Provider:s,Slot:l,ItemSlot:p},function(t){const n=i(e+"CollectionConsumer",t);return zr.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var dd=new WeakMap;ad=new WeakMap,Map;function hd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=pd(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function pd(e){return e!=e||0===e?0:Math.trunc(e)}var fd=zr.createContext(void 0);function gd(e){const t=zr.useContext(fd);return e||t||"ltr"}var md=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=id(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,tu.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vd(e){const t=zr.useRef(e);return zr.useEffect(()=>{t.current=e}),zr.useMemo(()=>(...e)=>t.current?.(...e),[])}var yd,bd="dismissableLayer.update",wd="dismissableLayer.pointerDownOutside",_d="dismissableLayer.focusOutside",xd=zr.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ed=zr.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=zr.useContext(xd),[u,d]=zr.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=zr.useState({}),f=Uu(t,e=>d(e)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,_=function(e,t=globalThis?.document){const n=vd(e),r=zr.useRef(!1),o=zr.useRef(()=>{});return zr.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){kd(wd,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...l.branches].some(e=>e.contains(t));w&&!n&&(o?.(e),s?.(e),e.defaultPrevented||a?.())},h),x=function(e,t=globalThis?.document){const n=vd(e),r=zr.useRef(!1);return zr.useEffect(()=>{const e=e=>{e.target&&!r.current&&kd(_d,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...l.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||a?.())},h);return function(e,t=globalThis?.document){const n=vd(e);zr.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},h),zr.useEffect(()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(yd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Sd(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=yd)}},[u,h,n,l]),zr.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Sd())},[u,l]),zr.useEffect(()=>{const e=()=>p({});return document.addEventListener(bd,e),()=>document.removeEventListener(bd,e)},[]),(0,tu.jsx)(md.div,{...c,ref:f,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:nd(e.onFocusCapture,x.onFocusCapture),onBlurCapture:nd(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:nd(e.onPointerDownCapture,_.onPointerDownCapture)})});Ed.displayName="DismissableLayer";function Sd(){const e=new CustomEvent(bd);document.dispatchEvent(e)}function kd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Wc.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}zr.forwardRef((e,t)=>{const n=zr.useContext(xd),r=zr.useRef(null),o=Uu(t,r);return zr.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,tu.jsx)(md.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var Od=0;function Cd(){zr.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pd()),document.body.insertAdjacentElement("beforeend",e[1]??Pd()),Od++,()=>{1===Od&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Od--}},[])}function Pd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Rd="focusScope.autoFocusOnMount",Ld="focusScope.autoFocusOnUnmount",Td={bubbles:!1,cancelable:!0},Dd=zr.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=zr.useState(null),l=vd(o),u=vd(i),d=zr.useRef(null),h=Uu(t,e=>c(e)),p=zr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;zr.useEffect(()=>{if(r){let e=function(e){if(p.paused||!a)return;const t=e.target;a.contains(t)?d.current=t:Id(d.current,{select:!0})},t=function(e){if(p.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||Id(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Id(a)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,p.paused]),zr.useEffect(()=>{if(a){Md.add(p);const t=document.activeElement;if(!a.contains(t)){const n=new CustomEvent(Rd,Td);a.addEventListener(Rd,l),a.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Id(r,{select:t}),document.activeElement!==n)return}((e=Nd(a),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Id(a))}return()=>{a.removeEventListener(Rd,l),setTimeout(()=>{const e=new CustomEvent(Ld,Td);a.addEventListener(Ld,u),a.dispatchEvent(e),e.defaultPrevented||Id(t??document.body,{select:!0}),a.removeEventListener(Ld,u),Md.remove(p)},0)}}var e},[a,l,u,p]);const f=zr.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Nd(e);return[jd(t,e),jd(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Id(i,{select:!0})):(e.preventDefault(),n&&Id(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,tu.jsx)(md.div,{tabIndex:-1,...s,ref:h,onKeyDown:f})});function Nd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jd(e,t){for(const n of e)if(!Ad(n,{upTo:t}))return n}function Ad(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Id(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Dd.displayName="FocusScope";var Md=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$d(e,t),e.unshift(t)},remove(t){e=$d(e,t),e[0]?.resume()}}}();function $d(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Fd=globalThis?.document?zr.useLayoutEffect:()=>{},Hd=zr[" useId ".trim().toString()]||(()=>{}),Ud=0;function qd(e){const[t,n]=zr.useState(Hd());return Fd(()=>{e||n(e=>e??String(Ud++))},[e]),e||(t?`radix-${t}`:"")}var Bd=["top","right","bottom","left"],zd=Math.min,Vd=Math.max,Kd=Math.round,Wd=Math.floor,Gd=e=>({x:e,y:e}),Jd={left:"right",right:"left",bottom:"top",top:"bottom"},Yd={start:"end",end:"start"};function Qd(e,t,n){return Vd(e,zd(t,n))}function Xd(e,t){return"function"==typeof e?e(t):e}function Zd(e){return e.split("-")[0]}function eh(e){return e.split("-")[1]}function th(e){return"x"===e?"y":"x"}function nh(e){return"y"===e?"height":"width"}function rh(e){return["top","bottom"].includes(Zd(e))?"y":"x"}function oh(e){return th(rh(e))}function ih(e){return e.replace(/start|end/g,e=>Yd[e])}function sh(e){return e.replace(/left|right|bottom|top/g,e=>Jd[e])}function ah(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ch(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function lh(e,t,n){let{reference:r,floating:o}=e;const i=rh(t),s=oh(t),a=nh(s),c=Zd(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(eh(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1)}return p}async function uh(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Xd(t,e),f=ah(p),g=a[h?"floating"===d?"reference":"floating":d],m=ch(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ch(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-w.top+f.top)/b.y,bottom:(w.bottom-m.bottom+f.bottom)/b.y,left:(m.left-w.left+f.left)/b.x,right:(w.right-m.right+f.right)/b.x}}function dh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hh(e){return Bd.some(t=>e[t]>=0)}function ph(){return"undefined"!=typeof window}function fh(e){return vh(e)?(e.nodeName||"").toLowerCase():"#document"}function gh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mh(e){var t;return null==(t=(vh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vh(e){return!!ph()&&(e instanceof Node||e instanceof gh(e).Node)}function yh(e){return!!ph()&&(e instanceof Element||e instanceof gh(e).Element)}function bh(e){return!!ph()&&(e instanceof HTMLElement||e instanceof gh(e).HTMLElement)}function wh(e){return!(!ph()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof gh(e).ShadowRoot)}function _h(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ch(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xh(e){return["table","td","th"].includes(fh(e))}function Eh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(sv){return!1}})}function Sh(e){const t=kh(),n=yh(e)?Ch(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function kh(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Oh(e){return["html","body","#document"].includes(fh(e))}function Ch(e){return gh(e).getComputedStyle(e)}function Ph(e){return yh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rh(e){if("html"===fh(e))return e;const t=e.assignedSlot||e.parentNode||wh(e)&&e.host||mh(e);return wh(t)?t.host:t}function Lh(e){const t=Rh(e);return Oh(t)?e.ownerDocument?e.ownerDocument.body:e.body:bh(t)&&_h(t)?t:Lh(t)}function Th(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Lh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=gh(o);if(i){const e=Dh(s);return t.concat(s,s.visualViewport||[],_h(o)?o:[],e&&n?Th(e):[])}return t.concat(o,Th(o,[],n))}function Dh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nh(e){const t=Ch(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bh(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Kd(n)!==i||Kd(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function jh(e){return yh(e)?e:e.contextElement}function Ah(e){const t=jh(e);if(!bh(t))return Gd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Nh(t);let s=(i?Kd(n.width):n.width)/r,a=(i?Kd(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}var Ih=Gd(0);function Mh(e){const t=gh(e);return kh()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ih}function $h(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=jh(e);let s=Gd(1);t&&(r?yh(r)&&(s=Ah(r)):s=Ah(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==gh(e))&&t}(i,n,r)?Mh(i):Gd(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=gh(i),t=r&&yh(r)?gh(r):r;let n=e,o=Dh(n);for(;o&&r&&t!==n;){const e=Ah(o),t=o.getBoundingClientRect(),r=Ch(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,n=gh(o),o=Dh(n)}}return ch({width:u,height:d,x:c,y:l})}function Fh(e,t){const n=Ph(e).scrollLeft;return t?t.left+n:$h(mh(e)).left+n}function Hh(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Fh(e,r)),y:r.top+t.scrollTop}}function Uh(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=gh(e),r=mh(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=kh();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=mh(e),n=Ph(e),r=e.ownerDocument.body,o=Vd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Fh(e);const a=-n.scrollTop;return"rtl"===Ch(r).direction&&(s+=Vd(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(mh(e));else if(yh(t))r=function(e,t){const n=$h(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bh(e)?Ah(e):Gd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Mh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ch(r)}function qh(e,t){const n=Rh(e);return!(n===t||!yh(n)||Oh(n))&&("fixed"===Ch(n).position||qh(n,t))}function Bh(e,t){const n=t.get(e);if(n)return n;let r=Th(e,[],!1).filter(e=>yh(e)&&"body"!==fh(e)),o=null;const i="fixed"===Ch(e).position;let s=i?Rh(e):e;for(;yh(s)&&!Oh(s);){const t=Ch(s),n=Sh(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||_h(s)&&!n&&qh(e,s))?r=r.filter(e=>e!==s):o=t,s=Rh(s)}return t.set(e,r),r}function zh(e,t,n){const r=bh(t),o=mh(t),i="fixed"===n,s=$h(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Gd(0);if(r||!r&&!i)if(("body"!==fh(t)||_h(o))&&(a=Ph(t)),r){const e=$h(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Fh(o));const l=!o||r||i?Gd(0):Hh(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function Vh(e){return"static"===Ch(e).position}function Kh(e,t){if(!bh(e)||"fixed"===Ch(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mh(e)===n&&(n=n.ownerDocument.body),n}function Wh(e,t){const n=gh(e);if(Eh(e))return n;if(!bh(e)){let t=Rh(e);for(;t&&!Oh(t);){if(yh(t)&&!Vh(t))return t;t=Rh(t)}return n}let r=Kh(e,t);for(;r&&xh(r)&&Vh(r);)r=Kh(r,t);return r&&Oh(r)&&Vh(r)&&!Sh(r)?n:r||function(e){let t=Rh(e);for(;bh(t)&&!Oh(t);){if(Sh(t))return t;if(Eh(t))return null;t=Rh(t)}return null}(e)||n}var Gh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=mh(r),a=!!t&&Eh(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Gd(1);const u=Gd(0),d=bh(r);if((d||!d&&!i)&&(("body"!==fh(r)||_h(s))&&(c=Ph(r)),bh(r))){const e=$h(r);l=Ah(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||i?Gd(0):Hh(s,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}},getDocumentElement:mh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Eh(t)?[]:Bh(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((e,n)=>{const r=Uh(t,n,o);return e.top=Vd(r.top,e.top),e.right=zd(r.right,e.right),e.bottom=zd(r.bottom,e.bottom),e.left=Vd(r.left,e.left),e},Uh(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Wh,getElementRects:async function(e){const t=this.getOffsetParent||Wh,n=this.getDimensions,r=await n(e.floating);return{reference:zh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Nh(e);return{width:t,height:n}},getScale:Ah,isElement:yh,isRTL:function(e){return"rtl"===Ch(e).direction}};function Jh(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=jh(e),u=o||i?[...l?Th(l):[],...Th(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=l&&a?function(e,t){let n,r=null;const o=mh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p={rootMargin:-Wd(u)+"px "+-Wd(o.clientWidth-(l+d))+"px "+-Wd(o.clientHeight-(u+h))+"px "+-Wd(l)+"px",threshold:Vd(0,zd(1,c))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!f)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(sv){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(l,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let g=c?$h(e):null;return c&&function t(){const r=$h(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),d?.(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(h)}}var Yh=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Zd(n),a=eh(n),c="y"===rh(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Xd(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Qh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Xd(e,t),l={x:n,y:r},u=await uh(t,c),d=rh(Zd(o)),h=th(d);let p=l[h],f=l[d];if(i){const e="y"===h?"bottom":"right";p=Qd(p+u["y"===h?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=Qd(f+u["y"===d?"top":"left"],f,f-u[e])}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},Xh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=Xd(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Zd(o),y=rh(a),b=Zd(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),_=h||(b||!g?[sh(a)]:function(e){const t=sh(e);return[ih(e),t,ih(t)]}(a)),x="none"!==f;!h&&x&&_.push(...function(e,t,n,r){const o=eh(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Zd(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ih)))),i}(a,g,f,w));const E=[a,..._],S=await uh(t,m),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=eh(e),o=oh(e),i=nh(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=sh(s)),[s,sh(s)]}(o,s,w);k.push(S[e[0]],S[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var C,P;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=O.filter(e=>{if(x){const t=rh(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Zh=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Xd(e,t),u=await uh(t,l),d=Zd(o),h=eh(o),p="y"===rh(o),{width:f,height:g}=i.floating;let m,v;"top"===d||"bottom"===d?(m=d,v=h===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,m="end"===h?"top":"bottom");const y=g-u.top-u.bottom,b=f-u.left-u.right,w=zd(g-u[m],y),_=zd(f-u[v],b),x=!t.middlewareData.shift;let E=w,S=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),x&&!h){const e=Vd(u.left,0),t=Vd(u.right,0),n=Vd(u.top,0),r=Vd(u.bottom,0);p?S=f-2*(0!==e||0!==t?e+t:Vd(u.left,u.right)):E=g-2*(0!==n||0!==r?n+r:Vd(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:E});const k=await s.getDimensions(a.floating);return f!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}},ep=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xd(e,t);switch(r){case"referenceHidden":{const e=dh(await uh(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:hh(e)}}}case"escaped":{const e=dh(await uh(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:hh(e)}}}default:return{}}}}},tp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Xd(e,t)||{};if(null==l)return{};const d=ah(u),h={x:n,y:r},p=oh(o),f=nh(p),g=await s.getDimensions(l),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],_=h[p]-i.reference[p],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let E=x?x[b]:0;E&&await(null==s.isElement?void 0:s.isElement(x))||(E=a.floating[b]||i.floating[f]);const S=w/2-_/2,k=E/2-g[f]/2-1,O=zd(d[v],k),C=zd(d[y],k),P=O,R=E-g[f]-C,L=E/2-g[f]/2+S,T=Qd(P,L,R),D=!c.arrow&&null!=eh(o)&&L!==T&&i.reference[f]/2-(L<P?O:C)-g[f]/2<0,N=D?L<P?L-P:L-R:0;return{[p]:h[p]+N,data:{[p]:T,centerOffset:L-T-N,...D&&{alignmentOffset:N}},reset:D}}}),np=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Xd(e,t),u={x:n,y:r},d=rh(o),h=th(d);let p=u[h],f=u[d];const g=Xd(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+m.mainAxis,n=i.reference[h]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(Zd(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}},rp=(e,t,n)=>{const r=new Map,o={platform:Gh,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lh(l,r,c),h=r,p={},f=0;for(let g=0;g<a.length;g++){const{name:n,fn:i}=a[g],{x:m,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=lh(l,h,c))),g=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},op="undefined"!=typeof document?zr.useLayoutEffect:zr.useEffect;function ip(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ip(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ip(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function sp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(e,t){const n=sp(e);return Math.round(t*n)/n}function cp(e){const t=zr.useRef(e);return op(()=>{t.current=e}),t}var lp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?tp({element:n.current,padding:r}).fn(t):{}:n?tp({element:n,padding:r}).fn(t):{};var o}}),up=(e,t)=>({...Yh(e),options:[e,t]}),dp=(e,t)=>({...Qh(e),options:[e,t]}),hp=(e,t)=>({...np(e),options:[e,t]}),pp=(e,t)=>({...Xh(e),options:[e,t]}),fp=(e,t)=>({...Zh(e),options:[e,t]}),gp=(e,t)=>({...ep(e),options:[e,t]}),mp=(e,t)=>({...lp(e),options:[e,t]}),vp=zr.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,tu.jsx)(md.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,tu.jsx)("polygon",{points:"0,0 30,0 15,10"})})});vp.displayName="Arrow";var yp=vp;var bp="Popper",[wp,_p]=rd(bp),[xp,Ep]=wp(bp),Sp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=zr.useState(null);return(0,tu.jsx)(xp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Sp.displayName=bp;var kp="PopperAnchor",Op=zr.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ep(kp,n),s=zr.useRef(null),a=Uu(t,s);return zr.useEffect(()=>{i.onAnchorChange(r?.current||s.current)}),r?null:(0,tu.jsx)(md.div,{...o,ref:a})});Op.displayName=kp;var Cp="PopperContent",[Pp,Rp]=wp(Cp),Lp=zr.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:f,...g}=e,m=Ep(Cp,n),[v,y]=zr.useState(null),b=Uu(t,e=>y(e)),[w,_]=zr.useState(null),x=function(e){const[t,n]=zr.useState(void 0);return Fd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(w),E=x?.width??0,S=x?.height??0,k=r+("center"!==i?"-"+i:""),O="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},C=Array.isArray(l)?l:[l],P=C.length>0,R={padding:O,boundary:C.filter(jp),altBoundary:P},{refs:L,floatingStyles:T,placement:D,isPositioned:N,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=zr.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=zr.useState(r);ip(h,r)||p(r);const[f,g]=zr.useState(null),[m,v]=zr.useState(null),y=zr.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),b=zr.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=i||f,_=s||m,x=zr.useRef(null),E=zr.useRef(null),S=zr.useRef(u),k=null!=c,O=cp(c),C=cp(o),P=cp(l),R=zr.useCallback(()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};C.current&&(e.platform=C.current),rp(x.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};L.current&&!ip(S.current,t)&&(S.current=t,Wc.flushSync(()=>{d(t)}))})},[h,t,n,C,P]);op(()=>{!1===l&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);const L=zr.useRef(!1);op(()=>(L.current=!0,()=>{L.current=!1}),[]),op(()=>{if(w&&(x.current=w),_&&(E.current=_),w&&_){if(O.current)return O.current(w,_,R);R()}},[w,_,R,O,k]);const T=zr.useMemo(()=>({reference:x,floating:E,setReference:y,setFloating:b}),[y,b]),D=zr.useMemo(()=>({reference:w,floating:_}),[w,_]),N=zr.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=ap(D.floating,u.x),r=ap(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...sp(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return zr.useMemo(()=>({...u,update:R,refs:T,elements:D,floatingStyles:N}),[u,R,T,D,N])}({strategy:"fixed",placement:k,whileElementsMounted:(...e)=>Jh(...e,{animationFrame:"always"===p}),elements:{reference:m.anchor},middleware:[up({mainAxis:o+S,alignmentAxis:s}),c&&dp({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?hp():void 0,...R}),c&&pp({...R}),fp({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&mp({element:w,padding:a}),Ap({arrowWidth:E,arrowHeight:S}),h&&gp({strategy:"referenceHidden",...R})]}),[A,I]=Ip(D),M=vd(f);Fd(()=>{N&&M?.()},[N,M]);const $=j.arrow?.x,F=j.arrow?.y,H=0!==j.arrow?.centerOffset,[U,q]=zr.useState();return Fd(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),(0,tu.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:N?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,tu.jsx)(Pp,{scope:n,placedSide:A,onArrowChange:_,arrowX:$,arrowY:F,shouldHideArrow:H,children:(0,tu.jsx)(md.div,{"data-side":A,"data-align":I,...g,ref:b,style:{...g.style,animation:N?void 0:"none"}})})})});Lp.displayName=Cp;var Tp="PopperArrow",Dp={top:"bottom",right:"left",bottom:"top",left:"right"},Np=zr.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Rp(Tp,n),i=Dp[o.placedSide];return(0,tu.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,tu.jsx)(yp,{...r,ref:t,style:{...r.style,display:"block"}})})});function jp(e){return null!==e}Np.displayName=Tp;var Ap=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=Ip(n),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+a/2;let p="",f="";return"bottom"===c?(p=i?u:`${d}px`,f=-a+"px"):"top"===c?(p=i?u:`${d}px`,f=`${r.floating.height+a}px`):"right"===c?(p=-a+"px",f=i?u:`${h}px`):"left"===c&&(p=`${r.floating.width+a}px`,f=i?u:`${h}px`),{data:{x:p,y:f}}}});function Ip(e){const[t,n="center"]=e.split("-");return[t,n]}var Mp=Sp,$p=Op,Fp=Lp,Hp=Np,Up=zr.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=zr.useState(!1);Fd(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Wc.createPortal((0,tu.jsx)(md.div,{...r,ref:t}),s):null});Up.displayName="Portal";var qp=zr[" useInsertionEffect ".trim().toString()]||Fd;function Bp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=zr.useState(e),o=zr.useRef(n),i=zr.useRef(t);return qp(()=>{i.current=t},[t]),zr.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:o;{const t=zr.useRef(void 0!==e);zr.useEffect(()=>{const e=t.current;e!==a&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=a},[a,r])}return[c,zr.useCallback(t=>{if(a){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)},[a,e,i,s])]}var zp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});zr.forwardRef((e,t)=>(0,tu.jsx)(md.span,{...e,ref:t,style:{...zp,...e.style}})).displayName="VisuallyHidden";var Vp=new WeakMap,Kp=new WeakMap,Wp={},Gp=0,Jp=function(e){return e&&(e.host||Jp(e.parentNode))},Yp=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Jp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Wp[n]||(Wp[n]=new WeakMap);var i=Wp[n],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Vp.get(e)||0)+1,l=(i.get(e)||0)+1;Vp.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Kp.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(sv){console.error("aria-hidden: cannot operate on ",e,sv)}})};return u(t),a.clear(),Gp++,function(){s.forEach(function(e){var t=Vp.get(e)-1,o=i.get(e)-1;Vp.set(e,t),i.set(e,o),t||(Kp.has(e)||e.removeAttribute(r),Kp.delete(e)),o||e.removeAttribute(n)}),--Gp||(Vp=new WeakMap,Vp=new WeakMap,Kp=new WeakMap,Wp={})}},Qp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Yp(r,o,n,"aria-hidden")):function(){return null}},Xp=function(){return Xp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xp.apply(this,arguments)};function Zp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var ef="right-scroll-bar-position",tf="width-before-scroll-bar";function nf(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var rf="undefined"!=typeof window?zr.useLayoutEffect:zr.useEffect,of=new WeakMap;function sf(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return nf(e,t)})},(o=(0,zr.useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return rf(function(){var t=of.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||nf(e,null)}),r.forEach(function(e){n.has(e)||nf(e,o)})}of.set(i,e)},[e]),i}function af(e){return e}var cf=function(e){var t=e.sideCar,n=Zp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return zr.createElement(r,Xp({},n))};cf.isSideCarExport=!0;var lf=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=af);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Xp({async:!0,ssr:!1},e),t}(),uf=function(){},df=zr.forwardRef(function(e,t){var n=zr.useRef(null),r=zr.useState({onScrollCapture:uf,onWheelCapture:uf,onTouchMoveCapture:uf}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,m=e.as,v=void 0===m?"div":m,y=e.gapMode,b=Zp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,_=sf([n,t]),x=Xp(Xp({},b),o);return zr.createElement(zr.Fragment,null,u&&zr.createElement(w,{sideCar:lf,removeScrollBar:l,shards:d,noIsolation:p,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:y}),s?zr.cloneElement(zr.Children.only(a),Xp(Xp({},x),{ref:_})):zr.createElement(v,Xp({},x,{className:c,ref:_}),a))});df.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},df.classNames={fullWidth:tf,zeroRight:ef};function hf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var pf=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=hf())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ff=function(){var e,t=(e=pf(),function(t,n){zr.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},gf={left:0,top:0,right:0,gap:0},mf=function(e){return parseInt(e||"",10)||0},vf=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return gf;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[mf(n),mf(r),mf(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yf=ff(),bf="data-scroll-locked",wf=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(bf,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ef," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tf," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ef," .").concat(ef," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tf," .").concat(tf," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(bf,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},_f=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},xf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;zr.useEffect(function(){return document.body.setAttribute(bf,(_f()+1).toString()),function(){var e=_f()-1;e<=0?document.body.removeAttribute(bf):document.body.setAttribute(bf,e.toString())}},[]);var i=zr.useMemo(function(){return vf(o)},[o]);return zr.createElement(yf,{styles:wf(i,!t,o,n?"":"!important")})},Ef=!1;if("undefined"!=typeof window)try{var Sf=Object.defineProperty({},"passive",{get:function(){return Ef=!0,!0}});window.addEventListener("test",Sf,Sf),window.removeEventListener("test",Sf,Sf)}catch(Jv){Ef=!1}var kf=!!Ef&&{passive:!1},Of=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Cf=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Pf(e,r)){var o=Rf(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pf=function(e,t){return"v"===e?function(e){return Of(e,"overflowY")}(t):function(e){return Of(e,"overflowX")}(t)},Rf=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Lf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tf=function(e){return[e.deltaX,e.deltaY]},Df=function(e){return e&&"current"in e?e.current:e},Nf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},jf=0,Af=[];function If(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Mf,$f=(Mf=function(e){var t=zr.useRef([]),n=zr.useRef([0,0]),r=zr.useRef(),o=zr.useState(jf++)[0],i=zr.useState(ff)[0],s=zr.useRef(e);zr.useEffect(function(){s.current=e},[e]),zr.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Df),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=zr.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Lf(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=Cf(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=Cf(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{var p=Rf(e,a),f=p[0],g=p[1]-p[2]-i*f;(f||g)&&Pf(e,a)&&(d+=g,h+=f),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(h)<1||!o&&-s>h))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)},[]),c=zr.useCallback(function(e){var n=e;if(Af.length&&Af[Af.length-1]===i){var r="deltaY"in n?Tf(n):Lf(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var c=(s.current.shards||[]).map(Df).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?a(n,c[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=zr.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:If(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=zr.useCallback(function(e){n.current=Lf(e),r.current=void 0},[]),d=zr.useCallback(function(t){l(t.type,Tf(t),t.target,a(t,e.lockRef.current))},[]),h=zr.useCallback(function(t){l(t.type,Lf(t),t.target,a(t,e.lockRef.current))},[]);zr.useEffect(function(){return Af.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,kf),document.addEventListener("touchmove",c,kf),document.addEventListener("touchstart",u,kf),function(){Af=Af.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,kf),document.removeEventListener("touchmove",c,kf),document.removeEventListener("touchstart",u,kf)}},[]);var p=e.removeScrollBar,f=e.inert;return zr.createElement(zr.Fragment,null,f?zr.createElement(i,{styles:Nf(o)}):null,p?zr.createElement(xf,{gapMode:e.gapMode}):null)},lf.useMedium(Mf),cf),Ff=zr.forwardRef(function(e,t){return zr.createElement(df,Xp({},e,{ref:t,sideCar:$f}))});Ff.classNames=df.classNames;var Hf=r({Arrow:()=>am,Content:()=>Qg,Group:()=>Zg,Icon:()=>Jg,Item:()=>tm,ItemIndicator:()=>rm,ItemText:()=>nm,Label:()=>em,Portal:()=>Yg,Root:()=>Kg,ScrollDownButton:()=>im,ScrollUpButton:()=>om,Select:()=>eg,SelectArrow:()=>Ug,SelectContent:()=>cg,SelectGroup:()=>Eg,SelectIcon:()=>ig,SelectItem:()=>Rg,SelectItemIndicator:()=>Ng,SelectItemText:()=>Tg,SelectLabel:()=>kg,SelectPortal:()=>sg,SelectScrollDownButton:()=>Mg,SelectScrollUpButton:()=>Ag,SelectSeparator:()=>Fg,SelectTrigger:()=>ng,SelectValue:()=>og,SelectViewport:()=>bg,Separator:()=>sm,Trigger:()=>Wg,Value:()=>Gg,Viewport:()=>Xg,createSelectScope:()=>Gf}),Uf=[" ","Enter","ArrowUp","ArrowDown"],qf=[" ","Enter"],Bf="Select",[zf,Vf,Kf]=ud(Bf),[Wf,Gf]=rd(Bf,[Kf,_p]),Jf=_p(),[Yf,Qf]=Wf(Bf),[Xf,Zf]=Wf(Bf),eg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:h,required:p,form:f}=e,g=Jf(t),[m,v]=zr.useState(null),[y,b]=zr.useState(null),[w,_]=zr.useState(!1),x=gd(l),[E,S]=Bp({prop:r,defaultProp:o??!1,onChange:i,caller:Bf}),[k,O]=Bp({prop:s,defaultProp:a,onChange:c,caller:Bf}),C=zr.useRef(null),P=!m||(f||!!m.closest("form")),[R,L]=zr.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return(0,tu.jsx)(Mp,{...g,children:(0,tu.jsxs)(Yf,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:_,contentId:qd(),value:k,onValueChange:O,open:E,onOpenChange:S,dir:x,triggerPointerDownPosRef:C,disabled:h,children:[(0,tu.jsx)(zf.Provider,{scope:t,children:(0,tu.jsx)(Xf,{scope:e.__scopeSelect,onNativeOptionAdd:zr.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:zr.useCallback(e=>{L(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,tu.jsxs)(qg,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>O(e.target.value),disabled:h,form:f,children:[void 0===k?(0,tu.jsx)("option",{value:""}):null,Array.from(R)]},T):null]})})};eg.displayName=Bf;var tg="SelectTrigger",ng=zr.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Jf(n),s=Qf(tg,n),a=s.disabled||r,c=Uu(t,s.onTriggerChange),l=Vf(n),u=zr.useRef("touch"),[d,h,p]=zg(e=>{const t=l().filter(e=>!e.disabled),n=Vg(t,e,t.find(e=>e.value===s.value));void 0!==n&&s.onValueChange(n.value)}),f=e=>{a||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,tu.jsx)($p,{asChild:!0,...i,children:(0,tu.jsx)(md.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Bg(s.value)?"":void 0,...o,ref:c,onClick:nd(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)}),onPointerDown:nd(o.onPointerDown,e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:nd(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||Uf.includes(e.key)&&(f(),e.preventDefault())})})})});ng.displayName=tg;var rg="SelectValue",og=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,c=Qf(rg,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==i,d=Uu(t,c.onValueNodeChange);return Fd(()=>{l(u)},[l,u]),(0,tu.jsx)(md.span,{...a,ref:d,style:{pointerEvents:"none"},children:Bg(c.value)?(0,tu.jsx)(tu.Fragment,{children:s}):i})});og.displayName=rg;var ig=zr.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,tu.jsx)(md.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ig.displayName="SelectIcon";var sg=e=>(0,tu.jsx)(Up,{asChild:!0,...e});sg.displayName="SelectPortal";var ag="SelectContent",cg=zr.forwardRef((e,t)=>{const n=Qf(ag,e.__scopeSelect),[r,o]=zr.useState();if(Fd(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Wc.createPortal((0,tu.jsx)(ug,{scope:e.__scopeSelect,children:(0,tu.jsx)(zf.Slot,{scope:e.__scopeSelect,children:(0,tu.jsx)("div",{children:e.children})})}),t):null}return(0,tu.jsx)(pg,{...e,ref:t})});cg.displayName=ag;var lg=10,[ug,dg]=Wf(ag),hg=id("SelectContent.RemoveScroll"),pg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m,...v}=e,y=Qf(ag,n),[b,w]=zr.useState(null),[_,x]=zr.useState(null),E=Uu(t,e=>w(e)),[S,k]=zr.useState(null),[O,C]=zr.useState(null),P=Vf(n),[R,L]=zr.useState(!1),T=zr.useRef(!1);zr.useEffect(()=>{if(b)return Qp(b)},[b]),Cd();const D=zr.useCallback(e=>{const[t,...n]=P().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(i?.scrollIntoView({block:"nearest"}),i===t&&_&&(_.scrollTop=0),i===r&&_&&(_.scrollTop=_.scrollHeight),i?.focus(),document.activeElement!==o)return}},[P,_]),N=zr.useCallback(()=>D([S,b]),[D,S,b]);zr.useEffect(()=>{R&&N()},[R,N]);const{onOpenChange:j,triggerPointerDownPosRef:A}=y;zr.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(A.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||j(!1),document.removeEventListener("pointermove",t),A.current=null};return null!==A.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,j,A]),zr.useEffect(()=>{const e=()=>j(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[j]);const[I,M]=zg(e=>{const t=P().filter(e=>!e.disabled),n=Vg(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),$=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&(k(e),r&&(T.current=!0))},[y.value]),F=zr.useCallback(()=>b?.focus(),[b]),H=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&C(e)},[y.value]),U="popper"===r?gg:fg,q=U===gg?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m}:{};return(0,tu.jsx)(ug,{scope:n,content:b,viewport:_,onViewportChange:x,itemRefCallback:$,selectedItem:S,onItemLeave:F,itemTextRefCallback:H,focusSelectedItem:N,selectedItemText:O,position:r,isPositioned:R,searchRef:I,children:(0,tu.jsx)(Ff,{as:hg,allowPinchZoom:!0,children:(0,tu.jsx)(Dd,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:nd(o,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,tu.jsx)(Ed,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,tu.jsx)(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...q,onPlaced:()=>L(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:nd(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||M(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});pg.displayName="SelectContentImpl";var fg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Qf(ag,n),s=dg(ag,n),[a,c]=zr.useState(null),[l,u]=zr.useState(null),d=Uu(t,e=>u(e)),h=Vf(n),p=zr.useRef(!1),f=zr.useRef(!0),{viewport:g,selectedItem:m,selectedItemText:v,focusSelectedItem:y}=s,b=zr.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&g&&m&&v){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,s=e.left-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-lg,d=td(i,[lg,Math.max(lg,u-l)]);a.style.minWidth=c+"px",a.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,s=window.innerWidth-e.right-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-lg,d=td(i,[lg,Math.max(lg,u-l)]);a.style.minWidth=c+"px",a.style.right=d+"px"}const s=h(),c=window.innerHeight-2*lg,u=g.scrollHeight,d=window.getComputedStyle(l),f=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=f+y+u+parseInt(d.paddingBottom,10)+b,_=Math.min(5*m.offsetHeight,w),x=window.getComputedStyle(g),E=parseInt(x.paddingTop,10),S=parseInt(x.paddingBottom,10),k=e.top+e.height/2-lg,O=c-k,C=m.offsetHeight/2,P=f+y+(m.offsetTop+C),R=w-P;if(P<=k){const e=s.length>0&&m===s[s.length-1].ref.current;a.style.bottom="0px";const t=l.clientHeight-g.offsetTop-g.offsetHeight,n=P+Math.max(O,C+(e?S:0)+t+b);a.style.height=n+"px"}else{const e=s.length>0&&m===s[0].ref.current;a.style.top="0px";const t=Math.max(k,f+g.offsetTop+(e?E:0)+C)+R;a.style.height=t+"px",g.scrollTop=P-k+g.offsetTop}a.style.margin=`${lg}px 0`,a.style.minHeight=_+"px",a.style.maxHeight=c+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,a,l,g,m,v,i.dir,r]);Fd(()=>b(),[b]);const[w,_]=zr.useState();return Fd(()=>{l&&_(window.getComputedStyle(l).zIndex)},[l]),(0,tu.jsx)(mg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:zr.useCallback(e=>{e&&!0===f.current&&(b(),y?.(),f.current=!1)},[b,y]),children:(0,tu.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,tu.jsx)(md.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});fg.displayName="SelectItemAlignedPosition";var gg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=lg,...i}=e,s=Jf(n);return(0,tu.jsx)(Fp,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gg.displayName="SelectPopperPosition";var[mg,vg]=Wf(ag,{}),yg="SelectViewport",bg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=dg(yg,n),s=vg(yg,n),a=Uu(t,i.onViewportChange),c=zr.useRef(0);return(0,tu.jsxs)(tu.Fragment,{children:[(0,tu.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,tu.jsx)(zf.Slot,{scope:n,children:(0,tu.jsx)(md.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:nd(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*lg,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(o,i);if(s<r){const o=s+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});bg.displayName=yg;var wg="SelectGroup",[_g,xg]=Wf(wg),Eg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qd();return(0,tu.jsx)(_g,{scope:n,id:o,children:(0,tu.jsx)(md.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Eg.displayName=wg;var Sg="SelectLabel",kg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xg(Sg,n);return(0,tu.jsx)(md.div,{id:o.id,...r,ref:t})});kg.displayName=Sg;var Og="SelectItem",[Cg,Pg]=Wf(Og),Rg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Qf(Og,n),c=dg(Og,n),l=a.value===r,[u,d]=zr.useState(i??""),[h,p]=zr.useState(!1),f=Uu(t,e=>c.itemRefCallback?.(e,r,o)),g=qd(),m=zr.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,tu.jsx)(Cg,{scope:n,value:r,disabled:o,textId:g,isSelected:l,onItemTextChange:zr.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,tu.jsx)(zf.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:(0,tu.jsx)(md.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:f,onFocus:nd(s.onFocus,()=>p(!0)),onBlur:nd(s.onBlur,()=>p(!1)),onClick:nd(s.onClick,()=>{"mouse"!==m.current&&v()}),onPointerUp:nd(s.onPointerUp,()=>{"mouse"===m.current&&v()}),onPointerDown:nd(s.onPointerDown,e=>{m.current=e.pointerType}),onPointerMove:nd(s.onPointerMove,e=>{m.current=e.pointerType,o?c.onItemLeave?.():"mouse"===m.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:nd(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:nd(s.onKeyDown,e=>{""!==c.searchRef?.current&&" "===e.key||(qf.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});Rg.displayName=Og;var Lg="SelectItemText",Tg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Qf(Lg,n),a=dg(Lg,n),c=Pg(Lg,n),l=Zf(Lg,n),[u,d]=zr.useState(null),h=Uu(t,e=>d(e),c.onItemTextChange,e=>a.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,f=zr.useMemo(()=>(0,tu.jsx)("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:m}=l;return Fd(()=>(g(f),()=>m(f)),[g,m,f]),(0,tu.jsxs)(tu.Fragment,{children:[(0,tu.jsx)(md.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Wc.createPortal(i.children,s.valueNode):null]})});Tg.displayName=Lg;var Dg="SelectItemIndicator",Ng=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Pg(Dg,n).isSelected?(0,tu.jsx)(md.span,{"aria-hidden":!0,...r,ref:t}):null});Ng.displayName=Dg;var jg="SelectScrollUpButton",Ag=zr.forwardRef((e,t)=>{const n=dg(jg,e.__scopeSelect),r=vg(jg,e.__scopeSelect),[o,i]=zr.useState(!1),s=Uu(t,r.onScrollButtonChange);return Fd(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,tu.jsx)($g,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Ag.displayName=jg;var Ig="SelectScrollDownButton",Mg=zr.forwardRef((e,t)=>{const n=dg(Ig,e.__scopeSelect),r=vg(Ig,e.__scopeSelect),[o,i]=zr.useState(!1),s=Uu(t,r.onScrollButtonChange);return Fd(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,tu.jsx)($g,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Mg.displayName=Ig;var $g=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=dg("SelectScrollButton",n),s=zr.useRef(null),a=Vf(n),c=zr.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return zr.useEffect(()=>()=>c(),[c]),Fd(()=>{a().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),(0,tu.jsx)(md.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:nd(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:nd(o.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:nd(o.onPointerLeave,()=>{c()})})}),Fg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,tu.jsx)(md.div,{"aria-hidden":!0,...r,ref:t})});Fg.displayName="SelectSeparator";var Hg="SelectArrow",Ug=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Jf(n),i=Qf(Hg,n),s=dg(Hg,n);return i.open&&"popper"===s.position?(0,tu.jsx)(Hp,{...o,...r,ref:t}):null});Ug.displayName=Hg;var qg=zr.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=zr.useRef(null),i=Uu(r,o),s=function(e){const t=zr.useRef({value:e,previous:e});return zr.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return zr.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(s!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,tu.jsx)(md.select,{...n,style:{...zp,...n.style},ref:i,defaultValue:t})});function Bg(e){return""===e||void 0===e}function zg(e){const t=vd(e),n=zr.useRef(""),r=zr.useRef(0),o=zr.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=zr.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return zr.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Vg(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map((e,t)=>s[(a+t)%s.length]));var s,a;1===r.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}qg.displayName="SelectBubbleInput";var Kg=eg,Wg=ng,Gg=og,Jg=ig,Yg=sg,Qg=cg,Xg=bg,Zg=Eg,em=kg,tm=Rg,nm=Tg,rm=Ng,om=Ag,im=Mg,sm=Fg,am=Ug,cm=e=>zr.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_2062)"},zr.createElement("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"}))),lm=e=>zr.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_4631)"},zr.createElement("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"}))),um=({size:e="medium",children:t,...n})=>(0,tu.jsxs)(Wg,{className:"\n inline-flex items-center justify-between flex-1\n bg-ll-background rounded-sm border\n py-1 pr-2 pl-3 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p data-[size=medium]:h-8\n data-[size=large]:text-ll-font-size-h6 data-[size=large]:h-10\n","data-size":e,...n,children:[t,(0,tu.jsx)(ig,{children:(0,tu.jsx)(Mu,{SVGElement:cm,fill:Cu["--ll-color-on-background-variant1"]})})]}),dm=({size:e="medium",children:t,...n})=>(0,tu.jsx)(Qg,{className:"\n overflow-hidden bg-ll-background rounded-sm shadow-md\n z-10 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p\n data-[size=large]:text-ll-font-size-h6\n","data-size":e,...n,children:(0,tu.jsx)(Xg,{className:"font-inherit p-0",children:t})}),hm=({variant:e="dark",children:t,...n})=>(0,tu.jsxs)(tm,{className:'\n font-sans font-inherit py-1 pr-8 pl-6 outline-none\n relative rounded-sm cursor-default text-ll-on-surface-variant1\n\n data-[highlighted]:[&:not([data-variant="light"])]:bg-ll-primary\n data-[highlighted]:[&:not([data-variant="light"])]:text-ll-on-primary\n\n // Special color between now and design system\n data-[highlighted]:[&:not([data-variant="dark"])]:bg-[#EBF5F7]\n data-[highlighted]:[&:not([data-variant="dark"])]:text-ll-on-surface\n ',"data-variant":e,...n,children:[(0,tu.jsx)(nm,{children:t}),(0,tu.jsx)(rm,{className:"\n absolute left-0 bottom-0\n inline-flex justify-center items-center\n h-full w-6\n",children:(0,tu.jsx)(Mu,{SVGElement:lm,fill:"currentColor",height:12,width:12})})]}),{Root:pm}=Hf;var fm=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=zr.useState(),r=zr.useRef(null),o=zr.useRef(e),i=zr.useRef("none"),[s,a]=function(e,t){return zr.useReducer((e,n)=>t[e][n]??e,e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return zr.useEffect(()=>{const e=gm(r.current);i.current="mounted"===s?e:"none"},[s]),Fd(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=gm(t);a(e?"MOUNT":"none"===s||"none"===t?.display?"UNMOUNT":n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Fd(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=i=>{const s=gm(r.current).includes(i.animationName);if(i.target===t&&s&&(a("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(i.current=gm(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:zr.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):zr.Children.only(n),i=Uu(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?zr.cloneElement(o,{ref:i}):null};function gm(e){return e?.animationName||"none"}fm.displayName="Presence";var mm=r({Anchor:()=>Bm,Arrow:()=>Gm,Close:()=>Wm,Content:()=>Km,Popover:()=>Em,PopoverAnchor:()=>km,PopoverArrow:()=>Hm,PopoverClose:()=>Fm,PopoverContent:()=>Nm,PopoverPortal:()=>Tm,PopoverTrigger:()=>Cm,Portal:()=>Vm,Root:()=>qm,Trigger:()=>zm,createPopoverScope:()=>bm}),vm="Popover",[ym,bm]=rd(vm,[_p]),wm=_p(),[_m,xm]=ym(vm),Em=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=wm(t),c=zr.useRef(null),[l,u]=zr.useState(!1),[d,h]=Bp({prop:r,defaultProp:o??!1,onChange:i,caller:vm});return(0,tu.jsx)(Mp,{...a,children:(0,tu.jsx)(_m,{scope:t,contentId:qd(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:zr.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:l,onCustomAnchorAdd:zr.useCallback(()=>u(!0),[]),onCustomAnchorRemove:zr.useCallback(()=>u(!1),[]),modal:s,children:n})})};Em.displayName=vm;var Sm="PopoverAnchor",km=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xm(Sm,n),i=wm(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return zr.useEffect(()=>(s(),()=>a()),[s,a]),(0,tu.jsx)($p,{...i,...r,ref:t})});km.displayName=Sm;var Om="PopoverTrigger",Cm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xm(Om,n),i=wm(n),s=Uu(t,o.triggerRef),a=(0,tu.jsx)(md.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Um(o.open),...r,ref:s,onClick:nd(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,tu.jsx)($p,{asChild:!0,...i,children:a})});Cm.displayName=Om;var Pm="PopoverPortal",[Rm,Lm]=ym(Pm,{forceMount:void 0}),Tm=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=xm(Pm,t);return(0,tu.jsx)(Rm,{scope:t,forceMount:n,children:(0,tu.jsx)(fm,{present:n||i.open,children:(0,tu.jsx)(Up,{asChild:!0,container:o,children:r})})})};Tm.displayName=Pm;var Dm="PopoverContent",Nm=zr.forwardRef((e,t)=>{const n=Lm(Dm,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=xm(Dm,e.__scopePopover);return(0,tu.jsx)(fm,{present:r||i.open,children:i.modal?(0,tu.jsx)(Am,{...o,ref:t}):(0,tu.jsx)(Im,{...o,ref:t})})});Nm.displayName=Dm;var jm=id("PopoverContent.RemoveScroll"),Am=zr.forwardRef((e,t)=>{const n=xm(Dm,e.__scopePopover),r=zr.useRef(null),o=Uu(t,r),i=zr.useRef(!1);return zr.useEffect(()=>{const e=r.current;if(e)return Qp(e)},[]),(0,tu.jsx)(Ff,{as:jm,allowPinchZoom:!0,children:(0,tu.jsx)(Mm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nd(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:nd(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:nd(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Im=zr.forwardRef((e,t)=>{const n=xm(Dm,e.__scopePopover),r=zr.useRef(!1),o=zr.useRef(!1);return(0,tu.jsx)(Mm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Mm=zr.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=xm(Dm,n),p=wm(n);return Cd(),(0,tu.jsx)(Dd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,tu.jsx)(Ed,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:(0,tu.jsx)(Fp,{"data-state":Um(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$m="PopoverClose",Fm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xm($m,n);return(0,tu.jsx)(md.button,{type:"button",...r,ref:t,onClick:nd(e.onClick,()=>o.onOpenChange(!1))})});Fm.displayName=$m;var Hm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wm(n);return(0,tu.jsx)(Hp,{...o,...r,ref:t})});function Um(e){return e?"open":"closed"}Hm.displayName="PopoverArrow";var qm=Em,Bm=km,zm=Cm,Vm=Tm,Km=Nm,Wm=Fm,Gm=Hm,{Root:Jm,Portal:Ym}=mm,Qm=zr.createContext({}),Xm=()=>(0,zr.useContext)(Qm),Zm=()=>{const{data:e,colors:t,icon:n}=Xm(),r=e.reduce((e,t)=>e+t,0),o=(0,zr.useMemo)(()=>e.map((n,o)=>{const i=n/r*100>50,s=e.slice(0,o).reduce((e,t)=>e+t,0)/r*360,a=n/r*360,c=i?"-100%":"0%",l=i?"200%":"100%";return(0,tu.jsx)("div",{className:"ll-donut-segment",style:{"--ll-chart-donut-segment-clip-path":`polygon(${c} ${c}, ${l} ${c}, ${l} ${l}, ${c} ${l})`,"--ll-chart-donut-segment-bg":t?.[o]??"#000","--ll-chart-donut-segment-degrees":s,"--ll-chart-donut-segment-before-degrees":a,"--ll-chart-donut-segment-opacity":i?1:0}},`segment-${o}`)}),[e,t]);return(0,tu.jsxs)("div",{className:"\n relative aspect-square rounded-full flex items-center justify-center overflow-hidden\n",children:[o,(0,tu.jsx)("div",{className:"\n bg-ll-surface rounded-full w-[70%] h-[70%]\n flex items-center justify-center absolute\n",children:(0,tu.jsx)("div",{className:"\n flex items-center justify-center\n w-full h-full\n\n [&>svg]:w-1/2\n [&>svg]:w-1/2\n [&>svg>path]:fill-ll-primary\n",children:n})})]})},ev=()=>{const{labels:e,colors:t}=Xm();return(0,tu.jsx)("ul",{className:"list-none p-0",children:e.map((e,n)=>(0,tu.jsxs)("li",{className:"flex items-center",children:[(0,tu.jsx)("div",{className:"w-3 h-3 rounded mr-2.5",style:{backgroundColor:t?.[n]||"#000"}}),(0,tu.jsx)($u,{noMargin:!0,lineClamp:1,variant:"caption1",children:e})]},e))})},tv=()=>{const{title:e,labels:t,data:n,unit:r}=Xm(),o=(0,zr.useMemo)(()=>{if(n)return[...n].sort((e,t)=>e-t).reverse()[0]},[n]),i=(0,zr.useMemo)(()=>r&&o?10*Math.ceil(o/10):100,[o,r]),s=(0,zr.useMemo)(()=>n.map((e,n)=>({label:t[n],value:e,width:Math.round(100*e/i)})),[i,n,t]);return(0,tu.jsxs)("div",{className:"\n h-full w-full overflow-hidden bg-ll-surface\n rounded-md p-3 flex flex-col\n",children:[(0,tu.jsx)("div",{className:"h-[6%] min-h-5",children:(0,tu.jsx)($u,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:`${e} (${r})`})}),(0,tu.jsx)("div",{className:"grow mx-0 my-2 grid gap-y-1",children:s.map(e=>(0,tu.jsxs)("div",{className:"\n grid grid-rows-1 grid-cols-[140px_calc(100%-165px)]\n gap-y-1 items-center\n",children:["0"!==e.label&&(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",children:e.label}),(0,tu.jsxs)("div",{className:"\n relative py-0.5 px-2.5 h-full\n flex justify-start items-center\n",children:[(0,tu.jsx)("div",{className:"\n z-10 flex items-center justify-center\n h-full w-10 absolute top-0\n",style:{left:`${e.width}%`},children:(0,tu.jsxs)($u,{noMargin:!0,align:"center",color:"--ll-color-on-background",variant:"caption2",children:[e.value,r]})}),(0,tu.jsx)("span",{className:"\n bg-ll-primary rounded-r-md inline-block h-full absolute top-0 bottom-0 left-0\n",style:{width:`${e.width}%`}})]})]},e.label))}),(0,tu.jsxs)("div",{className:"\n border-t border-ll-placeholder border-solid\n h-[6%] min-h-3 w-[calc(100%-165px)]\n ml-[140px] grid grid-cols-3\n",children:[(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",color:"--ll-color-on-background",children:"0"}),(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",align:"center",color:"--ll-color-on-background",children:`${i/2}${r}`}),(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",align:"right",color:"--ll-color-on-background",children:`${i}${r}`})]})]})},nv=["rgb(0, 188,202)","rgb(208,232,233)","rgb(243,209,130)","rgb(255,116,16)","rgb(52,65,181)","rgb(151,184,126)","rgb(0,132,145)","rgb(62,49,91)"],rv=e=>(0,tu.jsx)(Qm.Provider,{value:{...e,colors:e.colors??nv},children:e.children}),ov=({title:e,labels:t,data:n,icon:r})=>(0,tu.jsxs)("div",{className:"\n w-full h-full\n overflow-hidden\n bg-ll-surface\n font-sans\n rounded-md\n p-3\n",children:[(0,tu.jsx)("div",{className:"\n mb-2\n",children:(0,tu.jsx)($u,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:e})}),(0,tu.jsx)(rv,{data:n,labels:t,icon:r,children:(0,tu.jsxs)("div",{className:"\n items-center\n h-[80%]\n overflow-hidden\n my-0 mx-auto\n w-[90%] max-w-[380px] \n flex flex-row\n justify-between\n",children:[(0,tu.jsx)("div",{className:"\n w-[35%] md:w-[45%]\n",children:(0,tu.jsx)(Zm,{})}),(0,tu.jsx)(tu.Fragment,{children:(0,tu.jsx)(ev,{})})]})})]}),iv=({error:e})=>(0,tu.jsxs)("div",{className:"\n w-full h-full flex items-center justify-center flex-col\n","data-testid":"error-fallback",children:[(0,tu.jsx)($u,{variant:"h4",children:"An error occurred"}),(0,tu.jsx)($u,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]}),sv=Object.create,av=Object.defineProperty,cv=Object.getOwnPropertyDescriptor,lv=Object.getOwnPropertyNames,uv=Object.getPrototypeOf,dv=Object.prototype.hasOwnProperty,hv=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),pv=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,i=lv(t),s=0,a=i.length;s<a;s++)o=i[s],!dv.call(e,o)&&o!==n&&av(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=cv(t,o))||r.enumerable});return e},fv=(e,t,n)=>(n=null==e?{}:sv(uv(e)),pv(!t&&e&&e.__esModule?n:av(n,"default",{value:e,enumerable:!0}),e)),gv="CONNECT",mv=function(e){return e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e.RESIZE="resize",e}({}),vv=new(fv(hv((e,t)=>{var n=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,a=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&s(e,n,t[n]);return e},c=(r,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of n(i))!o.call(r,c)&&c!==s&&e(r,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return r},l=(e,t,n)=>s(e,"symbol"==typeof t?t:t+"",n),u={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>d,default:()=>f});var d=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:d,counter:0},p=class{constructor(e={}){l(this,"counter"),l(this,"debug"),l(this,"dict"),l(this,"version"),l(this,"dictIndex",0),l(this,"dictRange",[]),l(this,"lowerBound",0),l(this,"upperBound",0),l(this,"dictLength",0),l(this,"uuidLength"),l(this,"_digit_first_ascii",48),l(this,"_digit_last_ascii",58),l(this,"_alpha_lower_first_ascii",97),l(this,"_alpha_lower_last_ascii",123),l(this,"_hex_last_ascii",103),l(this,"_alpha_upper_first_ascii",65),l(this,"_alpha_upper_last_ascii",91),l(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),l(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),l(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),l(this,"log",(...e)=>{let t=[...e];t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&typeof console<"u"&&null!==console&&console.log(...t)}),l(this,"_normalizeDictionary",(e,t)=>{let n;if(e&&Array.isArray(e)&&e.length>1)n=e;else{n=[],this.dictIndex=0;let t=`_${e}_dict_ranges`,r=this._dict_ranges[t],o=0;for(let[,e]of Object.entries(r)){let[t,n]=e;o+=Math.abs(n-t)}n=Array(o);let i=0;for(let[,e]of Object.entries(r)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];let t=this.lowerBound<=this.upperBound,r=this.lowerBound,o=this.upperBound;if(t)for(let e=r;e<o;e++)n[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=r;e>o;e--)n[i++]=String.fromCharCode(e),this.dictIndex=e}n.length=i}if(t){for(let e=n.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[n[e],n[t]]=[n[t],n[e]]}}return n}),l(this,"setDictionary",(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),l(this,"seq",()=>this.sequentialUUID()),l(this,"sequentialUUID",()=>{let e=this.dictLength,t=this.dict,n=this.counter,r=[];do{let o=n%e;n=Math.trunc(n/e),r.push(t[o])}while(0!==n);let o=r.join("");return this.counter+=1,o}),l(this,"rnd",(e=this.uuidLength||d)=>this.randomUUID(e)),l(this,"randomUUID",(e=this.uuidLength||d)=>{if(null==e||e<1)throw Error("Invalid UUID Length Provided");let t=Array(e),n=this.dictLength,r=this.dict;for(let o=0;o<e;o++)t[o]=r[Math.floor(Math.random()*n)];return t.join("")}),l(this,"fmt",(e,t)=>this.formattedUUID(e,t)),l(this,"formattedUUID",(e,t)=>{let n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let r=e.slice(0,2),o=Number.parseInt(e.slice(2),10);return"$s"===r?n[r]().padStart(o,"0"):"$t"===r&&t?n[r](o,t):n[r](o)})}),l(this,"availableUUIDs",(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),l(this,"_collisionCache",new Map),l(this,"approxMaxBeforeCollision",(e=this.availableUUIDs(this.uuidLength))=>{let t=e,n=this._collisionCache.get(t);if(void 0!==n)return n;let r=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,r),r}),l(this,"collisionProbability",(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),l(this,"uniqueness",(e=this.availableUUIDs(this.uuidLength))=>{let t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),l(this,"getVersion",()=>this.version),l(this,"stamp",(e,t)=>{let n=Math.floor((t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return n;if("number"!=typeof e||e<10)throw Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));let r=e-9,o=Math.round(Math.random()*(r>15?15:r)),i=this.randomUUID(r);return`${i.substring(0,o)}${n}${i.substring(o)}${o.toString(16)}`}),l(this,"parseStamp",(e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw Error("Cannot extract date from a formated UUID with no timestamp in the format");let n=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let t={$r:e=>[...Array(e)].map(()=>"r").join(""),$s:e=>[...Array(e)].map(()=>"s").join(""),$t:e=>[...Array(e)].map(()=>"t").join("")},n=e.slice(0,2),r=Number.parseInt(e.slice(2),10);return t[n](r)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,n,r)=>e.substring(n.length,n.length+r.length)):e;if(8===n.length)return new Date(1e3*Number.parseInt(n,16));if(n.length<10)throw Error("Stamp length invalid");let r=Number.parseInt(n.substring(n.length-1),16);return new Date(1e3*Number.parseInt(n.substring(r,r+8),16))}),l(this,"setCounter",e=>{this.counter=e}),l(this,"validate",(e,t)=>{let n=t?this._normalizeDictionary(t):this.dict;return e.split("").every(e=>n.includes(e))});let t=a(a({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";let{dictionary:n,shuffle:r,length:o,counter:i}=t;this.uuidLength=o,this.setDictionary(n,r),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};l(p,"default",p);var f=p;return(t=>c(e({},"__esModule",{value:!0}),t))(u)})();void 0!==t&&(t.exports=n.default),typeof window<"u"&&(n=n.default)})(),1).default)({length:10}),yv=class e{constructor(e,t){this.onMessageHandlers=[],this.message=(e,t,n)=>this.crossOrigin?this.postMessage(e,t,n):this.customEventMessage(e,t,n),this.channelId=e??"DEFAULT",this.channelNodeId=`channel-node-${vv.rnd()}`,this.crossOrigin=t,this.connection=new Promise(e=>{this.resolveConnection=e}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(e=>{this.resolveConnection=e})}onMessage(e){this.onMessageHandlers.push(e)}removeMessageHandler(e){let t=this.onMessageHandlers.findIndex(t=>t===e);this.onMessageHandlers.splice(t,1)}customEventMessage(e,t,n){let r=new CustomEvent(this.channelId,{detail:{eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t}});window.dispatchEvent(r)}postMessage(e,t,n){this.crossOrigin?.targetOrigin?this.crossOrigin?.window?.postMessage({eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t},this.crossOrigin?.targetOrigin):console.error("A target origin was not specified.")}async eventRequest(e,t){let n=vv.rnd();return new Promise(r=>{let o=e=>{let{eventId:t}=e;n===t&&(this.removeMessageHandler(o),r(e))};this.onMessage(o),this.message(e,t,n)})}async waitForEvent(e){return new Promise(t=>{let n=r=>{let{name:o}=r;e===o&&(this.removeMessageHandler(n),t(r))};this.onMessage(n)})}handleMessage(t){let n;if(e.isCustomEvent(t))n=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&"*"!==this.crossOrigin?.targetOrigin)return;n=t.data}let{channelId:r,channelNodeId:o}=n;this.channelId===r&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(e=>{e(n)})}static isCustomEvent(e){return void 0!==e.detail}},bv=class extends yv{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(gv).then(e=>{this.resolveConnection(e)}),this.connection}},wv=o((e,t)=>{var n=1/0,r=17976931348623157e292,o=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,d=Object.prototype.toString;function h(e,t){var h;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return o;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?o:+e}(e),e===n||e===-1/0?(e<0?-1:1)*r:e==e?e:0):0===e?e:0}(e),h=t%1;return t==t?h?t-h:t:0}(e),function(){return--e>0&&(h=t.apply(this,arguments)),e<=1&&(t=void 0),h}}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return h(2,e)}}),_v=e(wv(),1),xv={},Ev={zoom:15,pitch:0,bearing:0,cooperativeGestures:!0,mapProvider:{name:"maptiler"},hideAttribution:!1,showSchoolRatings:!1},Sv={},kv={},Ov={hideAttribution:!1},Cv={},Pv={},Rv={hideAttribution:!1},Lv={buyerColor:"#21BCCC",neutralColor:"#BEBEBE",sellerColor:"#FDC033",decreaseColor:"#EF4444",increaseColor:"#21BCCC"},Tv={locale:"en"},Dv={"local-content":{globalOptions:Tv,options:{mapProvider:{name:"maptiler"},zoom:14,pitch:0,bearing:0,cooperativeGestures:!0,distanceUnit:"metric",hideScores:!1,showSchoolRatings:!1,scoresMenu:{defaultOpen:!0,title:!0,categories:{amenities:{hide:!1,order:1,colors:{background:"#FFF2C3",fill:"#BF8500"},scores:{shopping:{hide:!1,hideScore:!1,order:1},groceries:{hide:!1,hideScore:!1,order:2},restaurants:{hide:!1,hideScore:!1,order:3},cafes:{hide:!1,hideScore:!1,order:4}}},education:{hide:!1,order:2,colors:{background:"#E4EFFF",fill:"#003548"},scores:{daycares:{hide:!1,hideScore:!1,order:1},primary_schools:{hide:!1,hideScore:!1,order:2},high_schools:{hide:!1,hideScore:!1,order:3}}},transport:{hide:!1,order:3,colors:{background:"#E9F8FA",fill:"#008491"},scores:{transit_friendly:{hide:!1,hideScore:!1,order:1},car_friendly:{hide:!1,hideScore:!1,order:2},pedestrian_friendly:{hide:!1,hideScore:!1,order:3},cycling_friendly:{hide:!1,hideScore:!1,order:4}}},character:{hide:!1,order:4,colors:{background:"#FFDAAC",fill:"#FF7044"},scores:{nightlife:{hide:!1,hideScore:!1,order:1},vibrant:{hide:!1,hideScore:!1,order:2},historic:{hide:!1,hideScore:!1,order:3},quiet:{hide:!1,hideScore:!1,order:4}}},nature:{hide:!1,order:5,colors:{background:"#D8F4D9",fill:"#0F766E"},scores:{parks:{hide:!1,hideScore:!1,order:1},greenery:{hide:!1,hideScore:!1,order:2}}},health:{hide:!1,order:6,colors:{background:"#FFE7FE",fill:"#FF84D6"},scores:{wellness:{hide:!1,hideScore:!1,order:1}}}}}}},"local-demographics":{globalOptions:Tv,options:xv},"neighborhood-map":{globalOptions:Tv,options:Ev},"neighborhood-hero":{globalOptions:Tv,options:Sv},"neighborhood-characteristics":{globalOptions:Tv,options:kv},"neighborhood-highlights":{globalOptions:Tv,options:Cv},"neighborhood-demographics":{globalOptions:Tv,options:Ov},"neighborhood-property-value-drivers":{globalOptions:Tv,options:Pv},"neighborhood-match":{globalOptions:Tv,options:Rv},"neighborhood-market-trends":{globalOptions:Tv,options:{hideAttribution:!1}},"neighborhood-schools":{globalOptions:Tv,options:{hideAttribution:!1,showSchoolRatings:!1}},"neighborhood-showcase":{globalOptions:Tv,options:{}},"neighborhood-featured":{globalOptions:Tv,options:{}},"lead-capture":{globalOptions:Tv,options:{}},demographics:{globalOptions:Tv,options:xv},"local-neighborhood-map":{globalOptions:Tv,options:Ev},"local-neighborhood-hero":{globalOptions:Tv,options:Sv},"local-neighborhood-characteristics":{globalOptions:Tv,options:kv},"local-neighborhood-highlights":{globalOptions:Tv,options:Cv},"local-neighborhood-demographics":{globalOptions:Tv,options:Ov},"local-neighborhood-property-value-drivers":{globalOptions:Tv,options:Pv},"local-neighborhood-match":{globalOptions:Tv,options:Rv}},Nv=class{constructor(){this.data=new Map}getItem(e){return this.data.get(e)??null}setItem(e,t){this.data.set(e,t)}removeItem(e){this.data.delete(e)}clear(){this.data.clear()}key(e){return Array.from(this.data.keys())[e]??null}get length(){return this.data.size}};var jv=class{constructor(e){this.group=e,this.storage=function(){try{return"undefined"!=typeof window&&window.localStorage?window.localStorage:new Nv}catch{return new Nv}}()}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.storage.getItem(this.group?`${this.group}.${e}`:e)}setItem(e,t){this.storage.setItem(this.group?`${this.group}.${e}`:e,t)}removeItem(e){this.storage.removeItem(this.group?`${this.group}.${e}`:e)}},Av=(new jv,new class{constructor(){this.storageLocation="suggestion_history",this.history=[],this.storage=new jv("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(t=>t.locationId!==e.locationId)}}),Iv=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function Mv(e,...t){if(!t.length)return e;const n=t.shift();return Iv(e)&&Iv(n)&&Object.keys(n).forEach(t=>{Iv(n[t])?(e[t]||Object.assign(e,{[t]:{}}),Mv(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),Mv(e,...t)}var $v=e=>{const t=(0,zr.useRef)(e),n=(0,zr.useRef)(),r=(0,zr.useRef)(!1),o=(0,zr.useRef)(!1),[,i]=(0,zr.useState)(0);r.current&&(o.current=!0),(0,zr.useEffect)(()=>(r.current||(n.current=t.current(),r.current=!0),i(e=>e+1),()=>{o.current&&n.current&&n.current()}),[])},Fv=(e,t)=>{const[n,r]=(0,zr.useState)(e);return(0,zr.useEffect)(()=>{const n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n},Hv=(0,_v.default)(()=>zr.createContext({})),Uv=()=>{const e=zr.useContext(Hv());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e};function qv(e){let t=e.apiKey||"";t.startsWith("V3 ")&&(t=t.slice(3));const n={...e,apiKey:`V3 ${t}`,clientId:t.split(".")[0]};if("string"==typeof e?.options?.lat||"string"==typeof e?.options?.lng){if(n.options||(n.options={}),n.options.lat=Number(e?.options?.lat),n.options.lng=Number(e?.options?.lng),void 0!==e?.options?.marker){let t=!1;"string"==typeof e.options.marker.lat&&(n.options.marker.lat=Number(e.options.marker.lat),t=!0),"string"==typeof e.options.marker.lng&&(n.options.marker.lng=Number(e.options.marker.lng),t=!0),t&&console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options.marker. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}return n}var Bv=zr.memo(({children:e})=>{const t=Hv(),n=(0,Gc.useSearch)(),r=zr.useRef(n),o=(0,Gc.useLocation)().current.pathname.split("/"),i=Dv[o[o.length-1]],s=zr.useRef(),[a,c]=(0,zr.useState)(!1),[l,u]=(0,zr.useState)(qv(i)),d=Fv(l,500),h=(0,Gc.useNavigate)(),p=e=>{r.current=qv(e),u(qv(e))},f=e=>{e.name===mv.GET_STATE&&s.current?.message(mv.GET_STATE_RESPONSE,r.current,e.eventId),e.name===mv.SET_STATE&&p(e.data)};$v(()=>{const e=new URLSearchParams(window.location.search).get("parentOrigin"),t=new bv(n.channelId,{targetOrigin:e||document.referrer,window:window.parent});s.current=t,t?.onMessage(f),t?.connect().then(e=>{const t=Mv(l,e.data);p(t),c(!0),ra.addBreadCrumb("stateManager","useEffectOnce: Connected to sdks-js",{oldState:l,newState:e.data,mergedState:t})})});const g=e=>{s.current?.message(mv.ON_CHANGE,e),ra.addBreadCrumb("stateManager","onChange",{data:e})};(0,zr.useEffect)(()=>{h({search:()=>d,replace:!0})},[d]),(0,zr.useEffect)(()=>{l.options&&g({type:"options",data:l.options})},[l.options]);const m=(0,zr.useMemo)(()=>({sdkState:l,setSdkState:p,onChange:g,followerNode:s.current}),[l,p,g]);return(0,zr.useEffect)(()=>{if(!a||!l.globalOptions?.locale)return;const e=l.globalOptions?.locale||"en";tc.language!==e&&(ra.addBreadCrumb("stateManager","i18n.changeLanguage",{language:e}),tc.changeLanguage(e))},[l.globalOptions?.locale,a]),a?(0,tu.jsx)(t.Provider,{value:m,children:e}):null});Bv.displayName="StateManagerProvider";var zv=(e,t="",n={})=>(Object.keys(e).forEach(r=>{if(Object.prototype.hasOwnProperty.call(e,r)){const o=t?`${t}.${r}`:r;"object"!=typeof e[r]||null===e[r]||Array.isArray(e[r])?n[`LocalLogic.${o}`]=e[r]:zv(e[r],o,n)}}),{...n}),Vv=({children:e})=>{const{sdkState:t}=Uv();return(0,zr.useEffect)(()=>{ra.setTags(zv(t||{}))},[t.apiKey,t.globalOptions,t.options]),(0,tu.jsx)(tu.Fragment,{children:e})},Kv=({children:e})=>{const{sdkState:t}=Uv(),n=(0,Gc.useRouter)();return(0,tu.jsx)(Ys,{clientSideID:"643eb54728e2fd16ae6e7a15",context:{kind:"organization",key:t.clientId,custom:{locale:t.globalOptions?.locale||"en",sdk:n.state.location.pathname.split("/")[3]}},reactOptions:{sendEventsOnFlagRead:!0},options:{streaming:!0,logger:Os({level:"none"})},children:e})},Wv=new Xl({defaultOptions:{queries:{retry:2,staleTime:1/0}}}),Gv=()=>{return(0,tu.jsx)(tu.Fragment,{children:(0,tu.jsx)(au,{FallbackComponent:iv,onError:(t,n)=>{const r=Vr(t,n);e&&e(t,n,r)},children:(0,tu.jsx)(Ou,{children:(0,tu.jsx)(ou,{client:Wv,children:(0,tu.jsx)(Bv,{children:(0,tu.jsx)(Kv,{children:(0,tu.jsx)(Vv,{children:(0,tu.jsx)(Gc.Outlet,{})})})})})})})});var e};window.addEventListener("DOMContentLoaded",e=>{Jr.createRoot(document.getElementById("root")).render((0,tu.jsx)(zr.StrictMode,{children:(0,tu.jsx)(Gv,{})}))});export{rl as $,Xg as A,Xu as B,rm as C,ig as D,Kg as E,md as F,uu as G,$u as H,gd as I,$l as J,ru as K,ud as L,qd as M,Fd as N,Wg as O,vd as P,il as Q,rd as R,tm as S,Yg as T,Iu as U,Uu as V,Cu as W,El as X,Cl as Y,_l as Z,hm as _,ra as _t,jv as a,xc as at,Qg as b,ct as bt,ov as c,$c as ct,Wm as d,jc as dt,Zc as et,Km as f,Bc as ft,dm as g,Xa as gt,fm as h,Za as ht,Av as i,Tc as it,Bp as j,Gg as k,rv as l,Cc as lt,zm as m,_c as mt,Fv as n,Qc as nt,Lv as o,Sc as ot,qm as p,kc as pt,eu as q,$v as r,Yc as rt,mv as s,Ec as st,Uv as t,Xc as tt,tv as u,Oc as ut,pm as v,Qs as vt,nm as w,Jg as x,um as y,rt as yt,nd as z};
3
- //# sourceMappingURL=index-Bs6_tEDn.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalContent-2pJKWECA.js","assets/sdks-BuksrzcW.js","assets/rolldown-runtime-C_ttsnZz.js","assets/google-maps-vendor-DvfEEdRU.js","assets/getMapProviderConfig-Bzfs0Sdc.js","assets/Tree.es-DVzuYmwJ.js","assets/IconBase.es-CEehl5AX.js","assets/Backpack.es-VkU9yjoN.js","assets/Tote.es-COcEXhV_.js","assets/Train.es-FFDTvKv8.js","assets/Buildings.es-Cy83SPQS.js","assets/GraduationCap.es-Bvo9K-N3.js","assets/MapPin.es-DUGzA8QJ.js","assets/X.es-6bJd6-yU.js","assets/constants-DOpa8YMW-CAHGepUD.js","assets/context-BrD4AniQ-DZ0ZiGRI.js","assets/esm-Be30MpcN-ls4GMpDI.js","assets/useSchools-Dmfxgddk.js","assets/getMapProviderConfig-Dg2c_6rt.css","assets/Bicycle.es-DPIBL6np.js","assets/Car.es-BZ3jmhfm.js","assets/CaretDown.es-nJe-LNlT.js","assets/CaretLeft.es-DbiCI58w.js","assets/ScoreIcon-CWGLoE_R.js","assets/MagnifyingGlass.es-CEBdL4tD.js","assets/bundle-mjs-orX75hSI.js","assets/index.es-CWTeuLFE.js","assets/Attribution-BFX5_TA0.js","assets/ValidateOptions-CBV1N5jv.js","assets/useScores-BYEwsLLe.js","assets/useLocation-KxuXzpB1.js","assets/useResponsiveBreakpoints-Dq6mGzIW.js","assets/globals-C8w3r3u3.css","assets/LocalDemographics-CCLrxAlH.js","assets/useDemographicsData-B4it1cPj.js","assets/UsersThree.es-Di-ux4sv.js","assets/dist-BS0nF9v1.js","assets/useIsMobile-CEgZCKoT.js","assets/ResizeWrapper-D7ns3o39.js","assets/TitleHeader-q22P7nGv.js","assets/old-tailwind-BY9c-y5g.css","assets/NeighborhoodHero-Ccge3SCR.js","assets/useGeographies-h5AWa9mj.js","assets/useProfiles-BMZF6PTl.js","assets/NeighborhoodMap-Cs2mW6eY.js","assets/NeighborhoodCharacteristics-D56qnuca.js","assets/ScoreCardList-BYAr0xig.js","assets/NeighborhoodHighlights-BFiTF1H2.js","assets/NoDataContent-CEAzGzUq.js","assets/NeighborhoodDemographics-C0jX8lOM.js","assets/NeighborhoodPropertyValueDrivers-CkZQt4Un.js","assets/NeighborhoodMatch-DyGrO6rV.js","assets/neighborhood-fallback-CizB5oi9.js","assets/NeighborhoodMarketTrends-BPFS-IP7.js","assets/HandCoins.es-CC012gfJ.js","assets/NeighborhoodSchools-CYj0W8g4.js","assets/NeighborhoodSchools-tmPY96MM.css","assets/NeighborhoodShowcase-CHCSD8YZ.js","assets/Trans-CoQWpfjg.js","assets/NeighborhoodCard-BaGtTms0.js","assets/NeighborhoodFeatured-Dy3pyH2M.js","assets/LeadCapture-DQ_u-trr.js"])))=>i.map(i=>d[i]);
2
+ import'data:text/javascript,"assets/index-_e6zO9FA.js";if(!import.meta.resolve)throw Error("import.meta.resolve not supported")';export function __vite_legacy_guard(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}import{a as e,i as t,n,r,t as o}from"./rolldown-runtime-C_ttsnZz.js";import{c as i,l as s}from"./google-maps-vendor-DvfEEdRU.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var a=o(e=>{var t=i();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}),c="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,l="8.55.0",u=globalThis;function d(e,t,n){const r=n||u,o=r.__SENTRY__=r.__SENTRY__||{},i=o[l]=o["8.55.0"]||{};return i[e]||(i[e]=t())}var h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=["debug","info","warn","error","log","assert","trace"],f={};function g(e){if(!("console"in u))return e();const t=u.console,n={},r=Object.keys(f);r.forEach(e=>{const r=f[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}var m=d("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return h?p.forEach(n=>{t[n]=(...t)=>{e&&g(()=>{u.console[n](`Sentry Logger [${n}]:`,...t)})}}):p.forEach(e=>{t[e]=()=>{}}),t}),v=/\(error: (.*)\)/,y=/captureMessage|captureException/;function b(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let s=n;s<i.length;s++){const e=i[s];if(e.length>1024)continue;const n=v.test(e)?e.replace(v,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(w(t).function||"")&&t.pop();t.reverse(),y.test(w(t).function||"")&&(t.pop(),y.test(w(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||w(t).filename,function:e.function||"?"}))}(o.slice(r))}}function w(e){return e[e.length-1]||{}}var _="<anonymous>";function x(e){try{return e&&"function"==typeof e&&e.name||_}catch(sv){return _}}function E(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(n){return}}}var S={},k={};function O(e,t){S[e]=S[e]||[],S[e].push(t)}function C(e,t){if(!k[e]){k[e]=!0;try{t()}catch(sv){h&&m.error(`Error while instrumenting ${e}`,sv)}}}function P(e,t){const n=e&&S[e];if(n)for(const r of n)try{r(t)}catch(sv){h&&m.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${x(r)}\nError:`,sv)}}var R=null;function L(){R=u.onerror,u.onerror=function(e,t,n,r,o){return P("error",{column:r,error:o,line:n,msg:e,url:t}),!!R&&R.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0}var T=null;function D(){T=u.onunhandledrejection,u.onunhandledrejection=function(e){return P("unhandledrejection",e),!T||T.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function N(){return j(u),u}function j(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.55.0",t[l]=t["8.55.0"]||{}}var A=Object.prototype.toString;function I(e){switch(A.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return K(e,Error)}}function M(e,t){return A.call(e)===`[object ${t}]`}function $(e){return M(e,"ErrorEvent")}function F(e){return M(e,"DOMError")}function H(e){return M(e,"String")}function U(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function q(e){return null===e||U(e)||"object"!=typeof e&&"function"!=typeof e}function B(e){return M(e,"Object")}function z(e){return"undefined"!=typeof Event&&K(e,Event)}function V(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function K(e,t){try{return e instanceof t}catch(Ri){return!1}}function W(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}var G=u;function J(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=3;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=Y(n,u),!("html"===l||i>1&&s+o.length*c+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function Y(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(G.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&H(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}for(const i of["aria-label","type","name","title","alt"]){const e=n.getAttribute(i);e&&r.push(`[${i}="${e}"]`)}return r.join("")}function Q(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function X(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const t=e[r];try{W(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(sv){n.push("[value cannot be serialized]")}}return n.join(t)}function Z(e,t,n=!1){return!!H(e)&&(M(t,"RegExp")?t.test(e):!!H(t)&&(n?e===t:e.includes(t)))}function ee(e,t=[],n=!1){return t.some(t=>Z(e,t,n))}function te(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&re(o,r);try{e[t]=o}catch(sv){h&&m.log(`Failed to replace method "${t}" in object`,e)}}function ne(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){h&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function re(e,t){try{e.prototype=t.prototype=t.prototype||{},ne(e,"__sentry_original__",t)}catch(n){}}function oe(e){return e.__sentry_original__}function ie(e){if(I(e))return{message:e.message,name:e.name,stack:e.stack,...ae(e)};if(z(e)){const t={type:e.type,target:se(e.target),currentTarget:se(e.currentTarget),...ae(e)};return"undefined"!=typeof CustomEvent&&K(e,CustomEvent)&&(t.detail=e.detail),t}return e}function se(e){try{return t=e,"undefined"!=typeof Element&&K(t,Element)?J(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function ae(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ce(e){return le(e,new Map)}function le(e,t){if(function(e){if(!B(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=le(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(le(e,t))}),r}return e}function ue(){return Date.now()/1e3}var de,he=function(){const{performance:e}=u;if(!e||!e.now)return ue;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{const{performance:e}=u;if(!e||!e.now)return void 0;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;(i||a<t)&&(o<=a&&e.timeOrigin)})();function pe(){const e=u,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(Mo){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function fe(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ge(e){const{message:t,event_id:n}=e;if(t)return t;const r=fe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function me(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ve(e,t){const n=fe(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function ye(e){if(function(e){try{return e.__sentry_captured__}catch(sv){}}(e))return!0;try{ne(e,"__sentry_captured__",!0)}catch(t){}return!1}function be(e){return new _e(t=>{t(e)})}function we(e){return new _e((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(de||(de={}));var _e=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=de.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(sv){this._reject(sv)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(sv){r(sv)}else e(n)},t=>{if(n)try{e(n(t))}catch(sv){r(sv)}else r(t)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,o;return this.then(e=>{o=!1,r=e,t&&t()},e=>{o=!0,r=e,t&&t()}).then(()=>{o?n(r):e(r)})})}__init(){this._resolve=e=>{this._setResult(de.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(de.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===de.PENDING&&(V(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===de.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===de.RESOLVED&&e[1](this._value),this._state===de.REJECTED&&e[2](this._value),e[0]=!0)})}}};function xe(e){const t=he(),n={sid:pe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ce({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ee(n,e),n}function Ee(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||he(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:pe()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Se(){return pe()}function ke(){return pe().substring(16)}function Oe(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Oe(r[o],t[o],n-1));return r}var Ce="_sentrySpan";function Pe(e,t){t?ne(e,Ce,t):delete e[Ce]}function Re(e){return e[Ce]}var Le=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Se(),spanId:ke()}}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Pe(t,Re(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ee(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Le?[t.getScopeData(),t.getRequestSession()]:B(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Pe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Se()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ue(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Re(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Oe(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:ke(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:pe();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:pe();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};var Te=class{constructor(e,t){let n,r;n=e||new Le,r=t||new Le,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(sv){throw this._popScope(),sv}return V(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}};function De(){const e=j(N());return e.stack=e.stack||new Te(d("defaultCurrentScope",()=>new Le),d("defaultIsolationScope",()=>new Le))}function Ne(e){return De().withScope(e)}function je(e,t){const n=De();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ae(e){return De().withScope(()=>e(De().getIsolationScope()))}function Ie(e){const t=j(e);return t.acs?t.acs:{withIsolationScope:Ae,withScope:Ne,withSetScope:je,withSetIsolationScope:(e,t)=>Ae(t),getCurrentScope:()=>De().getScope(),getIsolationScope:()=>De().getIsolationScope()}}function Me(){return Ie(N()).getCurrentScope()}function $e(){return Ie(N()).getIsolationScope()}function Fe(){return Me().getClient()}function He(e){const{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return ce({trace_id:t,span_id:n,parent_span_id:r})}function Ue(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(ce(o));return n}var qe=/^sentry-/;function Be(e){const t=function(e){if(!e||!H(e)&&!Array.isArray(e))return;return Array.isArray(e)?e.reduce((e,t)=>{const n=ze(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ze(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(qe)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function ze(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Ve=!1;function Ke(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return ce({parent_span_id:r?t:Je(e).parent_span_id,span_id:r?ke():t,trace_id:n})}function We(e){return"number"==typeof e?Ge(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ge(e.getTime()):he()}function Ge(e){return e>9999999999?e/1e3:e}function Je(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return ce({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:We(o),timestamp:We(s)||void 0,status:Ye(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ue(e)})}return{span_id:t,trace_id:n}}catch(sv){return{}}}function Ye(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Qe(e){return e._sentryRootSpan||e}function Xe(){Ve||(g(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Ve=!0)}var Ze="production";function et(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=ce({environment:n.environment||"production",release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function tt(e,t){const n=t.getPropagationContext();return n.dsc||et(n.traceId,e)}function nt(e){const t=Fe();if(!t)return{};const n=Qe(e),r=n._frozenDsc;if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&Be(i);if(s)return s;const a=et(e.spanContext().traceId,t),c=Je(n),l=c.data||{},u=l["sentry.sample_rate"];null!=u&&(a.sample_rate=`${u}`);const d=l["sentry.source"],h=c.description;return"url"!==d&&h&&(a.transaction=h),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Fe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(a.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n))),t.emit("createDsc",a,n),a}var rt,ot=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function it(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function st(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function at(e){const t="string"==typeof e?function(e){const t=ot.exec(e);if(!t)return void g(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return st({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}(e):st(e);if(t&&function(e){if(!h)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(m.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(m.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var ct=n(()=>{rt=globalThis||self});function lt(e,t=100,n=1/0){try{return dt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ut(e,t=3,n=102400){const r=lt(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?ut(e,t-1,n):r;var o}function dt(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==rt&&t===rt)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(W(t))return"[VueViewModel]";if(B(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${x(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return dt("",l.toJSON(),c-1,r,o)}catch(p){}const u=Array.isArray(t)?[]:{};let d=0;const h=ie(t);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(d>=r){u[f]="[MaxProperties ~]";break}const e=h[f];u[f]=dt(f,e,c-1,r,o),d++}return s(t),u}function ht(e,t=[]){return[e,t]}function pt(e,t){const[n,r]=e;return[n,[...r,t]]}function ft(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function gt(e){return u.__SENTRY__&&u.__SENTRY__.encodePolyfill?u.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function mt(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[gt(r),e]:r.push("string"==typeof e?gt(e):e)}for(const i of n){const[e,t]=i;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(sv){e=JSON.stringify(lt(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}function vt(e){const t="string"==typeof e.data?gt(e.data):e.data;return[ce({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}ct();var yt,bt,wt,_t={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function xt(e){return _t[e]}function Et(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function St(e,t,n,r){const o=Et(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:it(r)},...o&&{trace:ce({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,ht(s,[[{type:i},e]])}function kt(e,t,n,r=0){return new _e((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);c&&s.id&&null===a&&m.log(`Event processor "${s.id}" dropped event`),V(a)?a.then(t=>kt(e,t,n,r+1).then(o)).then(null,i):kt(e,a,n,r+1).then(o).then(null,i)}})}function Ot(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=ce(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=ce(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=ce(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=ce(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});s&&(e.level=s);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ke(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:nt(t),...e.sdkProcessingMetadata};const n=Je(Qe(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function Ct(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;Pt(e,"extra",n),Pt(e,"tags",r),Pt(e,"user",o),Pt(e,"contexts",i),e.sdkProcessingMetadata=Oe(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function Pt(e,t,n){e[t]=Oe(e[t],n,1)}function Rt(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||pe(),timestamp:t.timestamp||ue()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=Q(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Q(s.value,i));const a=e.request;a&&a.url&&(a.url=Q(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=u._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return wt&&n.length===bt||(bt=n.length,wt=n.reduce((n,r)=>{yt||(yt={});const o=yt[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=i&&i.filename,a=t[r];if(s&&a){n[s]=a,yt[r]=[s,a];break}}}return n},{})),wt}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(sv){}}(c,e.stackParser);const h=function(e,t){if(!t)return e;const n=e?e.clone():new Le;return n.update(t),n}(r,n.captureContext);n.mechanism&&ve(c,n.mechanism);const p=o?o.getEventProcessors():[],f=d("globalScope",()=>new Le).getScopeData();i&&Ct(f,i.getScopeData()),h&&Ct(f,h.getScopeData());const g=[...n.attachments||[],...f.attachments];return g.length&&(n.attachments=g),Ot(c,f),kt([...p,...f.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(sv){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}}))},...e.user&&{user:lt(e.user,t,n)},...e.contexts&&{contexts:lt(e.contexts,t,n)},...e.extra&&{extra:lt(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lt(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:lt(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=lt(e.contexts.flags,3,n));return r}(e,s,a):e))}function Lt(e){if(e)return function(e){return e instanceof Le||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Tt.includes(e))}(e)?{captureContext:e}:e}var Tt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Dt(e,t){return Me().captureException(e,Lt(t))}function Nt(e,t){return Me().captureEvent(e,t)}function jt(e,t){$e().setContext(e,t)}function At(e){const t=Fe(),n=$e(),r=Me(),{release:o,environment:i=Ze}=t&&t.getOptions()||{},{userAgent:s}=u.navigator||{},a=xe({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&Ee(c,{status:"exited"}),It(),n.setSession(a),r.setSession(a),a}function It(){const e=$e(),t=Me(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Ee(e,n)}(n),Mt(),e.setSession(),t.setSession()}function Mt(){const e=$e(),t=Me(),n=Fe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function $t(e=!1){e?It():Mt()}function Ft(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}var Ht=[];function Ut(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),i=o.findIndex(e=>"Debug"===e.name);if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o}function qt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Bt(e,t,n){if(n[t.name])c&&m.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Ht.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ht.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}c&&m.log(`Integration installed: ${t.name}`)}}var zt=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}},Vt="Not capturing exception because it's already been captured.",Kt=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=at(e.dsn):c&&m.warn("No DSN provided, client will not send events."),this._dsn){const t=Ft(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t]);t&&g(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){const r=pe();if(ye(e))return c&&m.log(Vt),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:pe(),...n},i=U(e)?e:String(e),s=q(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=pe();if(t&&t.originalException&&ye(t.originalException))return c&&m.log(Vt),r;const o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?c&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ee(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):be(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Bt(this,e,this._integrations),t||qt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=St(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=pt(n,vt(o));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=Et(n);return ht({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:it(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;c&&m.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(c&&m.error("Error while sending envelope:",e),e)):(c&&m.error("Transport disabled"),be({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Bt(e,t,n)}),n}(this,e),qt(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Ee(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new _e(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=Me(),r=$e()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Rt(o,e,t,n,this,r).then(e=>(null===e||(e.contexts={trace:He(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tt(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{c&&(e instanceof zt&&"log"===e.logLevel?m.log(e.message):m.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Gt(e),s=Wt(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;c&&m.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(o);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),we(new zt(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const d="replay_event"===a?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",d,e),new zt("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(V(e))return e.then(e=>{if(!B(e)&&null!==e)throw new zt(n);return e},e=>{throw new zt(`${t} rejected with ${e}`)});if(!B(e)&&null!==e)throw new zt(n);return e}(function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Wt(n)&&o)return o(n,r);if(Gt(n)){if(n.spans&&s){const t=[];for(const r of n.spans){const n=s(r);n?t.push(n):(Xe(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(i){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",d,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new zt(`${l} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof zt)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new zt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){c&&m.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(c&&m.log("No outcomes to send"));if(!this._dsn)return void(c&&m.log("No dsn provided, will not send outcomes"));c&&m.log("Sending outcomes:",e);const t=(n=e,ht((r=this._options.tunnel&&it(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||ue(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(t)}};function Wt(e){return void 0===e.type}function Gt(e){return"transaction"===e.type}function Jt(e,t){!0===t.debug&&(c?m.enable():g(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Me().update(t.initialScope);const n=new e(t);return function(e){Me().setClient(e)}(n),n.init(),n}function Yt(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return we(new zt("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new _e((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{be(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}function Qt(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[e,t,,,n]=a.split(":",5),i=parseInt(e,10),s=1e3*(isNaN(i)?60:i);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(o[a]=r+s);else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function Xt(e,t,n=Yt(e.bufferSize||64)){let r={};return{send:function(o){const i=[];if(ft(o,(t,n)=>{const o=xt(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=Zt(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)}),0===i.length)return be({});const s=ht(o[0],i),a=t=>{ft(s,(n,r)=>{const o=Zt(n,r);e.recordDroppedEvent(t,xt(r),o)})};return n.add(()=>t({body:mt(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&c&&m.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Qt(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof zt)return c&&m.error("Skipped sending event because buffer is full."),a("queue_overflow"),be({});throw e})},flush:e=>n.drain(e)}}function Zt(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function en(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&tn(e)===tn(t)}(e,r)}function tn(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function nn(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:l})),version:l}),e._metadata=o}var rn,on=100;function sn(e,t){const n=Fe(),r=$e();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=on}=n.getOptions();if(i<=0)return;const s={timestamp:ue(),...e},a=o?g(()=>o(s,t)):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}var an=new WeakMap,cn=()=>({name:"FunctionToString",setupOnce(){rn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=oe(this),n=an.has(Fe())&&void 0!==t?t:this;return rn.apply(n,e)}}catch(sv){}},setup(e){an.set(e,!0)}}),ln=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],un=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(sv){}return!1}(e))return c&&m.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ge(e)}`),!0;if(function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(sv){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>ee(e,t))}(e,t.ignoreErrors))return c&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ge(e)}`),!0;if(function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e))return c&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ge(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions))return c&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ge(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=dn(e);return!!n&&ee(n,t)}(e,t.denyUrls))return c&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=dn(e);return!n||ee(n,t)}(e,t.allowUrls))return c&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ge(e)}.\nUrl: ${dn(e)}`),!0;return!1}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ln],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions()))?null:t});function dn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(sv){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return c&&m.error(`Cannot extract url for event ${ge(e)}`),null}}function hn(e,t,n=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&K(s.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,l;a&&(i.exception.values=(c=pn(e,t,o,s.originalException,r,i.exception.values,a,0),l=n,c.map(e=>(e.value&&(e.value=Q(e.value,l)),e))))}function pn(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(K(r[o],Error)){fn(s,a);const i=e(t,r[o]),l=c.length;gn(i,o,l,a),c=pn(e,t,n,r[o],o,[i,...c],i,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(K(r,Error)){fn(s,a);const l=e(t,r),u=c.length;gn(l,`errors[${i}]`,u,a),c=pn(e,t,n,r,o,[l,...c],l,u)}}),c}function fn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function gn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function mn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vn(){"console"in u&&p.forEach(function(e){e in u.console&&te(u.console,e,function(t){return f[e]=t,function(...t){P("console",{args:t,level:e});const n=f[e];n&&n.apply(u.console,t)}})})}function yn(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var bn=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!_n(e,t)&&!!wn(e,t))))}(e,t)||!!function(e,t){const n=xn(t),r=xn(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!_n(e,t)&&!!wn(e,t)))}(e,t))}(t,e))return c&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function wn(e,t){let n=E(e),r=E(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const e=r[o],t=n[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function _n(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(o){return!1}}function xn(e){return e.exception&&e.exception.values&&e.exception.values[0]}var En=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i=250}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!I(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=I(i)||"string"==typeof i?Q(`${i}`,n):i}if(t&&void 0!==e.cause&&(o.cause=I(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=I(n)?n.toString():n}}return o}catch(r){c&&m.error("Unable to extract extra data from the Error object:",r)}return null}(t.originalException,r,o);if(s){const t={...e.contexts},r=lt(s,n);return B(r)&&(ne(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};function Sn(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var kn=u;function On(){if(!("fetch"in kn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(sv){return!1}}function Cn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Pn(){if("string"==typeof EdgeRuntime)return!0;if(!On())return!1;if(Cn(kn.fetch))return!0;let e=!1;const t=kn.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Cn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){h&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Rn(e,t){const n="fetch";O(n,e),C(n,()=>function(e,t=!1){if(t&&!Pn())return;te(u,"fetch",function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Tn(t),method:Ln(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Tn(t),method:Ln(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*he(),virtualError:r};return e||P("fetch",{...s}),t.apply(u,n).then(async t=>(e?e(t):P("fetch",{...s,endTimestamp:1e3*he(),response:t}),t),e=>{throw P("fetch",{...s,endTimestamp:1e3*he(),error:e}),I(e)&&void 0===e.stack&&(e.stack=r.stack,ne(e,"framesToPop",1)),e})}})}(void 0,t))}function Ln(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Tn(e){return"string"==typeof e?e:e?Ln(e,"url")?e.url:e.toString?e.toString():"":""}var Dn=u;var Nn=u,jn=0;function An(){return jn>0}function In(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(oe(e))return e}catch(sv){return e}const n=function(...n){try{const r=n.map(e=>In(e,t));return e.apply(this,r)}catch(r){throw jn++,setTimeout(()=>{jn--}),function(...e){const t=Ie(N());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(me(e,void 0,void 0),ve(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Dt(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(r){}re(n,e),ne(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(o){}return n}var Mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $n(e,t){const n=Un(e,t),r={type:zn(t),value:Vn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Fn(e,t,n,r){const o=Fe(),i=o&&o.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:ut(t,i)};if(s)return{exception:{values:[$n(e,s)]},extra:a};const c={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Gn(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Un(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Hn(e,t){return{exception:{values:[$n(e,t)]}}}function Un(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&qn.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch(sv){}return[]}var qn=/Minified React error #\d+;/i;function Bn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function zn(e){const t=e&&e.name;return!t&&Bn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Vn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Bn(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Kn(e,t,n,r,o){let i;if($(t)&&t.error)return Hn(e,t.error);if(F(t)||M(t,"DOMException")){const o=t;if("stack"in t)i=Hn(e,t);else{const t=o.name||(F(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=Wn(e,s,n,r),me(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return I(t)?Hn(e,t):B(t)||z(t)?(i=Fn(e,t,n,o),ve(i,{synthetic:!0}),i):(i=Wn(e,t,n,r),me(i,`${t}`,void 0),ve(i,{synthetic:!0}),i)}function Wn(e,t,n,r){const o={};if(r&&n){const r=Un(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),ve(o,{synthetic:!0})}if(U(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Gn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(ie(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Q(r,t);for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ");if(!(e.length>t))return o===n.length?e:Q(e,t)}return""}(e),r=t?"promise rejection":"exception";return $(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(sv){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Jn(e){return[{type:"user_report"},e]}var Yn,Qn,Xn,Zn,er=class extends Kt{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};nn(t,"browser",["browser"],Nn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Nn.document&&Nn.document.addEventListener("visibilitychange",()=>{"hidden"===Nn.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=Kn(e,t,n&&n.syntheticException||void 0,r);return ve(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),be(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Wn(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),be(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Mn&&m.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){return ht({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:it(r)}},[Jn(e)])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}},tr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nr=u;function rr(){if(!nr.document)return;const e=P.bind(null,"dom"),t=or(e,!0);nr.document.addEventListener("click",t,!1),nr.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=nr[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(te(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=or(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(sv){}return t.call(this,n,r,o)}}),te(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(sv){}return e.call(this,t,n,r)}}))})}function or(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(sv){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;ne(n,"_sentryCaptured",!0),r&&!r._sentryId&&ne(r,"_sentryId",pe());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Qn)return!1;try{if(!e.target||e.target._sentryId!==Xn)return!1}catch(sv){}return!0})(n)||(e({event:n,name:o,global:t}),Qn=n.type,Xn=r?r._sentryId:void 0),clearTimeout(Yn),Yn=nr.setTimeout(()=>{Xn=void 0,Qn=void 0},1e3)}}function ir(e){const t="history";O(t,e),C(t,sr)}function sr(){if(!function(){const e=Dn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Dn&&!!Dn.history.pushState&&!!Dn.history.replaceState;return!t&&n}())return;const e=nr.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Zn,t=String(n);Zn=t,P("history",{from:e,to:t})}return e.apply(this,t)}}nr.onpopstate=function(...t){const n=nr.location.href,r=Zn;if(Zn=n,P("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},te(nr.history,"pushState",t),te(nr.history,"replaceState",t)}var ar={};function cr(e){ar[e]=void 0}var lr="__sentry_xhr_v3__";function ur(e){O("xhr",e),C("xhr",dr)}function dr(){if(!nr.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*he(),i=H(n[0])?n[0].toUpperCase():void 0,s=function(e){if(H(e))return e;try{return e.toString()}catch(t){}}(n[1]);if(!i||!s)return e.apply(t,n);t[lr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[lr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(sv){}P("xhr",{endTimestamp:1e3*he(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[lr];return i&&H(r)&&H(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[lr];return r?(void 0!==n[0]&&(r.body=n[0]),P("xhr",{startTimestamp:1e3*he(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function hr(e,t=function(e){const t=ar[e];if(t)return t;let n=nr[e];if(Cn(n))return ar[e]=n.bind(nr);const r=nr.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(sv){tr&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,sv)}return n?ar[e]=n.bind(nr):n}("fetch")){let n=0,r=0;return Xt(e,function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return cr("fetch"),we("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(sv){return cr("fetch"),n-=i,r--,we(sv)}})}function pr(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var fr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,gr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,vr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,br=b(...[[30,e=>{const t=fr.exec(e);if(t){const[,e,n,r]=t;return pr(e,"?",+n,+r)}const n=gr.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=mr.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=wr(n[1]||"?",n[2]);return pr(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=vr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=wr(n,e),pr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),wr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},_r=1024,xr=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";O(t,e),C(t,vn)}(function(e){return function(t){if(Fe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:yn(t.level),message:X(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${X(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}sn(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Fe()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>_r&&(Mn&&m.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=_r),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=J(t,{keyAttrs:i,maxStringLength:s}),o=function(e){if(!G.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(sv){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),sn(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),O("dom",n),C("dom",rr)),t.xhr&&ur(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[lr];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,l={method:i,url:s,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};sn({category:"xhr",data:l,type:"http",level:Sn(a)},u)}}(e)),t.fetch&&Rn(function(e){return function(t){if(Fe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){sn({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};sn({category:"fetch",data:o,type:"http",level:Sn(o.status_code)},i)}}}(e)),t.history&&ir(function(e){return function(t){if(Fe()!==e)return;let n=t.from,r=t.to;const o=mn(Nn.location.href);let i=n?mn(n):void 0;const s=mn(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),sn({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Fe()===e&&sn({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ge(t)},{event:t})}}(e))}}};var Er=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Sr=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&te(Nn,"setTimeout",kr),t.setInterval&&te(Nn,"setInterval",kr),t.requestAnimationFrame&&te(Nn,"requestAnimationFrame",Or),t.XMLHttpRequest&&"XMLHttpRequest"in Nn&&te(XMLHttpRequest.prototype,"send",Cr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Er).forEach(Pr)}}};function kr(e){return function(...t){const n=t[0];return t[0]=In(n,{mechanism:{data:{function:x(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Or(e){return function(t){return e.apply(this,[In(t,{mechanism:{data:{function:"requestAnimationFrame",handler:x(e)},handled:!1,type:"instrument"}})])}}function Cr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&te(n,e,function(t){const n={mechanism:{data:{function:e,handler:x(t)},handled:!1,type:"instrument"}},r=oe(t);return r&&(n.mechanism.data.handler=x(r)),In(t,n)})}),e.apply(this,t)}}function Pr(e){const t=Nn[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(te(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=In(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:x(r),target:e},handled:!1,type:"instrument"}}))}catch(i){}return t.apply(this,[n,In(r,{mechanism:{data:{function:"addEventListener",handler:x(r),target:e},handled:!1,type:"instrument"}}),o])}}),te(n,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(sv){}return e.call(this,t,n,r)}}))}var Rr=()=>({name:"BrowserSession",setupOnce(){void 0!==Nn.document?(At({ignoreDuration:!0}),$t(),ir(({from:e,to:t})=>{void 0!==e&&e!==t&&(At({ignoreDuration:!0}),$t())})):Mn&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),Lr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";O(t,e),C(t,L)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=H(t)&&t.length>0?t:function(){try{return G.document.location.href}catch(e){return""}}();0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u});return e}(Kn(n,c||o,void 0,r,!1),i,s,a);l.level="error",Nt(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),Tr("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";O(t,e),C(t,D)}(t=>{const{stackParser:n,attachStacktrace:r}=Dr();if(Fe()!==e||An())return;const o=function(e){if(q(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),i=q(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Kn(n,o,void 0,r,!0);i.level="error",Nt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),Tr("onunhandledrejection"))}}};function Tr(e){Mn&&m.log(`Global Handler attached: ${e}`)}function Dr(){const e=Fe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var Nr=()=>({name:"HttpContext",preprocessEvent(e){if(!Nn.navigator&&!Nn.location&&!Nn.document)return;const t=e.request&&e.request.url||Nn.location&&Nn.location.href,{referrer:n}=Nn.document||{},{userAgent:r}=Nn.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:o}}}),jr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();hn($n,i.stackParser,i.maxValueLength,n,t,e,r)}}};function Ar(e){const t=[un(),cn(),Sr(),xr(),Lr(),jr(),bn(),Nr()];return!1!==e.autoSessionTracking&&t.push(Rr()),t}function Ir(e={}){const t=function(e={}){const t={defaultIntegrations:Ar(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Nn.SENTRY_RELEASE&&Nn.SENTRY_RELEASE.id?Nn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);var n;if(t.skipBrowserExtensionCheck||!function(){const e=void 0!==Nn.window&&Nn;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Nn.location&&Nn.location.href||"",o=!!n&&Nn===Nn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>r.startsWith(`${e}//`)),i=void 0!==e.nw;return!!n&&!o&&!i}())return Mn&&(On()||m.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")),Jt(er,{...t,stackParser:(n=t.stackParser||br,Array.isArray(n)?b(...n):n),integrations:Ut(t),transport:t.transport||hr});g(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})}var Mr=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!Pn())return;Rn(n=>{if(Fe()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(Ur(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let i,s,a,c;Br()&&([i,a]=$r("Cookie",e),[s,c]=$r("Set-Cookie",n)),Nt(qr({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o}))}}(t,a,r,c,i||s)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in u))return;ur(n=>{if(Fe()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[lr];if(!s)return;const{method:a,request_headers:c}=s;try{!function(e,t,n,r,o){if(Ur(e,t.status,t.responseURL)){let e,a,c;if(Br()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=Hr(e))}catch(i){}try{c=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch(s){}e=r}Nt(qr({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:a,error:o}))}}(t,i,a,c,r||o)}catch(sv){Mn&&m.warn("Error while extracting response event form XHR response",sv)}})}(e,t)}}};function $r(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Hr(t))}catch(o){}return[n,r]}function Fr(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Hr(e){return e.split("; ").reduce((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function Ur(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!en(n,Fe());var r,o}function qr(e){const t=Fe(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Fr(e.responseHeaders)}}};return ve(i,{type:"http.client",handled:!1}),i}function Br(){const e=Fe();return!!e&&Boolean(e.getOptions().sendDefaultPii)}var zr=e(s());function Vr(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(zr.version)&&I(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return Dt(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Kr=o(e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case u:case o:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case f:case a:return e;default:return t}}case r:return t}}}function _(e){return w(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=a,e.Element=n,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=f,e.Portal=r,e.Profiler=s,e.StrictMode=i,e.Suspense=h,e.isAsyncMode=function(e){return _(e)||w(e)===l},e.isConcurrentMode=_,e.isContextConsumer=function(e){return w(e)===c},e.isContextProvider=function(e){return w(e)===a},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return w(e)===d},e.isFragment=function(e){return w(e)===o},e.isLazy=function(e){return w(e)===g},e.isMemo=function(e){return w(e)===f},e.isPortal=function(e){return w(e)===r},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===i},e.isSuspense=function(e){return w(e)===h},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===s||e===i||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},e.typeOf=w}),Wr=o((e,t)=>{t.exports=Kr()}),Gr=o((e,t)=>{var n=Wr(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return n.isMemo(e)?i:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var s=l(n);u&&(s=s.concat(u(n)));for(var f=a(t),g=a(n),m=0;m<s.length;++m){var v=s[m];if(!(o[v]||r&&r[v]||g&&g[v]||f&&f[v])){var y=d(n,v);try{c(t,v,y)}catch(sv){}}}}return t}}),Jr=e(a(),1);function Yr(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}for(var Qr=Yr("LaunchDarklyUnexpectedResponseError"),Xr=Yr("LaunchDarklyInvalidEnvironmentIdError"),Zr=Yr("LaunchDarklyInvalidUserError"),eo=Yr("LaunchDarklyInvalidEventKeyError"),to=Yr("LaunchDarklyInvalidArgumentError"),no=Yr("LaunchDarklyFlagFetchError"),ro={LDUnexpectedResponseError:Qr,LDInvalidEnvironmentIdError:Xr,LDInvalidUserError:Zr,LDInvalidEventKeyError:eo,LDInvalidArgumentError:to,LDInvalidDataError:Yr("LaunchDarklyInvalidDataError"),LDFlagFetchError:no,LDTimeoutError:Yr("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},oo=[],io=[],so=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),ao=0;ao<64;++ao)oo[ao]=so[ao],io[so.charCodeAt(ao)]=ao;function co(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(oo[(o=r)>>18&63]+oo[o>>12&63]+oo[o>>6&63]+oo[63&o]);return i.join("")}io["-".charCodeAt(0)]=62,io["_".charCodeAt(0)]=63;var lo=function(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,a=n-r;s<a;s+=i)o.push(co(e,s,s+i>a?a:s+i));return 1===r?(t=e[n-1],o.push(oo[t>>2]+oo[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(oo[t>>10]+oo[t>>4&63]+oo[t<<2&63]+"=")),o.join("")},uo=Array.isArray,ho=Object.keys,po=Object.prototype.hasOwnProperty,fo=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,o,i,s=uo(t),a=uo(n);if(s&&a){if((o=t.length)!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(s!=a)return!1;var c=t instanceof Date,l=n instanceof Date;if(c!=l)return!1;if(c&&l)return t.getTime()==n.getTime();var u=t instanceof RegExp,d=n instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==n.toString();var h=ho(t);if((o=h.length)!==ho(n).length)return!1;for(r=o;0!==r--;)if(!po.call(n,h[r]))return!1;for(r=o;0!==r--;)if(!e(t[i=h[r]],n[i]))return!1;return!0}return t!=t&&n!=n},go=["key","ip","country","email","firstName","lastName","avatar","name"];function mo(e){const t=unescape(encodeURIComponent(e));return lo(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function vo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var yo,bo={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:function(e){return mo(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},btoa:mo,clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return fo(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){const t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:vo,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||go.forEach(n=>{const r=e[n];void 0!==r&&"string"!=typeof r&&(t=t||{...e},t[n]=String(r))}),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)vo(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n},once:function(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}},wo=new Uint8Array(16);function _o(){if(!yo&&!(yo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yo(wo)}var xo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Eo(e){return"string"==typeof e&&xo.test(e)}for(var So,ko,Oo=[],Co=0;Co<256;++Co)Oo.push((Co+256).toString(16).substr(1));function Po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Oo[e[t+0]]+Oo[e[t+1]]+Oo[e[t+2]]+Oo[e[t+3]]+"-"+Oo[e[t+4]]+Oo[e[t+5]]+"-"+Oo[e[t+6]]+Oo[e[t+7]]+"-"+Oo[e[t+8]]+Oo[e[t+9]]+"-"+Oo[e[t+10]]+Oo[e[t+11]]+Oo[e[t+12]]+Oo[e[t+13]]+Oo[e[t+14]]+Oo[e[t+15]]).toLowerCase();if(!Eo(n))throw TypeError("Stringified UUID is invalid");return n}var Ro=0,Lo=0;function To(e){if(!Eo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Do(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=To(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=s[a];return o}return Po(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function No(e){return 14+(e+64>>>9<<4)+1}function jo(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ao(e,t,n,r,o,i){return jo((s=jo(jo(t,e),jo(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Io(e,t,n,r,o,i,s){return Ao(t&n|~t&r,e,t,o,i,s)}function Mo(e,t,n,r,o,i,s){return Ao(t&r|n&~r,e,t,o,i,s)}function $o(e,t,n,r,o,i,s){return Ao(t^n^r,e,t,o,i,s)}function Fo(e,t,n,r,o,i,s){return Ao(n^(t|~r),e,t,o,i,s)}var Ho=Do("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[No(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,s=0;s<e.length;s+=16){var a=n,c=r,l=o,u=i;n=Io(n,r,o,i,e[s],7,-680876936),i=Io(i,n,r,o,e[s+1],12,-389564586),o=Io(o,i,n,r,e[s+2],17,606105819),r=Io(r,o,i,n,e[s+3],22,-1044525330),n=Io(n,r,o,i,e[s+4],7,-176418897),i=Io(i,n,r,o,e[s+5],12,1200080426),o=Io(o,i,n,r,e[s+6],17,-1473231341),r=Io(r,o,i,n,e[s+7],22,-45705983),n=Io(n,r,o,i,e[s+8],7,1770035416),i=Io(i,n,r,o,e[s+9],12,-1958414417),o=Io(o,i,n,r,e[s+10],17,-42063),r=Io(r,o,i,n,e[s+11],22,-1990404162),n=Io(n,r,o,i,e[s+12],7,1804603682),i=Io(i,n,r,o,e[s+13],12,-40341101),o=Io(o,i,n,r,e[s+14],17,-1502002290),n=Mo(n,r=Io(r,o,i,n,e[s+15],22,1236535329),o,i,e[s+1],5,-165796510),i=Mo(i,n,r,o,e[s+6],9,-1069501632),o=Mo(o,i,n,r,e[s+11],14,643717713),r=Mo(r,o,i,n,e[s],20,-373897302),n=Mo(n,r,o,i,e[s+5],5,-701558691),i=Mo(i,n,r,o,e[s+10],9,38016083),o=Mo(o,i,n,r,e[s+15],14,-660478335),r=Mo(r,o,i,n,e[s+4],20,-405537848),n=Mo(n,r,o,i,e[s+9],5,568446438),i=Mo(i,n,r,o,e[s+14],9,-1019803690),o=Mo(o,i,n,r,e[s+3],14,-187363961),r=Mo(r,o,i,n,e[s+8],20,1163531501),n=Mo(n,r,o,i,e[s+13],5,-1444681467),i=Mo(i,n,r,o,e[s+2],9,-51403784),o=Mo(o,i,n,r,e[s+7],14,1735328473),n=$o(n,r=Mo(r,o,i,n,e[s+12],20,-1926607734),o,i,e[s+5],4,-378558),i=$o(i,n,r,o,e[s+8],11,-2022574463),o=$o(o,i,n,r,e[s+11],16,1839030562),r=$o(r,o,i,n,e[s+14],23,-35309556),n=$o(n,r,o,i,e[s+1],4,-1530992060),i=$o(i,n,r,o,e[s+4],11,1272893353),o=$o(o,i,n,r,e[s+7],16,-155497632),r=$o(r,o,i,n,e[s+10],23,-1094730640),n=$o(n,r,o,i,e[s+13],4,681279174),i=$o(i,n,r,o,e[s],11,-358537222),o=$o(o,i,n,r,e[s+3],16,-722521979),r=$o(r,o,i,n,e[s+6],23,76029189),n=$o(n,r,o,i,e[s+9],4,-640364487),i=$o(i,n,r,o,e[s+12],11,-421815835),o=$o(o,i,n,r,e[s+15],16,530742520),n=Fo(n,r=$o(r,o,i,n,e[s+2],23,-995338651),o,i,e[s],6,-198630844),i=Fo(i,n,r,o,e[s+7],10,1126891415),o=Fo(o,i,n,r,e[s+14],15,-1416354905),r=Fo(r,o,i,n,e[s+5],21,-57434055),n=Fo(n,r,o,i,e[s+12],6,1700485571),i=Fo(i,n,r,o,e[s+3],10,-1894986606),o=Fo(o,i,n,r,e[s+10],15,-1051523),r=Fo(r,o,i,n,e[s+1],21,-2054922799),n=Fo(n,r,o,i,e[s+8],6,1873313359),i=Fo(i,n,r,o,e[s+15],10,-30611744),o=Fo(o,i,n,r,e[s+6],15,-1560198380),r=Fo(r,o,i,n,e[s+13],21,1309151649),n=Fo(n,r,o,i,e[s+4],6,-145523070),i=Fo(i,n,r,o,e[s+11],10,-1120210379),o=Fo(o,i,n,r,e[s+2],15,718787259),r=Fo(r,o,i,n,e[s+9],21,-343485551),n=jo(n,a),r=jo(r,c),o=jo(o,l),i=jo(i,u)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(No(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});function Uo(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function qo(e,t){return e<<t|e>>>32-t}var Bo=Do("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,s=Math.ceil(i/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=qo(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],m=n[1],v=n[2],y=n[3],b=n[4],w=0;w<80;++w){var _=Math.floor(w/20),x=qo(g,5)+Uo(_,m,v,y)+b+t[_]+h[w]>>>0;b=y,y=v,v=qo(m,30)>>>0,m=g,g=x}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),zo=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||So,s=void 0!==e.clockseq?e.clockseq:ko;if(null==i||null==s){var a=e.random||(e.rng||_o)();i??(i=So=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),s??(s=ko=16383&(a[6]<<8|a[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Lo+1,u=c-Ro+(l-Lo)/1e4;if(u<0&&void 0===e.clockseq&&(s=s+1&16383),(u<0||c>Ro)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ro=c,Lo=l,ko=s;var d=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var h=c/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=255&h,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var p=0;p<6;++p)o[r+p]=i[p];return t||Po(o)},v3:Ho,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||_o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Po(r)},v5:Bo,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!Eo(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:Eo,stringify:Po,parse:To}),Vo=["debug","info","warn","error","none"],Ko={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],o=!(!e||!e.destination),i=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ";let s=1;if(e&&e.level)for(let l=0;l<Vo.length;l++)Vo[l]===e.level&&(s=l);function a(e,n,s){if(s.length<1)return;let a;const c=o?n+": "+i:i;if(1!==s.length&&t){const e=[...s];e[0]=c+e[0],a=t(...e)}else a=c+s[0];try{r[e](a)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}const c={};for(let l=0;l<Vo.length;l++){const e=Vo[l];if("none"!==e)if(l<s)c[e]=()=>{};else{const t=l;c[e]=function(){a(t,e,arguments)}}}return c},validateLogger:function(e){Vo.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")})}};function Wo(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}var Go=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.",Jo={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+Go},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+Go},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+Go},errorFetchingFlags:function(e){return"Error fetching flag settings: "+Wo(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(ro.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+Go},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+Go},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+Wo(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+Wo(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+Go},unrecoverableStreamError:e=>`Error on stream connection ${Wo(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"},{validateLogger:Yo}=Ko,Qo={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=ei(`${e}.id`,t.id,n)),t.version&&(r.version=ei(`${e}.version`,t.version,n)),r}},inspectors:{default:[]},hooks:{default:[]},plugins:{default:[]}},Xo=/^(\w|\.|-)+$/;function Zo(e){return e&&e.replace(/\/+$/,"")}function ei(e,t,n){if("string"==typeof t&&t.match(Xo)){if(!(t.length>64))return t;n.warn(Jo.tagValueTooLong(e))}else n.warn(Jo.invalidTagValue(e))}var ti={baseOptionDefs:Qo,validate:function(e,t,n,r){const o=bo.extend({logger:{default:r}},Qo,n),i={};function s(e){bo.onNextTick(()=>{t&&t.maybeReportError(new ro.LDInvalidArgumentError(e))})}let a=bo.extend({},e||{});return function(e){const t=e;Object.keys(i).forEach(e=>{if(void 0!==t[e]){const n=i[e];r&&r.warn(Jo.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}})}(a),a=function(e){const t=bo.extend({},e);return Object.keys(o).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(a),a=function(e){const t=bo.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";const t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{const a=e[i];if(null!=a){const c=o[i];if(void 0===c)s(Jo.unknownOption(i));else{const o=c.type||n(c.default),l=c.validator;if(l){const n=l(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==o){const e=o.split("|"),r=n(a);e.indexOf(r)<0?"boolean"===o?(t[i]=!!a,s(Jo.wrongOptionTypeBoolean(i,r))):(s(Jo.wrongOptionType(i,o,r)),t[i]=c.default):"number"===r&&void 0!==c.minimum&&a<c.minimum&&(s(Jo.optionBelowMinimum(i,a,c.minimum)),t[i]=c.minimum)}}}}),t.baseUrl=Zo(t.baseUrl),t.streamUrl=Zo(t.streamUrl),t.eventsUrl=Zo(t.eventsUrl),t}(a),Yo(a.logger),a},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}},{getLDUserAgentString:ni}=bo,ri={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||"User-Agent"]=ni(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=ti.getTags(t),o=Object.keys(r);return o.length&&(n["x-launchdarkly-tags"]=o.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}},{v1:oi}=zo,{getLDHeaders:ii,transformHeaders:si}=ri,ai=function(e,t,n){const r=bo.extend({"Content-Type":"application/json"},ii(e,n)),o={sendEvents:(t,o,i)=>{if(!e.httpRequest)return Promise.resolve();const s=JSON.stringify(t),a=i?null:oi();return function t(c){const l=i?r:bo.extend({},r,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":a});return e.httpRequest("POST",o,si(l,n),s).promise.then(e=>{if(e)return e.status>=400&&ro.isHttpErrorRecoverable(e.status)&&c?t(!1):function(e){const t={status:e.status},n=e.header("date");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>c?t(!1):Promise.reject())}(!0).catch(()=>{})}};return o},ci=function e(t,n=[]){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(n.includes(t))throw new Error("Cycle detected");return Array.isArray(t)?`[${t.map(r=>e(r,[...n,t])).map(e=>void 0===e?"null":e).join(",")}]`:`{${Object.keys(t).sort().map(r=>{const o=e(t[r],[...n,t]);if(void 0!==o)return`${JSON.stringify(r)}:${o}`}).filter(e=>void 0!==e).join(",")}}`},{commonBasicLogger:li}=Ko;function ui(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function di(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var hi={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;const n=e.key,r=void 0===e.kind?"user":e.kind,o=ui(r),i="multi"===r||null!=n&&""!==n;if("multi"===r){const t=Object.keys(e).filter(e=>"kind"!==e);return i&&t.every(e=>ui(e))&&t.every(t=>{const n=e[t].key;return null!=n&&""!==n})}return i&&o}return!1},getContextKeys:function(e,t=li()){if(!e)return;const n={},{kind:r,key:o}=e;switch(r){case void 0:n.user=`${o}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${o}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${di(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${di(e[t].key)}`).join(":")}}},{getContextKinds:pi}=hi,fi=function(e){let t={},n={};return{summarizeEvent:function(e){if("feature"===e.kind){const r=ci(e.context);if(!r)return;let o=t[r];o||(t[r]=function(){const e={};let t=0,n=0,r={},o={};return e.summarizeEvent=e=>{if("feature"===e.kind){const i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),s=r[i];let a=o[e.key];a||(a=new Set,o[e.key]=a),function(e){return e.context?pi(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach(e=>a.add(e)),s?s.count=s.count+1:r[i]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let i=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...o[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),i=!1}return i?null:{startDate:t,endDate:n,features:e,kind:"summary"}},e.clearSummary=()=>{t=0,n=0,r={},o={}},e}(),o=t[r],n[r]=e.context),o.summarizeEvent(e)}},getSummaries:function(){const r=t,o=n;return t={},n={},Object.entries(r).map(([t,n])=>{const r=n.getSummary();return r.context=e.filter(o[t]),r})}}};function gi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function mi(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function vi(e){return!e.startsWith("/")}function yi(e,t){const n=vi(e),r=vi(t);if(n&&r)return e===t;if(n){const n=mi(t);return 1===n.length&&e===n[0]}if(r){const n=mi(e);return 1===n.length&&t===n[0]}return e===t}function bi(e){return`/${gi(e)}`}var wi={cloneExcluding:function(e,t){const n=[],r={},o=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:bi(t),source:e,parent:r,visited:[e]})));n.length;){const e=n.pop();if(t.some(t=>yi(t,e.ptr)))o.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>{return{key:n,ptr:(r=e.ptr,o=gi(n),`${r}/${o}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,o}))}else e.parent[e.key]=t}}return{cloned:r,excluded:o.sort()}},compare:yi,literalToReference:bi},{getContextKeys:_i}=hi,xi=function(e,t,n,r=null,o=null,i=null){const s={},a=i||ai(e,0,t),c=bo.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),l=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],o=["key","kind","_meta","anonymous"],i=["name","ip","firstName","lastName","email","avatar","country"],s=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;const{cloned:i,excluded:s}=wi.cloneExcluding(e,((e,t)=>(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!o.some(t=>wi.compare(e,t))))(e,t));return i.key=String(i.key),s.length&&(i._meta||(i._meta={}),i._meta.redactedAttributes=s),i._meta&&(delete i._meta.privateAttributes,0===Object.keys(i._meta).length&&delete i._meta),void 0!==i.anonymous&&(i.anonymous=!!i.anonymous),i};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?s((e=>{const t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of i)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?wi.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>{const n={kind:e.kind},r=Object.keys(e);for(const o of r)if("kind"!==o){const r=s(e[o],t);r&&(n[o]=r)}return n})(e,t):s(e,t),t}(t),u=fi(l),d=t.samplingInterval,h=t.eventCapacity,p=t.flushInterval,f=t.logger;let g,m=[],v=0,y=!1,b=!1;function w(){return 0===d||0===Math.floor(Math.random()*d)}function _(e){m.length<h?(m.push(e),b=!1):(b||(b=!0,f.warn(Jo.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return s.enqueue=function(e){if(y)return;let t=!1,n=!1;var r;if(u.summarizeEvent(e),"feature"===e.kind?w()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>v&&r.debugEventsUntilDate>(new Date).getTime()):t=w(),t&&_(function(e){const t=bo.extend({},e);return"identify"===e.kind||"feature"===e.kind||"custom"===e.kind?t.context=l.filter(e.context):(t.contextKeys=_i(e.context,f),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=bo.extend({},e,{kind:"debug"});t.context=l.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,_(t)}},s.flush=async function(){if(y)return Promise.resolve();const e=m;return u.getSummaries().forEach(t=>{Object.keys(t.features).length&&e.push(t)}),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(m=[],f.debug(Jo.debugPostingEvents(e.length)),a.sendEvents(e,c).then(e=>{e&&(e.serverTime&&(v=e.serverTime),ro.isHttpErrorRecoverable(e.status)||(y=!0),e.status>=400&&bo.onNextTick(()=>{o.maybeReportError(new ro.LDUnexpectedResponseError(Jo.httpErrorMessage(e.status,"event posting","some events were dropped")))}))}))},s.start=function(){const e=()=>{s.flush(),g=setTimeout(e,p)};g=setTimeout(e,p)},s.stop=function(){clearTimeout(g)},s},Ei="ready",Si="initialized",ki="failed",{appendUrlPath:Oi,base64URLEncode:Ci,objectHasOwnProperty:Pi}=bo,{getLDHeaders:Ri,transformHeaders:Li}=ri,{isHttpErrorRecoverable:Ti}=ro,Di=function(e,t,n,r){const o=t.streamUrl,i=t.logger,s={},a=Oi(o,"/eval/"+n),c=t.useReport,l=t.evaluationReasons,u=t.streamReconnectDelay,d=Ri(e,t);let h,p=!1,f=null,g=null,m=null,v=null,y=null,b=0;function w(e){if(e.status&&"number"==typeof e.status&&!Ti(e.status))return E(),i.error(Jo.unrecoverableStreamError(e)),void(g&&(clearTimeout(g),g=null));const t=function(){const e=(t=function(){const e=u*Math.pow(2,b);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return b+=1,e}();p||(i.warn(Jo.streamError(e,t)),p=!0),S(!1),E(),_(t)}function _(e){g||(e?g=setTimeout(x,e):x())}function x(){let r;g=null;let s="";const u={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=v&&(s="h="+v),c?e.eventSourceAllowsReport?(r=a,u.method="REPORT",u.headers["Content-Type"]="application/json",u.body=JSON.stringify(m)):(r=Oi(o,"/ping/"+n),s=""):r=a+"/"+Ci(JSON.stringify(m)),u.headers=Li(u.headers,t),l&&(s=s+(s?"&":"")+"withReasons=true"),r=r+(s?"?":"")+s,E(),i.info(Jo.streamConnecting(r)),h=(new Date).getTime(),f=e.eventSourceFactory(r,u);for(const e in y)Pi(y,e)&&f.addEventListener(e,y[e]);f.onerror=w,f.onopen=()=>{b=0}}}function E(){f&&(i.info(Jo.streamClosing()),f.close(),f=null)}function S(e){h&&r&&r.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return s.connect=function(e,t,n){m=e,v=t,y={};for(const r in n||{})y[r]=function(e){p=!1,S(!0),n[r]&&n[r](e)};_()},s.disconnect=function(){clearTimeout(g),g=null,E()},s.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},s},{transformHeaders:Ni,getLDHeaders:ji}=ri,Ai="application/json",Ii=function(e,t,n){const r=t.baseUrl,o=t.useReport,i=t.evaluationReasons,s=t.logger,a={},c={};function l(n,r){if(!e.httpRequest)return new Promise((e,t)=>{t(new ro.LDFlagFetchError(Jo.httpUnavailable()))});const o=r?"REPORT":"GET",i=ji(e,t);r&&(i["Content-Type"]=Ai);let s=c[n];s||(s=function(e){let t,n,r,o;const i={addPromise:(i,s)=>{t=i,n&&n(),n=s,i.then(n=>{t===i&&(r(n),e&&e())},n=>{t===i&&(o(n),e&&e())})}};return i.resultPromise=new Promise((e,t)=>{r=e,o=t}),i}(()=>{delete c[n]}),c[n]=s);const a=e.httpRequest(o,n,Ni(i,t),r),l=a.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===Ai)return JSON.parse(e.body);{const t=Jo.invalidContentType(e.header("content-type")||"");return Promise.reject(new ro.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new ro.LDInvalidEnvironmentIdError(Jo.environmentNotFound()):new ro.LDFlagFetchError(Jo.errorFetchingFlags(e.statusText||String(e.status)))}(e))},e=>Promise.reject(new ro.LDFlagFetchError(Jo.networkError(e))));return s.addPromise(l,()=>{a.cancel&&a.cancel()}),s.resultPromise}return a.fetchJSON=function(e){return l(bo.appendUrlPath(r,e),null)},a.fetchFlagSettings=function(e,t){let a,c,u,d="";return o?(c=[r,"/sdk/evalx/",n,"/context"].join(""),u=JSON.stringify(e)):(a=bo.base64URLEncode(JSON.stringify(e)),c=[r,"/sdk/evalx/",n,"/contexts/",a].join("")),t&&(d="h="+t),i&&(d=d+(d?"&":"")+"withReasons=true"),c=c+(d?"?":"")+d,s.debug(Jo.debugPolling(c)),l(c,u)},a},{v1:Mi}=zo,{getContextKinds:$i}=hi,Fi=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then(o=>{if(o)return r.key=o,r;{const o=Mi();return r.key=o,function(n,r){return e.set(t(r),n)}(o,n).then(()=>r)}}):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new ro.LDInvalidUserError(Jo.contextNotSpecified()));const t=bo.clone(e);if("multi"===e.kind){const e=$i(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}return n(e.kind,t)}},{v1:Hi}=zo,{baseOptionDefs:Ui}=ti,{appendUrlPath:qi}=bo,Bi=function(e){const t={diagnosticId:Hi()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},zi=function(e){let t,n,r,o;function i(e){t=e,n=0,r=0,o=[]}return i(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:o}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,o=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};o.push(r)},reset:i}},Vi=function(e,t,n,r,o,i,s){const a=!!e.diagnosticUseCombinedEvent,c="ld:"+o+":$diagnostics",l=qi(i.eventsUrl,"/events/diagnostic/"+o),u=i.diagnosticRecordingInterval,d=n;let h,p,f=!!i.streaming;const g={};function m(){return{sdk:b(),configuration:{customBaseURI:i.baseUrl!==Ui.baseUrl.default,customStreamURI:i.streamUrl!==Ui.streamUrl.default,customEventsURI:i.eventsUrl!==Ui.eventsUrl.default,eventsCapacity:i.eventCapacity,eventsFlushIntervalMillis:i.flushInterval,reconnectTimeMillis:i.streamReconnectDelay,streamingDisabled:!f,allAttributesPrivate:!!i.allAttributesPrivate,diagnosticRecordingIntervalMillis:i.diagnosticRecordingInterval,usingSecureMode:!!i.hash,bootstrapMode:!!i.bootstrap,fetchGoalsDisabled:!i.fetchGoals,sendEventsOnlyForVariation:!!i.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function v(e){i.logger&&i.logger.debug(Jo.debugPostingDiagnosticEvent(e)),r.sendEvents(e,l,!0).then(()=>{}).catch(()=>{})}function y(){v(function(){const e=(new Date).getTime();let t={kind:a?"diagnostic-combined":"diagnostic",id:s,creationDate:e,...d.getProps()};return a&&(t={...t,...m()}),d.reset(e),t}()),p=setTimeout(y,u),h=(new Date).getTime(),a&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(c,JSON.stringify(e))}}()}function b(){const t={...e.diagnosticSdkData};return i.wrapperName&&(t.wrapperName=i.wrapperName),i.wrapperVersion&&(t.wrapperVersion=i.wrapperVersion),t}return g.start=()=>{a?function(e){if(!t.isEnabled())return e(!1);t.get(c).then(t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),h=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){const e=(h||0)+u,t=(new Date).getTime();t>=e?y():p=setTimeout(y,e-t)}else 0===Math.floor(4*Math.random())?y():p=setTimeout(y,u)}):(v({kind:"diagnostic-init",id:s,creationDate:d.getProps().dataSinceDate,...m()}),p=setTimeout(y,u))},g.stop=()=>{p&&clearTimeout(p)},g.setStreaming=e=>{f=e},g},{onNextTick:Ki}=bo,Wi={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(Wi);var Gi={InspectorTypes:Wi,InspectorManager:function(e,t){const n={},r={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},o={[Wi.flagUsed]:[],[Wi.flagDetailsChanged]:[],[Wi.flagDetailChanged]:[],[Wi.clientIdentityChanged]:[]},i=e&&e.map(e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,synchronous:e.synchronous,method:(...o)=>{try{e.method(...o)}catch{n||(n=!0,t.warn(Jo.inspectorMethodError(r.type,r.name)))}}};return r}(e,t));return i&&i.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(o,e.type)&&e.synchronous?o[e.type].push(e):t.warn(Jo.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]&&r[e].length||o[e]&&o[e].length,n.onFlagUsed=(e,t,n)=>{const i=Wi.flagUsed;o[i].length&&o[i].forEach(r=>r.method(e,t,n)),r[i].length&&Ki(()=>{r[i].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{const t=Wi.flagDetailsChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{const n=Wi.flagDetailChanged;o[n].length&&o[n].forEach(n=>n.method(e,t)),r[n].length&&Ki(()=>{r[n].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{const t=Wi.clientIdentityChanged;o[t].length&&o[t].forEach(t=>t.method(e)),r[t].length&&Ki(()=>{r[t].forEach(t=>t.method(e))})},n}},{LDTimeoutError:Ji}=ro,Yi="unknown hook";function Qi(e,t,n,r,o){try{return r()}catch(r){return e?.error(`An error was encountered in "${t}" of the "${n}" hook: ${r}`),o}}function Xi(e,t){try{return t.getMetadata().name||Yi}catch{return e.error("Exception thrown getting metadata for hook. Unable to get hook name."),Yi}}var Zi="unknown plugin";function es(e,t){try{return t.getMetadata().name||Zi}catch(t){return e.error("Exception thrown getting metadata for plugin. Unable to get plugin name."),Zi}}var ts={getPluginHooks:function(e,t,n){const r=[];return n.forEach(n=>{try{const o=n.getHooks?.(t);void 0===o?e.error(`Plugin ${es(e,n)} returned undefined from getHooks.`):o&&o.length>0&&r.push(...o)}catch(t){e.error(`Exception thrown getting hooks for plugin ${es(e,n)}. Unable to get hooks.`)}}),r},registerPlugins:function(e,t,n,r){r.forEach(r=>{try{r.register(n,t)}catch(t){e.error(`Exception thrown registering plugin ${es(e,r)}.`)}})},createPluginEnvironment:function(e,t,n){const r={};e.userAgent&&(r.name=e.userAgent),e.version&&(r.version=e.version),n.wrapperName&&(r.wrapperName=n.wrapperName),n.wrapperVersion&&(r.wrapperVersion=n.wrapperVersion);const o={};n.application&&(n.application.name&&(o.name=n.application.name),n.application.version&&(o.version=n.application.version));const i={sdk:r,clientSideId:t};return Object.keys(o).length>0&&(i.application=o),i}},{commonBasicLogger:ns}=Ko,{checkContext:rs,getContextKeys:os}=hi,{InspectorTypes:is,InspectorManager:ss}=Gi,{getPluginHooks:as,registerPlugins:cs,createPluginEnvironment:ls}=ts,us="change",ds="internal-change",hs={initialize:function(e,t,n,r,o){const i=n&&n.logger?n.logger:o&&o.logger&&o.logger.default||ns("warn"),s=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let o=0;o<n[e].length;o++)n[e][o].handler===t&&n[e][o].context===r&&(n[e]=n[e].slice(0,o).concat(n[e].slice(o+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let n=0;n<t.length;n++)t[n].handler.apply(t[n].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(i),a=function(e){let t=!1,n=!1,r=null,o=null;const i=new Promise(t=>{const n=()=>{e.off(Ei,n),t()};e.on(Ei,n)}).catch(()=>{});return{getInitializationPromise:()=>o||(t?Promise.resolve():n?Promise.reject(r):(o=new Promise((t,n)=>{const r=()=>{e.off(Si,r),t()},o=t=>{e.off(ki,o),n(t)};e.on(Si,r),e.on(ki,o)}),o)),getReadyPromise:()=>i,signalSuccess:()=>{t||n||(t=!0,e.emit(Si),e.emit(Ei))},signalFailure:o=>{t||n||(n=!0,r=o,e.emit(ki,o),e.emit(Ei)),e.maybeReportError(o)}}}(s),c=ti.validate(n,s,o,i),l=ss(c.inspectors,i),u=c.sendEvents;let d=e,h=c.hash;const p=[...c.plugins],f=ls(r,e,c),g=as(i,f,p),m=function(e,t){const n=t?[...t]:[];return{withEvaluation:function(t,r,o,i){if(0===n.length)return i();const s=[...n],a={flagKey:t,context:r,defaultValue:o},c=function(e,t,n){return t.map(t=>Qi(e,"beforeEvaluation",Xi(e,t),()=>t?.beforeEvaluation?.(n,{})??{},{}))}(e,s,a),l=i();return function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterEvaluation",Xi(e,s),()=>s?.afterEvaluation?.(n,a,o)??{},{})}}(e,s,a,c,l),l},identify:function(t,r){const o=[...n],i={context:t,timeout:r},s=function(e,t,n){return t.map(t=>Qi(e,"beforeIdentify",Xi(e,t),()=>t?.beforeIdentify?.(n,{})??{},{}))}(e,o,i);return t=>{!function(e,t,n,r,o){for(let i=t.length-1;i>=0;i-=1){const s=t[i],a=r[i];Qi(e,"afterIdentify",Xi(e,s),()=>s?.afterIdentify?.(n,a,o)??{},{})}}(e,o,i,s,t)}},addHook:function(e){n.push(e)},afterTrack:function(t){0!==n.length&&function(e,t,n){for(let r=t.length-1;r>=0;r-=1){const o=t[r];Qi(e,"afterTrack",Xi(e,o),()=>o?.afterTrack?.(n),void 0)}}(e,[...n],t)}}}(i,[...c.hooks,...g]),v=function(e,t){const n={};let r=!1;const o=e=>{r||(r=!0,t.warn(Jo.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise(n=>{e?e.get(t).then(n).catch(e=>{o(e),n(void 0)}):n(void 0)}),n.set=(t,n)=>new Promise(r=>{e?e.set(t,n).then(()=>r(!0)).catch(e=>{o(e),r(!1)}):r(!1)}),n.clear=t=>new Promise(n=>{e?e.clear(t).then(()=>n(!0)).catch(e=>{o(e),n(!1)}):n(!1)}),n}(r.localStorage,i),y=ai(r,0,c),b=c.sendEvents&&!c.diagnosticOptOut,w=b?Bi(d):null,_=b?zi((new Date).getTime()):null,x=b?Vi(r,v,_,y,d,c,w):null,E=Di(r,c,d,_),S=c.eventProcessor||xi(r,c,d,_,s,y),k=Ii(r,c,d);let O,C,P,R={},L=c.streaming,T=!1,D=!1,N=!0;const j=c.stateProvider,A=function(e,t){const n={};let r;return n.setContext=function(e){r=bo.sanitizeContext(e),r&&t&&t(bo.clone(r))},n.getContext=function(){return r?bo.clone(r):null},e&&n.setContext(e),n}(null,function(e){(function(e){j||e&&$({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),l.hasListeners(is.clientIdentityChanged)&&l.onIdentityChanged(A.getContext())}),I=new Fi(v),M=v.isEnabled()?function(e,t,n,r){const o={};function i(){let e="";const o=r.getContext();return o&&(e=n||bo.btoa(JSON.stringify(o))),"ld:"+t+":"+e}return o.loadFlags=()=>e.get(i()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=bo.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return o.clearFlags().then(()=>null)}}),o.saveFlags=t=>{const n=bo.extend({},t,{$schema:1});return e.set(i(),JSON.stringify(n))},o.clearFlags=()=>e.clear(i()),o}(v,d,h,A):null;function $(e){d&&(j&&j.enqueueEvent&&j.enqueueEvent(e)||(e.context?(N=!1,!u||D||r.isDoNotTrack()||(i.debug(Jo.debugEnqueueingEvent(e.kind)),S.enqueue(e))):N&&(i.warn(Jo.eventWithoutContext()),N=!1)))}function F(e,t){l.hasListeners(is.flagDetailChanged)&&l.onFlagChanged(e.key,z(t))}function H(){l.hasListeners(is.flagDetailsChanged)&&l.onFlags(Object.entries(R).map(([e,t])=>({key:e,detail:z(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function U(e,t,n,r){const o=A.getContext(),i=new Date,s={kind:"feature",key:e,context:o,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:i.getTime()},a=R[e];a&&(s.version=a.flagVersion?a.flagVersion:a.version,s.trackEvents=a.trackEvents,s.debugEventsUntilDate=a.debugEventsUntilDate),(r||a&&a.trackReason)&&t&&(s.reason=t.reason),$(s)}function q(e){return rs(e,!1)?Promise.resolve(e):Promise.reject(new ro.LDInvalidUserError(Jo.invalidContext()))}function B(e,t,n,r,o,i){let s,a;return R&&bo.objectHasOwnProperty(R,e)&&R[e]&&!R[e].deleted?(a=R[e],s=z(a),null!==a.value&&void 0!==a.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},n&&(o||a?.prerequisites?.forEach(e=>{B(e,void 0,n,!1,!1,!1)}),U(e,s,t,r)),!o&&i&&function(e,t){l.hasListeners(is.flagUsed)&&l.onFlagUsed(e,t,A.getContext())}(e,s),s}function z(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function V(){if(C=!0,!A.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void s.maybeReportError(new ro.LDInvalidDataError(Jo.invalidData()))}};E.connect(A.getContext(),h,{ping:function(){i.debug(Jo.debugStreamPing());const e=A.getContext();k.fetchFlagSettings(e,h).then(t=>{bo.deepEquals(e,A.getContext())&&W(t||{})}).catch(e=>{s.maybeReportError(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})},put:function(t){const n=e(t.data);n&&(i.debug(Jo.debugStreamPut()),W(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=R[n.key];if(!r||!r.version||!n.version||r.version<n.version){i.debug(Jo.debugStreamPatch(n.key));const e={},t=bo.extend({},n);delete t.key,R[n.key]=t;const o=z(t);e[n.key]=r?{previous:r.value,current:o}:{current:o},F(n,t),G(e)}else i.debug(Jo.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!R[n.key]||R[n.key].version<n.version){i.debug(Jo.debugStreamDelete(n.key));const e={};R[n.key]&&!R[n.key].deleted&&(e[n.key]={previous:R[n.key].value}),R[n.key]={version:n.version,deleted:!0},F(n,R[n.key]),G(e)}else i.debug(Jo.debugStreamDeleteIgnored(n.key))}})}function K(){C&&(E.disconnect(),C=!1)}function W(e){const t={};if(!e)return Promise.resolve();for(const n in R)bo.objectHasOwnProperty(R,n)&&R[n]&&(e[n]&&!bo.deepEquals(e[n].value,R[n].value)?t[n]={previous:R[n].value,current:z(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:R[n].value}));for(const n in e)bo.objectHasOwnProperty(e,n)&&e[n]&&(!R[n]||R[n].deleted)&&(t[n]={current:z(e[n])});return R={...e},H(),G(t).catch(()=>{})}function G(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach(t=>{const r=e[t].current,o=r?r.value:void 0,i=e[t].previous;s.emit(us+":"+t,o,i),n[t]=r?{current:o,previous:i}:{previous:i}}),s.emit(us,n),s.emit(ds,R),c.sendEventsOnlyForVariation||j||t.forEach(t=>{U(t,e[t].current)})}return O&&M?M.saveFlags(R):Promise.resolve()}function J(){const e=L||P&&void 0===L;e&&!C?V():!e&&C&&K(),x&&x.setStreaming(e)}function Y(e){return e===us||e.substr(0,7)===us+":"}if("string"==typeof c.bootstrap&&"LOCALSTORAGE"===c.bootstrap.toUpperCase()&&(M?O=!0:i.warn(Jo.localStorageUnavailable())),"object"==typeof c.bootstrap&&(R=function(e){const t=Object.keys(e),n="$flagsState",r="$valid",o=e[n];!o&&t.length&&i.warn(Jo.bootstrapOldFormat()),!1===e[r]&&i.warn(Jo.bootstrapInvalid());const s={};return t.forEach(t=>{if(t!==n&&t!==r){let n={value:e[t]};o&&o[t]?n=bo.extend(n,o[t]):n.version=0,s[t]=n}}),s}(c.bootstrap)),j){const e=j.getInitialState();e?Q(e):j.on("init",Q),j.on("update",function(e){e.context&&A.setContext(e.context),e.flags&&W(e.flags)})}else(function(){if(!e)return Promise.reject(new ro.LDInvalidEnvironmentIdError(Jo.environmentNotSpecified()));let n;return I.processContext(t).then(q).then(e=>(n=bo.once(m.identify(e,void 0)),e)).then(e=>(n?.({status:"completed"}),A.setContext(e),"object"==typeof c.bootstrap?X():O?M.loadFlags().then(e=>null==e?(R={},k.fetchFlagSettings(A.getContext(),h).then(e=>W(e||{})).then(X).catch(e=>{Z(new ro.LDFlagFetchError(Jo.errorFetchingFlags(e)))})):(R=e,bo.onNextTick(X),k.fetchFlagSettings(A.getContext(),h).then(e=>W(e)).catch(e=>s.maybeReportError(e)))):k.fetchFlagSettings(A.getContext(),h).then(e=>{R=e||{},H(),X()}).catch(e=>{R={},Z(e)}))).catch(e=>{throw n?.({status:"error"}),e})})().catch(Z);function Q(e){d=e.environment,A.setContext(e.context),R={...e.flags},bo.onNextTick(X)}function X(){i.info(Jo.clientInitialized()),T=!0,J(),a.signalSuccess()}function Z(e){a.signalFailure(e)}const ee={waitForInitialization:function(e=void 0){if(null!=e){if("number"==typeof e)return function(e){e>5&&i.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");const t=a.getInitializationPromise(),n=function(e,t){return new Promise((n,r)=>{setTimeout(()=>{r(new Ji(`${t} timed out after ${e} seconds.`))},1e3*e)})}(e,"waitForInitialization");return Promise.race([n,t]).catch(e=>{throw e instanceof ro.LDTimeoutError&&i.error(`waitForInitialization error: ${e}`),e})}(e);i.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return i.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),a.getInitializationPromise()},waitUntilReady:()=>a.getReadyPromise(),identify:function(e,t,n){if(D)return bo.wrapPromiseCallback(Promise.resolve({}),n);if(j)return i.warn(Jo.identifyDisabled()),bo.wrapPromiseCallback(Promise.resolve(bo.transformVersionedValuesToValues(R)),n);let r;const o=O&&M?M.clearFlags():Promise.resolve();return bo.wrapPromiseCallback(o.then(()=>I.processContext(e)).then(q).then(e=>(r=bo.once(m.identify(e,void 0)),e)).then(e=>k.fetchFlagSettings(e,t).then(n=>{const r=bo.transformVersionedValuesToValues(n);return A.setContext(e),h=t,n?W(n).then(()=>r):r})).then(e=>(r?.({status:"completed"}),C&&V(),e)).catch(e=>(r?.({status:"error"}),s.maybeReportError(e),Promise.reject(e))),n)},getContext:function(){return A.getContext()},variation:function(e,t){const{value:n}=m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!1,!1,!0));return n},variationDetail:function(e,t){return m.withEvaluation(e,A.getContext(),t,()=>B(e,t,!0,!0,!1,!0))},track:function(e,t,n){if("string"!=typeof e)return void s.maybeReportError(new ro.LDInvalidEventKeyError(Jo.unknownCustomEventKey(e)));void 0!==n&&"number"!=typeof n&&i.warn(Jo.invalidMetricValue(typeof n)),r.customEventFilter&&!r.customEventFilter(e)&&i.warn(Jo.unknownCustomEventKey(e));const o=A.getContext(),a={kind:"custom",key:e,context:o,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};o&&o.anonymous&&(a.contextKind=o.anonymous?"anonymousUser":"user"),null!=t&&(a.data=t),null!=n&&(a.metricValue=n),$(a),m.afterTrack({context:o,key:e,data:t,metricValue:n})},on:function(e,t,n){Y(e)?(P=!0,T&&J(),s.on(e,t,n)):s.on(...arguments)},off:function(e){if(s.off(...arguments),Y(e)){let e=!1;s.getEvents().forEach(t=>{Y(t)&&s.getEventListenerCount(t)>0&&(e=!0)}),e||(P=!1,C&&void 0===L&&K())}},setStreaming:function(e){const t=null===e?void 0:e;t!==L&&(L=t,J())},flush:function(e){return bo.wrapPromiseCallback(u?S.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!R)return e;for(const t in R)bo.objectHasOwnProperty(R,t)&&!R[t].deleted&&(e[t]=B(t,null,!c.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(D)return bo.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{D=!0,R={}},n=Promise.resolve().then(()=>{if(K(),x&&x.stop(),u)return S.stop(),S.flush()}).then(t).catch(t);return bo.wrapPromiseCallback(n,e)},addHook:function(e){m.addHook(e)}};return cs(i,f,ee,p),{client:ee,options:c,emitter:s,ident:A,logger:i,requestor:k,start:function(){u&&(x&&x.start(),S.start())},enqueueEvent:$,getFlagsInternal:function(){return R},getEnvironmentId:()=>d,internalChangeEventName:ds}},commonBasicLogger:ns,errors:ro,messages:Jo,utils:bo,getContextKeys:os},ps=hs.initialize,fs=hs.errors;function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ys=hs.commonBasicLogger,bs={promise:Promise.resolve({status:200,header:function(){return null},body:null})};var ws=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function _s(e,t,n,r){var o,i,s=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":i=t,o=new RegExp("^"+ws(e.url)+"/?$");break;case"canonical":i=s,o=new RegExp("^"+ws(e.url)+"/?$");break;case"substring":i=s,o=new RegExp(".*"+ws(e.substring)+".*$");break;case"regex":i=s,o=new RegExp(e.pattern);break;default:return!1}return o.test(i)}function xs(e,t){for(var n={},r=null,o=[],i=0;i<e.length;i++)for(var s=e[i],a=s.urls||[],c=0;c<a.length;c++)if(_s(a[c],window.location.href,window.location.search,window.location.hash)){"pageview"===s.kind?t("pageview",s):(o.push(s),t("click_pageview",s));break}return o.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var o=e.target,i=t[r],s=i.selector,a=document.querySelectorAll(s);o&&a.length>0;){for(var c=0;c<a.length;c++)o===a[c]&&n.push(i);o=o.parentNode}return n}(e,o),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}var Es="goalsReady",Ss={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,o,i){var s=n.synchronousFlush&!r;return n.synchronousFlush=!1,function(e,t,n,r,o){if(o&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return bs;var i,s=new window.XMLHttpRequest;for(var a in s.open(e,t,!o),n||{})Object.prototype.hasOwnProperty.call(n,a)&&s.setRequestHeader(a,n[a]);if(o){try{s.send(r)}catch(e){}return bs}return{promise:new Promise(function(e,t){s.addEventListener("load",function(){i||e({status:s.status,header:function(e){return s.getResponseHeader(e)},body:s.responseText})}),s.addEventListener("error",function(){i||t(new Error)}),s.send(r)}),cancel:function(){i=!0,s.abort()}}}(e,t,o,i,s)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var o,i=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return i?i(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise(function(t){t(window.localStorage.getItem(e))})},set:function(e,t){return new Promise(function(n){window.localStorage.setItem(e,t),n()})},clear:function(e){return new Promise(function(t){window.localStorage.removeItem(e),t()})}})}catch(e){n.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,o=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,o=window.EventSource),window.EventSource){var s=3e5;n.eventSourceFactory=function(e,t){var n=vs(vs({},{heartbeatTimeout:s,silentTimeout:s,skipDefaultHeaders:!0}),t);return new o(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent="JSClient",n.version="3.8.1",n.diagnosticSdkData={name:"js-client-sdk",version:"3.8.1"},n.diagnosticPlatformData={name:"JS"},n.diagnosticUseCombinedEvent=!0,n}(n),o=ps(e,t,n,r,Ss),i=o.client,s=o.options,a=o.emitter,c=new Promise(function(e){var t=a.on(Es,function(){a.off(Es,t),e()})});i.waitUntilGoalsReady=function(){return c},s.fetchGoals?function(e,t){var n,r;function o(){r&&r.dispose(),n&&n.length&&(r=xs(n,i))}function i(t,n){var r=e.ident.getContext(),o={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return"click"===t&&(o.selector=n.selector),e.enqueueEvent(o)}e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then(function(e){e&&e.length>0&&(r=xs(n=e,i),function(e,t){var n,r=window.location.href;function o(){(n=window.location.href)!==r&&(r=n,t())}(function e(t,n){t(),setTimeout(function(){e(t,n)},n)})(o,300),window.history&&window.history.pushState?window.addEventListener("popstate",o):window.addEventListener("hashchange",o)}(0,o)),t()}).catch(function(n){e.emitter.maybeReportError(new fs.LDUnexpectedResponseError((n&&n.message,n.message))),t()})}(o,function(){return a.emit(Es)}):a.emit(Es),"complete"!==document.readyState?window.addEventListener("load",o.start):o.start();var l=function(){r.synchronousFlush=!0,i.flush().catch(function(){}),r.synchronousFlush=!1};return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&l()}),window.addEventListener("pagehide",l),i}var Os=function(e){return ys(vs({destination:console.log},e))},Cs=o((e,t)=>{ct();var n="[object Symbol]",r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",a="\\u20d0-\\u20f0",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",u="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="['’]",f="["+i+"]",g="["+h+"]",m="["+s+a+"]",v="\\d+",y="["+c+"]",b="["+l+"]",w="[^"+i+h+v+c+l+u+"]",_="\\ud83c[\\udffb-\\udfff]",x="[^"+i+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",k="["+u+"]",O="\\u200d",C="(?:"+b+"|"+w+")",P="(?:"+k+"|"+w+")",R="(?:['’](?:d|ll|m|re|s|t|ve))?",L="(?:['’](?:D|LL|M|RE|S|T|VE))?",T="(?:"+m+"|"+_+")"+"?",D="["+d+"]?",N=D+T+("(?:"+O+"(?:"+[x,E,S].join("|")+")"+D+T+")*"),j="(?:"+[y,E,S].join("|")+")"+N,A="(?:"+[x+m+"?",m,E,S,f].join("|")+")",I=RegExp(p,"g"),M=RegExp(m,"g"),$=RegExp(_+"(?="+_+")|"+A+N,"g"),F=RegExp([k+"?"+b+"+"+R+"(?="+[g,k,"$"].join("|")+")",P+"+"+L+"(?="+[g,k+C,"$"].join("|")+")",k+"?"+C+"+"+R,k+"+"+L,v,j].join("|"),"g"),H=RegExp("["+O+i+s+a+d+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q="object"==typeof rt&&rt&&rt.Object===Object&&rt,B="object"==typeof self&&self&&self.Object===Object&&self,z=q||B||Function("return this")();var V,K=(V={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==V?void 0:V[e]});function W(e){return H.test(e)}function G(e){return W(e)?function(e){return e.match($)||[]}(e):function(e){return e.split("")}(e)}var J=Object.prototype.toString,Y=z.Symbol,Q=Y?Y.prototype:void 0,X=Q?Q.toString:void 0;function Z(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&J.call(e)==n}(e))return X?X.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ee(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function te(e){return null==e?"":Z(e)}var ne,re=(ne=function(e,t,n){return t=t.toLowerCase(),e+(n?ie(te(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=te(e),void 0===(t=n?void 0:t)?function(e){return U.test(e)}(e)?function(e){return e.match(F)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=te(e))&&e.replace(o,K).replace(M,"")}(e).replace(I,"")),ne,"")});var oe,ie=(oe="toUpperCase",function(e){var t=W(e=te(e))?G(e):void 0,n=t?t[0]:e.charAt(0),r=t?ee(t,1).join(""):e.slice(1);return n[oe]()+r});t.exports=re}),Ps=e(Cs()),Rs=(Gr(),(0,zr.createContext)({flags:{},flagKeyMap:{},ldClient:void 0})),{Provider:Ls,Consumer:Ts}=Rs,Ds={useCamelCaseFlagKeys:!0,sendEventsOnFlagRead:!0,reactContext:Rs},Ns=e=>{var t;return null!=(t=e.context)?t:e.user},js=e=>{const t={};for(const n in e)0!==n.indexOf("$")&&(t[(0,Ps.default)(n)]=e[n]);return t},As=(e,t)=>{const n=e.allFlags();return t?Object.keys(t).reduce((e,r)=>(e[r]=Object.prototype.hasOwnProperty.call(n,r)?n[r]:t[r],e),{}):n};function Is(e,t,n=Ds,r){const o=function(e,t){return void 0===t?e:Object.keys(t).reduce((t,n)=>(Ms(e,n)&&(t[n]=e[n]),t),{})}(t,r),{useCamelCaseFlagKeys:i=!0}=n,[s,a={}]=i?function(e){const t={},n={};for(const r in e){if(0===r.indexOf("$"))continue;const o=(0,Ps.default)(r);t[o]=e[r],n[o]=r}return[t,n]}(o):[o];return{flags:n.sendEventsOnFlagRead?$s(e,s,a,i):s,flagKeyMap:a}}function Ms(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $s(e,t,n,r){return new Proxy(t,{get(t,o,i){const s=Reflect.get(t,o,i),a=r&&Ms(n,o)||Ms(t,o);if("symbol"==typeof o||!a)return s;if(void 0===s)return;const c=r?n[o]:o;return e.variation(c,s)}})}js.camelCaseKeys=js;var Fs={wrapperName:"react-client-sdk",wrapperVersion:"3.8.1",sendEventsOnlyForVariation:!0},Hs=Object.defineProperty,Us=Object.defineProperties,qs=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Ks=(e,t,n)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ws=(e,t)=>{for(var n in t||(t={}))zs.call(t,n)&&Ks(e,n,t[n]);if(Bs)for(var n of Bs(t))Vs.call(t,n)&&Ks(e,n,t[n]);return e},Gs=(e,t)=>Us(e,qs(t)),Js=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{a(n.next(e))}catch(e){o(e)}},s=e=>{try{a(n.throw(e))}catch(e){o(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,s);a((n=n.apply(e,t)).next())}),Ys=class extends zr.Component{constructor(e){super(e),this.getReactOptions=()=>Ws(Ws({},Ds),this.props.reactOptions),this.subscribeToChanges=e=>{const{flags:t}=this.props;e.on("change",n=>{const r=this.getReactOptions(),o=((e,t)=>{const n={};for(const r in e)t&&void 0===t[r]||(n[r]=e[r].current);return n})(n,t),i=Ws(Ws({},this.state.unproxiedFlags),o);Object.keys(o).length>0&&this.setState(n=>Ws(Gs(Ws({},n),{unproxiedFlags:i}),Is(e,i,r,t)))})},this.onFailed=(e,t)=>{this.setState(e=>Gs(Ws({},e),{error:t}))},this.onReady=(e,t,n)=>{const r=As(e,n);this.setState(o=>Ws(Gs(Ws({},o),{unproxiedFlags:r}),Is(e,r,t,n)))},this.prepareLDClient=()=>Js(this,null,function*(){var e;const{clientSideID:t,flags:n,options:r}=this.props;let o=yield this.props.ldClient;const i=this.getReactOptions();let s,a=this.state.unproxiedFlags;if(o)a=As(o,n);else{o=ks(t,null!=(e=Ns(this.props))?e:{anonymous:!0,kind:"user"},Ws(Ws({},Fs),r));try{yield o.waitForInitialization(this.props.timeout),a=As(o,n)}catch(e){s=e,null!=s&&s.name.toLowerCase().includes("timeout")&&(o.on("failed",this.onFailed),o.on("ready",()=>{this.onReady(o,i,n)}))}}this.setState(e=>Gs(Ws(Gs(Ws({},e),{unproxiedFlags:a}),Is(o,a,i,n)),{ldClient:o,error:s})),this.subscribeToChanges(o)});const{options:t}=e;if(this.state={flags:{},unproxiedFlags:{},flagKeyMap:{}},t){const{bootstrap:e}=t;if(e&&"localStorage"!==e){const{useCamelCaseFlagKeys:t}=this.getReactOptions();this.state={flags:t?js(e):e,unproxiedFlags:e,flagKeyMap:{}}}}}componentDidMount(){return Js(this,null,function*(){const{deferInitialization:e}=this.props;e&&!Ns(this.props)||(yield this.prepareLDClient())})}componentDidUpdate(e){return Js(this,null,function*(){const{deferInitialization:t}=this.props,n=!Ns(e)&&Ns(this.props);t&&n&&(yield this.prepareLDClient())})}render(){const{flags:e,flagKeyMap:t,ldClient:n,error:r}=this.state,{reactContext:o}=this.getReactOptions();return zr.createElement(o.Provider,{value:{flags:e,flagKeyMap:t,ldClient:n,error:r}},this.props.children)}},Qs=e=>{const{flags:t}=(0,zr.useContext)(null!=e?e:Ds.reactContext);return t},Xs=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit","change_ua","A network error occurred.","Non-Error promise rejection captured with value: Not implemented on this platform","TypeError: annulé","TypeError: cancelled","Error: Error response received for message <get-frame-manager-configuration>","TypeError: Load failed",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:(update|simulateEvent), ParamCount:\d+$/,"AbortError","The user aborted a request","signal is aborted without reason","Too many active WebGL contexts",/CONTEXT_LOST_WEBGL/i,/WebGL context (?:was )?lost/i,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"],Zs=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/maps\.googleapis\.com\/maps\/api\/mapsjs\/gen_204\//i],ea=[/staging.locallogic.co/,/sdk.locallogic.co/],ta=[{vendor:"maplibre",pattern:/maplibre-vendor/},{vendor:"mapbox",pattern:/mapbox-vendor/},{vendor:"google-maps",pattern:/google-maps-vendor|maps\.(googleapis|gstatic)\.com/}],na=/bot|crawl|spider|slurp|mediapartners|headless|phantom|puppeteer|playwright|selenium|scrapy|curl|wget|python-requests|axios|facebookexternalhit|bingpreview|lighthouse|pingdom|gtmetrix|semrush|ahrefs|mj12|dotbot|petalbot|bytespider|dataprovider/i,ra=Object.freeze(new class{constructor(){!function(e){const t={...e};nn(t,"react"),jt("react",{version:zr.version}),Ir(t)}({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",tracesSampleRate:.01,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:Xs,denyUrls:Zs,allowUrls:ea,release:"1.24.41",dist:"9660812b8d3ea65a380a261c7d01827d95346211",integrations:[Mr({failedRequestStatusCodes:[400,402,[404,599]],failedRequestTargets:[/\/\/(api|reports-api|providers-api)(-qa)?\.locallogic\.co/,/\/\/analytics\.locallogic\.co/]}),Nr(),En()],beforeSend(e){if((()=>{if("undefined"==typeof navigator)return!1;if(navigator.webdriver)return!0;const e=navigator.userAgent||"";return!e||na.test(e)})())return null;const t=(e=>{const t=e.exception?.values;if(!t?.length)return null;const n=t[t.length-1]?.stacktrace?.frames;if(!n?.length)return null;const r=n[n.length-1],o=r?.filename||r?.abs_path||"";return ta.find(({pattern:e})=>e.test(o))?.vendor??null})(e);return t&&(e.tags={...e.tags,source:"map-vendor",mapVendor:t}),e},sendDefaultPii:!0,normalizeDepth:5}),jt("LocalLogic",{referrer:document.referrer,sdks_app_version:"1.24.41",sdks_app_path:window?.location?.pathname?.substring((window?.location?.pathname?.lastIndexOf("/")??-1)+1)})}captureException(e){this.log(e.message,"error"),Dt(e)}addBreadCrumb(e,t,n,r="info"){sn({category:e,message:t,data:n,level:r})}setTags(e){!function(e){$e().setTags(e)}(e)}log(e,t="info"){console[t]("[Local Logic] "+e)}}),oa=e=>"string"==typeof e,ia=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},sa=e=>null==e?"":""+e,aa=/###/g,ca=e=>e&&e.indexOf("###")>-1?e.replace(aa,"."):e,la=e=>!e||oa(e),ua=(e,t,n)=>{const r=oa(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(la(e))return{};const t=ca(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return la(e)?{}:{obj:e,k:ca(r[o])}},da=(e,t,n)=>{const{obj:r,k:o}=ua(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],s=t.slice(0,t.length-1),a=ua(e,s,Object);for(;void 0===a.obj&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=ua(e,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},ha=(e,t)=>{const{obj:n,k:r}=ua(e,t);if(n)return n[r]},pa=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?oa(e[r])||e[r]instanceof String||oa(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):pa(e[r],t[r],n):e[r]=t[r]);return e},fa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ga={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},ma=e=>oa(e)?e.replace(/[&<>"'\/]/g,e=>ga[e]):e,va=[" ",",","?","!",";"],ya=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),ba=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let s=i;s<r.length;++s)if(s!==i&&(t+=n),t+=r[s],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;i+=s-i+1;break}o=e}return o},wa=e=>e&&e.replace("_","-"),_a={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},xa=new class e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_a,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(oa(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}},Ea=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,o]=t;for(let i=0;i<o;i++)r.apply(r,[e,...n])})}},Sa=class extends Ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):oa(n)&&o?s.push(...n.split(o)):s.push(n)));const a=ha(this.data,s);return!a&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),!a&&i&&oa(n)?ba(this.data&&this.data[e]&&this.data[e][t],n,o):a}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),da(this.data,s,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)(oa(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=ha(this.data,s)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?pa(a,n,o):a={...a,...n},da(this.data,s,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},ka={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}},Oa={},Ca=class e extends Ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=xa.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=va.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=ya.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:oa(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:oa(o)?[o]:o}}translate(t,n,r){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),c=a[a.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!oa(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||oa(m)&&Array.isArray(h))if(v&&oa(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let o=!1,a=!1;const u=void 0!==n.count&&!oa(n.count),p=e.hasDefaultValue(n),f=u?this.pluralResolver.getSuffix(l,n.count,n):"",g=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",m=u&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${f}`]||n[`defaultValue${g}`]||n.defaultValue;!this.isValidLookup(h)&&p&&(o=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||o||b){if(this.logger.log(b?"updateKey":"missingKey",l,c,s,b?v:h),i){const e=this.resolve(s,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const o=p&&r!==h?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,o,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,o,b,n),this.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],s+t,n[`defaultValue${t}`]||v)})}):r(e,s,v))}h=this.extendTranslation(h,t,n,d,r),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${s}`),(a||o)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,o?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(i){const e=Array.isArray(h),t=e?[]:{},r=e?f:p;for(const o in h)if(Object.prototype.hasOwnProperty.call(h,o)){const e=`${r}${i}${o}`;t[o]=this.translate(e,{...n,joinArrays:!1,ns:a}),t[o]===e&&(t[o]=h[o])}h=t}}return o?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s=oa(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let c=n.replace&&!oa(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,a=oa(s)?[s]:s;return null!=e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=ka.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oa(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),c=a.key;n=c;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==s.count&&!oa(s.count),d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&(oa(s.context)||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);l.forEach(e=>{this.isValidLookup(t)||(i=e,!Oa[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(Oa[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(t))return;o=n;const i=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,c,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(c+e),s.ordinal&&0===e.indexOf(r)&&i.push(c+e.replace(r,this.options.pluralSeparator)),d&&i.push(c+t)),h){const n=`${c}${this.options.contextSeparator}${s.context}`;i.push(n),u&&(i.push(n+e),s.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let a;for(;a=i.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,s))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!oa(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}},Pa=e=>e.charAt(0).toUpperCase()+e.slice(1),Ra=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xa.create("languageUtils")}getScriptPartFromCode(e){if(!(e=wa(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=wa(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(oa(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(sv){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pa(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pa(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Pa(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),oa(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return oa(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):oa(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}},La=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ta={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},Da=["v1","v2","v3"],Na=["v4"],ja={zero:0,one:1,two:2,few:3,many:4,other:5},Aa=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=xa.create("pluralResolver"),this.options.compatibilityJSON&&!Na.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return La.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Ta[t.fc]}})}),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=wa("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(r,t)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>ja[e]-ja[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Da.includes(this.options.compatibilityJSON)}},Ia=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,n)=>{const r=ha(e,n);return void 0!==r?r:ha(t,n)})(e,t,n);return!i&&o&&oa(n)&&(i=ba(e,n,r),void 0===i&&(i=ba(t,n,r))),i},Ma=e=>e.replace(/\$/g,"$$$$"),$a=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=xa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:ma,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?fa(o):i||"{{",this.suffix=s?fa(s):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?fa(d):h||fa("$t("),this.nestingSuffix=p?fa(p):f||fa(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Ia(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(Ia(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ma(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ma(this.escape(e)):Ma(e)}].forEach(t=>{for(s=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof l){const t=l(e,o,r);i=oa(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else oa(i)||this.useRawValueToEscape||(i=sa(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const s=i.match(/'/g),a=i.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(sv){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,sv),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];o={...i},o=o.replace&&!oa(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),a=e,c=!0}if(r=t(s.call(this,n[1].trim(),o),o),r&&n[0]===e&&!oa(r))return r;oa(r)||(r=sa(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=a.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}},Fa=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(wa(r),o),t[s]=a),a(n)}},Ha=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=xa.create("formatter"),this.options=e,this.formats={number:Fa((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:Fa((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:Fa((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:Fa((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:Fa((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Fa(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}},Ua=class extends Ea{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=xa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const s={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=ua(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(c){s(c)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();oa(e)&&(e=this.languageUtils.toResolveHierarchy(e)),oa(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,c):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>s(null,e)).catch(s):s(null,o)}catch(a){s(a)}else l(e,t,n,r,s,c)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},qa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),oa(e[1])&&(t.defaultValue=e[1]),oa(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ba=e=>(oa(e.ns)&&(e.ns=[e.ns]),oa(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),oa(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),za=()=>{},Va=class e extends Ea{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Ba(e),this.services={},this.logger=xa,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(oa(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=qa();this.options={...r,...this.options,...Ba(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?xa.init(o(this.modules.logger),this.options):xa.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Ha);const n=new Ra(this.options);this.store=new Sa(this.options.resources,this.options);const i=this.services;i.logger=xa,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new Aa(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new $a(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ua(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Ca(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=za),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});const i=ia(),s=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za;const n=oa(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){const r=ia();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=za),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ka.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=ia();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n=oa(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),c=2;c<s;c++)a[c-2]=arguments[c];i=r.options.overloadTranslationOptionHandler([e,t].concat(a))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||o.keyPrefix);const l=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${l}${e}`):i.keyPrefix?`${i.keyPrefix}${l}${e}`:e,r.t(u,i)};return oa(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=ia();return this.options.ns?(oa(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=ia();oa(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new Ra(qa());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new e(o);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Sa(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Ca(i.services,o),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Ka=Va.createInstance();Ka.createInstance=Va.createInstance;Ka.createInstance,Ka.dir,Ka.init,Ka.loadResources,Ka.reloadResources,Ka.use,Ka.changeLanguage,Ka.getFixedT,Ka.t,Ka.exists,Ka.setDefaultNamespace,Ka.hasLoadedNamespace,Ka.loadNamespaces,Ka.loadLanguages;var Wa,Ga=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ja={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ya=e=>Ja[e],Qa={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ga,Ya)},Xa=()=>Qa,Za=()=>Wa,ec={type:"3rdParty",init(e){((e={})=>{Qa={...Qa,...e}})(e.options.react),(e=>{Wa=e})(e)}};Ka.isInitialized||Ka.use(ec).init({debug:!1,fallbackLng:"en",returnEmptyString:!1,supportedLngs:["en","fr"],resources:{en:{common:{attribution:"Powered by",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Hour",hour_other:"Hours"},distance:{meter:"m",kilometer:"km",yard:"yd",mile:"mi"},language:{english:"English",french:"French",spanish:"Spanish"},map:{marker:{schoolAttributes:{levels:"Level",grades:"Grades",languages:"Languages",types:"Type",board:"Board",programs:"Programs",categories:"Categories",rating:"School rating"},schoolCta:"Link to school",district:"District",categories:{advancedPlacement:"advanced placement",charter:"charter",magnet:"magnet"}},cluster:{poiCount_one:"{{count}} Location",poiCount_other:"{{count}} Locations"}},scores:{cafes:{title:"Cafes",description:"A measure of the quantity of nearby coffee shops."},car_friendly:{title:"Car friendly",description:"Represents how well traffic flows, and how easy it is to park."},cycling_friendly:{title:"Cycling friendly",description:"Represents how suitable the area is for bicycle commuting or recreational cycling, considering nearby bike paths and lanes, the percentage of cycling commuters, the flatness of the terrain, and the presence of bike-sharing systems."},daycares:{title:"Daycares",description:"Represents the distance to the nearest daycare."},greenery:{title:"Greenery",description:"Quantity of nearby green spaces and tree canopy coverage."},groceries:{title:"Groceries",description:"A measure of the quantity of nearby grocery stores."},high_schools:{title:"High schools",description:"Represents the distance to nearest high school."},historic:{title:"Historic",description:"A measure of the quantity and size of heritage buildings, and the average building age in the area."},nightlife:{title:"Nightlife",description:"Represents the quantity of bars nearby."},parks:{title:"Parks",description:"A measure of the quantity and size of nearby parks."},pedestrian_friendly:{title:"Pedestrian friendly",description:"A measure of how many basic services can be reached on foot and how pleasant it is to walk to them."},primary_schools:{title:"Primary schools",description:"A measure of the distance to the nearest elementary school."},quiet:{title:"Quiet",description:"A measure of the average levels of noise nearby."},restaurants:{title:"Restaurants",description:"Represents the quantity of restaurants nearby."},shopping:{title:"Shopping",description:"A measure of the quantity of fashion and department stores nearby."},transit_friendly:{title:"Transit friendly",description:"A measure of the frequency and level of public transit service."},vibrant:{title:"Vibrancy",description:"Represents the level of street activity nearby."},wellness:{title:"Wellness",description:"Represents how conducive a location is to individuals' well-being."}},pois:{airports:"Airports",alcohol:"Alcohol",art_culture_science:"Art, culture, science",banks:"Banks",bus_stops:"Bus",cafes:"Coffee shops",car_fueling_stations:"Gas stations",casino:"Casino",clothing:"Clothing",common_needs:"Common needs",conference_centers:"Conference centers",convenience_stores:"Convenience stores",daycares:"Daycares",department_stores:"Department stores",entertainment:"Entertainment",fitness:"Fitness",groceries:"Groceries",groceries_specialized:"Specialty",health_care:"Health care",home_improvement:"Home improvement",hospitals:"Hospitals",libraries:"Libraries",nightlife:"Nightlife",non_food_shops:"Shopping",parks:"Parks",personal_care:"Personal care",pet_care:"Pet care",pharmacies:"Pharmacies",rapid_transit_stations:"Rapid transit",restaurants:"Restaurants",retail:"Retail",shops_and_services:"Shops and services",sport_facilities:"Sport facilities",train_stations:"Train",high_schools:"High schools",primary_schools:"Primary schools",healthy_restaurants:"Healthy restaurants",shopping:"Shopping"},valueDrivers:{bus_service_access:"Bus services",shops_and_services_access:"Shops and Services",coffee_shop_access:"Coffee shops",clothing_and_accessory_store_access:"Clothing stores",common_needs_access:"Common necessities",department_store_access:"Department stores",entertainment_venue_access:"Entertainment venues",fitness_establishment_access:"Fitness",nightlife_access:"Nightlife",pedestrian_oriented_street_access:"Walkable streets",rapid_transit_service_access:"Rapid transit service",restaurant_access:"Restaurants",specialty_grocery_store_access:"Specialty groceries",sports_facility_access:"Sport facilities",train_service_access:"Train stations",nearest_highway_proximity:"Highway access",nearest_pharmacy_proximity:"Nearby pharmacies",nearest_bicycle_share_station_proximity:"Nearby bikeshare stations",bicycle_path_access:"Bike path access",bicycle_share_station_access:"Bike share",nearest_park_area:"Nearby large park",bicycle_infrastructure_quality:"Bike infrastructure",high_schools:"High schools",primary_schools:"Elementary schools",quiet:"Quiet",daycares:"Daycares",parks:"Parks"}},leadCapture:{header:{title:"Explore {{neighborhood}}",description:"Learn about schools, prices, community vibe, and more before you decide to move.",titleNoNeighborhood:"the neighborhood"},cards:{neighborhoodIntel:{title:"Lifestyle Report",description:""},neighborhoodContext:{title:"Neighborhood Context",description:"Discover what day to day life looks like in the area."},locationInsights:{title:"Location Insights",description:"See how local amenities and features compare to the city average."},climateRisk:{title:"Climate Risk",description:"Understand how climate risks may affect lifestyle and long-term value."},communityPortrait:{title:"Community Portrait",description:"Explore demographics, housing types, and overall community vibe."},localMarketOverview:{title:"Local Market Overview",description:""},marketTrendsReport:{title:"Market Report",description:""},neighborhoodMarketTrends:{title:"Neighborhood Market Trends",description:""},dailyUpdates:{title:"Daily Updates",description:""},fiveYearHistoricalView:{title:"5-Year Historical View",description:""},easyToReadFormat:{title:"Easy-to-Read Format",description:""},actionableInsights:{title:"Actionable Insights",description:""}},downloadCard:{title:"Get your neighborhood report",description:"Uncover instant insights on local lifestyle, demographics, and market trends.",cta:"Get your report",ctaCAN:"Get your lifestyle report",select:{default:"Select report type",niReport:"Lifestyle Report",marketReport:"Market Report",both:"Both Reports"}},contactInfo:{back:"Back",title:"Almost there!",description:"Enter your details to get instant access to your neighborhood report. It’s fast, free, and full of insights.",submit:"Submit",confirmationMessage:"All set! We’ve sent your report to {{email}}",instructions:"Please check your inbox. If you don’t see it within a few minutes, check your spam or junk folder.",resendInstructions:"Still can’t find it? <resendReport>Click here to resend.</resendReport>",consentTexts:{topText:"I agree that Local Logic may share my contact information with real estate professionals so they can contact me regarding my home search.",bottomText:"This consent is required to use this tool. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>.",CANTopText:"I agree that Local Logic may share my contact information with the operator of this website so they can contact me regarding my home search.",CANBottomText:"This consent is required to use this tool. You can withdraw your consent at any time. See our <LinkToPrivacyPolicy>Privacy Policy</LinkToPrivacyPolicy>."}},initialValues:{firstName:"First Name *",lastName:"Last Name *",email:"Email Address *",phone:"Phone Number"},errors:{firstName:"First Name is required",lastName:"Last Name is required",email:"Email Address is required",notValidEmail:"Email Address is not valid",privacyCheckbox:"You must agree to the privacy policy",phone:"Phone is not a valid number"},toastAlerts:{error:{title:"Something went wrong",description:"We couldn’t complete your request. Please try again in a moment. If the issue continues, ",action:"contact support."}}},localContent:{sidebar:{header:{title:"Categories",backAction:"Back to menu",toggle:{ariaLabel:"Toggle sidebar",ariaLabel_open:"Open sidebar",ariaLabel_close:"Close sidebar"}}},categoriesToggle:{toggleLabel:"Categories",backAction:"Back"},categories:{transport:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",health:"Health"},scoreComparison:{text:"Comparable to the {{name}} average of {{value}}",text_higher:"Higher than the {{name}} average of {{value}}",text_lower:"Lower than the {{name}} average of {{value}}"},poiSearchRadius:"Showing POIs in a {{radius}} {{unit}} radius",commute:{placeholder:"Search map...",cta:"Calculate commute",cta_long:"Calculate commute",cta_short:"Calculate",viewRoute:"View route",travelTypes:{walking:"Walking",driving:"Driving",cycling:"Cycling"},results:{noRoute:"No route available.",trySuggestion:"Try another query.",fastestRoute:"Fastest route"}}},localDemographics:{title:"Local Demographics",note:"Displaying demographics statistics for area {{value}} {{unit}} around selected location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",title_USA:"Income",types:{avgHouseholdIncome:"Family",avgHouseholdIncome_USA:"Household (median)",avgIndividualIncome:"Individual",avgIndividualIncome_USA:"Individual (per capita)"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodCharacteristics:{title:"Characteristics",noData:"No information is available for this neighborhood yet. Stay tuned for updates as new neighborhoods are added.",sections:{transport:{title:"Transportation"},services:{title:"Services"},character:{title:"Character"}}},neighborhoodDemographics:{title:"Demographics",note:"Displaying demographics statistics for the current location.",noData:"No demographic information is available for this specific location.",data:{income:{title:"Income",graphs:{averageIncome:{title:"Average Income",types:{avg_household_income:"Family",avg_individual_income:"Individual"}},employment:{title:"Employment"},incomeBrackets:{title:"Income Brackets"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Total Population"},populationByAgeGroup:{title:"Population By Age Group"}}},housing:{title:"Housing",graphs:{homeOwnershipType:{title:"Owners vs Renters"},typeOfHousing:{title:"Type of Housing"}}},household:{title:"Household",graphs:{householdComposition:{title:"Household Composition"}}},education:{title:"Education",graphs:{educationLevel:{title:"Highest Level Of Education Achieved"}}},commute:{title:"Commute",graphs:{commuteMode:{title:"Commute Mode"}}},languages:{title:"Languages",graphs:{spokenLanguages:{title:"Spoken Official Languages"},motherTongue:{title:"Mother Tongue"}}}}},neighborhoodFeatured:{title:"Featured Neighborhoods",exploreMoreNeighborhoods:"EXPLORE MORE NEIGHBORHOODS",noData:"You haven't added any featured and favorite neighborhoods to your list yet. Head over to the <bold><LinkToHub>Featured Neighborhoods</LinkToHub></bold> section to select them."},neighborhoodShowcase:{title:"Neighborhood Showcase",header:{title:"Search Neighborhoods",description:"Explore any neighborhood to find the location that’s right for you",search:{placeholder:"Search all neighborhoods",results:{all:"All neighborhoods",featured:"Featured neighborhoods"}}},noData:"You haven't added any neighborhoods to your list yet. Head over to the <bold><LinkToHub>Neighborhood Showcase</LinkToHub></bold> section to select them."},neighborhoodHero:{summaryTitle:"About the neighborhood",summaryTitle_area:"About the area"},neighborhoodHighlights:{title:"Highlights",noData:"Discover what this neighborhood has to offer in terms of transportation, services, and character.",highlight:{title:"This area is great for"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Scroll left",scrollRightAriaLabel:"Scroll right",allFiltersAriaLabel:"View all filters"},radius:{title:"Radius:",value:"{{value}} {{unit}}"},popup:{title:"Filters",description:"Please select one option",cta:{reset:"Reset All",apply:"Apply Filter"}}}},neighborhoodMatch:{title:"Similar neighborhoods",title_32:"Similar zip codes",title_37:"Similar counties",description:"Discover similar locations to this neighborhood and see how they compare in terms of characteristics and amenities.",descriptionWithNeighborhood:"Discover similar locations to {{neighborhoodName}} and see how they compare in terms of characteristics and amenities.",noData:"Similar neighborhoods are not available for this location.",tags:{negative:"Less affordable",neutral:"Comparable",positive:"More affordable"},pagination:{previous:"Show less",next:"Show more"}},neighborhoodPropertyValueDrivers:{title:"Property value drivers",description:"These characteristics most positively impact the values of homes in this neighborhood.",noData:"Discover characteristics that influence home prices; this list details the factors that positively affect property values in a {{locationType}}.",locationType:{neighborhood:"neighborhood",location:"location"},valueDrivers:{bus_service_access:{tag:{high:"Great access"},qualifier:{high:"Having bus services enhances connectivity and accessibility, making it more attractive to commuters and increasing the overall desirability of the {{locationType}}."}},shops_and_services_access:{tag:{high:"Many nearby"},qualifier:{high:"Having plenty of nearby shops and services that are easily accessible can increase the overall desirability of a {{locationType}}."}},coffee_shop_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby and easily accessible coffee shops can create a welcoming environment and a more desirable {{locationType}}."}},clothing_and_accessory_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Many nearby clothing and accessory stores which are easily accessible can increase the overall desirability of a {{locationType}}."}},common_needs_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to basic amenities such as hardware stores, post offices, and convenience stores can improve the accessibility of services in a {{locationType}}."}},department_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby department stores that are easily accessible can increase the overall desirability of a {{locationType}}."}},entertainment_venue_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible entertainment venues can indicate a more vibrant and desirable {{locationType}}."}},fitness_establishment_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible fitness establishments such as gyms, yoga studios, and pools can create a more desirable {{locationType}}."}},nightlife_access:{tag:{high:"Great access"},qualifier:{high:"Easy access to local centers of nightlife, such as bars, pubs, and comedy clubs, can indicate a more vibrant {{locationType}}."}},pedestrian_oriented_street_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible commercial streets designed to be pedestrian-friendly can create a more desirable {{locationType}}."}},rapid_transit_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby rapid transit stations with frequent service can indicate a more accessible {{locationType}}."}},restaurant_access:{tag:{high:"Many nearby"},qualifier:{high:"Easily accessible and nearby restaurants can create a more desirable {{locationType}}."}},specialty_grocery_store_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby specialty grocery stores can indicate a more desirable {{locationType}}."}},sports_facility_access:{tag:{high:"Many nearby"},qualifier:{high:"Nearby sports facilities such as soccer fields, running tracks, and ice rinks can create a more desirable {{locationType}}."}},train_service_access:{tag:{high:"Great access"},qualifier:{high:"Nearby train stations with frequent service can indicate a more accessible {{locationType}}."}},nearest_highway_proximity:{tag:{high:"Great access",low:"Low density"},qualifier:{high:"Easy access to major highways can create a more accessible {{locationType}}.",low:"Few major highways nearby can create a quieter and more desirable {{locationType}}."}},nearest_pharmacy_proximity:{tag:{high:"Available close"},qualifier:{high:"Easy access to a nearby pharmacy can indicate a more accessible {{locationType}}."}},nearest_bicycle_share_station_proximity:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},bicycle_path_access:{tag:{high:"Great access"},qualifier:{high:"Easily accessible bicycle paths can create a more accessible and desirable {{locationType}}."}},bicycle_share_station_access:{tag:{high:"Great access"},qualifier:{high:"Nearby bicycle-sharing stations can lead to a more accessible {{locationType}}."}},nearest_park_area:{tag:{high:"Available close"},qualifier:{high:"Large nearby parks can create a more desirable {{locationType}}."}},bicycle_infrastructure_quality:{tag:{high:"Great access"},qualifier:{high:"High-quality bicycle infrastructure can create a more accessible {{locationType}}."}},high_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},primary_schools:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby schools can create a more desirable {{locationType}}."}},quiet:{tag:{high:"Great access"},qualifier:{high:"Few sources of nearby noise can create a more desirable {{locationType}}."}},daycares:{tag:{high:"Great access"},qualifier:{high:"Easy access to nearby childcare can create a more desirable {{locationType}}."}},parks:{tag:{high:"Great access"},qualifier:{high:"Plenty of nearby parks can create a more desirable {{locationType}} environment."}}}},neighborhoodMarketTrends:{title:"Market trends",noData:"Market trends are not available for this neighborhood at this time.",disclaimer:{header:"Market trend information is based on home transaction data for the previous 12 months and current listing data.",footer:"Displaying trends for the selected neighborhood. Market Trend information is updated daily.",footer_large:"Displaying trends for the selected location. Market Trend information is updated daily."},tabs:{currentActivity:{title:"Current activity"},recentTrends:{title:"Recent trends"},marketConditions:{title:"Market conditions"}},marketIndicator:{increase:"increase",decrease:"decrease",noChangeDisclaimer:"There has been no change in the {{fieldTitle}} compared to the last 30 days."},valueComparison:{lower:"lower",equal:"Equal",higher:"higher"},graphs:{activeListings:{title:"Number of active listings",yAxisTitle:"Active listings"},homesSold:{title:"Homes sold",disclaimer:"The number of residential homes sold over the past 12 months.",changeDisclaimer:"The percent change in the number of homes sold over the previous 12 months."},housingMarketConditions:{title:"Housing market conditions",subtitle:"An indication of market conditions over time.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},marketType:{title:"Buyer/Seller market",disclaimer:"Buyer/Seller market indicator is based on the ratio of recent homes sold to new listings.",marketTypes:{buyer:"Buyer's market",seller:"Seller's market",neutral:"Neutral market"}},medianAskingPrice:{title:"Median asking price",disclaimer:"The median asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median asking price over the previous 30 days."},medianConstructionYear:{title:"The median construction year of homes sold in the past 12 months is "},medianDaysOnMarket:{title:"Median days on market",disclaimer:"The median days on market of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the median days on market over the previous 30 days.",yAxisTitle:"Days on market"},medianSalePrice:{title:"Median sales price",disclaimer:"The median sales price of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price over the previous 12 months."},medianSalePricePerSqft:{title:"Median sales price per square foot",disclaimer:"The median sales price per square foot of residential properties over the past 12 months.",changeDisclaimer:"The percent change in the median sales price per square foot over the previous 12 months."},medianSaleVsAskingPrice:{title:"Median sales vs. asking price of sold homes",disclaimer:"The median ratio of sold price to asking price of residential homes over the past 30 days.",changeDisclaimer:"The percent change in the ratio of sales price to asking price of residential homes over the last 30 days."}}},neighborhoodSchools:{title:"Nearby schools",noData:"There are no available schools nearby.",noFilteredData:"There are no nearby schools that match your current filters.",english:"English",french:"French",board:"School Board or District",headers:{name:"Name",type:"Type",languages:"Languages",levels:"Levels",category:"Category",address:"Address",typesFilter:"All types",levelsFilter:"All levels"},categories:{advancedPlacement:"Advanced Placement",charter:"Charter",magnet:"Magnet"},dataDisclaimer:"Schools are selected for display based on their proximity to the location. Please contact the schools directly to verify attendance zones."}},fr:{common:{attribution:"Propulsé par",time:{minute_one:"Minute",minute_other:"Minutes",hour_one:"Heure",hour_other:"Heures"},distance:{meter:"m",kilometer:"km",yard:"vg",mile:"mil"},language:{english:"Anglais",french:"Français",spanish:"Espagnol"},map:{marker:{schoolAttributes:{levels:"Niveau",grades:"Notes",languages:"Langues",types:"Type",board:"Commission",programs:"Programmes",categories:"Catégories",rating:"Note des écoles"},schoolCta:"Lien vers l'école",district:"Commission",categories:{advancedPlacement:"placement avancé",charter:"à charte",magnet:"à vocation particulière"}},cluster:{poiCount_one:"{{count}} Lieu",poiCount_other:"{{count}} Lieux"}},scores:{cafes:{title:"Cafés",description:"Une mesure de la quantité et de la diversité des cafés à proximité."},car_friendly:{title:"Adapté aux voitures",description:"Représente la fluidité de la circulation et la facilité de stationnement."},cycling_friendly:{title:"Adapté aux cyclistes",description:"Représente la qualité de l'aménagement du réseau cyclable autant pour les déplacement que pour le cyclisme récréatif, considérant les pistes et bande cyclables à proximité, le pourcentage d'habitants qui se déplacent à vélo, le dénivelé du terrain ainsi que la présence de vélos en libre-service."},daycares:{title:"Garderies",description:"Représente la distance jusqu'à la garderie la plus proche."},greenery:{title:"Verdure",description:"Quantité d'espaces verts à proximité et couverture de la canopée des arbres."},groceries:{title:"Épiceries",description:"Une mesure de la quantité d'épiceries à proximité."},high_schools:{title:"Écoles secondaires",description:"Représente la distance jusqu'à l'école secondaire la plus proche."},historic:{title:"Historique",description:"Une mesure de la quantité et de la taille des bâtiments patrimoniaux, et de l'âge moyen des bâtiments dans la région."},nightlife:{title:"Vie nocturne",description:"Représente la quantité et la diversité des bars à proximité."},parks:{title:"Parcs",description:"Une mesure de la quantité et de la taille des parcs à proximité."},pedestrian_friendly:{title:"Adapté aux piétons",description:"Une mesure de la proximité des services de base et du niveau de convivialité d'y aller à pied."},primary_schools:{title:"Écoles primaires",description:"Une mesure de la distance jusqu'à l'école primaire la plus proche."},quiet:{title:"Silencieux",description:"Une mesure des niveaux moyens de bruit à proximité."},restaurants:{title:"Restaurants",description:"Représente la quantité et la diversité des restaurants à proximité."},shopping:{title:"Magasins",description:"Une mesure de la quantité et de la diversité de magasins de mode et de grands magasins à proximité."},transit_friendly:{title:"Transport public",description:"Une mesure de la fréquence et du niveau de service de transport en commun."},vibrant:{title:"Dynamisme",description:"Représente le niveau d'activité de la rue à proximité."},wellness:{title:"Bien-être",description:"Représente à quel point un emplacement favorise le bien-être des individus."}},pois:{airports:"Aéroports",alcohol:"Alcool",art_culture_science:"Art, culture, science",banks:"Banques",bus_stops:"Autobus",cafes:"Cafés",car_fueling_stations:"Stations-service",casino:"Casino",clothing:"Vêtements",common_needs:"Besoins quotidiens",conference_centers:"Salles de conférence",convenience_stores:"Dépanneurs",daycares:"Garderies",department_stores:"Grands magasins",entertainment:"Divertissement",fitness:"Entraînement physique",groceries:"Épiceries",groceries_specialized:"Spécialisées",health_care:"Soins de santé",home_improvement:"Magasin de rénovation",hospitals:"Hôpitaux",libraries:"Librairies",nightlife:"Vie nocturne",non_food_shops:"Magasinage",parks:"Parcs",personal_care:"Soins personnels",pet_care:"Soins pour animaux",pharmacies:"Pharmacies",rapid_transit_stations:"Métro",restaurants:"Restaurants",retail:"Magasins de détail",shops_and_services:"Magasins et services",sport_facilities:"Installations sportives",train_stations:"Train",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",healthy_restaurants:"Restaurants sains",shopping:"Magasinage"},valueDrivers:{bus_service_access:"Services d'autobus",shops_and_services_access:"Magasins et services",coffee_shop_access:"Cafés",clothing_and_accessory_store_access:"Magasins de vêtements",common_needs_access:"Nécessités communes",department_store_access:"Grands magasins",entertainment_venue_access:"Lieux de divertissement",fitness_establishment_access:"Conditionnement physique",nightlife_access:"Vie nocturne",pedestrian_oriented_street_access:"Rues accessibles aux piétons",rapid_transit_service_access:"Service de transport en commun rapide",restaurant_access:"Restaurants",specialty_grocery_store_access:"Épiceries spécialisées",sports_facility_access:"Installations sportives",train_service_access:"Gares",nearest_highway_proximity:"Accès à l'autoroute",nearest_pharmacy_proximity:"Pharmacies à proximité",nearest_bicycle_share_station_proximity:"Stations de vélos en libre-service à proximité",bicycle_path_access:"Stations de vélopartage à proximité",bicycle_share_station_access:"Partage de vélo",nearest_park_area:"Grand parc à proximité",bicycle_infrastructure_quality:"Infrastructure pour vélos",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",quiet:"Calme",daycares:"Garderies",parks:"Parcs"}},leadCapture:{},localContent:{sidebar:{header:{title:"Catégories",backAction:"Retour au menu",toggle:{ariaLabel:"Basculer le menu des scores",ariaLabel_open:"Ouvrir le menu des scores",ariaLabel_close:"Fermer le menu des scores"}}},categoriesToggle:{toggleLabel:"Catégories",backAction:"Retour"},categories:{commute:"Transport",amenities:"Services",character:"Caractère",nature:"Nature",education:"Éducation",health:"Santé"},scoreComparison:{text:"Comparable à la moyenne de {{name}} de {{value}}",text_higher:"Supérieur à la moyenne de {{name}} de {{value}}",text_lower:"Inférieur à la moyenne de {{name}} de {{value}}"},poiSearchRadius:"Affichage des PO dans un rayon de {{radius}} {{unit}}",commute:{placeholder:"Faire une recherche...",cta:"Calculer le trajet",cta_long:"Calculer le trajet",cta_short:"Calculer",viewRoute:"Voir l'itinéraire",travelTypes:{walking:"À pied",driving:"En voiture",cycling:"À vélo"},results:{noRoute:"Aucun itinéraire disponible.",trySuggestion:"Essayez une autre requête.",fastestRoute:"Itinéraire le plus rapide"}}},localDemographics:{title:"Données démographiques locales",note:"Affichage des données démographiques pour la zone située à {{value}} {{unit}} autour de l'emplacement sélectionné.",noData:"Aucune donnée démographique n'est disponible pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",title_USA:"Revenu",types:{avgHouseholdIncome:"Familial",avgHouseholdIncome_USA:"Ménage (médian)",avgIndividualIncome:"Individuel",avgIndividualIncome_USA:"Individuel (par habitant)"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménages",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Modes de transport"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodCharacteristics:{title:"Caractéristiques",noData:"Aucune information n'est présentement disponible pour ce quartier. Restez à l'affût des mises à jour pour l'ajout de nouveaux quartiers.",sections:{transport:{title:"Transport"},services:{title:"Services"},character:{title:"Caractère"}}},neighborhoodDemographics:{title:"Démographie du quartier",note:"Affichage des statistiques démographiques pour le quartier.",noData:"Aucune donnée démographique n'est offerte pour cet endroit particulier.",data:{income:{title:"Revenu",graphs:{averageIncome:{title:"Revenu moyen",types:{avg_household_income:"Familial",avg_individual_income:"Individuel"}},employment:{title:"Emploi"},incomeBrackets:{title:"Tranches de revenu"}}},population:{title:"Population",graphs:{totalPopulation:{title:"Population totale"},populationByAgeGroup:{title:"Population par tranche d'âge"}}},housing:{title:"Logement",graphs:{homeOwnershipType:{title:"Propriétaires c.. locataires"},typeOfHousing:{title:"Type de logement"}}},household:{title:"Ménage",graphs:{householdComposition:{title:"Composition des ménages"}}},education:{title:"Éducation",graphs:{educationLevel:{title:"Niveau d'études atteint"}}},commute:{title:"Transport",graphs:{commuteMode:{title:"Mode de déplacement"}}},languages:{title:"Langues",graphs:{spokenLanguages:{title:"Langues officielles parlées"},motherTongue:{title:"Langue maternelle"}}}}},neighborhoodFeatured:{title:""},neighborhoodShowcase:{},neighborhoodHero:{summaryTitle:"À propos du quartier"},neighborhoodHighlights:{title:"Points forts",noData:"Découvrez ce que ce quartier a à offrir en termes de transport, de services et de caractère.",highlight:{title:"Cette zone est idéale pour"}},neighborhoodMap:{filters:{navigation:{scrollLeftAriaLabel:"Défiler vers la gauche",scrollRightAriaLabel:"Défiler vers la droite",allFiltersAriaLabel:"Voir tous les filtres"},radius:{title:"Rayon :",value:"{{value}} {{unit}}"},popup:{title:"Filtres",description:"Veuillez sélectionner une option",cta:{reset:"Réinitialiser tout",apply:"Appliquer le filtre"}}}},neighborhoodMatch:{title:"Quartiers similaires",title_32:"Codes postaux similaires",title_37:"Comtés similaires",description:"Découvrez des lieux similaires à celui-ci et comparez-les en termes de caractéristiques et services de proximité.",descriptionWithNeighborhood:"Découvrez des lieux similaires à {{neighborhoodName}} et comparez-les en termes de caractéristiques et services de proximité.",noData:"Les quartiers similaires ne sont pas disponibles pour cet emplacement.",tags:{negative:"Moins abordable",neutral:"Comparable",positive:"Plus abordable"},pagination:{previous:"Afficher moins",next:"Afficher plus"}},neighborhoodPropertyValueDrivers:{title:"Facteurs de valeur immobilière",description:"Ces caractéristiques ont le plus d'impact positif sur les valeurs des maisons dans ce quartier.",noData:"Découvrez les caractéristiques qui influencent les prix des maisons; cette liste détaille les facteurs qui affectent positivement les valeurs des propriétés dans un {{locationType}}.",locationType:{neighborhood:"quartier",location:"emplacement"},valueDrivers:{bus_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de services d'autobus améliore la connectivité et l'accessibilité d'un {{locationType}}, le rendant plus attrayant pour les navetteurs et augmentant son attractivité globale."}},shops_and_services_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux commerces de proximité facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},coffee_shop_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de cafés à proximité et facilement accessibles peut créer un environnement accueillant et un {{locationType}} plus attrayant."}},clothing_and_accessory_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de nombreux magasins de vêtements et d'accessoires facilement accessibles à proximité peut accroître la désirabilité globale d'un {{locationType}}."}},common_needs_access:{tag:{high:"Excellent accès"},qualifier:{high:"L'accès facile à des commodités de base comme les quincailleries, bureaux de poste et dépanneurs peut améliorer l'accessibilité des services dans un {{locationType}}."}},department_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de grands magasins à proximité et facilement accessibles peut augmenter l'attractivité globale d'un {{locationType}}."}},entertainment_venue_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de lieux de divertissement facilement accessibles peut être le signe d'un {{locationType}} plus vivant et plus attrayant."}},fitness_establishment_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'établissements de conditionnement physique facilement accessibles, tels que des gymnases, des studios de yoga et des piscines, peut rendre le {{locationType}} plus attrayant."}},nightlife_access:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux centres locaux de la vie nocturne, tels que les bars, les pubs et les clubs de comédie, peut être le signe d'un {{locationType}} plus dynamique."}},pedestrian_oriented_street_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de rues commerciales facilement accessibles, conçues pour être conviviales pour les piétons, peut créer un {{locationType}} plus attrayant."}},rapid_transit_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La proximité de stations de transport en commun rapide à haute fréquence peut être le signe d'un {{locationType}} plus accessible."}},restaurant_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence de restaurants facilement accessibles et à proximité peut créer un {{locationType}} plus attrayant."}},specialty_grocery_store_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La présence d'épiceries spécialisées à proximité peut indiquer un {{locationType}} plus attrayant."}},sports_facility_access:{tag:{high:"Plusieurs à proximité"},qualifier:{high:"La proximité d'installations sportives telles que des terrains de football, des pistes de course et des patinoires peut rendre le {{locationType}} plus attrayant."}},train_service_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de gares à proximité qui ont un service fréquent peut indiquer un {{locationType}} plus accessible."}},nearest_highway_proximity:{tag:{high:"Excellent accès",low:"Faible densité"},qualifier:{high:"Un accès facile aux grandes autoroutes peut créer un {{locationType}} plus accessible.",low:"Peu d'autoroutes à proximité peut rendre le {{locationType}} plus calme et plus attrayant."}},nearest_pharmacy_proximity:{tag:{high:"Disponible à proximité"},qualifier:{high:"Un accès facile à une pharmacie à proximité peut indiquer un {{locationType}} plus accessible."}},nearest_bicycle_share_station_proximity:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},bicycle_path_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de pistes cyclables facilement accessibles peut être le signe d'un {{locationType}} plus accessible et plus attrayant."}},bicycle_share_station_access:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de stations de vélopartage à proximité peut être le signe d'un {{locationType}} plus accessible."}},nearest_park_area:{tag:{high:"Disponible à proximité"},qualifier:{high:"La présence de grands parcs à proximité peut être le signe d'un {{locationType}} plus attrayant."}},bicycle_infrastructure_quality:{tag:{high:"Excellent accès"},qualifier:{high:"La présence d'une infrastructure de qualité pour les vélos peut être le signe d'un {{locationType}} plus accessible."}},high_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},primary_schools:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux écoles à proximité peut rendre le {{locationType}} plus attrayant."}},quiet:{tag:{high:"Excellent accès"},qualifier:{high:"Le peu de sources de bruit à proximité peut rendre le {{locationType}} plus attrayant."}},daycares:{tag:{high:"Excellent accès"},qualifier:{high:"Un accès facile aux services de garde à proximité peut rendre le {{locationType}} plus attrayant."}},parks:{tag:{high:"Excellent accès"},qualifier:{high:"La présence de nombreux parcs à proximité peut rendre le {{locationType}} plus attrayant."}}}},neighborhoodMarketTrends:{},neighborhoodSchools:{title:"Écoles à proximité",noData:"Il n'y a pas d'écoles disponibles à proximité.",noFilteredData:"Aucune école à proximité ne correspond à vos filtres actuels.",english:"Anglais",french:"Français",board:"Commission scolaire ou district",headers:{name:"Nom",type:"Type",languages:"Langues",levels:"Niveaux",category:"Catégorie",address:"Adresse",typesFilter:"Tous types",levelsFilter:"Tous niveaux"},categories:{advancedPlacement:"Placement avancé",charter:"À charte",magnet:"À vocation particulière"},dataDisclaimer:"Les écoles sont sélectionnées pour être affichées en fonction de leur proximité avec le lieu. Veuillez contacter directement les écoles pour vérifier les zones de fréquentation."}}}});var tc=Ka;function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(null,arguments)}var rc,oc,ic,sc,ac,cc=n(()=>{}),lc=r({Action:()=>rc,createBrowserHistory:()=>uc,createHashHistory:()=>dc,createMemoryHistory:()=>hc,createPath:()=>vc,parsePath:()=>yc});function uc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,s=r.state||{};return[s.idx,oc({pathname:t,search:o,hash:i,state:s.usr||null,key:s.key||"default"})]}var i=null;n.addEventListener(ac,function(){if(i)d.call(i),i=null;else{var e=rc.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var s=c-n;s&&(i={action:e,location:r,retry:function(){v(-1*s)}},v(s))}}else m(e)}});var s=rc.Pop,a=o(),c=a[0],l=a[1],u=gc(),d=gc();function h(e){return"string"==typeof e?e:vc(e)}function p(e,t){return void 0===t&&(t=null),oc(nc({pathname:l.pathname,hash:"",search:""},"string"==typeof e?yc(e):e,{state:t,key:mc()}))}function f(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function m(e){s=e;var t=o();c=t[0],l=t[1],u.call({action:s,location:l})}function v(e){r.go(e)}return null==c&&(c=0,r.replaceState(nc({},r.state,{idx:c}),"")),{get action(){return s},get location(){return l},createHref:h,push:function e(t,o){var i=rc.Push,s=p(t,o);if(g(i,s,function(){e(t,o)})){var a=f(s,c+1),l=a[0],u=a[1];try{r.pushState(l,"",u)}catch(d){n.location.assign(u)}m(i)}},replace:function e(t,n){var o=rc.Replace,i=p(t,n);if(g(o,i,function(){e(t,n)})){var s=f(i,c),a=s[0],l=s[1];r.replaceState(a,"",l),m(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(ic,fc),function(){t(),d.length||n.removeEventListener(ic,fc)}}}}function dc(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=yc(n.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,i=e.search,s=void 0===i?"":i,a=e.hash,c=void 0===a?"":a,l=r.state||{};return[l.idx,oc({pathname:o,search:s,hash:c,state:l.usr||null,key:l.key||"default"})]}var i=null;function s(){if(i)h.call(i),i=null;else{var e=rc.Pop,t=o(),n=t[0],r=t[1];if(h.length){if(null!=n){var s=l-n;s&&(i={action:e,location:r,retry:function(){y(-1*s)}},y(s))}}else v(e)}}n.addEventListener(ac,s),n.addEventListener(sc,function(){vc(o()[1])!==vc(u)&&s()});var a=rc.Pop,c=o(),l=c[0],u=c[1],d=gc(),h=gc();function p(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,o=r.indexOf("#");t=-1===o?r:r.slice(0,o)}return t}()+"#"+("string"==typeof e?e:vc(e))}function f(e,t){return void 0===t&&(t=null),oc(nc({pathname:u.pathname,hash:"",search:""},"string"==typeof e?yc(e):e,{state:t,key:mc()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function m(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function v(e){a=e;var t=o();l=t[0],u=t[1],d.call({action:a,location:u})}function y(e){r.go(e)}return null==l&&(l=0,r.replaceState(nc({},r.state,{idx:l}),"")),{get action(){return a},get location(){return u},createHref:p,push:function e(t,o){var i=rc.Push,s=f(t,o);if(m(i,s,function(){e(t,o)})){var a=g(s,l+1),c=a[0],u=a[1];try{r.pushState(c,"",u)}catch(d){n.location.assign(u)}v(i)}},replace:function e(t,n){var o=rc.Replace,i=f(t,n);if(m(o,i,function(){e(t,n)})){var s=g(i,l),a=s[0],c=s[1];r.replaceState(a,"",c),v(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return d.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&n.addEventListener(ic,fc),function(){t(),h.length||n.removeEventListener(ic,fc)}}}}function hc(e){void 0===e&&(e={});var t=e,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,i=r.map(function(e){return oc(nc({pathname:"/",search:"",hash:"",state:null,key:mc()},"string"==typeof e?yc(e):e))}),s=pc(null==o?i.length-1:o,0,i.length-1),a=rc.Pop,c=i[s],l=gc(),u=gc();function d(e,t){return void 0===t&&(t=null),oc(nc({pathname:c.pathname,search:"",hash:""},"string"==typeof e?yc(e):e,{state:t,key:mc()}))}function h(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function p(e,t){a=e,c=t,l.call({action:a,location:c})}function f(e){var t=pc(s+e,0,i.length-1),n=rc.Pop,r=i[t];h(n,r,function(){f(e)})&&(s=t,p(n,r))}return{get index(){return s},get action(){return a},get location(){return c},createHref:function(e){return"string"==typeof e?e:vc(e)},push:function e(t,n){var r=rc.Push,o=d(t,n);h(r,o,function(){e(t,n)})&&(s+=1,i.splice(s,i.length,o),p(r,o))},replace:function e(t,n){var r=rc.Replace,o=d(t,n);h(r,o,function(){e(t,n)})&&(i[s]=o,p(r,o))},go:f,back:function(){f(-1)},forward:function(){f(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function pc(e,t,n){return Math.min(Math.max(e,t),n)}function fc(e){e.preventDefault(),e.returnValue=""}function gc(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function mc(){return Math.random().toString(36).substr(2,8)}function vc(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,s=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function yc(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var bc=n(()=>{cc(),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(rc||(rc={})),oc=function(e){return e},ic="beforeunload",sc="hashchange",ac="popstate"}),wc=o((e,n)=>{!function(r,o){"object"==typeof e&&void 0!==n?o(e,s(),(bc(),t(lc))):"function"==typeof define&&define.amd?define(["exports","react","history"],o):o((r="undefined"!=typeof globalThis?globalThis:r||self).ReactLocation={},r.React,r.History)}(e,function(e,t,n){var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e){if(!e)return"";var t=decodeURIComponent(e);return"false"!==t&&("true"===t||(0*+t==0?+t:t))}const a=["children","location","__experimental__snapshot"],c=["location","__experimental__snapshot"],l=["basepath","routes"],u=["to","search","hash","children","target","style","replace","onClick","onMouseEnter","className","getActiveProps","getInactiveProps","activeOptions","preload","disabled","_ref"],d=["style","className"],h=["style","className"],p=["pending"],f=["children"],g=r.createContext(null),m=r.createContext(null),v=r.createContext(null),y=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),b=y?r.useLayoutEffect:r.useEffect;class w{constructor(){this.listeners=[]}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e())}}function _(e){return r.createElement(m.Provider,e)}function x(){const e=S(),t=A(),n=j();return b(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class E extends w{constructor(e){var t;let{location:n,__experimental__snapshot:r}=e,s=i(e,c);super(),this.routesById={},this.update=e=>{let{basepath:t,routes:n}=e,r=i(e,l);Object.assign(this,r),this.basepath=z("/"+(null!=t?t:"")),this.routesById={};const s=(e,t)=>e.map(e=>{var n,i,a,c;const l=null!=(n=e.path)?n:"*",u=B(["root"===(null==t?void 0:t.id)?"":null==t?void 0:t.id,(null==l?void 0:l.replace(/(.)\/$/,"$1"))+(e.id?"-"+e.id:"")]);if(e=o({},e,{pendingMs:null!=(i=e.pendingMs)?i:null==r?void 0:r.defaultPendingMs,pendingMinMs:null!=(a=e.pendingMinMs)?a:null==r?void 0:r.defaultPendingMinMs,id:u}),this.routesById[u])throw new Error;return this.routesById[u]=e,e.children=null!=(c=e.children)&&c.length?s(e.children,e):void 0,e});this.routes=s(n),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=e=>{const t=e({state:this.state,pending:this.pending});this.state=t.state,this.pending=t.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var e,t,n;const r=[...null!=(e=null==this?void 0:this.state.matches)?e:[],...null!=(t=null==this||null==(n=this.pending)?void 0:n.matches)?t:[]].map(e=>e.id);Object.values(this.matchCache).forEach(e=>{var t;if(!e.updatedAt)return;if(r.includes(e.id))return;const n=Date.now()-(null!=(t=e.updatedAt)?t:0);(!e.maxAge||n>e.maxAge)&&(e.route.unloader&&e.route.unloader(e),delete this.matchCache[e.id])})},this.updateLocation=e=>{let t;return{promise:new Promise(n=>{const r=new O(this,e);this.setState(e=>o({},e,{pending:{location:r.location,matches:r.matches}})),t=r.subscribe(()=>{const e=this.state.matches;e.filter(e=>!r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.onExit||e.onExit(e)}),e.filter(e=>r.matches.find(t=>t.id===e.id)).forEach(e=>{null==e.route.onTransition||e.route.onTransition(e)}),r.matches.filter(t=>!e.find(e=>e.id===t.id)).forEach(e=>{e.onExit=null==e.route.onMatch?void 0:e.route.onMatch(e)}),this.setState(e=>o({},e,{state:{location:r.location,matches:r.matches},pending:void 0})),n()}),r.loadData(),r.startPending()}),unsubscribe:t}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(e=>{let{ownData:t,id:n}=e;return{id:n,ownData:t}})}),this.update(s);let a=[];if(r){const e=new O(this,n.current);e.matches.forEach((e,t)=>{var n,o,i,s;if(e.id!==(null==(n=r.matches[t])?void 0:n.id))throw new Error("Router hydration mismatch: "+e.id+" !== "+(null==(s=r.matches[t])?void 0:s.id));e.ownData=null!=(o=null==(i=r.matches[t])?void 0:i.ownData)?o:{}}),C(e.matches),a=e.matches}this.state={location:null!=(t=null==r?void 0:r.location)?t:n.current,matches:a},n.subscribe(()=>this.notify())}}function S(){const e=r.useContext(g);return U(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class k{constructor(e){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=e=>{var t;null==(t=this.matchLoader)||t.preNotify(e?this:void 0)},this.assignMatchLoader=e=>{this.matchLoader=e},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),void 0!==this.route.pendingMs&&(this.pendingTimeout=setTimeout(()=>{var e;"loading"===this.status&&(this.status="pending"),null==(e=this.notify)||e.call(this),void 0!==this.route.pendingMinMs&&(this.pendingMinPromise=new Promise(e=>setTimeout(e,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=e=>{var t,n;if(this.maxAge=null!=(t=null!=(n=e.maxAge)?n:this.route.loaderMaxAge)?t:e.router.defaultLoaderMaxAge,this.loaderPromise)return;const r=this.route.import;this.loaderPromise=(r?(this.isLoading=!0,r({params:this.params,search:this.search}).then(e=>{this.route=o({},this.route,e)})):Promise.resolve()).then(()=>{const t=[];["element","errorElement","pendingElement"].forEach(e=>{const n=this.route[e];this[e]||("function"==typeof n?(this.isLoading=!0,t.push(n(this).then(t=>{this[e]=t}))):this[e]=this.route[e])});const n=this.route.loader,r=n?new Promise(async t=>{this.isLoading=!0;const r=e=>{this.updatedAt=Date.now(),t(this.ownData),this.status=e},o=e=>{this.ownData=e,this.error=void 0,r("resolved")},i=e=>{console.error(e),this.error=e,r("rejected")};try{o(await n(this,{parentMatch:e.parentMatch,dispatch:async e=>{var t;"resolve"===e.type?o(e.data):"reject"===e.type?i(e.error):"loading"===e.type?this.isLoading=!0:"maxAge"===e.type&&(this.maxAge=e.maxAge),this.updatedAt=Date.now(),null==(t=this.notify)||t.call(this,!0)}}))}catch(e){i(e)}}):Promise.resolve();return Promise.all([...t,r]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var e;this.pendingTimeout&&clearTimeout(this.pendingTimeout),null==(e=this.notify)||e.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,e)}}class O extends w{constructor(e,t){var n;super(),n=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=e=>{e&&(this.preNotifiedMatches.includes(e)||this.preNotifiedMatches.push(e)),e&&this.preNotifiedMatches.length!==this.matches.length||(this.status="resolved",C(this.matches),this.notify())},this.loadData=async function(e){var t;let{maxAge:r}=void 0===e?{}:e;if(n.router.cleanMatchCache(),null!=(t=n.matches)&&t.length)return n.firstRenderPromises=[],n.matches.forEach((e,t)=>{var o,i;const s=null==(o=n.matches)?void 0:o[t-1];null==e.assignMatchLoader||e.assignMatchLoader(n),null==e.load||e.load({maxAge:r,parentMatch:s,router:n.router}),null==(i=n.firstRenderPromises)||i.push(e.loaderPromise)}),await Promise.all(n.firstRenderPromises).then(()=>(n.preNotify(),n.matches));n.preNotify()},this.load=async function(e){let{maxAge:t}=void 0===e?{}:e;return await n.loadData({maxAge:t})},this.startPending=async()=>{this.matches.forEach(e=>null==e.startPending?void 0:e.startPending())},this.router=e,this.location=t,this.matches=[];const r=R(this.router,this.location);this.matches=null==r?void 0:r.map(e=>(this.router.matchCache[e.id]||(this.router.matchCache[e.id]=new k(e)),this.router.matchCache[e.id]))}}function C(e){e?.forEach((t,n)=>{var r;const i=null==e?void 0:e[n-1];t.data=o({},null!=(r=null==i?void 0:i.data)?r:{},t.ownData)})}function P(){const e=r.useContext(v);if(!e)throw U(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function R(e,t){if(!e.routes.length)return[];const n=[],r=async(i,s)=>{var a;let{pathname:c,params:l}=s;const u=(null!=e&&e.filterRoutes?null==e?void 0:e.filterRoutes(i):i).find(n=>{var r,i;const s=B([c,n.path]),a=!!("/"!==n.path||null!=(r=n.children)&&r.length),u=$(t,{to:s,search:n.search,fuzzy:a,caseSensitive:null!=(i=n.caseSensitive)?i:e.caseSensitive});return u&&(l=o({},l,u)),!!u});if(!u)return;const d=L(u.path,l);c=B([c,d]);const h={id:L(u.id,l,!0),route:u,params:l,pathname:c,search:t.search};n.push(h),null!=(a=u.children)&&a.length&&r(u.children,h)};return r(e.routes,e.rootMatch),n}function L(e,t,n){return B(K(e).map(e=>{return"*"!==e.value||n?"param"===e.type?null!=(r=t[e.value.substring(1)])?r:"":e.value:"";var r}))}function T(){const e=S(),t=N(),n=P(),r=A();return G(async function(i,s){var a;return void 0===i&&(i=e.current),await new O(n,r(o({},i,{from:null!=(a=i.from)?a:{pathname:t.pathname}}))).load(s)})}function D(){return r.useContext(m)}function N(){var e;return null==(e=D())?void 0:e[0]}function j(){const e=S(),t=N(),n=A();return G(function(r){var o;let{search:i,hash:s,replace:a,from:c,to:l,fromCurrent:u}=r;u=null!=(o=u)?o:void 0===l;const d=n({to:l,search:i,hash:s,from:u?e.current:null!=c?c:{pathname:t.pathname}});e.navigate(d,a)})}function A(){const e=S(),t=P();return G(n=>{const r=R(t,e.buildNext(t.basepath,n)).map(e=>{var t;return null!=(t=e.route.searchFilters)?t:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,o({},n,{__searchFilters:r}))})}function I(){var e;const t=P(),[n,...o]=D(),i=o[0];if(!i)return null;const s=null!=(e=i.errorElement)?e:t.defaultErrorElement,a=(()=>{var e,n;if("rejected"===i.status){if(s)return s;if(!t.useErrorBoundary)return"An unknown error occured!";throw i.error}const o=null!=(e=i.pendingElement)?e:t.defaultPendingElement;if("loading"===i.status)return null;if("pending"===i.status&&(i.route.pendingMs||o))return null!=o?o:null;const a=null!=(n=i.element)?n:t.defaultElement;return null!=a?a:r.createElement(I,null)})();return r.createElement(_,{value:o},a)}function M(){const e=P(),t=N();return G(n=>W(e.basepath,t.pathname,z(n)))}function $(e,t){const n=V(e,t),r=function(e,t){return!(!t.search||!t.search(e.search))}(e,t);if((!t.to||n)&&(!t.search||r))return null!=n?n:{}}function F(){const e=P(),t=M();return G(n=>{let{pending:r}=n,s=i(n,p);if(s=o({},s,{to:s.to?t(""+s.to):void 0}),r){var a;if(null==(a=e.pending)||!a.location)return;return $(e.pending.location,s)}return $(e.state.location,s)})}function H(e,t){const n=S();r.useEffect(()=>{if(!t)return;let r=n.history.block(t=>{window.confirm(e)?(r(),t.retry()):n.current.pathname=window.location.pathname});return r},[t,n,e])}function U(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function q(e,t){return"function"==typeof e?e(t):e}function B(e){return z(e.filter(Boolean).join("/"))}function z(e){return(""+e).replace(/\/{2,}/g,"/")}function V(e,t){var n;const r=K(e.pathname),o=K(""+(null!=(n=t.to)?n:"*")),i={};return(()=>{for(let e=0;e<Math.max(r.length,o.length);e++){const n=r[e],s=o[e],a=e===o.length-1,c=e===r.length-1;if(s){if("wildcard"===s.type)return!(null==n||!n.value||(i["*"]=B(r.slice(e).map(e=>e.value)),0));if("pathname"===s.type){if("/"===s.value&&(null==n||!n.value))return!0;if(n)if(t.caseSensitive){if(s.value!==n.value)return!1}else if(s.value.toLowerCase()!==n.value.toLowerCase())return!1}if(!n)return!1;"param"===s.type&&(i[s.value.substring(1)]=n.value)}if(a&&!c)return!!t.fuzzy}return!0})()?i:void 0}function K(e){if(!e)return[];const t=[];if("/"===(e=z(e)).slice(0,1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(e=>e.startsWith("*")?{type:"wildcard",value:e}:":"===e.charAt(0)?{type:"param",value:e}:{type:"pathname",value:e})),"/"===e.slice(-1)&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function W(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=K(t);const o=K(n);return o.forEach((e,t)=>{if("/"===e.value)t?t===o.length-1&&r.push(e):r=[e];else if(".."===e.value)r.pop();else{if("."===e.value)return;r.push(e)}}),z(B([e,...r.map(e=>e.value)]))}function G(e){const t=r.useRef(),n=r.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function J(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Y(e)&&Y(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{};let a=0;for(let c=0;c<i;c++){const r=n?c:o[c];s[r]=J(e[r],t[r]),s[r]===e[r]&&a++}return r===i&&a===r?e:s}return t}function Y(e){if(!Q(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Q(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Q(e){return"[object Object]"===Object.prototype.toString.call(e)}const X=ee(JSON.parse),Z=te(JSON.stringify);function ee(e){return t=>{"?"===t.substring(0,1)&&(t=t.substring(1));let n=function(e){for(var t,n,r={},o=e.split("&");t=o.shift();)void 0!==r[n=(t=t.split("=")).shift()]?r[n]=[].concat(r[n],s(t.shift())):r[n]=s(t.shift());return r}(t);for(let r in n){const t=n[r];if("string"==typeof t)try{n[r]=e(t)}catch(e){}}return n}}function te(e){return t=>{(t=o({},t))&&Object.keys(t).forEach(n=>{const r=t[n];if(void 0===r||void 0===r)delete t[n];else if(r&&"object"==typeof r&&null!==r)try{t[n]=e(r)}catch(e){}});const n=function(e){var t,n,r,o="";for(t in e)if(void 0!==(r=e[t]))if(Array.isArray(r))for(n=0;n<r.length;n++)o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r[n]);else o&&(o+="&"),o+=encodeURIComponent(t)+"="+encodeURIComponent(r);return""+o}(t).toString();return n?"?"+n:""}}Object.defineProperty(e,"createBrowserHistory",{enumerable:!0,get:function(){return n.createBrowserHistory}}),Object.defineProperty(e,"createHashHistory",{enumerable:!0,get:function(){return n.createHashHistory}}),Object.defineProperty(e,"createMemoryHistory",{enumerable:!0,get:function(){return n.createMemoryHistory}}),e.Link=function(e){var t;let{to:n=".",search:s,hash:a,children:c,target:l,style:p={},replace:f,onClick:g,onMouseEnter:m,className:v="",getActiveProps:y=()=>({className:"active"}),getInactiveProps:b=()=>({}),activeOptions:w,preload:_,disabled:x,_ref:E}=e,k=i(e,u);const O=T(),C=N(),R=S(),L=P(),D=j(),I=A();_=null!=(t=_)?t:L.defaultLinkPreloadMaxAge;try{U(!1,"<Link /> should not be used for external URLs like: "+new URL(""+n).href)}catch(e){}const M=I({to:n,search:s,hash:a,from:{pathname:C.pathname}}),$=R.current.pathname===M.pathname,F=R.current.pathname.split("/"),H=M.pathname.split("/").every((e,t)=>e===F[t]),q=R.current.hash===M.hash,B=null!=w&&w.exact?$:H,z=null==w||!w.includeHash||q,V=B&&z,K=V?y():{},{style:W={},className:G=""}=K,J=i(K,d),Y=V?{}:b(),{style:Q={},className:X=""}=Y,Z=i(Y,h);return r.createElement("a",o({ref:E,href:x?void 0:M.href,onClick:e=>{x||(g&&g(e),function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||e.defaultPrevented||l&&"_self"!==l||0!==e.button||(e.preventDefault(),D({to:n,search:s,hash:a,replace:f,from:{pathname:C.pathname}})))},onMouseEnter:e=>{m&&m(e),_&&_>0&&O({to:n,search:s,hash:a},{maxAge:_})},target:l,style:o({},p,W,Q),className:[v,G,X].filter(Boolean).join(" ")||void 0},x?{role:"link","aria-disabled":!0}:void 0,k,J,Z,{children:"function"==typeof c?c({isActive:V}):c}))},e.MatchRoute=function(e){let{children:t}=e,n=i(e,f);const r=F()(n);return"function"==typeof t?t(r):r?t:null},e.MatchesProvider=_,e.Navigate=function(e){let t=j();return b(()=>{t(e)},[t]),null},e.Outlet=I,e.Prompt=function(e){let{message:t,when:n,children:r}=e;return H(t,null==n||n),null!=r?r:null},e.ReactLocation=class extends w{constructor(e){var t,r;super(),this.isTransitioning=!1,this.history=(null==e?void 0:e.history)||(y?n.createBrowserHistory():n.createMemoryHistory()),this.stringifySearch=null!=(t=null==e?void 0:e.stringifySearch)?t:Z,this.parseSearch=null!=(r=null==e?void 0:e.parseSearch)?r:X,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(e=>{this.current=this.parseLocation(e.location,this.current),this.notify()})}buildNext(e,t){var n,r,i,s;void 0===e&&(e="/"),void 0===t&&(t={});const a=o({},this.current,t.from),c=W(e,a.pathname,""+(null!=(n=t.to)?n:".")),l=null!=(r=t.__searchFilters)&&r.length?t.__searchFilters.reduce((e,t)=>t(e),a.search):a.search,u=!0===t.search?l:t.search?null!=(i=q(t.search,l))?i:{}:null!=(s=t.__searchFilters)&&s.length?l:{},d=J(a.search,u),h=this.stringifySearch(d);let p=!0===t.hash?a.hash:q(t.hash,a.hash);return p=p?"#"+p:"",{pathname:c,search:d,searchStr:h,hash:p,href:""+c+h+p,key:t.key}}navigate(e,t){this.current=e,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let n="replace";return t||(n="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(n="replace"),"replace"===n?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(e,t){var n;const r=this.parseSearch(e.search);return{pathname:e.pathname,searchStr:e.search,search:J(null==t?void 0:t.search,r),hash:null!=(n=e.hash.split("#").reverse()[0])?n:"",href:""+e.pathname+e.search+e.hash,key:e.key}}},e.RouteMatch=k,e.Router=function(e){let{children:t,location:n,__experimental__snapshot:o}=e,s=i(e,a);const c=r.useRef(null);c.current||(c.current=new E({location:n,__experimental__snapshot:o,routes:s.routes}));const l=c.current,[u,d]=r.useReducer(()=>({}),{});return l.update(s),b(()=>l.subscribe(()=>{d()}),[]),b(()=>l.updateLocation(n.current).unsubscribe,[n.current.key]),r.createElement(g.Provider,{value:{location:n}},r.createElement(v.Provider,{value:{router:l}},r.createElement(x,null),r.createElement(_,{value:[l.rootMatch,...l.state.matches]},null!=t?t:r.createElement(I,null))))},e.RouterInstance=E,e.cleanPath=z,e.defaultParseSearch=X,e.defaultStringifySearch=Z,e.functionalUpdate=q,e.matchByPath=V,e.matchRoute=$,e.matchRoutes=R,e.parsePathname=K,e.parseSearchWith=ee,e.resolvePath=W,e.stringifySearchWith=te,e.useLoadRoute=T,e.useLocation=S,e.useMatch=N,e.useMatchRoute=F,e.useMatches=D,e.useNavigate=j,e.useParentMatches=function(){const e=P(),t=N(),n=e.state.matches;return n.slice(0,n.findIndex(e=>e.id===t.id)-1)},e.usePrompt=H,e.useResolvePath=M,e.useRouter=P,e.useSearch=function(){return S().current.search},Object.defineProperty(e,"__esModule",{value:!0})})}),_c=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xc="undefined"==typeof window||"Deno"in globalThis;function Ec(){}function Sc(e){return"number"==typeof e&&e>=0&&e!==1/0}function kc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oc(e,t){return"function"==typeof e?e(t):e}function Cc(e,t){return"function"==typeof e?e(t):e}function Pc(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Lc(s,t.options))return!1}else if(!Dc(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Rc(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Tc(t.options.mutationKey)!==Tc(i))return!1}else if(!Dc(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Lc(e,t){return(t?.queryKeyHashFn||Tc)(e)}function Tc(e){return JSON.stringify(e,(e,t)=>Ic(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dc(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>Dc(e[n],t[n])))}function Nc(e,t){if(e===t)return e;const n=Ac(e)&&Ac(t);if(n||Ic(e)&&Ic(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},c=new Set(r);let l=0;for(let u=0;u<s;u++){const r=n?u:i[u];(!n&&c.has(r)||n)&&void 0===e[r]&&void 0===t[r]?(a[r]=void 0,l++):(a[r]=Nc(e[r],t[r]),a[r]===e[r]&&void 0!==e[r]&&l++)}return o===s&&l===o?e:a}return t}function jc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ac(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ic(e){if(!Mc(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Mc(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Mc(e){return"[object Object]"===Object.prototype.toString.call(e)}function $c(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Nc(e,t):t}function Fc(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Hc(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Uc=Symbol();function qc(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Uc?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Bc(e,t){return"function"==typeof e?e(...t):!!e}var zc,Vc,Kc,Wc=e(i(),1),Gc=wc();function Jc(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Yc(e,t,n){Jc(e,t),t.set(e,n)}function Qc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Xc(e,t,n){return e.set(Qc(e,t),n),n}function Zc(e,t){return e.get(Qc(e,t))}var el,tl,nl,rl=new(zc=new WeakMap,Vc=new WeakMap,Kc=new WeakMap,class extends _c{constructor(){super(),Yc(this,zc,void 0),Yc(this,Vc,void 0),Yc(this,Kc,void 0),Xc(Kc,this,e=>{if(!xc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Zc(Vc,this)||this.setEventListener(Zc(Kc,this))}onUnsubscribe(){this.hasListeners()||(Zc(Vc,this)?.call(this),Xc(Vc,this,void 0))}setEventListener(e){Xc(Kc,this,e),Zc(Vc,this)?.call(this),Xc(Vc,this,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){Zc(zc,this)!==e&&(Xc(zc,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof Zc(zc,this)?Zc(zc,this):"hidden"!==globalThis.document?.visibilityState}}),ol=new(el=new WeakMap,tl=new WeakMap,nl=new WeakMap,class extends _c{constructor(){super(),Yc(this,el,!0),Yc(this,tl,void 0),Yc(this,nl,void 0),Xc(nl,this,e=>{if(!xc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){Zc(tl,this)||this.setEventListener(Zc(nl,this))}onUnsubscribe(){this.hasListeners()||(Zc(tl,this)?.call(this),Xc(tl,this,void 0))}setEventListener(e){Xc(nl,this,e),Zc(tl,this)?.call(this),Xc(tl,this,e(this.setOnline.bind(this)))}setOnline(e){Zc(el,this)!==e&&(Xc(el,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return Zc(el,this)}});function il(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function sl(e){return Math.min(1e3*2**e,3e4)}function al(e){return"online"!==(e??"online")||ol.isOnline()}var cl=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ll(e){return e instanceof cl}function ul(e){let t,n=!1,r=0,o=!1;const i=il(),s=()=>rl.isFocused()&&("always"===e.networkMode||ol.isOnline())&&e.canRun(),a=()=>al(e.networkMode)&&e.canRun(),c=n=>{o||(o=!0,e.onSuccess?.(n),t?.(),i.resolve(n))},l=n=>{o||(o=!0,e.onError?.(n),t?.(),i.reject(n))},u=()=>new Promise(n=>{t=e=>{(o||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),d=()=>{if(o)return;let t;const i=0===r?e.initialPromise:void 0;try{t=i??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(c).catch(t=>{if(o)return;const i=e.retry??(xc?0:3),a=e.retryDelay??sl,c="function"==typeof a?a(r,t):a,h=!0===i||"number"==typeof i&&r<i||"function"==typeof i&&i(r,t);var p;!n&&h?(r++,e.onFail?.(r,t),(p=c,new Promise(e=>{setTimeout(e,p)})).then(()=>s()?void 0:u()).then(()=>{n?l(t):d()})):l(t)})};return{promise:i,cancel:t=>{o||(l(new cl(t)),e.abort?.())},continue:()=>(t?.(),i),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),i)}}var dl=e=>setTimeout(e,0);var hl,pl,fl,gl,ml,vl,yl,bl,wl,_l=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=dl;const i=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),xl=(hl=new WeakMap,class{constructor(){Yc(this,hl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sc(this.gcTime)&&Xc(hl,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xc?1/0:3e5))}clearGcTimeout(){Zc(hl,this)&&(clearTimeout(Zc(hl,this)),Xc(hl,this,void 0))}});function El(e,t){Jc(e,t),t.add(e)}var Sl,kl=(pl=new WeakMap,fl=new WeakMap,gl=new WeakMap,ml=new WeakMap,vl=new WeakMap,yl=new WeakMap,bl=new WeakMap,wl=new WeakSet,class extends xl{constructor(e){super(),El(this,wl),Yc(this,pl,void 0),Yc(this,fl,void 0),Yc(this,gl,void 0),Yc(this,ml,void 0),Yc(this,vl,void 0),Yc(this,yl,void 0),Yc(this,bl,void 0),Xc(bl,this,!1),Xc(yl,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],Xc(ml,this,e.client),Xc(gl,this,Zc(ml,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Xc(pl,this,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??Zc(pl,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return Zc(vl,this)?.promise}setOptions(e){this.options={...Zc(yl,this),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Zc(gl,this).remove(this)}setData(e,t){const n=$c(this.state.data,e,this.options);return Qc(wl,this,Ol).call(this,{data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){Qc(wl,this,Ol).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){const t=Zc(vl,this)?.promise;return Zc(vl,this)?.cancel(e),t?t.then(Ec).catch(Ec):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Zc(pl,this))}isActive(){return this.observers.some(e=>!1!==Cc(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Oc(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!kc(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),Zc(vl,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),Zc(vl,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Zc(gl,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(Zc(vl,this)&&(Zc(bl,this)?Zc(vl,this).cancel({revert:!0}):Zc(vl,this).cancelRetry()),this.scheduleGc()),Zc(gl,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Qc(wl,this,Ol).call(this,{type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(Zc(vl,this))return Zc(vl,this).continueRetry(),Zc(vl,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Xc(bl,this,!0),n.signal)})},o=()=>{const e=qc(this.options,t),n=(()=>{const e={client:Zc(ml,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return Xc(bl,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:Zc(ml,this),state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),Xc(fl,this,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||Qc(wl,this,Ol).call(this,{type:"fetch",meta:i.fetchOptions?.meta});const s=e=>{ll(e)&&e.silent||Qc(wl,this,Ol).call(this,{type:"error",error:e}),ll(e)||(Zc(gl,this).config.onError?.(e,this),Zc(gl,this).config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return Xc(vl,this,ul({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void s(t)}Zc(gl,this).config.onSuccess?.(e,this),Zc(gl,this).config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else s(new Error(`${this.queryHash} data is undefined`))},onError:s,onFail:(e,t)=>{Qc(wl,this,Ol).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Qc(wl,this,Ol).call(this,{type:"pause"})},onContinue:()=>{Qc(wl,this,Ol).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),Zc(vl,this).start()}});function Ol(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Cl(t.data,this.options),fetchMeta:e.meta??null};case"success":return Xc(fl,this,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return ll(n)&&n.revert&&Zc(fl,this)?{...Zc(fl,this),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),_l.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),Zc(gl,this).notify({query:this,type:"updated",action:e})})}function Cl(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:al(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Pl,Rl,Ll,Tl,Dl,Nl,jl,Al=(Sl=new WeakMap,class extends _c{constructor(e={}){super(),Yc(this,Sl,void 0),this.config=e,Xc(Sl,this,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Lc(r,t);let i=this.get(o);return i||(i=new kl({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){Zc(Sl,this).has(e.queryHash)||(Zc(Sl,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Zc(Sl,this).get(e.queryHash);t&&(e.destroy(),t===e&&Zc(Sl,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){_l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Zc(Sl,this).get(e)}getAll(){return[...Zc(Sl,this).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Pc(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Pc(e,t)):t}notify(e){_l.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_l.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_l.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),Il=(Pl=new WeakMap,Rl=new WeakMap,Ll=new WeakMap,Tl=new WeakSet,class extends xl{constructor(e){super(),El(this,Tl),Yc(this,Pl,void 0),Yc(this,Rl,void 0),Yc(this,Ll,void 0),this.mutationId=e.mutationId,Xc(Rl,this,e.mutationCache),Xc(Pl,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Zc(Pl,this).includes(e)||(Zc(Pl,this).push(e),this.clearGcTimeout(),Zc(Rl,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Xc(Pl,this,Zc(Pl,this).filter(t=>t!==e)),this.scheduleGc(),Zc(Rl,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Zc(Pl,this).length||("pending"===this.state.status?this.scheduleGc():Zc(Rl,this).remove(this))}continue(){return Zc(Ll,this)?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{Qc(Tl,this,Ml).call(this,{type:"continue"})};Xc(Ll,this,ul({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Qc(Tl,this,Ml).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Qc(Tl,this,Ml).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Zc(Rl,this).canRun(this)}));const n="pending"===this.state.status,r=!Zc(Ll,this).canStart();try{if(n)t();else{Qc(Tl,this,Ml).call(this,{type:"pending",variables:e,isPaused:r}),await(Zc(Rl,this).config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&Qc(Tl,this,Ml).call(this,{type:"pending",context:t,variables:e,isPaused:r})}const o=await Zc(Ll,this).start();return await(Zc(Rl,this).config.onSuccess?.(o,e,this.state.context,this)),await(this.options.onSuccess?.(o,e,this.state.context)),await(Zc(Rl,this).config.onSettled?.(o,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(o,null,e,this.state.context)),Qc(Tl,this,Ml).call(this,{type:"success",data:o}),o}catch(o){try{throw await(Zc(Rl,this).config.onError?.(o,e,this.state.context,this)),await(this.options.onError?.(o,e,this.state.context)),await(Zc(Rl,this).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,o,e,this.state.context)),o}finally{Qc(Tl,this,Ml).call(this,{type:"error",error:o})}}finally{Zc(Rl,this).runNext(this)}}});function Ml(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),_l.batch(()=>{Zc(Pl,this).forEach(t=>{t.onMutationUpdate(e)}),Zc(Rl,this).notify({mutation:this,type:"updated",action:e})})}function $l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fl,Hl,Ul,ql,Bl,zl,Vl,Kl,Wl=(Dl=new WeakMap,Nl=new WeakMap,jl=new WeakMap,class extends _c{constructor(e={}){super(),Yc(this,Dl,void 0),Yc(this,Nl,void 0),Yc(this,jl,void 0),this.config=e,Xc(Dl,this,new Set),Xc(Nl,this,new Map),Xc(jl,this,0)}build(e,t,n){var r;const o=new Il({mutationCache:this,mutationId:Xc(jl,this,(r=Zc(jl,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){Zc(Dl,this).add(e);const t=Gl(e);if("string"==typeof t){const n=Zc(Nl,this).get(t);n?n.push(e):Zc(Nl,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(Zc(Dl,this).delete(e)){const t=Gl(e);if("string"==typeof t){const n=Zc(Nl,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&Zc(Nl,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Gl(e);if("string"==typeof t){const n=Zc(Nl,this).get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Gl(e);return"string"==typeof t?(Zc(Nl,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_l.batch(()=>{Zc(Dl,this).forEach(e=>{this.notify({type:"removed",mutation:e})}),Zc(Dl,this).clear(),Zc(Nl,this).clear()})}getAll(){return Array.from(Zc(Dl,this))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Rc(t,e))}findAll(e={}){return this.getAll().filter(t=>Rc(e,t))}notify(e){_l.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return _l.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ec))))}});function Gl(e){return e.options.scope?.id}function Jl(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let n=!1;const l=qc(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=await l((()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})()),{maxPages:s}=t.options,a=o?Hc:Fc;return{pages:a(e.pages,i,s),pageParams:a(e.pageParams,r,s)}};if(o&&i.length){const e="backward"===o,t=e?Ql:Yl,n={pages:i,pageParams:s};a=await u(n,t(r,n),e)}else{const t=e??i.length;do{const e=0===c?s[0]??r.initialPageParam:Yl(r,a);if(c>0&&null==e)break;a=await u(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Yl(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ql(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Xl=(Fl=new WeakMap,Hl=new WeakMap,Ul=new WeakMap,ql=new WeakMap,Bl=new WeakMap,zl=new WeakMap,Vl=new WeakMap,Kl=new WeakMap,class{constructor(e={}){Yc(this,Fl,void 0),Yc(this,Hl,void 0),Yc(this,Ul,void 0),Yc(this,ql,void 0),Yc(this,Bl,void 0),Yc(this,zl,void 0),Yc(this,Vl,void 0),Yc(this,Kl,void 0),Xc(Fl,this,e.queryCache||new Al),Xc(Hl,this,e.mutationCache||new Wl),Xc(Ul,this,e.defaultOptions||{}),Xc(ql,this,new Map),Xc(Bl,this,new Map),Xc(zl,this,0)}mount(){var e;Xc(zl,this,(e=Zc(zl,this),++e)),1===Zc(zl,this)&&(Xc(Vl,this,rl.subscribe(async e=>{e&&(await this.resumePausedMutations(),Zc(Fl,this).onFocus())})),Xc(Kl,this,ol.subscribe(async e=>{e&&(await this.resumePausedMutations(),Zc(Fl,this).onOnline())})))}unmount(){var e;Xc(zl,this,(e=Zc(zl,this),--e)),0===Zc(zl,this)&&(Zc(Vl,this)?.call(this),Xc(Vl,this,void 0),Zc(Kl,this)?.call(this),Xc(Kl,this,void 0))}isFetching(e){return Zc(Fl,this).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Zc(Hl,this).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return Zc(Fl,this).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Zc(Fl,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Oc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Zc(Fl,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Zc(Fl,this).get(r.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==i)return Zc(Fl,this).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return _l.batch(()=>Zc(Fl,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return Zc(Fl,this).get(t.queryHash)?.state}removeQueries(e){const t=Zc(Fl,this);_l.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=Zc(Fl,this);return _l.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_l.batch(()=>Zc(Fl,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ec).catch(Ec)}invalidateQueries(e,t={}){return _l.batch(()=>(Zc(Fl,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_l.batch(()=>Zc(Fl,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ec)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Ec)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Zc(Fl,this).build(this,t);return n.isStaleByTime(Oc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ec).catch(Ec)}fetchInfiniteQuery(e){return e.behavior=Jl(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ec).catch(Ec)}ensureInfiniteQueryData(e){return e.behavior=Jl(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ol.isOnline()?Zc(Hl,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return Zc(Fl,this)}getMutationCache(){return Zc(Hl,this)}getDefaultOptions(){return Zc(Ul,this)}setDefaultOptions(e){Xc(Ul,this,e)}setQueryDefaults(e,t){Zc(ql,this).set(Tc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Zc(ql,this).values()],n={};return t.forEach(t=>{Dc(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){Zc(Bl,this).set(Tc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Zc(Bl,this).values()],n={};return t.forEach(t=>{Dc(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Zc(Ul,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lc(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Uc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...Zc(Ul,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Zc(Fl,this).clear(),Zc(Hl,this).clear()}}),Zl=o(e=>{var t=s(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var s,c={},l=null,u=null;for(s in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===c[s]&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.Fragment=r,e.jsx=c,e.jsxs=c}),eu=o((e,t)=>{t.exports=Zl()}),tu=eu(),nu=zr.createContext(void 0),ru=e=>{const t=zr.useContext(nu);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ou=({client:e,children:t})=>(zr.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,tu.jsx)(nu.Provider,{value:e,children:t})),iu=(0,zr.createContext)(null),su={didCatch:!1,error:null},au=class extends zr.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=su}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(su)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(su))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,zr.createElement)(n,e);else{if(void 0===r)throw i;s=r}}return(0,zr.createElement)(iu.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};var cu=function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_CONTENT_GOOGLE_MAPS="local-content-google-maps",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.LEAD_CAPTURE="lead-capture",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e}({}),lu={},uu=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=i?.nonce||i?.getAttribute("nonce");o=t.map(t=>{if((t=function(e){return"/sdks-app/v1/"+e}(t))in lu)return;lu[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const i=document.createElement("link");return i.rel=r?"stylesheet":"modulepreload",r||(i.as="script"),i.crossOrigin="",i.href=t,s&&i.setAttribute("nonce",s),document.head.appendChild(i),r?new Promise((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(o.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var o;function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},du=new Gc.ReactLocation,hu=zr.lazy(()=>uu(()=>import("./LocalContent-2pJKWECA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]))),pu=zr.lazy(()=>uu(()=>import("./LocalDemographics-CCLrxAlH.js"),__vite__mapDeps([33,1,2,3,10,6,11,34,35,36,37,27,38,39,30,40]))),fu=zr.lazy(()=>uu(()=>import("./NeighborhoodHero-Ccge3SCR.js"),__vite__mapDeps([41,1,2,3,12,6,37,38,28,42,43,32]))),gu=zr.lazy(()=>uu(()=>import("./NeighborhoodMap-Cs2mW6eY.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,37,26,27,28,42,31,32]))),mu=zr.lazy(()=>uu(()=>import("./NeighborhoodCharacteristics-D56qnuca.js"),__vite__mapDeps([45,1,2,3,37,25,27,38,46,21,6,23,5,7,8,19,20,11,39,28,42,43,29,31,32]))),vu=zr.lazy(()=>uu(()=>import("./NeighborhoodHighlights-BFiTF1H2.js"),__vite__mapDeps([47,1,2,3,23,5,6,7,8,19,20,11,37,48,38,39,28,42,29,32]))),yu=zr.lazy(()=>uu(()=>import("./NeighborhoodDemographics-C0jX8lOM.js"),__vite__mapDeps([49,1,2,3,20,6,21,11,34,35,37,27,48,38,39,28,42,30,31,40]))),bu=zr.lazy(()=>uu(()=>import("./NeighborhoodPropertyValueDrivers-CkZQt4Un.js"),__vite__mapDeps([50,1,2,3,5,6,9,19,37,48,38,39,28,42,40]))),wu=zr.lazy(()=>uu(()=>import("./NeighborhoodMatch-DyGrO6rV.js"),__vite__mapDeps([51,1,2,3,37,26,27,52,48,38,46,21,6,23,5,7,8,19,20,11,25,39,28,42,31,32]))),_u=zr.lazy(()=>uu(()=>import("./NeighborhoodMarketTrends-BPFS-IP7.js"),__vite__mapDeps([53,1,2,3,21,6,54,13,36,37,27,48,38,39,28,42,40]))),xu=zr.lazy(()=>uu(()=>import("./NeighborhoodSchools-CYj0W8g4.js"),__vite__mapDeps([55,1,2,3,7,6,21,11,37,25,26,27,48,38,39,28,42,17,30,56,32]))),Eu=zr.lazy(()=>uu(()=>import("./NeighborhoodShowcase-CHCSD8YZ.js"),__vite__mapDeps([57,1,2,3,24,6,58,37,59,52,38,28,40]))),Su=zr.lazy(()=>uu(()=>import("./NeighborhoodFeatured-Dy3pyH2M.js"),__vite__mapDeps([60,1,2,3,58,37,59,52,38,28,40]))),ku=zr.lazy(()=>uu(()=>import("./LeadCapture-DQ_u-trr.js"),__vite__mapDeps([61,1,2,3,21,6,22,54,12,35,58,37,26,27,38,28,42,30,31,32]))),Ou=({children:e})=>(0,tu.jsx)(Gc.Router,{location:du,routes:[{path:`/sdks-app/v1/${cu.LOCAL_CONTENT}`,element:(0,tu.jsx)(hu,{})},{path:`/sdks-app/v1/${cu.LOCAL_DEMOGRAPHICS}`,element:(0,tu.jsx)(pu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_MAP}`,element:(0,tu.jsx)(gu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_HERO}`,element:(0,tu.jsx)(fu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,tu.jsx)(mu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,tu.jsx)(vu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,tu.jsx)(yu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,tu.jsx)(bu,{})},{path:`/sdks-app/v1/local-${cu.NEIGHBORHOOD_MATCH}`,element:(0,tu.jsx)(wu,{})},{path:"/sdks-app/v1/demographics",element:(0,tu.jsx)(pu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_MAP}`,element:(0,tu.jsx)(gu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_HERO}`,element:(0,tu.jsx)(fu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_CHARACTERISTICS}`,element:(0,tu.jsx)(mu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_HIGHLIGHTS}`,element:(0,tu.jsx)(vu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_DEMOGRAPHICS}`,element:(0,tu.jsx)(yu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS}`,element:(0,tu.jsx)(bu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_MATCH}`,element:(0,tu.jsx)(wu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_MARKET_TRENDS}`,element:(0,tu.jsx)(_u,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_SCHOOLS}`,element:(0,tu.jsx)(xu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_SHOWCASE}`,element:(0,tu.jsx)(Eu,{})},{path:`/sdks-app/v1/${cu.NEIGHBORHOOD_FEATURED}`,element:(0,tu.jsx)(Su,{})},{path:`/sdks-app/v1/${cu.LEAD_CAPTURE}`,element:(0,tu.jsx)(ku,{})}],children:e}),Cu={"--ll-base-unit":"var(--ll-base-unit)","--ll-color-primary":"var(--ll-color-primary)","--ll-color-primary-variant1":"var(--ll-color-primary-variant1)","--ll-color-background":"var(--ll-color-background)","--ll-color-surface":"var(--ll-color-surface)","--ll-color-surface-variant1":"var(--ll-color-surface-variant1)","--ll-color-surface-variant2":"var(--ll-color-surface-variant2)","--ll-color-on-primary":"var(--ll-color-on-primary)","--ll-color-on-primary-variant1":"var(--ll-color-on-primary-variant1)","--ll-color-on-background":"var(--ll-color-on-background)","--ll-color-on-background-variant1":"var(--ll-color-on-background-variant1)","--ll-color-on-surface":"var(--ll-color-on-surface)","--ll-color-on-surface-variant1":"var(--ll-color-on-surface-variant1)","--ll-color-placeholder":"var(--ll-color-placeholder)","--ll-color-disabled":"var(--ll-color-disabled)","--ll-color-border":"var(--ll-color-border)","--ll-color-link":"var(--ll-color-link)","--ll-sdk-title-color":"var(--ll-sdk-title-color)","--ll-color-error":"var(--ll-color-error)","--ll-border-radius-base-unit":"var(--ll-border-radius-base-unit)","--ll-border-radius-small":"var(--ll-border-radius-small)","--ll-border-radius-medium":"var(--ll-border-radius-medium)","--ll-border-radius-large":"var(--ll-border-radius-large)","--ll-shadow-small":"var(--ll-shadow-small)","--ll-shadow-medium":"var(--ll-shadow-medium)","--ll-spacing-base-unit":"var(--ll-spacing-base-unit)","--ll-spacing-auto":"var(--ll-spacing-auto)","--ll-spacing-xx-small":"var(--ll-spacing-xx-small)","--ll-spacing-x-small":"var(--ll-spacing-x-small)","--ll-spacing-small":"var(--ll-spacing-small)","--ll-spacing-medium":"var(--ll-spacing-medium)","--ll-spacing-large":"var(--ll-spacing-large)","--ll-spacing-x-large":"var(--ll-spacing-x-large)","--ll-spacing-xx-large":"var(--ll-spacing-xx-large)","--ll-spacing-xxx-large":"var(--ll-spacing-xxx-large)","--ll-font-family":"var(--ll-font-family)","--ll-font-family-mono":"var(--ll-font-family-mono)","--ll-font-size-base":"var(--ll-font-size-base)","--ll-font-size-h1":"var(--ll-font-size-h1)","--ll-font-size-h2":"var(--ll-font-size-h2)","--ll-font-size-h3":"var(--ll-font-size-h3)","--ll-font-size-h4":"var(--ll-font-size-h4)","--ll-font-size-h5":"var(--ll-font-size-h5)","--ll-font-size-h6":"var(--ll-font-size-h6)","--ll-font-size-p":"var(--ll-font-size-p)","--ll-font-size-caption-1":"var(--ll-font-size-caption-1)","--ll-font-size-caption-2":"var(--ll-font-size-caption-2)","--ll-font-weight-light":"var(--ll-font-weight-light)","--ll-font-weight-normal":"var(--ll-font-weight-normal)","--ll-font-weight-medium":"var(--ll-font-weight-medium)","--ll-font-weight-semibold":"var(--ll-font-weight-semibold)","--ll-font-weight-bold":"var(--ll-font-weight-bold)"},Pu=r({blueColors:()=>Tu,neutralColors:()=>Lu,primaryColors:()=>Ru}),Ru={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Lu={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},Tu={colorBlue70:"#0056D3"},Du=r({transitions:()=>Nu}),Nu={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},ju=r({screenSizes:()=>Au}),Au={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},Iu={colors:Pu,...Du,...ju},Mu=({SVGElement:e,fill:t=`${Cu["--ll-color-on-background"]}`,className:n,height:r=24,width:o=24})=>(0,tu.jsx)("div",{className:`${n} [&>svg]:fill-inherit`,style:{height:`${r}px`,width:`${o}px`,fill:t},children:(0,tu.jsx)(e,{})}),$u=({children:e,variant:t="p",align:n,color:r="--ll-color-on-background",lineClamp:o,noMargin:i,lineHeight:s,weight:a="normal",family:c="sans-serif",className:l,textTransform:u="none",letterSpacing:d,fontVariant:h="initial"})=>(0,tu.jsx)(`${["caption1","caption2","p"].includes(t)?"p":t}`,{style:{color:`${r in Cu?Cu[r]:r}`,fontVariant:`${h}`,lineHeight:s||"1.45",letterSpacing:`${d}`,fontWeight:Cu[a]},className:`${l} \n m-0 mb-2\n data-[nomargin=true]:mb-0\n data-[align=left]:text-left\n data-[align=center]:text-center\n data-[align=right]:text-right\n data-[variant=h1]:text-ll-font-size-h1\n data-[variant=h2]:text-ll-font-size-h2\n data-[variant=h3]:text-ll-font-size-h3\n data-[variant=h4]:text-ll-font-size-h4\n data-[variant=h5]:text-ll-font-size-h5\n data-[variant=h6]:text-ll-font-size-h6\n data-[variant=p]:text-ll-font-size-p\n data-[variant=caption1]:text-ll-font-size-caption-1\n data-[variant=caption2]:text-ll-font-size-caption-2\n data-[texttransform=capitalize]:capitalize\n data-[texttransform=uppercase]:uppercase\n data-[texttransform=lowercase]:lowercase\n data-[texttransform=none]:normal-case\n data-[family=sans-serif]:font-sans\n data-[family=mono]:font-mono\n\n data-[lineclamp=none]:line-clamp-none\n data-[lineclamp=none]:whitespace-nowrap\n data-[lineclamp="1"]:line-clamp-1\n data-[lineclamp="2"]:line-clamp-2\n data-[lineclamp="3"]:line-clamp-3\n data-[lineclamp="4"]:line-clamp-4\n data-[lineclamp="5"]:line-clamp-5\n data-[lineclamp="6"]:line-clamp-g\n`,"data-align":n,"data-variant":t,"data-texttransform":u,"data-family":c,"data-nomargin":i,"data-lineclamp":o,children:e});function Fu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Hu(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Fu(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Fu(e[t],null)}}}}function Uu(...e){return zr.useCallback(Hu(...e),e)}var qu=Symbol.for("react.lazy"),Bu=zr[" use ".trim().toString()];function zu(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===qu&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Vu(e){const t=zr.forwardRef((e,t)=>{let{children:n,...r}=e;if(zu(n)&&"function"==typeof Bu&&(n=Bu(n._payload)),zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?Hu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ku=Symbol("radix.slottable");function Wu(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ku}var Gu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=Vu(e),n=zr.forwardRef((e,n)=>{let{children:r,...o}=e;zu(r)&&"function"==typeof Bu&&(r=Bu(r._payload));const i=zr.Children.toArray(r),s=i.find(Wu);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,tu.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,tu.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,tu.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ju=zr.forwardRef((e,t)=>(0,tu.jsx)(Gu.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Ju.displayName="Label";var Yu=Ju,Qu=e=>(0,tu.jsx)(Yu,{className:"\n text-ll-font-size-p text-ll-on-background font-sans\n",...e}),Xu=({size:e="medium",image:t,color:n="default"})=>t?(0,tu.jsx)("img",{src:"/sdks-app/v1/assets/spinner-qYD5cm1L.gif",alt:"Loading animation",width:90,height:90,className:"h-[90px] w-[90px] max-h-auto"}):(0,tu.jsx)("div",{className:"\n border-solid \n border-ll-on-surface-variant1\n border-b-[transparent]\n rounded-[50%]\n inline-block\n border-box\n animate-spin\n\n data-[color=white]:border-white\n data-[color=white]:border-b-[transparent]\n\n data-[size=small]:h-4\n data-[size=small]:w-4\n data-[size=small]:border-2\n\n data-[size=medium]:h-6\n data-[size=medium]:w-6\n data-[size=medium]:border-4\n\n data-[size=large]:h-8\n data-[size=large]:w-8\n data-[size=large]:border-[6px]\n","data-size":e,"data-color":n}),Zu=zr.forwardRef(({children:e,disabled:t=!1,onClick:n,variant:r="contained",startAdornment:o,size:i="medium",type:s="button",isLoading:a,props:c},l)=>(0,tu.jsx)("button",{"data-variant":r,"data-size":i,onClick:e=>{t||n&&(a||n(e))},disabled:t||a,className:"\n group\n font-normal rounded inline-flex items-center justify-center cursor-pointer\n bg-transparent border-0 box-border h-10 py-0 px-3\n text-ll-font-size-p\n\n disabled:cursor-default\n\n data-[size=small]:h-8\n data-[size=small]:px-2\n data-[size=small]:text-ll-font-size-caption-1\n\n data-[size=large]:h-12\n data-[size=large]:px-4\n\n data-[variant=contained]:bg-ll-primary\n data-[variant=contained]:text-ll-on-primary\n data-[variant=contained]:border\n data-[variant=contained]:border-solid\n data-[variant=contained]:border-transparent\n data-[variant=contained]:hover:bg-ll-primary-variant1\n data-[variant=contained]:disabled:bg-ll-disabled\n \n\n data-[variant=outlined]:bg-ll-background\n data-[variant=outlined]:text-ll-primary\n data-[variant=outlined]:border\n data-[variant=outlined]:border-solid\n data-[variant=outlined]:border-ll-primary\n data-[variant=outlined]:hover:bg-ll-surface-variant1\n data-[variant=outlined]:disabled:bg-ll-disabled\n data-[variant=outlined]:disabled:text-ll-on-primary\n data-[variant=outlined]:disabled:border-ll-on-background\n\n data-[variant=text]:text-ll-on-background\n",type:s,ref:l,...c,children:a?(0,tu.jsx)(Xu,{}):(0,tu.jsxs)(tu.Fragment,{children:[o&&(0,tu.jsx)("div",{className:"\n flex items-center mr-2 ml-1\n [&>svg]:fill-current [&>svg]:h-5 [&>svg]:w-5\n\n group-data-[size=small]:[&>svg]:h-3\n group-data-[size=small]:[&>svg]:w-3\n\n group-data-[size=large]:[&>svg]:h-6\n group-data-[size=large]:[&>svg]:w-6\n",children:o}),e]})}));Zu.displayName="Button";var ed=e=>zr.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 8.59L13.59 5L15 6.41L11.41 10L15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59Z"}));function td(e,[t,n]){return Math.min(n,Math.max(t,e))}function nd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function rd(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>zr.createContext(e));return function(n){const r=n?.[e]||t;return zr.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=zr.createContext(r),i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,a=n?.[e]?.[i]||o,c=zr.useMemo(()=>s,Object.values(s));return(0,tu.jsx)(a.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const a=s?.[e]?.[i]||o,c=zr.useContext(a);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},od(r,...t)]}function od(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return zr.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function id(e){const t=sd(e),n=zr.forwardRef((e,n)=>{const{children:r,...o}=e,i=zr.Children.toArray(r),s=i.find(ld);if(s){const e=s.props.children,r=i.map(t=>t===s?zr.Children.count(e)>1?zr.Children.only(null):zr.isValidElement(e)?e.props.children:null:t);return(0,tu.jsx)(t,{...o,ref:n,children:zr.isValidElement(e)?zr.cloneElement(e,void 0,r):null})}return(0,tu.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function sd(e){const t=zr.forwardRef((e,t)=>{const{children:n,...r}=e;if(zr.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==zr.Fragment&&(o.ref=t?Hu(t,e):e),zr.cloneElement(n,o)}return zr.Children.count(n)>1?zr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(0,zr.forwardRef)(({name:e,value:t,label:n,placeholder:r,className:o,autofocus:i=!1,hasError:s=!1,adornment:a,onBlur:c,onFocus:l,onClear:u,onChange:d},h)=>{const p=(0,zr.useId)(),f=(0,zr.useRef)(null),g=(0,zr.useRef)(null);(0,zr.useImperativeHandle)(h,()=>({focus:()=>{f?.current?.focus()},get input(){return f.current},get container(){return g.current}}));const m=(0,zr.useMemo)(()=>n?(0,tu.jsx)(Qu,{htmlFor:p,style:{lineHeight:"26px"},children:n}):null,[n]);return(0,tu.jsxs)("div",{className:"\n flex flex-col flex-1\n",ref:g,children:[m,(0,tu.jsxs)("div",{className:"\n border flex items-center bg-ll-background\n rounded-sm focus-within:shadow-lg\n data-[has-error=true]:border-ll-error\n data-[has-error=false]:border-ll-border\n","data-has-error":s,children:[a&&(0,tu.jsx)("span",{className:"\n h-full w-[20px] flex justify-center items-center mx-2\n",children:a}),(0,tu.jsx)("input",{type:"text",className:`${o} \n border flex-1 text-ll-on-background h-[30px]\n inline-flex justify-center items-center py-0 px-2\n leading-none font-sans text-ll-font-size-h6 md:text-ll-font-size-p \n `,ref:f,name:e,autoFocus:i,id:p,value:t,onBlur:c,onFocus:l,onChange:d,placeholder:r,style:a&&{width:"-webkit-fill-available"}}),u&&(0,tu.jsx)(Zu,{size:"small",variant:"text",onClick:u,children:(0,tu.jsx)(ed,{})})]})]})}).displayName="Input";var ad,cd=Symbol("radix.slottable");function ld(e){return zr.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===cd}function ud(e){const t=e+"CollectionProvider",[n,r]=rd(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=zr.useRef(null),i=zr.useRef(new Map).current;return(0,tu.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const a=e+"CollectionSlot",c=id(a),l=zr.forwardRef((e,t)=>{const{scope:n,children:r}=e;return(0,tu.jsx)(c,{ref:Uu(t,i(a,n).collectionRef),children:r})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=id(u),p=zr.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,s=zr.useRef(null),a=Uu(t,s),c=i(u,n);return zr.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>{c.itemMap.delete(s)})),(0,tu.jsx)(h,{[d]:"",ref:a,children:r})});return p.displayName=u,[{Provider:s,Slot:l,ItemSlot:p},function(t){const n=i(e+"CollectionConsumer",t);return zr.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var dd=new WeakMap;ad=new WeakMap,Map;function hd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=pd(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return-1===n?void 0:e[n]}function pd(e){return e!=e||0===e?0:Math.trunc(e)}var fd=zr.createContext(void 0);function gd(e){const t=zr.useContext(fd);return e||t||"ltr"}var md=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=id(`Primitive.${t}`),r=zr.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,tu.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vd(e){const t=zr.useRef(e);return zr.useEffect(()=>{t.current=e}),zr.useMemo(()=>(...e)=>t.current?.(...e),[])}var yd,bd="dismissableLayer.update",wd="dismissableLayer.pointerDownOutside",_d="dismissableLayer.focusOutside",xd=zr.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ed=zr.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=zr.useContext(xd),[u,d]=zr.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=zr.useState({}),f=Uu(t,e=>d(e)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,_=function(e,t=globalThis?.document){const n=vd(e),r=zr.useRef(!1),o=zr.useRef(()=>{});return zr.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){kd(wd,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...l.branches].some(e=>e.contains(t));w&&!n&&(o?.(e),s?.(e),e.defaultPrevented||a?.())},h),x=function(e,t=globalThis?.document){const n=vd(e),r=zr.useRef(!1);return zr.useEffect(()=>{const e=e=>{e.target&&!r.current&&kd(_d,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...l.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||a?.())},h);return function(e,t=globalThis?.document){const n=vd(e);zr.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},h),zr.useEffect(()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(yd=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Sd(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=yd)}},[u,h,n,l]),zr.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Sd())},[u,l]),zr.useEffect(()=>{const e=()=>p({});return document.addEventListener(bd,e),()=>document.removeEventListener(bd,e)},[]),(0,tu.jsx)(md.div,{...c,ref:f,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:nd(e.onFocusCapture,x.onFocusCapture),onBlurCapture:nd(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:nd(e.onPointerDownCapture,_.onPointerDownCapture)})});Ed.displayName="DismissableLayer";function Sd(){const e=new CustomEvent(bd);document.dispatchEvent(e)}function kd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Wc.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}zr.forwardRef((e,t)=>{const n=zr.useContext(xd),r=zr.useRef(null),o=Uu(t,r);return zr.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,tu.jsx)(md.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var Od=0;function Cd(){zr.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pd()),document.body.insertAdjacentElement("beforeend",e[1]??Pd()),Od++,()=>{1===Od&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Od--}},[])}function Pd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Rd="focusScope.autoFocusOnMount",Ld="focusScope.autoFocusOnUnmount",Td={bubbles:!1,cancelable:!0},Dd=zr.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=zr.useState(null),l=vd(o),u=vd(i),d=zr.useRef(null),h=Uu(t,e=>c(e)),p=zr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;zr.useEffect(()=>{if(r){let e=function(e){if(p.paused||!a)return;const t=e.target;a.contains(t)?d.current=t:Id(d.current,{select:!0})},t=function(e){if(p.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||Id(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Id(a)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,p.paused]),zr.useEffect(()=>{if(a){Md.add(p);const t=document.activeElement;if(!a.contains(t)){const n=new CustomEvent(Rd,Td);a.addEventListener(Rd,l),a.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Id(r,{select:t}),document.activeElement!==n)return}((e=Nd(a),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Id(a))}return()=>{a.removeEventListener(Rd,l),setTimeout(()=>{const e=new CustomEvent(Ld,Td);a.addEventListener(Ld,u),a.dispatchEvent(e),e.defaultPrevented||Id(t??document.body,{select:!0}),a.removeEventListener(Ld,u),Md.remove(p)},0)}}var e},[a,l,u,p]);const f=zr.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Nd(e);return[jd(t,e),jd(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Id(i,{select:!0})):(e.preventDefault(),n&&Id(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,tu.jsx)(md.div,{tabIndex:-1,...s,ref:h,onKeyDown:f})});function Nd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jd(e,t){for(const n of e)if(!Ad(n,{upTo:t}))return n}function Ad(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Id(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Dd.displayName="FocusScope";var Md=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$d(e,t),e.unshift(t)},remove(t){e=$d(e,t),e[0]?.resume()}}}();function $d(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Fd=globalThis?.document?zr.useLayoutEffect:()=>{},Hd=zr[" useId ".trim().toString()]||(()=>{}),Ud=0;function qd(e){const[t,n]=zr.useState(Hd());return Fd(()=>{e||n(e=>e??String(Ud++))},[e]),e||(t?`radix-${t}`:"")}var Bd=["top","right","bottom","left"],zd=Math.min,Vd=Math.max,Kd=Math.round,Wd=Math.floor,Gd=e=>({x:e,y:e}),Jd={left:"right",right:"left",bottom:"top",top:"bottom"},Yd={start:"end",end:"start"};function Qd(e,t,n){return Vd(e,zd(t,n))}function Xd(e,t){return"function"==typeof e?e(t):e}function Zd(e){return e.split("-")[0]}function eh(e){return e.split("-")[1]}function th(e){return"x"===e?"y":"x"}function nh(e){return"y"===e?"height":"width"}function rh(e){return["top","bottom"].includes(Zd(e))?"y":"x"}function oh(e){return th(rh(e))}function ih(e){return e.replace(/start|end/g,e=>Yd[e])}function sh(e){return e.replace(/left|right|bottom|top/g,e=>Jd[e])}function ah(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ch(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function lh(e,t,n){let{reference:r,floating:o}=e;const i=rh(t),s=oh(t),a=nh(s),c=Zd(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(eh(t)){case"start":p[s]-=h*(n&&l?-1:1);break;case"end":p[s]+=h*(n&&l?-1:1)}return p}async function uh(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Xd(t,e),f=ah(p),g=a[h?"floating"===d?"reference":"floating":d],m=ch(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ch(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-w.top+f.top)/b.y,bottom:(w.bottom-m.bottom+f.bottom)/b.y,left:(m.left-w.left+f.left)/b.x,right:(w.right-m.right+f.right)/b.x}}function dh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hh(e){return Bd.some(t=>e[t]>=0)}function ph(){return"undefined"!=typeof window}function fh(e){return vh(e)?(e.nodeName||"").toLowerCase():"#document"}function gh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mh(e){var t;return null==(t=(vh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vh(e){return!!ph()&&(e instanceof Node||e instanceof gh(e).Node)}function yh(e){return!!ph()&&(e instanceof Element||e instanceof gh(e).Element)}function bh(e){return!!ph()&&(e instanceof HTMLElement||e instanceof gh(e).HTMLElement)}function wh(e){return!(!ph()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof gh(e).ShadowRoot)}function _h(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ch(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xh(e){return["table","td","th"].includes(fh(e))}function Eh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(sv){return!1}})}function Sh(e){const t=kh(),n=yh(e)?Ch(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function kh(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Oh(e){return["html","body","#document"].includes(fh(e))}function Ch(e){return gh(e).getComputedStyle(e)}function Ph(e){return yh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rh(e){if("html"===fh(e))return e;const t=e.assignedSlot||e.parentNode||wh(e)&&e.host||mh(e);return wh(t)?t.host:t}function Lh(e){const t=Rh(e);return Oh(t)?e.ownerDocument?e.ownerDocument.body:e.body:bh(t)&&_h(t)?t:Lh(t)}function Th(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Lh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=gh(o);if(i){const e=Dh(s);return t.concat(s,s.visualViewport||[],_h(o)?o:[],e&&n?Th(e):[])}return t.concat(o,Th(o,[],n))}function Dh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nh(e){const t=Ch(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bh(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Kd(n)!==i||Kd(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function jh(e){return yh(e)?e:e.contextElement}function Ah(e){const t=jh(e);if(!bh(t))return Gd(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Nh(t);let s=(i?Kd(n.width):n.width)/r,a=(i?Kd(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}var Ih=Gd(0);function Mh(e){const t=gh(e);return kh()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ih}function $h(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=jh(e);let s=Gd(1);t&&(r?yh(r)&&(s=Ah(r)):s=Ah(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==gh(e))&&t}(i,n,r)?Mh(i):Gd(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=gh(i),t=r&&yh(r)?gh(r):r;let n=e,o=Dh(n);for(;o&&r&&t!==n;){const e=Ah(o),t=o.getBoundingClientRect(),r=Ch(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,n=gh(o),o=Dh(n)}}return ch({width:u,height:d,x:c,y:l})}function Fh(e,t){const n=Ph(e).scrollLeft;return t?t.left+n:$h(mh(e)).left+n}function Hh(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Fh(e,r)),y:r.top+t.scrollTop}}function Uh(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=gh(e),r=mh(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=kh();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=mh(e),n=Ph(e),r=e.ownerDocument.body,o=Vd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Fh(e);const a=-n.scrollTop;return"rtl"===Ch(r).direction&&(s+=Vd(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(mh(e));else if(yh(t))r=function(e,t){const n=$h(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=bh(e)?Ah(e):Gd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Mh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ch(r)}function qh(e,t){const n=Rh(e);return!(n===t||!yh(n)||Oh(n))&&("fixed"===Ch(n).position||qh(n,t))}function Bh(e,t){const n=t.get(e);if(n)return n;let r=Th(e,[],!1).filter(e=>yh(e)&&"body"!==fh(e)),o=null;const i="fixed"===Ch(e).position;let s=i?Rh(e):e;for(;yh(s)&&!Oh(s);){const t=Ch(s),n=Sh(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||_h(s)&&!n&&qh(e,s))?r=r.filter(e=>e!==s):o=t,s=Rh(s)}return t.set(e,r),r}function zh(e,t,n){const r=bh(t),o=mh(t),i="fixed"===n,s=$h(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Gd(0);if(r||!r&&!i)if(("body"!==fh(t)||_h(o))&&(a=Ph(t)),r){const e=$h(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Fh(o));const l=!o||r||i?Gd(0):Hh(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function Vh(e){return"static"===Ch(e).position}function Kh(e,t){if(!bh(e)||"fixed"===Ch(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mh(e)===n&&(n=n.ownerDocument.body),n}function Wh(e,t){const n=gh(e);if(Eh(e))return n;if(!bh(e)){let t=Rh(e);for(;t&&!Oh(t);){if(yh(t)&&!Vh(t))return t;t=Rh(t)}return n}let r=Kh(e,t);for(;r&&xh(r)&&Vh(r);)r=Kh(r,t);return r&&Oh(r)&&Vh(r)&&!Sh(r)?n:r||function(e){let t=Rh(e);for(;bh(t)&&!Oh(t);){if(Sh(t))return t;if(Eh(t))return null;t=Rh(t)}return null}(e)||n}var Gh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=mh(r),a=!!t&&Eh(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Gd(1);const u=Gd(0),d=bh(r);if((d||!d&&!i)&&(("body"!==fh(r)||_h(s))&&(c=Ph(r)),bh(r))){const e=$h(r);l=Ah(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||i?Gd(0):Hh(s,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}},getDocumentElement:mh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Eh(t)?[]:Bh(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((e,n)=>{const r=Uh(t,n,o);return e.top=Vd(r.top,e.top),e.right=zd(r.right,e.right),e.bottom=zd(r.bottom,e.bottom),e.left=Vd(r.left,e.left),e},Uh(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Wh,getElementRects:async function(e){const t=this.getOffsetParent||Wh,n=this.getDimensions,r=await n(e.floating);return{reference:zh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Nh(e);return{width:t,height:n}},getScale:Ah,isElement:yh,isRTL:function(e){return"rtl"===Ch(e).direction}};function Jh(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=jh(e),u=o||i?[...l?Th(l):[],...Th(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=l&&a?function(e,t){let n,r=null;const o=mh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p={rootMargin:-Wd(u)+"px "+-Wd(o.clientWidth-(l+d))+"px "+-Wd(o.clientHeight-(u+h))+"px "+-Wd(l)+"px",threshold:Vd(0,zd(1,c))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!f)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(sv){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(l,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let g=c?$h(e):null;return c&&function t(){const r=$h(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),d?.(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(h)}}var Yh=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Zd(n),a=eh(n),c="y"===rh(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=Xd(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),c?{x:p*u,y:h*l}:{x:h*l,y:p*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Qh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Xd(e,t),l={x:n,y:r},u=await uh(t,c),d=rh(Zd(o)),h=th(d);let p=l[h],f=l[d];if(i){const e="y"===h?"bottom":"right";p=Qd(p+u["y"===h?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";f=Qd(f+u["y"===d?"top":"left"],f,f-u[e])}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},Xh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=Xd(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Zd(o),y=rh(a),b=Zd(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),_=h||(b||!g?[sh(a)]:function(e){const t=sh(e);return[ih(e),t,ih(t)]}(a)),x="none"!==f;!h&&x&&_.push(...function(e,t,n,r){const o=eh(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Zd(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ih)))),i}(a,g,f,w));const E=[a,..._],S=await uh(t,m),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=eh(e),o=oh(e),i=nh(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=sh(s)),[s,sh(s)]}(o,s,w);k.push(S[e[0]],S[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var C,P;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=O.filter(e=>{if(x){const t=rh(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Zh=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=Xd(e,t),u=await uh(t,l),d=Zd(o),h=eh(o),p="y"===rh(o),{width:f,height:g}=i.floating;let m,v;"top"===d||"bottom"===d?(m=d,v=h===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,m="end"===h?"top":"bottom");const y=g-u.top-u.bottom,b=f-u.left-u.right,w=zd(g-u[m],y),_=zd(f-u[v],b),x=!t.middlewareData.shift;let E=w,S=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),x&&!h){const e=Vd(u.left,0),t=Vd(u.right,0),n=Vd(u.top,0),r=Vd(u.bottom,0);p?S=f-2*(0!==e||0!==t?e+t:Vd(u.left,u.right)):E=g-2*(0!==n||0!==r?n+r:Vd(u.top,u.bottom))}await c({...t,availableWidth:S,availableHeight:E});const k=await s.getDimensions(a.floating);return f!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}},ep=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xd(e,t);switch(r){case"referenceHidden":{const e=dh(await uh(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:hh(e)}}}case"escaped":{const e=dh(await uh(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:hh(e)}}}default:return{}}}}},tp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Xd(e,t)||{};if(null==l)return{};const d=ah(u),h={x:n,y:r},p=oh(o),f=nh(p),g=await s.getDimensions(l),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],_=h[p]-i.reference[p],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let E=x?x[b]:0;E&&await(null==s.isElement?void 0:s.isElement(x))||(E=a.floating[b]||i.floating[f]);const S=w/2-_/2,k=E/2-g[f]/2-1,O=zd(d[v],k),C=zd(d[y],k),P=O,R=E-g[f]-C,L=E/2-g[f]/2+S,T=Qd(P,L,R),D=!c.arrow&&null!=eh(o)&&L!==T&&i.reference[f]/2-(L<P?O:C)-g[f]/2<0,N=D?L<P?L-P:L-R:0;return{[p]:h[p]+N,data:{[p]:T,centerOffset:L-T-N,...D&&{alignmentOffset:N}},reset:D}}}),np=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Xd(e,t),u={x:n,y:r},d=rh(o),h=th(d);let p=u[h],f=u[d];const g=Xd(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+m.mainAxis,n=i.reference[h]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(Zd(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}},rp=(e,t,n)=>{const r=new Map,o={platform:Gh,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=lh(l,r,c),h=r,p={},f=0;for(let g=0;g<a.length;g++){const{name:n,fn:i}=a[g],{x:m,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=lh(l,h,c))),g=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},op="undefined"!=typeof document?zr.useLayoutEffect:zr.useEffect;function ip(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ip(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ip(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function sp(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(e,t){const n=sp(e);return Math.round(t*n)/n}function cp(e){const t=zr.useRef(e);return op(()=>{t.current=e}),t}var lp=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?tp({element:n.current,padding:r}).fn(t):{}:n?tp({element:n,padding:r}).fn(t):{};var o}}),up=(e,t)=>({...Yh(e),options:[e,t]}),dp=(e,t)=>({...Qh(e),options:[e,t]}),hp=(e,t)=>({...np(e),options:[e,t]}),pp=(e,t)=>({...Xh(e),options:[e,t]}),fp=(e,t)=>({...Zh(e),options:[e,t]}),gp=(e,t)=>({...ep(e),options:[e,t]}),mp=(e,t)=>({...lp(e),options:[e,t]}),vp=zr.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,tu.jsx)(md.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,tu.jsx)("polygon",{points:"0,0 30,0 15,10"})})});vp.displayName="Arrow";var yp=vp;var bp="Popper",[wp,_p]=rd(bp),[xp,Ep]=wp(bp),Sp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=zr.useState(null);return(0,tu.jsx)(xp,{scope:t,anchor:r,onAnchorChange:o,children:n})};Sp.displayName=bp;var kp="PopperAnchor",Op=zr.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ep(kp,n),s=zr.useRef(null),a=Uu(t,s);return zr.useEffect(()=>{i.onAnchorChange(r?.current||s.current)}),r?null:(0,tu.jsx)(md.div,{...o,ref:a})});Op.displayName=kp;var Cp="PopperContent",[Pp,Rp]=wp(Cp),Lp=zr.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:f,...g}=e,m=Ep(Cp,n),[v,y]=zr.useState(null),b=Uu(t,e=>y(e)),[w,_]=zr.useState(null),x=function(e){const[t,n]=zr.useState(void 0);return Fd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(w),E=x?.width??0,S=x?.height??0,k=r+("center"!==i?"-"+i:""),O="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},C=Array.isArray(l)?l:[l],P=C.length>0,R={padding:O,boundary:C.filter(jp),altBoundary:P},{refs:L,floatingStyles:T,placement:D,isPositioned:N,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=zr.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=zr.useState(r);ip(h,r)||p(r);const[f,g]=zr.useState(null),[m,v]=zr.useState(null),y=zr.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),b=zr.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),w=i||f,_=s||m,x=zr.useRef(null),E=zr.useRef(null),S=zr.useRef(u),k=null!=c,O=cp(c),C=cp(o),P=cp(l),R=zr.useCallback(()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};C.current&&(e.platform=C.current),rp(x.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};L.current&&!ip(S.current,t)&&(S.current=t,Wc.flushSync(()=>{d(t)}))})},[h,t,n,C,P]);op(()=>{!1===l&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);const L=zr.useRef(!1);op(()=>(L.current=!0,()=>{L.current=!1}),[]),op(()=>{if(w&&(x.current=w),_&&(E.current=_),w&&_){if(O.current)return O.current(w,_,R);R()}},[w,_,R,O,k]);const T=zr.useMemo(()=>({reference:x,floating:E,setReference:y,setFloating:b}),[y,b]),D=zr.useMemo(()=>({reference:w,floating:_}),[w,_]),N=zr.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=ap(D.floating,u.x),r=ap(D.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...sp(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,u.x,u.y]);return zr.useMemo(()=>({...u,update:R,refs:T,elements:D,floatingStyles:N}),[u,R,T,D,N])}({strategy:"fixed",placement:k,whileElementsMounted:(...e)=>Jh(...e,{animationFrame:"always"===p}),elements:{reference:m.anchor},middleware:[up({mainAxis:o+S,alignmentAxis:s}),c&&dp({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?hp():void 0,...R}),c&&pp({...R}),fp({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&mp({element:w,padding:a}),Ap({arrowWidth:E,arrowHeight:S}),h&&gp({strategy:"referenceHidden",...R})]}),[A,I]=Ip(D),M=vd(f);Fd(()=>{N&&M?.()},[N,M]);const $=j.arrow?.x,F=j.arrow?.y,H=0!==j.arrow?.centerOffset,[U,q]=zr.useState();return Fd(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),(0,tu.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:N?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,tu.jsx)(Pp,{scope:n,placedSide:A,onArrowChange:_,arrowX:$,arrowY:F,shouldHideArrow:H,children:(0,tu.jsx)(md.div,{"data-side":A,"data-align":I,...g,ref:b,style:{...g.style,animation:N?void 0:"none"}})})})});Lp.displayName=Cp;var Tp="PopperArrow",Dp={top:"bottom",right:"left",bottom:"top",left:"right"},Np=zr.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Rp(Tp,n),i=Dp[o.placedSide];return(0,tu.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,tu.jsx)(yp,{...r,ref:t,style:{...r.style,display:"block"}})})});function jp(e){return null!==e}Np.displayName=Tp;var Ap=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[c,l]=Ip(n),u={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+a/2;let p="",f="";return"bottom"===c?(p=i?u:`${d}px`,f=-a+"px"):"top"===c?(p=i?u:`${d}px`,f=`${r.floating.height+a}px`):"right"===c?(p=-a+"px",f=i?u:`${h}px`):"left"===c&&(p=`${r.floating.width+a}px`,f=i?u:`${h}px`),{data:{x:p,y:f}}}});function Ip(e){const[t,n="center"]=e.split("-");return[t,n]}var Mp=Sp,$p=Op,Fp=Lp,Hp=Np,Up=zr.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=zr.useState(!1);Fd(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Wc.createPortal((0,tu.jsx)(md.div,{...r,ref:t}),s):null});Up.displayName="Portal";var qp=zr[" useInsertionEffect ".trim().toString()]||Fd;function Bp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=zr.useState(e),o=zr.useRef(n),i=zr.useRef(t);return qp(()=>{i.current=t},[t]),zr.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:o;{const t=zr.useRef(void 0!==e);zr.useEffect(()=>{const e=t.current;e!==a&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=a},[a,r])}return[c,zr.useCallback(t=>{if(a){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)},[a,e,i,s])]}var zp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});zr.forwardRef((e,t)=>(0,tu.jsx)(md.span,{...e,ref:t,style:{...zp,...e.style}})).displayName="VisuallyHidden";var Vp=new WeakMap,Kp=new WeakMap,Wp={},Gp=0,Jp=function(e){return e&&(e.host||Jp(e.parentNode))},Yp=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Jp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Wp[n]||(Wp[n]=new WeakMap);var i=Wp[n],s=[],a=new Set,c=new Set(o),l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Vp.get(e)||0)+1,l=(i.get(e)||0)+1;Vp.set(e,c),i.set(e,l),s.push(e),1===c&&o&&Kp.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(sv){console.error("aria-hidden: cannot operate on ",e,sv)}})};return u(t),a.clear(),Gp++,function(){s.forEach(function(e){var t=Vp.get(e)-1,o=i.get(e)-1;Vp.set(e,t),i.set(e,o),t||(Kp.has(e)||e.removeAttribute(r),Kp.delete(e)),o||e.removeAttribute(n)}),--Gp||(Vp=new WeakMap,Vp=new WeakMap,Kp=new WeakMap,Wp={})}},Qp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Yp(r,o,n,"aria-hidden")):function(){return null}},Xp=function(){return Xp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xp.apply(this,arguments)};function Zp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var ef="right-scroll-bar-position",tf="width-before-scroll-bar";function nf(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var rf="undefined"!=typeof window?zr.useLayoutEffect:zr.useEffect,of=new WeakMap;function sf(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return nf(e,t)})},(o=(0,zr.useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return rf(function(){var t=of.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||nf(e,null)}),r.forEach(function(e){n.has(e)||nf(e,o)})}of.set(i,e)},[e]),i}function af(e){return e}var cf=function(e){var t=e.sideCar,n=Zp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return zr.createElement(r,Xp({},n))};cf.isSideCarExport=!0;var lf=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=af);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Xp({async:!0,ssr:!1},e),t}(),uf=function(){},df=zr.forwardRef(function(e,t){var n=zr.useRef(null),r=zr.useState({onScrollCapture:uf,onWheelCapture:uf,onTouchMoveCapture:uf}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,f=e.inert,g=e.allowPinchZoom,m=e.as,v=void 0===m?"div":m,y=e.gapMode,b=Zp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,_=sf([n,t]),x=Xp(Xp({},b),o);return zr.createElement(zr.Fragment,null,u&&zr.createElement(w,{sideCar:lf,removeScrollBar:l,shards:d,noIsolation:p,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:y}),s?zr.cloneElement(zr.Children.only(a),Xp(Xp({},x),{ref:_})):zr.createElement(v,Xp({},x,{className:c,ref:_}),a))});df.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},df.classNames={fullWidth:tf,zeroRight:ef};function hf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var pf=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=hf())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ff=function(){var e,t=(e=pf(),function(t,n){zr.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},gf={left:0,top:0,right:0,gap:0},mf=function(e){return parseInt(e||"",10)||0},vf=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return gf;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[mf(n),mf(r),mf(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yf=ff(),bf="data-scroll-locked",wf=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(bf,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ef," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tf," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ef," .").concat(ef," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tf," .").concat(tf," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(bf,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},_f=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},xf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;zr.useEffect(function(){return document.body.setAttribute(bf,(_f()+1).toString()),function(){var e=_f()-1;e<=0?document.body.removeAttribute(bf):document.body.setAttribute(bf,e.toString())}},[]);var i=zr.useMemo(function(){return vf(o)},[o]);return zr.createElement(yf,{styles:wf(i,!t,o,n?"":"!important")})},Ef=!1;if("undefined"!=typeof window)try{var Sf=Object.defineProperty({},"passive",{get:function(){return Ef=!0,!0}});window.addEventListener("test",Sf,Sf),window.removeEventListener("test",Sf,Sf)}catch(Jv){Ef=!1}var kf=!!Ef&&{passive:!1},Of=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Cf=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Pf(e,r)){var o=Rf(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pf=function(e,t){return"v"===e?function(e){return Of(e,"overflowY")}(t):function(e){return Of(e,"overflowX")}(t)},Rf=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Lf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tf=function(e){return[e.deltaX,e.deltaY]},Df=function(e){return e&&"current"in e?e.current:e},Nf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},jf=0,Af=[];function If(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Mf,$f=(Mf=function(e){var t=zr.useRef([]),n=zr.useRef([0,0]),r=zr.useRef(),o=zr.useState(jf++)[0],i=zr.useState(ff)[0],s=zr.useRef(e);zr.useEffect(function(){s.current=e},[e]),zr.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Df),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=zr.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Lf(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=Cf(d,u);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=Cf(d,u)),!h)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{var p=Rf(e,a),f=p[0],g=p[1]-p[2]-i*f;(f||g)&&Pf(e,a)&&(d+=g,h+=f),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&(o&&Math.abs(d)<1||!o&&s>d)||!u&&(o&&Math.abs(h)<1||!o&&-s>h))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)},[]),c=zr.useCallback(function(e){var n=e;if(Af.length&&Af[Af.length-1]===i){var r="deltaY"in n?Tf(n):Lf(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var c=(s.current.shards||[]).map(Df).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?a(n,c[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=zr.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:If(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=zr.useCallback(function(e){n.current=Lf(e),r.current=void 0},[]),d=zr.useCallback(function(t){l(t.type,Tf(t),t.target,a(t,e.lockRef.current))},[]),h=zr.useCallback(function(t){l(t.type,Lf(t),t.target,a(t,e.lockRef.current))},[]);zr.useEffect(function(){return Af.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,kf),document.addEventListener("touchmove",c,kf),document.addEventListener("touchstart",u,kf),function(){Af=Af.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,kf),document.removeEventListener("touchmove",c,kf),document.removeEventListener("touchstart",u,kf)}},[]);var p=e.removeScrollBar,f=e.inert;return zr.createElement(zr.Fragment,null,f?zr.createElement(i,{styles:Nf(o)}):null,p?zr.createElement(xf,{gapMode:e.gapMode}):null)},lf.useMedium(Mf),cf),Ff=zr.forwardRef(function(e,t){return zr.createElement(df,Xp({},e,{ref:t,sideCar:$f}))});Ff.classNames=df.classNames;var Hf=r({Arrow:()=>am,Content:()=>Qg,Group:()=>Zg,Icon:()=>Jg,Item:()=>tm,ItemIndicator:()=>rm,ItemText:()=>nm,Label:()=>em,Portal:()=>Yg,Root:()=>Kg,ScrollDownButton:()=>im,ScrollUpButton:()=>om,Select:()=>eg,SelectArrow:()=>Ug,SelectContent:()=>cg,SelectGroup:()=>Eg,SelectIcon:()=>ig,SelectItem:()=>Rg,SelectItemIndicator:()=>Ng,SelectItemText:()=>Tg,SelectLabel:()=>kg,SelectPortal:()=>sg,SelectScrollDownButton:()=>Mg,SelectScrollUpButton:()=>Ag,SelectSeparator:()=>Fg,SelectTrigger:()=>ng,SelectValue:()=>og,SelectViewport:()=>bg,Separator:()=>sm,Trigger:()=>Wg,Value:()=>Gg,Viewport:()=>Xg,createSelectScope:()=>Gf}),Uf=[" ","Enter","ArrowUp","ArrowDown"],qf=[" ","Enter"],Bf="Select",[zf,Vf,Kf]=ud(Bf),[Wf,Gf]=rd(Bf,[Kf,_p]),Jf=_p(),[Yf,Qf]=Wf(Bf),[Xf,Zf]=Wf(Bf),eg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:h,required:p,form:f}=e,g=Jf(t),[m,v]=zr.useState(null),[y,b]=zr.useState(null),[w,_]=zr.useState(!1),x=gd(l),[E,S]=Bp({prop:r,defaultProp:o??!1,onChange:i,caller:Bf}),[k,O]=Bp({prop:s,defaultProp:a,onChange:c,caller:Bf}),C=zr.useRef(null),P=!m||(f||!!m.closest("form")),[R,L]=zr.useState(new Set),T=Array.from(R).map(e=>e.props.value).join(";");return(0,tu.jsx)(Mp,{...g,children:(0,tu.jsxs)(Yf,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:_,contentId:qd(),value:k,onValueChange:O,open:E,onOpenChange:S,dir:x,triggerPointerDownPosRef:C,disabled:h,children:[(0,tu.jsx)(zf.Provider,{scope:t,children:(0,tu.jsx)(Xf,{scope:e.__scopeSelect,onNativeOptionAdd:zr.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:zr.useCallback(e=>{L(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,tu.jsxs)(qg,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>O(e.target.value),disabled:h,form:f,children:[void 0===k?(0,tu.jsx)("option",{value:""}):null,Array.from(R)]},T):null]})})};eg.displayName=Bf;var tg="SelectTrigger",ng=zr.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Jf(n),s=Qf(tg,n),a=s.disabled||r,c=Uu(t,s.onTriggerChange),l=Vf(n),u=zr.useRef("touch"),[d,h,p]=zg(e=>{const t=l().filter(e=>!e.disabled),n=Vg(t,e,t.find(e=>e.value===s.value));void 0!==n&&s.onValueChange(n.value)}),f=e=>{a||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,tu.jsx)($p,{asChild:!0,...i,children:(0,tu.jsx)(md.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Bg(s.value)?"":void 0,...o,ref:c,onClick:nd(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)}),onPointerDown:nd(o.onPointerDown,e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:nd(o.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),t&&" "===e.key||Uf.includes(e.key)&&(f(),e.preventDefault())})})})});ng.displayName=tg;var rg="SelectValue",og=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,c=Qf(rg,n),{onValueNodeHasChildrenChange:l}=c,u=void 0!==i,d=Uu(t,c.onValueNodeChange);return Fd(()=>{l(u)},[l,u]),(0,tu.jsx)(md.span,{...a,ref:d,style:{pointerEvents:"none"},children:Bg(c.value)?(0,tu.jsx)(tu.Fragment,{children:s}):i})});og.displayName=rg;var ig=zr.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,tu.jsx)(md.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ig.displayName="SelectIcon";var sg=e=>(0,tu.jsx)(Up,{asChild:!0,...e});sg.displayName="SelectPortal";var ag="SelectContent",cg=zr.forwardRef((e,t)=>{const n=Qf(ag,e.__scopeSelect),[r,o]=zr.useState();if(Fd(()=>{o(new DocumentFragment)},[]),!n.open){const t=r;return t?Wc.createPortal((0,tu.jsx)(ug,{scope:e.__scopeSelect,children:(0,tu.jsx)(zf.Slot,{scope:e.__scopeSelect,children:(0,tu.jsx)("div",{children:e.children})})}),t):null}return(0,tu.jsx)(pg,{...e,ref:t})});cg.displayName=ag;var lg=10,[ug,dg]=Wf(ag),hg=id("SelectContent.RemoveScroll"),pg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m,...v}=e,y=Qf(ag,n),[b,w]=zr.useState(null),[_,x]=zr.useState(null),E=Uu(t,e=>w(e)),[S,k]=zr.useState(null),[O,C]=zr.useState(null),P=Vf(n),[R,L]=zr.useState(!1),T=zr.useRef(!1);zr.useEffect(()=>{if(b)return Qp(b)},[b]),Cd();const D=zr.useCallback(e=>{const[t,...n]=P().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(i?.scrollIntoView({block:"nearest"}),i===t&&_&&(_.scrollTop=0),i===r&&_&&(_.scrollTop=_.scrollHeight),i?.focus(),document.activeElement!==o)return}},[P,_]),N=zr.useCallback(()=>D([S,b]),[D,S,b]);zr.useEffect(()=>{R&&N()},[R,N]);const{onOpenChange:j,triggerPointerDownPosRef:A}=y;zr.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(A.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(A.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||j(!1),document.removeEventListener("pointermove",t),A.current=null};return null!==A.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,j,A]),zr.useEffect(()=>{const e=()=>j(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[j]);const[I,M]=zg(e=>{const t=P().filter(e=>!e.disabled),n=Vg(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),$=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&(k(e),r&&(T.current=!0))},[y.value]),F=zr.useCallback(()=>b?.focus(),[b]),H=zr.useCallback((e,t,n)=>{const r=!T.current&&!n;(void 0!==y.value&&y.value===t||r)&&C(e)},[y.value]),U="popper"===r?gg:fg,q=U===gg?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:g,avoidCollisions:m}:{};return(0,tu.jsx)(ug,{scope:n,content:b,viewport:_,onViewportChange:x,itemRefCallback:$,selectedItem:S,onItemLeave:F,itemTextRefCallback:H,focusSelectedItem:N,selectedItemText:O,position:r,isPositioned:R,searchRef:I,children:(0,tu.jsx)(Ff,{as:hg,allowPinchZoom:!0,children:(0,tu.jsx)(Dd,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:nd(o,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,tu.jsx)(Ed,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,tu.jsx)(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...q,onPlaced:()=>L(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:nd(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||M(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});pg.displayName="SelectContentImpl";var fg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Qf(ag,n),s=dg(ag,n),[a,c]=zr.useState(null),[l,u]=zr.useState(null),d=Uu(t,e=>u(e)),h=Vf(n),p=zr.useRef(!1),f=zr.useRef(!0),{viewport:g,selectedItem:m,selectedItemText:v,focusSelectedItem:y}=s,b=zr.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&g&&m&&v){const e=i.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=v.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,s=e.left-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-lg,d=td(i,[lg,Math.max(lg,u-l)]);a.style.minWidth=c+"px",a.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,s=window.innerWidth-e.right-i,c=e.width+s,l=Math.max(c,t.width),u=window.innerWidth-lg,d=td(i,[lg,Math.max(lg,u-l)]);a.style.minWidth=c+"px",a.style.right=d+"px"}const s=h(),c=window.innerHeight-2*lg,u=g.scrollHeight,d=window.getComputedStyle(l),f=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=f+y+u+parseInt(d.paddingBottom,10)+b,_=Math.min(5*m.offsetHeight,w),x=window.getComputedStyle(g),E=parseInt(x.paddingTop,10),S=parseInt(x.paddingBottom,10),k=e.top+e.height/2-lg,O=c-k,C=m.offsetHeight/2,P=f+y+(m.offsetTop+C),R=w-P;if(P<=k){const e=s.length>0&&m===s[s.length-1].ref.current;a.style.bottom="0px";const t=l.clientHeight-g.offsetTop-g.offsetHeight,n=P+Math.max(O,C+(e?S:0)+t+b);a.style.height=n+"px"}else{const e=s.length>0&&m===s[0].ref.current;a.style.top="0px";const t=Math.max(k,f+g.offsetTop+(e?E:0)+C)+R;a.style.height=t+"px",g.scrollTop=P-k+g.offsetTop}a.style.margin=`${lg}px 0`,a.style.minHeight=_+"px",a.style.maxHeight=c+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,a,l,g,m,v,i.dir,r]);Fd(()=>b(),[b]);const[w,_]=zr.useState();return Fd(()=>{l&&_(window.getComputedStyle(l).zIndex)},[l]),(0,tu.jsx)(mg,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:zr.useCallback(e=>{e&&!0===f.current&&(b(),y?.(),f.current=!1)},[b,y]),children:(0,tu.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,tu.jsx)(md.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});fg.displayName="SelectItemAlignedPosition";var gg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=lg,...i}=e,s=Jf(n);return(0,tu.jsx)(Fp,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gg.displayName="SelectPopperPosition";var[mg,vg]=Wf(ag,{}),yg="SelectViewport",bg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=dg(yg,n),s=vg(yg,n),a=Uu(t,i.onViewportChange),c=zr.useRef(0);return(0,tu.jsxs)(tu.Fragment,{children:[(0,tu.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,tu.jsx)(zf.Slot,{scope:n,children:(0,tu.jsx)(md.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:nd(o.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*lg,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(o,i);if(s<r){const o=s+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});bg.displayName=yg;var wg="SelectGroup",[_g,xg]=Wf(wg),Eg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qd();return(0,tu.jsx)(_g,{scope:n,id:o,children:(0,tu.jsx)(md.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Eg.displayName=wg;var Sg="SelectLabel",kg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xg(Sg,n);return(0,tu.jsx)(md.div,{id:o.id,...r,ref:t})});kg.displayName=Sg;var Og="SelectItem",[Cg,Pg]=Wf(Og),Rg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=Qf(Og,n),c=dg(Og,n),l=a.value===r,[u,d]=zr.useState(i??""),[h,p]=zr.useState(!1),f=Uu(t,e=>c.itemRefCallback?.(e,r,o)),g=qd(),m=zr.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,tu.jsx)(Cg,{scope:n,value:r,disabled:o,textId:g,isSelected:l,onItemTextChange:zr.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,tu.jsx)(zf.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:(0,tu.jsx)(md.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:f,onFocus:nd(s.onFocus,()=>p(!0)),onBlur:nd(s.onBlur,()=>p(!1)),onClick:nd(s.onClick,()=>{"mouse"!==m.current&&v()}),onPointerUp:nd(s.onPointerUp,()=>{"mouse"===m.current&&v()}),onPointerDown:nd(s.onPointerDown,e=>{m.current=e.pointerType}),onPointerMove:nd(s.onPointerMove,e=>{m.current=e.pointerType,o?c.onItemLeave?.():"mouse"===m.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:nd(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:nd(s.onKeyDown,e=>{""!==c.searchRef?.current&&" "===e.key||(qf.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});Rg.displayName=Og;var Lg="SelectItemText",Tg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Qf(Lg,n),a=dg(Lg,n),c=Pg(Lg,n),l=Zf(Lg,n),[u,d]=zr.useState(null),h=Uu(t,e=>d(e),c.onItemTextChange,e=>a.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,f=zr.useMemo(()=>(0,tu.jsx)("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:m}=l;return Fd(()=>(g(f),()=>m(f)),[g,m,f]),(0,tu.jsxs)(tu.Fragment,{children:[(0,tu.jsx)(md.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Wc.createPortal(i.children,s.valueNode):null]})});Tg.displayName=Lg;var Dg="SelectItemIndicator",Ng=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Pg(Dg,n).isSelected?(0,tu.jsx)(md.span,{"aria-hidden":!0,...r,ref:t}):null});Ng.displayName=Dg;var jg="SelectScrollUpButton",Ag=zr.forwardRef((e,t)=>{const n=dg(jg,e.__scopeSelect),r=vg(jg,e.__scopeSelect),[o,i]=zr.useState(!1),s=Uu(t,r.onScrollButtonChange);return Fd(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,tu.jsx)($g,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Ag.displayName=jg;var Ig="SelectScrollDownButton",Mg=zr.forwardRef((e,t)=>{const n=dg(Ig,e.__scopeSelect),r=vg(Ig,e.__scopeSelect),[o,i]=zr.useState(!1),s=Uu(t,r.onScrollButtonChange);return Fd(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,tu.jsx)($g,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Mg.displayName=Ig;var $g=zr.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=dg("SelectScrollButton",n),s=zr.useRef(null),a=Vf(n),c=zr.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return zr.useEffect(()=>()=>c(),[c]),Fd(()=>{a().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),(0,tu.jsx)(md.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:nd(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:nd(o.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:nd(o.onPointerLeave,()=>{c()})})}),Fg=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,tu.jsx)(md.div,{"aria-hidden":!0,...r,ref:t})});Fg.displayName="SelectSeparator";var Hg="SelectArrow",Ug=zr.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Jf(n),i=Qf(Hg,n),s=dg(Hg,n);return i.open&&"popper"===s.position?(0,tu.jsx)(Hp,{...o,...r,ref:t}):null});Ug.displayName=Hg;var qg=zr.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=zr.useRef(null),i=Uu(r,o),s=function(e){const t=zr.useRef({value:e,previous:e});return zr.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return zr.useEffect(()=>{const e=o.current;if(!e)return;const n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value").set;if(s!==t&&r){const n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,tu.jsx)(md.select,{...n,style:{...zp,...n.style},ref:i,defaultValue:t})});function Bg(e){return""===e||void 0===e}function zg(e){const t=vd(e),n=zr.useRef(""),r=zr.useRef(0),o=zr.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=zr.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return zr.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Vg(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map((e,t)=>s[(a+t)%s.length]));var s,a;1===r.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==n?c:void 0}qg.displayName="SelectBubbleInput";var Kg=eg,Wg=ng,Gg=og,Jg=ig,Yg=sg,Qg=cg,Xg=bg,Zg=Eg,em=kg,tm=Rg,nm=Tg,rm=Ng,om=Ag,im=Mg,sm=Fg,am=Ug,cm=e=>zr.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_2062)"},zr.createElement("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"}))),lm=e=>zr.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},zr.createElement("g",{clipPath:"url(#clip0_17_4631)"},zr.createElement("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"}))),um=({size:e="medium",children:t,...n})=>(0,tu.jsxs)(Wg,{className:"\n inline-flex items-center justify-between flex-1\n bg-ll-background rounded-sm border\n py-1 pr-2 pl-3 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p data-[size=medium]:h-8\n data-[size=large]:text-ll-font-size-h6 data-[size=large]:h-10\n","data-size":e,...n,children:[t,(0,tu.jsx)(ig,{children:(0,tu.jsx)(Mu,{SVGElement:cm,fill:Cu["--ll-color-on-background-variant1"]})})]}),dm=({size:e="medium",children:t,...n})=>(0,tu.jsx)(Qg,{className:"\n overflow-hidden bg-ll-background rounded-sm shadow-md\n z-10 min-w-[120px]\n data-[size=medium]:text-ll-font-size-p\n data-[size=large]:text-ll-font-size-h6\n","data-size":e,...n,children:(0,tu.jsx)(Xg,{className:"font-inherit p-0",children:t})}),hm=({variant:e="dark",children:t,...n})=>(0,tu.jsxs)(tm,{className:'\n font-sans font-inherit py-1 pr-8 pl-6 outline-none\n relative rounded-sm cursor-default text-ll-on-surface-variant1\n\n data-[highlighted]:[&:not([data-variant="light"])]:bg-ll-primary\n data-[highlighted]:[&:not([data-variant="light"])]:text-ll-on-primary\n\n // Special color between now and design system\n data-[highlighted]:[&:not([data-variant="dark"])]:bg-[#EBF5F7]\n data-[highlighted]:[&:not([data-variant="dark"])]:text-ll-on-surface\n ',"data-variant":e,...n,children:[(0,tu.jsx)(nm,{children:t}),(0,tu.jsx)(rm,{className:"\n absolute left-0 bottom-0\n inline-flex justify-center items-center\n h-full w-6\n",children:(0,tu.jsx)(Mu,{SVGElement:lm,fill:"currentColor",height:12,width:12})})]}),{Root:pm}=Hf;var fm=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=zr.useState(),r=zr.useRef(null),o=zr.useRef(e),i=zr.useRef("none"),[s,a]=function(e,t){return zr.useReducer((e,n)=>t[e][n]??e,e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return zr.useEffect(()=>{const e=gm(r.current);i.current="mounted"===s?e:"none"},[s]),Fd(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=gm(t);a(e?"MOUNT":"none"===s||"none"===t?.display?"UNMOUNT":n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Fd(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=i=>{const s=gm(r.current).includes(i.animationName);if(i.target===t&&s&&(a("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(i.current=gm(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:zr.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):zr.Children.only(n),i=Uu(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(o));return"function"==typeof n||r.isPresent?zr.cloneElement(o,{ref:i}):null};function gm(e){return e?.animationName||"none"}fm.displayName="Presence";var mm=r({Anchor:()=>Bm,Arrow:()=>Gm,Close:()=>Wm,Content:()=>Km,Popover:()=>Em,PopoverAnchor:()=>km,PopoverArrow:()=>Hm,PopoverClose:()=>Fm,PopoverContent:()=>Nm,PopoverPortal:()=>Tm,PopoverTrigger:()=>Cm,Portal:()=>Vm,Root:()=>qm,Trigger:()=>zm,createPopoverScope:()=>bm}),vm="Popover",[ym,bm]=rd(vm,[_p]),wm=_p(),[_m,xm]=ym(vm),Em=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=wm(t),c=zr.useRef(null),[l,u]=zr.useState(!1),[d,h]=Bp({prop:r,defaultProp:o??!1,onChange:i,caller:vm});return(0,tu.jsx)(Mp,{...a,children:(0,tu.jsx)(_m,{scope:t,contentId:qd(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:zr.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:l,onCustomAnchorAdd:zr.useCallback(()=>u(!0),[]),onCustomAnchorRemove:zr.useCallback(()=>u(!1),[]),modal:s,children:n})})};Em.displayName=vm;var Sm="PopoverAnchor",km=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xm(Sm,n),i=wm(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return zr.useEffect(()=>(s(),()=>a()),[s,a]),(0,tu.jsx)($p,{...i,...r,ref:t})});km.displayName=Sm;var Om="PopoverTrigger",Cm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xm(Om,n),i=wm(n),s=Uu(t,o.triggerRef),a=(0,tu.jsx)(md.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Um(o.open),...r,ref:s,onClick:nd(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,tu.jsx)($p,{asChild:!0,...i,children:a})});Cm.displayName=Om;var Pm="PopoverPortal",[Rm,Lm]=ym(Pm,{forceMount:void 0}),Tm=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=xm(Pm,t);return(0,tu.jsx)(Rm,{scope:t,forceMount:n,children:(0,tu.jsx)(fm,{present:n||i.open,children:(0,tu.jsx)(Up,{asChild:!0,container:o,children:r})})})};Tm.displayName=Pm;var Dm="PopoverContent",Nm=zr.forwardRef((e,t)=>{const n=Lm(Dm,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=xm(Dm,e.__scopePopover);return(0,tu.jsx)(fm,{present:r||i.open,children:i.modal?(0,tu.jsx)(Am,{...o,ref:t}):(0,tu.jsx)(Im,{...o,ref:t})})});Nm.displayName=Dm;var jm=id("PopoverContent.RemoveScroll"),Am=zr.forwardRef((e,t)=>{const n=xm(Dm,e.__scopePopover),r=zr.useRef(null),o=Uu(t,r),i=zr.useRef(!1);return zr.useEffect(()=>{const e=r.current;if(e)return Qp(e)},[]),(0,tu.jsx)(Ff,{as:jm,allowPinchZoom:!0,children:(0,tu.jsx)(Mm,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nd(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:nd(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:nd(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Im=zr.forwardRef((e,t)=>{const n=xm(Dm,e.__scopePopover),r=zr.useRef(!1),o=zr.useRef(!1);return(0,tu.jsx)(Mm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Mm=zr.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,h=xm(Dm,n),p=wm(n);return Cd(),(0,tu.jsx)(Dd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,tu.jsx)(Ed,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:(0,tu.jsx)(Fp,{"data-state":Um(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$m="PopoverClose",Fm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xm($m,n);return(0,tu.jsx)(md.button,{type:"button",...r,ref:t,onClick:nd(e.onClick,()=>o.onOpenChange(!1))})});Fm.displayName=$m;var Hm=zr.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wm(n);return(0,tu.jsx)(Hp,{...o,...r,ref:t})});function Um(e){return e?"open":"closed"}Hm.displayName="PopoverArrow";var qm=Em,Bm=km,zm=Cm,Vm=Tm,Km=Nm,Wm=Fm,Gm=Hm,{Root:Jm,Portal:Ym}=mm,Qm=zr.createContext({}),Xm=()=>(0,zr.useContext)(Qm),Zm=()=>{const{data:e,colors:t,icon:n}=Xm(),r=e.reduce((e,t)=>e+t,0),o=(0,zr.useMemo)(()=>e.map((n,o)=>{const i=n/r*100>50,s=e.slice(0,o).reduce((e,t)=>e+t,0)/r*360,a=n/r*360,c=i?"-100%":"0%",l=i?"200%":"100%";return(0,tu.jsx)("div",{className:"ll-donut-segment",style:{"--ll-chart-donut-segment-clip-path":`polygon(${c} ${c}, ${l} ${c}, ${l} ${l}, ${c} ${l})`,"--ll-chart-donut-segment-bg":t?.[o]??"#000","--ll-chart-donut-segment-degrees":s,"--ll-chart-donut-segment-before-degrees":a,"--ll-chart-donut-segment-opacity":i?1:0}},`segment-${o}`)}),[e,t]);return(0,tu.jsxs)("div",{className:"\n relative aspect-square rounded-full flex items-center justify-center overflow-hidden\n",children:[o,(0,tu.jsx)("div",{className:"\n bg-ll-surface rounded-full w-[70%] h-[70%]\n flex items-center justify-center absolute\n",children:(0,tu.jsx)("div",{className:"\n flex items-center justify-center\n w-full h-full\n\n [&>svg]:w-1/2\n [&>svg]:w-1/2\n [&>svg>path]:fill-ll-primary\n",children:n})})]})},ev=()=>{const{labels:e,colors:t}=Xm();return(0,tu.jsx)("ul",{className:"list-none p-0",children:e.map((e,n)=>(0,tu.jsxs)("li",{className:"flex items-center",children:[(0,tu.jsx)("div",{className:"w-3 h-3 rounded mr-2.5",style:{backgroundColor:t?.[n]||"#000"}}),(0,tu.jsx)($u,{noMargin:!0,lineClamp:1,variant:"caption1",children:e})]},e))})},tv=()=>{const{title:e,labels:t,data:n,unit:r}=Xm(),o=(0,zr.useMemo)(()=>{if(n)return[...n].sort((e,t)=>e-t).reverse()[0]},[n]),i=(0,zr.useMemo)(()=>r&&o?10*Math.ceil(o/10):100,[o,r]),s=(0,zr.useMemo)(()=>n.map((e,n)=>({label:t[n],value:e,width:Math.round(100*e/i)})),[i,n,t]);return(0,tu.jsxs)("div",{className:"\n h-full w-full overflow-hidden bg-ll-surface\n rounded-md p-3 flex flex-col\n",children:[(0,tu.jsx)("div",{className:"h-[6%] min-h-5",children:(0,tu.jsx)($u,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:`${e} (${r})`})}),(0,tu.jsx)("div",{className:"grow mx-0 my-2 grid gap-y-1",children:s.map(e=>(0,tu.jsxs)("div",{className:"\n grid grid-rows-1 grid-cols-[140px_calc(100%-165px)]\n gap-y-1 items-center\n",children:["0"!==e.label&&(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",children:e.label}),(0,tu.jsxs)("div",{className:"\n relative py-0.5 px-2.5 h-full\n flex justify-start items-center\n",children:[(0,tu.jsx)("div",{className:"\n z-10 flex items-center justify-center\n h-full w-10 absolute top-0\n",style:{left:`${e.width}%`},children:(0,tu.jsxs)($u,{noMargin:!0,align:"center",color:"--ll-color-on-background",variant:"caption2",children:[e.value,r]})}),(0,tu.jsx)("span",{className:"\n bg-ll-primary rounded-r-md inline-block h-full absolute top-0 bottom-0 left-0\n",style:{width:`${e.width}%`}})]})]},e.label))}),(0,tu.jsxs)("div",{className:"\n border-t border-ll-placeholder border-solid\n h-[6%] min-h-3 w-[calc(100%-165px)]\n ml-[140px] grid grid-cols-3\n",children:[(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",color:"--ll-color-on-background",children:"0"}),(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",align:"center",color:"--ll-color-on-background",children:`${i/2}${r}`}),(0,tu.jsx)($u,{noMargin:!0,variant:"caption2",align:"right",color:"--ll-color-on-background",children:`${i}${r}`})]})]})},nv=["rgb(0, 188,202)","rgb(208,232,233)","rgb(243,209,130)","rgb(255,116,16)","rgb(52,65,181)","rgb(151,184,126)","rgb(0,132,145)","rgb(62,49,91)"],rv=e=>(0,tu.jsx)(Qm.Provider,{value:{...e,colors:e.colors??nv},children:e.children}),ov=({title:e,labels:t,data:n,icon:r})=>(0,tu.jsxs)("div",{className:"\n w-full h-full\n overflow-hidden\n bg-ll-surface\n font-sans\n rounded-md\n p-3\n",children:[(0,tu.jsx)("div",{className:"\n mb-2\n",children:(0,tu.jsx)($u,{variant:"p",noMargin:!0,weight:"--ll-font-weight-bold",children:e})}),(0,tu.jsx)(rv,{data:n,labels:t,icon:r,children:(0,tu.jsxs)("div",{className:"\n items-center\n h-[80%]\n overflow-hidden\n my-0 mx-auto\n w-[90%] max-w-[380px] \n flex flex-row\n justify-between\n",children:[(0,tu.jsx)("div",{className:"\n w-[35%] md:w-[45%]\n",children:(0,tu.jsx)(Zm,{})}),(0,tu.jsx)(tu.Fragment,{children:(0,tu.jsx)(ev,{})})]})})]}),iv=({error:e})=>(0,tu.jsxs)("div",{className:"\n w-full h-full flex items-center justify-center flex-col\n","data-testid":"error-fallback",children:[(0,tu.jsx)($u,{variant:"h4",children:"An error occurred"}),(0,tu.jsx)($u,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]}),sv=Object.create,av=Object.defineProperty,cv=Object.getOwnPropertyDescriptor,lv=Object.getOwnPropertyNames,uv=Object.getPrototypeOf,dv=Object.prototype.hasOwnProperty,hv=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),pv=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,i=lv(t),s=0,a=i.length;s<a;s++)o=i[s],!dv.call(e,o)&&o!==n&&av(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(r=cv(t,o))||r.enumerable});return e},fv=(e,t,n)=>(n=null==e?{}:sv(uv(e)),pv(!t&&e&&e.__esModule?n:av(n,"default",{value:e,enumerable:!0}),e)),gv="CONNECT",mv=function(e){return e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e.RESIZE="resize",e}({}),vv=new(fv(hv((e,t)=>{var n=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,a=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&s(e,n,t[n]);return e},c=(r,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of n(i))!o.call(r,c)&&c!==s&&e(r,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return r},l=(e,t,n)=>s(e,"symbol"==typeof t?t:t+"",n),u={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>d,default:()=>f});var d=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:d,counter:0},p=class{constructor(e={}){l(this,"counter"),l(this,"debug"),l(this,"dict"),l(this,"version"),l(this,"dictIndex",0),l(this,"dictRange",[]),l(this,"lowerBound",0),l(this,"upperBound",0),l(this,"dictLength",0),l(this,"uuidLength"),l(this,"_digit_first_ascii",48),l(this,"_digit_last_ascii",58),l(this,"_alpha_lower_first_ascii",97),l(this,"_alpha_lower_last_ascii",123),l(this,"_hex_last_ascii",103),l(this,"_alpha_upper_first_ascii",65),l(this,"_alpha_upper_last_ascii",91),l(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),l(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),l(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),l(this,"log",(...e)=>{let t=[...e];t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&typeof console<"u"&&null!==console&&console.log(...t)}),l(this,"_normalizeDictionary",(e,t)=>{let n;if(e&&Array.isArray(e)&&e.length>1)n=e;else{n=[],this.dictIndex=0;let t=`_${e}_dict_ranges`,r=this._dict_ranges[t],o=0;for(let[,e]of Object.entries(r)){let[t,n]=e;o+=Math.abs(n-t)}n=Array(o);let i=0;for(let[,e]of Object.entries(r)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];let t=this.lowerBound<=this.upperBound,r=this.lowerBound,o=this.upperBound;if(t)for(let e=r;e<o;e++)n[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=r;e>o;e--)n[i++]=String.fromCharCode(e),this.dictIndex=e}n.length=i}if(t){for(let e=n.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[n[e],n[t]]=[n[t],n[e]]}}return n}),l(this,"setDictionary",(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),l(this,"seq",()=>this.sequentialUUID()),l(this,"sequentialUUID",()=>{let e=this.dictLength,t=this.dict,n=this.counter,r=[];do{let o=n%e;n=Math.trunc(n/e),r.push(t[o])}while(0!==n);let o=r.join("");return this.counter+=1,o}),l(this,"rnd",(e=this.uuidLength||d)=>this.randomUUID(e)),l(this,"randomUUID",(e=this.uuidLength||d)=>{if(null==e||e<1)throw Error("Invalid UUID Length Provided");let t=Array(e),n=this.dictLength,r=this.dict;for(let o=0;o<e;o++)t[o]=r[Math.floor(Math.random()*n)];return t.join("")}),l(this,"fmt",(e,t)=>this.formattedUUID(e,t)),l(this,"formattedUUID",(e,t)=>{let n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let r=e.slice(0,2),o=Number.parseInt(e.slice(2),10);return"$s"===r?n[r]().padStart(o,"0"):"$t"===r&&t?n[r](o,t):n[r](o)})}),l(this,"availableUUIDs",(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),l(this,"_collisionCache",new Map),l(this,"approxMaxBeforeCollision",(e=this.availableUUIDs(this.uuidLength))=>{let t=e,n=this._collisionCache.get(t);if(void 0!==n)return n;let r=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,r),r}),l(this,"collisionProbability",(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),l(this,"uniqueness",(e=this.availableUUIDs(this.uuidLength))=>{let t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),l(this,"getVersion",()=>this.version),l(this,"stamp",(e,t)=>{let n=Math.floor((t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return n;if("number"!=typeof e||e<10)throw Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));let r=e-9,o=Math.round(Math.random()*(r>15?15:r)),i=this.randomUUID(r);return`${i.substring(0,o)}${n}${i.substring(o)}${o.toString(16)}`}),l(this,"parseStamp",(e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw Error("Cannot extract date from a formated UUID with no timestamp in the format");let n=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let t={$r:e=>[...Array(e)].map(()=>"r").join(""),$s:e=>[...Array(e)].map(()=>"s").join(""),$t:e=>[...Array(e)].map(()=>"t").join("")},n=e.slice(0,2),r=Number.parseInt(e.slice(2),10);return t[n](r)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,n,r)=>e.substring(n.length,n.length+r.length)):e;if(8===n.length)return new Date(1e3*Number.parseInt(n,16));if(n.length<10)throw Error("Stamp length invalid");let r=Number.parseInt(n.substring(n.length-1),16);return new Date(1e3*Number.parseInt(n.substring(r,r+8),16))}),l(this,"setCounter",e=>{this.counter=e}),l(this,"validate",(e,t)=>{let n=t?this._normalizeDictionary(t):this.dict;return e.split("").every(e=>n.includes(e))});let t=a(a({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";let{dictionary:n,shuffle:r,length:o,counter:i}=t;this.uuidLength=o,this.setDictionary(n,r),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};l(p,"default",p);var f=p;return(t=>c(e({},"__esModule",{value:!0}),t))(u)})();void 0!==t&&(t.exports=n.default),typeof window<"u"&&(n=n.default)})(),1).default)({length:10}),yv=class e{constructor(e,t){this.onMessageHandlers=[],this.message=(e,t,n)=>this.crossOrigin?this.postMessage(e,t,n):this.customEventMessage(e,t,n),this.channelId=e??"DEFAULT",this.channelNodeId=`channel-node-${vv.rnd()}`,this.crossOrigin=t,this.connection=new Promise(e=>{this.resolveConnection=e}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(e=>{this.resolveConnection=e})}onMessage(e){this.onMessageHandlers.push(e)}removeMessageHandler(e){let t=this.onMessageHandlers.findIndex(t=>t===e);this.onMessageHandlers.splice(t,1)}customEventMessage(e,t,n){let r=new CustomEvent(this.channelId,{detail:{eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t}});window.dispatchEvent(r)}postMessage(e,t,n){this.crossOrigin?.targetOrigin?this.crossOrigin?.window?.postMessage({eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:t},this.crossOrigin?.targetOrigin):console.error("A target origin was not specified.")}async eventRequest(e,t){let n=vv.rnd();return new Promise(r=>{let o=e=>{let{eventId:t}=e;n===t&&(this.removeMessageHandler(o),r(e))};this.onMessage(o),this.message(e,t,n)})}async waitForEvent(e){return new Promise(t=>{let n=r=>{let{name:o}=r;e===o&&(this.removeMessageHandler(n),t(r))};this.onMessage(n)})}handleMessage(t){let n;if(e.isCustomEvent(t))n=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&"*"!==this.crossOrigin?.targetOrigin)return;n=t.data}let{channelId:r,channelNodeId:o}=n;this.channelId===r&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(e=>{e(n)})}static isCustomEvent(e){return void 0!==e.detail}},bv=class extends yv{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(gv).then(e=>{this.resolveConnection(e)}),this.connection}},wv=o((e,t)=>{var n=1/0,r=17976931348623157e292,o=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,d=Object.prototype.toString;function h(e,t){var h;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return o;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?o:+e}(e),e===n||e===-1/0?(e<0?-1:1)*r:e==e?e:0):0===e?e:0}(e),h=t%1;return t==t?h?t-h:t:0}(e),function(){return--e>0&&(h=t.apply(this,arguments)),e<=1&&(t=void 0),h}}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return h(2,e)}}),_v=e(wv(),1),xv={},Ev={zoom:15,pitch:0,bearing:0,cooperativeGestures:!0,mapProvider:{name:"maptiler"},hideAttribution:!1,showSchoolRatings:!1},Sv={},kv={},Ov={hideAttribution:!1},Cv={},Pv={},Rv={hideAttribution:!1},Lv={buyerColor:"#21BCCC",neutralColor:"#BEBEBE",sellerColor:"#FDC033",decreaseColor:"#EF4444",increaseColor:"#21BCCC"},Tv={locale:"en"},Dv={"local-content":{globalOptions:Tv,options:{mapProvider:{name:"maptiler"},zoom:14,pitch:0,bearing:0,cooperativeGestures:!0,distanceUnit:"metric",hideScores:!1,showSchoolRatings:!1,scoresMenu:{defaultOpen:!0,title:!0,categories:{amenities:{hide:!1,order:1,colors:{background:"#FFF2C3",fill:"#BF8500"},scores:{shopping:{hide:!1,hideScore:!1,order:1},groceries:{hide:!1,hideScore:!1,order:2},restaurants:{hide:!1,hideScore:!1,order:3},cafes:{hide:!1,hideScore:!1,order:4}}},education:{hide:!1,order:2,colors:{background:"#E4EFFF",fill:"#003548"},scores:{daycares:{hide:!1,hideScore:!1,order:1},primary_schools:{hide:!1,hideScore:!1,order:2},high_schools:{hide:!1,hideScore:!1,order:3}}},transport:{hide:!1,order:3,colors:{background:"#E9F8FA",fill:"#008491"},scores:{transit_friendly:{hide:!1,hideScore:!1,order:1},car_friendly:{hide:!1,hideScore:!1,order:2},pedestrian_friendly:{hide:!1,hideScore:!1,order:3},cycling_friendly:{hide:!1,hideScore:!1,order:4}}},character:{hide:!1,order:4,colors:{background:"#FFDAAC",fill:"#FF7044"},scores:{nightlife:{hide:!1,hideScore:!1,order:1},vibrant:{hide:!1,hideScore:!1,order:2},historic:{hide:!1,hideScore:!1,order:3},quiet:{hide:!1,hideScore:!1,order:4}}},nature:{hide:!1,order:5,colors:{background:"#D8F4D9",fill:"#0F766E"},scores:{parks:{hide:!1,hideScore:!1,order:1},greenery:{hide:!1,hideScore:!1,order:2}}},health:{hide:!1,order:6,colors:{background:"#FFE7FE",fill:"#FF84D6"},scores:{wellness:{hide:!1,hideScore:!1,order:1}}}}}}},"local-demographics":{globalOptions:Tv,options:xv},"neighborhood-map":{globalOptions:Tv,options:Ev},"neighborhood-hero":{globalOptions:Tv,options:Sv},"neighborhood-characteristics":{globalOptions:Tv,options:kv},"neighborhood-highlights":{globalOptions:Tv,options:Cv},"neighborhood-demographics":{globalOptions:Tv,options:Ov},"neighborhood-property-value-drivers":{globalOptions:Tv,options:Pv},"neighborhood-match":{globalOptions:Tv,options:Rv},"neighborhood-market-trends":{globalOptions:Tv,options:{hideAttribution:!1}},"neighborhood-schools":{globalOptions:Tv,options:{hideAttribution:!1,showSchoolRatings:!1}},"neighborhood-showcase":{globalOptions:Tv,options:{}},"neighborhood-featured":{globalOptions:Tv,options:{}},"lead-capture":{globalOptions:Tv,options:{}},demographics:{globalOptions:Tv,options:xv},"local-neighborhood-map":{globalOptions:Tv,options:Ev},"local-neighborhood-hero":{globalOptions:Tv,options:Sv},"local-neighborhood-characteristics":{globalOptions:Tv,options:kv},"local-neighborhood-highlights":{globalOptions:Tv,options:Cv},"local-neighborhood-demographics":{globalOptions:Tv,options:Ov},"local-neighborhood-property-value-drivers":{globalOptions:Tv,options:Pv},"local-neighborhood-match":{globalOptions:Tv,options:Rv}},Nv=class{constructor(){this.data=new Map}getItem(e){return this.data.get(e)??null}setItem(e,t){this.data.set(e,t)}removeItem(e){this.data.delete(e)}clear(){this.data.clear()}key(e){return Array.from(this.data.keys())[e]??null}get length(){return this.data.size}};var jv=class{constructor(e){this.group=e,this.storage=function(){try{return"undefined"!=typeof window&&window.localStorage?window.localStorage:new Nv}catch{return new Nv}}()}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.storage.getItem(this.group?`${this.group}.${e}`:e)}setItem(e,t){this.storage.setItem(this.group?`${this.group}.${e}`:e,t)}removeItem(e){this.storage.removeItem(this.group?`${this.group}.${e}`:e)}},Av=(new jv,new class{constructor(){this.storageLocation="suggestion_history",this.history=[],this.storage=new jv("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(t=>t.locationId!==e.locationId)}}),Iv=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function Mv(e,...t){if(!t.length)return e;const n=t.shift();return Iv(e)&&Iv(n)&&Object.keys(n).forEach(t=>{Iv(n[t])?(e[t]||Object.assign(e,{[t]:{}}),Mv(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),Mv(e,...t)}var $v=e=>{const t=(0,zr.useRef)(e),n=(0,zr.useRef)(),r=(0,zr.useRef)(!1),o=(0,zr.useRef)(!1),[,i]=(0,zr.useState)(0);r.current&&(o.current=!0),(0,zr.useEffect)(()=>(r.current||(n.current=t.current(),r.current=!0),i(e=>e+1),()=>{o.current&&n.current&&n.current()}),[])},Fv=(e,t)=>{const[n,r]=(0,zr.useState)(e);return(0,zr.useEffect)(()=>{const n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n},Hv=(0,_v.default)(()=>zr.createContext({})),Uv=()=>{const e=zr.useContext(Hv());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e};function qv(e){let t=e.apiKey||"";t.startsWith("V3 ")&&(t=t.slice(3));const n={...e,apiKey:`V3 ${t}`,clientId:t.split(".")[0]};if("string"==typeof e?.options?.lat||"string"==typeof e?.options?.lng){if(n.options||(n.options={}),n.options.lat=Number(e?.options?.lat),n.options.lng=Number(e?.options?.lng),void 0!==e?.options?.marker){let t=!1;"string"==typeof e.options.marker.lat&&(n.options.marker.lat=Number(e.options.marker.lat),t=!0),"string"==typeof e.options.marker.lng&&(n.options.marker.lng=Number(e.options.marker.lng),t=!0),t&&console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options.marker. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}console.warn("[Local Logic SDK] Converted lat/lng from string to number in sdkState.options. Please ensure lat/lng are always numbers. This may break your SDK implementation in the future.")}return n}var Bv=zr.memo(({children:e})=>{const t=Hv(),n=(0,Gc.useSearch)(),r=zr.useRef(n),o=(0,Gc.useLocation)().current.pathname.split("/"),i=Dv[o[o.length-1]],s=zr.useRef(),[a,c]=(0,zr.useState)(!1),[l,u]=(0,zr.useState)(qv(i)),d=Fv(l,500),h=(0,Gc.useNavigate)(),p=e=>{r.current=qv(e),u(qv(e))},f=e=>{e.name===mv.GET_STATE&&s.current?.message(mv.GET_STATE_RESPONSE,r.current,e.eventId),e.name===mv.SET_STATE&&p(e.data)};$v(()=>{const e=new URLSearchParams(window.location.search).get("parentOrigin"),t=new bv(n.channelId,{targetOrigin:e||document.referrer,window:window.parent});s.current=t,t?.onMessage(f),t?.connect().then(e=>{const t=Mv(l,e.data);p(t),c(!0),ra.addBreadCrumb("stateManager","useEffectOnce: Connected to sdks-js",{oldState:l,newState:e.data,mergedState:t})})});const g=e=>{s.current?.message(mv.ON_CHANGE,e),ra.addBreadCrumb("stateManager","onChange",{data:e})};(0,zr.useEffect)(()=>{h({search:()=>d,replace:!0})},[d]),(0,zr.useEffect)(()=>{l.options&&g({type:"options",data:l.options})},[l.options]);const m=(0,zr.useMemo)(()=>({sdkState:l,setSdkState:p,onChange:g,followerNode:s.current}),[l,p,g]);return(0,zr.useEffect)(()=>{if(!a||!l.globalOptions?.locale)return;const e=l.globalOptions?.locale||"en";tc.language!==e&&(ra.addBreadCrumb("stateManager","i18n.changeLanguage",{language:e}),tc.changeLanguage(e))},[l.globalOptions?.locale,a]),a?(0,tu.jsx)(t.Provider,{value:m,children:e}):null});Bv.displayName="StateManagerProvider";var zv=(e,t="",n={})=>(Object.keys(e).forEach(r=>{if(Object.prototype.hasOwnProperty.call(e,r)){const o=t?`${t}.${r}`:r;"object"!=typeof e[r]||null===e[r]||Array.isArray(e[r])?n[`LocalLogic.${o}`]=e[r]:zv(e[r],o,n)}}),{...n}),Vv=({children:e})=>{const{sdkState:t}=Uv();return(0,zr.useEffect)(()=>{ra.setTags(zv(t||{}))},[t.apiKey,t.globalOptions,t.options]),(0,tu.jsx)(tu.Fragment,{children:e})},Kv=({children:e})=>{const{sdkState:t}=Uv(),n=(0,Gc.useRouter)();return(0,tu.jsx)(Ys,{clientSideID:"643eb54728e2fd16ae6e7a15",context:{kind:"organization",key:t.clientId,custom:{locale:t.globalOptions?.locale||"en",sdk:n.state.location.pathname.split("/")[3]}},reactOptions:{sendEventsOnFlagRead:!0},options:{streaming:!0,logger:Os({level:"none"})},children:e})},Wv=new Xl({defaultOptions:{queries:{retry:2,staleTime:1/0}}}),Gv=()=>{return(0,tu.jsx)(tu.Fragment,{children:(0,tu.jsx)(au,{FallbackComponent:iv,onError:(t,n)=>{const r=Vr(t,n);e&&e(t,n,r)},children:(0,tu.jsx)(Ou,{children:(0,tu.jsx)(ou,{client:Wv,children:(0,tu.jsx)(Bv,{children:(0,tu.jsx)(Kv,{children:(0,tu.jsx)(Vv,{children:(0,tu.jsx)(Gc.Outlet,{})})})})})})})});var e};window.addEventListener("DOMContentLoaded",e=>{Jr.createRoot(document.getElementById("root")).render((0,tu.jsx)(zr.StrictMode,{children:(0,tu.jsx)(Gv,{})}))});export{rl as $,Xg as A,Xu as B,rm as C,ig as D,Kg as E,md as F,uu as G,$u as H,gd as I,$l as J,ru as K,ud as L,qd as M,Fd as N,Wg as O,vd as P,il as Q,rd as R,tm as S,Yg as T,Iu as U,Uu as V,Cu as W,El as X,Cl as Y,_l as Z,hm as _,ra as _t,jv as a,xc as at,Qg as b,ct as bt,ov as c,$c as ct,Wm as d,jc as dt,Zc as et,Km as f,Bc as ft,dm as g,Xa as gt,fm as h,Za as ht,Av as i,Tc as it,Bp as j,Gg as k,rv as l,Cc as lt,zm as m,_c as mt,Fv as n,Qc as nt,Lv as o,Sc as ot,qm as p,kc as pt,eu as q,$v as r,Yc as rt,mv as s,Ec as st,Uv as t,Xc as tt,tv as u,Oc as ut,pm as v,Qs as vt,nm as w,Jg as x,um as y,rt as yt,nd as z};
3
+ //# sourceMappingURL=index-_e6zO9FA.js.map