@shopify/hydrogen-react 2025.7.0 → 2025.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/browser-dev/ShopifyProvider.mjs +18 -1
  2. package/dist/browser-dev/ShopifyProvider.mjs.map +1 -1
  3. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs +5 -0
  4. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
  5. package/dist/browser-dev/_virtual/with-selector.production.mjs +5 -0
  6. package/dist/browser-dev/_virtual/with-selector.production.mjs.map +1 -0
  7. package/dist/browser-dev/analytics-schema-custom-storefront-customer-tracking.mjs +4 -3
  8. package/dist/browser-dev/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  9. package/dist/browser-dev/analytics.mjs +4 -5
  10. package/dist/browser-dev/analytics.mjs.map +1 -1
  11. package/dist/browser-dev/cart-hooks.mjs +25 -7
  12. package/dist/browser-dev/cart-hooks.mjs.map +1 -1
  13. package/dist/browser-dev/cookies-utils.mjs +4 -4
  14. package/dist/browser-dev/cookies-utils.mjs.map +1 -1
  15. package/dist/browser-dev/index.mjs +4 -0
  16. package/dist/browser-dev/index.mjs.map +1 -1
  17. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
  18. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
  19. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
  20. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
  21. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
  22. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
  23. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
  24. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
  25. package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs +2 -2
  26. package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  27. package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
  28. package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  29. package/dist/browser-dev/packages/hydrogen-react/package.json.mjs +1 -1
  30. package/dist/browser-dev/tracking-utils.mjs +92 -0
  31. package/dist/browser-dev/tracking-utils.mjs.map +1 -0
  32. package/dist/browser-dev/useShopifyCookies.mjs +96 -9
  33. package/dist/browser-dev/useShopifyCookies.mjs.map +1 -1
  34. package/dist/browser-prod/ShopifyProvider.mjs +18 -1
  35. package/dist/browser-prod/ShopifyProvider.mjs.map +1 -1
  36. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs +5 -0
  37. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
  38. package/dist/browser-prod/_virtual/with-selector.production.mjs +5 -0
  39. package/dist/browser-prod/_virtual/with-selector.production.mjs.map +1 -0
  40. package/dist/browser-prod/analytics-schema-custom-storefront-customer-tracking.mjs +4 -3
  41. package/dist/browser-prod/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  42. package/dist/browser-prod/analytics.mjs +4 -5
  43. package/dist/browser-prod/analytics.mjs.map +1 -1
  44. package/dist/browser-prod/cart-hooks.mjs +25 -7
  45. package/dist/browser-prod/cart-hooks.mjs.map +1 -1
  46. package/dist/browser-prod/cookies-utils.mjs +4 -4
  47. package/dist/browser-prod/cookies-utils.mjs.map +1 -1
  48. package/dist/browser-prod/index.mjs +4 -0
  49. package/dist/browser-prod/index.mjs.map +1 -1
  50. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
  51. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
  52. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
  53. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
  54. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
  55. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
  56. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
  57. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
  58. package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs +2 -2
  59. package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  60. package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
  61. package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  62. package/dist/browser-prod/packages/hydrogen-react/package.json.mjs +1 -1
  63. package/dist/browser-prod/tracking-utils.mjs +92 -0
  64. package/dist/browser-prod/tracking-utils.mjs.map +1 -0
  65. package/dist/browser-prod/useShopifyCookies.mjs +96 -9
  66. package/dist/browser-prod/useShopifyCookies.mjs.map +1 -1
  67. package/dist/node-dev/ShopifyProvider.js +18 -1
  68. package/dist/node-dev/ShopifyProvider.js.map +1 -1
  69. package/dist/node-dev/ShopifyProvider.mjs +18 -1
  70. package/dist/node-dev/ShopifyProvider.mjs.map +1 -1
  71. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js +5 -0
  72. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  73. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs +5 -0
  74. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
  75. package/dist/node-dev/_virtual/with-selector.production.js +5 -0
  76. package/dist/node-dev/_virtual/with-selector.production.js.map +1 -0
  77. package/dist/node-dev/_virtual/with-selector.production.mjs +5 -0
  78. package/dist/node-dev/_virtual/with-selector.production.mjs.map +1 -0
  79. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.js +4 -3
  80. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.js.map +1 -1
  81. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.mjs +4 -3
  82. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  83. package/dist/node-dev/analytics.js +4 -5
  84. package/dist/node-dev/analytics.js.map +1 -1
  85. package/dist/node-dev/analytics.mjs +4 -5
  86. package/dist/node-dev/analytics.mjs.map +1 -1
  87. package/dist/node-dev/cart-hooks.js +24 -6
  88. package/dist/node-dev/cart-hooks.js.map +1 -1
  89. package/dist/node-dev/cart-hooks.mjs +25 -7
  90. package/dist/node-dev/cart-hooks.mjs.map +1 -1
  91. package/dist/node-dev/cookies-utils.js +4 -4
  92. package/dist/node-dev/cookies-utils.js.map +1 -1
  93. package/dist/node-dev/cookies-utils.mjs +4 -4
  94. package/dist/node-dev/cookies-utils.mjs.map +1 -1
  95. package/dist/node-dev/index.js +4 -0
  96. package/dist/node-dev/index.js.map +1 -1
  97. package/dist/node-dev/index.mjs +4 -0
  98. package/dist/node-dev/index.mjs.map +1 -1
  99. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +52 -74
  100. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -1
  101. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
  102. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
  103. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +78 -0
  104. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
  105. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
  106. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
  107. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +54 -111
  108. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
  109. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
  110. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
  111. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +63 -0
  112. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  113. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
  114. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
  115. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js +2 -2
  116. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  117. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs +2 -2
  118. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  119. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js +2 -2
  120. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -1
  121. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
  122. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  123. package/dist/node-dev/packages/hydrogen-react/package.json.js +1 -1
  124. package/dist/node-dev/packages/hydrogen-react/package.json.mjs +1 -1
  125. package/dist/node-dev/tracking-utils.js +92 -0
  126. package/dist/node-dev/tracking-utils.js.map +1 -0
  127. package/dist/node-dev/tracking-utils.mjs +92 -0
  128. package/dist/node-dev/tracking-utils.mjs.map +1 -0
  129. package/dist/node-dev/useShopifyCookies.js +94 -7
  130. package/dist/node-dev/useShopifyCookies.js.map +1 -1
  131. package/dist/node-dev/useShopifyCookies.mjs +96 -9
  132. package/dist/node-dev/useShopifyCookies.mjs.map +1 -1
  133. package/dist/node-prod/ShopifyProvider.js +18 -1
  134. package/dist/node-prod/ShopifyProvider.js.map +1 -1
  135. package/dist/node-prod/ShopifyProvider.mjs +18 -1
  136. package/dist/node-prod/ShopifyProvider.mjs.map +1 -1
  137. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js +5 -0
  138. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  139. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs +5 -0
  140. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
  141. package/dist/node-prod/_virtual/with-selector.production.js +5 -0
  142. package/dist/node-prod/_virtual/with-selector.production.js.map +1 -0
  143. package/dist/node-prod/_virtual/with-selector.production.mjs +5 -0
  144. package/dist/node-prod/_virtual/with-selector.production.mjs.map +1 -0
  145. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.js +4 -3
  146. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.js.map +1 -1
  147. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.mjs +4 -3
  148. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  149. package/dist/node-prod/analytics.js +4 -5
  150. package/dist/node-prod/analytics.js.map +1 -1
  151. package/dist/node-prod/analytics.mjs +4 -5
  152. package/dist/node-prod/analytics.mjs.map +1 -1
  153. package/dist/node-prod/cart-hooks.js +24 -6
  154. package/dist/node-prod/cart-hooks.js.map +1 -1
  155. package/dist/node-prod/cart-hooks.mjs +25 -7
  156. package/dist/node-prod/cart-hooks.mjs.map +1 -1
  157. package/dist/node-prod/cookies-utils.js +4 -4
  158. package/dist/node-prod/cookies-utils.js.map +1 -1
  159. package/dist/node-prod/cookies-utils.mjs +4 -4
  160. package/dist/node-prod/cookies-utils.mjs.map +1 -1
  161. package/dist/node-prod/index.js +4 -0
  162. package/dist/node-prod/index.js.map +1 -1
  163. package/dist/node-prod/index.mjs +4 -0
  164. package/dist/node-prod/index.mjs.map +1 -1
  165. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +52 -74
  166. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -1
  167. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +52 -74
  168. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -1
  169. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +78 -0
  170. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
  171. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +78 -0
  172. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
  173. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +54 -111
  174. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
  175. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +54 -111
  176. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -1
  177. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +63 -0
  178. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  179. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +63 -0
  180. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
  181. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js +2 -2
  182. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  183. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs +2 -2
  184. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  185. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js +2 -2
  186. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -1
  187. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +2 -2
  188. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  189. package/dist/node-prod/packages/hydrogen-react/package.json.js +1 -1
  190. package/dist/node-prod/packages/hydrogen-react/package.json.mjs +1 -1
  191. package/dist/node-prod/tracking-utils.js +92 -0
  192. package/dist/node-prod/tracking-utils.js.map +1 -0
  193. package/dist/node-prod/tracking-utils.mjs +92 -0
  194. package/dist/node-prod/tracking-utils.mjs.map +1 -0
  195. package/dist/node-prod/useShopifyCookies.js +94 -7
  196. package/dist/node-prod/useShopifyCookies.js.map +1 -1
  197. package/dist/node-prod/useShopifyCookies.mjs +96 -9
  198. package/dist/node-prod/useShopifyCookies.mjs.map +1 -1
  199. package/dist/types/ShopifyProvider.d.ts +5 -0
  200. package/dist/types/analytics-schema-custom-storefront-customer-tracking.d.ts +3 -3
  201. package/dist/types/analytics-types.d.ts +24 -4
  202. package/dist/types/cookies-utils.d.ts +4 -0
  203. package/dist/types/index.d.cts +1 -0
  204. package/dist/types/index.d.ts +1 -0
  205. package/dist/types/tracking-utils.d.ts +21 -0
  206. package/dist/types/useShopifyCookies.d.ts +28 -2
  207. package/dist/umd/hydrogen-react.dev.js +385 -277
  208. package/dist/umd/hydrogen-react.dev.js.map +1 -1
  209. package/dist/umd/hydrogen-react.prod.js +22 -22
  210. package/dist/umd/hydrogen-react.prod.js.map +1 -1
  211. package/package.json +5 -5
  212. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
  213. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
  214. package/dist/browser-dev/_virtual/with-selector.production.min.mjs +0 -5
  215. package/dist/browser-dev/_virtual/with-selector.production.min.mjs.map +0 -1
  216. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
  217. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
  218. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
  219. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
  220. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
  221. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
  222. package/dist/browser-prod/_virtual/with-selector.production.min.mjs +0 -5
  223. package/dist/browser-prod/_virtual/with-selector.production.min.mjs.map +0 -1
  224. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
  225. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
  226. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
  227. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
  228. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.js +0 -5
  229. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.js.map +0 -1
  230. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
  231. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
  232. package/dist/node-dev/_virtual/with-selector.production.min.js +0 -5
  233. package/dist/node-dev/_virtual/with-selector.production.min.js.map +0 -1
  234. package/dist/node-dev/_virtual/with-selector.production.min.mjs +0 -5
  235. package/dist/node-dev/_virtual/with-selector.production.min.mjs.map +0 -1
  236. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +0 -67
  237. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js.map +0 -1
  238. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
  239. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
  240. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +0 -57
  241. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js.map +0 -1
  242. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
  243. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
  244. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.js +0 -5
  245. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.js.map +0 -1
  246. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.mjs +0 -5
  247. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.min.mjs.map +0 -1
  248. package/dist/node-prod/_virtual/with-selector.production.min.js +0 -5
  249. package/dist/node-prod/_virtual/with-selector.production.min.js.map +0 -1
  250. package/dist/node-prod/_virtual/with-selector.production.min.mjs +0 -5
  251. package/dist/node-prod/_virtual/with-selector.production.min.mjs.map +0 -1
  252. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +0 -67
  253. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js.map +0 -1
  254. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +0 -67
  255. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs.map +0 -1
  256. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js +0 -57
  257. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js.map +0 -1
  258. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +0 -57
  259. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,7 +7,7 @@ const index = require("../../shim/index.js");
7
7
  * @license React
8
8
  * use-sync-external-store-shim/with-selector.development.js
9
9
  *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
10
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
11
11
  *
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
@@ -16,88 +16,66 @@ var hasRequiredWithSelector_development;
16
16
  function requireWithSelector_development() {
17
17
  if (hasRequiredWithSelector_development) return withSelector_development.__exports;
18
18
  hasRequiredWithSelector_development = 1;
19
- if (process.env.NODE_ENV !== "production") {
20
- (function() {
21
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
22
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
23
- }
24
- var React$1 = React;
25
- var shim = index.__require();
26
- function is(x, y) {
27
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
28
- }
29
- var objectIs = typeof Object.is === "function" ? Object.is : is;
30
- var useSyncExternalStore = shim.useSyncExternalStore;
31
- var useRef = React$1.useRef, useEffect = React$1.useEffect, useMemo = React$1.useMemo, useDebugValue = React$1.useDebugValue;
32
- function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
33
- var instRef = useRef(null);
34
- var inst;
35
- if (instRef.current === null) {
36
- inst = {
37
- hasValue: false,
38
- value: null
39
- };
40
- instRef.current = inst;
41
- } else {
42
- inst = instRef.current;
43
- }
44
- var _useMemo = useMemo(function() {
45
- var hasMemo = false;
46
- var memoizedSnapshot;
47
- var memoizedSelection;
48
- var memoizedSelector = function(nextSnapshot) {
19
+ "production" !== process.env.NODE_ENV && (function() {
20
+ function is(x, y) {
21
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
22
+ }
23
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
24
+ var React$1 = React, shim = index.__require(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React$1.useRef, useEffect = React$1.useEffect, useMemo = React$1.useMemo, useDebugValue = React$1.useDebugValue;
25
+ withSelector_development.__exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
26
+ var instRef = useRef(null);
27
+ if (null === instRef.current) {
28
+ var inst = { hasValue: false, value: null };
29
+ instRef.current = inst;
30
+ } else inst = instRef.current;
31
+ instRef = useMemo(
32
+ function() {
33
+ function memoizedSelector(nextSnapshot) {
49
34
  if (!hasMemo) {
50
35
  hasMemo = true;
51
36
  memoizedSnapshot = nextSnapshot;
52
- var _nextSelection = selector(nextSnapshot);
53
- if (isEqual !== void 0) {
54
- if (inst.hasValue) {
55
- var currentSelection = inst.value;
56
- if (isEqual(currentSelection, _nextSelection)) {
57
- memoizedSelection = currentSelection;
58
- return currentSelection;
59
- }
60
- }
37
+ nextSnapshot = selector(nextSnapshot);
38
+ if (void 0 !== isEqual && inst.hasValue) {
39
+ var currentSelection = inst.value;
40
+ if (isEqual(currentSelection, nextSnapshot))
41
+ return memoizedSelection = currentSelection;
61
42
  }
62
- memoizedSelection = _nextSelection;
63
- return _nextSelection;
64
- }
65
- var prevSnapshot = memoizedSnapshot;
66
- var prevSelection = memoizedSelection;
67
- if (objectIs(prevSnapshot, nextSnapshot)) {
68
- return prevSelection;
43
+ return memoizedSelection = nextSnapshot;
69
44
  }
45
+ currentSelection = memoizedSelection;
46
+ if (objectIs(memoizedSnapshot, nextSnapshot))
47
+ return currentSelection;
70
48
  var nextSelection = selector(nextSnapshot);
71
- if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
72
- return prevSelection;
73
- }
49
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
50
+ return memoizedSnapshot = nextSnapshot, currentSelection;
74
51
  memoizedSnapshot = nextSnapshot;
75
- memoizedSelection = nextSelection;
76
- return nextSelection;
77
- };
78
- var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
79
- var getSnapshotWithSelector = function() {
80
- return memoizedSelector(getSnapshot());
81
- };
82
- var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
83
- return memoizedSelector(maybeGetServerSnapshot());
84
- };
85
- return [getSnapshotWithSelector, getServerSnapshotWithSelector];
86
- }, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
87
- var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
88
- useEffect(function() {
52
+ return memoizedSelection = nextSelection;
53
+ }
54
+ var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
55
+ return [
56
+ function() {
57
+ return memoizedSelector(getSnapshot());
58
+ },
59
+ null === maybeGetServerSnapshot ? void 0 : function() {
60
+ return memoizedSelector(maybeGetServerSnapshot());
61
+ }
62
+ ];
63
+ },
64
+ [getSnapshot, getServerSnapshot, selector, isEqual]
65
+ );
66
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
67
+ useEffect(
68
+ function() {
89
69
  inst.hasValue = true;
90
70
  inst.value = value;
91
- }, [value]);
92
- useDebugValue(value);
93
- return value;
94
- }
95
- withSelector_development.__exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
96
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
97
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
98
- }
99
- })();
100
- }
71
+ },
72
+ [value]
73
+ );
74
+ useDebugValue(value);
75
+ return value;
76
+ };
77
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
78
+ })();
101
79
  return withSelector_development.__exports;
102
80
  }
103
81
  exports.__require = requireWithSelector_development;
@@ -1 +1 @@
1
- {"version":3,"file":"with-selector.development.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var React = require('react');\nvar shim = require('use-sync-external-store/shim');\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\nvar useSyncExternalStore = shim.useSyncExternalStore;\n\n// for CommonJS interop.\n\nvar useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.\n\nfunction useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {\n // Use this to track the rendered snapshot.\n var instRef = useRef(null);\n var inst;\n\n if (instRef.current === null) {\n inst = {\n hasValue: false,\n value: null\n };\n instRef.current = inst;\n } else {\n inst = instRef.current;\n }\n\n var _useMemo = useMemo(function () {\n // Track the memoized state using closure variables that are local to this\n // memoized instance of a getSnapshot function. Intentionally not using a\n // useRef hook, because that state would be shared across all concurrent\n // copies of the hook/component.\n var hasMemo = false;\n var memoizedSnapshot;\n var memoizedSelection;\n\n var memoizedSelector = function (nextSnapshot) {\n if (!hasMemo) {\n // The first time the hook is called, there is no memoized result.\n hasMemo = true;\n memoizedSnapshot = nextSnapshot;\n\n var _nextSelection = selector(nextSnapshot);\n\n if (isEqual !== undefined) {\n // Even if the selector has changed, the currently rendered selection\n // may be equal to the new selection. We should attempt to reuse the\n // current value if possible, to preserve downstream memoizations.\n if (inst.hasValue) {\n var currentSelection = inst.value;\n\n if (isEqual(currentSelection, _nextSelection)) {\n memoizedSelection = currentSelection;\n return currentSelection;\n }\n }\n }\n\n memoizedSelection = _nextSelection;\n return _nextSelection;\n } // We may be able to reuse the previous invocation's result.\n\n\n // We may be able to reuse the previous invocation's result.\n var prevSnapshot = memoizedSnapshot;\n var prevSelection = memoizedSelection;\n\n if (objectIs(prevSnapshot, nextSnapshot)) {\n // The snapshot is the same as last time. Reuse the previous selection.\n return prevSelection;\n } // The snapshot has changed, so we need to compute a new selection.\n\n\n // The snapshot has changed, so we need to compute a new selection.\n var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n\n // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {\n return prevSelection;\n }\n\n memoizedSnapshot = nextSnapshot;\n memoizedSelection = nextSelection;\n return nextSelection;\n }; // Assigning this to a constant so that Flow knows it can't change.\n\n\n // Assigning this to a constant so that Flow knows it can't change.\n var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;\n\n var getSnapshotWithSelector = function () {\n return memoizedSelector(getSnapshot());\n };\n\n var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n };\n return [getSnapshotWithSelector, getServerSnapshotWithSelector];\n }, [getSnapshot, getServerSnapshot, selector, isEqual]),\n getSelection = _useMemo[0],\n getServerSelection = _useMemo[1];\n\n var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);\n useEffect(function () {\n inst.hasValue = true;\n inst.value = value;\n }, [value]);\n useDebugValue(value);\n return value;\n}\n\nexports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n"],"names":["React","require$$0","require$$1","withSelector_development"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,KAAC,WAAW;AAKd,UACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,gCACpC,YACF;AACA,uCAA+B,4BAA4B,IAAI,OAAO;AAAA,MACxE;AACU,UAAIA,UAAQC;AACtB,UAAI,OAAOC,MAAAA,UAAA;AAMX,eAAS,GAAG,GAAG,GAAG;AAChB,eAAO,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAM,MAAM,KAAK,MAAM;AAAA,MAErE;AAEA,UAAI,WAAW,OAAO,OAAO,OAAO,aAAa,OAAO,KAAK;AAE7D,UAAI,uBAAuB,KAAK;AAIhC,UAAI,SAASF,QAAM,QACf,YAAYA,QAAM,WAClB,UAAUA,QAAM,SAChB,gBAAgBA,QAAM;AAE1B,eAAS,iCAAiC,WAAW,aAAa,mBAAmB,UAAU,SAAS;AAEtG,YAAI,UAAU,OAAO,IAAI;AACzB,YAAI;AAEJ,YAAI,QAAQ,YAAY,MAAM;AAC5B,iBAAO;AAAA,YACL,UAAU;AAAA,YACV,OAAO;AAAA;AAET,kBAAQ,UAAU;AAAA,QACtB,OAAS;AACL,iBAAO,QAAQ;AAAA,QACnB;AAEE,YAAI,WAAW,QAAQ,WAAY;AAKjC,cAAI,UAAU;AACd,cAAI;AACJ,cAAI;AAEJ,cAAI,mBAAmB,SAAU,cAAc;AAC7C,gBAAI,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,IAEA,GAAG;AAAA,EACH;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"with-selector.development.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["React","require$$0","require$$1","withSelector_development"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,mBAAiB,QAAQ,IAAI,aAC1B,WAAY;AACX,aAAS,GAAG,GAAG,GAAG;AAChB,aAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,IAC5E;AACI,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,+BACxC,+BAA+B,4BAA4B,OAAO;AACpE,QAAIA,UAAQC,OACV,OAAOC,MAAAA,UAAA,GACP,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IACzD,uBAAuB,KAAK,sBAC5B,SAASF,QAAM,QACf,YAAYA,QAAM,WAClB,UAAUA,QAAM,SAChB,gBAAgBA,QAAM;AACxBG,6BAAAA,6CAA2C,SACzC,WACA,aACA,mBACA,UACA,SACA;AACA,UAAI,UAAU,OAAO,IAAI;AACzB,U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;","x_google_ignoreList":[0]}
@@ -5,7 +5,7 @@ import { __require as requireShim } from "../../shim/index.mjs";
5
5
  * @license React
6
6
  * use-sync-external-store-shim/with-selector.development.js
7
7
  *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
@@ -14,88 +14,66 @@ var hasRequiredWithSelector_development;
14
14
  function requireWithSelector_development() {
15
15
  if (hasRequiredWithSelector_development) return withSelector_development;
16
16
  hasRequiredWithSelector_development = 1;
17
- if (process.env.NODE_ENV !== "production") {
18
- (function() {
19
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
20
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
21
- }
22
- var React = React__default;
23
- var shim = requireShim();
24
- function is(x, y) {
25
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
26
- }
27
- var objectIs = typeof Object.is === "function" ? Object.is : is;
28
- var useSyncExternalStore = shim.useSyncExternalStore;
29
- var useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
30
- function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
31
- var instRef = useRef(null);
32
- var inst;
33
- if (instRef.current === null) {
34
- inst = {
35
- hasValue: false,
36
- value: null
37
- };
38
- instRef.current = inst;
39
- } else {
40
- inst = instRef.current;
41
- }
42
- var _useMemo = useMemo(function() {
43
- var hasMemo = false;
44
- var memoizedSnapshot;
45
- var memoizedSelection;
46
- var memoizedSelector = function(nextSnapshot) {
17
+ "production" !== process.env.NODE_ENV && (function() {
18
+ function is(x, y) {
19
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
20
+ }
21
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
22
+ var React = React__default, shim = requireShim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
23
+ withSelector_development.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
24
+ var instRef = useRef(null);
25
+ if (null === instRef.current) {
26
+ var inst = { hasValue: false, value: null };
27
+ instRef.current = inst;
28
+ } else inst = instRef.current;
29
+ instRef = useMemo(
30
+ function() {
31
+ function memoizedSelector(nextSnapshot) {
47
32
  if (!hasMemo) {
48
33
  hasMemo = true;
49
34
  memoizedSnapshot = nextSnapshot;
50
- var _nextSelection = selector(nextSnapshot);
51
- if (isEqual !== void 0) {
52
- if (inst.hasValue) {
53
- var currentSelection = inst.value;
54
- if (isEqual(currentSelection, _nextSelection)) {
55
- memoizedSelection = currentSelection;
56
- return currentSelection;
57
- }
58
- }
35
+ nextSnapshot = selector(nextSnapshot);
36
+ if (void 0 !== isEqual && inst.hasValue) {
37
+ var currentSelection = inst.value;
38
+ if (isEqual(currentSelection, nextSnapshot))
39
+ return memoizedSelection = currentSelection;
59
40
  }
60
- memoizedSelection = _nextSelection;
61
- return _nextSelection;
62
- }
63
- var prevSnapshot = memoizedSnapshot;
64
- var prevSelection = memoizedSelection;
65
- if (objectIs(prevSnapshot, nextSnapshot)) {
66
- return prevSelection;
41
+ return memoizedSelection = nextSnapshot;
67
42
  }
43
+ currentSelection = memoizedSelection;
44
+ if (objectIs(memoizedSnapshot, nextSnapshot))
45
+ return currentSelection;
68
46
  var nextSelection = selector(nextSnapshot);
69
- if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
70
- return prevSelection;
71
- }
47
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
48
+ return memoizedSnapshot = nextSnapshot, currentSelection;
72
49
  memoizedSnapshot = nextSnapshot;
73
- memoizedSelection = nextSelection;
74
- return nextSelection;
75
- };
76
- var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
77
- var getSnapshotWithSelector = function() {
78
- return memoizedSelector(getSnapshot());
79
- };
80
- var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
81
- return memoizedSelector(maybeGetServerSnapshot());
82
- };
83
- return [getSnapshotWithSelector, getServerSnapshotWithSelector];
84
- }, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
85
- var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
86
- useEffect(function() {
50
+ return memoizedSelection = nextSelection;
51
+ }
52
+ var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
53
+ return [
54
+ function() {
55
+ return memoizedSelector(getSnapshot());
56
+ },
57
+ null === maybeGetServerSnapshot ? void 0 : function() {
58
+ return memoizedSelector(maybeGetServerSnapshot());
59
+ }
60
+ ];
61
+ },
62
+ [getSnapshot, getServerSnapshot, selector, isEqual]
63
+ );
64
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
65
+ useEffect(
66
+ function() {
87
67
  inst.hasValue = true;
88
68
  inst.value = value;
89
- }, [value]);
90
- useDebugValue(value);
91
- return value;
92
- }
93
- withSelector_development.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
94
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
95
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
96
- }
97
- })();
98
- }
69
+ },
70
+ [value]
71
+ );
72
+ useDebugValue(value);
73
+ return value;
74
+ };
75
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
76
+ })();
99
77
  return withSelector_development;
100
78
  }
101
79
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"with-selector.development.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var React = require('react');\nvar shim = require('use-sync-external-store/shim');\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nvar objectIs = typeof Object.is === 'function' ? Object.is : is;\n\nvar useSyncExternalStore = shim.useSyncExternalStore;\n\n// for CommonJS interop.\n\nvar useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue; // Same as useSyncExternalStore, but supports selector and isEqual arguments.\n\nfunction useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {\n // Use this to track the rendered snapshot.\n var instRef = useRef(null);\n var inst;\n\n if (instRef.current === null) {\n inst = {\n hasValue: false,\n value: null\n };\n instRef.current = inst;\n } else {\n inst = instRef.current;\n }\n\n var _useMemo = useMemo(function () {\n // Track the memoized state using closure variables that are local to this\n // memoized instance of a getSnapshot function. Intentionally not using a\n // useRef hook, because that state would be shared across all concurrent\n // copies of the hook/component.\n var hasMemo = false;\n var memoizedSnapshot;\n var memoizedSelection;\n\n var memoizedSelector = function (nextSnapshot) {\n if (!hasMemo) {\n // The first time the hook is called, there is no memoized result.\n hasMemo = true;\n memoizedSnapshot = nextSnapshot;\n\n var _nextSelection = selector(nextSnapshot);\n\n if (isEqual !== undefined) {\n // Even if the selector has changed, the currently rendered selection\n // may be equal to the new selection. We should attempt to reuse the\n // current value if possible, to preserve downstream memoizations.\n if (inst.hasValue) {\n var currentSelection = inst.value;\n\n if (isEqual(currentSelection, _nextSelection)) {\n memoizedSelection = currentSelection;\n return currentSelection;\n }\n }\n }\n\n memoizedSelection = _nextSelection;\n return _nextSelection;\n } // We may be able to reuse the previous invocation's result.\n\n\n // We may be able to reuse the previous invocation's result.\n var prevSnapshot = memoizedSnapshot;\n var prevSelection = memoizedSelection;\n\n if (objectIs(prevSnapshot, nextSnapshot)) {\n // The snapshot is the same as last time. Reuse the previous selection.\n return prevSelection;\n } // The snapshot has changed, so we need to compute a new selection.\n\n\n // The snapshot has changed, so we need to compute a new selection.\n var nextSelection = selector(nextSnapshot); // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n\n // If a custom isEqual function is provided, use that to check if the data\n // has changed. If it hasn't, return the previous selection. That signals\n // to React that the selections are conceptually equal, and we can bail\n // out of rendering.\n if (isEqual !== undefined && isEqual(prevSelection, nextSelection)) {\n return prevSelection;\n }\n\n memoizedSnapshot = nextSnapshot;\n memoizedSelection = nextSelection;\n return nextSelection;\n }; // Assigning this to a constant so that Flow knows it can't change.\n\n\n // Assigning this to a constant so that Flow knows it can't change.\n var maybeGetServerSnapshot = getServerSnapshot === undefined ? null : getServerSnapshot;\n\n var getSnapshotWithSelector = function () {\n return memoizedSelector(getSnapshot());\n };\n\n var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? undefined : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n };\n return [getSnapshotWithSelector, getServerSnapshotWithSelector];\n }, [getSnapshot, getServerSnapshot, selector, isEqual]),\n getSelection = _useMemo[0],\n getServerSelection = _useMemo[1];\n\n var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);\n useEffect(function () {\n inst.hasValue = true;\n inst.value = value;\n }, [value]);\n useDebugValue(value);\n return value;\n}\n\nexports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;;;;AAYA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,KAAC,WAAW;AAKd,UACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,gCACpC,YACF;AACA,uCAA+B,4BAA4B,IAAI,OAAO;AAAA,MACxE;AACU,UAAI,QAAQA;AACtB,UAAI,OAAOC,YAAA;AAMX,eAAS,GAAG,GAAG,GAAG;AAChB,eAAO,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAM,MAAM,KAAK,MAAM;AAAA,MAErE;AAEA,UAAI,WAAW,OAAO,OAAO,OAAO,aAAa,OAAO,KAAK;AAE7D,UAAI,uBAAuB,KAAK;AAIhC,UAAI,SAAS,MAAM,QACf,YAAY,MAAM,WAClB,UAAU,MAAM,SAChB,gBAAgB,MAA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,GAClD,eAAe,SAAS,CAAC,GACzB,qBAAqB,SAAS,CAAC;AAEnC,YAAI,QAAQ,qBAAqB,WAAW,cAAc,kBAAkB;AAC5E,kBAAU,WAAY;AACpB,eAAK,WAAW;AAChB,eAAK,QAAQ;AAAA,QACjB,GAAK,CAAC,KAAK,CAAC;AACV,sBAAc,KAAK;AACnB,eAAO;AAAA,MACT;AAEA,+BAAA,mCAA2C;AAE3C,UACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,+BACpC,YACF;AACA,uCAA+B,2BAA2B,IAAI,OAAO;AAAA,MACvE;AAAA,IAEA,GAAG;AAAA,EACH;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"with-selector.development.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;;;;AAWA,mBAAiB,QAAQ,IAAI,aAC1B,WAAY;AACX,aAAS,GAAG,GAAG,GAAG;AAChB,aAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,IAC5E;AACI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AAmB,UAAU,OAAO;AAAA;AAEpD,UAAI,QAAQ,qBAAqB,WAAW,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;AAClE;AAAA,QACE,WAAY;AACV,eAAK,WAAW;AAChB,eAAK,QAAQ;AAAA,QACvB;AAAA,QACQ,CAAC,KAAK;AAAA;AAER,oBAAc,KAAK;AACnB,aAAO;AAAA,IACb;AACI,oBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,8BACxC,+BAA+B,2BAA2B,OAAO;AAAA,EACvE,GAAG;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const withSelector_production = require("../../../../_virtual/with-selector.production.js");
4
+ const React = require("react");
5
+ const index = require("../../shim/index.js");
6
+ /**
7
+ * @license React
8
+ * use-sync-external-store-shim/with-selector.production.js
9
+ *
10
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var hasRequiredWithSelector_production;
16
+ function requireWithSelector_production() {
17
+ if (hasRequiredWithSelector_production) return withSelector_production.__exports;
18
+ hasRequiredWithSelector_production = 1;
19
+ var React$1 = React, shim = index.__require();
20
+ function is(x, y) {
21
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
22
+ }
23
+ var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React$1.useRef, useEffect = React$1.useEffect, useMemo = React$1.useMemo, useDebugValue = React$1.useDebugValue;
24
+ withSelector_production.__exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
25
+ var instRef = useRef(null);
26
+ if (null === instRef.current) {
27
+ var inst = { hasValue: false, value: null };
28
+ instRef.current = inst;
29
+ } else inst = instRef.current;
30
+ instRef = useMemo(
31
+ function() {
32
+ function memoizedSelector(nextSnapshot) {
33
+ if (!hasMemo) {
34
+ hasMemo = true;
35
+ memoizedSnapshot = nextSnapshot;
36
+ nextSnapshot = selector(nextSnapshot);
37
+ if (void 0 !== isEqual && inst.hasValue) {
38
+ var currentSelection = inst.value;
39
+ if (isEqual(currentSelection, nextSnapshot))
40
+ return memoizedSelection = currentSelection;
41
+ }
42
+ return memoizedSelection = nextSnapshot;
43
+ }
44
+ currentSelection = memoizedSelection;
45
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
46
+ var nextSelection = selector(nextSnapshot);
47
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
48
+ return memoizedSnapshot = nextSnapshot, currentSelection;
49
+ memoizedSnapshot = nextSnapshot;
50
+ return memoizedSelection = nextSelection;
51
+ }
52
+ var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
53
+ return [
54
+ function() {
55
+ return memoizedSelector(getSnapshot());
56
+ },
57
+ null === maybeGetServerSnapshot ? void 0 : function() {
58
+ return memoizedSelector(maybeGetServerSnapshot());
59
+ }
60
+ ];
61
+ },
62
+ [getSnapshot, getServerSnapshot, selector, isEqual]
63
+ );
64
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
65
+ useEffect(
66
+ function() {
67
+ inst.hasValue = true;
68
+ inst.value = value;
69
+ },
70
+ [value]
71
+ );
72
+ useDebugValue(value);
73
+ return value;
74
+ };
75
+ return withSelector_production.__exports;
76
+ }
77
+ exports.__require = requireWithSelector_production;
78
+ //# sourceMappingURL=with-selector.production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.production.js","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n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O,iBAAiB,aAAa;AAAA,UAC/C;AAAA,UACQ,SAAS,yBACL,SACA,WAAY;AACV,mBAAO,iBAAiB,wBAAwB;AAAA,UAC9D;AAAA;MAEA;AAAA,MACI,CAAC,aAAa,mBAAmB,UAAU,OAAO;AAAA;AAEpD,QAAI,QAAQ,qBAAqB,WAAW,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;AAClE;AAAA,MACE,WAAY;AACV,aAAK,WAAW;AAChB,aAAK,QAAQ;AAAA,MACnB;AAAA,MACI,CAAC,KAAK;AAAA;AAER,kBAAc,KAAK;AACnB,WAAO;AAAA,EACT;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,78 @@
1
+ import { __exports as withSelector_production } from "../../../../_virtual/with-selector.production.mjs";
2
+ import React__default from "react";
3
+ import { __require as requireShim } from "../../shim/index.mjs";
4
+ /**
5
+ * @license React
6
+ * use-sync-external-store-shim/with-selector.production.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var hasRequiredWithSelector_production;
14
+ function requireWithSelector_production() {
15
+ if (hasRequiredWithSelector_production) return withSelector_production;
16
+ hasRequiredWithSelector_production = 1;
17
+ var React = React__default, shim = requireShim();
18
+ function is(x, y) {
19
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
20
+ }
21
+ var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
22
+ withSelector_production.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
23
+ var instRef = useRef(null);
24
+ if (null === instRef.current) {
25
+ var inst = { hasValue: false, value: null };
26
+ instRef.current = inst;
27
+ } else inst = instRef.current;
28
+ instRef = useMemo(
29
+ function() {
30
+ function memoizedSelector(nextSnapshot) {
31
+ if (!hasMemo) {
32
+ hasMemo = true;
33
+ memoizedSnapshot = nextSnapshot;
34
+ nextSnapshot = selector(nextSnapshot);
35
+ if (void 0 !== isEqual && inst.hasValue) {
36
+ var currentSelection = inst.value;
37
+ if (isEqual(currentSelection, nextSnapshot))
38
+ return memoizedSelection = currentSelection;
39
+ }
40
+ return memoizedSelection = nextSnapshot;
41
+ }
42
+ currentSelection = memoizedSelection;
43
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
44
+ var nextSelection = selector(nextSnapshot);
45
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
46
+ return memoizedSnapshot = nextSnapshot, currentSelection;
47
+ memoizedSnapshot = nextSnapshot;
48
+ return memoizedSelection = nextSelection;
49
+ }
50
+ var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
51
+ return [
52
+ function() {
53
+ return memoizedSelector(getSnapshot());
54
+ },
55
+ null === maybeGetServerSnapshot ? void 0 : function() {
56
+ return memoizedSelector(maybeGetServerSnapshot());
57
+ }
58
+ ];
59
+ },
60
+ [getSnapshot, getServerSnapshot, selector, isEqual]
61
+ );
62
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
63
+ useEffect(
64
+ function() {
65
+ inst.hasValue = true;
66
+ inst.value = value;
67
+ },
68
+ [value]
69
+ );
70
+ useDebugValue(value);
71
+ return value;
72
+ };
73
+ return withSelector_production;
74
+ }
75
+ export {
76
+ requireWithSelector_production as __require
77
+ };
78
+ //# sourceMappingURL=with-selector.production.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.production.mjs","sources":["../../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue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