@shopify/shop-minis-react 0.0.21 → 0.0.22

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 (210) hide show
  1. package/dist/_virtual/___vite-browser-external.js +7 -0
  2. package/dist/_virtual/___vite-browser-external.js.map +1 -0
  3. package/dist/_virtual/__vite-browser-external.js +5 -0
  4. package/dist/_virtual/__vite-browser-external.js.map +1 -0
  5. package/dist/_virtual/_commonjsHelpers.js +24 -4
  6. package/dist/_virtual/_commonjsHelpers.js.map +1 -1
  7. package/dist/_virtual/browser-index.js +8 -0
  8. package/dist/_virtual/browser-index.js.map +1 -0
  9. package/dist/_virtual/browser-index2.js +5 -0
  10. package/dist/_virtual/browser-index2.js.map +1 -0
  11. package/dist/_virtual/clock.js +6 -0
  12. package/dist/_virtual/clock.js.map +1 -0
  13. package/dist/_virtual/conventions.js +5 -0
  14. package/dist/_virtual/conventions.js.map +1 -0
  15. package/dist/_virtual/document.js +8 -0
  16. package/dist/_virtual/document.js.map +1 -0
  17. package/dist/_virtual/dom-parser.js +5 -0
  18. package/dist/_virtual/dom-parser.js.map +1 -0
  19. package/dist/_virtual/dom.js +5 -0
  20. package/dist/_virtual/dom.js.map +1 -0
  21. package/dist/_virtual/entities.js +5 -0
  22. package/dist/_virtual/entities.js.map +1 -0
  23. package/dist/_virtual/extends.js +5 -0
  24. package/dist/_virtual/extends.js.map +1 -0
  25. package/dist/_virtual/index10.js +5 -0
  26. package/dist/_virtual/index10.js.map +1 -0
  27. package/dist/_virtual/index11.js +5 -0
  28. package/dist/_virtual/index11.js.map +1 -0
  29. package/dist/_virtual/index2.js +5 -2
  30. package/dist/_virtual/index2.js.map +1 -1
  31. package/dist/_virtual/index3.js +5 -3
  32. package/dist/_virtual/index3.js.map +1 -1
  33. package/dist/_virtual/index5.js +6 -0
  34. package/dist/_virtual/index5.js.map +1 -0
  35. package/dist/_virtual/index6.js +6 -0
  36. package/dist/_virtual/index6.js.map +1 -0
  37. package/dist/_virtual/index7.js +5 -0
  38. package/dist/_virtual/index7.js.map +1 -0
  39. package/dist/_virtual/index8.js +5 -0
  40. package/dist/_virtual/index8.js.map +1 -0
  41. package/dist/_virtual/index9.js +5 -0
  42. package/dist/_virtual/index9.js.map +1 -0
  43. package/dist/_virtual/parse-sidx.js +8 -0
  44. package/dist/_virtual/parse-sidx.js.map +1 -0
  45. package/dist/_virtual/sax.js +5 -0
  46. package/dist/_virtual/sax.js.map +1 -0
  47. package/dist/_virtual/window.js +8 -0
  48. package/dist/_virtual/window.js.map +1 -0
  49. package/dist/components/atoms/video-player.js +121 -0
  50. package/dist/components/atoms/video-player.js.map +1 -0
  51. package/dist/components/commerce/merchant-card.js +236 -106
  52. package/dist/components/commerce/merchant-card.js.map +1 -1
  53. package/dist/index.js +199 -192
  54. package/dist/index.js.map +1 -1
  55. package/dist/mocks.js +114 -87
  56. package/dist/mocks.js.map +1 -1
  57. package/dist/shop-minis-react/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/extends.js +20 -0
  58. package/dist/shop-minis-react/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/extends.js.map +1 -0
  59. package/dist/shop-minis-react/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@19.1.6_react@19.1.0/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
  60. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/byte-helpers.js +79 -0
  61. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/byte-helpers.js.map +1 -0
  62. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/codecs.js +102 -0
  63. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/codecs.js.map +1 -0
  64. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/containers.js +149 -0
  65. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/containers.js.map +1 -0
  66. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js +13 -0
  67. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js.map +1 -0
  68. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/ebml-helpers.js +77 -0
  69. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/ebml-helpers.js.map +1 -0
  70. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/id3-helpers.js +15 -0
  71. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/id3-helpers.js.map +1 -0
  72. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-groups.js +13 -0
  73. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-groups.js.map +1 -0
  74. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-types.js +7 -0
  75. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-types.js.map +1 -0
  76. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/mp4-helpers.js +31 -0
  77. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/mp4-helpers.js.map +1 -0
  78. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/nal-helpers.js +39 -0
  79. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/nal-helpers.js.map +1 -0
  80. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/resolve-url.js +14 -0
  81. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/resolve-url.js.map +1 -0
  82. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/stream.js +33 -0
  83. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/stream.js.map +1 -0
  84. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/http-handler.js +42 -0
  85. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/http-handler.js.map +1 -0
  86. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/index.js +169 -0
  87. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/index.js.map +1 -0
  88. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/interceptors.js +75 -0
  89. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/interceptors.js.map +1 -0
  90. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/retry.js +70 -0
  91. package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/retry.js.map +1 -0
  92. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/conventions.js +124 -0
  93. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/conventions.js.map +1 -0
  94. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom-parser.js +151 -0
  95. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom-parser.js.map +1 -0
  96. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom.js +993 -0
  97. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom.js.map +1 -0
  98. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/entities.js +2146 -0
  99. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/entities.js.map +1 -0
  100. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +14 -0
  101. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js.map +1 -0
  102. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/sax.js +346 -0
  103. package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/sax.js.map +1 -0
  104. package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js +308 -0
  105. package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js.map +1 -0
  106. package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js +41 -0
  107. package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js.map +1 -0
  108. package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js +53 -0
  109. package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js.map +1 -0
  110. package/dist/shop-minis-react/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js +157 -0
  111. package/dist/shop-minis-react/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js.map +1 -0
  112. package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js +103 -0
  113. package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js.map +1 -0
  114. package/dist/shop-minis-react/node_modules/.pnpm/color@4.2.3/node_modules/color/index.js +269 -0
  115. package/dist/shop-minis-react/node_modules/.pnpm/color@4.2.3/node_modules/color/index.js.map +1 -0
  116. package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/document.js +13 -0
  117. package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/document.js.map +1 -0
  118. package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/window.js +12 -0
  119. package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/window.js.map +1 -0
  120. package/dist/shop-minis-react/node_modules/.pnpm/is-arrayish@0.3.2/node_modules/is-arrayish/index.js +10 -0
  121. package/dist/shop-minis-react/node_modules/.pnpm/is-arrayish@0.3.2/node_modules/is-arrayish/index.js.map +1 -0
  122. package/dist/shop-minis-react/node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js +18 -0
  123. package/dist/shop-minis-react/node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js.map +1 -0
  124. package/dist/shop-minis-react/node_modules/.pnpm/m3u8-parser@7.2.0/node_modules/m3u8-parser/dist/m3u8-parser.es.js +855 -0
  125. package/dist/shop-minis-react/node_modules/.pnpm/m3u8-parser@7.2.0/node_modules/m3u8-parser/dist/m3u8-parser.es.js.map +1 -0
  126. package/dist/shop-minis-react/node_modules/.pnpm/mpd-parser@1.3.1/node_modules/mpd-parser/dist/mpd-parser.es.js +1102 -0
  127. package/dist/shop-minis-react/node_modules/.pnpm/mpd-parser@1.3.1/node_modules/mpd-parser/dist/mpd-parser.es.js.map +1 -0
  128. package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/tools/parse-sidx.js +32 -0
  129. package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/tools/parse-sidx.js.map +1 -0
  130. package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/clock.js +34 -0
  131. package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/clock.js.map +1 -0
  132. package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/numbers.js +17 -0
  133. package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/numbers.js.map +1 -0
  134. package/dist/shop-minis-react/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
  135. package/dist/shop-minis-react/node_modules/.pnpm/simple-swizzle@0.2.2/node_modules/simple-swizzle/index.js +23 -0
  136. package/dist/shop-minis-react/node_modules/.pnpm/simple-swizzle@0.2.2/node_modules/simple-swizzle/index.js.map +1 -0
  137. package/dist/shop-minis-react/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/shim/index.js +1 -1
  138. package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js +27824 -0
  139. package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js.map +1 -0
  140. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/browser-index.js +26 -0
  141. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/browser-index.js.map +1 -0
  142. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vtt.js +802 -0
  143. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vtt.js.map +1 -0
  144. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttcue.js +188 -0
  145. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttcue.js.map +1 -0
  146. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttregion.js +104 -0
  147. package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttregion.js.map +1 -0
  148. package/dist/shop-minis-react.css +1 -1
  149. package/dist/utils/colors.js +6 -0
  150. package/dist/utils/colors.js.map +1 -0
  151. package/dist/utils/merchant-card.js +44 -0
  152. package/dist/utils/merchant-card.js.map +1 -0
  153. package/package.json +5 -1
  154. package/src/components/atoms/video-player.tsx +213 -0
  155. package/src/components/commerce/merchant-card.tsx +219 -49
  156. package/src/components/index.ts +1 -0
  157. package/src/mocks.ts +148 -16
  158. package/src/stories/MerchantCard.stories.tsx +63 -9
  159. package/src/utils/colors.ts +5 -0
  160. package/src/utils/index.ts +1 -0
  161. package/src/utils/merchant-card.ts +99 -0
  162. package/src/hooks/navigation/useCloseMini.doc.ts +0 -32
  163. package/src/hooks/navigation/useCloseMini.example.tsx +0 -7
  164. package/src/hooks/navigation/useDeeplink.doc.ts +0 -32
  165. package/src/hooks/navigation/useDeeplink.example.tsx +0 -7
  166. package/src/hooks/navigation/useShopNavigation.doc.ts +0 -32
  167. package/src/hooks/navigation/useShopNavigation.example.tsx +0 -32
  168. package/src/hooks/product/useCuratedProducts.doc.ts +0 -32
  169. package/src/hooks/product/useCuratedProducts.example.tsx +0 -10
  170. package/src/hooks/product/useProductList.doc.ts +0 -32
  171. package/src/hooks/product/useProductList.example.tsx +0 -9
  172. package/src/hooks/product/useProductListActions.doc.ts +0 -32
  173. package/src/hooks/product/useProductListActions.example.tsx +0 -60
  174. package/src/hooks/product/useProductLists.doc.ts +0 -32
  175. package/src/hooks/product/useProductLists.example.tsx +0 -9
  176. package/src/hooks/product/useProductSearch.doc.ts +0 -32
  177. package/src/hooks/product/useProductSearch.example.tsx +0 -13
  178. package/src/hooks/product/useRecommendedProducts.doc.ts +0 -32
  179. package/src/hooks/product/useRecommendedProducts.example.tsx +0 -7
  180. package/src/hooks/shop/useRecommendedShops.doc.ts +0 -32
  181. package/src/hooks/shop/useRecommendedShops.example.tsx +0 -7
  182. package/src/hooks/shop/useShop.doc.ts +0 -31
  183. package/src/hooks/shop/useShop.example.tsx +0 -7
  184. package/src/hooks/shop/useShopCartActions.doc.ts +0 -32
  185. package/src/hooks/shop/useShopCartActions.example.tsx +0 -28
  186. package/src/hooks/storage/useAsyncStorage.doc.ts +0 -32
  187. package/src/hooks/storage/useAsyncStorage.example.tsx +0 -30
  188. package/src/hooks/storage/useImageUpload.doc.ts +0 -32
  189. package/src/hooks/storage/useImageUpload.example.tsx +0 -20
  190. package/src/hooks/storage/useSecureStorage.doc.ts +0 -32
  191. package/src/hooks/storage/useSecureStorage.example.tsx +0 -23
  192. package/src/hooks/user/useBuyerAttributes.doc.ts +0 -32
  193. package/src/hooks/user/useBuyerAttributes.example.tsx +0 -14
  194. package/src/hooks/user/useCurrentUser.doc.ts +0 -31
  195. package/src/hooks/user/useCurrentUser.example.tsx +0 -7
  196. package/src/hooks/user/useFollowedShopsActions.doc.ts +0 -32
  197. package/src/hooks/user/useFollowedShopsActions.example.tsx +0 -16
  198. package/src/hooks/user/useOrders.doc.ts +0 -32
  199. package/src/hooks/user/useOrders.example.tsx +0 -7
  200. package/src/hooks/user/useRecentProducts.doc.ts +0 -32
  201. package/src/hooks/user/useRecentProducts.example.tsx +0 -13
  202. package/src/hooks/user/useSavedProducts.doc.ts +0 -32
  203. package/src/hooks/user/useSavedProducts.example.tsx +0 -13
  204. package/src/hooks/user/useSavedProductsActions.doc.ts +0 -32
  205. package/src/hooks/user/useSavedProductsActions.example.tsx +0 -32
  206. package/src/hooks/util/useErrorScreen.doc.ts +0 -32
  207. package/src/hooks/util/useErrorScreen.example.tsx +0 -15
  208. package/src/hooks/util/useErrorToast.doc.ts +0 -32
  209. package/src/hooks/util/useErrorToast.example.tsx +0 -15
  210. package/src/hooks/util/useImagePicker.example.tsx +0 -77
@@ -0,0 +1,42 @@
1
+ import { __require as p } from "../../../../../global@4.4.0/node_modules/global/window.js";
2
+ var f, l;
3
+ function c() {
4
+ if (l) return f;
5
+ l = 1;
6
+ var h = p(), v = function(e, i) {
7
+ return i === void 0 && (i = !1), function(n, t, r) {
8
+ if (n) {
9
+ e(n);
10
+ return;
11
+ }
12
+ if (t.statusCode >= 400 && t.statusCode <= 599) {
13
+ var a = r;
14
+ if (i)
15
+ if (h.TextDecoder) {
16
+ var o = d(t.headers && t.headers["content-type"]);
17
+ try {
18
+ a = new TextDecoder(o).decode(r);
19
+ } catch {
20
+ }
21
+ } else
22
+ a = String.fromCharCode.apply(null, new Uint8Array(r));
23
+ e({
24
+ cause: a
25
+ });
26
+ return;
27
+ }
28
+ e(null, r);
29
+ };
30
+ };
31
+ function d(u) {
32
+ return u === void 0 && (u = ""), u.toLowerCase().split(";").reduce(function(e, i) {
33
+ var n = i.split("="), t = n[0], r = n[1];
34
+ return t.trim() === "charset" ? r.trim() : e;
35
+ }, "utf-8");
36
+ }
37
+ return f = v, f;
38
+ }
39
+ export {
40
+ c as __require
41
+ };
42
+ //# sourceMappingURL=http-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-handler.js","sources":["../../../../../../../../../node_modules/.pnpm/@videojs+xhr@2.7.0/node_modules/@videojs/xhr/lib/http-handler.js"],"sourcesContent":["\"use strict\";\n\nvar window = require('global/window');\n\nvar httpResponseHandler = function httpResponseHandler(callback, decodeResponseBody) {\n if (decodeResponseBody === void 0) {\n decodeResponseBody = false;\n }\n\n return function (err, response, responseBody) {\n // if the XHR failed, return that error\n if (err) {\n callback(err);\n return;\n } // if the HTTP status code is 4xx or 5xx, the request also failed\n\n\n if (response.statusCode >= 400 && response.statusCode <= 599) {\n var cause = responseBody;\n\n if (decodeResponseBody) {\n if (window.TextDecoder) {\n var charset = getCharset(response.headers && response.headers['content-type']);\n\n try {\n cause = new TextDecoder(charset).decode(responseBody);\n } catch (e) {}\n } else {\n cause = String.fromCharCode.apply(null, new Uint8Array(responseBody));\n }\n }\n\n callback({\n cause: cause\n });\n return;\n } // otherwise, request succeeded\n\n\n callback(null, responseBody);\n };\n};\n\nfunction getCharset(contentTypeHeader) {\n if (contentTypeHeader === void 0) {\n contentTypeHeader = '';\n }\n\n return contentTypeHeader.toLowerCase().split(';').reduce(function (charset, contentType) {\n var _contentType$split = contentType.split('='),\n type = _contentType$split[0],\n value = _contentType$split[1];\n\n if (type.trim() === 'charset') {\n return value.trim();\n }\n\n return charset;\n }, 'utf-8');\n}\n\nmodule.exports = httpResponseHandler;"],"names":["window","require$$0","httpResponseHandler","callback","decodeResponseBody","err","response","responseBody","cause","charset","getCharset","contentTypeHeader","contentType","_contentType$split","type","value","httpHandler"],"mappings":";;;;;AAEA,MAAIA,IAASC,EAAwB,GAEjCC,IAAsB,SAA6BC,GAAUC,GAAoB;AACnF,WAAIA,MAAuB,WACzBA,IAAqB,KAGhB,SAAUC,GAAKC,GAAUC,GAAc;AAE5C,UAAIF,GAAK;AACP,QAAAF,EAASE,CAAG;AACZ;AAAA,MACD;AAGD,UAAIC,EAAS,cAAc,OAAOA,EAAS,cAAc,KAAK;AAC5D,YAAIE,IAAQD;AAEZ,YAAIH;AACF,cAAIJ,EAAO,aAAa;AACtB,gBAAIS,IAAUC,EAAWJ,EAAS,WAAWA,EAAS,QAAQ,cAAc,CAAC;AAE7E,gBAAI;AACF,cAAAE,IAAQ,IAAI,YAAYC,CAAO,EAAE,OAAOF,CAAY;AAAA,YACrD,QAAW;AAAA,YAAA;AAAA,UACtB;AACU,YAAAC,IAAQ,OAAO,aAAa,MAAM,MAAM,IAAI,WAAWD,CAAY,CAAC;AAIxE,QAAAJ,EAAS;AAAA,UACP,OAAOK;AAAA,QACf,CAAO;AACD;AAAA,MACD;AAGD,MAAAL,EAAS,MAAMI,CAAY;AAAA,IAC5B;AAAA,EACF;AAED,WAASG,EAAWC,GAAmB;AACrC,WAAIA,MAAsB,WACxBA,IAAoB,KAGfA,EAAkB,YAAW,EAAG,MAAM,GAAG,EAAE,OAAO,SAAUF,GAASG,GAAa;AACvF,UAAIC,IAAqBD,EAAY,MAAM,GAAG,GAC1CE,IAAOD,EAAmB,CAAC,GAC3BE,IAAQF,EAAmB,CAAC;AAEhC,aAAIC,EAAK,KAAM,MAAK,YACXC,EAAM,KAAM,IAGdN;AAAA,IACR,GAAE,OAAO;AAAA,EACZ;AAEA,SAAAO,IAAiBd;;","x_google_ignoreList":[0]}
@@ -0,0 +1,169 @@
1
+ import { __module as q } from "../../../../../../../../_virtual/index4.js";
2
+ import { __require as F } from "../../../../../global@4.4.0/node_modules/global/window.js";
3
+ import { __require as N } from "../../../../../@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/extends.js";
4
+ import { __require as J } from "../../../../../is-function@1.0.2/node_modules/is-function/index.js";
5
+ import { __require as z } from "./interceptors.js";
6
+ import { __require as G } from "./retry.js";
7
+ import { __require as B } from "./http-handler.js";
8
+ var S;
9
+ function P() {
10
+ if (S) return q.exports;
11
+ S = 1;
12
+ var H = F(), x = N(), C = J(), X = z(), A = G();
13
+ a.httpHandler = B(), a.requestInterceptorsStorage = new X(), a.responseInterceptorsStorage = new X(), a.retryManager = new A();
14
+ /**
15
+ * @license
16
+ * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
17
+ * Copyright (c) 2014 David Björklund
18
+ * Available under the MIT license
19
+ * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
20
+ */
21
+ var D = function(n) {
22
+ var t = {};
23
+ return n && n.trim().split(`
24
+ `).forEach(function(u) {
25
+ var l = u.indexOf(":"), c = u.slice(0, l).trim().toLowerCase(), y = u.slice(l + 1).trim();
26
+ typeof t[c] > "u" ? t[c] = y : Array.isArray(t[c]) ? t[c].push(y) : t[c] = [t[c], y];
27
+ }), t;
28
+ };
29
+ q.exports = a, q.exports.default = a, a.XMLHttpRequest = H.XMLHttpRequest || j, a.XDomainRequest = "withCredentials" in new a.XMLHttpRequest() ? a.XMLHttpRequest : H.XDomainRequest, k(["get", "put", "post", "patch", "head", "delete"], function(e) {
30
+ a[e === "delete" ? "del" : e] = function(n, t, u) {
31
+ return t = I(n, t, u), t.method = e.toUpperCase(), b(t);
32
+ };
33
+ });
34
+ function k(e, n) {
35
+ for (var t = 0; t < e.length; t++)
36
+ n(e[t]);
37
+ }
38
+ function O(e) {
39
+ for (var n in e)
40
+ if (e.hasOwnProperty(n)) return !1;
41
+ return !0;
42
+ }
43
+ function I(e, n, t) {
44
+ var u = e;
45
+ return C(n) ? (t = n, typeof e == "string" && (u = {
46
+ uri: e
47
+ })) : u = x({}, n, {
48
+ uri: e
49
+ }), u.callback = t, u;
50
+ }
51
+ function a(e, n, t) {
52
+ return n = I(e, n, t), b(n);
53
+ }
54
+ function b(e) {
55
+ if (typeof e.callback > "u")
56
+ throw new Error("callback argument missing");
57
+ if (e.requestType && a.requestInterceptorsStorage.getIsEnabled()) {
58
+ var n = {
59
+ uri: e.uri || e.url,
60
+ headers: e.headers || {},
61
+ body: e.body,
62
+ metadata: e.metadata || {},
63
+ retry: e.retry,
64
+ timeout: e.timeout
65
+ }, t = a.requestInterceptorsStorage.execute(e.requestType, n);
66
+ e.uri = t.uri, e.headers = t.headers, e.body = t.body, e.metadata = t.metadata, e.retry = t.retry, e.timeout = t.timeout;
67
+ }
68
+ var u = !1, l = function(i, d, E) {
69
+ u || (u = !0, e.callback(i, d, E));
70
+ };
71
+ function c() {
72
+ r.readyState === 4 && !a.responseInterceptorsStorage.getIsEnabled() && setTimeout(L, 0);
73
+ }
74
+ function y() {
75
+ var s = void 0;
76
+ if (r.response ? s = r.response : s = r.responseText || U(r), _)
77
+ try {
78
+ s = JSON.parse(s);
79
+ } catch {
80
+ }
81
+ return s;
82
+ }
83
+ function v(s) {
84
+ if (clearTimeout(w), clearTimeout(e.retryTimeout), s instanceof Error || (s = new Error("" + (s || "Unknown XMLHttpRequest Error"))), s.statusCode = 0, !m && a.retryManager.getIsEnabled() && e.retry && e.retry.shouldRetry()) {
85
+ e.retryTimeout = setTimeout(function() {
86
+ e.retry.moveToNextAttempt(), e.xhr = r, b(e);
87
+ }, e.retry.getCurrentFuzzedDelay());
88
+ return;
89
+ }
90
+ if (e.requestType && a.responseInterceptorsStorage.getIsEnabled()) {
91
+ var i = {
92
+ headers: o.headers || {},
93
+ body: o.body,
94
+ responseUrl: r.responseURL,
95
+ responseType: r.responseType
96
+ }, d = a.responseInterceptorsStorage.execute(e.requestType, i);
97
+ o.body = d.body, o.headers = d.headers;
98
+ }
99
+ return l(s, o);
100
+ }
101
+ function L() {
102
+ if (!m) {
103
+ var s;
104
+ clearTimeout(w), clearTimeout(e.retryTimeout), e.useXDR && r.status === void 0 ? s = 200 : s = r.status === 1223 ? 204 : r.status;
105
+ var i = o, d = null;
106
+ if (s !== 0 ? (i = {
107
+ body: y(),
108
+ statusCode: s,
109
+ method: h,
110
+ headers: {},
111
+ url: T,
112
+ rawRequest: r
113
+ }, r.getAllResponseHeaders && (i.headers = D(r.getAllResponseHeaders()))) : d = new Error("Internal XMLHttpRequest Error"), e.requestType && a.responseInterceptorsStorage.getIsEnabled()) {
114
+ var E = {
115
+ headers: i.headers || {},
116
+ body: i.body,
117
+ responseUrl: r.responseURL,
118
+ responseType: r.responseType
119
+ }, M = a.responseInterceptorsStorage.execute(e.requestType, E);
120
+ i.body = M.body, i.headers = M.headers;
121
+ }
122
+ return l(d, i, i.body);
123
+ }
124
+ }
125
+ var r = e.xhr || null;
126
+ r || (e.cors || e.useXDR ? r = new a.XDomainRequest() : r = new a.XMLHttpRequest());
127
+ var p, m, T = r.url = e.uri || e.url, h = r.method = e.method || "GET", g = e.body || e.data, f = r.headers = e.headers || {}, R = !!e.sync, _ = !1, w, o = {
128
+ body: void 0,
129
+ headers: {},
130
+ statusCode: 0,
131
+ method: h,
132
+ url: T,
133
+ rawRequest: r
134
+ };
135
+ if ("json" in e && e.json !== !1 && (_ = !0, f.accept || f.Accept || (f.Accept = "application/json"), h !== "GET" && h !== "HEAD" && (f["content-type"] || f["Content-Type"] || (f["Content-Type"] = "application/json"), g = JSON.stringify(e.json === !0 ? g : e.json))), r.onreadystatechange = c, r.onload = L, r.onerror = v, r.onprogress = function() {
136
+ }, r.onabort = function() {
137
+ m = !0, clearTimeout(e.retryTimeout);
138
+ }, r.ontimeout = v, r.open(h, T, !R, e.username, e.password), R || (r.withCredentials = !!e.withCredentials), !R && e.timeout > 0 && (w = setTimeout(function() {
139
+ if (!m) {
140
+ m = !0, r.abort("timeout");
141
+ var s = new Error("XMLHttpRequest timeout");
142
+ s.code = "ETIMEDOUT", v(s);
143
+ }
144
+ }, e.timeout)), r.setRequestHeader)
145
+ for (p in f)
146
+ f.hasOwnProperty(p) && r.setRequestHeader(p, f[p]);
147
+ else if (e.headers && !O(e.headers))
148
+ throw new Error("Headers cannot be set on an XDomainRequest object");
149
+ return "responseType" in e && (r.responseType = e.responseType), "beforeSend" in e && typeof e.beforeSend == "function" && e.beforeSend(r), r.send(g || null), r;
150
+ }
151
+ function U(e) {
152
+ try {
153
+ if (e.responseType === "document")
154
+ return e.responseXML;
155
+ var n = e.responseXML && e.responseXML.documentElement.nodeName === "parsererror";
156
+ if (e.responseType === "" && !n)
157
+ return e.responseXML;
158
+ } catch {
159
+ }
160
+ return null;
161
+ }
162
+ function j() {
163
+ }
164
+ return q.exports;
165
+ }
166
+ export {
167
+ P as __require
168
+ };
169
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/@videojs+xhr@2.7.0/node_modules/@videojs/xhr/lib/index.js"],"sourcesContent":["\"use strict\";\n\nvar window = require(\"global/window\");\n\nvar _extends = require(\"@babel/runtime/helpers/extends\");\n\nvar isFunction = require('is-function');\n\nvar InterceptorsStorage = require('./interceptors.js');\n\nvar RetryManager = require(\"./retry.js\");\n\ncreateXHR.httpHandler = require('./http-handler.js');\ncreateXHR.requestInterceptorsStorage = new InterceptorsStorage();\ncreateXHR.responseInterceptorsStorage = new InterceptorsStorage();\ncreateXHR.retryManager = new RetryManager();\n/**\n * @license\n * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>\n * Copyright (c) 2014 David Björklund\n * Available under the MIT license\n * <https://github.com/kesla/parse-headers/blob/master/LICENCE>\n */\n\nvar parseHeaders = function parseHeaders(headers) {\n var result = {};\n\n if (!headers) {\n return result;\n }\n\n headers.trim().split('\\n').forEach(function (row) {\n var index = row.indexOf(':');\n var key = row.slice(0, index).trim().toLowerCase();\n var value = row.slice(index + 1).trim();\n\n if (typeof result[key] === 'undefined') {\n result[key] = value;\n } else if (Array.isArray(result[key])) {\n result[key].push(value);\n } else {\n result[key] = [result[key], value];\n }\n });\n return result;\n};\n\nmodule.exports = createXHR; // Allow use of default import syntax in TypeScript\n\nmodule.exports.default = createXHR;\ncreateXHR.XMLHttpRequest = window.XMLHttpRequest || noop;\ncreateXHR.XDomainRequest = \"withCredentials\" in new createXHR.XMLHttpRequest() ? createXHR.XMLHttpRequest : window.XDomainRequest;\nforEachArray([\"get\", \"put\", \"post\", \"patch\", \"head\", \"delete\"], function (method) {\n createXHR[method === \"delete\" ? \"del\" : method] = function (uri, options, callback) {\n options = initParams(uri, options, callback);\n options.method = method.toUpperCase();\n return _createXHR(options);\n };\n});\n\nfunction forEachArray(array, iterator) {\n for (var i = 0; i < array.length; i++) {\n iterator(array[i]);\n }\n}\n\nfunction isEmpty(obj) {\n for (var i in obj) {\n if (obj.hasOwnProperty(i)) return false;\n }\n\n return true;\n}\n\nfunction initParams(uri, options, callback) {\n var params = uri;\n\n if (isFunction(options)) {\n callback = options;\n\n if (typeof uri === \"string\") {\n params = {\n uri: uri\n };\n }\n } else {\n params = _extends({}, options, {\n uri: uri\n });\n }\n\n params.callback = callback;\n return params;\n}\n\nfunction createXHR(uri, options, callback) {\n options = initParams(uri, options, callback);\n return _createXHR(options);\n}\n\nfunction _createXHR(options) {\n if (typeof options.callback === \"undefined\") {\n throw new Error(\"callback argument missing\");\n } // call all registered request interceptors for a given request type:\n\n\n if (options.requestType && createXHR.requestInterceptorsStorage.getIsEnabled()) {\n var requestInterceptorPayload = {\n uri: options.uri || options.url,\n headers: options.headers || {},\n body: options.body,\n metadata: options.metadata || {},\n retry: options.retry,\n timeout: options.timeout\n };\n var updatedPayload = createXHR.requestInterceptorsStorage.execute(options.requestType, requestInterceptorPayload);\n options.uri = updatedPayload.uri;\n options.headers = updatedPayload.headers;\n options.body = updatedPayload.body;\n options.metadata = updatedPayload.metadata;\n options.retry = updatedPayload.retry;\n options.timeout = updatedPayload.timeout;\n }\n\n var called = false;\n\n var callback = function cbOnce(err, response, body) {\n if (!called) {\n called = true;\n options.callback(err, response, body);\n }\n };\n\n function readystatechange() {\n // do not call load 2 times when response interceptors are enabled\n // why do we even need this 2nd load?\n if (xhr.readyState === 4 && !createXHR.responseInterceptorsStorage.getIsEnabled()) {\n setTimeout(loadFunc, 0);\n }\n }\n\n function getBody() {\n // Chrome with requestType=blob throws errors arround when even testing access to responseText\n var body = undefined;\n\n if (xhr.response) {\n body = xhr.response;\n } else {\n body = xhr.responseText || getXml(xhr);\n }\n\n if (isJson) {\n try {\n body = JSON.parse(body);\n } catch (e) {}\n }\n\n return body;\n }\n\n function errorFunc(evt) {\n clearTimeout(timeoutTimer);\n clearTimeout(options.retryTimeout);\n\n if (!(evt instanceof Error)) {\n evt = new Error(\"\" + (evt || \"Unknown XMLHttpRequest Error\"));\n }\n\n evt.statusCode = 0; // we would like to retry on error:\n\n if (!aborted && createXHR.retryManager.getIsEnabled() && options.retry && options.retry.shouldRetry()) {\n options.retryTimeout = setTimeout(function () {\n options.retry.moveToNextAttempt(); // we want to re-use the same options and the same xhr object:\n\n options.xhr = xhr;\n\n _createXHR(options);\n }, options.retry.getCurrentFuzzedDelay());\n return;\n } // call all registered response interceptors for a given request type:\n\n\n if (options.requestType && createXHR.responseInterceptorsStorage.getIsEnabled()) {\n var responseInterceptorPayload = {\n headers: failureResponse.headers || {},\n body: failureResponse.body,\n responseUrl: xhr.responseURL,\n responseType: xhr.responseType\n };\n\n var _updatedPayload = createXHR.responseInterceptorsStorage.execute(options.requestType, responseInterceptorPayload);\n\n failureResponse.body = _updatedPayload.body;\n failureResponse.headers = _updatedPayload.headers;\n }\n\n return callback(evt, failureResponse);\n } // will load the data & process the response in a special response object\n\n\n function loadFunc() {\n if (aborted) return;\n var status;\n clearTimeout(timeoutTimer);\n clearTimeout(options.retryTimeout);\n\n if (options.useXDR && xhr.status === undefined) {\n //IE8 CORS GET successful response doesn't have a status field, but body is fine\n status = 200;\n } else {\n status = xhr.status === 1223 ? 204 : xhr.status;\n }\n\n var response = failureResponse;\n var err = null;\n\n if (status !== 0) {\n response = {\n body: getBody(),\n statusCode: status,\n method: method,\n headers: {},\n url: uri,\n rawRequest: xhr\n };\n\n if (xhr.getAllResponseHeaders) {\n //remember xhr can in fact be XDR for CORS in IE\n response.headers = parseHeaders(xhr.getAllResponseHeaders());\n }\n } else {\n err = new Error(\"Internal XMLHttpRequest Error\");\n } // call all registered response interceptors for a given request type:\n\n\n if (options.requestType && createXHR.responseInterceptorsStorage.getIsEnabled()) {\n var responseInterceptorPayload = {\n headers: response.headers || {},\n body: response.body,\n responseUrl: xhr.responseURL,\n responseType: xhr.responseType\n };\n\n var _updatedPayload2 = createXHR.responseInterceptorsStorage.execute(options.requestType, responseInterceptorPayload);\n\n response.body = _updatedPayload2.body;\n response.headers = _updatedPayload2.headers;\n }\n\n return callback(err, response, response.body);\n }\n\n var xhr = options.xhr || null;\n\n if (!xhr) {\n if (options.cors || options.useXDR) {\n xhr = new createXHR.XDomainRequest();\n } else {\n xhr = new createXHR.XMLHttpRequest();\n }\n }\n\n var key;\n var aborted;\n var uri = xhr.url = options.uri || options.url;\n var method = xhr.method = options.method || \"GET\";\n var body = options.body || options.data;\n var headers = xhr.headers = options.headers || {};\n var sync = !!options.sync;\n var isJson = false;\n var timeoutTimer;\n var failureResponse = {\n body: undefined,\n headers: {},\n statusCode: 0,\n method: method,\n url: uri,\n rawRequest: xhr\n };\n\n if (\"json\" in options && options.json !== false) {\n isJson = true;\n headers[\"accept\"] || headers[\"Accept\"] || (headers[\"Accept\"] = \"application/json\"); //Don't override existing accept header declared by user\n\n if (method !== \"GET\" && method !== \"HEAD\") {\n headers[\"content-type\"] || headers[\"Content-Type\"] || (headers[\"Content-Type\"] = \"application/json\"); //Don't override existing accept header declared by user\n\n body = JSON.stringify(options.json === true ? body : options.json);\n }\n }\n\n xhr.onreadystatechange = readystatechange;\n xhr.onload = loadFunc;\n xhr.onerror = errorFunc; // IE9 must have onprogress be set to a unique function.\n\n xhr.onprogress = function () {// IE must die\n };\n\n xhr.onabort = function () {\n aborted = true;\n clearTimeout(options.retryTimeout);\n };\n\n xhr.ontimeout = errorFunc;\n xhr.open(method, uri, !sync, options.username, options.password); //has to be after open\n\n if (!sync) {\n xhr.withCredentials = !!options.withCredentials;\n } // Cannot set timeout with sync request\n // not setting timeout on the xhr object, because of old webkits etc. not handling that correctly\n // both npm's request and jquery 1.x use this kind of timeout, so this is being consistent\n\n\n if (!sync && options.timeout > 0) {\n timeoutTimer = setTimeout(function () {\n if (aborted) return;\n aborted = true; //IE9 may still call readystatechange\n\n xhr.abort(\"timeout\");\n var e = new Error(\"XMLHttpRequest timeout\");\n e.code = \"ETIMEDOUT\";\n errorFunc(e);\n }, options.timeout);\n }\n\n if (xhr.setRequestHeader) {\n for (key in headers) {\n if (headers.hasOwnProperty(key)) {\n xhr.setRequestHeader(key, headers[key]);\n }\n }\n } else if (options.headers && !isEmpty(options.headers)) {\n throw new Error(\"Headers cannot be set on an XDomainRequest object\");\n }\n\n if (\"responseType\" in options) {\n xhr.responseType = options.responseType;\n }\n\n if (\"beforeSend\" in options && typeof options.beforeSend === \"function\") {\n options.beforeSend(xhr);\n } // Microsoft Edge browser sends \"undefined\" when send is called with undefined value.\n // XMLHttpRequest spec says to pass null as body to indicate no body\n // See https://github.com/naugtur/xhr/issues/100.\n\n\n xhr.send(body || null);\n return xhr;\n}\n\nfunction getXml(xhr) {\n // xhr.responseXML will throw Exception \"InvalidStateError\" or \"DOMException\"\n // See https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML.\n try {\n if (xhr.responseType === \"document\") {\n return xhr.responseXML;\n }\n\n var firefoxBugTakenEffect = xhr.responseXML && xhr.responseXML.documentElement.nodeName === \"parsererror\";\n\n if (xhr.responseType === \"\" && !firefoxBugTakenEffect) {\n return xhr.responseXML;\n }\n } catch (e) {}\n\n return null;\n}\n\nfunction noop() {}"],"names":["window","require$$0","_extends","require$$1","isFunction","require$$2","InterceptorsStorage","require$$3","RetryManager","require$$4","createXHR","require$$5","parseHeaders","headers","result","row","index","key","value","libModule","noop","forEachArray","method","uri","options","callback","initParams","_createXHR","array","iterator","i","isEmpty","obj","params","requestInterceptorPayload","updatedPayload","called","err","response","body","readystatechange","xhr","loadFunc","getBody","getXml","isJson","errorFunc","evt","timeoutTimer","aborted","responseInterceptorPayload","failureResponse","_updatedPayload","status","_updatedPayload2","sync","e","firefoxBugTakenEffect"],"mappings":";;;;;;;;;;;AAEA,MAAIA,IAASC,EAAwB,GAEjCC,IAAWC,EAAyC,GAEpDC,IAAaC,EAAsB,GAEnCC,IAAsBC,EAA4B,GAElDC,IAAeC,EAAqB;AAExC,EAAAC,EAAU,cAAcC,EAA4B,GACpDD,EAAU,6BAA6B,IAAIJ,EAAqB,GAChEI,EAAU,8BAA8B,IAAIJ,EAAqB,GACjEI,EAAU,eAAe,IAAIF,EAAc;AAAA,EAC3C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,MAAII,IAAe,SAAsBC,GAAS;AAChD,QAAIC,IAAS,CAAE;AAEf,WAAKD,KAILA,EAAQ,KAAI,EAAG,MAAM;AAAA,CAAI,EAAE,QAAQ,SAAUE,GAAK;AAChD,UAAIC,IAAQD,EAAI,QAAQ,GAAG,GACvBE,IAAMF,EAAI,MAAM,GAAGC,CAAK,EAAE,KAAM,EAAC,YAAa,GAC9CE,IAAQH,EAAI,MAAMC,IAAQ,CAAC,EAAE,KAAM;AAEvC,MAAI,OAAOF,EAAOG,CAAG,IAAM,MACzBH,EAAOG,CAAG,IAAIC,IACL,MAAM,QAAQJ,EAAOG,CAAG,CAAC,IAClCH,EAAOG,CAAG,EAAE,KAAKC,CAAK,IAEtBJ,EAAOG,CAAG,IAAI,CAACH,EAAOG,CAAG,GAAGC,CAAK;AAAA,IAEvC,CAAG,GACMJ;AAAA,EACR;AAEaK,EAAAA,EAAA,UAAGT,GAEjBS,EAAA,QAAA,UAAyBT,GACzBA,EAAU,iBAAiBV,EAAO,kBAAkBoB,GACpDV,EAAU,iBAAiB,qBAAqB,IAAIA,EAAU,eAAc,IAAKA,EAAU,iBAAiBV,EAAO,gBACnHqB,EAAa,CAAC,OAAO,OAAO,QAAQ,SAAS,QAAQ,QAAQ,GAAG,SAAUC,GAAQ;AAChF,I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,QAAAA,IAAU,IAEVR,EAAI,MAAM,SAAS;AACnB,YAAIe,IAAI,IAAI,MAAM,wBAAwB;AAC1C,QAAAA,EAAE,OAAO,aACTV,EAAUU,CAAC;AAAA;AAAA,IACjB,GAAOhC,EAAQ,OAAO,IAGhBiB,EAAI;AACN,WAAKxB,KAAOJ;AACV,QAAIA,EAAQ,eAAeI,CAAG,KAC5BwB,EAAI,iBAAiBxB,GAAKJ,EAAQI,CAAG,CAAC;AAAA,aAGjCO,EAAQ,WAAW,CAACO,EAAQP,EAAQ,OAAO;AACpD,YAAM,IAAI,MAAM,mDAAmD;AAGrE,WAAI,kBAAkBA,MACpBiB,EAAI,eAAejB,EAAQ,eAGzB,gBAAgBA,KAAW,OAAOA,EAAQ,cAAe,cAC3DA,EAAQ,WAAWiB,CAAG,GAMxBA,EAAI,KAAKF,KAAQ,IAAI,GACdE;AAAA,EACT;AAEA,WAASG,EAAOH,GAAK;AAGnB,QAAI;AACF,UAAIA,EAAI,iBAAiB;AACvB,eAAOA,EAAI;AAGb,UAAIgB,IAAwBhB,EAAI,eAAeA,EAAI,YAAY,gBAAgB,aAAa;AAE5F,UAAIA,EAAI,iBAAiB,MAAM,CAACgB;AAC9B,eAAOhB,EAAI;AAAA,IAEd,QAAW;AAAA,IAAA;AAEZ,WAAO;AAAA,EACT;AAEA,WAASrB,IAAO;AAAA,EAAA;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,75 @@
1
+ var s, c;
2
+ function d() {
3
+ if (c) return s;
4
+ c = 1;
5
+ function u(t, r) {
6
+ var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
7
+ if (e) return (e = e.call(t)).next.bind(e);
8
+ if (Array.isArray(t) || (e = f(t)) || r) {
9
+ e && (t = e);
10
+ var n = 0;
11
+ return function() {
12
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
13
+ };
14
+ }
15
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
17
+ }
18
+ function f(t, r) {
19
+ if (t) {
20
+ if (typeof t == "string") return i(t, r);
21
+ var e = Object.prototype.toString.call(t).slice(8, -1);
22
+ if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
23
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return i(t, r);
24
+ }
25
+ }
26
+ function i(t, r) {
27
+ (r == null || r > t.length) && (r = t.length);
28
+ for (var e = 0, n = new Array(r); e < r; e++)
29
+ n[e] = t[e];
30
+ return n;
31
+ }
32
+ var l = /* @__PURE__ */ function() {
33
+ function t() {
34
+ this.typeToInterceptorsMap_ = /* @__PURE__ */ new Map(), this.enabled_ = !1;
35
+ }
36
+ var r = t.prototype;
37
+ return r.getIsEnabled = function() {
38
+ return this.enabled_;
39
+ }, r.enable = function() {
40
+ this.enabled_ = !0;
41
+ }, r.disable = function() {
42
+ this.enabled_ = !1;
43
+ }, r.reset = function() {
44
+ this.typeToInterceptorsMap_ = /* @__PURE__ */ new Map(), this.enabled_ = !1;
45
+ }, r.addInterceptor = function(n, a) {
46
+ this.typeToInterceptorsMap_.has(n) || this.typeToInterceptorsMap_.set(n, /* @__PURE__ */ new Set());
47
+ var o = this.typeToInterceptorsMap_.get(n);
48
+ return o.has(a) ? !1 : (o.add(a), !0);
49
+ }, r.removeInterceptor = function(n, a) {
50
+ var o = this.typeToInterceptorsMap_.get(n);
51
+ return o && o.has(a) ? (o.delete(a), !0) : !1;
52
+ }, r.clearInterceptorsByType = function(n) {
53
+ var a = this.typeToInterceptorsMap_.get(n);
54
+ return a ? (this.typeToInterceptorsMap_.delete(n), this.typeToInterceptorsMap_.set(n, /* @__PURE__ */ new Set()), !0) : !1;
55
+ }, r.clear = function() {
56
+ return this.typeToInterceptorsMap_.size ? (this.typeToInterceptorsMap_ = /* @__PURE__ */ new Map(), !0) : !1;
57
+ }, r.getForType = function(n) {
58
+ return this.typeToInterceptorsMap_.get(n) || /* @__PURE__ */ new Set();
59
+ }, r.execute = function(n, a) {
60
+ for (var o = this.getForType(n), y = u(o), p; !(p = y()).done; ) {
61
+ var h = p.value;
62
+ try {
63
+ a = h(a);
64
+ } catch {
65
+ }
66
+ }
67
+ return a;
68
+ }, t;
69
+ }();
70
+ return s = l, s;
71
+ }
72
+ export {
73
+ d as __require
74
+ };
75
+ //# sourceMappingURL=interceptors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interceptors.js","sources":["../../../../../../../../../node_modules/.pnpm/@videojs+xhr@2.7.0/node_modules/@videojs/xhr/lib/interceptors.js"],"sourcesContent":["\"use strict\";\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar InterceptorsStorage = /*#__PURE__*/function () {\n function InterceptorsStorage() {\n this.typeToInterceptorsMap_ = new Map();\n this.enabled_ = false;\n }\n\n var _proto = InterceptorsStorage.prototype;\n\n _proto.getIsEnabled = function getIsEnabled() {\n return this.enabled_;\n };\n\n _proto.enable = function enable() {\n this.enabled_ = true;\n };\n\n _proto.disable = function disable() {\n this.enabled_ = false;\n };\n\n _proto.reset = function reset() {\n this.typeToInterceptorsMap_ = new Map();\n this.enabled_ = false;\n };\n\n _proto.addInterceptor = function addInterceptor(type, interceptor) {\n if (!this.typeToInterceptorsMap_.has(type)) {\n this.typeToInterceptorsMap_.set(type, new Set());\n }\n\n var interceptorsSet = this.typeToInterceptorsMap_.get(type);\n\n if (interceptorsSet.has(interceptor)) {\n // already have this interceptor\n return false;\n }\n\n interceptorsSet.add(interceptor);\n return true;\n };\n\n _proto.removeInterceptor = function removeInterceptor(type, interceptor) {\n var interceptorsSet = this.typeToInterceptorsMap_.get(type);\n\n if (interceptorsSet && interceptorsSet.has(interceptor)) {\n interceptorsSet.delete(interceptor);\n return true;\n }\n\n return false;\n };\n\n _proto.clearInterceptorsByType = function clearInterceptorsByType(type) {\n var interceptorsSet = this.typeToInterceptorsMap_.get(type);\n\n if (!interceptorsSet) {\n return false;\n }\n\n this.typeToInterceptorsMap_.delete(type);\n this.typeToInterceptorsMap_.set(type, new Set());\n return true;\n };\n\n _proto.clear = function clear() {\n if (!this.typeToInterceptorsMap_.size) {\n return false;\n }\n\n this.typeToInterceptorsMap_ = new Map();\n return true;\n };\n\n _proto.getForType = function getForType(type) {\n return this.typeToInterceptorsMap_.get(type) || new Set();\n };\n\n _proto.execute = function execute(type, payload) {\n var interceptors = this.getForType(type);\n\n for (var _iterator = _createForOfIteratorHelperLoose(interceptors), _step; !(_step = _iterator()).done;) {\n var interceptor = _step.value;\n\n try {\n payload = interceptor(payload);\n } catch (e) {//ignore\n }\n }\n\n return payload;\n };\n\n return InterceptorsStorage;\n}();\n\nmodule.exports = InterceptorsStorage;"],"names":["_createForOfIteratorHelperLoose","o","allowArrayLike","it","_unsupportedIterableToArray","i","minLen","_arrayLikeToArray","n","arr","len","arr2","InterceptorsStorage","_proto","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I,KAAK,oBAAI,IAAK;AAAA,IAC1D,GAEDD,EAAO,UAAU,SAAiBC,GAAMG,GAAS;AAG/C,eAFIC,IAAe,KAAK,WAAWJ,CAAI,GAE9BK,IAAYnB,EAAgCkB,CAAY,GAAGE,GAAO,EAAEA,IAAQD,EAAW,GAAE,QAAO;AACvG,YAAIJ,IAAcK,EAAM;AAExB,YAAI;AACF,UAAAH,IAAUF,EAAYE,CAAO;AAAA,QAC9B,QAAW;AAAA,QAClB;AAAA,MACA;AAEI,aAAOA;AAAA,IACR,GAEML;AAAA,EACT,EAAG;AAEH,SAAAM,IAAiBN;;","x_google_ignoreList":[0]}
@@ -0,0 +1,70 @@
1
+ var n, s;
2
+ function _() {
3
+ if (s) return n;
4
+ s = 1;
5
+ var l = /* @__PURE__ */ function() {
6
+ function i() {
7
+ this.maxAttempts_ = 1, this.delayFactor_ = 0.1, this.fuzzFactor_ = 0.1, this.initialDelay_ = 1e3, this.enabled_ = !1;
8
+ }
9
+ var e = i.prototype;
10
+ return e.getIsEnabled = function() {
11
+ return this.enabled_;
12
+ }, e.enable = function() {
13
+ this.enabled_ = !0;
14
+ }, e.disable = function() {
15
+ this.enabled_ = !1;
16
+ }, e.reset = function() {
17
+ this.maxAttempts_ = 1, this.delayFactor_ = 0.1, this.fuzzFactor_ = 0.1, this.initialDelay_ = 1e3, this.enabled_ = !1;
18
+ }, e.getMaxAttempts = function() {
19
+ return this.maxAttempts_;
20
+ }, e.setMaxAttempts = function(a) {
21
+ this.maxAttempts_ = a;
22
+ }, e.getDelayFactor = function() {
23
+ return this.delayFactor_;
24
+ }, e.setDelayFactor = function(a) {
25
+ this.delayFactor_ = a;
26
+ }, e.getFuzzFactor = function() {
27
+ return this.fuzzFactor_;
28
+ }, e.setFuzzFactor = function(a) {
29
+ this.fuzzFactor_ = a;
30
+ }, e.getInitialDelay = function() {
31
+ return this.initialDelay_;
32
+ }, e.setInitialDelay = function(a) {
33
+ this.initialDelay_ = a;
34
+ }, e.createRetry = function(a) {
35
+ var r = a === void 0 ? {} : a, o = r.maxAttempts, c = r.delayFactor, y = r.fuzzFactor, h = r.initialDelay;
36
+ return new u({
37
+ maxAttempts: o || this.maxAttempts_,
38
+ delayFactor: c || this.delayFactor_,
39
+ fuzzFactor: y || this.fuzzFactor_,
40
+ initialDelay: h || this.initialDelay_
41
+ });
42
+ }, i;
43
+ }(), u = /* @__PURE__ */ function() {
44
+ function i(t) {
45
+ this.maxAttempts_ = t.maxAttempts, this.delayFactor_ = t.delayFactor, this.fuzzFactor_ = t.fuzzFactor, this.currentDelay_ = t.initialDelay, this.currentAttempt_ = 1;
46
+ }
47
+ var e = i.prototype;
48
+ return e.moveToNextAttempt = function() {
49
+ this.currentAttempt_++;
50
+ var a = this.currentDelay_ * this.delayFactor_;
51
+ this.currentDelay_ = this.currentDelay_ + a;
52
+ }, e.shouldRetry = function() {
53
+ return this.currentAttempt_ < this.maxAttempts_;
54
+ }, e.getCurrentDelay = function() {
55
+ return this.currentDelay_;
56
+ }, e.getCurrentMinPossibleDelay = function() {
57
+ return (1 - this.fuzzFactor_) * this.currentDelay_;
58
+ }, e.getCurrentMaxPossibleDelay = function() {
59
+ return (1 + this.fuzzFactor_) * this.currentDelay_;
60
+ }, e.getCurrentFuzzedDelay = function() {
61
+ var a = this.getCurrentMinPossibleDelay(), r = this.getCurrentMaxPossibleDelay();
62
+ return a + Math.random() * (r - a);
63
+ }, i;
64
+ }();
65
+ return n = l, n;
66
+ }
67
+ export {
68
+ _ as __require
69
+ };
70
+ //# sourceMappingURL=retry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.js","sources":["../../../../../../../../../node_modules/.pnpm/@videojs+xhr@2.7.0/node_modules/@videojs/xhr/lib/retry.js"],"sourcesContent":["\"use strict\";\n\nvar RetryManager = /*#__PURE__*/function () {\n function RetryManager() {\n this.maxAttempts_ = 1;\n this.delayFactor_ = 0.1;\n this.fuzzFactor_ = 0.1;\n this.initialDelay_ = 1000;\n this.enabled_ = false;\n }\n\n var _proto = RetryManager.prototype;\n\n _proto.getIsEnabled = function getIsEnabled() {\n return this.enabled_;\n };\n\n _proto.enable = function enable() {\n this.enabled_ = true;\n };\n\n _proto.disable = function disable() {\n this.enabled_ = false;\n };\n\n _proto.reset = function reset() {\n this.maxAttempts_ = 1;\n this.delayFactor_ = 0.1;\n this.fuzzFactor_ = 0.1;\n this.initialDelay_ = 1000;\n this.enabled_ = false;\n };\n\n _proto.getMaxAttempts = function getMaxAttempts() {\n return this.maxAttempts_;\n };\n\n _proto.setMaxAttempts = function setMaxAttempts(maxAttempts) {\n this.maxAttempts_ = maxAttempts;\n };\n\n _proto.getDelayFactor = function getDelayFactor() {\n return this.delayFactor_;\n };\n\n _proto.setDelayFactor = function setDelayFactor(delayFactor) {\n this.delayFactor_ = delayFactor;\n };\n\n _proto.getFuzzFactor = function getFuzzFactor() {\n return this.fuzzFactor_;\n };\n\n _proto.setFuzzFactor = function setFuzzFactor(fuzzFactor) {\n this.fuzzFactor_ = fuzzFactor;\n };\n\n _proto.getInitialDelay = function getInitialDelay() {\n return this.initialDelay_;\n };\n\n _proto.setInitialDelay = function setInitialDelay(initialDelay) {\n this.initialDelay_ = initialDelay;\n };\n\n _proto.createRetry = function createRetry(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n maxAttempts = _ref.maxAttempts,\n delayFactor = _ref.delayFactor,\n fuzzFactor = _ref.fuzzFactor,\n initialDelay = _ref.initialDelay;\n\n return new Retry({\n maxAttempts: maxAttempts || this.maxAttempts_,\n delayFactor: delayFactor || this.delayFactor_,\n fuzzFactor: fuzzFactor || this.fuzzFactor_,\n initialDelay: initialDelay || this.initialDelay_\n });\n };\n\n return RetryManager;\n}();\n\nvar Retry = /*#__PURE__*/function () {\n function Retry(options) {\n this.maxAttempts_ = options.maxAttempts;\n this.delayFactor_ = options.delayFactor;\n this.fuzzFactor_ = options.fuzzFactor;\n this.currentDelay_ = options.initialDelay;\n this.currentAttempt_ = 1;\n }\n\n var _proto2 = Retry.prototype;\n\n _proto2.moveToNextAttempt = function moveToNextAttempt() {\n this.currentAttempt_++;\n var delayDelta = this.currentDelay_ * this.delayFactor_;\n this.currentDelay_ = this.currentDelay_ + delayDelta;\n };\n\n _proto2.shouldRetry = function shouldRetry() {\n return this.currentAttempt_ < this.maxAttempts_;\n };\n\n _proto2.getCurrentDelay = function getCurrentDelay() {\n return this.currentDelay_;\n };\n\n _proto2.getCurrentMinPossibleDelay = function getCurrentMinPossibleDelay() {\n return (1 - this.fuzzFactor_) * this.currentDelay_;\n };\n\n _proto2.getCurrentMaxPossibleDelay = function getCurrentMaxPossibleDelay() {\n return (1 + this.fuzzFactor_) * this.currentDelay_;\n }\n /**\n * For example fuzzFactor is 0.1\n * This means ±10% deviation\n * So if we have delay as 1000\n * This function can generate any value from 900 to 1100\n */\n ;\n\n _proto2.getCurrentFuzzedDelay = function getCurrentFuzzedDelay() {\n var lowValue = this.getCurrentMinPossibleDelay();\n var highValue = this.getCurrentMaxPossibleDelay();\n return lowValue + Math.random() * (highValue - lowValue);\n };\n\n return Retry;\n}();\n\nmodule.exports = RetryManager;"],"names":["RetryManager","_proto","maxAttempts","delayFactor","fuzzFactor","initialDelay","_temp","_ref","Retry","options","_proto2","delayDelta","lowValue","highValue","retry"],"mappings":";;;;AAEA,MAAIA,IAA4B,2BAAY;AAC1C,aAASA,IAAe;AACtB,WAAK,eAAe,GACpB,KAAK,eAAe,KACpB,KAAK,cAAc,KACnB,KAAK,gBAAgB,KACrB,KAAK,WAAW;AAAA,IACpB;AAEE,QAAIC,IAASD,EAAa;AAE1B,WAAAC,EAAO,eAAe,WAAwB;AAC5C,aAAO,KAAK;AAAA,IACb,GAEDA,EAAO,SAAS,WAAkB;AAChC,WAAK,WAAW;AAAA,IACjB,GAEDA,EAAO,UAAU,WAAmB;AAClC,WAAK,WAAW;AAAA,IACjB,GAEDA,EAAO,QAAQ,WAAiB;AAC9B,WAAK,eAAe,GACpB,KAAK,eAAe,KACpB,KAAK,cAAc,KACn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;AAC3C,WAAK,gBAAgB,KAAK,gBAAgBA;AAAA,IAC3C,GAEDD,EAAQ,cAAc,WAAuB;AAC3C,aAAO,KAAK,kBAAkB,KAAK;AAAA,IACpC,GAEDA,EAAQ,kBAAkB,WAA2B;AACnD,aAAO,KAAK;AAAA,IACb,GAEDA,EAAQ,6BAA6B,WAAsC;AACzE,cAAQ,IAAI,KAAK,eAAe,KAAK;AAAA,IACtC,GAEDA,EAAQ,6BAA6B,WAAsC;AACzE,cAAQ,IAAI,KAAK,eAAe,KAAK;AAAA,IACzC,GASEA,EAAQ,wBAAwB,WAAiC;AAC/D,UAAIE,IAAW,KAAK,2BAA4B,GAC5CC,IAAY,KAAK,2BAA4B;AACjD,aAAOD,IAAW,KAAK,OAAM,KAAMC,IAAYD;AAAA,IAChD,GAEMJ;AAAA,EACT,EAAG;AAEH,SAAAM,IAAiBd;;","x_google_ignoreList":[0]}
@@ -0,0 +1,124 @@
1
+ import { __exports as t } from "../../../../../../../../_virtual/conventions.js";
2
+ var M;
3
+ function L() {
4
+ if (M) return t;
5
+ M = 1;
6
+ function a(n, r, e) {
7
+ if (e === void 0 && (e = Array.prototype), n && typeof e.find == "function")
8
+ return e.find.call(n, r);
9
+ for (var o = 0; o < n.length; o++)
10
+ if (Object.prototype.hasOwnProperty.call(n, o)) {
11
+ var u = n[o];
12
+ if (r.call(void 0, u, o, n))
13
+ return u;
14
+ }
15
+ }
16
+ function f(n, r) {
17
+ return r === void 0 && (r = Object), r && typeof r.freeze == "function" ? r.freeze(n) : n;
18
+ }
19
+ function w(n, r) {
20
+ if (n === null || typeof n != "object")
21
+ throw new TypeError("target is not an object");
22
+ for (var e in r)
23
+ Object.prototype.hasOwnProperty.call(r, e) && (n[e] = r[e]);
24
+ return n;
25
+ }
26
+ var i = f({
27
+ /**
28
+ * `text/html`, the only mime type that triggers treating an XML document as HTML.
29
+ *
30
+ * @see DOMParser.SupportedType.isHTML
31
+ * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration
32
+ * @see https://en.wikipedia.org/wiki/HTML Wikipedia
33
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
34
+ * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring WHATWG HTML Spec
35
+ */
36
+ HTML: "text/html",
37
+ /**
38
+ * Helper method to check a mime type if it indicates an HTML document
39
+ *
40
+ * @param {string} [value]
41
+ * @returns {boolean}
42
+ *
43
+ * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration
44
+ * @see https://en.wikipedia.org/wiki/HTML Wikipedia
45
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
46
+ * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */
47
+ isHTML: function(n) {
48
+ return n === i.HTML;
49
+ },
50
+ /**
51
+ * `application/xml`, the standard mime type for XML documents.
52
+ *
53
+ * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType registration
54
+ * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303
55
+ * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia
56
+ */
57
+ XML_APPLICATION: "application/xml",
58
+ /**
59
+ * `text/html`, an alias for `application/xml`.
60
+ *
61
+ * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303
62
+ * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration
63
+ * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia
64
+ */
65
+ XML_TEXT: "text/xml",
66
+ /**
67
+ * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace,
68
+ * but is parsed as an XML document.
69
+ *
70
+ * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType registration
71
+ * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec
72
+ * @see https://en.wikipedia.org/wiki/XHTML Wikipedia
73
+ */
74
+ XML_XHTML_APPLICATION: "application/xhtml+xml",
75
+ /**
76
+ * `image/svg+xml`,
77
+ *
78
+ * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration
79
+ * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1
80
+ * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia
81
+ */
82
+ XML_SVG_IMAGE: "image/svg+xml"
83
+ }), p = f({
84
+ /**
85
+ * The XHTML namespace.
86
+ *
87
+ * @see http://www.w3.org/1999/xhtml
88
+ */
89
+ HTML: "http://www.w3.org/1999/xhtml",
90
+ /**
91
+ * Checks if `uri` equals `NAMESPACE.HTML`.
92
+ *
93
+ * @param {string} [uri]
94
+ *
95
+ * @see NAMESPACE.HTML
96
+ */
97
+ isHTML: function(n) {
98
+ return n === p.HTML;
99
+ },
100
+ /**
101
+ * The SVG namespace.
102
+ *
103
+ * @see http://www.w3.org/2000/svg
104
+ */
105
+ SVG: "http://www.w3.org/2000/svg",
106
+ /**
107
+ * The `xml:` namespace.
108
+ *
109
+ * @see http://www.w3.org/XML/1998/namespace
110
+ */
111
+ XML: "http://www.w3.org/XML/1998/namespace",
112
+ /**
113
+ * The `xmlns:` namespace
114
+ *
115
+ * @see https://www.w3.org/2000/xmlns/
116
+ */
117
+ XMLNS: "http://www.w3.org/2000/xmlns/"
118
+ });
119
+ return t.assign = w, t.find = a, t.freeze = f, t.MIME_TYPE = i, t.NAMESPACE = p, t;
120
+ }
121
+ export {
122
+ L as __require
123
+ };
124
+ //# sourceMappingURL=conventions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conventions.js","sources":["../../../../../../../../../node_modules/.pnpm/@xmldom+xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/conventions.js"],"sourcesContent":["'use strict'\n\n/**\n * Ponyfill for `Array.prototype.find` which is only available in ES6 runtimes.\n *\n * Works with anything that has a `length` property and index access properties, including NodeList.\n *\n * @template {unknown} T\n * @param {Array<T> | ({length:number, [number]: T})} list\n * @param {function (item: T, index: number, list:Array<T> | ({length:number, [number]: T})):boolean} predicate\n * @param {Partial<Pick<ArrayConstructor['prototype'], 'find'>>?} ac `Array.prototype` by default,\n * \t\t\t\tallows injecting a custom implementation in tests\n * @returns {T | undefined}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find\n * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.find\n */\nfunction find(list, predicate, ac) {\n\tif (ac === undefined) {\n\t\tac = Array.prototype;\n\t}\n\tif (list && typeof ac.find === 'function') {\n\t\treturn ac.find.call(list, predicate);\n\t}\n\tfor (var i = 0; i < list.length; i++) {\n\t\tif (Object.prototype.hasOwnProperty.call(list, i)) {\n\t\t\tvar item = list[i];\n\t\t\tif (predicate.call(undefined, item, i, list)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * \"Shallow freezes\" an object to render it immutable.\n * Uses `Object.freeze` if available,\n * otherwise the immutability is only in the type.\n *\n * Is used to create \"enum like\" objects.\n *\n * @template T\n * @param {T} object the object to freeze\n * @param {Pick<ObjectConstructor, 'freeze'> = Object} oc `Object` by default,\n * \t\t\t\tallows to inject custom object constructor for tests\n * @returns {Readonly<T>}\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n */\nfunction freeze(object, oc) {\n\tif (oc === undefined) {\n\t\toc = Object\n\t}\n\treturn oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object\n}\n\n/**\n * Since we can not rely on `Object.assign` we provide a simplified version\n * that is sufficient for our needs.\n *\n * @param {Object} target\n * @param {Object | null | undefined} source\n *\n * @returns {Object} target\n * @throws TypeError if target is not an object\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign\n */\nfunction assign(target, source) {\n\tif (target === null || typeof target !== 'object') {\n\t\tthrow new TypeError('target is not an object')\n\t}\n\tfor (var key in source) {\n\t\tif (Object.prototype.hasOwnProperty.call(source, key)) {\n\t\t\ttarget[key] = source[key]\n\t\t}\n\t}\n\treturn target\n}\n\n/**\n * All mime types that are allowed as input to `DOMParser.parseFromString`\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#Argument02 MDN\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparsersupportedtype WHATWG HTML Spec\n * @see DOMParser.prototype.parseFromString\n */\nvar MIME_TYPE = freeze({\n\t/**\n\t * `text/html`, the only mime type that triggers treating an XML document as HTML.\n\t *\n\t * @see DOMParser.SupportedType.isHTML\n\t * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n\t * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring WHATWG HTML Spec\n\t */\n\tHTML: 'text/html',\n\n\t/**\n\t * Helper method to check a mime type if it indicates an HTML document\n\t *\n\t * @param {string} [value]\n\t * @returns {boolean}\n\t *\n\t * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n\t * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring \t */\n\tisHTML: function (value) {\n\t\treturn value === MIME_TYPE.HTML\n\t},\n\n\t/**\n\t * `application/xml`, the standard mime type for XML documents.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType registration\n\t * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303\n\t * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n\t */\n\tXML_APPLICATION: 'application/xml',\n\n\t/**\n\t * `text/html`, an alias for `application/xml`.\n\t *\n\t * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303\n\t * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n\t */\n\tXML_TEXT: 'text/xml',\n\n\t/**\n\t * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace,\n\t * but is parsed as an XML document.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType registration\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec\n\t * @see https://en.wikipedia.org/wiki/XHTML Wikipedia\n\t */\n\tXML_XHTML_APPLICATION: 'application/xhtml+xml',\n\n\t/**\n\t * `image/svg+xml`,\n\t *\n\t * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration\n\t * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1\n\t * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia\n\t */\n\tXML_SVG_IMAGE: 'image/svg+xml',\n})\n\n/**\n * Namespaces that are used in this code base.\n *\n * @see http://www.w3.org/TR/REC-xml-names\n */\nvar NAMESPACE = freeze({\n\t/**\n\t * The XHTML namespace.\n\t *\n\t * @see http://www.w3.org/1999/xhtml\n\t */\n\tHTML: 'http://www.w3.org/1999/xhtml',\n\n\t/**\n\t * Checks if `uri` equals `NAMESPACE.HTML`.\n\t *\n\t * @param {string} [uri]\n\t *\n\t * @see NAMESPACE.HTML\n\t */\n\tisHTML: function (uri) {\n\t\treturn uri === NAMESPACE.HTML\n\t},\n\n\t/**\n\t * The SVG namespace.\n\t *\n\t * @see http://www.w3.org/2000/svg\n\t */\n\tSVG: 'http://www.w3.org/2000/svg',\n\n\t/**\n\t * The `xml:` namespace.\n\t *\n\t * @see http://www.w3.org/XML/1998/namespace\n\t */\n\tXML: 'http://www.w3.org/XML/1998/namespace',\n\n\t/**\n\t * The `xmlns:` namespace\n\t *\n\t * @see https://www.w3.org/2000/xmlns/\n\t */\n\tXMLNS: 'http://www.w3.org/2000/xmlns/',\n})\n\nexports.assign = assign;\nexports.find = find;\nexports.freeze = freeze;\nexports.MIME_TYPE = MIME_TYPE;\nexports.NAMESPACE = NAMESPACE;\n"],"names":["find","list","predicate","ac","i","item","freeze","object","oc","assign","target","source","key","MIME_TYPE","value","NAMESPACE","uri","conventions"],"mappings":";;;;;AAiBA,WAASA,EAAKC,GAAMC,GAAWC,GAAI;AAIlC,QAHIA,MAAO,WACVA,IAAK,MAAM,YAERF,KAAQ,OAAOE,EAAG,QAAS;AAC9B,aAAOA,EAAG,KAAK,KAAKF,GAAMC,CAAS;AAEpC,aAASE,IAAI,GAAGA,IAAIH,EAAK,QAAQG;AAChC,UAAI,OAAO,UAAU,eAAe,KAAKH,GAAMG,CAAC,GAAG;AAClD,YAAIC,IAAOJ,EAAKG,CAAC;AACjB,YAAIF,EAAU,KAAK,QAAWG,GAAMD,GAAGH,CAAI;AAC1C,iBAAOI;AAAA,MAEX;AAAA,EAEA;AAiBA,WAASC,EAAOC,GAAQC,GAAI;AAC3B,WAAIA,MAAO,WACVA,IAAK,SAECA,KAAM,OAAOA,EAAG,UAAW,aAAaA,EAAG,OAAOD,CAAM,IAAIA;AAAA,EACpE;AAeA,WAASE,EAAOC,GAAQC,GAAQ;AAC/B,QAAID,MAAW,QAAQ,OAAOA,KAAW;AACxC,YAAM,IAAI,UAAU,yBAAyB;AAE9C,aAASE,KAAOD;AACf,MAAI,OAAO,UAAU,eAAe,KAAKA,GAAQC,CAAG,MACnDF,EAAOE,CAAG,IAAID,EAAOC,CAAG;AAG1B,WAAOF;AAAA,EACR;AASA,MAAIG,IAAYP,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUtB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAYN,QAAQ,SAAUQ,GAAO;AACxB,aAAOA,MAAUD,EAAU;AAAA,IAC3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