@salla.sa/twilight-components 2.14.392 → 2.14.394

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 (290) hide show
  1. package/dist/cjs/{filepond-D-ur1GA-.js → filepond-C_gLbAbF.js} +10 -5
  2. package/dist/cjs/{filepond-plugin-file-poster-DigEeKId.js → filepond-plugin-file-poster-DXWo2FUU.js} +10 -6
  3. package/dist/cjs/{filepond-plugin-file-validate-size-R9el3Yro.js → filepond-plugin-file-validate-size-fBXMP7ez.js} +1 -1
  4. package/dist/cjs/filepond-plugin-file-validate-type-DEo7juC7.js +271 -0
  5. package/dist/cjs/{filepond-plugin-image-edit-bhI8kqN_.js → filepond-plugin-image-edit-4j4e1VEp.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-COXZUVRV.js → filepond-plugin-image-exif-orientation-DWqiXxv1.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-COP8QJBf.js → filepond-plugin-image-preview-emT_teia.js} +1 -1
  8. package/dist/cjs/{index-CGnPURjZ.js → index-B03mYCWz.js} +1206 -817
  9. package/dist/cjs/{index-BILBEE9f.js → index-Y-2uyQDK.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  19. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-count-down.cjs.entry.js +33 -9
  27. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-notifications.cjs.entry.js +48 -3
  51. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-slider.cjs.entry.js +19 -13
  75. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  86. package/dist/cjs/twilight.cjs.js +1 -1
  87. package/dist/cjs/{vanilla-picker-DI3TImGd.js → vanilla-picker-CKZvBtHS.js} +1 -1
  88. package/dist/collection/components/salla-count-down/salla-count-down.js +32 -8
  89. package/dist/collection/components/salla-file-upload/salla-file-upload.css +1 -1
  90. package/dist/collection/components/salla-file-upload/salla-file-upload.js +1 -1
  91. package/dist/collection/components/salla-notifications/salla-notifications.js +47 -2
  92. package/dist/collection/components/salla-slider/salla-slider.css +9 -2
  93. package/dist/components/axios.js +1123 -791
  94. package/dist/components/filepond-plugin-file-poster.js +9 -5
  95. package/dist/components/filepond-plugin-file-validate-type.js +215 -231
  96. package/dist/components/filepond.js +9 -4
  97. package/dist/components/index.js +83 -26
  98. package/dist/components/salla-count-down2.js +32 -8
  99. package/dist/components/salla-file-upload2.js +1 -1
  100. package/dist/components/salla-notifications.js +47 -2
  101. package/dist/components/salla-slider2.js +18 -12
  102. package/dist/esm/{filepond-kTbl0kuh.js → filepond-Be7JObSq.js} +10 -5
  103. package/dist/esm/{filepond-plugin-file-poster-CyywnjKv.js → filepond-plugin-file-poster-DF0NWKCQ.js} +10 -6
  104. package/dist/esm/{filepond-plugin-file-validate-size-DgteZhje.js → filepond-plugin-file-validate-size-DJFlJHtE.js} +1 -1
  105. package/dist/esm/filepond-plugin-file-validate-type-DykpLW1Z.js +269 -0
  106. package/dist/esm/{filepond-plugin-image-edit-pZ_mETE7.js → filepond-plugin-image-edit-CyIHxrnW.js} +1 -1
  107. package/dist/esm/{filepond-plugin-image-exif-orientation-CjKYl7HL.js → filepond-plugin-image-exif-orientation-DbCOAhSu.js} +1 -1
  108. package/dist/esm/{filepond-plugin-image-preview-BzJTl_2A.js → filepond-plugin-image-preview-CGRGZcft.js} +1 -1
  109. package/dist/esm/{index-C23tPnnH.js → index-Cz6cYzxG.js} +1206 -817
  110. package/dist/esm/{index-3Kis_Ivk.js → index-_kPnZdm0.js} +1 -1
  111. package/dist/esm/loader.js +2 -2
  112. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  113. package/dist/esm/salla-accordion_6.entry.js +1 -1
  114. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  115. package/dist/esm/salla-advertisement.entry.js +1 -1
  116. package/dist/esm/salla-alert_2.entry.js +1 -1
  117. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  118. package/dist/esm/salla-apps-icons.entry.js +1 -1
  119. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  120. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  121. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  122. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  123. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  124. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  125. package/dist/esm/salla-contacts.entry.js +1 -1
  126. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  127. package/dist/esm/salla-count-down.entry.js +33 -9
  128. package/dist/esm/salla-custom-fields.entry.js +1 -1
  129. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  130. package/dist/esm/salla-filters-widget.entry.js +1 -1
  131. package/dist/esm/salla-filters.entry.js +1 -1
  132. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  133. package/dist/esm/salla-gifting.entry.js +1 -1
  134. package/dist/esm/salla-hook.entry.js +1 -1
  135. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  136. package/dist/esm/salla-installment.entry.js +1 -1
  137. package/dist/esm/salla-list-tile.entry.js +1 -1
  138. package/dist/esm/salla-localization-modal.entry.js +1 -1
  139. package/dist/esm/salla-login-modal.entry.js +1 -1
  140. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  141. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  142. package/dist/esm/salla-loyalty.entry.js +1 -1
  143. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  144. package/dist/esm/salla-map.entry.js +1 -1
  145. package/dist/esm/salla-menu.entry.js +1 -1
  146. package/dist/esm/salla-metadata.entry.js +1 -1
  147. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  148. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  149. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  150. package/dist/esm/salla-notification-item.entry.js +1 -1
  151. package/dist/esm/salla-notifications.entry.js +48 -3
  152. package/dist/esm/salla-offer-modal.entry.js +1 -1
  153. package/dist/esm/salla-offer.entry.js +1 -1
  154. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  155. package/dist/esm/salla-order-details-options.entry.js +1 -1
  156. package/dist/esm/salla-order-details.entry.js +1 -1
  157. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  158. package/dist/esm/salla-order-edit.entry.js +1 -1
  159. package/dist/esm/salla-order-summary.entry.js +1 -1
  160. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  161. package/dist/esm/salla-orders.entry.js +1 -1
  162. package/dist/esm/salla-payments.entry.js +1 -1
  163. package/dist/esm/salla-placeholder.entry.js +1 -1
  164. package/dist/esm/salla-price-range.entry.js +1 -1
  165. package/dist/esm/salla-product-card.entry.js +1 -1
  166. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  167. package/dist/esm/salla-products-list.entry.js +1 -1
  168. package/dist/esm/salla-products-slider.entry.js +1 -1
  169. package/dist/esm/salla-progress-bar.entry.js +1 -1
  170. package/dist/esm/salla-quick-order.entry.js +1 -1
  171. package/dist/esm/salla-rating-modal.entry.js +1 -1
  172. package/dist/esm/salla-scopes.entry.js +1 -1
  173. package/dist/esm/salla-search.entry.js +1 -1
  174. package/dist/esm/salla-skeleton.entry.js +1 -1
  175. package/dist/esm/salla-slider.entry.js +19 -13
  176. package/dist/esm/salla-social-share.entry.js +1 -1
  177. package/dist/esm/salla-social.entry.js +1 -1
  178. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  179. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  180. package/dist/esm/salla-tooltip.entry.js +1 -1
  181. package/dist/esm/salla-trust-badges.entry.js +1 -1
  182. package/dist/esm/salla-user-menu.entry.js +1 -1
  183. package/dist/esm/salla-user-profile.entry.js +1 -1
  184. package/dist/esm/salla-user-settings.entry.js +1 -1
  185. package/dist/esm/salla-verify.entry.js +1 -1
  186. package/dist/esm/salla-wallet.entry.js +1 -1
  187. package/dist/esm/twilight.js +2 -2
  188. package/dist/esm/{vanilla-picker-CEy5x8Cf.js → vanilla-picker-C_YV5LtA.js} +1 -1
  189. package/dist/twilight/p-0200cddd.entry.js +4 -0
  190. package/dist/twilight/p-04dc0b71.entry.js +4 -0
  191. package/dist/twilight/{p-f251e744.entry.js → p-0bac200e.entry.js} +1 -1
  192. package/dist/twilight/{p-1899f283.entry.js → p-0ef99df1.entry.js} +1 -1
  193. package/dist/twilight/{p-82e3c734.entry.js → p-1087f0dd.entry.js} +1 -1
  194. package/dist/twilight/{p-2a1871c2.entry.js → p-17dd8b68.entry.js} +1 -1
  195. package/dist/twilight/{p-5d37cc33.entry.js → p-25a9bf1b.entry.js} +1 -1
  196. package/dist/twilight/{p-3745a7d0.entry.js → p-2602927d.entry.js} +1 -1
  197. package/dist/twilight/{p-54f65187.entry.js → p-268695ff.entry.js} +1 -1
  198. package/dist/twilight/{p-b6ded196.entry.js → p-34920aac.entry.js} +1 -1
  199. package/dist/twilight/p-3656b48d.entry.js +4 -0
  200. package/dist/twilight/{p-b4f07395.entry.js → p-3857beb4.entry.js} +1 -1
  201. package/dist/twilight/{p-f1f74b41.entry.js → p-39c601e3.entry.js} +1 -1
  202. package/dist/twilight/{p-c68f3054.entry.js → p-3c810881.entry.js} +1 -1
  203. package/dist/twilight/{p-7b717899.entry.js → p-3cf5c61f.entry.js} +1 -1
  204. package/dist/twilight/{p-9f23dd30.entry.js → p-413a7236.entry.js} +1 -1
  205. package/dist/twilight/{p-1dbaefb8.entry.js → p-42778349.entry.js} +1 -1
  206. package/dist/twilight/{p-bdcf3926.entry.js → p-45e4f6f4.entry.js} +1 -1
  207. package/dist/twilight/{p-3a5aaa20.entry.js → p-4680956b.entry.js} +1 -1
  208. package/dist/twilight/{p-4e00f827.entry.js → p-468b999f.entry.js} +1 -1
  209. package/dist/twilight/{p-e89812d8.entry.js → p-46d1823f.entry.js} +1 -1
  210. package/dist/twilight/{p-9deae4f4.entry.js → p-49db497f.entry.js} +1 -1
  211. package/dist/twilight/{p-ff6f769c.entry.js → p-4b033276.entry.js} +1 -1
  212. package/dist/twilight/{p-866b297b.entry.js → p-4f7bc9c3.entry.js} +1 -1
  213. package/dist/twilight/{p-81f6638f.entry.js → p-543ee624.entry.js} +1 -1
  214. package/dist/twilight/{p-81f648a2.entry.js → p-5957f774.entry.js} +1 -1
  215. package/dist/twilight/{p-97df32eb.entry.js → p-5a4f0b99.entry.js} +1 -1
  216. package/dist/twilight/{p-5ef1b170.entry.js → p-5a8c0fd2.entry.js} +1 -1
  217. package/dist/twilight/{p-05663bb1.entry.js → p-5ab7a295.entry.js} +1 -1
  218. package/dist/twilight/{p-ba4b672c.entry.js → p-5e496aaa.entry.js} +1 -1
  219. package/dist/twilight/{p-1c215c8c.entry.js → p-5f440956.entry.js} +1 -1
  220. package/dist/twilight/{p-face0448.entry.js → p-60fafcd9.entry.js} +1 -1
  221. package/dist/twilight/{p-2aa48902.entry.js → p-708f02db.entry.js} +1 -1
  222. package/dist/twilight/{p-8c6db6d7.entry.js → p-7829ea8a.entry.js} +1 -1
  223. package/dist/twilight/{p-c8aa5377.entry.js → p-7d3e592a.entry.js} +1 -1
  224. package/dist/twilight/{p-81f76d49.entry.js → p-81876026.entry.js} +1 -1
  225. package/dist/twilight/{p-194d87c6.entry.js → p-8306ef5e.entry.js} +1 -1
  226. package/dist/twilight/{p-f8b6967f.entry.js → p-8403cd93.entry.js} +1 -1
  227. package/dist/twilight/{p-ce9fee6d.entry.js → p-8474c4f6.entry.js} +1 -1
  228. package/dist/twilight/{p-549f59ed.entry.js → p-8552160a.entry.js} +1 -1
  229. package/dist/twilight/p-8c9b0e2a.entry.js +4 -0
  230. package/dist/twilight/{p-27f34c85.entry.js → p-8f2dfc57.entry.js} +1 -1
  231. package/dist/twilight/{p-1b1f9f71.entry.js → p-94b1a2ae.entry.js} +1 -1
  232. package/dist/twilight/{p-85ceef78.entry.js → p-95dad1af.entry.js} +1 -1
  233. package/dist/twilight/{p-d81ad2c3.entry.js → p-964b7db9.entry.js} +1 -1
  234. package/dist/twilight/{p-a76b3dba.entry.js → p-99735748.entry.js} +1 -1
  235. package/dist/twilight/{p-BgG5eq1x.js → p-BZKDQg1s.js} +1 -1
  236. package/dist/twilight/{p-IoI86ovS.js → p-B_sN7OnY.js} +1 -1
  237. package/dist/twilight/{p-BHjlzmYy.js → p-Bpi0aG1F.js} +1 -1
  238. package/dist/twilight/p-CP8rFQ5n.js +9 -0
  239. package/dist/twilight/p-CfmIbM8B.js +9 -0
  240. package/dist/twilight/{p-BqCmPfAo.js → p-CpO1SrBd.js} +2 -2
  241. package/dist/twilight/p-Cz6cYzxG.js +5 -0
  242. package/dist/twilight/p-Do4hSOGo.js +9 -0
  243. package/dist/twilight/p-JJmlh-ji.js +9 -0
  244. package/dist/twilight/{p-ff9b33bb.entry.js → p-a4aedcfe.entry.js} +1 -1
  245. package/dist/twilight/{p-651fe6e4.entry.js → p-b0d01f9f.entry.js} +1 -1
  246. package/dist/twilight/{p-eb5a8329.entry.js → p-b8404cfb.entry.js} +1 -1
  247. package/dist/twilight/{p-407828e4.entry.js → p-b8e3e180.entry.js} +1 -1
  248. package/dist/twilight/{p-d1dd1db6.entry.js → p-bd687cd0.entry.js} +1 -1
  249. package/dist/twilight/{p-67fe5680.entry.js → p-c0037fac.entry.js} +1 -1
  250. package/dist/twilight/{p-c3d0c062.entry.js → p-c121f8e4.entry.js} +1 -1
  251. package/dist/twilight/{p-d022b6ec.entry.js → p-c29907df.entry.js} +1 -1
  252. package/dist/twilight/{p-4e9e3ab1.entry.js → p-c39675ef.entry.js} +1 -1
  253. package/dist/twilight/{p-344c1910.entry.js → p-cb7a985e.entry.js} +1 -1
  254. package/dist/twilight/{p-346b55d6.entry.js → p-cbe620c4.entry.js} +1 -1
  255. package/dist/twilight/{p-b55da21d.entry.js → p-d2fd79b4.entry.js} +1 -1
  256. package/dist/twilight/{p-98eb495e.entry.js → p-d6cf0ffd.entry.js} +1 -1
  257. package/dist/twilight/{p-f201122a.entry.js → p-d8f60f2f.entry.js} +1 -1
  258. package/dist/twilight/{p-0652987b.entry.js → p-d99610f9.entry.js} +1 -1
  259. package/dist/twilight/{p-11767786.entry.js → p-dc897bdd.entry.js} +1 -1
  260. package/dist/twilight/{p-50621375.entry.js → p-dca46236.entry.js} +1 -1
  261. package/dist/twilight/{p-1ca75c99.entry.js → p-e48853c9.entry.js} +1 -1
  262. package/dist/twilight/{p-a50f7f70.entry.js → p-e4fdb206.entry.js} +1 -1
  263. package/dist/twilight/{p-1c8394db.entry.js → p-ed913ae7.entry.js} +1 -1
  264. package/dist/twilight/{p-3962c34c.entry.js → p-f067fcd6.entry.js} +1 -1
  265. package/dist/twilight/{p-a00e249b.entry.js → p-f2cd6975.entry.js} +1 -1
  266. package/dist/twilight/{p-713590e2.entry.js → p-f2ffbfbb.entry.js} +1 -1
  267. package/dist/twilight/p-f3166e60.entry.js +4 -0
  268. package/dist/twilight/{p-827edf95.entry.js → p-f8fcc8f4.entry.js} +1 -1
  269. package/dist/twilight/{p-775b42ec.entry.js → p-f9e52fd9.entry.js} +1 -1
  270. package/dist/twilight/{p-753464fd.entry.js → p-fcddbfc3.entry.js} +1 -1
  271. package/dist/twilight/{p-f2ee9ceb.entry.js → p-fe7ac9bb.entry.js} +1 -1
  272. package/dist/twilight/{p-744d6394.entry.js → p-ff14dca3.entry.js} +1 -1
  273. package/dist/twilight/{p-CU-HtXWh.js → p-mlFGjxcj.js} +1 -1
  274. package/dist/twilight/twilight.esm.js +1 -1
  275. package/dist/types/components/salla-count-down/salla-count-down.d.ts +6 -0
  276. package/dist/types/components/salla-notifications/interfaces.d.ts +20 -0
  277. package/dist/types/components/salla-notifications/salla-notifications.d.ts +17 -0
  278. package/package.json +5 -5
  279. package/dist/cjs/filepond-plugin-file-validate-type-Dfy66STE.js +0 -287
  280. package/dist/esm/filepond-plugin-file-validate-type-BYs_scJr.js +0 -285
  281. package/dist/twilight/p-14529fd6.entry.js +0 -4
  282. package/dist/twilight/p-726513f8.entry.js +0 -4
  283. package/dist/twilight/p-AfW2b46_.js +0 -9
  284. package/dist/twilight/p-C23tPnnH.js +0 -5
  285. package/dist/twilight/p-CrYUKEsF.js +0 -9
  286. package/dist/twilight/p-HWjjIZ9_.js +0 -9
  287. package/dist/twilight/p-Ig1Tafsp.js +0 -9
  288. package/dist/twilight/p-c9001d7f.entry.js +0 -4
  289. package/dist/twilight/p-cf9573fd.entry.js +0 -4
  290. package/dist/twilight/p-e6124fab.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers.js';
5
5
 
6
- /*! Axios v1.13.3 Copyright (c) 2026 Matt Zabriskie and contributors */
6
+ /*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors */
7
7
 
8
8
  var axios_1;
9
9
  var hasRequiredAxios;
@@ -27,30 +27,30 @@ function requireAxios () {
27
27
 
28
28
  // utils is a library of generic helper functions non-specific to axios
29
29
 
30
- const {toString} = Object.prototype;
31
- const {getPrototypeOf} = Object;
32
- const {iterator, toStringTag} = Symbol;
30
+ const { toString } = Object.prototype;
31
+ const { getPrototypeOf } = Object;
32
+ const { iterator, toStringTag } = Symbol;
33
33
 
34
- const kindOf = (cache => thing => {
35
- const str = toString.call(thing);
36
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
34
+ const kindOf = ((cache) => (thing) => {
35
+ const str = toString.call(thing);
36
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
37
37
  })(Object.create(null));
38
38
 
39
39
  const kindOfTest = (type) => {
40
40
  type = type.toLowerCase();
41
- return (thing) => kindOf(thing) === type
41
+ return (thing) => kindOf(thing) === type;
42
42
  };
43
43
 
44
- const typeOfTest = type => thing => typeof thing === type;
44
+ const typeOfTest = (type) => (thing) => typeof thing === type;
45
45
 
46
46
  /**
47
- * Determine if a value is an Array
47
+ * Determine if a value is a non-null object
48
48
  *
49
49
  * @param {Object} val The value to test
50
50
  *
51
51
  * @returns {boolean} True if value is an Array, otherwise false
52
52
  */
53
- const {isArray} = Array;
53
+ const { isArray } = Array;
54
54
 
55
55
  /**
56
56
  * Determine if a value is undefined
@@ -69,8 +69,14 @@ function requireAxios () {
69
69
  * @returns {boolean} True if value is a Buffer, otherwise false
70
70
  */
71
71
  function isBuffer(val) {
72
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
73
- && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
72
+ return (
73
+ val !== null &&
74
+ !isUndefined(val) &&
75
+ val.constructor !== null &&
76
+ !isUndefined(val.constructor) &&
77
+ isFunction$1(val.constructor.isBuffer) &&
78
+ val.constructor.isBuffer(val)
79
+ );
74
80
  }
75
81
 
76
82
  /**
@@ -82,7 +88,6 @@ function requireAxios () {
82
88
  */
83
89
  const isArrayBuffer = kindOfTest('ArrayBuffer');
84
90
 
85
-
86
91
  /**
87
92
  * Determine if a value is a view on an ArrayBuffer
88
93
  *
@@ -92,10 +97,10 @@ function requireAxios () {
92
97
  */
93
98
  function isArrayBufferView(val) {
94
99
  let result;
95
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
100
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
96
101
  result = ArrayBuffer.isView(val);
97
102
  } else {
98
- result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
103
+ result = val && val.buffer && isArrayBuffer(val.buffer);
99
104
  }
100
105
  return result;
101
106
  }
@@ -141,7 +146,7 @@ function requireAxios () {
141
146
  * @param {*} thing The value to test
142
147
  * @returns {boolean} True if value is a Boolean, otherwise false
143
148
  */
144
- const isBoolean = thing => thing === true || thing === false;
149
+ const isBoolean = (thing) => thing === true || thing === false;
145
150
 
146
151
  /**
147
152
  * Determine if a value is a plain Object
@@ -156,7 +161,13 @@ function requireAxios () {
156
161
  }
157
162
 
158
163
  const prototype = getPrototypeOf(val);
159
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
164
+ return (
165
+ (prototype === null ||
166
+ prototype === Object.prototype ||
167
+ Object.getPrototypeOf(prototype) === null) &&
168
+ !(toStringTag in val) &&
169
+ !(iterator in val)
170
+ );
160
171
  };
161
172
 
162
173
  /**
@@ -198,6 +209,31 @@ function requireAxios () {
198
209
  */
199
210
  const isFile = kindOfTest('File');
200
211
 
212
+ /**
213
+ * Determine if a value is a React Native Blob
214
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
215
+ * also have a `name` and `type` attribute to specify filename and content type
216
+ *
217
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
218
+ *
219
+ * @param {*} value The value to test
220
+ *
221
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
222
+ */
223
+ const isReactNativeBlob = (value) => {
224
+ return !!(value && typeof value.uri !== 'undefined');
225
+ };
226
+
227
+ /**
228
+ * Determine if environment is React Native
229
+ * ReactNative `FormData` has a non-standard `getParts()` method
230
+ *
231
+ * @param {*} formData The formData to test
232
+ *
233
+ * @returns {boolean} True if environment is React Native, otherwise false
234
+ */
235
+ const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
236
+
201
237
  /**
202
238
  * Determine if a value is a Blob
203
239
  *
@@ -232,17 +268,28 @@ function requireAxios () {
232
268
  *
233
269
  * @returns {boolean} True if value is an FormData, otherwise false
234
270
  */
271
+ function getGlobal() {
272
+ if (typeof globalThis !== 'undefined') return globalThis;
273
+ if (typeof self !== 'undefined') return self;
274
+ if (typeof window !== 'undefined') return window;
275
+ if (typeof commonjsGlobal !== 'undefined') return commonjsGlobal;
276
+ return {};
277
+ }
278
+
279
+ const G = getGlobal();
280
+ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
281
+
235
282
  const isFormData = (thing) => {
236
283
  let kind;
237
284
  return thing && (
238
- (typeof FormData === 'function' && thing instanceof FormData) || (
285
+ (FormDataCtor && thing instanceof FormDataCtor) || (
239
286
  isFunction$1(thing.append) && (
240
287
  (kind = kindOf(thing)) === 'formdata' ||
241
288
  // detect form-data instance
242
289
  (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
243
290
  )
244
291
  )
245
- )
292
+ );
246
293
  };
247
294
 
248
295
  /**
@@ -254,7 +301,12 @@ function requireAxios () {
254
301
  */
255
302
  const isURLSearchParams = kindOfTest('URLSearchParams');
256
303
 
257
- const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
304
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
305
+ 'ReadableStream',
306
+ 'Request',
307
+ 'Response',
308
+ 'Headers',
309
+ ].map(kindOfTest);
258
310
 
259
311
  /**
260
312
  * Trim excess whitespace off the beginning and end of a string
@@ -263,9 +315,9 @@ function requireAxios () {
263
315
  *
264
316
  * @returns {String} The String freed of excess whitespace
265
317
  */
266
- const trim = (str) => str.trim ?
267
- str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
268
-
318
+ const trim = (str) => {
319
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
320
+ };
269
321
  /**
270
322
  * Iterate over an Array or an Object invoking a function for each item.
271
323
  *
@@ -282,7 +334,7 @@ function requireAxios () {
282
334
  * @param {Boolean} [options.allOwnKeys = false]
283
335
  * @returns {any}
284
336
  */
285
- function forEach(obj, fn, {allOwnKeys = false} = {}) {
337
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
286
338
  // Don't bother if no value provided
287
339
  if (obj === null || typeof obj === 'undefined') {
288
340
  return;
@@ -320,8 +372,16 @@ function requireAxios () {
320
372
  }
321
373
  }
322
374
 
375
+ /**
376
+ * Finds a key in an object, case-insensitive, returning the actual key name.
377
+ * Returns null if the object is a Buffer or if no match is found.
378
+ *
379
+ * @param {Object} obj - The object to search.
380
+ * @param {string} key - The key to find (case-insensitive).
381
+ * @returns {?string} The actual key name if found, otherwise null.
382
+ */
323
383
  function findKey(obj, key) {
324
- if (isBuffer(obj)){
384
+ if (isBuffer(obj)) {
325
385
  return null;
326
386
  }
327
387
 
@@ -340,8 +400,8 @@ function requireAxios () {
340
400
 
341
401
  const _global = (() => {
342
402
  /*eslint no-undef:0*/
343
- if (typeof globalThis !== "undefined") return globalThis;
344
- return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : commonjsGlobal)
403
+ if (typeof globalThis !== 'undefined') return globalThis;
404
+ return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : commonjsGlobal;
345
405
  })();
346
406
 
347
407
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
@@ -365,10 +425,15 @@ function requireAxios () {
365
425
  * @returns {Object} Result of all merge properties
366
426
  */
367
427
  function merge(/* obj1, obj2, obj3, ... */) {
368
- const {caseless, skipUndefined} = isContextDefined(this) && this || {};
428
+ const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
369
429
  const result = {};
370
430
  const assignValue = (val, key) => {
371
- const targetKey = caseless && findKey(result, key) || key;
431
+ // Skip dangerous property names to prevent prototype pollution
432
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
433
+ return;
434
+ }
435
+
436
+ const targetKey = (caseless && findKey(result, key)) || key;
372
437
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
373
438
  result[targetKey] = merge(result[targetKey], val);
374
439
  } else if (isPlainObject(val)) {
@@ -397,24 +462,28 @@ function requireAxios () {
397
462
  * @param {Boolean} [options.allOwnKeys]
398
463
  * @returns {Object} The resulting value of object a
399
464
  */
400
- const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
401
- forEach(b, (val, key) => {
402
- if (thisArg && isFunction$1(val)) {
403
- Object.defineProperty(a, key, {
404
- value: bind(val, thisArg),
405
- writable: true,
406
- enumerable: true,
407
- configurable: true
408
- });
409
- } else {
410
- Object.defineProperty(a, key, {
411
- value: val,
412
- writable: true,
413
- enumerable: true,
414
- configurable: true
415
- });
416
- }
417
- }, {allOwnKeys});
465
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
466
+ forEach(
467
+ b,
468
+ (val, key) => {
469
+ if (thisArg && isFunction$1(val)) {
470
+ Object.defineProperty(a, key, {
471
+ value: bind(val, thisArg),
472
+ writable: true,
473
+ enumerable: true,
474
+ configurable: true,
475
+ });
476
+ } else {
477
+ Object.defineProperty(a, key, {
478
+ value: val,
479
+ writable: true,
480
+ enumerable: true,
481
+ configurable: true,
482
+ });
483
+ }
484
+ },
485
+ { allOwnKeys }
486
+ );
418
487
  return a;
419
488
  };
420
489
 
@@ -426,7 +495,7 @@ function requireAxios () {
426
495
  * @returns {string} content value without BOM
427
496
  */
428
497
  const stripBOM = (content) => {
429
- if (content.charCodeAt(0) === 0xFEFF) {
498
+ if (content.charCodeAt(0) === 0xfeff) {
430
499
  content = content.slice(1);
431
500
  }
432
501
  return content;
@@ -447,10 +516,10 @@ function requireAxios () {
447
516
  value: constructor,
448
517
  writable: true,
449
518
  enumerable: false,
450
- configurable: true
519
+ configurable: true,
451
520
  });
452
521
  Object.defineProperty(constructor, 'super', {
453
- value: superConstructor.prototype
522
+ value: superConstructor.prototype,
454
523
  });
455
524
  props && Object.assign(constructor.prototype, props);
456
525
  };
@@ -509,7 +578,6 @@ function requireAxios () {
509
578
  return lastIndex !== -1 && lastIndex === position;
510
579
  };
511
580
 
512
-
513
581
  /**
514
582
  * Returns new array from array like object or null if failed
515
583
  *
@@ -538,9 +606,9 @@ function requireAxios () {
538
606
  * @returns {Array}
539
607
  */
540
608
  // eslint-disable-next-line func-names
541
- const isTypedArray = (TypedArray => {
609
+ const isTypedArray = ((TypedArray) => {
542
610
  // eslint-disable-next-line func-names
543
- return thing => {
611
+ return (thing) => {
544
612
  return TypedArray && thing instanceof TypedArray;
545
613
  };
546
614
  })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
@@ -588,16 +656,18 @@ function requireAxios () {
588
656
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
589
657
  const isHTMLForm = kindOfTest('HTMLFormElement');
590
658
 
591
- const toCamelCase = str => {
592
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
593
- function replacer(m, p1, p2) {
594
- return p1.toUpperCase() + p2;
595
- }
596
- );
659
+ const toCamelCase = (str) => {
660
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
661
+ return p1.toUpperCase() + p2;
662
+ });
597
663
  };
598
664
 
599
665
  /* Creating a function that will check if an object has a property. */
600
- const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
666
+ const hasOwnProperty = (
667
+ ({ hasOwnProperty }) =>
668
+ (obj, prop) =>
669
+ hasOwnProperty.call(obj, prop)
670
+ )(Object.prototype);
601
671
 
602
672
  /**
603
673
  * Determine if a value is a RegExp object
@@ -647,17 +717,25 @@ function requireAxios () {
647
717
 
648
718
  if (!descriptor.set) {
649
719
  descriptor.set = () => {
650
- throw Error('Can not rewrite read-only method \'' + name + '\'');
720
+ throw Error("Can not rewrite read-only method '" + name + "'");
651
721
  };
652
722
  }
653
723
  });
654
724
  };
655
725
 
726
+ /**
727
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
728
+ * Useful for fast membership checks.
729
+ *
730
+ * @param {Array|string} arrayOrString - The array or string to convert.
731
+ * @param {string} delimiter - The delimiter to use if input is a string.
732
+ * @returns {Object} An object with keys from the array or string, values set to true.
733
+ */
656
734
  const toObjectSet = (arrayOrString, delimiter) => {
657
735
  const obj = {};
658
736
 
659
737
  const define = (arr) => {
660
- arr.forEach(value => {
738
+ arr.forEach((value) => {
661
739
  obj[value] = true;
662
740
  });
663
741
  };
@@ -670,11 +748,9 @@ function requireAxios () {
670
748
  const noop = () => {};
671
749
 
672
750
  const toFiniteNumber = (value, defaultValue) => {
673
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
751
+ return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
674
752
  };
675
753
 
676
-
677
-
678
754
  /**
679
755
  * If the thing is a FormData object, return true, otherwise return false.
680
756
  *
@@ -683,14 +759,24 @@ function requireAxios () {
683
759
  * @returns {boolean}
684
760
  */
685
761
  function isSpecCompliantForm(thing) {
686
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
762
+ return !!(
763
+ thing &&
764
+ isFunction$1(thing.append) &&
765
+ thing[toStringTag] === 'FormData' &&
766
+ thing[iterator]
767
+ );
687
768
  }
688
769
 
770
+ /**
771
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
772
+ *
773
+ * @param {Object} obj - The object to convert.
774
+ * @returns {Object} The JSON-compatible object.
775
+ */
689
776
  const toJSONObject = (obj) => {
690
777
  const stack = new Array(10);
691
778
 
692
779
  const visit = (source, i) => {
693
-
694
780
  if (isObject(source)) {
695
781
  if (stack.indexOf(source) >= 0) {
696
782
  return;
@@ -701,7 +787,7 @@ function requireAxios () {
701
787
  return source;
702
788
  }
703
789
 
704
- if(!('toJSON' in source)) {
790
+ if (!('toJSON' in source)) {
705
791
  stack[i] = source;
706
792
  const target = isArray(source) ? [] : {};
707
793
 
@@ -722,45 +808,77 @@ function requireAxios () {
722
808
  return visit(obj, 0);
723
809
  };
724
810
 
811
+ /**
812
+ * Determines if a value is an async function.
813
+ *
814
+ * @param {*} thing - The value to test.
815
+ * @returns {boolean} True if value is an async function, otherwise false.
816
+ */
725
817
  const isAsyncFn = kindOfTest('AsyncFunction');
726
818
 
819
+ /**
820
+ * Determines if a value is thenable (has then and catch methods).
821
+ *
822
+ * @param {*} thing - The value to test.
823
+ * @returns {boolean} True if value is thenable, otherwise false.
824
+ */
727
825
  const isThenable = (thing) =>
728
- thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
826
+ thing &&
827
+ (isObject(thing) || isFunction$1(thing)) &&
828
+ isFunction$1(thing.then) &&
829
+ isFunction$1(thing.catch);
729
830
 
730
831
  // original code
731
832
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
732
833
 
834
+ /**
835
+ * Provides a cross-platform setImmediate implementation.
836
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
837
+ *
838
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
839
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
840
+ * @returns {Function} A function to schedule a callback asynchronously.
841
+ */
733
842
  const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
734
843
  if (setImmediateSupported) {
735
844
  return setImmediate;
736
845
  }
737
846
 
738
- return postMessageSupported ? ((token, callbacks) => {
739
- _global.addEventListener("message", ({source, data}) => {
740
- if (source === _global && data === token) {
741
- callbacks.length && callbacks.shift()();
742
- }
743
- }, false);
847
+ return postMessageSupported
848
+ ? ((token, callbacks) => {
849
+ _global.addEventListener(
850
+ 'message',
851
+ ({ source, data }) => {
852
+ if (source === _global && data === token) {
853
+ callbacks.length && callbacks.shift()();
854
+ }
855
+ },
856
+ false
857
+ );
744
858
 
745
- return (cb) => {
746
- callbacks.push(cb);
747
- _global.postMessage(token, "*");
748
- }
749
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
750
- })(
751
- typeof setImmediate === 'function',
752
- isFunction$1(_global.postMessage)
753
- );
859
+ return (cb) => {
860
+ callbacks.push(cb);
861
+ _global.postMessage(token, '*');
862
+ };
863
+ })(`axios@${Math.random()}`, [])
864
+ : (cb) => setTimeout(cb);
865
+ })(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
754
866
 
755
- const asap = typeof queueMicrotask !== 'undefined' ?
756
- queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
867
+ /**
868
+ * Schedules a microtask or asynchronous callback as soon as possible.
869
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
870
+ *
871
+ * @type {Function}
872
+ */
873
+ const asap =
874
+ typeof queueMicrotask !== 'undefined'
875
+ ? queueMicrotask.bind(_global)
876
+ : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
757
877
 
758
878
  // *********************
759
879
 
760
-
761
880
  const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
762
881
 
763
-
764
882
  var utils$1 = {
765
883
  isArray,
766
884
  isArrayBuffer,
@@ -780,6 +898,8 @@ function requireAxios () {
780
898
  isUndefined,
781
899
  isDate,
782
900
  isFile,
901
+ isReactNativeBlob,
902
+ isReactNative,
783
903
  isBlob,
784
904
  isRegExp,
785
905
  isFunction: isFunction$1,
@@ -818,18 +938,24 @@ function requireAxios () {
818
938
  isThenable,
819
939
  setImmediate: _setImmediate,
820
940
  asap,
821
- isIterable
941
+ isIterable,
822
942
  };
823
943
 
824
944
  class AxiosError extends Error {
825
- static from(error, code, config, request, response, customProps) {
826
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
827
- axiosError.cause = error;
828
- axiosError.name = error.name;
829
- customProps && Object.assign(axiosError, customProps);
830
- return axiosError;
945
+ static from(error, code, config, request, response, customProps) {
946
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
947
+ axiosError.cause = error;
948
+ axiosError.name = error.name;
949
+
950
+ // Preserve status from the original error if not already set from response
951
+ if (error.status != null && axiosError.status == null) {
952
+ axiosError.status = error.status;
831
953
  }
832
954
 
955
+ customProps && Object.assign(axiosError, customProps);
956
+ return axiosError;
957
+ }
958
+
833
959
  /**
834
960
  * Create an Error with the specified message, config, error code, request and response.
835
961
  *
@@ -842,37 +968,48 @@ function requireAxios () {
842
968
  * @returns {Error} The created error.
843
969
  */
844
970
  constructor(message, code, config, request, response) {
845
- super(message);
846
- this.name = 'AxiosError';
847
- this.isAxiosError = true;
848
- code && (this.code = code);
849
- config && (this.config = config);
850
- request && (this.request = request);
851
- if (response) {
852
- this.response = response;
853
- this.status = response.status;
854
- }
971
+ super(message);
972
+
973
+ // Make message enumerable to maintain backward compatibility
974
+ // The native Error constructor sets message as non-enumerable,
975
+ // but axios < v1.13.3 had it as enumerable
976
+ Object.defineProperty(this, 'message', {
977
+ value: message,
978
+ enumerable: true,
979
+ writable: true,
980
+ configurable: true
981
+ });
982
+
983
+ this.name = 'AxiosError';
984
+ this.isAxiosError = true;
985
+ code && (this.code = code);
986
+ config && (this.config = config);
987
+ request && (this.request = request);
988
+ if (response) {
989
+ this.response = response;
990
+ this.status = response.status;
991
+ }
855
992
  }
856
993
 
857
- toJSON() {
858
- return {
859
- // Standard
860
- message: this.message,
861
- name: this.name,
862
- // Microsoft
863
- description: this.description,
864
- number: this.number,
865
- // Mozilla
866
- fileName: this.fileName,
867
- lineNumber: this.lineNumber,
868
- columnNumber: this.columnNumber,
869
- stack: this.stack,
870
- // Axios
871
- config: utils$1.toJSONObject(this.config),
872
- code: this.code,
873
- status: this.status,
874
- };
875
- }
994
+ toJSON() {
995
+ return {
996
+ // Standard
997
+ message: this.message,
998
+ name: this.name,
999
+ // Microsoft
1000
+ description: this.description,
1001
+ number: this.number,
1002
+ // Mozilla
1003
+ fileName: this.fileName,
1004
+ lineNumber: this.lineNumber,
1005
+ columnNumber: this.columnNumber,
1006
+ stack: this.stack,
1007
+ // Axios
1008
+ config: utils$1.toJSONObject(this.config),
1009
+ code: this.code,
1010
+ status: this.status,
1011
+ };
1012
+ }
876
1013
  }
877
1014
 
878
1015
  // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
@@ -889,8 +1026,6 @@ function requireAxios () {
889
1026
  AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
890
1027
  AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
891
1028
 
892
- var AxiosError$1 = AxiosError;
893
-
894
1029
  // eslint-disable-next-line strict
895
1030
  var httpAdapter = null;
896
1031
 
@@ -927,11 +1062,14 @@ function requireAxios () {
927
1062
  */
928
1063
  function renderKey(path, key, dots) {
929
1064
  if (!path) return key;
930
- return path.concat(key).map(function each(token, i) {
931
- // eslint-disable-next-line no-param-reassign
932
- token = removeBrackets(token);
933
- return !dots && i ? '[' + token + ']' : token;
934
- }).join(dots ? '.' : '');
1065
+ return path
1066
+ .concat(key)
1067
+ .map(function each(token, i) {
1068
+ // eslint-disable-next-line no-param-reassign
1069
+ token = removeBrackets(token);
1070
+ return !dots && i ? '[' + token + ']' : token;
1071
+ })
1072
+ .join(dots ? '.' : '');
935
1073
  }
936
1074
 
937
1075
  /**
@@ -981,21 +1119,26 @@ function requireAxios () {
981
1119
  formData = formData || new (FormData)();
982
1120
 
983
1121
  // eslint-disable-next-line no-param-reassign
984
- options = utils$1.toFlatObject(options, {
985
- metaTokens: true,
986
- dots: false,
987
- indexes: false
988
- }, false, function defined(option, source) {
989
- // eslint-disable-next-line no-eq-null,eqeqeq
990
- return !utils$1.isUndefined(source[option]);
991
- });
1122
+ options = utils$1.toFlatObject(
1123
+ options,
1124
+ {
1125
+ metaTokens: true,
1126
+ dots: false,
1127
+ indexes: false,
1128
+ },
1129
+ false,
1130
+ function defined(option, source) {
1131
+ // eslint-disable-next-line no-eq-null,eqeqeq
1132
+ return !utils$1.isUndefined(source[option]);
1133
+ }
1134
+ );
992
1135
 
993
1136
  const metaTokens = options.metaTokens;
994
1137
  // eslint-disable-next-line no-use-before-define
995
1138
  const visitor = options.visitor || defaultVisitor;
996
1139
  const dots = options.dots;
997
1140
  const indexes = options.indexes;
998
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1141
+ const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
999
1142
  const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
1000
1143
 
1001
1144
  if (!utils$1.isFunction(visitor)) {
@@ -1014,7 +1157,7 @@ function requireAxios () {
1014
1157
  }
1015
1158
 
1016
1159
  if (!useBlob && utils$1.isBlob(value)) {
1017
- throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
1160
+ throw new AxiosError('Blob is not supported. Use a Buffer instead.');
1018
1161
  }
1019
1162
 
1020
1163
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
@@ -1037,6 +1180,11 @@ function requireAxios () {
1037
1180
  function defaultVisitor(value, key, path) {
1038
1181
  let arr = value;
1039
1182
 
1183
+ if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
1184
+ formData.append(renderKey(path, key, dots), convertValue(value));
1185
+ return false;
1186
+ }
1187
+
1040
1188
  if (value && !path && typeof value === 'object') {
1041
1189
  if (utils$1.endsWith(key, '{}')) {
1042
1190
  // eslint-disable-next-line no-param-reassign
@@ -1045,17 +1193,22 @@ function requireAxios () {
1045
1193
  value = JSON.stringify(value);
1046
1194
  } else if (
1047
1195
  (utils$1.isArray(value) && isFlatArray(value)) ||
1048
- ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
1049
- )) {
1196
+ ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)))
1197
+ ) {
1050
1198
  // eslint-disable-next-line no-param-reassign
1051
1199
  key = removeBrackets(key);
1052
1200
 
1053
1201
  arr.forEach(function each(el, index) {
1054
- !(utils$1.isUndefined(el) || el === null) && formData.append(
1055
- // eslint-disable-next-line no-nested-ternary
1056
- indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1057
- convertValue(el)
1058
- );
1202
+ !(utils$1.isUndefined(el) || el === null) &&
1203
+ formData.append(
1204
+ // eslint-disable-next-line no-nested-ternary
1205
+ indexes === true
1206
+ ? renderKey([key], index, dots)
1207
+ : indexes === null
1208
+ ? key
1209
+ : key + '[]',
1210
+ convertValue(el)
1211
+ );
1059
1212
  });
1060
1213
  return false;
1061
1214
  }
@@ -1075,7 +1228,7 @@ function requireAxios () {
1075
1228
  const exposedHelpers = Object.assign(predicates, {
1076
1229
  defaultVisitor,
1077
1230
  convertValue,
1078
- isVisitable
1231
+ isVisitable,
1079
1232
  });
1080
1233
 
1081
1234
  function build(value, path) {
@@ -1088,9 +1241,9 @@ function requireAxios () {
1088
1241
  stack.push(value);
1089
1242
 
1090
1243
  utils$1.forEach(value, function each(el, key) {
1091
- const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
1092
- formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers
1093
- );
1244
+ const result =
1245
+ !(utils$1.isUndefined(el) || el === null) &&
1246
+ visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
1094
1247
 
1095
1248
  if (result === true) {
1096
1249
  build(el, path ? path.concat(key) : [key]);
@@ -1125,7 +1278,7 @@ function requireAxios () {
1125
1278
  ')': '%29',
1126
1279
  '~': '%7E',
1127
1280
  '%20': '+',
1128
- '%00': '\x00'
1281
+ '%00': '\x00',
1129
1282
  };
1130
1283
  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1131
1284
  return charMap[match];
@@ -1153,29 +1306,33 @@ function requireAxios () {
1153
1306
  };
1154
1307
 
1155
1308
  prototype.toString = function toString(encoder) {
1156
- const _encode = encoder ? function(value) {
1157
- return encoder.call(this, value, encode$1);
1158
- } : encode$1;
1309
+ const _encode = encoder
1310
+ ? function (value) {
1311
+ return encoder.call(this, value, encode$1);
1312
+ }
1313
+ : encode$1;
1159
1314
 
1160
- return this._pairs.map(function each(pair) {
1161
- return _encode(pair[0]) + '=' + _encode(pair[1]);
1162
- }, '').join('&');
1315
+ return this._pairs
1316
+ .map(function each(pair) {
1317
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1318
+ }, '')
1319
+ .join('&');
1163
1320
  };
1164
1321
 
1165
1322
  /**
1166
- * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1167
- * URI encoded counterparts
1323
+ * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
1324
+ * their plain counterparts (`:`, `$`, `,`, `+`).
1168
1325
  *
1169
1326
  * @param {string} val The value to be encoded.
1170
1327
  *
1171
1328
  * @returns {string} The encoded value.
1172
1329
  */
1173
1330
  function encode(val) {
1174
- return encodeURIComponent(val).
1175
- replace(/%3A/gi, ':').
1176
- replace(/%24/g, '$').
1177
- replace(/%2C/gi, ',').
1178
- replace(/%20/g, '+');
1331
+ return encodeURIComponent(val)
1332
+ .replace(/%3A/gi, ':')
1333
+ .replace(/%24/g, '$')
1334
+ .replace(/%2C/gi, ',')
1335
+ .replace(/%20/g, '+');
1179
1336
  }
1180
1337
 
1181
1338
  /**
@@ -1192,11 +1349,13 @@ function requireAxios () {
1192
1349
  return url;
1193
1350
  }
1194
1351
 
1195
- const _encode = options && options.encode || encode;
1352
+ const _encode = (options && options.encode) || encode;
1196
1353
 
1197
- const _options = utils$1.isFunction(options) ? {
1198
- serialize: options
1199
- } : options;
1354
+ const _options = utils$1.isFunction(options)
1355
+ ? {
1356
+ serialize: options,
1357
+ }
1358
+ : options;
1200
1359
 
1201
1360
  const serializeFn = _options && _options.serialize;
1202
1361
 
@@ -1205,13 +1364,13 @@ function requireAxios () {
1205
1364
  if (serializeFn) {
1206
1365
  serializedParams = serializeFn(params, _options);
1207
1366
  } else {
1208
- serializedParams = utils$1.isURLSearchParams(params) ?
1209
- params.toString() :
1210
- new AxiosURLSearchParams(params, _options).toString(_encode);
1367
+ serializedParams = utils$1.isURLSearchParams(params)
1368
+ ? params.toString()
1369
+ : new AxiosURLSearchParams(params, _options).toString(_encode);
1211
1370
  }
1212
1371
 
1213
1372
  if (serializedParams) {
1214
- const hashmarkIndex = url.indexOf("#");
1373
+ const hashmarkIndex = url.indexOf('#');
1215
1374
 
1216
1375
  if (hashmarkIndex !== -1) {
1217
1376
  url = url.slice(0, hashmarkIndex);
@@ -1241,7 +1400,7 @@ function requireAxios () {
1241
1400
  fulfilled,
1242
1401
  rejected,
1243
1402
  synchronous: options ? options.synchronous : false,
1244
- runWhen: options ? options.runWhen : null
1403
+ runWhen: options ? options.runWhen : null,
1245
1404
  });
1246
1405
  return this.handlers.length - 1;
1247
1406
  }
@@ -1289,12 +1448,11 @@ function requireAxios () {
1289
1448
  }
1290
1449
  }
1291
1450
 
1292
- var InterceptorManager$1 = InterceptorManager;
1293
-
1294
1451
  var transitionalDefaults = {
1295
1452
  silentJSONParsing: true,
1296
1453
  forcedJSONParsing: true,
1297
- clarifyTimeoutError: false
1454
+ clarifyTimeoutError: false,
1455
+ legacyInterceptorReqResOrdering: true,
1298
1456
  };
1299
1457
 
1300
1458
  var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
@@ -1308,14 +1466,14 @@ function requireAxios () {
1308
1466
  classes: {
1309
1467
  URLSearchParams: URLSearchParams$1,
1310
1468
  FormData: FormData$1,
1311
- Blob: Blob$1
1469
+ Blob: Blob$1,
1312
1470
  },
1313
- protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1471
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
1314
1472
  };
1315
1473
 
1316
1474
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1317
1475
 
1318
- const _navigator = typeof navigator === 'object' && navigator || undefined;
1476
+ const _navigator = (typeof navigator === 'object' && navigator) || undefined;
1319
1477
 
1320
1478
  /**
1321
1479
  * Determine if we're running in a standard browser environment
@@ -1334,7 +1492,8 @@ function requireAxios () {
1334
1492
  *
1335
1493
  * @returns {boolean}
1336
1494
  */
1337
- const hasStandardBrowserEnv = hasBrowserEnv &&
1495
+ const hasStandardBrowserEnv =
1496
+ hasBrowserEnv &&
1338
1497
  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
1339
1498
 
1340
1499
  /**
@@ -1355,25 +1514,25 @@ function requireAxios () {
1355
1514
  );
1356
1515
  })();
1357
1516
 
1358
- const origin = hasBrowserEnv && window.location.href || 'http://localhost';
1517
+ const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
1359
1518
 
1360
1519
  var utils = /*#__PURE__*/Object.freeze({
1361
1520
  __proto__: null,
1362
1521
  hasBrowserEnv: hasBrowserEnv,
1363
- hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1364
1522
  hasStandardBrowserEnv: hasStandardBrowserEnv,
1523
+ hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1365
1524
  navigator: _navigator,
1366
1525
  origin: origin
1367
1526
  });
1368
1527
 
1369
1528
  var platform = {
1370
1529
  ...utils,
1371
- ...platform$1
1530
+ ...platform$1,
1372
1531
  };
1373
1532
 
1374
1533
  function toURLEncodedForm(data, options) {
1375
1534
  return toFormData(data, new platform.classes.URLSearchParams(), {
1376
- visitor: function(value, key, path, helpers) {
1535
+ visitor: function (value, key, path, helpers) {
1377
1536
  if (platform.isNode && utils$1.isBuffer(value)) {
1378
1537
  this.append(key, value.toString('base64'));
1379
1538
  return false;
@@ -1381,7 +1540,7 @@ function requireAxios () {
1381
1540
 
1382
1541
  return helpers.defaultVisitor.apply(this, arguments);
1383
1542
  },
1384
- ...options
1543
+ ...options,
1385
1544
  });
1386
1545
  }
1387
1546
 
@@ -1397,7 +1556,7 @@ function requireAxios () {
1397
1556
  // foo.x.y.z
1398
1557
  // foo-x-y-z
1399
1558
  // foo x y z
1400
- return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1559
+ return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
1401
1560
  return match[0] === '[]' ? '' : match[1] || match[0];
1402
1561
  });
1403
1562
  }
@@ -1501,96 +1660,107 @@ function requireAxios () {
1501
1660
  }
1502
1661
 
1503
1662
  const defaults = {
1504
-
1505
1663
  transitional: transitionalDefaults,
1506
1664
 
1507
1665
  adapter: ['xhr', 'http', 'fetch'],
1508
1666
 
1509
- transformRequest: [function transformRequest(data, headers) {
1510
- const contentType = headers.getContentType() || '';
1511
- const hasJSONContentType = contentType.indexOf('application/json') > -1;
1512
- const isObjectPayload = utils$1.isObject(data);
1667
+ transformRequest: [
1668
+ function transformRequest(data, headers) {
1669
+ const contentType = headers.getContentType() || '';
1670
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1671
+ const isObjectPayload = utils$1.isObject(data);
1513
1672
 
1514
- if (isObjectPayload && utils$1.isHTMLForm(data)) {
1515
- data = new FormData(data);
1516
- }
1673
+ if (isObjectPayload && utils$1.isHTMLForm(data)) {
1674
+ data = new FormData(data);
1675
+ }
1517
1676
 
1518
- const isFormData = utils$1.isFormData(data);
1677
+ const isFormData = utils$1.isFormData(data);
1519
1678
 
1520
- if (isFormData) {
1521
- return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1522
- }
1679
+ if (isFormData) {
1680
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1681
+ }
1523
1682
 
1524
- if (utils$1.isArrayBuffer(data) ||
1525
- utils$1.isBuffer(data) ||
1526
- utils$1.isStream(data) ||
1527
- utils$1.isFile(data) ||
1528
- utils$1.isBlob(data) ||
1529
- utils$1.isReadableStream(data)
1530
- ) {
1531
- return data;
1532
- }
1533
- if (utils$1.isArrayBufferView(data)) {
1534
- return data.buffer;
1535
- }
1536
- if (utils$1.isURLSearchParams(data)) {
1537
- headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1538
- return data.toString();
1539
- }
1683
+ if (
1684
+ utils$1.isArrayBuffer(data) ||
1685
+ utils$1.isBuffer(data) ||
1686
+ utils$1.isStream(data) ||
1687
+ utils$1.isFile(data) ||
1688
+ utils$1.isBlob(data) ||
1689
+ utils$1.isReadableStream(data)
1690
+ ) {
1691
+ return data;
1692
+ }
1693
+ if (utils$1.isArrayBufferView(data)) {
1694
+ return data.buffer;
1695
+ }
1696
+ if (utils$1.isURLSearchParams(data)) {
1697
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1698
+ return data.toString();
1699
+ }
1540
1700
 
1541
- let isFileList;
1701
+ let isFileList;
1542
1702
 
1543
- if (isObjectPayload) {
1544
- if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1545
- return toURLEncodedForm(data, this.formSerializer).toString();
1546
- }
1703
+ if (isObjectPayload) {
1704
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1705
+ return toURLEncodedForm(data, this.formSerializer).toString();
1706
+ }
1547
1707
 
1548
- if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1549
- const _FormData = this.env && this.env.FormData;
1708
+ if (
1709
+ (isFileList = utils$1.isFileList(data)) ||
1710
+ contentType.indexOf('multipart/form-data') > -1
1711
+ ) {
1712
+ const _FormData = this.env && this.env.FormData;
1550
1713
 
1551
- return toFormData(
1552
- isFileList ? {'files[]': data} : data,
1553
- _FormData && new _FormData(),
1554
- this.formSerializer
1555
- );
1714
+ return toFormData(
1715
+ isFileList ? { 'files[]': data } : data,
1716
+ _FormData && new _FormData(),
1717
+ this.formSerializer
1718
+ );
1719
+ }
1556
1720
  }
1557
- }
1558
1721
 
1559
- if (isObjectPayload || hasJSONContentType ) {
1560
- headers.setContentType('application/json', false);
1561
- return stringifySafely(data);
1562
- }
1722
+ if (isObjectPayload || hasJSONContentType) {
1723
+ headers.setContentType('application/json', false);
1724
+ return stringifySafely(data);
1725
+ }
1563
1726
 
1564
- return data;
1565
- }],
1727
+ return data;
1728
+ },
1729
+ ],
1566
1730
 
1567
- transformResponse: [function transformResponse(data) {
1568
- const transitional = this.transitional || defaults.transitional;
1569
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1570
- const JSONRequested = this.responseType === 'json';
1731
+ transformResponse: [
1732
+ function transformResponse(data) {
1733
+ const transitional = this.transitional || defaults.transitional;
1734
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1735
+ const JSONRequested = this.responseType === 'json';
1571
1736
 
1572
- if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1573
- return data;
1574
- }
1737
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1738
+ return data;
1739
+ }
1575
1740
 
1576
- if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1577
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
1578
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
1741
+ if (
1742
+ data &&
1743
+ utils$1.isString(data) &&
1744
+ ((forcedJSONParsing && !this.responseType) || JSONRequested)
1745
+ ) {
1746
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1747
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1579
1748
 
1580
- try {
1581
- return JSON.parse(data, this.parseReviver);
1582
- } catch (e) {
1583
- if (strictJSONParsing) {
1584
- if (e.name === 'SyntaxError') {
1585
- throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
1749
+ try {
1750
+ return JSON.parse(data, this.parseReviver);
1751
+ } catch (e) {
1752
+ if (strictJSONParsing) {
1753
+ if (e.name === 'SyntaxError') {
1754
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
1755
+ }
1756
+ throw e;
1586
1757
  }
1587
- throw e;
1588
1758
  }
1589
1759
  }
1590
- }
1591
1760
 
1592
- return data;
1593
- }],
1761
+ return data;
1762
+ },
1763
+ ],
1594
1764
 
1595
1765
  /**
1596
1766
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -1606,7 +1776,7 @@ function requireAxios () {
1606
1776
 
1607
1777
  env: {
1608
1778
  FormData: platform.classes.FormData,
1609
- Blob: platform.classes.Blob
1779
+ Blob: platform.classes.Blob,
1610
1780
  },
1611
1781
 
1612
1782
  validateStatus: function validateStatus(status) {
@@ -1615,25 +1785,36 @@ function requireAxios () {
1615
1785
 
1616
1786
  headers: {
1617
1787
  common: {
1618
- 'Accept': 'application/json, text/plain, */*',
1619
- 'Content-Type': undefined
1620
- }
1621
- }
1788
+ Accept: 'application/json, text/plain, */*',
1789
+ 'Content-Type': undefined,
1790
+ },
1791
+ },
1622
1792
  };
1623
1793
 
1624
1794
  utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
1625
1795
  defaults.headers[method] = {};
1626
1796
  });
1627
1797
 
1628
- var defaults$1 = defaults;
1629
-
1630
1798
  // RawAxiosHeaders whose duplicates are ignored by node
1631
1799
  // c.f. https://nodejs.org/api/http.html#http_message_headers
1632
1800
  const ignoreDuplicateOf = utils$1.toObjectSet([
1633
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
1634
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1635
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1636
- 'referer', 'retry-after', 'user-agent'
1801
+ 'age',
1802
+ 'authorization',
1803
+ 'content-length',
1804
+ 'content-type',
1805
+ 'etag',
1806
+ 'expires',
1807
+ 'from',
1808
+ 'host',
1809
+ 'if-modified-since',
1810
+ 'if-unmodified-since',
1811
+ 'last-modified',
1812
+ 'location',
1813
+ 'max-forwards',
1814
+ 'proxy-authorization',
1815
+ 'referer',
1816
+ 'retry-after',
1817
+ 'user-agent',
1637
1818
  ]);
1638
1819
 
1639
1820
  /**
@@ -1650,31 +1831,32 @@ function requireAxios () {
1650
1831
  *
1651
1832
  * @returns {Object} Headers parsed into an object
1652
1833
  */
1653
- var parseHeaders = rawHeaders => {
1834
+ var parseHeaders = (rawHeaders) => {
1654
1835
  const parsed = {};
1655
1836
  let key;
1656
1837
  let val;
1657
1838
  let i;
1658
1839
 
1659
- rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1660
- i = line.indexOf(':');
1661
- key = line.substring(0, i).trim().toLowerCase();
1662
- val = line.substring(i + 1).trim();
1840
+ rawHeaders &&
1841
+ rawHeaders.split('\n').forEach(function parser(line) {
1842
+ i = line.indexOf(':');
1843
+ key = line.substring(0, i).trim().toLowerCase();
1844
+ val = line.substring(i + 1).trim();
1663
1845
 
1664
- if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1665
- return;
1666
- }
1846
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1847
+ return;
1848
+ }
1667
1849
 
1668
- if (key === 'set-cookie') {
1669
- if (parsed[key]) {
1670
- parsed[key].push(val);
1850
+ if (key === 'set-cookie') {
1851
+ if (parsed[key]) {
1852
+ parsed[key].push(val);
1853
+ } else {
1854
+ parsed[key] = [val];
1855
+ }
1671
1856
  } else {
1672
- parsed[key] = [val];
1857
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1673
1858
  }
1674
- } else {
1675
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1676
- }
1677
- });
1859
+ });
1678
1860
 
1679
1861
  return parsed;
1680
1862
  };
@@ -1690,7 +1872,9 @@ function requireAxios () {
1690
1872
  return value;
1691
1873
  }
1692
1874
 
1693
- return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
1875
+ return utils$1.isArray(value)
1876
+ ? value.map(normalizeValue)
1877
+ : String(value).replace(/[\r\n]+$/, '');
1694
1878
  }
1695
1879
 
1696
1880
  function parseTokens(str) {
@@ -1728,8 +1912,10 @@ function requireAxios () {
1728
1912
  }
1729
1913
 
1730
1914
  function formatHeader(header) {
1731
- return header.trim()
1732
- .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1915
+ return header
1916
+ .trim()
1917
+ .toLowerCase()
1918
+ .replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1733
1919
  return char.toUpperCase() + str;
1734
1920
  });
1735
1921
  }
@@ -1737,12 +1923,12 @@ function requireAxios () {
1737
1923
  function buildAccessors(obj, header) {
1738
1924
  const accessorName = utils$1.toCamelCase(' ' + header);
1739
1925
 
1740
- ['get', 'set', 'has'].forEach(methodName => {
1926
+ ['get', 'set', 'has'].forEach((methodName) => {
1741
1927
  Object.defineProperty(obj, methodName + accessorName, {
1742
- value: function(arg1, arg2, arg3) {
1928
+ value: function (arg1, arg2, arg3) {
1743
1929
  return this[methodName].call(this, header, arg1, arg2, arg3);
1744
1930
  },
1745
- configurable: true
1931
+ configurable: true,
1746
1932
  });
1747
1933
  });
1748
1934
  }
@@ -1764,7 +1950,12 @@ function requireAxios () {
1764
1950
 
1765
1951
  const key = utils$1.findKey(self, lHeader);
1766
1952
 
1767
- if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1953
+ if (
1954
+ !key ||
1955
+ self[key] === undefined ||
1956
+ _rewrite === true ||
1957
+ (_rewrite === undefined && self[key] !== false)
1958
+ ) {
1768
1959
  self[key || _header] = normalizeValue(_value);
1769
1960
  }
1770
1961
  }
@@ -1774,17 +1965,22 @@ function requireAxios () {
1774
1965
 
1775
1966
  if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
1776
1967
  setHeaders(header, valueOrRewrite);
1777
- } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1968
+ } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1778
1969
  setHeaders(parseHeaders(header), valueOrRewrite);
1779
1970
  } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
1780
- let obj = {}, dest, key;
1971
+ let obj = {},
1972
+ dest,
1973
+ key;
1781
1974
  for (const entry of header) {
1782
1975
  if (!utils$1.isArray(entry)) {
1783
1976
  throw TypeError('Object iterator must return a key-value pair');
1784
1977
  }
1785
1978
 
1786
- obj[key = entry[0]] = (dest = obj[key]) ?
1787
- (utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
1979
+ obj[(key = entry[0])] = (dest = obj[key])
1980
+ ? utils$1.isArray(dest)
1981
+ ? [...dest, entry[1]]
1982
+ : [dest, entry[1]]
1983
+ : entry[1];
1788
1984
  }
1789
1985
 
1790
1986
  setHeaders(obj, valueOrRewrite);
@@ -1831,7 +2027,11 @@ function requireAxios () {
1831
2027
  if (header) {
1832
2028
  const key = utils$1.findKey(this, header);
1833
2029
 
1834
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
2030
+ return !!(
2031
+ key &&
2032
+ this[key] !== undefined &&
2033
+ (!matcher || matchHeaderValue(this, this[key], key, matcher))
2034
+ );
1835
2035
  }
1836
2036
 
1837
2037
  return false;
@@ -1871,7 +2071,7 @@ function requireAxios () {
1871
2071
 
1872
2072
  while (i--) {
1873
2073
  const key = keys[i];
1874
- if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
2074
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1875
2075
  delete this[key];
1876
2076
  deleted = true;
1877
2077
  }
@@ -1915,7 +2115,9 @@ function requireAxios () {
1915
2115
  const obj = Object.create(null);
1916
2116
 
1917
2117
  utils$1.forEach(this, (value, header) => {
1918
- value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
2118
+ value != null &&
2119
+ value !== false &&
2120
+ (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
1919
2121
  });
1920
2122
 
1921
2123
  return obj;
@@ -1926,11 +2128,13 @@ function requireAxios () {
1926
2128
  }
1927
2129
 
1928
2130
  toString() {
1929
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
2131
+ return Object.entries(this.toJSON())
2132
+ .map(([header, value]) => header + ': ' + value)
2133
+ .join('\n');
1930
2134
  }
1931
2135
 
1932
2136
  getSetCookie() {
1933
- return this.get("set-cookie") || [];
2137
+ return this.get('set-cookie') || [];
1934
2138
  }
1935
2139
 
1936
2140
  get [Symbol.toStringTag]() {
@@ -1950,9 +2154,12 @@ function requireAxios () {
1950
2154
  }
1951
2155
 
1952
2156
  static accessor(header) {
1953
- const internals = this[$internals] = (this[$internals] = {
1954
- accessors: {}
1955
- });
2157
+ const internals =
2158
+ (this[$internals] =
2159
+ this[$internals] =
2160
+ {
2161
+ accessors: {},
2162
+ });
1956
2163
 
1957
2164
  const accessors = internals.accessors;
1958
2165
  const prototype = this.prototype;
@@ -1972,23 +2179,28 @@ function requireAxios () {
1972
2179
  }
1973
2180
  }
1974
2181
 
1975
- AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2182
+ AxiosHeaders.accessor([
2183
+ 'Content-Type',
2184
+ 'Content-Length',
2185
+ 'Accept',
2186
+ 'Accept-Encoding',
2187
+ 'User-Agent',
2188
+ 'Authorization',
2189
+ ]);
1976
2190
 
1977
2191
  // reserved names hotfix
1978
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2192
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
1979
2193
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
1980
2194
  return {
1981
2195
  get: () => value,
1982
2196
  set(headerValue) {
1983
2197
  this[mapped] = headerValue;
1984
- }
1985
- }
2198
+ },
2199
+ };
1986
2200
  });
1987
2201
 
1988
2202
  utils$1.freezeMethods(AxiosHeaders);
1989
2203
 
1990
- var AxiosHeaders$1 = AxiosHeaders;
1991
-
1992
2204
  /**
1993
2205
  * Transform the data for a request or a response
1994
2206
  *
@@ -1998,9 +2210,9 @@ function requireAxios () {
1998
2210
  * @returns {*} The resulting transformed data
1999
2211
  */
2000
2212
  function transformData(fns, response) {
2001
- const config = this || defaults$1;
2213
+ const config = this || defaults;
2002
2214
  const context = response || config;
2003
- const headers = AxiosHeaders$1.from(context.headers);
2215
+ const headers = AxiosHeaders.from(context.headers);
2004
2216
  let data = context.data;
2005
2217
 
2006
2218
  utils$1.forEach(fns, function transform(fn) {
@@ -2016,7 +2228,7 @@ function requireAxios () {
2016
2228
  return !!(value && value.__CANCEL__);
2017
2229
  }
2018
2230
 
2019
- class CanceledError extends AxiosError$1 {
2231
+ class CanceledError extends AxiosError {
2020
2232
  /**
2021
2233
  * A `CanceledError` is an object that is thrown when an operation is canceled.
2022
2234
  *
@@ -2027,14 +2239,12 @@ function requireAxios () {
2027
2239
  * @returns {CanceledError} The created error.
2028
2240
  */
2029
2241
  constructor(message, config, request) {
2030
- super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
2242
+ super(message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
2031
2243
  this.name = 'CanceledError';
2032
2244
  this.__CANCEL__ = true;
2033
2245
  }
2034
2246
  }
2035
2247
 
2036
- var CanceledError$1 = CanceledError;
2037
-
2038
2248
  /**
2039
2249
  * Resolve or reject a Promise based on response status.
2040
2250
  *
@@ -2049,19 +2259,23 @@ function requireAxios () {
2049
2259
  if (!response.status || !validateStatus || validateStatus(response.status)) {
2050
2260
  resolve(response);
2051
2261
  } else {
2052
- reject(new AxiosError$1(
2053
- 'Request failed with status code ' + response.status,
2054
- [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2055
- response.config,
2056
- response.request,
2057
- response
2058
- ));
2262
+ reject(
2263
+ new AxiosError(
2264
+ 'Request failed with status code ' + response.status,
2265
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][
2266
+ Math.floor(response.status / 100) - 4
2267
+ ],
2268
+ response.config,
2269
+ response.request,
2270
+ response
2271
+ )
2272
+ );
2059
2273
  }
2060
2274
  }
2061
2275
 
2062
2276
  function parseProtocol(url) {
2063
2277
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2064
- return match && match[1] || '';
2278
+ return (match && match[1]) || '';
2065
2279
  }
2066
2280
 
2067
2281
  /**
@@ -2112,7 +2326,7 @@ function requireAxios () {
2112
2326
 
2113
2327
  const passed = startedAt && now - startedAt;
2114
2328
 
2115
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2329
+ return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
2116
2330
  };
2117
2331
  }
2118
2332
 
@@ -2141,7 +2355,7 @@ function requireAxios () {
2141
2355
  const throttled = (...args) => {
2142
2356
  const now = Date.now();
2143
2357
  const passed = now - timestamp;
2144
- if ( passed >= threshold) {
2358
+ if (passed >= threshold) {
2145
2359
  invoke(args, now);
2146
2360
  } else {
2147
2361
  lastArgs = args;
@@ -2163,7 +2377,7 @@ function requireAxios () {
2163
2377
  let bytesNotified = 0;
2164
2378
  const _speedometer = speedometer(50, 250);
2165
2379
 
2166
- return throttle(e => {
2380
+ return throttle((e) => {
2167
2381
  const loaded = e.loaded;
2168
2382
  const total = e.lengthComputable ? e.total : undefined;
2169
2383
  const progressBytes = loaded - bytesNotified;
@@ -2175,13 +2389,13 @@ function requireAxios () {
2175
2389
  const data = {
2176
2390
  loaded,
2177
2391
  total,
2178
- progress: total ? (loaded / total) : undefined,
2392
+ progress: total ? loaded / total : undefined,
2179
2393
  bytes: progressBytes,
2180
2394
  rate: rate ? rate : undefined,
2181
2395
  estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2182
2396
  event: e,
2183
2397
  lengthComputable: total != null,
2184
- [isDownloadStream ? 'download' : 'upload']: true
2398
+ [isDownloadStream ? 'download' : 'upload']: true,
2185
2399
  };
2186
2400
 
2187
2401
  listener(data);
@@ -2191,77 +2405,82 @@ function requireAxios () {
2191
2405
  const progressEventDecorator = (total, throttled) => {
2192
2406
  const lengthComputable = total != null;
2193
2407
 
2194
- return [(loaded) => throttled[0]({
2195
- lengthComputable,
2196
- total,
2197
- loaded
2198
- }), throttled[1]];
2408
+ return [
2409
+ (loaded) =>
2410
+ throttled[0]({
2411
+ lengthComputable,
2412
+ total,
2413
+ loaded,
2414
+ }),
2415
+ throttled[1],
2416
+ ];
2199
2417
  };
2200
2418
 
2201
- const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2419
+ const asyncDecorator =
2420
+ (fn) =>
2421
+ (...args) =>
2422
+ utils$1.asap(() => fn(...args));
2202
2423
 
2203
- var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
2204
- url = new URL(url, platform.origin);
2424
+ var isURLSameOrigin = platform.hasStandardBrowserEnv
2425
+ ? ((origin, isMSIE) => (url) => {
2426
+ url = new URL(url, platform.origin);
2205
2427
 
2206
- return (
2207
- origin.protocol === url.protocol &&
2208
- origin.host === url.host &&
2209
- (isMSIE || origin.port === url.port)
2210
- );
2211
- })(
2212
- new URL(platform.origin),
2213
- platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
2214
- ) : () => true;
2215
-
2216
- var cookies = platform.hasStandardBrowserEnv ?
2428
+ return (
2429
+ origin.protocol === url.protocol &&
2430
+ origin.host === url.host &&
2431
+ (isMSIE || origin.port === url.port)
2432
+ );
2433
+ })(
2434
+ new URL(platform.origin),
2435
+ platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
2436
+ )
2437
+ : () => true;
2217
2438
 
2218
- // Standard browser envs support document.cookie
2219
- {
2220
- write(name, value, expires, path, domain, secure, sameSite) {
2221
- if (typeof document === 'undefined') return;
2439
+ var cookies = platform.hasStandardBrowserEnv
2440
+ ? // Standard browser envs support document.cookie
2441
+ {
2442
+ write(name, value, expires, path, domain, secure, sameSite) {
2443
+ if (typeof document === 'undefined') return;
2222
2444
 
2223
- const cookie = [`${name}=${encodeURIComponent(value)}`];
2445
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
2224
2446
 
2225
- if (utils$1.isNumber(expires)) {
2226
- cookie.push(`expires=${new Date(expires).toUTCString()}`);
2227
- }
2228
- if (utils$1.isString(path)) {
2229
- cookie.push(`path=${path}`);
2230
- }
2231
- if (utils$1.isString(domain)) {
2232
- cookie.push(`domain=${domain}`);
2233
- }
2234
- if (secure === true) {
2235
- cookie.push('secure');
2236
- }
2237
- if (utils$1.isString(sameSite)) {
2238
- cookie.push(`SameSite=${sameSite}`);
2239
- }
2447
+ if (utils$1.isNumber(expires)) {
2448
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
2449
+ }
2450
+ if (utils$1.isString(path)) {
2451
+ cookie.push(`path=${path}`);
2452
+ }
2453
+ if (utils$1.isString(domain)) {
2454
+ cookie.push(`domain=${domain}`);
2455
+ }
2456
+ if (secure === true) {
2457
+ cookie.push('secure');
2458
+ }
2459
+ if (utils$1.isString(sameSite)) {
2460
+ cookie.push(`SameSite=${sameSite}`);
2461
+ }
2240
2462
 
2241
- document.cookie = cookie.join('; ');
2242
- },
2463
+ document.cookie = cookie.join('; ');
2464
+ },
2243
2465
 
2244
- read(name) {
2245
- if (typeof document === 'undefined') return null;
2246
- const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
2247
- return match ? decodeURIComponent(match[1]) : null;
2248
- },
2466
+ read(name) {
2467
+ if (typeof document === 'undefined') return null;
2468
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
2469
+ return match ? decodeURIComponent(match[1]) : null;
2470
+ },
2249
2471
 
2250
- remove(name) {
2251
- this.write(name, '', Date.now() - 86400000, '/');
2472
+ remove(name) {
2473
+ this.write(name, '', Date.now() - 86400000, '/');
2474
+ },
2252
2475
  }
2253
- }
2254
-
2255
- :
2256
-
2257
- // Non-standard browser env (web workers, react-native) lack needed support.
2258
- {
2259
- write() {},
2260
- read() {
2261
- return null;
2262
- },
2263
- remove() {}
2264
- };
2476
+ : // Non-standard browser env (web workers, react-native) lack needed support.
2477
+ {
2478
+ write() {},
2479
+ read() {
2480
+ return null;
2481
+ },
2482
+ remove() {},
2483
+ };
2265
2484
 
2266
2485
  /**
2267
2486
  * Determines whether the specified URL is absolute
@@ -2274,6 +2493,10 @@ function requireAxios () {
2274
2493
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2275
2494
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2276
2495
  // by any combination of letters, digits, plus, period, or hyphen.
2496
+ if (typeof url !== 'string') {
2497
+ return false;
2498
+ }
2499
+
2277
2500
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2278
2501
  }
2279
2502
 
@@ -2309,7 +2532,7 @@ function requireAxios () {
2309
2532
  return requestedURL;
2310
2533
  }
2311
2534
 
2312
- const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
2535
+ const headersToObject = (thing) => (thing instanceof AxiosHeaders ? { ...thing } : thing);
2313
2536
 
2314
2537
  /**
2315
2538
  * Config-specific merge-function which creates a new config-object
@@ -2398,11 +2621,13 @@ function requireAxios () {
2398
2621
  socketPath: defaultToConfig2,
2399
2622
  responseEncoding: defaultToConfig2,
2400
2623
  validateStatus: mergeDirectKeys,
2401
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
2624
+ headers: (a, b, prop) =>
2625
+ mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
2402
2626
  };
2403
2627
 
2404
2628
  utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
2405
- const merge = mergeMap[prop] || mergeDeepProperties;
2629
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
2630
+ const merge = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
2406
2631
  const configValue = merge(config1[prop], config2[prop], prop);
2407
2632
  (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
2408
2633
  });
@@ -2415,14 +2640,24 @@ function requireAxios () {
2415
2640
 
2416
2641
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
2417
2642
 
2418
- newConfig.headers = headers = AxiosHeaders$1.from(headers);
2643
+ newConfig.headers = headers = AxiosHeaders.from(headers);
2419
2644
 
2420
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
2645
+ newConfig.url = buildURL(
2646
+ buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
2647
+ config.params,
2648
+ config.paramsSerializer
2649
+ );
2421
2650
 
2422
2651
  // HTTP basic authentication
2423
2652
  if (auth) {
2424
- headers.set('Authorization', 'Basic ' +
2425
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
2653
+ headers.set(
2654
+ 'Authorization',
2655
+ 'Basic ' +
2656
+ btoa(
2657
+ (auth.username || '') +
2658
+ ':' +
2659
+ (auth.password ? unescape(encodeURIComponent(auth.password)) : '')
2660
+ )
2426
2661
  );
2427
2662
  }
2428
2663
 
@@ -2440,7 +2675,7 @@ function requireAxios () {
2440
2675
  }
2441
2676
  });
2442
2677
  }
2443
- }
2678
+ }
2444
2679
 
2445
2680
  // Add xsrf header
2446
2681
  // This is only done if running in a standard browser environment.
@@ -2464,196 +2699,218 @@ function requireAxios () {
2464
2699
 
2465
2700
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2466
2701
 
2467
- var xhrAdapter = isXHRAdapterSupported && function (config) {
2468
- return new Promise(function dispatchXhrRequest(resolve, reject) {
2469
- const _config = resolveConfig(config);
2470
- let requestData = _config.data;
2471
- const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
2472
- let {responseType, onUploadProgress, onDownloadProgress} = _config;
2473
- let onCanceled;
2474
- let uploadThrottled, downloadThrottled;
2475
- let flushUpload, flushDownload;
2702
+ var xhrAdapter = isXHRAdapterSupported &&
2703
+ function (config) {
2704
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2705
+ const _config = resolveConfig(config);
2706
+ let requestData = _config.data;
2707
+ const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
2708
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
2709
+ let onCanceled;
2710
+ let uploadThrottled, downloadThrottled;
2711
+ let flushUpload, flushDownload;
2476
2712
 
2477
- function done() {
2478
- flushUpload && flushUpload(); // flush events
2479
- flushDownload && flushDownload(); // flush events
2713
+ function done() {
2714
+ flushUpload && flushUpload(); // flush events
2715
+ flushDownload && flushDownload(); // flush events
2480
2716
 
2481
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2717
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2482
2718
 
2483
- _config.signal && _config.signal.removeEventListener('abort', onCanceled);
2484
- }
2719
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
2720
+ }
2485
2721
 
2486
- let request = new XMLHttpRequest();
2722
+ let request = new XMLHttpRequest();
2487
2723
 
2488
- request.open(_config.method.toUpperCase(), _config.url, true);
2724
+ request.open(_config.method.toUpperCase(), _config.url, true);
2489
2725
 
2490
- // Set the request timeout in MS
2491
- request.timeout = _config.timeout;
2726
+ // Set the request timeout in MS
2727
+ request.timeout = _config.timeout;
2492
2728
 
2493
- function onloadend() {
2494
- if (!request) {
2495
- return;
2729
+ function onloadend() {
2730
+ if (!request) {
2731
+ return;
2732
+ }
2733
+ // Prepare the response
2734
+ const responseHeaders = AxiosHeaders.from(
2735
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2736
+ );
2737
+ const responseData =
2738
+ !responseType || responseType === 'text' || responseType === 'json'
2739
+ ? request.responseText
2740
+ : request.response;
2741
+ const response = {
2742
+ data: responseData,
2743
+ status: request.status,
2744
+ statusText: request.statusText,
2745
+ headers: responseHeaders,
2746
+ config,
2747
+ request,
2748
+ };
2749
+
2750
+ settle(
2751
+ function _resolve(value) {
2752
+ resolve(value);
2753
+ done();
2754
+ },
2755
+ function _reject(err) {
2756
+ reject(err);
2757
+ done();
2758
+ },
2759
+ response
2760
+ );
2761
+
2762
+ // Clean up request
2763
+ request = null;
2496
2764
  }
2497
- // Prepare the response
2498
- const responseHeaders = AxiosHeaders$1.from(
2499
- 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2500
- );
2501
- const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2502
- request.responseText : request.response;
2503
- const response = {
2504
- data: responseData,
2505
- status: request.status,
2506
- statusText: request.statusText,
2507
- headers: responseHeaders,
2508
- config,
2509
- request
2510
- };
2511
2765
 
2512
- settle(function _resolve(value) {
2513
- resolve(value);
2514
- done();
2515
- }, function _reject(err) {
2516
- reject(err);
2517
- done();
2518
- }, response);
2766
+ if ('onloadend' in request) {
2767
+ // Use onloadend if available
2768
+ request.onloadend = onloadend;
2769
+ } else {
2770
+ // Listen for ready state to emulate onloadend
2771
+ request.onreadystatechange = function handleLoad() {
2772
+ if (!request || request.readyState !== 4) {
2773
+ return;
2774
+ }
2519
2775
 
2520
- // Clean up request
2521
- request = null;
2522
- }
2776
+ // The request errored out and we didn't get a response, this will be
2777
+ // handled by onerror instead
2778
+ // With one exception: request that using file: protocol, most browsers
2779
+ // will return status as 0 even though it's a successful request
2780
+ if (
2781
+ request.status === 0 &&
2782
+ !(request.responseURL && request.responseURL.indexOf('file:') === 0)
2783
+ ) {
2784
+ return;
2785
+ }
2786
+ // readystate handler is calling before onerror or ontimeout handlers,
2787
+ // so we should call onloadend on the next 'tick'
2788
+ setTimeout(onloadend);
2789
+ };
2790
+ }
2523
2791
 
2524
- if ('onloadend' in request) {
2525
- // Use onloadend if available
2526
- request.onloadend = onloadend;
2527
- } else {
2528
- // Listen for ready state to emulate onloadend
2529
- request.onreadystatechange = function handleLoad() {
2530
- if (!request || request.readyState !== 4) {
2792
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2793
+ request.onabort = function handleAbort() {
2794
+ if (!request) {
2531
2795
  return;
2532
2796
  }
2533
2797
 
2534
- // The request errored out and we didn't get a response, this will be
2535
- // handled by onerror instead
2536
- // With one exception: request that using file: protocol, most browsers
2537
- // will return status as 0 even though it's a successful request
2538
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2539
- return;
2540
- }
2541
- // readystate handler is calling before onerror or ontimeout handlers,
2542
- // so we should call onloadend on the next 'tick'
2543
- setTimeout(onloadend);
2798
+ reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
2799
+
2800
+ // Clean up request
2801
+ request = null;
2544
2802
  };
2545
- }
2546
2803
 
2547
- // Handle browser request cancellation (as opposed to a manual cancellation)
2548
- request.onabort = function handleAbort() {
2549
- if (!request) {
2550
- return;
2551
- }
2804
+ // Handle low level network errors
2805
+ request.onerror = function handleError(event) {
2806
+ // Browsers deliver a ProgressEvent in XHR onerror
2807
+ // (message may be empty; when present, surface it)
2808
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
2809
+ const msg = event && event.message ? event.message : 'Network Error';
2810
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
2811
+ // attach the underlying event for consumers who want details
2812
+ err.event = event || null;
2813
+ reject(err);
2814
+ request = null;
2815
+ };
2552
2816
 
2553
- reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
2817
+ // Handle timeout
2818
+ request.ontimeout = function handleTimeout() {
2819
+ let timeoutErrorMessage = _config.timeout
2820
+ ? 'timeout of ' + _config.timeout + 'ms exceeded'
2821
+ : 'timeout exceeded';
2822
+ const transitional = _config.transitional || transitionalDefaults;
2823
+ if (_config.timeoutErrorMessage) {
2824
+ timeoutErrorMessage = _config.timeoutErrorMessage;
2825
+ }
2826
+ reject(
2827
+ new AxiosError(
2828
+ timeoutErrorMessage,
2829
+ transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
2830
+ config,
2831
+ request
2832
+ )
2833
+ );
2554
2834
 
2555
- // Clean up request
2556
- request = null;
2557
- };
2835
+ // Clean up request
2836
+ request = null;
2837
+ };
2558
2838
 
2559
- // Handle low level network errors
2560
- request.onerror = function handleError(event) {
2561
- // Browsers deliver a ProgressEvent in XHR onerror
2562
- // (message may be empty; when present, surface it)
2563
- // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
2564
- const msg = event && event.message ? event.message : 'Network Error';
2565
- const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
2566
- // attach the underlying event for consumers who want details
2567
- err.event = event || null;
2568
- reject(err);
2569
- request = null;
2570
- };
2571
-
2572
- // Handle timeout
2573
- request.ontimeout = function handleTimeout() {
2574
- let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
2575
- const transitional = _config.transitional || transitionalDefaults;
2576
- if (_config.timeoutErrorMessage) {
2577
- timeoutErrorMessage = _config.timeoutErrorMessage;
2578
- }
2579
- reject(new AxiosError$1(
2580
- timeoutErrorMessage,
2581
- transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
2582
- config,
2583
- request));
2584
-
2585
- // Clean up request
2586
- request = null;
2587
- };
2839
+ // Remove Content-Type if data is undefined
2840
+ requestData === undefined && requestHeaders.setContentType(null);
2588
2841
 
2589
- // Remove Content-Type if data is undefined
2590
- requestData === undefined && requestHeaders.setContentType(null);
2842
+ // Add headers to the request
2843
+ if ('setRequestHeader' in request) {
2844
+ utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2845
+ request.setRequestHeader(key, val);
2846
+ });
2847
+ }
2591
2848
 
2592
- // Add headers to the request
2593
- if ('setRequestHeader' in request) {
2594
- utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2595
- request.setRequestHeader(key, val);
2596
- });
2597
- }
2849
+ // Add withCredentials to request if needed
2850
+ if (!utils$1.isUndefined(_config.withCredentials)) {
2851
+ request.withCredentials = !!_config.withCredentials;
2852
+ }
2598
2853
 
2599
- // Add withCredentials to request if needed
2600
- if (!utils$1.isUndefined(_config.withCredentials)) {
2601
- request.withCredentials = !!_config.withCredentials;
2602
- }
2854
+ // Add responseType to request if needed
2855
+ if (responseType && responseType !== 'json') {
2856
+ request.responseType = _config.responseType;
2857
+ }
2603
2858
 
2604
- // Add responseType to request if needed
2605
- if (responseType && responseType !== 'json') {
2606
- request.responseType = _config.responseType;
2607
- }
2859
+ // Handle progress if needed
2860
+ if (onDownloadProgress) {
2861
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
2862
+ request.addEventListener('progress', downloadThrottled);
2863
+ }
2608
2864
 
2609
- // Handle progress if needed
2610
- if (onDownloadProgress) {
2611
- ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
2612
- request.addEventListener('progress', downloadThrottled);
2613
- }
2865
+ // Not all browsers support upload events
2866
+ if (onUploadProgress && request.upload) {
2867
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
2614
2868
 
2615
- // Not all browsers support upload events
2616
- if (onUploadProgress && request.upload) {
2617
- ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
2869
+ request.upload.addEventListener('progress', uploadThrottled);
2618
2870
 
2619
- request.upload.addEventListener('progress', uploadThrottled);
2871
+ request.upload.addEventListener('loadend', flushUpload);
2872
+ }
2620
2873
 
2621
- request.upload.addEventListener('loadend', flushUpload);
2622
- }
2874
+ if (_config.cancelToken || _config.signal) {
2875
+ // Handle cancellation
2876
+ // eslint-disable-next-line func-names
2877
+ onCanceled = (cancel) => {
2878
+ if (!request) {
2879
+ return;
2880
+ }
2881
+ reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
2882
+ request.abort();
2883
+ request = null;
2884
+ };
2623
2885
 
2624
- if (_config.cancelToken || _config.signal) {
2625
- // Handle cancellation
2626
- // eslint-disable-next-line func-names
2627
- onCanceled = cancel => {
2628
- if (!request) {
2629
- return;
2886
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2887
+ if (_config.signal) {
2888
+ _config.signal.aborted
2889
+ ? onCanceled()
2890
+ : _config.signal.addEventListener('abort', onCanceled);
2630
2891
  }
2631
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2632
- request.abort();
2633
- request = null;
2634
- };
2635
-
2636
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2637
- if (_config.signal) {
2638
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
2639
2892
  }
2640
- }
2641
-
2642
- const protocol = parseProtocol(_config.url);
2643
2893
 
2644
- if (protocol && platform.protocols.indexOf(protocol) === -1) {
2645
- reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
2646
- return;
2647
- }
2894
+ const protocol = parseProtocol(_config.url);
2648
2895
 
2896
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
2897
+ reject(
2898
+ new AxiosError(
2899
+ 'Unsupported protocol ' + protocol + ':',
2900
+ AxiosError.ERR_BAD_REQUEST,
2901
+ config
2902
+ )
2903
+ );
2904
+ return;
2905
+ }
2649
2906
 
2650
- // Send the request
2651
- request.send(requestData || null);
2652
- });
2653
- };
2907
+ // Send the request
2908
+ request.send(requestData || null);
2909
+ });
2910
+ };
2654
2911
 
2655
2912
  const composeSignals = (signals, timeout) => {
2656
- const {length} = (signals = signals ? signals.filter(Boolean) : []);
2913
+ const { length } = (signals = signals ? signals.filter(Boolean) : []);
2657
2914
 
2658
2915
  if (timeout || length) {
2659
2916
  let controller = new AbortController();
@@ -2665,21 +2922,29 @@ function requireAxios () {
2665
2922
  aborted = true;
2666
2923
  unsubscribe();
2667
2924
  const err = reason instanceof Error ? reason : this.reason;
2668
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2925
+ controller.abort(
2926
+ err instanceof AxiosError
2927
+ ? err
2928
+ : new CanceledError(err instanceof Error ? err.message : err)
2929
+ );
2669
2930
  }
2670
2931
  };
2671
2932
 
2672
- let timer = timeout && setTimeout(() => {
2673
- timer = null;
2674
- onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
2675
- }, timeout);
2933
+ let timer =
2934
+ timeout &&
2935
+ setTimeout(() => {
2936
+ timer = null;
2937
+ onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
2938
+ }, timeout);
2676
2939
 
2677
2940
  const unsubscribe = () => {
2678
2941
  if (signals) {
2679
2942
  timer && clearTimeout(timer);
2680
2943
  timer = null;
2681
- signals.forEach(signal => {
2682
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
2944
+ signals.forEach((signal) => {
2945
+ signal.unsubscribe
2946
+ ? signal.unsubscribe(onabort)
2947
+ : signal.removeEventListener('abort', onabort);
2683
2948
  });
2684
2949
  signals = null;
2685
2950
  }
@@ -2687,7 +2952,7 @@ function requireAxios () {
2687
2952
 
2688
2953
  signals.forEach((signal) => signal.addEventListener('abort', onabort));
2689
2954
 
2690
- const {signal} = controller;
2955
+ const { signal } = controller;
2691
2956
 
2692
2957
  signal.unsubscribe = () => utils$1.asap(unsubscribe);
2693
2958
 
@@ -2695,8 +2960,6 @@ function requireAxios () {
2695
2960
  }
2696
2961
  };
2697
2962
 
2698
- var composeSignals$1 = composeSignals;
2699
-
2700
2963
  const streamChunk = function* (chunk, chunkSize) {
2701
2964
  let len = chunk.byteLength;
2702
2965
 
@@ -2730,7 +2993,7 @@ function requireAxios () {
2730
2993
  const reader = stream.getReader();
2731
2994
  try {
2732
2995
  for (;;) {
2733
- const {done, value} = await reader.read();
2996
+ const { done, value } = await reader.read();
2734
2997
  if (done) {
2735
2998
  break;
2736
2999
  }
@@ -2753,64 +3016,69 @@ function requireAxios () {
2753
3016
  }
2754
3017
  };
2755
3018
 
2756
- return new ReadableStream({
2757
- async pull(controller) {
2758
- try {
2759
- const {done, value} = await iterator.next();
3019
+ return new ReadableStream(
3020
+ {
3021
+ async pull(controller) {
3022
+ try {
3023
+ const { done, value } = await iterator.next();
2760
3024
 
2761
- if (done) {
2762
- _onFinish();
2763
- controller.close();
2764
- return;
2765
- }
3025
+ if (done) {
3026
+ _onFinish();
3027
+ controller.close();
3028
+ return;
3029
+ }
2766
3030
 
2767
- let len = value.byteLength;
2768
- if (onProgress) {
2769
- let loadedBytes = bytes += len;
2770
- onProgress(loadedBytes);
3031
+ let len = value.byteLength;
3032
+ if (onProgress) {
3033
+ let loadedBytes = (bytes += len);
3034
+ onProgress(loadedBytes);
3035
+ }
3036
+ controller.enqueue(new Uint8Array(value));
3037
+ } catch (err) {
3038
+ _onFinish(err);
3039
+ throw err;
2771
3040
  }
2772
- controller.enqueue(new Uint8Array(value));
2773
- } catch (err) {
2774
- _onFinish(err);
2775
- throw err;
2776
- }
3041
+ },
3042
+ cancel(reason) {
3043
+ _onFinish(reason);
3044
+ return iterator.return();
3045
+ },
2777
3046
  },
2778
- cancel(reason) {
2779
- _onFinish(reason);
2780
- return iterator.return();
3047
+ {
3048
+ highWaterMark: 2,
2781
3049
  }
2782
- }, {
2783
- highWaterMark: 2
2784
- })
3050
+ );
2785
3051
  };
2786
3052
 
2787
3053
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
2788
3054
 
2789
- const {isFunction} = utils$1;
3055
+ const { isFunction } = utils$1;
2790
3056
 
2791
- const globalFetchAPI = (({Request, Response}) => ({
2792
- Request, Response
3057
+ const globalFetchAPI = (({ Request, Response }) => ({
3058
+ Request,
3059
+ Response,
2793
3060
  }))(utils$1.global);
2794
3061
 
2795
- const {
2796
- ReadableStream: ReadableStream$1, TextEncoder
2797
- } = utils$1.global;
2798
-
3062
+ const { ReadableStream: ReadableStream$1, TextEncoder } = utils$1.global;
2799
3063
 
2800
3064
  const test = (fn, ...args) => {
2801
3065
  try {
2802
3066
  return !!fn(...args);
2803
3067
  } catch (e) {
2804
- return false
3068
+ return false;
2805
3069
  }
2806
3070
  };
2807
3071
 
2808
3072
  const factory = (env) => {
2809
- env = utils$1.merge.call({
2810
- skipUndefined: true
2811
- }, globalFetchAPI, env);
3073
+ env = utils$1.merge.call(
3074
+ {
3075
+ skipUndefined: true,
3076
+ },
3077
+ globalFetchAPI,
3078
+ env
3079
+ );
2812
3080
 
2813
- const {fetch: envFetch, Request, Response} = env;
3081
+ const { fetch: envFetch, Request, Response } = env;
2814
3082
  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
2815
3083
  const isRequestSupported = isFunction(Request);
2816
3084
  const isResponseSupported = isFunction(Response);
@@ -2821,46 +3089,65 @@ function requireAxios () {
2821
3089
 
2822
3090
  const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
2823
3091
 
2824
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2825
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
2826
- async (str) => new Uint8Array(await new Request(str).arrayBuffer())
2827
- );
3092
+ const encodeText =
3093
+ isFetchSupported &&
3094
+ (typeof TextEncoder === 'function'
3095
+ ? (
3096
+ (encoder) => (str) =>
3097
+ encoder.encode(str)
3098
+ )(new TextEncoder())
3099
+ : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
2828
3100
 
2829
- const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2830
- let duplexAccessed = false;
3101
+ const supportsRequestStream =
3102
+ isRequestSupported &&
3103
+ isReadableStreamSupported &&
3104
+ test(() => {
3105
+ let duplexAccessed = false;
2831
3106
 
2832
- const hasContentType = new Request(platform.origin, {
2833
- body: new ReadableStream$1(),
2834
- method: 'POST',
2835
- get duplex() {
2836
- duplexAccessed = true;
2837
- return 'half';
2838
- },
2839
- }).headers.has('Content-Type');
3107
+ const body = new ReadableStream$1();
2840
3108
 
2841
- return duplexAccessed && !hasContentType;
2842
- });
3109
+ const hasContentType = new Request(platform.origin, {
3110
+ body,
3111
+ method: 'POST',
3112
+ get duplex() {
3113
+ duplexAccessed = true;
3114
+ return 'half';
3115
+ },
3116
+ }).headers.has('Content-Type');
3117
+
3118
+ body.cancel();
2843
3119
 
2844
- const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
3120
+ return duplexAccessed && !hasContentType;
3121
+ });
3122
+
3123
+ const supportsResponseStream =
3124
+ isResponseSupported &&
3125
+ isReadableStreamSupported &&
2845
3126
  test(() => utils$1.isReadableStream(new Response('').body));
2846
3127
 
2847
3128
  const resolvers = {
2848
- stream: supportsResponseStream && ((res) => res.body)
3129
+ stream: supportsResponseStream && ((res) => res.body),
2849
3130
  };
2850
3131
 
2851
- isFetchSupported && ((() => {
2852
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2853
- !resolvers[type] && (resolvers[type] = (res, config) => {
2854
- let method = res && res[type];
2855
-
2856
- if (method) {
2857
- return method.call(res);
2858
- }
2859
-
2860
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
3132
+ isFetchSupported &&
3133
+ (() => {
3134
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
3135
+ !resolvers[type] &&
3136
+ (resolvers[type] = (res, config) => {
3137
+ let method = res && res[type];
3138
+
3139
+ if (method) {
3140
+ return method.call(res);
3141
+ }
3142
+
3143
+ throw new AxiosError(
3144
+ `Response type '${type}' is not supported`,
3145
+ AxiosError.ERR_NOT_SUPPORT,
3146
+ config
3147
+ );
3148
+ });
2861
3149
  });
2862
- });
2863
- })());
3150
+ })();
2864
3151
 
2865
3152
  const getBodyLength = async (body) => {
2866
3153
  if (body == null) {
@@ -2911,32 +3198,41 @@ function requireAxios () {
2911
3198
  responseType,
2912
3199
  headers,
2913
3200
  withCredentials = 'same-origin',
2914
- fetchOptions
3201
+ fetchOptions,
2915
3202
  } = resolveConfig(config);
2916
3203
 
2917
3204
  let _fetch = envFetch || fetch;
2918
3205
 
2919
3206
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2920
3207
 
2921
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
3208
+ let composedSignal = composeSignals(
3209
+ [signal, cancelToken && cancelToken.toAbortSignal()],
3210
+ timeout
3211
+ );
2922
3212
 
2923
3213
  let request = null;
2924
3214
 
2925
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2926
- composedSignal.unsubscribe();
2927
- });
3215
+ const unsubscribe =
3216
+ composedSignal &&
3217
+ composedSignal.unsubscribe &&
3218
+ (() => {
3219
+ composedSignal.unsubscribe();
3220
+ });
2928
3221
 
2929
3222
  let requestContentLength;
2930
3223
 
2931
3224
  try {
2932
3225
  if (
2933
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
3226
+ onUploadProgress &&
3227
+ supportsRequestStream &&
3228
+ method !== 'get' &&
3229
+ method !== 'head' &&
2934
3230
  (requestContentLength = await resolveBodyLength(headers, data)) !== 0
2935
3231
  ) {
2936
3232
  let _request = new Request(url, {
2937
3233
  method: 'POST',
2938
3234
  body: data,
2939
- duplex: "half"
3235
+ duplex: 'half',
2940
3236
  });
2941
3237
 
2942
3238
  let contentTypeHeader;
@@ -2961,7 +3257,7 @@ function requireAxios () {
2961
3257
 
2962
3258
  // Cloudflare Workers throws when credentials are defined
2963
3259
  // see https://github.com/cloudflare/workerd/issues/902
2964
- const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3260
+ const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
2965
3261
 
2966
3262
  const resolvedOptions = {
2967
3263
  ...fetchOptions,
@@ -2969,29 +3265,35 @@ function requireAxios () {
2969
3265
  method: method.toUpperCase(),
2970
3266
  headers: headers.normalize().toJSON(),
2971
3267
  body: data,
2972
- duplex: "half",
2973
- credentials: isCredentialsSupported ? withCredentials : undefined
3268
+ duplex: 'half',
3269
+ credentials: isCredentialsSupported ? withCredentials : undefined,
2974
3270
  };
2975
3271
 
2976
3272
  request = isRequestSupported && new Request(url, resolvedOptions);
2977
3273
 
2978
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3274
+ let response = await (isRequestSupported
3275
+ ? _fetch(request, fetchOptions)
3276
+ : _fetch(url, resolvedOptions));
2979
3277
 
2980
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3278
+ const isStreamResponse =
3279
+ supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2981
3280
 
2982
3281
  if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
2983
3282
  const options = {};
2984
3283
 
2985
- ['status', 'statusText', 'headers'].forEach(prop => {
3284
+ ['status', 'statusText', 'headers'].forEach((prop) => {
2986
3285
  options[prop] = response[prop];
2987
3286
  });
2988
3287
 
2989
3288
  const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
2990
3289
 
2991
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
2992
- responseContentLength,
2993
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
2994
- ) || [];
3290
+ const [onProgress, flush] =
3291
+ (onDownloadProgress &&
3292
+ progressEventDecorator(
3293
+ responseContentLength,
3294
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
3295
+ )) ||
3296
+ [];
2995
3297
 
2996
3298
  response = new Response(
2997
3299
  trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
@@ -3004,54 +3306,64 @@ function requireAxios () {
3004
3306
 
3005
3307
  responseType = responseType || 'text';
3006
3308
 
3007
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
3309
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](
3310
+ response,
3311
+ config
3312
+ );
3008
3313
 
3009
3314
  !isStreamResponse && unsubscribe && unsubscribe();
3010
3315
 
3011
3316
  return await new Promise((resolve, reject) => {
3012
3317
  settle(resolve, reject, {
3013
3318
  data: responseData,
3014
- headers: AxiosHeaders$1.from(response.headers),
3319
+ headers: AxiosHeaders.from(response.headers),
3015
3320
  status: response.status,
3016
3321
  statusText: response.statusText,
3017
3322
  config,
3018
- request
3323
+ request,
3019
3324
  });
3020
- })
3325
+ });
3021
3326
  } catch (err) {
3022
3327
  unsubscribe && unsubscribe();
3023
3328
 
3024
3329
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3025
3330
  throw Object.assign(
3026
- new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
3331
+ new AxiosError(
3332
+ 'Network Error',
3333
+ AxiosError.ERR_NETWORK,
3334
+ config,
3335
+ request,
3336
+ err && err.response
3337
+ ),
3027
3338
  {
3028
- cause: err.cause || err
3339
+ cause: err.cause || err,
3029
3340
  }
3030
- )
3341
+ );
3031
3342
  }
3032
3343
 
3033
- throw AxiosError$1.from(err, err && err.code, config, request);
3344
+ throw AxiosError.from(err, err && err.code, config, request, err && err.response);
3034
3345
  }
3035
- }
3346
+ };
3036
3347
  };
3037
3348
 
3038
3349
  const seedCache = new Map();
3039
3350
 
3040
3351
  const getFetch = (config) => {
3041
3352
  let env = (config && config.env) || {};
3042
- const {fetch, Request, Response} = env;
3043
- const seeds = [
3044
- Request, Response, fetch
3045
- ];
3353
+ const { fetch, Request, Response } = env;
3354
+ const seeds = [Request, Response, fetch];
3046
3355
 
3047
- let len = seeds.length, i = len,
3048
- seed, target, map = seedCache;
3356
+ let len = seeds.length,
3357
+ i = len,
3358
+ seed,
3359
+ target,
3360
+ map = seedCache;
3049
3361
 
3050
3362
  while (i--) {
3051
3363
  seed = seeds[i];
3052
3364
  target = map.get(seed);
3053
3365
 
3054
- target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
3366
+ target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
3055
3367
 
3056
3368
  map = target;
3057
3369
  }
@@ -3067,7 +3379,7 @@ function requireAxios () {
3067
3379
  * - `http` for Node.js
3068
3380
  * - `xhr` for browsers
3069
3381
  * - `fetch` for fetch API-based requests
3070
- *
3382
+ *
3071
3383
  * @type {Object<string, Function|Object>}
3072
3384
  */
3073
3385
  const knownAdapters = {
@@ -3075,7 +3387,7 @@ function requireAxios () {
3075
3387
  xhr: xhrAdapter,
3076
3388
  fetch: {
3077
3389
  get: getFetch,
3078
- }
3390
+ },
3079
3391
  };
3080
3392
 
3081
3393
  // Assign adapter names for easier debugging and identification
@@ -3092,7 +3404,7 @@ function requireAxios () {
3092
3404
 
3093
3405
  /**
3094
3406
  * Render a rejection reason string for unknown or unsupported adapters
3095
- *
3407
+ *
3096
3408
  * @param {string} reason
3097
3409
  * @returns {string}
3098
3410
  */
@@ -3100,17 +3412,18 @@ function requireAxios () {
3100
3412
 
3101
3413
  /**
3102
3414
  * Check if the adapter is resolved (function, null, or false)
3103
- *
3415
+ *
3104
3416
  * @param {Function|null|false} adapter
3105
3417
  * @returns {boolean}
3106
3418
  */
3107
- const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
3419
+ const isResolvedHandle = (adapter) =>
3420
+ utils$1.isFunction(adapter) || adapter === null || adapter === false;
3108
3421
 
3109
3422
  /**
3110
3423
  * Get the first suitable adapter from the provided list.
3111
3424
  * Tries each adapter in order until a supported one is found.
3112
3425
  * Throws an AxiosError if no adapter is suitable.
3113
- *
3426
+ *
3114
3427
  * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
3115
3428
  * @param {Object} config - Axios request configuration
3116
3429
  * @throws {AxiosError} If no suitable adapter is available
@@ -3135,7 +3448,7 @@ function requireAxios () {
3135
3448
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3136
3449
 
3137
3450
  if (adapter === undefined) {
3138
- throw new AxiosError$1(`Unknown adapter '${id}'`);
3451
+ throw new AxiosError(`Unknown adapter '${id}'`);
3139
3452
  }
3140
3453
  }
3141
3454
 
@@ -3147,16 +3460,19 @@ function requireAxios () {
3147
3460
  }
3148
3461
 
3149
3462
  if (!adapter) {
3150
- const reasons = Object.entries(rejectedReasons)
3151
- .map(([id, state]) => `adapter ${id} ` +
3463
+ const reasons = Object.entries(rejectedReasons).map(
3464
+ ([id, state]) =>
3465
+ `adapter ${id} ` +
3152
3466
  (state === false ? 'is not supported by the environment' : 'is not available in the build')
3153
- );
3467
+ );
3154
3468
 
3155
- let s = length ?
3156
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3157
- 'as no adapter specified';
3469
+ let s = length
3470
+ ? reasons.length > 1
3471
+ ? 'since :\n' + reasons.map(renderReason).join('\n')
3472
+ : ' ' + renderReason(reasons[0])
3473
+ : 'as no adapter specified';
3158
3474
 
3159
- throw new AxiosError$1(
3475
+ throw new AxiosError(
3160
3476
  `There is no suitable adapter to dispatch the request ` + s,
3161
3477
  'ERR_NOT_SUPPORT'
3162
3478
  );
@@ -3179,7 +3495,7 @@ function requireAxios () {
3179
3495
  * Exposes all known adapters
3180
3496
  * @type {Object<string, Function|Object>}
3181
3497
  */
3182
- adapters: knownAdapters
3498
+ adapters: knownAdapters,
3183
3499
  };
3184
3500
 
3185
3501
  /**
@@ -3195,7 +3511,7 @@ function requireAxios () {
3195
3511
  }
3196
3512
 
3197
3513
  if (config.signal && config.signal.aborted) {
3198
- throw new CanceledError$1(null, config);
3514
+ throw new CanceledError(null, config);
3199
3515
  }
3200
3516
  }
3201
3517
 
@@ -3209,53 +3525,49 @@ function requireAxios () {
3209
3525
  function dispatchRequest(config) {
3210
3526
  throwIfCancellationRequested(config);
3211
3527
 
3212
- config.headers = AxiosHeaders$1.from(config.headers);
3528
+ config.headers = AxiosHeaders.from(config.headers);
3213
3529
 
3214
3530
  // Transform request data
3215
- config.data = transformData.call(
3216
- config,
3217
- config.transformRequest
3218
- );
3531
+ config.data = transformData.call(config, config.transformRequest);
3219
3532
 
3220
3533
  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
3221
3534
  config.headers.setContentType('application/x-www-form-urlencoded', false);
3222
3535
  }
3223
3536
 
3224
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
3225
-
3226
- return adapter(config).then(function onAdapterResolution(response) {
3227
- throwIfCancellationRequested(config);
3537
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
3228
3538
 
3229
- // Transform response data
3230
- response.data = transformData.call(
3231
- config,
3232
- config.transformResponse,
3233
- response
3234
- );
3235
-
3236
- response.headers = AxiosHeaders$1.from(response.headers);
3237
-
3238
- return response;
3239
- }, function onAdapterRejection(reason) {
3240
- if (!isCancel(reason)) {
3539
+ return adapter(config).then(
3540
+ function onAdapterResolution(response) {
3241
3541
  throwIfCancellationRequested(config);
3242
3542
 
3243
3543
  // Transform response data
3244
- if (reason && reason.response) {
3245
- reason.response.data = transformData.call(
3246
- config,
3247
- config.transformResponse,
3248
- reason.response
3249
- );
3250
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
3544
+ response.data = transformData.call(config, config.transformResponse, response);
3545
+
3546
+ response.headers = AxiosHeaders.from(response.headers);
3547
+
3548
+ return response;
3549
+ },
3550
+ function onAdapterRejection(reason) {
3551
+ if (!isCancel(reason)) {
3552
+ throwIfCancellationRequested(config);
3553
+
3554
+ // Transform response data
3555
+ if (reason && reason.response) {
3556
+ reason.response.data = transformData.call(
3557
+ config,
3558
+ config.transformResponse,
3559
+ reason.response
3560
+ );
3561
+ reason.response.headers = AxiosHeaders.from(reason.response.headers);
3562
+ }
3251
3563
  }
3252
- }
3253
3564
 
3254
- return Promise.reject(reason);
3255
- });
3565
+ return Promise.reject(reason);
3566
+ }
3567
+ );
3256
3568
  }
3257
3569
 
3258
- const VERSION = "1.13.3";
3570
+ const VERSION = "1.14.0";
3259
3571
 
3260
3572
  const validators$1 = {};
3261
3573
 
@@ -3279,15 +3591,23 @@ function requireAxios () {
3279
3591
  */
3280
3592
  validators$1.transitional = function transitional(validator, version, message) {
3281
3593
  function formatMessage(opt, desc) {
3282
- return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3594
+ return (
3595
+ '[Axios v' +
3596
+ VERSION +
3597
+ "] Transitional option '" +
3598
+ opt +
3599
+ "'" +
3600
+ desc +
3601
+ (message ? '. ' + message : '')
3602
+ );
3283
3603
  }
3284
3604
 
3285
3605
  // eslint-disable-next-line func-names
3286
3606
  return (value, opt, opts) => {
3287
3607
  if (validator === false) {
3288
- throw new AxiosError$1(
3608
+ throw new AxiosError(
3289
3609
  formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
3290
- AxiosError$1.ERR_DEPRECATED
3610
+ AxiosError.ERR_DEPRECATED
3291
3611
  );
3292
3612
  }
3293
3613
 
@@ -3311,7 +3631,7 @@ function requireAxios () {
3311
3631
  // eslint-disable-next-line no-console
3312
3632
  console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
3313
3633
  return true;
3314
- }
3634
+ };
3315
3635
  };
3316
3636
 
3317
3637
  /**
@@ -3326,7 +3646,7 @@ function requireAxios () {
3326
3646
 
3327
3647
  function assertOptions(options, schema, allowUnknown) {
3328
3648
  if (typeof options !== 'object') {
3329
- throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
3649
+ throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
3330
3650
  }
3331
3651
  const keys = Object.keys(options);
3332
3652
  let i = keys.length;
@@ -3337,19 +3657,22 @@ function requireAxios () {
3337
3657
  const value = options[opt];
3338
3658
  const result = value === undefined || validator(value, opt, options);
3339
3659
  if (result !== true) {
3340
- throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
3660
+ throw new AxiosError(
3661
+ 'option ' + opt + ' must be ' + result,
3662
+ AxiosError.ERR_BAD_OPTION_VALUE
3663
+ );
3341
3664
  }
3342
3665
  continue;
3343
3666
  }
3344
3667
  if (allowUnknown !== true) {
3345
- throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
3668
+ throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
3346
3669
  }
3347
3670
  }
3348
3671
  }
3349
3672
 
3350
3673
  var validator = {
3351
3674
  assertOptions,
3352
- validators: validators$1
3675
+ validators: validators$1,
3353
3676
  };
3354
3677
 
3355
3678
  const validators = validator.validators;
@@ -3365,8 +3688,8 @@ function requireAxios () {
3365
3688
  constructor(instanceConfig) {
3366
3689
  this.defaults = instanceConfig || {};
3367
3690
  this.interceptors = {
3368
- request: new InterceptorManager$1(),
3369
- response: new InterceptorManager$1()
3691
+ request: new InterceptorManager(),
3692
+ response: new InterceptorManager(),
3370
3693
  };
3371
3694
  }
3372
3695
 
@@ -3417,26 +3740,35 @@ function requireAxios () {
3417
3740
 
3418
3741
  config = mergeConfig(this.defaults, config);
3419
3742
 
3420
- const {transitional, paramsSerializer, headers} = config;
3743
+ const { transitional, paramsSerializer, headers } = config;
3421
3744
 
3422
3745
  if (transitional !== undefined) {
3423
- validator.assertOptions(transitional, {
3424
- silentJSONParsing: validators.transitional(validators.boolean),
3425
- forcedJSONParsing: validators.transitional(validators.boolean),
3426
- clarifyTimeoutError: validators.transitional(validators.boolean)
3427
- }, false);
3746
+ validator.assertOptions(
3747
+ transitional,
3748
+ {
3749
+ silentJSONParsing: validators.transitional(validators.boolean),
3750
+ forcedJSONParsing: validators.transitional(validators.boolean),
3751
+ clarifyTimeoutError: validators.transitional(validators.boolean),
3752
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
3753
+ },
3754
+ false
3755
+ );
3428
3756
  }
3429
3757
 
3430
3758
  if (paramsSerializer != null) {
3431
3759
  if (utils$1.isFunction(paramsSerializer)) {
3432
3760
  config.paramsSerializer = {
3433
- serialize: paramsSerializer
3761
+ serialize: paramsSerializer,
3434
3762
  };
3435
3763
  } else {
3436
- validator.assertOptions(paramsSerializer, {
3437
- encode: validators.function,
3438
- serialize: validators.function
3439
- }, true);
3764
+ validator.assertOptions(
3765
+ paramsSerializer,
3766
+ {
3767
+ encode: validators.function,
3768
+ serialize: validators.function,
3769
+ },
3770
+ true
3771
+ );
3440
3772
  }
3441
3773
  }
3442
3774
 
@@ -3447,28 +3779,27 @@ function requireAxios () {
3447
3779
  config.allowAbsoluteUrls = true;
3448
3780
  }
3449
3781
 
3450
- validator.assertOptions(config, {
3451
- baseUrl: validators.spelling('baseURL'),
3452
- withXsrfToken: validators.spelling('withXSRFToken')
3453
- }, true);
3782
+ validator.assertOptions(
3783
+ config,
3784
+ {
3785
+ baseUrl: validators.spelling('baseURL'),
3786
+ withXsrfToken: validators.spelling('withXSRFToken'),
3787
+ },
3788
+ true
3789
+ );
3454
3790
 
3455
3791
  // Set config.method
3456
3792
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3457
3793
 
3458
3794
  // Flatten headers
3459
- let contextHeaders = headers && utils$1.merge(
3460
- headers.common,
3461
- headers[config.method]
3462
- );
3795
+ let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
3463
3796
 
3464
- headers && utils$1.forEach(
3465
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
3466
- (method) => {
3797
+ headers &&
3798
+ utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], (method) => {
3467
3799
  delete headers[method];
3468
- }
3469
- );
3800
+ });
3470
3801
 
3471
- config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
3802
+ config.headers = AxiosHeaders.concat(contextHeaders, headers);
3472
3803
 
3473
3804
  // filter out skipped interceptors
3474
3805
  const requestInterceptorChain = [];
@@ -3480,7 +3811,15 @@ function requireAxios () {
3480
3811
 
3481
3812
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
3482
3813
 
3483
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3814
+ const transitional = config.transitional || transitionalDefaults;
3815
+ const legacyInterceptorReqResOrdering =
3816
+ transitional && transitional.legacyInterceptorReqResOrdering;
3817
+
3818
+ if (legacyInterceptorReqResOrdering) {
3819
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3820
+ } else {
3821
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3822
+ }
3484
3823
  });
3485
3824
 
3486
3825
  const responseInterceptorChain = [];
@@ -3500,13 +3839,8 @@ function requireAxios () {
3500
3839
 
3501
3840
  promise = Promise.resolve(config);
3502
3841
 
3503
- let prevResult = config;
3504
3842
  while (i < len) {
3505
- promise = promise
3506
- .then(chain[i++])
3507
- .then(result => { prevResult = result !== undefined ? result : prevResult; })
3508
- .catch(chain[i++])
3509
- .then(() => prevResult);
3843
+ promise = promise.then(chain[i++], chain[i++]);
3510
3844
  }
3511
3845
 
3512
3846
  return promise;
@@ -3537,7 +3871,7 @@ function requireAxios () {
3537
3871
  len = responseInterceptorChain.length;
3538
3872
 
3539
3873
  while (i < len) {
3540
- promise = promise.then(responseInterceptorChain[i++]).catch(responseInterceptorChain[i++]);
3874
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
3541
3875
  }
3542
3876
 
3543
3877
  return promise;
@@ -3553,28 +3887,32 @@ function requireAxios () {
3553
3887
  // Provide aliases for supported request methods
3554
3888
  utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3555
3889
  /*eslint func-names:0*/
3556
- Axios.prototype[method] = function(url, config) {
3557
- return this.request(mergeConfig(config || {}, {
3558
- method,
3559
- url,
3560
- data: (config || {}).data
3561
- }));
3890
+ Axios.prototype[method] = function (url, config) {
3891
+ return this.request(
3892
+ mergeConfig(config || {}, {
3893
+ method,
3894
+ url,
3895
+ data: (config || {}).data,
3896
+ })
3897
+ );
3562
3898
  };
3563
3899
  });
3564
3900
 
3565
3901
  utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3566
- /*eslint func-names:0*/
3567
-
3568
3902
  function generateHTTPMethod(isForm) {
3569
3903
  return function httpMethod(url, data, config) {
3570
- return this.request(mergeConfig(config || {}, {
3571
- method,
3572
- headers: isForm ? {
3573
- 'Content-Type': 'multipart/form-data'
3574
- } : {},
3575
- url,
3576
- data
3577
- }));
3904
+ return this.request(
3905
+ mergeConfig(config || {}, {
3906
+ method,
3907
+ headers: isForm
3908
+ ? {
3909
+ 'Content-Type': 'multipart/form-data',
3910
+ }
3911
+ : {},
3912
+ url,
3913
+ data,
3914
+ })
3915
+ );
3578
3916
  };
3579
3917
  }
3580
3918
 
@@ -3583,8 +3921,6 @@ function requireAxios () {
3583
3921
  Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
3584
3922
  });
3585
3923
 
3586
- var Axios$1 = Axios;
3587
-
3588
3924
  /**
3589
3925
  * A `CancelToken` is an object that can be used to request cancellation of an operation.
3590
3926
  *
@@ -3607,7 +3943,7 @@ function requireAxios () {
3607
3943
  const token = this;
3608
3944
 
3609
3945
  // eslint-disable-next-line func-names
3610
- this.promise.then(cancel => {
3946
+ this.promise.then((cancel) => {
3611
3947
  if (!token._listeners) return;
3612
3948
 
3613
3949
  let i = token._listeners.length;
@@ -3619,10 +3955,10 @@ function requireAxios () {
3619
3955
  });
3620
3956
 
3621
3957
  // eslint-disable-next-line func-names
3622
- this.promise.then = onfulfilled => {
3958
+ this.promise.then = (onfulfilled) => {
3623
3959
  let _resolve;
3624
3960
  // eslint-disable-next-line func-names
3625
- const promise = new Promise(resolve => {
3961
+ const promise = new Promise((resolve) => {
3626
3962
  token.subscribe(resolve);
3627
3963
  _resolve = resolve;
3628
3964
  }).then(onfulfilled);
@@ -3640,7 +3976,7 @@ function requireAxios () {
3640
3976
  return;
3641
3977
  }
3642
3978
 
3643
- token.reason = new CanceledError$1(message, config, request);
3979
+ token.reason = new CanceledError(message, config, request);
3644
3980
  resolvePromise(token.reason);
3645
3981
  });
3646
3982
  }
@@ -3710,13 +4046,11 @@ function requireAxios () {
3710
4046
  });
3711
4047
  return {
3712
4048
  token,
3713
- cancel
4049
+ cancel,
3714
4050
  };
3715
4051
  }
3716
4052
  }
3717
4053
 
3718
- var CancelToken$1 = CancelToken;
3719
-
3720
4054
  /**
3721
4055
  * Syntactic sugar for invoking a function and expanding an array for arguments.
3722
4056
  *
@@ -3752,7 +4086,7 @@ function requireAxios () {
3752
4086
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3753
4087
  */
3754
4088
  function isAxiosError(payload) {
3755
- return utils$1.isObject(payload) && (payload.isAxiosError === true);
4089
+ return utils$1.isObject(payload) && payload.isAxiosError === true;
3756
4090
  }
3757
4091
 
3758
4092
  const HttpStatusCode = {
@@ -3831,8 +4165,6 @@ function requireAxios () {
3831
4165
  HttpStatusCode[value] = key;
3832
4166
  });
3833
4167
 
3834
- var HttpStatusCode$1 = HttpStatusCode;
3835
-
3836
4168
  /**
3837
4169
  * Create an instance of Axios
3838
4170
  *
@@ -3841,14 +4173,14 @@ function requireAxios () {
3841
4173
  * @returns {Axios} A new instance of Axios
3842
4174
  */
3843
4175
  function createInstance(defaultConfig) {
3844
- const context = new Axios$1(defaultConfig);
3845
- const instance = bind(Axios$1.prototype.request, context);
4176
+ const context = new Axios(defaultConfig);
4177
+ const instance = bind(Axios.prototype.request, context);
3846
4178
 
3847
4179
  // Copy axios.prototype to instance
3848
- utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
4180
+ utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
3849
4181
 
3850
4182
  // Copy context to instance
3851
- utils$1.extend(instance, context, null, {allOwnKeys: true});
4183
+ utils$1.extend(instance, context, null, { allOwnKeys: true });
3852
4184
 
3853
4185
  // Factory for creating new instances
3854
4186
  instance.create = function create(instanceConfig) {
@@ -3859,20 +4191,20 @@ function requireAxios () {
3859
4191
  }
3860
4192
 
3861
4193
  // Create the default instance to be exported
3862
- const axios = createInstance(defaults$1);
4194
+ const axios = createInstance(defaults);
3863
4195
 
3864
4196
  // Expose Axios class to allow class inheritance
3865
- axios.Axios = Axios$1;
4197
+ axios.Axios = Axios;
3866
4198
 
3867
4199
  // Expose Cancel & CancelToken
3868
- axios.CanceledError = CanceledError$1;
3869
- axios.CancelToken = CancelToken$1;
4200
+ axios.CanceledError = CanceledError;
4201
+ axios.CancelToken = CancelToken;
3870
4202
  axios.isCancel = isCancel;
3871
4203
  axios.VERSION = VERSION;
3872
4204
  axios.toFormData = toFormData;
3873
4205
 
3874
4206
  // Expose AxiosError class
3875
- axios.AxiosError = AxiosError$1;
4207
+ axios.AxiosError = AxiosError;
3876
4208
 
3877
4209
  // alias for CanceledError for backward compatibility
3878
4210
  axios.Cancel = axios.CanceledError;
@@ -3890,13 +4222,13 @@ function requireAxios () {
3890
4222
  // Expose mergeConfig
3891
4223
  axios.mergeConfig = mergeConfig;
3892
4224
 
3893
- axios.AxiosHeaders = AxiosHeaders$1;
4225
+ axios.AxiosHeaders = AxiosHeaders;
3894
4226
 
3895
- axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
4227
+ axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
3896
4228
 
3897
4229
  axios.getAdapter = adapters.getAdapter;
3898
4230
 
3899
- axios.HttpStatusCode = HttpStatusCode$1;
4231
+ axios.HttpStatusCode = HttpStatusCode;
3900
4232
 
3901
4233
  axios.default = axios;
3902
4234