@charde/core 0.0.3 → 0.0.5

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 (1075) hide show
  1. package/dist/charde/charde.css +1775 -0
  2. package/dist/charde/charde.esm.js +1 -0
  3. package/dist/charde/index.esm.js +2 -0
  4. package/dist/charde/p-0194d6e2.entry.js +1 -0
  5. package/dist/charde/p-0268cd80.entry.js +1 -0
  6. package/dist/charde/p-03cd8b15.entry.js +1 -0
  7. package/dist/charde/p-04566ad1.entry.js +1 -0
  8. package/dist/charde/p-04d6bfd5.entry.js +1 -0
  9. package/dist/charde/p-066b15c3.entry.js +1 -0
  10. package/dist/charde/p-067ef228.entry.js +1 -0
  11. package/dist/charde/p-09424a11.entry.js +1 -0
  12. package/dist/charde/p-09aa135c.entry.js +1 -0
  13. package/dist/charde/p-09ebd779.entry.js +1 -0
  14. package/dist/charde/p-0d3074a3.entry.js +1 -0
  15. package/dist/charde/p-139e543c.entry.js +1 -0
  16. package/dist/charde/p-15afafb1.entry.js +1 -0
  17. package/dist/charde/p-17511150.entry.js +1 -0
  18. package/dist/charde/p-184bed27.entry.js +1 -0
  19. package/dist/charde/p-1e2849e0.entry.js +1 -0
  20. package/dist/charde/p-1f3760d6.entry.js +1 -0
  21. package/dist/charde/p-1f600e6b.entry.js +1 -0
  22. package/dist/charde/p-20670731.entry.js +1 -0
  23. package/dist/charde/p-222b8212.entry.js +1 -0
  24. package/dist/charde/p-224f260a.entry.js +1 -0
  25. package/dist/charde/p-22af325f.entry.js +1 -0
  26. package/dist/charde/p-24686bd8.entry.js +1 -0
  27. package/dist/charde/p-24da97c4.entry.js +1 -0
  28. package/dist/charde/p-24f49f2d.entry.js +1 -0
  29. package/dist/charde/p-2c612ca4.entry.js +1 -0
  30. package/dist/charde/p-2dbf1cb7.entry.js +1 -0
  31. package/dist/charde/p-2e41c51d.entry.js +1 -0
  32. package/dist/charde/p-3182d80c.entry.js +1 -0
  33. package/dist/charde/p-335c0fd8.entry.js +1 -0
  34. package/dist/charde/p-365e8679.entry.js +1 -0
  35. package/dist/charde/p-36b00f23.entry.js +1 -0
  36. package/dist/charde/p-36b25b8f.entry.js +1 -0
  37. package/dist/charde/p-3b08f29c.entry.js +1 -0
  38. package/dist/charde/p-3b5b48f3.entry.js +1 -0
  39. package/dist/charde/p-3bfba656.entry.js +1 -0
  40. package/dist/charde/p-3f2bd134.entry.js +1 -0
  41. package/dist/charde/p-40542282.entry.js +1 -0
  42. package/dist/charde/p-411df8a1.entry.js +1 -0
  43. package/dist/charde/p-41f93738.entry.js +1 -0
  44. package/dist/charde/p-480ca83c.entry.js +1 -0
  45. package/dist/charde/p-491913d3.entry.js +1 -0
  46. package/dist/charde/p-4b1f1b78.entry.js +1 -0
  47. package/dist/charde/p-4bfeda7f.entry.js +1 -0
  48. package/dist/charde/p-4c54d9ad.entry.js +1 -0
  49. package/dist/charde/p-4e177b89.entry.js +1 -0
  50. package/dist/charde/p-5261a835.entry.js +1 -0
  51. package/dist/charde/p-55d378a3.entry.js +1 -0
  52. package/dist/charde/p-6094c178.entry.js +1 -0
  53. package/dist/charde/p-60ca72dc.entry.js +1 -0
  54. package/dist/charde/p-62185de3.entry.js +1 -0
  55. package/dist/charde/p-62ee5694.entry.js +1 -0
  56. package/dist/charde/p-6340d5c0.entry.js +1 -0
  57. package/dist/charde/p-6429b7eb.entry.js +1 -0
  58. package/dist/charde/p-64338c8f.entry.js +1 -0
  59. package/dist/charde/p-6697ac70.entry.js +1 -0
  60. package/dist/charde/p-669bc008.entry.js +1 -0
  61. package/dist/charde/p-66dcfd9f.entry.js +1 -0
  62. package/dist/charde/p-69925849.entry.js +1 -0
  63. package/dist/charde/p-6b98dcdf.entry.js +1 -0
  64. package/dist/charde/p-6c6e0415.entry.js +1 -0
  65. package/dist/charde/p-6f253925.entry.js +1 -0
  66. package/dist/charde/p-6f53f078.entry.js +1 -0
  67. package/dist/charde/p-729e42e1.entry.js +1 -0
  68. package/dist/charde/p-74748c9a.entry.js +1 -0
  69. package/dist/charde/p-74e572a1.entry.js +1 -0
  70. package/dist/charde/p-76e192bf.entry.js +1 -0
  71. package/dist/charde/p-77841ee4.entry.js +1 -0
  72. package/dist/charde/p-780e7264.entry.js +1 -0
  73. package/dist/charde/p-791ff255.entry.js +1 -0
  74. package/dist/charde/p-7b3e7e84.entry.js +1 -0
  75. package/dist/charde/p-7b68153c.entry.js +1 -0
  76. package/dist/charde/p-7c759df9.entry.js +1 -0
  77. package/dist/charde/p-83dc677c.entry.js +1 -0
  78. package/dist/charde/p-85d001e2.entry.js +1 -0
  79. package/dist/charde/p-8eb2c3aa.entry.js +1 -0
  80. package/dist/charde/p-8ecb0f5b.entry.js +1 -0
  81. package/dist/charde/p-8f55275a.entry.js +1 -0
  82. package/dist/charde/p-91209ae9.entry.js +1 -0
  83. package/dist/charde/p-9680ffb6.entry.js +1 -0
  84. package/dist/charde/p-9695ef45.entry.js +1 -0
  85. package/dist/charde/p-996342d2.entry.js +1 -0
  86. package/dist/charde/p-9b4de166.entry.js +1 -0
  87. package/dist/charde/p-9e61fe0e.entry.js +1 -0
  88. package/dist/charde/p-DhW431pq.js +1 -0
  89. package/dist/charde/p-a23c8d7c.entry.js +1 -0
  90. package/dist/charde/p-a2cd0e39.entry.js +1 -0
  91. package/dist/charde/p-a36f9ca5.entry.js +1 -0
  92. package/dist/charde/p-a4bba299.entry.js +1 -0
  93. package/dist/charde/p-a7b721ba.entry.js +1 -0
  94. package/dist/charde/p-ae7bd699.entry.js +1 -0
  95. package/dist/charde/p-b4f6e083.entry.js +1 -0
  96. package/dist/charde/p-bc28f8f2.entry.js +1 -0
  97. package/dist/charde/p-bee2ade3.entry.js +1 -0
  98. package/dist/charde/p-bf1328b7.entry.js +1 -0
  99. package/dist/charde/p-c30125e4.entry.js +1 -0
  100. package/dist/charde/p-c4276924.entry.js +1 -0
  101. package/dist/charde/p-c7f679f7.entry.js +1 -0
  102. package/dist/charde/p-cb0a18c5.entry.js +1 -0
  103. package/dist/charde/p-cb75e2f2.entry.js +1 -0
  104. package/dist/charde/p-cd12f7a1.entry.js +1 -0
  105. package/dist/charde/p-ceb31adb.entry.js +1 -0
  106. package/dist/charde/p-cf7b84e1.entry.js +1 -0
  107. package/dist/charde/p-d11bbf41.entry.js +1 -0
  108. package/dist/charde/p-d33c2219.entry.js +1 -0
  109. package/dist/charde/p-d343b42e.entry.js +1 -0
  110. package/dist/charde/p-d38f5f34.entry.js +1 -0
  111. package/dist/charde/p-d87c8b54.entry.js +1 -0
  112. package/dist/charde/p-d922b748.entry.js +1 -0
  113. package/dist/charde/p-d9297726.entry.js +1 -0
  114. package/dist/charde/p-d97a17e5.entry.js +1 -0
  115. package/dist/charde/p-da780497.entry.js +1 -0
  116. package/dist/charde/p-dddaa989.entry.js +1 -0
  117. package/dist/charde/p-e0f3571b.entry.js +1 -0
  118. package/dist/charde/p-e1272c1d.entry.js +1 -0
  119. package/dist/charde/p-e2bb7798.entry.js +1 -0
  120. package/dist/charde/p-e5ce0025.entry.js +1 -0
  121. package/dist/charde/p-e637c524.entry.js +1 -0
  122. package/dist/charde/p-e86ed169.entry.js +1 -0
  123. package/dist/charde/p-eaf9bff6.entry.js +1 -0
  124. package/dist/charde/p-ecb5e2bc.entry.js +1 -0
  125. package/dist/charde/p-ed21e36a.entry.js +1 -0
  126. package/dist/charde/p-edfc4008.entry.js +1 -0
  127. package/dist/charde/p-eea31a17.entry.js +1 -0
  128. package/dist/charde/p-f073a6fd.entry.js +1 -0
  129. package/dist/charde/p-f3be7834.entry.js +1 -0
  130. package/dist/charde/p-fd5d233d.entry.js +1 -0
  131. package/dist/charde/p-fed01765.entry.js +1 -0
  132. package/dist/charde/p-ff14a778.entry.js +1 -0
  133. package/dist/charde/p-jZlebn0H.js +2 -0
  134. package/dist/cjs/charde.cjs.js +24 -0
  135. package/dist/cjs/chardes-alert-close-button.cjs.entry.js +23 -0
  136. package/dist/cjs/chardes-alert-content.cjs.entry.js +22 -0
  137. package/dist/cjs/chardes-alert-error.cjs.entry.js +21 -0
  138. package/dist/cjs/chardes-alert-header.cjs.entry.js +21 -0
  139. package/dist/cjs/chardes-alert-icon.cjs.entry.js +22 -0
  140. package/dist/cjs/chardes-alert-success.cjs.entry.js +21 -0
  141. package/dist/cjs/chardes-alert-title-container.cjs.entry.js +21 -0
  142. package/dist/cjs/chardes-alert-title.cjs.entry.js +22 -0
  143. package/dist/cjs/chardes-alert-warning.cjs.entry.js +21 -0
  144. package/dist/cjs/chardes-alerts.cjs.entry.js +21 -0
  145. package/dist/cjs/chardes-badge-close-button.cjs.entry.js +23 -0
  146. package/dist/cjs/chardes-badge-error.cjs.entry.js +22 -0
  147. package/dist/cjs/chardes-badge-group.cjs.entry.js +21 -0
  148. package/dist/cjs/chardes-badge-icon.cjs.entry.js +22 -0
  149. package/dist/cjs/chardes-badge-interactive-text.cjs.entry.js +22 -0
  150. package/dist/cjs/chardes-badge-interactive.cjs.entry.js +21 -0
  151. package/dist/cjs/chardes-badge-outline.cjs.entry.js +22 -0
  152. package/dist/cjs/chardes-badge-primary.cjs.entry.js +22 -0
  153. package/dist/cjs/chardes-badge-secondary.cjs.entry.js +22 -0
  154. package/dist/cjs/chardes-badge-success.cjs.entry.js +22 -0
  155. package/dist/cjs/chardes-badge-text.cjs.entry.js +22 -0
  156. package/dist/cjs/chardes-badge-warning.cjs.entry.js +22 -0
  157. package/dist/cjs/chardes-badge-with-icon.cjs.entry.js +21 -0
  158. package/dist/cjs/chardes-badge.cjs.entry.js +21 -0
  159. package/dist/cjs/chardes-button_4.cjs.entry.js +76 -0
  160. package/dist/cjs/chardes-card-body-action-button-1.cjs.entry.js +23 -0
  161. package/dist/cjs/chardes-card-body-action-button-2.cjs.entry.js +23 -0
  162. package/dist/cjs/chardes-card-body-action-icon-1.cjs.entry.js +22 -0
  163. package/dist/cjs/chardes-card-body-action-icon-2.cjs.entry.js +22 -0
  164. package/dist/cjs/chardes-card-body-actions.cjs.entry.js +21 -0
  165. package/dist/cjs/chardes-card-body-driver.cjs.entry.js +21 -0
  166. package/dist/cjs/chardes-card-body-img.cjs.entry.js +23 -0
  167. package/dist/cjs/chardes-card-body-info.cjs.entry.js +21 -0
  168. package/dist/cjs/chardes-card-body-name.cjs.entry.js +22 -0
  169. package/dist/cjs/chardes-card-body-span.cjs.entry.js +22 -0
  170. package/dist/cjs/chardes-card-body.cjs.entry.js +21 -0
  171. package/dist/cjs/chardes-card-container.cjs.entry.js +21 -0
  172. package/dist/cjs/chardes-card-header-content.cjs.entry.js +21 -0
  173. package/dist/cjs/chardes-card-header-timer.cjs.entry.js +22 -0
  174. package/dist/cjs/chardes-card-header-title.cjs.entry.js +22 -0
  175. package/dist/cjs/chardes-card-header.cjs.entry.js +21 -0
  176. package/dist/cjs/chardes-card-icon-container.cjs.entry.js +21 -0
  177. package/dist/cjs/chardes-card-number.cjs.entry.js +22 -0
  178. package/dist/cjs/chardes-card-payment-container.cjs.entry.js +21 -0
  179. package/dist/cjs/chardes-card-payment-content.cjs.entry.js +21 -0
  180. package/dist/cjs/chardes-card-payment-details.cjs.entry.js +21 -0
  181. package/dist/cjs/chardes-card-payment-icon-container.cjs.entry.js +21 -0
  182. package/dist/cjs/chardes-card-payment.cjs.entry.js +21 -0
  183. package/dist/cjs/chardes-card-route-container.cjs.entry.js +21 -0
  184. package/dist/cjs/chardes-card-route-destination-address.cjs.entry.js +22 -0
  185. package/dist/cjs/chardes-card-route-destination-details.cjs.entry.js +21 -0
  186. package/dist/cjs/chardes-card-route-destination-icon-container.cjs.entry.js +21 -0
  187. package/dist/cjs/chardes-card-route-destination-icon.cjs.entry.js +21 -0
  188. package/dist/cjs/chardes-card-route-destination-label.cjs.entry.js +22 -0
  189. package/dist/cjs/chardes-card-route-destination.cjs.entry.js +21 -0
  190. package/dist/cjs/chardes-card-route-pickup-address.cjs.entry.js +22 -0
  191. package/dist/cjs/chardes-card-route-pickup-details.cjs.entry.js +21 -0
  192. package/dist/cjs/chardes-card-route-pickup-icon.cjs.entry.js +21 -0
  193. package/dist/cjs/chardes-card-route-pickup-label.cjs.entry.js +22 -0
  194. package/dist/cjs/chardes-card-route-pickup.cjs.entry.js +21 -0
  195. package/dist/cjs/chardes-card-route.cjs.entry.js +21 -0
  196. package/dist/cjs/chardes-card-total-amount.cjs.entry.js +22 -0
  197. package/dist/cjs/chardes-card-total-content.cjs.entry.js +21 -0
  198. package/dist/cjs/chardes-card-total-label.cjs.entry.js +22 -0
  199. package/dist/cjs/chardes-card-total-section.cjs.entry.js +21 -0
  200. package/dist/cjs/chardes-card-type.cjs.entry.js +22 -0
  201. package/dist/cjs/chardes-checkbox-checkmark.cjs.entry.js +21 -0
  202. package/dist/cjs/chardes-checkbox-input-wrapper.cjs.entry.js +21 -0
  203. package/dist/cjs/chardes-checkbox-input.cjs.entry.js +25 -0
  204. package/dist/cjs/chardes-checkbox-label.cjs.entry.js +22 -0
  205. package/dist/cjs/chardes-checkmark-svg.cjs.entry.js +21 -0
  206. package/dist/cjs/chardes-close-icon.cjs.entry.js +22 -0
  207. package/dist/cjs/chardes-error-icon-svg.cjs.entry.js +22 -0
  208. package/dist/cjs/chardes-error-input-icon.cjs.entry.js +21 -0
  209. package/dist/cjs/chardes-error-input-wrapper.cjs.entry.js +21 -0
  210. package/dist/cjs/chardes-error-input.cjs.entry.js +26 -0
  211. package/dist/cjs/chardes-error-label.cjs.entry.js +23 -0
  212. package/dist/cjs/chardes-error-message.cjs.entry.js +22 -0
  213. package/dist/cjs/chardes-error-state.cjs.entry.js +21 -0
  214. package/dist/cjs/chardes-form-group.cjs.entry.js +21 -0
  215. package/dist/cjs/chardes-form-input.cjs.entry.js +25 -0
  216. package/dist/cjs/chardes-form-label.cjs.entry.js +23 -0
  217. package/dist/cjs/chardes-group-badge-1.cjs.entry.js +22 -0
  218. package/dist/cjs/chardes-group-badge-2.cjs.entry.js +22 -0
  219. package/dist/cjs/chardes-group-badge-3.cjs.entry.js +22 -0
  220. package/dist/cjs/chardes-group-badge-4.cjs.entry.js +22 -0
  221. package/dist/cjs/chardes-icon-svg-destination.cjs.entry.js +22 -0
  222. package/dist/cjs/chardes-icon-svg-pickup.cjs.entry.js +22 -0
  223. package/dist/cjs/chardes-icon-svg.cjs.entry.js +22 -0
  224. package/dist/cjs/chardes-input-element.cjs.entry.js +26 -0
  225. package/dist/cjs/chardes-input-field-wrapper.cjs.entry.js +21 -0
  226. package/dist/cjs/chardes-input-helper.cjs.entry.js +22 -0
  227. package/dist/cjs/chardes-input-icon.cjs.entry.js +21 -0
  228. package/dist/cjs/chardes-input-label.cjs.entry.js +23 -0
  229. package/dist/cjs/chardes-input-states.cjs.entry.js +21 -0
  230. package/dist/cjs/chardes-input-wrapper.cjs.entry.js +21 -0
  231. package/dist/cjs/chardes-modal-body.cjs.entry.js +21 -0
  232. package/dist/cjs/chardes-modal-cancel-button.cjs.entry.js +24 -0
  233. package/dist/cjs/chardes-modal-close-button.cjs.entry.js +23 -0
  234. package/dist/cjs/chardes-modal-confirm-button.cjs.entry.js +24 -0
  235. package/dist/cjs/chardes-modal-container.cjs.entry.js +21 -0
  236. package/dist/cjs/chardes-modal-content.cjs.entry.js +22 -0
  237. package/dist/cjs/chardes-modal-footer.cjs.entry.js +21 -0
  238. package/dist/cjs/chardes-modal-form.cjs.entry.js +21 -0
  239. package/dist/cjs/chardes-modal-header.cjs.entry.js +21 -0
  240. package/dist/cjs/chardes-modal-title.cjs.entry.js +22 -0
  241. package/dist/cjs/chardes-modal.cjs.entry.js +21 -0
  242. package/dist/cjs/chardes-muzingo-primary-button.cjs.entry.js +21 -0
  243. package/dist/cjs/chardes-muzingo.cjs.entry.js +25 -0
  244. package/dist/cjs/chardes-notification-toast.cjs.entry.js +21 -0
  245. package/dist/cjs/chardes-payment-icon.cjs.entry.js +22 -0
  246. package/dist/cjs/chardes-success-icon-svg.cjs.entry.js +22 -0
  247. package/dist/cjs/chardes-success-input-icon.cjs.entry.js +21 -0
  248. package/dist/cjs/chardes-success-input-wrapper.cjs.entry.js +21 -0
  249. package/dist/cjs/chardes-success-input.cjs.entry.js +26 -0
  250. package/dist/cjs/chardes-success-label.cjs.entry.js +23 -0
  251. package/dist/cjs/chardes-success-message.cjs.entry.js +22 -0
  252. package/dist/cjs/chardes-success-state.cjs.entry.js +21 -0
  253. package/dist/cjs/chardes-toast-action-button.cjs.entry.js +24 -0
  254. package/dist/cjs/chardes-toast-actions.cjs.entry.js +21 -0
  255. package/dist/cjs/chardes-toast-content.cjs.entry.js +22 -0
  256. package/dist/cjs/chardes-toast-dismiss-button.cjs.entry.js +24 -0
  257. package/dist/cjs/chardes-toast-header.cjs.entry.js +21 -0
  258. package/dist/cjs/chardes-toast-icon.cjs.entry.js +22 -0
  259. package/dist/cjs/chardes-toast-timestamp.cjs.entry.js +22 -0
  260. package/dist/cjs/chardes-toast-title-container.cjs.entry.js +21 -0
  261. package/dist/cjs/chardes-toast-title.cjs.entry.js +22 -0
  262. package/dist/cjs/index-Buq98cwc.js +1426 -0
  263. package/dist/cjs/index.cjs.js +4880 -0
  264. package/dist/cjs/loader.cjs.js +12 -0
  265. package/dist/cjs/my-component.cjs.entry.js +33 -0
  266. package/dist/cjs/utils-v2Yks-1k.js +7 -0
  267. package/dist/collection/collection-manifest.json +143 -0
  268. package/dist/collection/components/generated/chardes-alert-close-button.css +1 -0
  269. package/dist/collection/components/generated/chardes-alert-close-button.js +108 -0
  270. package/dist/collection/components/generated/chardes-alert-content.css +1 -0
  271. package/dist/collection/components/generated/chardes-alert-content.js +88 -0
  272. package/dist/collection/components/generated/chardes-alert-error.css +1 -0
  273. package/dist/collection/components/generated/chardes-alert-error.js +68 -0
  274. package/dist/collection/components/generated/chardes-alert-header.css +1 -0
  275. package/dist/collection/components/generated/chardes-alert-header.js +68 -0
  276. package/dist/collection/components/generated/chardes-alert-icon.css +1 -0
  277. package/dist/collection/components/generated/chardes-alert-icon.js +88 -0
  278. package/dist/collection/components/generated/chardes-alert-success.css +1 -0
  279. package/dist/collection/components/generated/chardes-alert-success.js +68 -0
  280. package/dist/collection/components/generated/chardes-alert-title-container.css +1 -0
  281. package/dist/collection/components/generated/chardes-alert-title-container.js +68 -0
  282. package/dist/collection/components/generated/chardes-alert-title.css +1 -0
  283. package/dist/collection/components/generated/chardes-alert-title.js +88 -0
  284. package/dist/collection/components/generated/chardes-alert-warning.css +1 -0
  285. package/dist/collection/components/generated/chardes-alert-warning.js +68 -0
  286. package/dist/collection/components/generated/chardes-alerts.css +1 -0
  287. package/dist/collection/components/generated/chardes-alerts.js +68 -0
  288. package/dist/collection/components/generated/chardes-badge-close-button.css +1 -0
  289. package/dist/collection/components/generated/chardes-badge-close-button.js +108 -0
  290. package/dist/collection/components/generated/chardes-badge-error.css +1 -0
  291. package/dist/collection/components/generated/chardes-badge-error.js +88 -0
  292. package/dist/collection/components/generated/chardes-badge-group.css +1 -0
  293. package/dist/collection/components/generated/chardes-badge-group.js +68 -0
  294. package/dist/collection/components/generated/chardes-badge-icon.css +1 -0
  295. package/dist/collection/components/generated/chardes-badge-icon.js +88 -0
  296. package/dist/collection/components/generated/chardes-badge-interactive-text.css +1 -0
  297. package/dist/collection/components/generated/chardes-badge-interactive-text.js +88 -0
  298. package/dist/collection/components/generated/chardes-badge-interactive.css +1 -0
  299. package/dist/collection/components/generated/chardes-badge-interactive.js +68 -0
  300. package/dist/collection/components/generated/chardes-badge-outline.css +1 -0
  301. package/dist/collection/components/generated/chardes-badge-outline.js +88 -0
  302. package/dist/collection/components/generated/chardes-badge-primary.css +1 -0
  303. package/dist/collection/components/generated/chardes-badge-primary.js +88 -0
  304. package/dist/collection/components/generated/chardes-badge-secondary.css +1 -0
  305. package/dist/collection/components/generated/chardes-badge-secondary.js +88 -0
  306. package/dist/collection/components/generated/chardes-badge-success.css +1 -0
  307. package/dist/collection/components/generated/chardes-badge-success.js +88 -0
  308. package/dist/collection/components/generated/chardes-badge-text.css +1 -0
  309. package/dist/collection/components/generated/chardes-badge-text.js +88 -0
  310. package/dist/collection/components/generated/chardes-badge-warning.css +1 -0
  311. package/dist/collection/components/generated/chardes-badge-warning.js +88 -0
  312. package/dist/collection/components/generated/chardes-badge-with-icon.css +1 -0
  313. package/dist/collection/components/generated/chardes-badge-with-icon.js +68 -0
  314. package/dist/collection/components/generated/chardes-badge.css +1 -0
  315. package/dist/collection/components/generated/chardes-badge.js +68 -0
  316. package/dist/collection/components/generated/chardes-button.css +1 -0
  317. package/dist/collection/components/generated/chardes-button.js +128 -0
  318. package/dist/collection/components/generated/chardes-card-body-action-button-1.css +1 -0
  319. package/dist/collection/components/generated/chardes-card-body-action-button-1.js +108 -0
  320. package/dist/collection/components/generated/chardes-card-body-action-button-2.css +1 -0
  321. package/dist/collection/components/generated/chardes-card-body-action-button-2.js +108 -0
  322. package/dist/collection/components/generated/chardes-card-body-action-icon-1.css +1 -0
  323. package/dist/collection/components/generated/chardes-card-body-action-icon-1.js +88 -0
  324. package/dist/collection/components/generated/chardes-card-body-action-icon-2.css +1 -0
  325. package/dist/collection/components/generated/chardes-card-body-action-icon-2.js +88 -0
  326. package/dist/collection/components/generated/chardes-card-body-actions.css +1 -0
  327. package/dist/collection/components/generated/chardes-card-body-actions.js +68 -0
  328. package/dist/collection/components/generated/chardes-card-body-driver.css +1 -0
  329. package/dist/collection/components/generated/chardes-card-body-driver.js +68 -0
  330. package/dist/collection/components/generated/chardes-card-body-img.css +1 -0
  331. package/dist/collection/components/generated/chardes-card-body-img.js +108 -0
  332. package/dist/collection/components/generated/chardes-card-body-info.css +1 -0
  333. package/dist/collection/components/generated/chardes-card-body-info.js +68 -0
  334. package/dist/collection/components/generated/chardes-card-body-name.css +1 -0
  335. package/dist/collection/components/generated/chardes-card-body-name.js +88 -0
  336. package/dist/collection/components/generated/chardes-card-body-span.css +1 -0
  337. package/dist/collection/components/generated/chardes-card-body-span.js +88 -0
  338. package/dist/collection/components/generated/chardes-card-body.css +1 -0
  339. package/dist/collection/components/generated/chardes-card-body.js +68 -0
  340. package/dist/collection/components/generated/chardes-card-container.css +1 -0
  341. package/dist/collection/components/generated/chardes-card-container.js +68 -0
  342. package/dist/collection/components/generated/chardes-card-header-content.css +1 -0
  343. package/dist/collection/components/generated/chardes-card-header-content.js +68 -0
  344. package/dist/collection/components/generated/chardes-card-header-timer.css +1 -0
  345. package/dist/collection/components/generated/chardes-card-header-timer.js +88 -0
  346. package/dist/collection/components/generated/chardes-card-header-title.css +1 -0
  347. package/dist/collection/components/generated/chardes-card-header-title.js +88 -0
  348. package/dist/collection/components/generated/chardes-card-header.css +1 -0
  349. package/dist/collection/components/generated/chardes-card-header.js +68 -0
  350. package/dist/collection/components/generated/chardes-card-icon-container.css +1 -0
  351. package/dist/collection/components/generated/chardes-card-icon-container.js +68 -0
  352. package/dist/collection/components/generated/chardes-card-number.css +1 -0
  353. package/dist/collection/components/generated/chardes-card-number.js +88 -0
  354. package/dist/collection/components/generated/chardes-card-payment-container.css +1 -0
  355. package/dist/collection/components/generated/chardes-card-payment-container.js +68 -0
  356. package/dist/collection/components/generated/chardes-card-payment-content.css +1 -0
  357. package/dist/collection/components/generated/chardes-card-payment-content.js +68 -0
  358. package/dist/collection/components/generated/chardes-card-payment-details.css +1 -0
  359. package/dist/collection/components/generated/chardes-card-payment-details.js +68 -0
  360. package/dist/collection/components/generated/chardes-card-payment-icon-container.css +1 -0
  361. package/dist/collection/components/generated/chardes-card-payment-icon-container.js +68 -0
  362. package/dist/collection/components/generated/chardes-card-payment.css +1 -0
  363. package/dist/collection/components/generated/chardes-card-payment.js +68 -0
  364. package/dist/collection/components/generated/chardes-card-route-container.css +1 -0
  365. package/dist/collection/components/generated/chardes-card-route-container.js +68 -0
  366. package/dist/collection/components/generated/chardes-card-route-destination-address.css +1 -0
  367. package/dist/collection/components/generated/chardes-card-route-destination-address.js +88 -0
  368. package/dist/collection/components/generated/chardes-card-route-destination-details.css +1 -0
  369. package/dist/collection/components/generated/chardes-card-route-destination-details.js +68 -0
  370. package/dist/collection/components/generated/chardes-card-route-destination-icon-container.css +1 -0
  371. package/dist/collection/components/generated/chardes-card-route-destination-icon-container.js +68 -0
  372. package/dist/collection/components/generated/chardes-card-route-destination-icon.css +1 -0
  373. package/dist/collection/components/generated/chardes-card-route-destination-icon.js +68 -0
  374. package/dist/collection/components/generated/chardes-card-route-destination-label.css +1 -0
  375. package/dist/collection/components/generated/chardes-card-route-destination-label.js +88 -0
  376. package/dist/collection/components/generated/chardes-card-route-destination.css +1 -0
  377. package/dist/collection/components/generated/chardes-card-route-destination.js +68 -0
  378. package/dist/collection/components/generated/chardes-card-route-pickup-address.css +1 -0
  379. package/dist/collection/components/generated/chardes-card-route-pickup-address.js +88 -0
  380. package/dist/collection/components/generated/chardes-card-route-pickup-details.css +1 -0
  381. package/dist/collection/components/generated/chardes-card-route-pickup-details.js +68 -0
  382. package/dist/collection/components/generated/chardes-card-route-pickup-icon.css +1 -0
  383. package/dist/collection/components/generated/chardes-card-route-pickup-icon.js +68 -0
  384. package/dist/collection/components/generated/chardes-card-route-pickup-label.css +1 -0
  385. package/dist/collection/components/generated/chardes-card-route-pickup-label.js +88 -0
  386. package/dist/collection/components/generated/chardes-card-route-pickup.css +1 -0
  387. package/dist/collection/components/generated/chardes-card-route-pickup.js +68 -0
  388. package/dist/collection/components/generated/chardes-card-route.css +1 -0
  389. package/dist/collection/components/generated/chardes-card-route.js +68 -0
  390. package/dist/collection/components/generated/chardes-card-total-amount.css +1 -0
  391. package/dist/collection/components/generated/chardes-card-total-amount.js +88 -0
  392. package/dist/collection/components/generated/chardes-card-total-content.css +1 -0
  393. package/dist/collection/components/generated/chardes-card-total-content.js +68 -0
  394. package/dist/collection/components/generated/chardes-card-total-label.css +1 -0
  395. package/dist/collection/components/generated/chardes-card-total-label.js +88 -0
  396. package/dist/collection/components/generated/chardes-card-total-section.css +1 -0
  397. package/dist/collection/components/generated/chardes-card-total-section.js +68 -0
  398. package/dist/collection/components/generated/chardes-card-type.css +1 -0
  399. package/dist/collection/components/generated/chardes-card-type.js +88 -0
  400. package/dist/collection/components/generated/chardes-card.css +1 -0
  401. package/dist/collection/components/generated/chardes-card.js +68 -0
  402. package/dist/collection/components/generated/chardes-checkbox-checkmark.css +1 -0
  403. package/dist/collection/components/generated/chardes-checkbox-checkmark.js +68 -0
  404. package/dist/collection/components/generated/chardes-checkbox-input-wrapper.css +1 -0
  405. package/dist/collection/components/generated/chardes-checkbox-input-wrapper.js +68 -0
  406. package/dist/collection/components/generated/chardes-checkbox-input.css +1 -0
  407. package/dist/collection/components/generated/chardes-checkbox-input.js +148 -0
  408. package/dist/collection/components/generated/chardes-checkbox-label.css +1 -0
  409. package/dist/collection/components/generated/chardes-checkbox-label.js +88 -0
  410. package/dist/collection/components/generated/chardes-checkbox.css +1 -0
  411. package/dist/collection/components/generated/chardes-checkbox.js +88 -0
  412. package/dist/collection/components/generated/chardes-checkmark-svg.css +1 -0
  413. package/dist/collection/components/generated/chardes-checkmark-svg.js +68 -0
  414. package/dist/collection/components/generated/chardes-close-icon.css +1 -0
  415. package/dist/collection/components/generated/chardes-close-icon.js +88 -0
  416. package/dist/collection/components/generated/chardes-error-icon-svg.css +1 -0
  417. package/dist/collection/components/generated/chardes-error-icon-svg.js +88 -0
  418. package/dist/collection/components/generated/chardes-error-input-icon.css +1 -0
  419. package/dist/collection/components/generated/chardes-error-input-icon.js +68 -0
  420. package/dist/collection/components/generated/chardes-error-input-wrapper.css +1 -0
  421. package/dist/collection/components/generated/chardes-error-input-wrapper.js +68 -0
  422. package/dist/collection/components/generated/chardes-error-input.css +1 -0
  423. package/dist/collection/components/generated/chardes-error-input.js +168 -0
  424. package/dist/collection/components/generated/chardes-error-label.css +1 -0
  425. package/dist/collection/components/generated/chardes-error-label.js +108 -0
  426. package/dist/collection/components/generated/chardes-error-message.css +1 -0
  427. package/dist/collection/components/generated/chardes-error-message.js +88 -0
  428. package/dist/collection/components/generated/chardes-error-state.css +1 -0
  429. package/dist/collection/components/generated/chardes-error-state.js +68 -0
  430. package/dist/collection/components/generated/chardes-form-group.css +1 -0
  431. package/dist/collection/components/generated/chardes-form-group.js +68 -0
  432. package/dist/collection/components/generated/chardes-form-input.css +1 -0
  433. package/dist/collection/components/generated/chardes-form-input.js +148 -0
  434. package/dist/collection/components/generated/chardes-form-label.css +1 -0
  435. package/dist/collection/components/generated/chardes-form-label.js +108 -0
  436. package/dist/collection/components/generated/chardes-group-badge-1.css +1 -0
  437. package/dist/collection/components/generated/chardes-group-badge-1.js +88 -0
  438. package/dist/collection/components/generated/chardes-group-badge-2.css +1 -0
  439. package/dist/collection/components/generated/chardes-group-badge-2.js +88 -0
  440. package/dist/collection/components/generated/chardes-group-badge-3.css +1 -0
  441. package/dist/collection/components/generated/chardes-group-badge-3.js +88 -0
  442. package/dist/collection/components/generated/chardes-group-badge-4.css +1 -0
  443. package/dist/collection/components/generated/chardes-group-badge-4.js +88 -0
  444. package/dist/collection/components/generated/chardes-icon-svg-destination.css +1 -0
  445. package/dist/collection/components/generated/chardes-icon-svg-destination.js +88 -0
  446. package/dist/collection/components/generated/chardes-icon-svg-pickup.css +1 -0
  447. package/dist/collection/components/generated/chardes-icon-svg-pickup.js +88 -0
  448. package/dist/collection/components/generated/chardes-icon-svg.css +1 -0
  449. package/dist/collection/components/generated/chardes-icon-svg.js +88 -0
  450. package/dist/collection/components/generated/chardes-input-element.css +1 -0
  451. package/dist/collection/components/generated/chardes-input-element.js +168 -0
  452. package/dist/collection/components/generated/chardes-input-field-wrapper.css +1 -0
  453. package/dist/collection/components/generated/chardes-input-field-wrapper.js +68 -0
  454. package/dist/collection/components/generated/chardes-input-helper.css +1 -0
  455. package/dist/collection/components/generated/chardes-input-helper.js +88 -0
  456. package/dist/collection/components/generated/chardes-input-icon.css +1 -0
  457. package/dist/collection/components/generated/chardes-input-icon.js +68 -0
  458. package/dist/collection/components/generated/chardes-input-label.css +1 -0
  459. package/dist/collection/components/generated/chardes-input-label.js +108 -0
  460. package/dist/collection/components/generated/chardes-input-states.css +1 -0
  461. package/dist/collection/components/generated/chardes-input-states.js +68 -0
  462. package/dist/collection/components/generated/chardes-input-wrapper.css +1 -0
  463. package/dist/collection/components/generated/chardes-input-wrapper.js +68 -0
  464. package/dist/collection/components/generated/chardes-input.css +1 -0
  465. package/dist/collection/components/generated/chardes-input.js +68 -0
  466. package/dist/collection/components/generated/chardes-modal-body.css +1 -0
  467. package/dist/collection/components/generated/chardes-modal-body.js +68 -0
  468. package/dist/collection/components/generated/chardes-modal-cancel-button.css +1 -0
  469. package/dist/collection/components/generated/chardes-modal-cancel-button.js +128 -0
  470. package/dist/collection/components/generated/chardes-modal-close-button.css +1 -0
  471. package/dist/collection/components/generated/chardes-modal-close-button.js +108 -0
  472. package/dist/collection/components/generated/chardes-modal-confirm-button.css +1 -0
  473. package/dist/collection/components/generated/chardes-modal-confirm-button.js +128 -0
  474. package/dist/collection/components/generated/chardes-modal-container.css +1 -0
  475. package/dist/collection/components/generated/chardes-modal-container.js +68 -0
  476. package/dist/collection/components/generated/chardes-modal-content.css +1 -0
  477. package/dist/collection/components/generated/chardes-modal-content.js +88 -0
  478. package/dist/collection/components/generated/chardes-modal-footer.css +1 -0
  479. package/dist/collection/components/generated/chardes-modal-footer.js +68 -0
  480. package/dist/collection/components/generated/chardes-modal-form.css +1 -0
  481. package/dist/collection/components/generated/chardes-modal-form.js +68 -0
  482. package/dist/collection/components/generated/chardes-modal-header.css +1 -0
  483. package/dist/collection/components/generated/chardes-modal-header.js +68 -0
  484. package/dist/collection/components/generated/chardes-modal-title.css +1 -0
  485. package/dist/collection/components/generated/chardes-modal-title.js +88 -0
  486. package/dist/collection/components/generated/chardes-modal.css +1 -0
  487. package/dist/collection/components/generated/chardes-modal.js +68 -0
  488. package/dist/collection/components/generated/chardes-muzingo-primary-button.css +1 -0
  489. package/dist/collection/components/generated/chardes-muzingo-primary-button.js +68 -0
  490. package/dist/collection/components/generated/chardes-muzingo.css +1 -0
  491. package/dist/collection/components/generated/chardes-muzingo.js +148 -0
  492. package/dist/collection/components/generated/chardes-notification-toast.css +1 -0
  493. package/dist/collection/components/generated/chardes-notification-toast.js +68 -0
  494. package/dist/collection/components/generated/chardes-payment-icon.css +1 -0
  495. package/dist/collection/components/generated/chardes-payment-icon.js +88 -0
  496. package/dist/collection/components/generated/chardes-success-icon-svg.css +1 -0
  497. package/dist/collection/components/generated/chardes-success-icon-svg.js +88 -0
  498. package/dist/collection/components/generated/chardes-success-input-icon.css +1 -0
  499. package/dist/collection/components/generated/chardes-success-input-icon.js +68 -0
  500. package/dist/collection/components/generated/chardes-success-input-wrapper.css +1 -0
  501. package/dist/collection/components/generated/chardes-success-input-wrapper.js +68 -0
  502. package/dist/collection/components/generated/chardes-success-input.css +1 -0
  503. package/dist/collection/components/generated/chardes-success-input.js +168 -0
  504. package/dist/collection/components/generated/chardes-success-label.css +1 -0
  505. package/dist/collection/components/generated/chardes-success-label.js +108 -0
  506. package/dist/collection/components/generated/chardes-success-message.css +1 -0
  507. package/dist/collection/components/generated/chardes-success-message.js +88 -0
  508. package/dist/collection/components/generated/chardes-success-state.css +1 -0
  509. package/dist/collection/components/generated/chardes-success-state.js +68 -0
  510. package/dist/collection/components/generated/chardes-toast-action-button.css +1 -0
  511. package/dist/collection/components/generated/chardes-toast-action-button.js +128 -0
  512. package/dist/collection/components/generated/chardes-toast-actions.css +1 -0
  513. package/dist/collection/components/generated/chardes-toast-actions.js +68 -0
  514. package/dist/collection/components/generated/chardes-toast-content.css +1 -0
  515. package/dist/collection/components/generated/chardes-toast-content.js +88 -0
  516. package/dist/collection/components/generated/chardes-toast-dismiss-button.css +1 -0
  517. package/dist/collection/components/generated/chardes-toast-dismiss-button.js +128 -0
  518. package/dist/collection/components/generated/chardes-toast-header.css +1 -0
  519. package/dist/collection/components/generated/chardes-toast-header.js +68 -0
  520. package/dist/collection/components/generated/chardes-toast-icon.css +1 -0
  521. package/dist/collection/components/generated/chardes-toast-icon.js +88 -0
  522. package/dist/collection/components/generated/chardes-toast-timestamp.css +1 -0
  523. package/dist/collection/components/generated/chardes-toast-timestamp.js +88 -0
  524. package/dist/collection/components/generated/chardes-toast-title-container.css +1 -0
  525. package/dist/collection/components/generated/chardes-toast-title-container.js +68 -0
  526. package/dist/collection/components/generated/chardes-toast-title.css +1 -0
  527. package/dist/collection/components/generated/chardes-toast-title.js +88 -0
  528. package/dist/collection/components/generated/index.js +130 -0
  529. package/dist/collection/components/index.js +2 -0
  530. package/dist/collection/components/my-component/my-component.css +3 -0
  531. package/dist/collection/components/my-component/my-component.js +95 -0
  532. package/dist/collection/index.js +15 -0
  533. package/dist/collection/types/index.js +1 -0
  534. package/dist/collection/types/types.js +1 -0
  535. package/dist/collection/utils/api-client.js +84 -0
  536. package/dist/collection/utils/utils.js +3 -0
  537. package/dist/components/chardes-alert-close-button.js +1 -0
  538. package/dist/components/chardes-alert-content.js +1 -0
  539. package/dist/components/chardes-alert-error.js +1 -0
  540. package/dist/components/chardes-alert-header.js +1 -0
  541. package/dist/components/chardes-alert-icon.js +1 -0
  542. package/dist/components/chardes-alert-success.js +1 -0
  543. package/dist/components/chardes-alert-title-container.js +1 -0
  544. package/dist/components/chardes-alert-title.js +1 -0
  545. package/dist/components/chardes-alert-warning.js +1 -0
  546. package/dist/components/chardes-alerts.js +1 -0
  547. package/dist/components/chardes-badge-close-button.js +1 -0
  548. package/dist/components/chardes-badge-error.js +1 -0
  549. package/dist/components/chardes-badge-group.js +1 -0
  550. package/dist/components/chardes-badge-icon.js +1 -0
  551. package/dist/components/chardes-badge-interactive-text.js +1 -0
  552. package/dist/components/chardes-badge-interactive.js +1 -0
  553. package/dist/components/chardes-badge-outline.js +1 -0
  554. package/dist/components/chardes-badge-primary.js +1 -0
  555. package/dist/components/chardes-badge-secondary.js +1 -0
  556. package/dist/components/chardes-badge-success.js +1 -0
  557. package/dist/components/chardes-badge-text.js +1 -0
  558. package/dist/components/chardes-badge-warning.js +1 -0
  559. package/dist/components/chardes-badge-with-icon.js +1 -0
  560. package/dist/components/chardes-badge.js +1 -0
  561. package/dist/components/chardes-button.js +1 -0
  562. package/dist/components/chardes-card-body-action-button-1.js +1 -0
  563. package/dist/components/chardes-card-body-action-button-2.js +1 -0
  564. package/dist/components/chardes-card-body-action-icon-1.js +1 -0
  565. package/dist/components/chardes-card-body-action-icon-2.js +1 -0
  566. package/dist/components/chardes-card-body-actions.js +1 -0
  567. package/dist/components/chardes-card-body-driver.js +1 -0
  568. package/dist/components/chardes-card-body-img.js +1 -0
  569. package/dist/components/chardes-card-body-info.js +1 -0
  570. package/dist/components/chardes-card-body-name.js +1 -0
  571. package/dist/components/chardes-card-body-span.js +1 -0
  572. package/dist/components/chardes-card-body.js +1 -0
  573. package/dist/components/chardes-card-container.js +1 -0
  574. package/dist/components/chardes-card-header-content.js +1 -0
  575. package/dist/components/chardes-card-header-timer.js +1 -0
  576. package/dist/components/chardes-card-header-title.js +1 -0
  577. package/dist/components/chardes-card-header.js +1 -0
  578. package/dist/components/chardes-card-icon-container.js +1 -0
  579. package/dist/components/chardes-card-number.js +1 -0
  580. package/dist/components/chardes-card-payment-container.js +1 -0
  581. package/dist/components/chardes-card-payment-content.js +1 -0
  582. package/dist/components/chardes-card-payment-details.js +1 -0
  583. package/dist/components/chardes-card-payment-icon-container.js +1 -0
  584. package/dist/components/chardes-card-payment.js +1 -0
  585. package/dist/components/chardes-card-route-container.js +1 -0
  586. package/dist/components/chardes-card-route-destination-address.js +1 -0
  587. package/dist/components/chardes-card-route-destination-details.js +1 -0
  588. package/dist/components/chardes-card-route-destination-icon-container.js +1 -0
  589. package/dist/components/chardes-card-route-destination-icon.js +1 -0
  590. package/dist/components/chardes-card-route-destination-label.js +1 -0
  591. package/dist/components/chardes-card-route-destination.js +1 -0
  592. package/dist/components/chardes-card-route-pickup-address.js +1 -0
  593. package/dist/components/chardes-card-route-pickup-details.js +1 -0
  594. package/dist/components/chardes-card-route-pickup-icon.js +1 -0
  595. package/dist/components/chardes-card-route-pickup-label.js +1 -0
  596. package/dist/components/chardes-card-route-pickup.js +1 -0
  597. package/dist/components/chardes-card-route.js +1 -0
  598. package/dist/components/chardes-card-total-amount.js +1 -0
  599. package/dist/components/chardes-card-total-content.js +1 -0
  600. package/dist/components/chardes-card-total-label.js +1 -0
  601. package/dist/components/chardes-card-total-section.js +1 -0
  602. package/dist/components/chardes-card-type.js +1 -0
  603. package/dist/components/chardes-card.js +1 -0
  604. package/dist/components/chardes-checkbox-checkmark.js +1 -0
  605. package/dist/components/chardes-checkbox-input-wrapper.js +1 -0
  606. package/dist/components/chardes-checkbox-input.js +1 -0
  607. package/dist/components/chardes-checkbox-label.js +1 -0
  608. package/dist/components/chardes-checkbox.js +1 -0
  609. package/dist/components/chardes-checkmark-svg.js +1 -0
  610. package/dist/components/chardes-close-icon.js +1 -0
  611. package/dist/components/chardes-error-icon-svg.js +1 -0
  612. package/dist/components/chardes-error-input-icon.js +1 -0
  613. package/dist/components/chardes-error-input-wrapper.js +1 -0
  614. package/dist/components/chardes-error-input.js +1 -0
  615. package/dist/components/chardes-error-label.js +1 -0
  616. package/dist/components/chardes-error-message.js +1 -0
  617. package/dist/components/chardes-error-state.js +1 -0
  618. package/dist/components/chardes-form-group.js +1 -0
  619. package/dist/components/chardes-form-input.js +1 -0
  620. package/dist/components/chardes-form-label.js +1 -0
  621. package/dist/components/chardes-group-badge-1.js +1 -0
  622. package/dist/components/chardes-group-badge-2.js +1 -0
  623. package/dist/components/chardes-group-badge-3.js +1 -0
  624. package/dist/components/chardes-group-badge-4.js +1 -0
  625. package/dist/components/chardes-icon-svg-destination.js +1 -0
  626. package/dist/components/chardes-icon-svg-pickup.js +1 -0
  627. package/dist/components/chardes-icon-svg.js +1 -0
  628. package/dist/components/chardes-input-element.js +1 -0
  629. package/dist/components/chardes-input-field-wrapper.js +1 -0
  630. package/dist/components/chardes-input-helper.js +1 -0
  631. package/dist/components/chardes-input-icon.js +1 -0
  632. package/dist/components/chardes-input-label.js +1 -0
  633. package/dist/components/chardes-input-states.js +1 -0
  634. package/dist/components/chardes-input-wrapper.js +1 -0
  635. package/dist/components/chardes-input.js +1 -0
  636. package/dist/components/chardes-modal-body.js +1 -0
  637. package/dist/components/chardes-modal-cancel-button.js +1 -0
  638. package/dist/components/chardes-modal-close-button.js +1 -0
  639. package/dist/components/chardes-modal-confirm-button.js +1 -0
  640. package/dist/components/chardes-modal-container.js +1 -0
  641. package/dist/components/chardes-modal-content.js +1 -0
  642. package/dist/components/chardes-modal-footer.js +1 -0
  643. package/dist/components/chardes-modal-form.js +1 -0
  644. package/dist/components/chardes-modal-header.js +1 -0
  645. package/dist/components/chardes-modal-title.js +1 -0
  646. package/dist/components/chardes-modal.js +1 -0
  647. package/dist/components/chardes-muzingo-primary-button.js +1 -0
  648. package/dist/components/chardes-muzingo.js +1 -0
  649. package/dist/components/chardes-notification-toast.js +1 -0
  650. package/dist/components/chardes-payment-icon.js +1 -0
  651. package/dist/components/chardes-success-icon-svg.js +1 -0
  652. package/dist/components/chardes-success-input-icon.js +1 -0
  653. package/dist/components/chardes-success-input-wrapper.js +1 -0
  654. package/dist/components/chardes-success-input.js +1 -0
  655. package/dist/components/chardes-success-label.js +1 -0
  656. package/dist/components/chardes-success-message.js +1 -0
  657. package/dist/components/chardes-success-state.js +1 -0
  658. package/dist/components/chardes-toast-action-button.js +1 -0
  659. package/dist/components/chardes-toast-actions.js +1 -0
  660. package/dist/components/chardes-toast-content.js +1 -0
  661. package/dist/components/chardes-toast-dismiss-button.js +1 -0
  662. package/dist/components/chardes-toast-header.js +1 -0
  663. package/dist/components/chardes-toast-icon.js +1 -0
  664. package/dist/components/chardes-toast-timestamp.js +1 -0
  665. package/dist/components/chardes-toast-title-container.js +1 -0
  666. package/dist/components/chardes-toast-title.js +1 -0
  667. package/dist/components/index.js +2 -0
  668. package/dist/components/my-component.js +1 -0
  669. package/dist/components/utils.js +1 -0
  670. package/dist/esm/charde.js +20 -0
  671. package/dist/esm/chardes-alert-close-button.entry.js +21 -0
  672. package/dist/esm/chardes-alert-content.entry.js +20 -0
  673. package/dist/esm/chardes-alert-error.entry.js +19 -0
  674. package/dist/esm/chardes-alert-header.entry.js +19 -0
  675. package/dist/esm/chardes-alert-icon.entry.js +20 -0
  676. package/dist/esm/chardes-alert-success.entry.js +19 -0
  677. package/dist/esm/chardes-alert-title-container.entry.js +19 -0
  678. package/dist/esm/chardes-alert-title.entry.js +20 -0
  679. package/dist/esm/chardes-alert-warning.entry.js +19 -0
  680. package/dist/esm/chardes-alerts.entry.js +19 -0
  681. package/dist/esm/chardes-badge-close-button.entry.js +21 -0
  682. package/dist/esm/chardes-badge-error.entry.js +20 -0
  683. package/dist/esm/chardes-badge-group.entry.js +19 -0
  684. package/dist/esm/chardes-badge-icon.entry.js +20 -0
  685. package/dist/esm/chardes-badge-interactive-text.entry.js +20 -0
  686. package/dist/esm/chardes-badge-interactive.entry.js +19 -0
  687. package/dist/esm/chardes-badge-outline.entry.js +20 -0
  688. package/dist/esm/chardes-badge-primary.entry.js +20 -0
  689. package/dist/esm/chardes-badge-secondary.entry.js +20 -0
  690. package/dist/esm/chardes-badge-success.entry.js +20 -0
  691. package/dist/esm/chardes-badge-text.entry.js +20 -0
  692. package/dist/esm/chardes-badge-warning.entry.js +20 -0
  693. package/dist/esm/chardes-badge-with-icon.entry.js +19 -0
  694. package/dist/esm/chardes-badge.entry.js +19 -0
  695. package/dist/esm/chardes-button_4.entry.js +71 -0
  696. package/dist/esm/chardes-card-body-action-button-1.entry.js +21 -0
  697. package/dist/esm/chardes-card-body-action-button-2.entry.js +21 -0
  698. package/dist/esm/chardes-card-body-action-icon-1.entry.js +20 -0
  699. package/dist/esm/chardes-card-body-action-icon-2.entry.js +20 -0
  700. package/dist/esm/chardes-card-body-actions.entry.js +19 -0
  701. package/dist/esm/chardes-card-body-driver.entry.js +19 -0
  702. package/dist/esm/chardes-card-body-img.entry.js +21 -0
  703. package/dist/esm/chardes-card-body-info.entry.js +19 -0
  704. package/dist/esm/chardes-card-body-name.entry.js +20 -0
  705. package/dist/esm/chardes-card-body-span.entry.js +20 -0
  706. package/dist/esm/chardes-card-body.entry.js +19 -0
  707. package/dist/esm/chardes-card-container.entry.js +19 -0
  708. package/dist/esm/chardes-card-header-content.entry.js +19 -0
  709. package/dist/esm/chardes-card-header-timer.entry.js +20 -0
  710. package/dist/esm/chardes-card-header-title.entry.js +20 -0
  711. package/dist/esm/chardes-card-header.entry.js +19 -0
  712. package/dist/esm/chardes-card-icon-container.entry.js +19 -0
  713. package/dist/esm/chardes-card-number.entry.js +20 -0
  714. package/dist/esm/chardes-card-payment-container.entry.js +19 -0
  715. package/dist/esm/chardes-card-payment-content.entry.js +19 -0
  716. package/dist/esm/chardes-card-payment-details.entry.js +19 -0
  717. package/dist/esm/chardes-card-payment-icon-container.entry.js +19 -0
  718. package/dist/esm/chardes-card-payment.entry.js +19 -0
  719. package/dist/esm/chardes-card-route-container.entry.js +19 -0
  720. package/dist/esm/chardes-card-route-destination-address.entry.js +20 -0
  721. package/dist/esm/chardes-card-route-destination-details.entry.js +19 -0
  722. package/dist/esm/chardes-card-route-destination-icon-container.entry.js +19 -0
  723. package/dist/esm/chardes-card-route-destination-icon.entry.js +19 -0
  724. package/dist/esm/chardes-card-route-destination-label.entry.js +20 -0
  725. package/dist/esm/chardes-card-route-destination.entry.js +19 -0
  726. package/dist/esm/chardes-card-route-pickup-address.entry.js +20 -0
  727. package/dist/esm/chardes-card-route-pickup-details.entry.js +19 -0
  728. package/dist/esm/chardes-card-route-pickup-icon.entry.js +19 -0
  729. package/dist/esm/chardes-card-route-pickup-label.entry.js +20 -0
  730. package/dist/esm/chardes-card-route-pickup.entry.js +19 -0
  731. package/dist/esm/chardes-card-route.entry.js +19 -0
  732. package/dist/esm/chardes-card-total-amount.entry.js +20 -0
  733. package/dist/esm/chardes-card-total-content.entry.js +19 -0
  734. package/dist/esm/chardes-card-total-label.entry.js +20 -0
  735. package/dist/esm/chardes-card-total-section.entry.js +19 -0
  736. package/dist/esm/chardes-card-type.entry.js +20 -0
  737. package/dist/esm/chardes-checkbox-checkmark.entry.js +19 -0
  738. package/dist/esm/chardes-checkbox-input-wrapper.entry.js +19 -0
  739. package/dist/esm/chardes-checkbox-input.entry.js +23 -0
  740. package/dist/esm/chardes-checkbox-label.entry.js +20 -0
  741. package/dist/esm/chardes-checkmark-svg.entry.js +19 -0
  742. package/dist/esm/chardes-close-icon.entry.js +20 -0
  743. package/dist/esm/chardes-error-icon-svg.entry.js +20 -0
  744. package/dist/esm/chardes-error-input-icon.entry.js +19 -0
  745. package/dist/esm/chardes-error-input-wrapper.entry.js +19 -0
  746. package/dist/esm/chardes-error-input.entry.js +24 -0
  747. package/dist/esm/chardes-error-label.entry.js +21 -0
  748. package/dist/esm/chardes-error-message.entry.js +20 -0
  749. package/dist/esm/chardes-error-state.entry.js +19 -0
  750. package/dist/esm/chardes-form-group.entry.js +19 -0
  751. package/dist/esm/chardes-form-input.entry.js +23 -0
  752. package/dist/esm/chardes-form-label.entry.js +21 -0
  753. package/dist/esm/chardes-group-badge-1.entry.js +20 -0
  754. package/dist/esm/chardes-group-badge-2.entry.js +20 -0
  755. package/dist/esm/chardes-group-badge-3.entry.js +20 -0
  756. package/dist/esm/chardes-group-badge-4.entry.js +20 -0
  757. package/dist/esm/chardes-icon-svg-destination.entry.js +20 -0
  758. package/dist/esm/chardes-icon-svg-pickup.entry.js +20 -0
  759. package/dist/esm/chardes-icon-svg.entry.js +20 -0
  760. package/dist/esm/chardes-input-element.entry.js +24 -0
  761. package/dist/esm/chardes-input-field-wrapper.entry.js +19 -0
  762. package/dist/esm/chardes-input-helper.entry.js +20 -0
  763. package/dist/esm/chardes-input-icon.entry.js +19 -0
  764. package/dist/esm/chardes-input-label.entry.js +21 -0
  765. package/dist/esm/chardes-input-states.entry.js +19 -0
  766. package/dist/esm/chardes-input-wrapper.entry.js +19 -0
  767. package/dist/esm/chardes-modal-body.entry.js +19 -0
  768. package/dist/esm/chardes-modal-cancel-button.entry.js +22 -0
  769. package/dist/esm/chardes-modal-close-button.entry.js +21 -0
  770. package/dist/esm/chardes-modal-confirm-button.entry.js +22 -0
  771. package/dist/esm/chardes-modal-container.entry.js +19 -0
  772. package/dist/esm/chardes-modal-content.entry.js +20 -0
  773. package/dist/esm/chardes-modal-footer.entry.js +19 -0
  774. package/dist/esm/chardes-modal-form.entry.js +19 -0
  775. package/dist/esm/chardes-modal-header.entry.js +19 -0
  776. package/dist/esm/chardes-modal-title.entry.js +20 -0
  777. package/dist/esm/chardes-modal.entry.js +19 -0
  778. package/dist/esm/chardes-muzingo-primary-button.entry.js +19 -0
  779. package/dist/esm/chardes-muzingo.entry.js +23 -0
  780. package/dist/esm/chardes-notification-toast.entry.js +19 -0
  781. package/dist/esm/chardes-payment-icon.entry.js +20 -0
  782. package/dist/esm/chardes-success-icon-svg.entry.js +20 -0
  783. package/dist/esm/chardes-success-input-icon.entry.js +19 -0
  784. package/dist/esm/chardes-success-input-wrapper.entry.js +19 -0
  785. package/dist/esm/chardes-success-input.entry.js +24 -0
  786. package/dist/esm/chardes-success-label.entry.js +21 -0
  787. package/dist/esm/chardes-success-message.entry.js +20 -0
  788. package/dist/esm/chardes-success-state.entry.js +19 -0
  789. package/dist/esm/chardes-toast-action-button.entry.js +22 -0
  790. package/dist/esm/chardes-toast-actions.entry.js +19 -0
  791. package/dist/esm/chardes-toast-content.entry.js +20 -0
  792. package/dist/esm/chardes-toast-dismiss-button.entry.js +22 -0
  793. package/dist/esm/chardes-toast-header.entry.js +19 -0
  794. package/dist/esm/chardes-toast-icon.entry.js +20 -0
  795. package/dist/esm/chardes-toast-timestamp.entry.js +20 -0
  796. package/dist/esm/chardes-toast-title-container.entry.js +19 -0
  797. package/dist/esm/chardes-toast-title.entry.js +20 -0
  798. package/dist/esm/index-jZlebn0H.js +1419 -0
  799. package/dist/esm/index.js +4856 -0
  800. package/dist/esm/loader.js +10 -0
  801. package/dist/esm/my-component.entry.js +31 -0
  802. package/dist/esm/utils-DhW431pq.js +5 -0
  803. package/dist/index.cjs.js +1 -0
  804. package/dist/index.js +1 -0
  805. package/dist/scripts/generate-components.js +744 -0
  806. package/dist/scripts/utils.js +32 -0
  807. package/dist/types/components.d.ts +2097 -7237
  808. package/dist/types/stencil-public-runtime.d.ts +3 -1
  809. package/loader/cdn.js +1 -0
  810. package/loader/index.cjs.js +1 -0
  811. package/loader/index.d.ts +24 -0
  812. package/loader/index.es2017.js +1 -0
  813. package/loader/index.js +2 -0
  814. package/package.json +50 -55
  815. package/readme.md +12 -9
  816. package/dist/components/charisol-alert-close-button.d.ts +0 -11
  817. package/dist/components/charisol-alert-content.d.ts +0 -11
  818. package/dist/components/charisol-alert-error.d.ts +0 -11
  819. package/dist/components/charisol-alert-header.d.ts +0 -11
  820. package/dist/components/charisol-alert-icon.d.ts +0 -11
  821. package/dist/components/charisol-alert-success.d.ts +0 -11
  822. package/dist/components/charisol-alert-title-container.d.ts +0 -11
  823. package/dist/components/charisol-alert-title.d.ts +0 -11
  824. package/dist/components/charisol-alert-warning.d.ts +0 -11
  825. package/dist/components/charisol-alerts.d.ts +0 -11
  826. package/dist/components/charisol-badge-close-button.d.ts +0 -11
  827. package/dist/components/charisol-badge-error.d.ts +0 -11
  828. package/dist/components/charisol-badge-group.d.ts +0 -11
  829. package/dist/components/charisol-badge-icon.d.ts +0 -11
  830. package/dist/components/charisol-badge-interactive-text.d.ts +0 -11
  831. package/dist/components/charisol-badge-interactive.d.ts +0 -11
  832. package/dist/components/charisol-badge-outline.d.ts +0 -11
  833. package/dist/components/charisol-badge-primary.d.ts +0 -11
  834. package/dist/components/charisol-badge-secondary.d.ts +0 -11
  835. package/dist/components/charisol-badge-success.d.ts +0 -11
  836. package/dist/components/charisol-badge-text.d.ts +0 -11
  837. package/dist/components/charisol-badge-warning.d.ts +0 -11
  838. package/dist/components/charisol-badge-with-icon.d.ts +0 -11
  839. package/dist/components/charisol-badge.d.ts +0 -11
  840. package/dist/components/charisol-button.d.ts +0 -11
  841. package/dist/components/charisol-card-body-action-button-1.d.ts +0 -11
  842. package/dist/components/charisol-card-body-action-button-2.d.ts +0 -11
  843. package/dist/components/charisol-card-body-action-icon-1.d.ts +0 -11
  844. package/dist/components/charisol-card-body-action-icon-2.d.ts +0 -11
  845. package/dist/components/charisol-card-body-actions.d.ts +0 -11
  846. package/dist/components/charisol-card-body-driver.d.ts +0 -11
  847. package/dist/components/charisol-card-body-img.d.ts +0 -11
  848. package/dist/components/charisol-card-body-info.d.ts +0 -11
  849. package/dist/components/charisol-card-body-name.d.ts +0 -11
  850. package/dist/components/charisol-card-body-span.d.ts +0 -11
  851. package/dist/components/charisol-card-body.d.ts +0 -11
  852. package/dist/components/charisol-card-container.d.ts +0 -11
  853. package/dist/components/charisol-card-header-content.d.ts +0 -11
  854. package/dist/components/charisol-card-header-timer.d.ts +0 -11
  855. package/dist/components/charisol-card-header-title.d.ts +0 -11
  856. package/dist/components/charisol-card-header.d.ts +0 -11
  857. package/dist/components/charisol-card-icon-container.d.ts +0 -11
  858. package/dist/components/charisol-card-number.d.ts +0 -11
  859. package/dist/components/charisol-card-payment-container.d.ts +0 -11
  860. package/dist/components/charisol-card-payment-content.d.ts +0 -11
  861. package/dist/components/charisol-card-payment-details.d.ts +0 -11
  862. package/dist/components/charisol-card-payment-icon-container.d.ts +0 -11
  863. package/dist/components/charisol-card-payment.d.ts +0 -11
  864. package/dist/components/charisol-card-route-container.d.ts +0 -11
  865. package/dist/components/charisol-card-route-destination-address.d.ts +0 -11
  866. package/dist/components/charisol-card-route-destination-details.d.ts +0 -11
  867. package/dist/components/charisol-card-route-destination-icon-container.d.ts +0 -11
  868. package/dist/components/charisol-card-route-destination-icon.d.ts +0 -11
  869. package/dist/components/charisol-card-route-destination-label.d.ts +0 -11
  870. package/dist/components/charisol-card-route-destination.d.ts +0 -11
  871. package/dist/components/charisol-card-route-pickup-address.d.ts +0 -11
  872. package/dist/components/charisol-card-route-pickup-details.d.ts +0 -11
  873. package/dist/components/charisol-card-route-pickup-icon.d.ts +0 -11
  874. package/dist/components/charisol-card-route-pickup-label.d.ts +0 -11
  875. package/dist/components/charisol-card-route-pickup.d.ts +0 -11
  876. package/dist/components/charisol-card-route.d.ts +0 -11
  877. package/dist/components/charisol-card-total-amount.d.ts +0 -11
  878. package/dist/components/charisol-card-total-content.d.ts +0 -11
  879. package/dist/components/charisol-card-total-label.d.ts +0 -11
  880. package/dist/components/charisol-card-total-section.d.ts +0 -11
  881. package/dist/components/charisol-card-type.d.ts +0 -11
  882. package/dist/components/charisol-card.d.ts +0 -11
  883. package/dist/components/charisol-checkbox-checkmark.d.ts +0 -11
  884. package/dist/components/charisol-checkbox-input-wrapper.d.ts +0 -11
  885. package/dist/components/charisol-checkbox-input.d.ts +0 -11
  886. package/dist/components/charisol-checkbox-label.d.ts +0 -11
  887. package/dist/components/charisol-checkbox.d.ts +0 -11
  888. package/dist/components/charisol-checkmark-svg.d.ts +0 -11
  889. package/dist/components/charisol-close-icon.d.ts +0 -11
  890. package/dist/components/charisol-error-icon-svg.d.ts +0 -11
  891. package/dist/components/charisol-error-input-icon.d.ts +0 -11
  892. package/dist/components/charisol-error-input-wrapper.d.ts +0 -11
  893. package/dist/components/charisol-error-input.d.ts +0 -11
  894. package/dist/components/charisol-error-label.d.ts +0 -11
  895. package/dist/components/charisol-error-message.d.ts +0 -11
  896. package/dist/components/charisol-error-state.d.ts +0 -11
  897. package/dist/components/charisol-form-group.d.ts +0 -11
  898. package/dist/components/charisol-form-input.d.ts +0 -11
  899. package/dist/components/charisol-form-label.d.ts +0 -11
  900. package/dist/components/charisol-group-badge-1.d.ts +0 -11
  901. package/dist/components/charisol-group-badge-2.d.ts +0 -11
  902. package/dist/components/charisol-group-badge-3.d.ts +0 -11
  903. package/dist/components/charisol-group-badge-4.d.ts +0 -11
  904. package/dist/components/charisol-icon-svg-destination.d.ts +0 -11
  905. package/dist/components/charisol-icon-svg-pickup.d.ts +0 -11
  906. package/dist/components/charisol-icon-svg.d.ts +0 -11
  907. package/dist/components/charisol-input-element.d.ts +0 -11
  908. package/dist/components/charisol-input-field-wrapper.d.ts +0 -11
  909. package/dist/components/charisol-input-helper.d.ts +0 -11
  910. package/dist/components/charisol-input-icon.d.ts +0 -11
  911. package/dist/components/charisol-input-label.d.ts +0 -11
  912. package/dist/components/charisol-input-states.d.ts +0 -11
  913. package/dist/components/charisol-input-wrapper.d.ts +0 -11
  914. package/dist/components/charisol-input.d.ts +0 -11
  915. package/dist/components/charisol-modal-body.d.ts +0 -11
  916. package/dist/components/charisol-modal-cancel-button.d.ts +0 -11
  917. package/dist/components/charisol-modal-close-button.d.ts +0 -11
  918. package/dist/components/charisol-modal-confirm-button.d.ts +0 -11
  919. package/dist/components/charisol-modal-container.d.ts +0 -11
  920. package/dist/components/charisol-modal-content.d.ts +0 -11
  921. package/dist/components/charisol-modal-footer.d.ts +0 -11
  922. package/dist/components/charisol-modal-form.d.ts +0 -11
  923. package/dist/components/charisol-modal-header.d.ts +0 -11
  924. package/dist/components/charisol-modal-title.d.ts +0 -11
  925. package/dist/components/charisol-modal.d.ts +0 -11
  926. package/dist/components/charisol-muzingo-primary-button.d.ts +0 -11
  927. package/dist/components/charisol-muzingo.d.ts +0 -11
  928. package/dist/components/charisol-notification-toast.d.ts +0 -11
  929. package/dist/components/charisol-payment-icon.d.ts +0 -11
  930. package/dist/components/charisol-success-icon-svg.d.ts +0 -11
  931. package/dist/components/charisol-success-input-icon.d.ts +0 -11
  932. package/dist/components/charisol-success-input-wrapper.d.ts +0 -11
  933. package/dist/components/charisol-success-input.d.ts +0 -11
  934. package/dist/components/charisol-success-label.d.ts +0 -11
  935. package/dist/components/charisol-success-message.d.ts +0 -11
  936. package/dist/components/charisol-success-state.d.ts +0 -11
  937. package/dist/components/charisol-toast-action-button.d.ts +0 -11
  938. package/dist/components/charisol-toast-actions.d.ts +0 -11
  939. package/dist/components/charisol-toast-content.d.ts +0 -11
  940. package/dist/components/charisol-toast-dismiss-button.d.ts +0 -11
  941. package/dist/components/charisol-toast-header.d.ts +0 -11
  942. package/dist/components/charisol-toast-icon.d.ts +0 -11
  943. package/dist/components/charisol-toast-timestamp.d.ts +0 -11
  944. package/dist/components/charisol-toast-title-container.d.ts +0 -11
  945. package/dist/components/charisol-toast-title.d.ts +0 -11
  946. package/dist/types/components/generated/charisol-alert-close-button.d.ts +0 -11
  947. package/dist/types/components/generated/charisol-alert-content.d.ts +0 -10
  948. package/dist/types/components/generated/charisol-alert-error.d.ts +0 -9
  949. package/dist/types/components/generated/charisol-alert-header.d.ts +0 -9
  950. package/dist/types/components/generated/charisol-alert-icon.d.ts +0 -10
  951. package/dist/types/components/generated/charisol-alert-success.d.ts +0 -9
  952. package/dist/types/components/generated/charisol-alert-title-container.d.ts +0 -9
  953. package/dist/types/components/generated/charisol-alert-title.d.ts +0 -10
  954. package/dist/types/components/generated/charisol-alert-warning.d.ts +0 -9
  955. package/dist/types/components/generated/charisol-alerts.d.ts +0 -9
  956. package/dist/types/components/generated/charisol-badge-close-button.d.ts +0 -11
  957. package/dist/types/components/generated/charisol-badge-error.d.ts +0 -10
  958. package/dist/types/components/generated/charisol-badge-group.d.ts +0 -9
  959. package/dist/types/components/generated/charisol-badge-icon.d.ts +0 -10
  960. package/dist/types/components/generated/charisol-badge-interactive-text.d.ts +0 -10
  961. package/dist/types/components/generated/charisol-badge-interactive.d.ts +0 -9
  962. package/dist/types/components/generated/charisol-badge-outline.d.ts +0 -10
  963. package/dist/types/components/generated/charisol-badge-primary.d.ts +0 -10
  964. package/dist/types/components/generated/charisol-badge-secondary.d.ts +0 -10
  965. package/dist/types/components/generated/charisol-badge-success.d.ts +0 -10
  966. package/dist/types/components/generated/charisol-badge-text.d.ts +0 -10
  967. package/dist/types/components/generated/charisol-badge-warning.d.ts +0 -10
  968. package/dist/types/components/generated/charisol-badge-with-icon.d.ts +0 -9
  969. package/dist/types/components/generated/charisol-badge.d.ts +0 -9
  970. package/dist/types/components/generated/charisol-button.d.ts +0 -12
  971. package/dist/types/components/generated/charisol-card-body-action-button-1.d.ts +0 -11
  972. package/dist/types/components/generated/charisol-card-body-action-button-2.d.ts +0 -11
  973. package/dist/types/components/generated/charisol-card-body-action-icon-1.d.ts +0 -10
  974. package/dist/types/components/generated/charisol-card-body-action-icon-2.d.ts +0 -10
  975. package/dist/types/components/generated/charisol-card-body-actions.d.ts +0 -9
  976. package/dist/types/components/generated/charisol-card-body-driver.d.ts +0 -9
  977. package/dist/types/components/generated/charisol-card-body-img.d.ts +0 -11
  978. package/dist/types/components/generated/charisol-card-body-info.d.ts +0 -9
  979. package/dist/types/components/generated/charisol-card-body-name.d.ts +0 -10
  980. package/dist/types/components/generated/charisol-card-body-span.d.ts +0 -10
  981. package/dist/types/components/generated/charisol-card-body.d.ts +0 -9
  982. package/dist/types/components/generated/charisol-card-container.d.ts +0 -9
  983. package/dist/types/components/generated/charisol-card-header-content.d.ts +0 -9
  984. package/dist/types/components/generated/charisol-card-header-timer.d.ts +0 -10
  985. package/dist/types/components/generated/charisol-card-header-title.d.ts +0 -10
  986. package/dist/types/components/generated/charisol-card-header.d.ts +0 -9
  987. package/dist/types/components/generated/charisol-card-icon-container.d.ts +0 -9
  988. package/dist/types/components/generated/charisol-card-number.d.ts +0 -10
  989. package/dist/types/components/generated/charisol-card-payment-container.d.ts +0 -9
  990. package/dist/types/components/generated/charisol-card-payment-content.d.ts +0 -9
  991. package/dist/types/components/generated/charisol-card-payment-details.d.ts +0 -9
  992. package/dist/types/components/generated/charisol-card-payment-icon-container.d.ts +0 -9
  993. package/dist/types/components/generated/charisol-card-payment.d.ts +0 -9
  994. package/dist/types/components/generated/charisol-card-route-container.d.ts +0 -9
  995. package/dist/types/components/generated/charisol-card-route-destination-address.d.ts +0 -10
  996. package/dist/types/components/generated/charisol-card-route-destination-details.d.ts +0 -9
  997. package/dist/types/components/generated/charisol-card-route-destination-icon-container.d.ts +0 -9
  998. package/dist/types/components/generated/charisol-card-route-destination-icon.d.ts +0 -9
  999. package/dist/types/components/generated/charisol-card-route-destination-label.d.ts +0 -10
  1000. package/dist/types/components/generated/charisol-card-route-destination.d.ts +0 -9
  1001. package/dist/types/components/generated/charisol-card-route-pickup-address.d.ts +0 -10
  1002. package/dist/types/components/generated/charisol-card-route-pickup-details.d.ts +0 -9
  1003. package/dist/types/components/generated/charisol-card-route-pickup-icon.d.ts +0 -9
  1004. package/dist/types/components/generated/charisol-card-route-pickup-label.d.ts +0 -10
  1005. package/dist/types/components/generated/charisol-card-route-pickup.d.ts +0 -9
  1006. package/dist/types/components/generated/charisol-card-route.d.ts +0 -9
  1007. package/dist/types/components/generated/charisol-card-total-amount.d.ts +0 -10
  1008. package/dist/types/components/generated/charisol-card-total-content.d.ts +0 -9
  1009. package/dist/types/components/generated/charisol-card-total-label.d.ts +0 -10
  1010. package/dist/types/components/generated/charisol-card-total-section.d.ts +0 -9
  1011. package/dist/types/components/generated/charisol-card-type.d.ts +0 -10
  1012. package/dist/types/components/generated/charisol-card.d.ts +0 -9
  1013. package/dist/types/components/generated/charisol-checkbox-checkmark.d.ts +0 -9
  1014. package/dist/types/components/generated/charisol-checkbox-input-wrapper.d.ts +0 -9
  1015. package/dist/types/components/generated/charisol-checkbox-input.d.ts +0 -13
  1016. package/dist/types/components/generated/charisol-checkbox-label.d.ts +0 -10
  1017. package/dist/types/components/generated/charisol-checkbox.d.ts +0 -10
  1018. package/dist/types/components/generated/charisol-checkmark-svg.d.ts +0 -9
  1019. package/dist/types/components/generated/charisol-close-icon.d.ts +0 -10
  1020. package/dist/types/components/generated/charisol-error-icon-svg.d.ts +0 -10
  1021. package/dist/types/components/generated/charisol-error-input-icon.d.ts +0 -9
  1022. package/dist/types/components/generated/charisol-error-input-wrapper.d.ts +0 -9
  1023. package/dist/types/components/generated/charisol-error-input.d.ts +0 -14
  1024. package/dist/types/components/generated/charisol-error-label.d.ts +0 -11
  1025. package/dist/types/components/generated/charisol-error-message.d.ts +0 -10
  1026. package/dist/types/components/generated/charisol-error-state.d.ts +0 -9
  1027. package/dist/types/components/generated/charisol-form-group.d.ts +0 -9
  1028. package/dist/types/components/generated/charisol-form-input.d.ts +0 -13
  1029. package/dist/types/components/generated/charisol-form-label.d.ts +0 -11
  1030. package/dist/types/components/generated/charisol-group-badge-1.d.ts +0 -10
  1031. package/dist/types/components/generated/charisol-group-badge-2.d.ts +0 -10
  1032. package/dist/types/components/generated/charisol-group-badge-3.d.ts +0 -10
  1033. package/dist/types/components/generated/charisol-group-badge-4.d.ts +0 -10
  1034. package/dist/types/components/generated/charisol-icon-svg-destination.d.ts +0 -10
  1035. package/dist/types/components/generated/charisol-icon-svg-pickup.d.ts +0 -10
  1036. package/dist/types/components/generated/charisol-icon-svg.d.ts +0 -10
  1037. package/dist/types/components/generated/charisol-input-element.d.ts +0 -14
  1038. package/dist/types/components/generated/charisol-input-field-wrapper.d.ts +0 -9
  1039. package/dist/types/components/generated/charisol-input-helper.d.ts +0 -10
  1040. package/dist/types/components/generated/charisol-input-icon.d.ts +0 -9
  1041. package/dist/types/components/generated/charisol-input-label.d.ts +0 -11
  1042. package/dist/types/components/generated/charisol-input-states.d.ts +0 -9
  1043. package/dist/types/components/generated/charisol-input-wrapper.d.ts +0 -9
  1044. package/dist/types/components/generated/charisol-input.d.ts +0 -9
  1045. package/dist/types/components/generated/charisol-modal-body.d.ts +0 -9
  1046. package/dist/types/components/generated/charisol-modal-cancel-button.d.ts +0 -12
  1047. package/dist/types/components/generated/charisol-modal-close-button.d.ts +0 -11
  1048. package/dist/types/components/generated/charisol-modal-confirm-button.d.ts +0 -12
  1049. package/dist/types/components/generated/charisol-modal-container.d.ts +0 -9
  1050. package/dist/types/components/generated/charisol-modal-content.d.ts +0 -10
  1051. package/dist/types/components/generated/charisol-modal-footer.d.ts +0 -9
  1052. package/dist/types/components/generated/charisol-modal-form.d.ts +0 -9
  1053. package/dist/types/components/generated/charisol-modal-header.d.ts +0 -9
  1054. package/dist/types/components/generated/charisol-modal-title.d.ts +0 -10
  1055. package/dist/types/components/generated/charisol-modal.d.ts +0 -9
  1056. package/dist/types/components/generated/charisol-muzingo-primary-button.d.ts +0 -9
  1057. package/dist/types/components/generated/charisol-muzingo.d.ts +0 -13
  1058. package/dist/types/components/generated/charisol-notification-toast.d.ts +0 -9
  1059. package/dist/types/components/generated/charisol-payment-icon.d.ts +0 -10
  1060. package/dist/types/components/generated/charisol-success-icon-svg.d.ts +0 -10
  1061. package/dist/types/components/generated/charisol-success-input-icon.d.ts +0 -9
  1062. package/dist/types/components/generated/charisol-success-input-wrapper.d.ts +0 -9
  1063. package/dist/types/components/generated/charisol-success-input.d.ts +0 -14
  1064. package/dist/types/components/generated/charisol-success-label.d.ts +0 -11
  1065. package/dist/types/components/generated/charisol-success-message.d.ts +0 -10
  1066. package/dist/types/components/generated/charisol-success-state.d.ts +0 -9
  1067. package/dist/types/components/generated/charisol-toast-action-button.d.ts +0 -12
  1068. package/dist/types/components/generated/charisol-toast-actions.d.ts +0 -9
  1069. package/dist/types/components/generated/charisol-toast-content.d.ts +0 -10
  1070. package/dist/types/components/generated/charisol-toast-dismiss-button.d.ts +0 -12
  1071. package/dist/types/components/generated/charisol-toast-header.d.ts +0 -9
  1072. package/dist/types/components/generated/charisol-toast-icon.d.ts +0 -10
  1073. package/dist/types/components/generated/charisol-toast-timestamp.d.ts +0 -10
  1074. package/dist/types/components/generated/charisol-toast-title-container.d.ts +0 -9
  1075. package/dist/types/components/generated/charisol-toast-title.d.ts +0 -10
@@ -0,0 +1,4856 @@
1
+ export { f as format } from './utils-DhW431pq.js';
2
+ import * as fs from 'fs';
3
+ import * as path from 'path';
4
+
5
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
+
7
+ function getDefaultExportFromCjs (x) {
8
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
9
+ }
10
+
11
+ /*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
12
+
13
+ var axios_1;
14
+ var hasRequiredAxios;
15
+
16
+ function requireAxios () {
17
+ if (hasRequiredAxios) return axios_1;
18
+ hasRequiredAxios = 1;
19
+
20
+ /**
21
+ * Create a bound version of a function with a specified `this` context
22
+ *
23
+ * @param {Function} fn - The function to bind
24
+ * @param {*} thisArg - The value to be passed as the `this` parameter
25
+ * @returns {Function} A new function that will call the original function with the specified `this` context
26
+ */
27
+ function bind(fn, thisArg) {
28
+ return function wrap() {
29
+ return fn.apply(thisArg, arguments);
30
+ };
31
+ }
32
+
33
+ // utils is a library of generic helper functions non-specific to axios
34
+
35
+ const { toString } = Object.prototype;
36
+ const { getPrototypeOf } = Object;
37
+ const { iterator, toStringTag } = Symbol;
38
+
39
+ const kindOf = ((cache) => (thing) => {
40
+ const str = toString.call(thing);
41
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
42
+ })(Object.create(null));
43
+
44
+ const kindOfTest = (type) => {
45
+ type = type.toLowerCase();
46
+ return (thing) => kindOf(thing) === type;
47
+ };
48
+
49
+ const typeOfTest = (type) => (thing) => typeof thing === type;
50
+
51
+ /**
52
+ * Determine if a value is a non-null object
53
+ *
54
+ * @param {Object} val The value to test
55
+ *
56
+ * @returns {boolean} True if value is an Array, otherwise false
57
+ */
58
+ const { isArray } = Array;
59
+
60
+ /**
61
+ * Determine if a value is undefined
62
+ *
63
+ * @param {*} val The value to test
64
+ *
65
+ * @returns {boolean} True if the value is undefined, otherwise false
66
+ */
67
+ const isUndefined = typeOfTest("undefined");
68
+
69
+ /**
70
+ * Determine if a value is a Buffer
71
+ *
72
+ * @param {*} val The value to test
73
+ *
74
+ * @returns {boolean} True if value is a Buffer, otherwise false
75
+ */
76
+ function isBuffer(val) {
77
+ return (
78
+ val !== null &&
79
+ !isUndefined(val) &&
80
+ val.constructor !== null &&
81
+ !isUndefined(val.constructor) &&
82
+ isFunction$1(val.constructor.isBuffer) &&
83
+ val.constructor.isBuffer(val)
84
+ );
85
+ }
86
+
87
+ /**
88
+ * Determine if a value is an ArrayBuffer
89
+ *
90
+ * @param {*} val The value to test
91
+ *
92
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
93
+ */
94
+ const isArrayBuffer = kindOfTest("ArrayBuffer");
95
+
96
+ /**
97
+ * Determine if a value is a view on an ArrayBuffer
98
+ *
99
+ * @param {*} val The value to test
100
+ *
101
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
102
+ */
103
+ function isArrayBufferView(val) {
104
+ let result;
105
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
106
+ result = ArrayBuffer.isView(val);
107
+ } else {
108
+ result = val && val.buffer && isArrayBuffer(val.buffer);
109
+ }
110
+ return result;
111
+ }
112
+
113
+ /**
114
+ * Determine if a value is a String
115
+ *
116
+ * @param {*} val The value to test
117
+ *
118
+ * @returns {boolean} True if value is a String, otherwise false
119
+ */
120
+ const isString = typeOfTest("string");
121
+
122
+ /**
123
+ * Determine if a value is a Function
124
+ *
125
+ * @param {*} val The value to test
126
+ * @returns {boolean} True if value is a Function, otherwise false
127
+ */
128
+ const isFunction$1 = typeOfTest("function");
129
+
130
+ /**
131
+ * Determine if a value is a Number
132
+ *
133
+ * @param {*} val The value to test
134
+ *
135
+ * @returns {boolean} True if value is a Number, otherwise false
136
+ */
137
+ const isNumber = typeOfTest("number");
138
+
139
+ /**
140
+ * Determine if a value is an Object
141
+ *
142
+ * @param {*} thing The value to test
143
+ *
144
+ * @returns {boolean} True if value is an Object, otherwise false
145
+ */
146
+ const isObject = (thing) => thing !== null && typeof thing === "object";
147
+
148
+ /**
149
+ * Determine if a value is a Boolean
150
+ *
151
+ * @param {*} thing The value to test
152
+ * @returns {boolean} True if value is a Boolean, otherwise false
153
+ */
154
+ const isBoolean = (thing) => thing === true || thing === false;
155
+
156
+ /**
157
+ * Determine if a value is a plain Object
158
+ *
159
+ * @param {*} val The value to test
160
+ *
161
+ * @returns {boolean} True if value is a plain Object, otherwise false
162
+ */
163
+ const isPlainObject = (val) => {
164
+ if (kindOf(val) !== "object") {
165
+ return false;
166
+ }
167
+
168
+ const prototype = getPrototypeOf(val);
169
+ return (
170
+ (prototype === null ||
171
+ prototype === Object.prototype ||
172
+ Object.getPrototypeOf(prototype) === null) &&
173
+ !(toStringTag in val) &&
174
+ !(iterator in val)
175
+ );
176
+ };
177
+
178
+ /**
179
+ * Determine if a value is an empty object (safely handles Buffers)
180
+ *
181
+ * @param {*} val The value to test
182
+ *
183
+ * @returns {boolean} True if value is an empty object, otherwise false
184
+ */
185
+ const isEmptyObject = (val) => {
186
+ // Early return for non-objects or Buffers to prevent RangeError
187
+ if (!isObject(val) || isBuffer(val)) {
188
+ return false;
189
+ }
190
+
191
+ try {
192
+ return (
193
+ Object.keys(val).length === 0 &&
194
+ Object.getPrototypeOf(val) === Object.prototype
195
+ );
196
+ } catch (e) {
197
+ // Fallback for any other objects that might cause RangeError with Object.keys()
198
+ return false;
199
+ }
200
+ };
201
+
202
+ /**
203
+ * Determine if a value is a Date
204
+ *
205
+ * @param {*} val The value to test
206
+ *
207
+ * @returns {boolean} True if value is a Date, otherwise false
208
+ */
209
+ const isDate = kindOfTest("Date");
210
+
211
+ /**
212
+ * Determine if a value is a File
213
+ *
214
+ * @param {*} val The value to test
215
+ *
216
+ * @returns {boolean} True if value is a File, otherwise false
217
+ */
218
+ const isFile = kindOfTest("File");
219
+
220
+ /**
221
+ * Determine if a value is a Blob
222
+ *
223
+ * @param {*} val The value to test
224
+ *
225
+ * @returns {boolean} True if value is a Blob, otherwise false
226
+ */
227
+ const isBlob = kindOfTest("Blob");
228
+
229
+ /**
230
+ * Determine if a value is a FileList
231
+ *
232
+ * @param {*} val The value to test
233
+ *
234
+ * @returns {boolean} True if value is a File, otherwise false
235
+ */
236
+ const isFileList = kindOfTest("FileList");
237
+
238
+ /**
239
+ * Determine if a value is a Stream
240
+ *
241
+ * @param {*} val The value to test
242
+ *
243
+ * @returns {boolean} True if value is a Stream, otherwise false
244
+ */
245
+ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
246
+
247
+ /**
248
+ * Determine if a value is a FormData
249
+ *
250
+ * @param {*} thing The value to test
251
+ *
252
+ * @returns {boolean} True if value is an FormData, otherwise false
253
+ */
254
+ const isFormData = (thing) => {
255
+ let kind;
256
+ return (
257
+ thing &&
258
+ ((typeof FormData === "function" && thing instanceof FormData) ||
259
+ (isFunction$1(thing.append) &&
260
+ ((kind = kindOf(thing)) === "formdata" ||
261
+ // detect form-data instance
262
+ (kind === "object" &&
263
+ isFunction$1(thing.toString) &&
264
+ thing.toString() === "[object FormData]"))))
265
+ );
266
+ };
267
+
268
+ /**
269
+ * Determine if a value is a URLSearchParams object
270
+ *
271
+ * @param {*} val The value to test
272
+ *
273
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
274
+ */
275
+ const isURLSearchParams = kindOfTest("URLSearchParams");
276
+
277
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
278
+ "ReadableStream",
279
+ "Request",
280
+ "Response",
281
+ "Headers",
282
+ ].map(kindOfTest);
283
+
284
+ /**
285
+ * Trim excess whitespace off the beginning and end of a string
286
+ *
287
+ * @param {String} str The String to trim
288
+ *
289
+ * @returns {String} The String freed of excess whitespace
290
+ */
291
+ const trim = (str) =>
292
+ str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
293
+
294
+ /**
295
+ * Iterate over an Array or an Object invoking a function for each item.
296
+ *
297
+ * If `obj` is an Array callback will be called passing
298
+ * the value, index, and complete array for each item.
299
+ *
300
+ * If 'obj' is an Object callback will be called passing
301
+ * the value, key, and complete object for each property.
302
+ *
303
+ * @param {Object|Array<unknown>} obj The object to iterate
304
+ * @param {Function} fn The callback to invoke for each item
305
+ *
306
+ * @param {Object} [options]
307
+ * @param {Boolean} [options.allOwnKeys = false]
308
+ * @returns {any}
309
+ */
310
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
311
+ // Don't bother if no value provided
312
+ if (obj === null || typeof obj === "undefined") {
313
+ return;
314
+ }
315
+
316
+ let i;
317
+ let l;
318
+
319
+ // Force an array if not already something iterable
320
+ if (typeof obj !== "object") {
321
+ /*eslint no-param-reassign:0*/
322
+ obj = [obj];
323
+ }
324
+
325
+ if (isArray(obj)) {
326
+ // Iterate over array values
327
+ for (i = 0, l = obj.length; i < l; i++) {
328
+ fn.call(null, obj[i], i, obj);
329
+ }
330
+ } else {
331
+ // Buffer check
332
+ if (isBuffer(obj)) {
333
+ return;
334
+ }
335
+
336
+ // Iterate over object keys
337
+ const keys = allOwnKeys
338
+ ? Object.getOwnPropertyNames(obj)
339
+ : Object.keys(obj);
340
+ const len = keys.length;
341
+ let key;
342
+
343
+ for (i = 0; i < len; i++) {
344
+ key = keys[i];
345
+ fn.call(null, obj[key], key, obj);
346
+ }
347
+ }
348
+ }
349
+
350
+ function findKey(obj, key) {
351
+ if (isBuffer(obj)) {
352
+ return null;
353
+ }
354
+
355
+ key = key.toLowerCase();
356
+ const keys = Object.keys(obj);
357
+ let i = keys.length;
358
+ let _key;
359
+ while (i-- > 0) {
360
+ _key = keys[i];
361
+ if (key === _key.toLowerCase()) {
362
+ return _key;
363
+ }
364
+ }
365
+ return null;
366
+ }
367
+
368
+ const _global = (() => {
369
+ /*eslint no-undef:0*/
370
+ if (typeof globalThis !== "undefined") return globalThis;
371
+ return typeof self !== "undefined"
372
+ ? self
373
+ : typeof window !== "undefined"
374
+ ? window
375
+ : commonjsGlobal;
376
+ })();
377
+
378
+ const isContextDefined = (context) =>
379
+ !isUndefined(context) && context !== _global;
380
+
381
+ /**
382
+ * Accepts varargs expecting each argument to be an object, then
383
+ * immutably merges the properties of each object and returns result.
384
+ *
385
+ * When multiple objects contain the same key the later object in
386
+ * the arguments list will take precedence.
387
+ *
388
+ * Example:
389
+ *
390
+ * ```js
391
+ * const result = merge({foo: 123}, {foo: 456});
392
+ * console.log(result.foo); // outputs 456
393
+ * ```
394
+ *
395
+ * @param {Object} obj1 Object to merge
396
+ *
397
+ * @returns {Object} Result of all merge properties
398
+ */
399
+ function merge(/* obj1, obj2, obj3, ... */) {
400
+ const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
401
+ const result = {};
402
+ const assignValue = (val, key) => {
403
+ // Skip dangerous property names to prevent prototype pollution
404
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
405
+ return;
406
+ }
407
+
408
+ const targetKey = (caseless && findKey(result, key)) || key;
409
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
410
+ result[targetKey] = merge(result[targetKey], val);
411
+ } else if (isPlainObject(val)) {
412
+ result[targetKey] = merge({}, val);
413
+ } else if (isArray(val)) {
414
+ result[targetKey] = val.slice();
415
+ } else if (!skipUndefined || !isUndefined(val)) {
416
+ result[targetKey] = val;
417
+ }
418
+ };
419
+
420
+ for (let i = 0, l = arguments.length; i < l; i++) {
421
+ arguments[i] && forEach(arguments[i], assignValue);
422
+ }
423
+ return result;
424
+ }
425
+
426
+ /**
427
+ * Extends object a by mutably adding to it the properties of object b.
428
+ *
429
+ * @param {Object} a The object to be extended
430
+ * @param {Object} b The object to copy properties from
431
+ * @param {Object} thisArg The object to bind function to
432
+ *
433
+ * @param {Object} [options]
434
+ * @param {Boolean} [options.allOwnKeys]
435
+ * @returns {Object} The resulting value of object a
436
+ */
437
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
438
+ forEach(
439
+ b,
440
+ (val, key) => {
441
+ if (thisArg && isFunction$1(val)) {
442
+ Object.defineProperty(a, key, {
443
+ value: bind(val, thisArg),
444
+ writable: true,
445
+ enumerable: true,
446
+ configurable: true,
447
+ });
448
+ } else {
449
+ Object.defineProperty(a, key, {
450
+ value: val,
451
+ writable: true,
452
+ enumerable: true,
453
+ configurable: true,
454
+ });
455
+ }
456
+ },
457
+ { allOwnKeys },
458
+ );
459
+ return a;
460
+ };
461
+
462
+ /**
463
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
464
+ *
465
+ * @param {string} content with BOM
466
+ *
467
+ * @returns {string} content value without BOM
468
+ */
469
+ const stripBOM = (content) => {
470
+ if (content.charCodeAt(0) === 0xfeff) {
471
+ content = content.slice(1);
472
+ }
473
+ return content;
474
+ };
475
+
476
+ /**
477
+ * Inherit the prototype methods from one constructor into another
478
+ * @param {function} constructor
479
+ * @param {function} superConstructor
480
+ * @param {object} [props]
481
+ * @param {object} [descriptors]
482
+ *
483
+ * @returns {void}
484
+ */
485
+ const inherits = (constructor, superConstructor, props, descriptors) => {
486
+ constructor.prototype = Object.create(
487
+ superConstructor.prototype,
488
+ descriptors,
489
+ );
490
+ Object.defineProperty(constructor.prototype, "constructor", {
491
+ value: constructor,
492
+ writable: true,
493
+ enumerable: false,
494
+ configurable: true,
495
+ });
496
+ Object.defineProperty(constructor, "super", {
497
+ value: superConstructor.prototype,
498
+ });
499
+ props && Object.assign(constructor.prototype, props);
500
+ };
501
+
502
+ /**
503
+ * Resolve object with deep prototype chain to a flat object
504
+ * @param {Object} sourceObj source object
505
+ * @param {Object} [destObj]
506
+ * @param {Function|Boolean} [filter]
507
+ * @param {Function} [propFilter]
508
+ *
509
+ * @returns {Object}
510
+ */
511
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
512
+ let props;
513
+ let i;
514
+ let prop;
515
+ const merged = {};
516
+
517
+ destObj = destObj || {};
518
+ // eslint-disable-next-line no-eq-null,eqeqeq
519
+ if (sourceObj == null) return destObj;
520
+
521
+ do {
522
+ props = Object.getOwnPropertyNames(sourceObj);
523
+ i = props.length;
524
+ while (i-- > 0) {
525
+ prop = props[i];
526
+ if (
527
+ (!propFilter || propFilter(prop, sourceObj, destObj)) &&
528
+ !merged[prop]
529
+ ) {
530
+ destObj[prop] = sourceObj[prop];
531
+ merged[prop] = true;
532
+ }
533
+ }
534
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
535
+ } while (
536
+ sourceObj &&
537
+ (!filter || filter(sourceObj, destObj)) &&
538
+ sourceObj !== Object.prototype
539
+ );
540
+
541
+ return destObj;
542
+ };
543
+
544
+ /**
545
+ * Determines whether a string ends with the characters of a specified string
546
+ *
547
+ * @param {String} str
548
+ * @param {String} searchString
549
+ * @param {Number} [position= 0]
550
+ *
551
+ * @returns {boolean}
552
+ */
553
+ const endsWith = (str, searchString, position) => {
554
+ str = String(str);
555
+ if (position === undefined || position > str.length) {
556
+ position = str.length;
557
+ }
558
+ position -= searchString.length;
559
+ const lastIndex = str.indexOf(searchString, position);
560
+ return lastIndex !== -1 && lastIndex === position;
561
+ };
562
+
563
+ /**
564
+ * Returns new array from array like object or null if failed
565
+ *
566
+ * @param {*} [thing]
567
+ *
568
+ * @returns {?Array}
569
+ */
570
+ const toArray = (thing) => {
571
+ if (!thing) return null;
572
+ if (isArray(thing)) return thing;
573
+ let i = thing.length;
574
+ if (!isNumber(i)) return null;
575
+ const arr = new Array(i);
576
+ while (i-- > 0) {
577
+ arr[i] = thing[i];
578
+ }
579
+ return arr;
580
+ };
581
+
582
+ /**
583
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
584
+ * thing passed in is an instance of Uint8Array
585
+ *
586
+ * @param {TypedArray}
587
+ *
588
+ * @returns {Array}
589
+ */
590
+ // eslint-disable-next-line func-names
591
+ const isTypedArray = ((TypedArray) => {
592
+ // eslint-disable-next-line func-names
593
+ return (thing) => {
594
+ return TypedArray && thing instanceof TypedArray;
595
+ };
596
+ })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
597
+
598
+ /**
599
+ * For each entry in the object, call the function with the key and value.
600
+ *
601
+ * @param {Object<any, any>} obj - The object to iterate over.
602
+ * @param {Function} fn - The function to call for each entry.
603
+ *
604
+ * @returns {void}
605
+ */
606
+ const forEachEntry = (obj, fn) => {
607
+ const generator = obj && obj[iterator];
608
+
609
+ const _iterator = generator.call(obj);
610
+
611
+ let result;
612
+
613
+ while ((result = _iterator.next()) && !result.done) {
614
+ const pair = result.value;
615
+ fn.call(obj, pair[0], pair[1]);
616
+ }
617
+ };
618
+
619
+ /**
620
+ * It takes a regular expression and a string, and returns an array of all the matches
621
+ *
622
+ * @param {string} regExp - The regular expression to match against.
623
+ * @param {string} str - The string to search.
624
+ *
625
+ * @returns {Array<boolean>}
626
+ */
627
+ const matchAll = (regExp, str) => {
628
+ let matches;
629
+ const arr = [];
630
+
631
+ while ((matches = regExp.exec(str)) !== null) {
632
+ arr.push(matches);
633
+ }
634
+
635
+ return arr;
636
+ };
637
+
638
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
639
+ const isHTMLForm = kindOfTest("HTMLFormElement");
640
+
641
+ const toCamelCase = (str) => {
642
+ return str
643
+ .toLowerCase()
644
+ .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
645
+ return p1.toUpperCase() + p2;
646
+ });
647
+ };
648
+
649
+ /* Creating a function that will check if an object has a property. */
650
+ const hasOwnProperty = (
651
+ ({ hasOwnProperty }) =>
652
+ (obj, prop) =>
653
+ hasOwnProperty.call(obj, prop)
654
+ )(Object.prototype);
655
+
656
+ /**
657
+ * Determine if a value is a RegExp object
658
+ *
659
+ * @param {*} val The value to test
660
+ *
661
+ * @returns {boolean} True if value is a RegExp object, otherwise false
662
+ */
663
+ const isRegExp = kindOfTest("RegExp");
664
+
665
+ const reduceDescriptors = (obj, reducer) => {
666
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
667
+ const reducedDescriptors = {};
668
+
669
+ forEach(descriptors, (descriptor, name) => {
670
+ let ret;
671
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
672
+ reducedDescriptors[name] = ret || descriptor;
673
+ }
674
+ });
675
+
676
+ Object.defineProperties(obj, reducedDescriptors);
677
+ };
678
+
679
+ /**
680
+ * Makes all methods read-only
681
+ * @param {Object} obj
682
+ */
683
+
684
+ const freezeMethods = (obj) => {
685
+ reduceDescriptors(obj, (descriptor, name) => {
686
+ // skip restricted props in strict mode
687
+ if (
688
+ isFunction$1(obj) &&
689
+ ["arguments", "caller", "callee"].indexOf(name) !== -1
690
+ ) {
691
+ return false;
692
+ }
693
+
694
+ const value = obj[name];
695
+
696
+ if (!isFunction$1(value)) return;
697
+
698
+ descriptor.enumerable = false;
699
+
700
+ if ("writable" in descriptor) {
701
+ descriptor.writable = false;
702
+ return;
703
+ }
704
+
705
+ if (!descriptor.set) {
706
+ descriptor.set = () => {
707
+ throw Error("Can not rewrite read-only method '" + name + "'");
708
+ };
709
+ }
710
+ });
711
+ };
712
+
713
+ const toObjectSet = (arrayOrString, delimiter) => {
714
+ const obj = {};
715
+
716
+ const define = (arr) => {
717
+ arr.forEach((value) => {
718
+ obj[value] = true;
719
+ });
720
+ };
721
+
722
+ isArray(arrayOrString)
723
+ ? define(arrayOrString)
724
+ : define(String(arrayOrString).split(delimiter));
725
+
726
+ return obj;
727
+ };
728
+
729
+ const noop = () => {};
730
+
731
+ const toFiniteNumber = (value, defaultValue) => {
732
+ return value != null && Number.isFinite((value = +value))
733
+ ? value
734
+ : defaultValue;
735
+ };
736
+
737
+ /**
738
+ * If the thing is a FormData object, return true, otherwise return false.
739
+ *
740
+ * @param {unknown} thing - The thing to check.
741
+ *
742
+ * @returns {boolean}
743
+ */
744
+ function isSpecCompliantForm(thing) {
745
+ return !!(
746
+ thing &&
747
+ isFunction$1(thing.append) &&
748
+ thing[toStringTag] === "FormData" &&
749
+ thing[iterator]
750
+ );
751
+ }
752
+
753
+ const toJSONObject = (obj) => {
754
+ const stack = new Array(10);
755
+
756
+ const visit = (source, i) => {
757
+ if (isObject(source)) {
758
+ if (stack.indexOf(source) >= 0) {
759
+ return;
760
+ }
761
+
762
+ //Buffer check
763
+ if (isBuffer(source)) {
764
+ return source;
765
+ }
766
+
767
+ if (!("toJSON" in source)) {
768
+ stack[i] = source;
769
+ const target = isArray(source) ? [] : {};
770
+
771
+ forEach(source, (value, key) => {
772
+ const reducedValue = visit(value, i + 1);
773
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
774
+ });
775
+
776
+ stack[i] = undefined;
777
+
778
+ return target;
779
+ }
780
+ }
781
+
782
+ return source;
783
+ };
784
+
785
+ return visit(obj, 0);
786
+ };
787
+
788
+ const isAsyncFn = kindOfTest("AsyncFunction");
789
+
790
+ const isThenable = (thing) =>
791
+ thing &&
792
+ (isObject(thing) || isFunction$1(thing)) &&
793
+ isFunction$1(thing.then) &&
794
+ isFunction$1(thing.catch);
795
+
796
+ // original code
797
+ // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
798
+
799
+ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
800
+ if (setImmediateSupported) {
801
+ return setImmediate;
802
+ }
803
+
804
+ return postMessageSupported
805
+ ? ((token, callbacks) => {
806
+ _global.addEventListener(
807
+ "message",
808
+ ({ source, data }) => {
809
+ if (source === _global && data === token) {
810
+ callbacks.length && callbacks.shift()();
811
+ }
812
+ },
813
+ false,
814
+ );
815
+
816
+ return (cb) => {
817
+ callbacks.push(cb);
818
+ _global.postMessage(token, "*");
819
+ };
820
+ })(`axios@${Math.random()}`, [])
821
+ : (cb) => setTimeout(cb);
822
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
823
+
824
+ const asap =
825
+ typeof queueMicrotask !== "undefined"
826
+ ? queueMicrotask.bind(_global)
827
+ : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
828
+
829
+ // *********************
830
+
831
+ const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
832
+
833
+ var utils$1 = {
834
+ isArray,
835
+ isArrayBuffer,
836
+ isBuffer,
837
+ isFormData,
838
+ isArrayBufferView,
839
+ isString,
840
+ isNumber,
841
+ isBoolean,
842
+ isObject,
843
+ isPlainObject,
844
+ isEmptyObject,
845
+ isReadableStream,
846
+ isRequest,
847
+ isResponse,
848
+ isHeaders,
849
+ isUndefined,
850
+ isDate,
851
+ isFile,
852
+ isBlob,
853
+ isRegExp,
854
+ isFunction: isFunction$1,
855
+ isStream,
856
+ isURLSearchParams,
857
+ isTypedArray,
858
+ isFileList,
859
+ forEach,
860
+ merge,
861
+ extend,
862
+ trim,
863
+ stripBOM,
864
+ inherits,
865
+ toFlatObject,
866
+ kindOf,
867
+ kindOfTest,
868
+ endsWith,
869
+ toArray,
870
+ forEachEntry,
871
+ matchAll,
872
+ isHTMLForm,
873
+ hasOwnProperty,
874
+ hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
875
+ reduceDescriptors,
876
+ freezeMethods,
877
+ toObjectSet,
878
+ toCamelCase,
879
+ noop,
880
+ toFiniteNumber,
881
+ findKey,
882
+ global: _global,
883
+ isContextDefined,
884
+ isSpecCompliantForm,
885
+ toJSONObject,
886
+ isAsyncFn,
887
+ isThenable,
888
+ setImmediate: _setImmediate,
889
+ asap,
890
+ isIterable,
891
+ };
892
+
893
+ class AxiosError extends Error {
894
+ static from(error, code, config, request, response, customProps) {
895
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
896
+ axiosError.cause = error;
897
+ axiosError.name = error.name;
898
+ customProps && Object.assign(axiosError, customProps);
899
+ return axiosError;
900
+ }
901
+
902
+ /**
903
+ * Create an Error with the specified message, config, error code, request and response.
904
+ *
905
+ * @param {string} message The error message.
906
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
907
+ * @param {Object} [config] The config.
908
+ * @param {Object} [request] The request.
909
+ * @param {Object} [response] The response.
910
+ *
911
+ * @returns {Error} The created error.
912
+ */
913
+ constructor(message, code, config, request, response) {
914
+ super(message);
915
+ this.name = 'AxiosError';
916
+ this.isAxiosError = true;
917
+ code && (this.code = code);
918
+ config && (this.config = config);
919
+ request && (this.request = request);
920
+ if (response) {
921
+ this.response = response;
922
+ this.status = response.status;
923
+ }
924
+ }
925
+
926
+ toJSON() {
927
+ return {
928
+ // Standard
929
+ message: this.message,
930
+ name: this.name,
931
+ // Microsoft
932
+ description: this.description,
933
+ number: this.number,
934
+ // Mozilla
935
+ fileName: this.fileName,
936
+ lineNumber: this.lineNumber,
937
+ columnNumber: this.columnNumber,
938
+ stack: this.stack,
939
+ // Axios
940
+ config: utils$1.toJSONObject(this.config),
941
+ code: this.code,
942
+ status: this.status,
943
+ };
944
+ }
945
+ }
946
+
947
+ // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
948
+ AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
949
+ AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
950
+ AxiosError.ECONNABORTED = 'ECONNABORTED';
951
+ AxiosError.ETIMEDOUT = 'ETIMEDOUT';
952
+ AxiosError.ERR_NETWORK = 'ERR_NETWORK';
953
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
954
+ AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
955
+ AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
956
+ AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
957
+ AxiosError.ERR_CANCELED = 'ERR_CANCELED';
958
+ AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
959
+ AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
960
+
961
+ var AxiosError$1 = AxiosError;
962
+
963
+ // eslint-disable-next-line strict
964
+ var httpAdapter = null;
965
+
966
+ /**
967
+ * Determines if the given thing is a array or js object.
968
+ *
969
+ * @param {string} thing - The object or array to be visited.
970
+ *
971
+ * @returns {boolean}
972
+ */
973
+ function isVisitable(thing) {
974
+ return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
975
+ }
976
+
977
+ /**
978
+ * It removes the brackets from the end of a string
979
+ *
980
+ * @param {string} key - The key of the parameter.
981
+ *
982
+ * @returns {string} the key without the brackets.
983
+ */
984
+ function removeBrackets(key) {
985
+ return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key;
986
+ }
987
+
988
+ /**
989
+ * It takes a path, a key, and a boolean, and returns a string
990
+ *
991
+ * @param {string} path - The path to the current key.
992
+ * @param {string} key - The key of the current object being iterated over.
993
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
994
+ *
995
+ * @returns {string} The path to the current key.
996
+ */
997
+ function renderKey(path, key, dots) {
998
+ if (!path) return key;
999
+ return path.concat(key).map(function each(token, i) {
1000
+ // eslint-disable-next-line no-param-reassign
1001
+ token = removeBrackets(token);
1002
+ return !dots && i ? '[' + token + ']' : token;
1003
+ }).join(dots ? '.' : '');
1004
+ }
1005
+
1006
+ /**
1007
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
1008
+ *
1009
+ * @param {Array<any>} arr - The array to check
1010
+ *
1011
+ * @returns {boolean}
1012
+ */
1013
+ function isFlatArray(arr) {
1014
+ return utils$1.isArray(arr) && !arr.some(isVisitable);
1015
+ }
1016
+
1017
+ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
1018
+ return /^is[A-Z]/.test(prop);
1019
+ });
1020
+
1021
+ /**
1022
+ * Convert a data object to FormData
1023
+ *
1024
+ * @param {Object} obj
1025
+ * @param {?Object} [formData]
1026
+ * @param {?Object} [options]
1027
+ * @param {Function} [options.visitor]
1028
+ * @param {Boolean} [options.metaTokens = true]
1029
+ * @param {Boolean} [options.dots = false]
1030
+ * @param {?Boolean} [options.indexes = false]
1031
+ *
1032
+ * @returns {Object}
1033
+ **/
1034
+
1035
+ /**
1036
+ * It converts an object into a FormData object
1037
+ *
1038
+ * @param {Object<any, any>} obj - The object to convert to form data.
1039
+ * @param {string} formData - The FormData object to append to.
1040
+ * @param {Object<string, any>} options
1041
+ *
1042
+ * @returns
1043
+ */
1044
+ function toFormData(obj, formData, options) {
1045
+ if (!utils$1.isObject(obj)) {
1046
+ throw new TypeError('target must be an object');
1047
+ }
1048
+
1049
+ // eslint-disable-next-line no-param-reassign
1050
+ formData = formData || new (FormData)();
1051
+
1052
+ // eslint-disable-next-line no-param-reassign
1053
+ options = utils$1.toFlatObject(options, {
1054
+ metaTokens: true,
1055
+ dots: false,
1056
+ indexes: false
1057
+ }, false, function defined(option, source) {
1058
+ // eslint-disable-next-line no-eq-null,eqeqeq
1059
+ return !utils$1.isUndefined(source[option]);
1060
+ });
1061
+
1062
+ const metaTokens = options.metaTokens;
1063
+ // eslint-disable-next-line no-use-before-define
1064
+ const visitor = options.visitor || defaultVisitor;
1065
+ const dots = options.dots;
1066
+ const indexes = options.indexes;
1067
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1068
+ const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
1069
+
1070
+ if (!utils$1.isFunction(visitor)) {
1071
+ throw new TypeError('visitor must be a function');
1072
+ }
1073
+
1074
+ function convertValue(value) {
1075
+ if (value === null) return '';
1076
+
1077
+ if (utils$1.isDate(value)) {
1078
+ return value.toISOString();
1079
+ }
1080
+
1081
+ if (utils$1.isBoolean(value)) {
1082
+ return value.toString();
1083
+ }
1084
+
1085
+ if (!useBlob && utils$1.isBlob(value)) {
1086
+ throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
1087
+ }
1088
+
1089
+ if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
1090
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
1091
+ }
1092
+
1093
+ return value;
1094
+ }
1095
+
1096
+ /**
1097
+ * Default visitor.
1098
+ *
1099
+ * @param {*} value
1100
+ * @param {String|Number} key
1101
+ * @param {Array<String|Number>} path
1102
+ * @this {FormData}
1103
+ *
1104
+ * @returns {boolean} return true to visit the each prop of the value recursively
1105
+ */
1106
+ function defaultVisitor(value, key, path) {
1107
+ let arr = value;
1108
+
1109
+ if (value && !path && typeof value === 'object') {
1110
+ if (utils$1.endsWith(key, '{}')) {
1111
+ // eslint-disable-next-line no-param-reassign
1112
+ key = metaTokens ? key : key.slice(0, -2);
1113
+ // eslint-disable-next-line no-param-reassign
1114
+ value = JSON.stringify(value);
1115
+ } else if (
1116
+ (utils$1.isArray(value) && isFlatArray(value)) ||
1117
+ ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
1118
+ )) {
1119
+ // eslint-disable-next-line no-param-reassign
1120
+ key = removeBrackets(key);
1121
+
1122
+ arr.forEach(function each(el, index) {
1123
+ !(utils$1.isUndefined(el) || el === null) && formData.append(
1124
+ // eslint-disable-next-line no-nested-ternary
1125
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1126
+ convertValue(el)
1127
+ );
1128
+ });
1129
+ return false;
1130
+ }
1131
+ }
1132
+
1133
+ if (isVisitable(value)) {
1134
+ return true;
1135
+ }
1136
+
1137
+ formData.append(renderKey(path, key, dots), convertValue(value));
1138
+
1139
+ return false;
1140
+ }
1141
+
1142
+ const stack = [];
1143
+
1144
+ const exposedHelpers = Object.assign(predicates, {
1145
+ defaultVisitor,
1146
+ convertValue,
1147
+ isVisitable
1148
+ });
1149
+
1150
+ function build(value, path) {
1151
+ if (utils$1.isUndefined(value)) return;
1152
+
1153
+ if (stack.indexOf(value) !== -1) {
1154
+ throw Error('Circular reference detected in ' + path.join('.'));
1155
+ }
1156
+
1157
+ stack.push(value);
1158
+
1159
+ utils$1.forEach(value, function each(el, key) {
1160
+ const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
1161
+ formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers
1162
+ );
1163
+
1164
+ if (result === true) {
1165
+ build(el, path ? path.concat(key) : [key]);
1166
+ }
1167
+ });
1168
+
1169
+ stack.pop();
1170
+ }
1171
+
1172
+ if (!utils$1.isObject(obj)) {
1173
+ throw new TypeError('data must be an object');
1174
+ }
1175
+
1176
+ build(obj);
1177
+
1178
+ return formData;
1179
+ }
1180
+
1181
+ /**
1182
+ * It encodes a string by replacing all characters that are not in the unreserved set with
1183
+ * their percent-encoded equivalents
1184
+ *
1185
+ * @param {string} str - The string to encode.
1186
+ *
1187
+ * @returns {string} The encoded string.
1188
+ */
1189
+ function encode$1(str) {
1190
+ const charMap = {
1191
+ '!': '%21',
1192
+ "'": '%27',
1193
+ '(': '%28',
1194
+ ')': '%29',
1195
+ '~': '%7E',
1196
+ '%20': '+',
1197
+ '%00': '\x00'
1198
+ };
1199
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1200
+ return charMap[match];
1201
+ });
1202
+ }
1203
+
1204
+ /**
1205
+ * It takes a params object and converts it to a FormData object
1206
+ *
1207
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1208
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1209
+ *
1210
+ * @returns {void}
1211
+ */
1212
+ function AxiosURLSearchParams(params, options) {
1213
+ this._pairs = [];
1214
+
1215
+ params && toFormData(params, this, options);
1216
+ }
1217
+
1218
+ const prototype = AxiosURLSearchParams.prototype;
1219
+
1220
+ prototype.append = function append(name, value) {
1221
+ this._pairs.push([name, value]);
1222
+ };
1223
+
1224
+ prototype.toString = function toString(encoder) {
1225
+ const _encode = encoder ? function(value) {
1226
+ return encoder.call(this, value, encode$1);
1227
+ } : encode$1;
1228
+
1229
+ return this._pairs.map(function each(pair) {
1230
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1231
+ }, '').join('&');
1232
+ };
1233
+
1234
+ /**
1235
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1236
+ * URI encoded counterparts
1237
+ *
1238
+ * @param {string} val The value to be encoded.
1239
+ *
1240
+ * @returns {string} The encoded value.
1241
+ */
1242
+ function encode(val) {
1243
+ return encodeURIComponent(val).
1244
+ replace(/%3A/gi, ':').
1245
+ replace(/%24/g, '$').
1246
+ replace(/%2C/gi, ',').
1247
+ replace(/%20/g, '+');
1248
+ }
1249
+
1250
+ /**
1251
+ * Build a URL by appending params to the end
1252
+ *
1253
+ * @param {string} url The base of the url (e.g., http://www.google.com)
1254
+ * @param {object} [params] The params to be appended
1255
+ * @param {?(object|Function)} options
1256
+ *
1257
+ * @returns {string} The formatted url
1258
+ */
1259
+ function buildURL(url, params, options) {
1260
+ if (!params) {
1261
+ return url;
1262
+ }
1263
+
1264
+ const _encode = options && options.encode || encode;
1265
+
1266
+ const _options = utils$1.isFunction(options) ? {
1267
+ serialize: options
1268
+ } : options;
1269
+
1270
+ const serializeFn = _options && _options.serialize;
1271
+
1272
+ let serializedParams;
1273
+
1274
+ if (serializeFn) {
1275
+ serializedParams = serializeFn(params, _options);
1276
+ } else {
1277
+ serializedParams = utils$1.isURLSearchParams(params) ?
1278
+ params.toString() :
1279
+ new AxiosURLSearchParams(params, _options).toString(_encode);
1280
+ }
1281
+
1282
+ if (serializedParams) {
1283
+ const hashmarkIndex = url.indexOf("#");
1284
+
1285
+ if (hashmarkIndex !== -1) {
1286
+ url = url.slice(0, hashmarkIndex);
1287
+ }
1288
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
1289
+ }
1290
+
1291
+ return url;
1292
+ }
1293
+
1294
+ class InterceptorManager {
1295
+ constructor() {
1296
+ this.handlers = [];
1297
+ }
1298
+
1299
+ /**
1300
+ * Add a new interceptor to the stack
1301
+ *
1302
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1303
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1304
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
1305
+ *
1306
+ * @return {Number} An ID used to remove interceptor later
1307
+ */
1308
+ use(fulfilled, rejected, options) {
1309
+ this.handlers.push({
1310
+ fulfilled,
1311
+ rejected,
1312
+ synchronous: options ? options.synchronous : false,
1313
+ runWhen: options ? options.runWhen : null
1314
+ });
1315
+ return this.handlers.length - 1;
1316
+ }
1317
+
1318
+ /**
1319
+ * Remove an interceptor from the stack
1320
+ *
1321
+ * @param {Number} id The ID that was returned by `use`
1322
+ *
1323
+ * @returns {void}
1324
+ */
1325
+ eject(id) {
1326
+ if (this.handlers[id]) {
1327
+ this.handlers[id] = null;
1328
+ }
1329
+ }
1330
+
1331
+ /**
1332
+ * Clear all interceptors from the stack
1333
+ *
1334
+ * @returns {void}
1335
+ */
1336
+ clear() {
1337
+ if (this.handlers) {
1338
+ this.handlers = [];
1339
+ }
1340
+ }
1341
+
1342
+ /**
1343
+ * Iterate over all the registered interceptors
1344
+ *
1345
+ * This method is particularly useful for skipping over any
1346
+ * interceptors that may have become `null` calling `eject`.
1347
+ *
1348
+ * @param {Function} fn The function to call for each interceptor
1349
+ *
1350
+ * @returns {void}
1351
+ */
1352
+ forEach(fn) {
1353
+ utils$1.forEach(this.handlers, function forEachHandler(h) {
1354
+ if (h !== null) {
1355
+ fn(h);
1356
+ }
1357
+ });
1358
+ }
1359
+ }
1360
+
1361
+ var InterceptorManager$1 = InterceptorManager;
1362
+
1363
+ var transitionalDefaults = {
1364
+ silentJSONParsing: true,
1365
+ forcedJSONParsing: true,
1366
+ clarifyTimeoutError: false,
1367
+ legacyInterceptorReqResOrdering: true
1368
+ };
1369
+
1370
+ var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
1371
+
1372
+ var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
1373
+
1374
+ var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
1375
+
1376
+ var platform$1 = {
1377
+ isBrowser: true,
1378
+ classes: {
1379
+ URLSearchParams: URLSearchParams$1,
1380
+ FormData: FormData$1,
1381
+ Blob: Blob$1
1382
+ },
1383
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1384
+ };
1385
+
1386
+ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1387
+
1388
+ const _navigator = typeof navigator === 'object' && navigator || undefined;
1389
+
1390
+ /**
1391
+ * Determine if we're running in a standard browser environment
1392
+ *
1393
+ * This allows axios to run in a web worker, and react-native.
1394
+ * Both environments support XMLHttpRequest, but not fully standard globals.
1395
+ *
1396
+ * web workers:
1397
+ * typeof window -> undefined
1398
+ * typeof document -> undefined
1399
+ *
1400
+ * react-native:
1401
+ * navigator.product -> 'ReactNative'
1402
+ * nativescript
1403
+ * navigator.product -> 'NativeScript' or 'NS'
1404
+ *
1405
+ * @returns {boolean}
1406
+ */
1407
+ const hasStandardBrowserEnv = hasBrowserEnv &&
1408
+ (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
1409
+
1410
+ /**
1411
+ * Determine if we're running in a standard browser webWorker environment
1412
+ *
1413
+ * Although the `isStandardBrowserEnv` method indicates that
1414
+ * `allows axios to run in a web worker`, the WebWorker will still be
1415
+ * filtered out due to its judgment standard
1416
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1417
+ * This leads to a problem when axios post `FormData` in webWorker
1418
+ */
1419
+ const hasStandardBrowserWebWorkerEnv = (() => {
1420
+ return (
1421
+ typeof WorkerGlobalScope !== 'undefined' &&
1422
+ // eslint-disable-next-line no-undef
1423
+ self instanceof WorkerGlobalScope &&
1424
+ typeof self.importScripts === 'function'
1425
+ );
1426
+ })();
1427
+
1428
+ const origin = hasBrowserEnv && window.location.href || 'http://localhost';
1429
+
1430
+ var utils = /*#__PURE__*/Object.freeze({
1431
+ __proto__: null,
1432
+ hasBrowserEnv: hasBrowserEnv,
1433
+ hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1434
+ hasStandardBrowserEnv: hasStandardBrowserEnv,
1435
+ navigator: _navigator,
1436
+ origin: origin
1437
+ });
1438
+
1439
+ var platform = {
1440
+ ...utils,
1441
+ ...platform$1
1442
+ };
1443
+
1444
+ function toURLEncodedForm(data, options) {
1445
+ return toFormData(data, new platform.classes.URLSearchParams(), {
1446
+ visitor: function(value, key, path, helpers) {
1447
+ if (platform.isNode && utils$1.isBuffer(value)) {
1448
+ this.append(key, value.toString('base64'));
1449
+ return false;
1450
+ }
1451
+
1452
+ return helpers.defaultVisitor.apply(this, arguments);
1453
+ },
1454
+ ...options
1455
+ });
1456
+ }
1457
+
1458
+ /**
1459
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1460
+ *
1461
+ * @param {string} name - The name of the property to get.
1462
+ *
1463
+ * @returns An array of strings.
1464
+ */
1465
+ function parsePropPath(name) {
1466
+ // foo[x][y][z]
1467
+ // foo.x.y.z
1468
+ // foo-x-y-z
1469
+ // foo x y z
1470
+ return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1471
+ return match[0] === '[]' ? '' : match[1] || match[0];
1472
+ });
1473
+ }
1474
+
1475
+ /**
1476
+ * Convert an array to an object.
1477
+ *
1478
+ * @param {Array<any>} arr - The array to convert to an object.
1479
+ *
1480
+ * @returns An object with the same keys and values as the array.
1481
+ */
1482
+ function arrayToObject(arr) {
1483
+ const obj = {};
1484
+ const keys = Object.keys(arr);
1485
+ let i;
1486
+ const len = keys.length;
1487
+ let key;
1488
+ for (i = 0; i < len; i++) {
1489
+ key = keys[i];
1490
+ obj[key] = arr[key];
1491
+ }
1492
+ return obj;
1493
+ }
1494
+
1495
+ /**
1496
+ * It takes a FormData object and returns a JavaScript object
1497
+ *
1498
+ * @param {string} formData The FormData object to convert to JSON.
1499
+ *
1500
+ * @returns {Object<string, any> | null} The converted object.
1501
+ */
1502
+ function formDataToJSON(formData) {
1503
+ function buildPath(path, value, target, index) {
1504
+ let name = path[index++];
1505
+
1506
+ if (name === '__proto__') return true;
1507
+
1508
+ const isNumericKey = Number.isFinite(+name);
1509
+ const isLast = index >= path.length;
1510
+ name = !name && utils$1.isArray(target) ? target.length : name;
1511
+
1512
+ if (isLast) {
1513
+ if (utils$1.hasOwnProp(target, name)) {
1514
+ target[name] = [target[name], value];
1515
+ } else {
1516
+ target[name] = value;
1517
+ }
1518
+
1519
+ return !isNumericKey;
1520
+ }
1521
+
1522
+ if (!target[name] || !utils$1.isObject(target[name])) {
1523
+ target[name] = [];
1524
+ }
1525
+
1526
+ const result = buildPath(path, value, target[name], index);
1527
+
1528
+ if (result && utils$1.isArray(target[name])) {
1529
+ target[name] = arrayToObject(target[name]);
1530
+ }
1531
+
1532
+ return !isNumericKey;
1533
+ }
1534
+
1535
+ if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
1536
+ const obj = {};
1537
+
1538
+ utils$1.forEachEntry(formData, (name, value) => {
1539
+ buildPath(parsePropPath(name), value, obj, 0);
1540
+ });
1541
+
1542
+ return obj;
1543
+ }
1544
+
1545
+ return null;
1546
+ }
1547
+
1548
+ /**
1549
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1550
+ * of the input
1551
+ *
1552
+ * @param {any} rawValue - The value to be stringified.
1553
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
1554
+ * @param {Function} encoder - A function that takes a value and returns a string.
1555
+ *
1556
+ * @returns {string} A stringified version of the rawValue.
1557
+ */
1558
+ function stringifySafely(rawValue, parser, encoder) {
1559
+ if (utils$1.isString(rawValue)) {
1560
+ try {
1561
+ (0, JSON.parse)(rawValue);
1562
+ return utils$1.trim(rawValue);
1563
+ } catch (e) {
1564
+ if (e.name !== 'SyntaxError') {
1565
+ throw e;
1566
+ }
1567
+ }
1568
+ }
1569
+
1570
+ return (encoder || JSON.stringify)(rawValue);
1571
+ }
1572
+
1573
+ const defaults = {
1574
+
1575
+ transitional: transitionalDefaults,
1576
+
1577
+ adapter: ['xhr', 'http', 'fetch'],
1578
+
1579
+ transformRequest: [function transformRequest(data, headers) {
1580
+ const contentType = headers.getContentType() || '';
1581
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1582
+ const isObjectPayload = utils$1.isObject(data);
1583
+
1584
+ if (isObjectPayload && utils$1.isHTMLForm(data)) {
1585
+ data = new FormData(data);
1586
+ }
1587
+
1588
+ const isFormData = utils$1.isFormData(data);
1589
+
1590
+ if (isFormData) {
1591
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1592
+ }
1593
+
1594
+ if (utils$1.isArrayBuffer(data) ||
1595
+ utils$1.isBuffer(data) ||
1596
+ utils$1.isStream(data) ||
1597
+ utils$1.isFile(data) ||
1598
+ utils$1.isBlob(data) ||
1599
+ utils$1.isReadableStream(data)
1600
+ ) {
1601
+ return data;
1602
+ }
1603
+ if (utils$1.isArrayBufferView(data)) {
1604
+ return data.buffer;
1605
+ }
1606
+ if (utils$1.isURLSearchParams(data)) {
1607
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1608
+ return data.toString();
1609
+ }
1610
+
1611
+ let isFileList;
1612
+
1613
+ if (isObjectPayload) {
1614
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1615
+ return toURLEncodedForm(data, this.formSerializer).toString();
1616
+ }
1617
+
1618
+ if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1619
+ const _FormData = this.env && this.env.FormData;
1620
+
1621
+ return toFormData(
1622
+ isFileList ? {'files[]': data} : data,
1623
+ _FormData && new _FormData(),
1624
+ this.formSerializer
1625
+ );
1626
+ }
1627
+ }
1628
+
1629
+ if (isObjectPayload || hasJSONContentType ) {
1630
+ headers.setContentType('application/json', false);
1631
+ return stringifySafely(data);
1632
+ }
1633
+
1634
+ return data;
1635
+ }],
1636
+
1637
+ transformResponse: [function transformResponse(data) {
1638
+ const transitional = this.transitional || defaults.transitional;
1639
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1640
+ const JSONRequested = this.responseType === 'json';
1641
+
1642
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1643
+ return data;
1644
+ }
1645
+
1646
+ if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1647
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1648
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1649
+
1650
+ try {
1651
+ return JSON.parse(data, this.parseReviver);
1652
+ } catch (e) {
1653
+ if (strictJSONParsing) {
1654
+ if (e.name === 'SyntaxError') {
1655
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
1656
+ }
1657
+ throw e;
1658
+ }
1659
+ }
1660
+ }
1661
+
1662
+ return data;
1663
+ }],
1664
+
1665
+ /**
1666
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1667
+ * timeout is not created.
1668
+ */
1669
+ timeout: 0,
1670
+
1671
+ xsrfCookieName: 'XSRF-TOKEN',
1672
+ xsrfHeaderName: 'X-XSRF-TOKEN',
1673
+
1674
+ maxContentLength: -1,
1675
+ maxBodyLength: -1,
1676
+
1677
+ env: {
1678
+ FormData: platform.classes.FormData,
1679
+ Blob: platform.classes.Blob
1680
+ },
1681
+
1682
+ validateStatus: function validateStatus(status) {
1683
+ return status >= 200 && status < 300;
1684
+ },
1685
+
1686
+ headers: {
1687
+ common: {
1688
+ 'Accept': 'application/json, text/plain, */*',
1689
+ 'Content-Type': undefined
1690
+ }
1691
+ }
1692
+ };
1693
+
1694
+ utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
1695
+ defaults.headers[method] = {};
1696
+ });
1697
+
1698
+ var defaults$1 = defaults;
1699
+
1700
+ // RawAxiosHeaders whose duplicates are ignored by node
1701
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
1702
+ const ignoreDuplicateOf = utils$1.toObjectSet([
1703
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
1704
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1705
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1706
+ 'referer', 'retry-after', 'user-agent'
1707
+ ]);
1708
+
1709
+ /**
1710
+ * Parse headers into an object
1711
+ *
1712
+ * ```
1713
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
1714
+ * Content-Type: application/json
1715
+ * Connection: keep-alive
1716
+ * Transfer-Encoding: chunked
1717
+ * ```
1718
+ *
1719
+ * @param {String} rawHeaders Headers needing to be parsed
1720
+ *
1721
+ * @returns {Object} Headers parsed into an object
1722
+ */
1723
+ var parseHeaders = rawHeaders => {
1724
+ const parsed = {};
1725
+ let key;
1726
+ let val;
1727
+ let i;
1728
+
1729
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1730
+ i = line.indexOf(':');
1731
+ key = line.substring(0, i).trim().toLowerCase();
1732
+ val = line.substring(i + 1).trim();
1733
+
1734
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1735
+ return;
1736
+ }
1737
+
1738
+ if (key === 'set-cookie') {
1739
+ if (parsed[key]) {
1740
+ parsed[key].push(val);
1741
+ } else {
1742
+ parsed[key] = [val];
1743
+ }
1744
+ } else {
1745
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1746
+ }
1747
+ });
1748
+
1749
+ return parsed;
1750
+ };
1751
+
1752
+ const $internals = Symbol('internals');
1753
+
1754
+ function normalizeHeader(header) {
1755
+ return header && String(header).trim().toLowerCase();
1756
+ }
1757
+
1758
+ function normalizeValue(value) {
1759
+ if (value === false || value == null) {
1760
+ return value;
1761
+ }
1762
+
1763
+ return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
1764
+ }
1765
+
1766
+ function parseTokens(str) {
1767
+ const tokens = Object.create(null);
1768
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1769
+ let match;
1770
+
1771
+ while ((match = tokensRE.exec(str))) {
1772
+ tokens[match[1]] = match[2];
1773
+ }
1774
+
1775
+ return tokens;
1776
+ }
1777
+
1778
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1779
+
1780
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1781
+ if (utils$1.isFunction(filter)) {
1782
+ return filter.call(this, value, header);
1783
+ }
1784
+
1785
+ if (isHeaderNameFilter) {
1786
+ value = header;
1787
+ }
1788
+
1789
+ if (!utils$1.isString(value)) return;
1790
+
1791
+ if (utils$1.isString(filter)) {
1792
+ return value.indexOf(filter) !== -1;
1793
+ }
1794
+
1795
+ if (utils$1.isRegExp(filter)) {
1796
+ return filter.test(value);
1797
+ }
1798
+ }
1799
+
1800
+ function formatHeader(header) {
1801
+ return header.trim()
1802
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1803
+ return char.toUpperCase() + str;
1804
+ });
1805
+ }
1806
+
1807
+ function buildAccessors(obj, header) {
1808
+ const accessorName = utils$1.toCamelCase(' ' + header);
1809
+
1810
+ ['get', 'set', 'has'].forEach(methodName => {
1811
+ Object.defineProperty(obj, methodName + accessorName, {
1812
+ value: function(arg1, arg2, arg3) {
1813
+ return this[methodName].call(this, header, arg1, arg2, arg3);
1814
+ },
1815
+ configurable: true
1816
+ });
1817
+ });
1818
+ }
1819
+
1820
+ class AxiosHeaders {
1821
+ constructor(headers) {
1822
+ headers && this.set(headers);
1823
+ }
1824
+
1825
+ set(header, valueOrRewrite, rewrite) {
1826
+ const self = this;
1827
+
1828
+ function setHeader(_value, _header, _rewrite) {
1829
+ const lHeader = normalizeHeader(_header);
1830
+
1831
+ if (!lHeader) {
1832
+ throw new Error('header name must be a non-empty string');
1833
+ }
1834
+
1835
+ const key = utils$1.findKey(self, lHeader);
1836
+
1837
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1838
+ self[key || _header] = normalizeValue(_value);
1839
+ }
1840
+ }
1841
+
1842
+ const setHeaders = (headers, _rewrite) =>
1843
+ utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1844
+
1845
+ if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
1846
+ setHeaders(header, valueOrRewrite);
1847
+ } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1848
+ setHeaders(parseHeaders(header), valueOrRewrite);
1849
+ } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
1850
+ let obj = {}, dest, key;
1851
+ for (const entry of header) {
1852
+ if (!utils$1.isArray(entry)) {
1853
+ throw TypeError('Object iterator must return a key-value pair');
1854
+ }
1855
+
1856
+ obj[key = entry[0]] = (dest = obj[key]) ?
1857
+ (utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
1858
+ }
1859
+
1860
+ setHeaders(obj, valueOrRewrite);
1861
+ } else {
1862
+ header != null && setHeader(valueOrRewrite, header, rewrite);
1863
+ }
1864
+
1865
+ return this;
1866
+ }
1867
+
1868
+ get(header, parser) {
1869
+ header = normalizeHeader(header);
1870
+
1871
+ if (header) {
1872
+ const key = utils$1.findKey(this, header);
1873
+
1874
+ if (key) {
1875
+ const value = this[key];
1876
+
1877
+ if (!parser) {
1878
+ return value;
1879
+ }
1880
+
1881
+ if (parser === true) {
1882
+ return parseTokens(value);
1883
+ }
1884
+
1885
+ if (utils$1.isFunction(parser)) {
1886
+ return parser.call(this, value, key);
1887
+ }
1888
+
1889
+ if (utils$1.isRegExp(parser)) {
1890
+ return parser.exec(value);
1891
+ }
1892
+
1893
+ throw new TypeError('parser must be boolean|regexp|function');
1894
+ }
1895
+ }
1896
+ }
1897
+
1898
+ has(header, matcher) {
1899
+ header = normalizeHeader(header);
1900
+
1901
+ if (header) {
1902
+ const key = utils$1.findKey(this, header);
1903
+
1904
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1905
+ }
1906
+
1907
+ return false;
1908
+ }
1909
+
1910
+ delete(header, matcher) {
1911
+ const self = this;
1912
+ let deleted = false;
1913
+
1914
+ function deleteHeader(_header) {
1915
+ _header = normalizeHeader(_header);
1916
+
1917
+ if (_header) {
1918
+ const key = utils$1.findKey(self, _header);
1919
+
1920
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
1921
+ delete self[key];
1922
+
1923
+ deleted = true;
1924
+ }
1925
+ }
1926
+ }
1927
+
1928
+ if (utils$1.isArray(header)) {
1929
+ header.forEach(deleteHeader);
1930
+ } else {
1931
+ deleteHeader(header);
1932
+ }
1933
+
1934
+ return deleted;
1935
+ }
1936
+
1937
+ clear(matcher) {
1938
+ const keys = Object.keys(this);
1939
+ let i = keys.length;
1940
+ let deleted = false;
1941
+
1942
+ while (i--) {
1943
+ const key = keys[i];
1944
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1945
+ delete this[key];
1946
+ deleted = true;
1947
+ }
1948
+ }
1949
+
1950
+ return deleted;
1951
+ }
1952
+
1953
+ normalize(format) {
1954
+ const self = this;
1955
+ const headers = {};
1956
+
1957
+ utils$1.forEach(this, (value, header) => {
1958
+ const key = utils$1.findKey(headers, header);
1959
+
1960
+ if (key) {
1961
+ self[key] = normalizeValue(value);
1962
+ delete self[header];
1963
+ return;
1964
+ }
1965
+
1966
+ const normalized = format ? formatHeader(header) : String(header).trim();
1967
+
1968
+ if (normalized !== header) {
1969
+ delete self[header];
1970
+ }
1971
+
1972
+ self[normalized] = normalizeValue(value);
1973
+
1974
+ headers[normalized] = true;
1975
+ });
1976
+
1977
+ return this;
1978
+ }
1979
+
1980
+ concat(...targets) {
1981
+ return this.constructor.concat(this, ...targets);
1982
+ }
1983
+
1984
+ toJSON(asStrings) {
1985
+ const obj = Object.create(null);
1986
+
1987
+ utils$1.forEach(this, (value, header) => {
1988
+ value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
1989
+ });
1990
+
1991
+ return obj;
1992
+ }
1993
+
1994
+ [Symbol.iterator]() {
1995
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1996
+ }
1997
+
1998
+ toString() {
1999
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
2000
+ }
2001
+
2002
+ getSetCookie() {
2003
+ return this.get("set-cookie") || [];
2004
+ }
2005
+
2006
+ get [Symbol.toStringTag]() {
2007
+ return 'AxiosHeaders';
2008
+ }
2009
+
2010
+ static from(thing) {
2011
+ return thing instanceof this ? thing : new this(thing);
2012
+ }
2013
+
2014
+ static concat(first, ...targets) {
2015
+ const computed = new this(first);
2016
+
2017
+ targets.forEach((target) => computed.set(target));
2018
+
2019
+ return computed;
2020
+ }
2021
+
2022
+ static accessor(header) {
2023
+ const internals = this[$internals] = (this[$internals] = {
2024
+ accessors: {}
2025
+ });
2026
+
2027
+ const accessors = internals.accessors;
2028
+ const prototype = this.prototype;
2029
+
2030
+ function defineAccessor(_header) {
2031
+ const lHeader = normalizeHeader(_header);
2032
+
2033
+ if (!accessors[lHeader]) {
2034
+ buildAccessors(prototype, _header);
2035
+ accessors[lHeader] = true;
2036
+ }
2037
+ }
2038
+
2039
+ utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
2040
+
2041
+ return this;
2042
+ }
2043
+ }
2044
+
2045
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2046
+
2047
+ // reserved names hotfix
2048
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2049
+ let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
2050
+ return {
2051
+ get: () => value,
2052
+ set(headerValue) {
2053
+ this[mapped] = headerValue;
2054
+ }
2055
+ }
2056
+ });
2057
+
2058
+ utils$1.freezeMethods(AxiosHeaders);
2059
+
2060
+ var AxiosHeaders$1 = AxiosHeaders;
2061
+
2062
+ /**
2063
+ * Transform the data for a request or a response
2064
+ *
2065
+ * @param {Array|Function} fns A single function or Array of functions
2066
+ * @param {?Object} response The response object
2067
+ *
2068
+ * @returns {*} The resulting transformed data
2069
+ */
2070
+ function transformData(fns, response) {
2071
+ const config = this || defaults$1;
2072
+ const context = response || config;
2073
+ const headers = AxiosHeaders$1.from(context.headers);
2074
+ let data = context.data;
2075
+
2076
+ utils$1.forEach(fns, function transform(fn) {
2077
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
2078
+ });
2079
+
2080
+ headers.normalize();
2081
+
2082
+ return data;
2083
+ }
2084
+
2085
+ function isCancel(value) {
2086
+ return !!(value && value.__CANCEL__);
2087
+ }
2088
+
2089
+ class CanceledError extends AxiosError$1 {
2090
+ /**
2091
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
2092
+ *
2093
+ * @param {string=} message The message.
2094
+ * @param {Object=} config The config.
2095
+ * @param {Object=} request The request.
2096
+ *
2097
+ * @returns {CanceledError} The created error.
2098
+ */
2099
+ constructor(message, config, request) {
2100
+ super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
2101
+ this.name = 'CanceledError';
2102
+ this.__CANCEL__ = true;
2103
+ }
2104
+ }
2105
+
2106
+ var CanceledError$1 = CanceledError;
2107
+
2108
+ /**
2109
+ * Resolve or reject a Promise based on response status.
2110
+ *
2111
+ * @param {Function} resolve A function that resolves the promise.
2112
+ * @param {Function} reject A function that rejects the promise.
2113
+ * @param {object} response The response.
2114
+ *
2115
+ * @returns {object} The response.
2116
+ */
2117
+ function settle(resolve, reject, response) {
2118
+ const validateStatus = response.config.validateStatus;
2119
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
2120
+ resolve(response);
2121
+ } else {
2122
+ reject(new AxiosError$1(
2123
+ 'Request failed with status code ' + response.status,
2124
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2125
+ response.config,
2126
+ response.request,
2127
+ response
2128
+ ));
2129
+ }
2130
+ }
2131
+
2132
+ function parseProtocol(url) {
2133
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2134
+ return match && match[1] || '';
2135
+ }
2136
+
2137
+ /**
2138
+ * Calculate data maxRate
2139
+ * @param {Number} [samplesCount= 10]
2140
+ * @param {Number} [min= 1000]
2141
+ * @returns {Function}
2142
+ */
2143
+ function speedometer(samplesCount, min) {
2144
+ samplesCount = samplesCount || 10;
2145
+ const bytes = new Array(samplesCount);
2146
+ const timestamps = new Array(samplesCount);
2147
+ let head = 0;
2148
+ let tail = 0;
2149
+ let firstSampleTS;
2150
+
2151
+ min = min !== undefined ? min : 1000;
2152
+
2153
+ return function push(chunkLength) {
2154
+ const now = Date.now();
2155
+
2156
+ const startedAt = timestamps[tail];
2157
+
2158
+ if (!firstSampleTS) {
2159
+ firstSampleTS = now;
2160
+ }
2161
+
2162
+ bytes[head] = chunkLength;
2163
+ timestamps[head] = now;
2164
+
2165
+ let i = tail;
2166
+ let bytesCount = 0;
2167
+
2168
+ while (i !== head) {
2169
+ bytesCount += bytes[i++];
2170
+ i = i % samplesCount;
2171
+ }
2172
+
2173
+ head = (head + 1) % samplesCount;
2174
+
2175
+ if (head === tail) {
2176
+ tail = (tail + 1) % samplesCount;
2177
+ }
2178
+
2179
+ if (now - firstSampleTS < min) {
2180
+ return;
2181
+ }
2182
+
2183
+ const passed = startedAt && now - startedAt;
2184
+
2185
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2186
+ };
2187
+ }
2188
+
2189
+ /**
2190
+ * Throttle decorator
2191
+ * @param {Function} fn
2192
+ * @param {Number} freq
2193
+ * @return {Function}
2194
+ */
2195
+ function throttle(fn, freq) {
2196
+ let timestamp = 0;
2197
+ let threshold = 1000 / freq;
2198
+ let lastArgs;
2199
+ let timer;
2200
+
2201
+ const invoke = (args, now = Date.now()) => {
2202
+ timestamp = now;
2203
+ lastArgs = null;
2204
+ if (timer) {
2205
+ clearTimeout(timer);
2206
+ timer = null;
2207
+ }
2208
+ fn(...args);
2209
+ };
2210
+
2211
+ const throttled = (...args) => {
2212
+ const now = Date.now();
2213
+ const passed = now - timestamp;
2214
+ if ( passed >= threshold) {
2215
+ invoke(args, now);
2216
+ } else {
2217
+ lastArgs = args;
2218
+ if (!timer) {
2219
+ timer = setTimeout(() => {
2220
+ timer = null;
2221
+ invoke(lastArgs);
2222
+ }, threshold - passed);
2223
+ }
2224
+ }
2225
+ };
2226
+
2227
+ const flush = () => lastArgs && invoke(lastArgs);
2228
+
2229
+ return [throttled, flush];
2230
+ }
2231
+
2232
+ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2233
+ let bytesNotified = 0;
2234
+ const _speedometer = speedometer(50, 250);
2235
+
2236
+ return throttle(e => {
2237
+ const loaded = e.loaded;
2238
+ const total = e.lengthComputable ? e.total : undefined;
2239
+ const progressBytes = loaded - bytesNotified;
2240
+ const rate = _speedometer(progressBytes);
2241
+ const inRange = loaded <= total;
2242
+
2243
+ bytesNotified = loaded;
2244
+
2245
+ const data = {
2246
+ loaded,
2247
+ total,
2248
+ progress: total ? (loaded / total) : undefined,
2249
+ bytes: progressBytes,
2250
+ rate: rate ? rate : undefined,
2251
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2252
+ event: e,
2253
+ lengthComputable: total != null,
2254
+ [isDownloadStream ? 'download' : 'upload']: true
2255
+ };
2256
+
2257
+ listener(data);
2258
+ }, freq);
2259
+ };
2260
+
2261
+ const progressEventDecorator = (total, throttled) => {
2262
+ const lengthComputable = total != null;
2263
+
2264
+ return [(loaded) => throttled[0]({
2265
+ lengthComputable,
2266
+ total,
2267
+ loaded
2268
+ }), throttled[1]];
2269
+ };
2270
+
2271
+ const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2272
+
2273
+ var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
2274
+ url = new URL(url, platform.origin);
2275
+
2276
+ return (
2277
+ origin.protocol === url.protocol &&
2278
+ origin.host === url.host &&
2279
+ (isMSIE || origin.port === url.port)
2280
+ );
2281
+ })(
2282
+ new URL(platform.origin),
2283
+ platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
2284
+ ) : () => true;
2285
+
2286
+ var cookies = platform.hasStandardBrowserEnv ?
2287
+
2288
+ // Standard browser envs support document.cookie
2289
+ {
2290
+ write(name, value, expires, path, domain, secure, sameSite) {
2291
+ if (typeof document === 'undefined') return;
2292
+
2293
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
2294
+
2295
+ if (utils$1.isNumber(expires)) {
2296
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
2297
+ }
2298
+ if (utils$1.isString(path)) {
2299
+ cookie.push(`path=${path}`);
2300
+ }
2301
+ if (utils$1.isString(domain)) {
2302
+ cookie.push(`domain=${domain}`);
2303
+ }
2304
+ if (secure === true) {
2305
+ cookie.push('secure');
2306
+ }
2307
+ if (utils$1.isString(sameSite)) {
2308
+ cookie.push(`SameSite=${sameSite}`);
2309
+ }
2310
+
2311
+ document.cookie = cookie.join('; ');
2312
+ },
2313
+
2314
+ read(name) {
2315
+ if (typeof document === 'undefined') return null;
2316
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
2317
+ return match ? decodeURIComponent(match[1]) : null;
2318
+ },
2319
+
2320
+ remove(name) {
2321
+ this.write(name, '', Date.now() - 86400000, '/');
2322
+ }
2323
+ }
2324
+
2325
+ :
2326
+
2327
+ // Non-standard browser env (web workers, react-native) lack needed support.
2328
+ {
2329
+ write() {},
2330
+ read() {
2331
+ return null;
2332
+ },
2333
+ remove() {}
2334
+ };
2335
+
2336
+ /**
2337
+ * Determines whether the specified URL is absolute
2338
+ *
2339
+ * @param {string} url The URL to test
2340
+ *
2341
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
2342
+ */
2343
+ function isAbsoluteURL(url) {
2344
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2345
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2346
+ // by any combination of letters, digits, plus, period, or hyphen.
2347
+ if (typeof url !== 'string') {
2348
+ return false;
2349
+ }
2350
+
2351
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2352
+ }
2353
+
2354
+ /**
2355
+ * Creates a new URL by combining the specified URLs
2356
+ *
2357
+ * @param {string} baseURL The base URL
2358
+ * @param {string} relativeURL The relative URL
2359
+ *
2360
+ * @returns {string} The combined URL
2361
+ */
2362
+ function combineURLs(baseURL, relativeURL) {
2363
+ return relativeURL
2364
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2365
+ : baseURL;
2366
+ }
2367
+
2368
+ /**
2369
+ * Creates a new URL by combining the baseURL with the requestedURL,
2370
+ * only when the requestedURL is not already an absolute URL.
2371
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
2372
+ *
2373
+ * @param {string} baseURL The base URL
2374
+ * @param {string} requestedURL Absolute or relative URL to combine
2375
+ *
2376
+ * @returns {string} The combined full path
2377
+ */
2378
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2379
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
2380
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
2381
+ return combineURLs(baseURL, requestedURL);
2382
+ }
2383
+ return requestedURL;
2384
+ }
2385
+
2386
+ const headersToObject = (thing) =>
2387
+ thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
2388
+
2389
+ /**
2390
+ * Config-specific merge-function which creates a new config-object
2391
+ * by merging two configuration objects together.
2392
+ *
2393
+ * @param {Object} config1
2394
+ * @param {Object} config2
2395
+ *
2396
+ * @returns {Object} New object resulting from merging config2 to config1
2397
+ */
2398
+ function mergeConfig(config1, config2) {
2399
+ // eslint-disable-next-line no-param-reassign
2400
+ config2 = config2 || {};
2401
+ const config = {};
2402
+
2403
+ function getMergedValue(target, source, prop, caseless) {
2404
+ if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
2405
+ return utils$1.merge.call({ caseless }, target, source);
2406
+ } else if (utils$1.isPlainObject(source)) {
2407
+ return utils$1.merge({}, source);
2408
+ } else if (utils$1.isArray(source)) {
2409
+ return source.slice();
2410
+ }
2411
+ return source;
2412
+ }
2413
+
2414
+ function mergeDeepProperties(a, b, prop, caseless) {
2415
+ if (!utils$1.isUndefined(b)) {
2416
+ return getMergedValue(a, b, prop, caseless);
2417
+ } else if (!utils$1.isUndefined(a)) {
2418
+ return getMergedValue(undefined, a, prop, caseless);
2419
+ }
2420
+ }
2421
+
2422
+ // eslint-disable-next-line consistent-return
2423
+ function valueFromConfig2(a, b) {
2424
+ if (!utils$1.isUndefined(b)) {
2425
+ return getMergedValue(undefined, b);
2426
+ }
2427
+ }
2428
+
2429
+ // eslint-disable-next-line consistent-return
2430
+ function defaultToConfig2(a, b) {
2431
+ if (!utils$1.isUndefined(b)) {
2432
+ return getMergedValue(undefined, b);
2433
+ } else if (!utils$1.isUndefined(a)) {
2434
+ return getMergedValue(undefined, a);
2435
+ }
2436
+ }
2437
+
2438
+ // eslint-disable-next-line consistent-return
2439
+ function mergeDirectKeys(a, b, prop) {
2440
+ if (prop in config2) {
2441
+ return getMergedValue(a, b);
2442
+ } else if (prop in config1) {
2443
+ return getMergedValue(undefined, a);
2444
+ }
2445
+ }
2446
+
2447
+ const mergeMap = {
2448
+ url: valueFromConfig2,
2449
+ method: valueFromConfig2,
2450
+ data: valueFromConfig2,
2451
+ baseURL: defaultToConfig2,
2452
+ transformRequest: defaultToConfig2,
2453
+ transformResponse: defaultToConfig2,
2454
+ paramsSerializer: defaultToConfig2,
2455
+ timeout: defaultToConfig2,
2456
+ timeoutMessage: defaultToConfig2,
2457
+ withCredentials: defaultToConfig2,
2458
+ withXSRFToken: defaultToConfig2,
2459
+ adapter: defaultToConfig2,
2460
+ responseType: defaultToConfig2,
2461
+ xsrfCookieName: defaultToConfig2,
2462
+ xsrfHeaderName: defaultToConfig2,
2463
+ onUploadProgress: defaultToConfig2,
2464
+ onDownloadProgress: defaultToConfig2,
2465
+ decompress: defaultToConfig2,
2466
+ maxContentLength: defaultToConfig2,
2467
+ maxBodyLength: defaultToConfig2,
2468
+ beforeRedirect: defaultToConfig2,
2469
+ transport: defaultToConfig2,
2470
+ httpAgent: defaultToConfig2,
2471
+ httpsAgent: defaultToConfig2,
2472
+ cancelToken: defaultToConfig2,
2473
+ socketPath: defaultToConfig2,
2474
+ responseEncoding: defaultToConfig2,
2475
+ validateStatus: mergeDirectKeys,
2476
+ headers: (a, b, prop) =>
2477
+ mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
2478
+ };
2479
+
2480
+ utils$1.forEach(
2481
+ Object.keys({ ...config1, ...config2 }),
2482
+ function computeConfigValue(prop) {
2483
+ if (
2484
+ prop === "__proto__" ||
2485
+ prop === "constructor" ||
2486
+ prop === "prototype"
2487
+ )
2488
+ return;
2489
+ const merge = utils$1.hasOwnProp(mergeMap, prop)
2490
+ ? mergeMap[prop]
2491
+ : mergeDeepProperties;
2492
+ const configValue = merge(config1[prop], config2[prop], prop);
2493
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
2494
+ (config[prop] = configValue);
2495
+ },
2496
+ );
2497
+
2498
+ return config;
2499
+ }
2500
+
2501
+ var resolveConfig = (config) => {
2502
+ const newConfig = mergeConfig({}, config);
2503
+
2504
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
2505
+
2506
+ newConfig.headers = headers = AxiosHeaders$1.from(headers);
2507
+
2508
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
2509
+
2510
+ // HTTP basic authentication
2511
+ if (auth) {
2512
+ headers.set('Authorization', 'Basic ' +
2513
+ btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
2514
+ );
2515
+ }
2516
+
2517
+ if (utils$1.isFormData(data)) {
2518
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2519
+ headers.setContentType(undefined); // browser handles it
2520
+ } else if (utils$1.isFunction(data.getHeaders)) {
2521
+ // Node.js FormData (like form-data package)
2522
+ const formHeaders = data.getHeaders();
2523
+ // Only set safe headers to avoid overwriting security headers
2524
+ const allowedHeaders = ['content-type', 'content-length'];
2525
+ Object.entries(formHeaders).forEach(([key, val]) => {
2526
+ if (allowedHeaders.includes(key.toLowerCase())) {
2527
+ headers.set(key, val);
2528
+ }
2529
+ });
2530
+ }
2531
+ }
2532
+
2533
+ // Add xsrf header
2534
+ // This is only done if running in a standard browser environment.
2535
+ // Specifically not if we're in a web worker, or react-native.
2536
+
2537
+ if (platform.hasStandardBrowserEnv) {
2538
+ withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
2539
+
2540
+ if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
2541
+ // Add xsrf header
2542
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
2543
+
2544
+ if (xsrfValue) {
2545
+ headers.set(xsrfHeaderName, xsrfValue);
2546
+ }
2547
+ }
2548
+ }
2549
+
2550
+ return newConfig;
2551
+ };
2552
+
2553
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2554
+
2555
+ var xhrAdapter = isXHRAdapterSupported && function (config) {
2556
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2557
+ const _config = resolveConfig(config);
2558
+ let requestData = _config.data;
2559
+ const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
2560
+ let {responseType, onUploadProgress, onDownloadProgress} = _config;
2561
+ let onCanceled;
2562
+ let uploadThrottled, downloadThrottled;
2563
+ let flushUpload, flushDownload;
2564
+
2565
+ function done() {
2566
+ flushUpload && flushUpload(); // flush events
2567
+ flushDownload && flushDownload(); // flush events
2568
+
2569
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2570
+
2571
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
2572
+ }
2573
+
2574
+ let request = new XMLHttpRequest();
2575
+
2576
+ request.open(_config.method.toUpperCase(), _config.url, true);
2577
+
2578
+ // Set the request timeout in MS
2579
+ request.timeout = _config.timeout;
2580
+
2581
+ function onloadend() {
2582
+ if (!request) {
2583
+ return;
2584
+ }
2585
+ // Prepare the response
2586
+ const responseHeaders = AxiosHeaders$1.from(
2587
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2588
+ );
2589
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2590
+ request.responseText : request.response;
2591
+ const response = {
2592
+ data: responseData,
2593
+ status: request.status,
2594
+ statusText: request.statusText,
2595
+ headers: responseHeaders,
2596
+ config,
2597
+ request
2598
+ };
2599
+
2600
+ settle(function _resolve(value) {
2601
+ resolve(value);
2602
+ done();
2603
+ }, function _reject(err) {
2604
+ reject(err);
2605
+ done();
2606
+ }, response);
2607
+
2608
+ // Clean up request
2609
+ request = null;
2610
+ }
2611
+
2612
+ if ('onloadend' in request) {
2613
+ // Use onloadend if available
2614
+ request.onloadend = onloadend;
2615
+ } else {
2616
+ // Listen for ready state to emulate onloadend
2617
+ request.onreadystatechange = function handleLoad() {
2618
+ if (!request || request.readyState !== 4) {
2619
+ return;
2620
+ }
2621
+
2622
+ // The request errored out and we didn't get a response, this will be
2623
+ // handled by onerror instead
2624
+ // With one exception: request that using file: protocol, most browsers
2625
+ // will return status as 0 even though it's a successful request
2626
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2627
+ return;
2628
+ }
2629
+ // readystate handler is calling before onerror or ontimeout handlers,
2630
+ // so we should call onloadend on the next 'tick'
2631
+ setTimeout(onloadend);
2632
+ };
2633
+ }
2634
+
2635
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2636
+ request.onabort = function handleAbort() {
2637
+ if (!request) {
2638
+ return;
2639
+ }
2640
+
2641
+ reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
2642
+
2643
+ // Clean up request
2644
+ request = null;
2645
+ };
2646
+
2647
+ // Handle low level network errors
2648
+ request.onerror = function handleError(event) {
2649
+ // Browsers deliver a ProgressEvent in XHR onerror
2650
+ // (message may be empty; when present, surface it)
2651
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
2652
+ const msg = event && event.message ? event.message : 'Network Error';
2653
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
2654
+ // attach the underlying event for consumers who want details
2655
+ err.event = event || null;
2656
+ reject(err);
2657
+ request = null;
2658
+ };
2659
+
2660
+ // Handle timeout
2661
+ request.ontimeout = function handleTimeout() {
2662
+ let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
2663
+ const transitional = _config.transitional || transitionalDefaults;
2664
+ if (_config.timeoutErrorMessage) {
2665
+ timeoutErrorMessage = _config.timeoutErrorMessage;
2666
+ }
2667
+ reject(new AxiosError$1(
2668
+ timeoutErrorMessage,
2669
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
2670
+ config,
2671
+ request));
2672
+
2673
+ // Clean up request
2674
+ request = null;
2675
+ };
2676
+
2677
+ // Remove Content-Type if data is undefined
2678
+ requestData === undefined && requestHeaders.setContentType(null);
2679
+
2680
+ // Add headers to the request
2681
+ if ('setRequestHeader' in request) {
2682
+ utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2683
+ request.setRequestHeader(key, val);
2684
+ });
2685
+ }
2686
+
2687
+ // Add withCredentials to request if needed
2688
+ if (!utils$1.isUndefined(_config.withCredentials)) {
2689
+ request.withCredentials = !!_config.withCredentials;
2690
+ }
2691
+
2692
+ // Add responseType to request if needed
2693
+ if (responseType && responseType !== 'json') {
2694
+ request.responseType = _config.responseType;
2695
+ }
2696
+
2697
+ // Handle progress if needed
2698
+ if (onDownloadProgress) {
2699
+ ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
2700
+ request.addEventListener('progress', downloadThrottled);
2701
+ }
2702
+
2703
+ // Not all browsers support upload events
2704
+ if (onUploadProgress && request.upload) {
2705
+ ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
2706
+
2707
+ request.upload.addEventListener('progress', uploadThrottled);
2708
+
2709
+ request.upload.addEventListener('loadend', flushUpload);
2710
+ }
2711
+
2712
+ if (_config.cancelToken || _config.signal) {
2713
+ // Handle cancellation
2714
+ // eslint-disable-next-line func-names
2715
+ onCanceled = cancel => {
2716
+ if (!request) {
2717
+ return;
2718
+ }
2719
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2720
+ request.abort();
2721
+ request = null;
2722
+ };
2723
+
2724
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
2725
+ if (_config.signal) {
2726
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
2727
+ }
2728
+ }
2729
+
2730
+ const protocol = parseProtocol(_config.url);
2731
+
2732
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
2733
+ reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
2734
+ return;
2735
+ }
2736
+
2737
+
2738
+ // Send the request
2739
+ request.send(requestData || null);
2740
+ });
2741
+ };
2742
+
2743
+ const composeSignals = (signals, timeout) => {
2744
+ const {length} = (signals = signals ? signals.filter(Boolean) : []);
2745
+
2746
+ if (timeout || length) {
2747
+ let controller = new AbortController();
2748
+
2749
+ let aborted;
2750
+
2751
+ const onabort = function (reason) {
2752
+ if (!aborted) {
2753
+ aborted = true;
2754
+ unsubscribe();
2755
+ const err = reason instanceof Error ? reason : this.reason;
2756
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2757
+ }
2758
+ };
2759
+
2760
+ let timer = timeout && setTimeout(() => {
2761
+ timer = null;
2762
+ onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
2763
+ }, timeout);
2764
+
2765
+ const unsubscribe = () => {
2766
+ if (signals) {
2767
+ timer && clearTimeout(timer);
2768
+ timer = null;
2769
+ signals.forEach(signal => {
2770
+ signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
2771
+ });
2772
+ signals = null;
2773
+ }
2774
+ };
2775
+
2776
+ signals.forEach((signal) => signal.addEventListener('abort', onabort));
2777
+
2778
+ const {signal} = controller;
2779
+
2780
+ signal.unsubscribe = () => utils$1.asap(unsubscribe);
2781
+
2782
+ return signal;
2783
+ }
2784
+ };
2785
+
2786
+ var composeSignals$1 = composeSignals;
2787
+
2788
+ const streamChunk = function* (chunk, chunkSize) {
2789
+ let len = chunk.byteLength;
2790
+
2791
+ if (len < chunkSize) {
2792
+ yield chunk;
2793
+ return;
2794
+ }
2795
+
2796
+ let pos = 0;
2797
+ let end;
2798
+
2799
+ while (pos < len) {
2800
+ end = pos + chunkSize;
2801
+ yield chunk.slice(pos, end);
2802
+ pos = end;
2803
+ }
2804
+ };
2805
+
2806
+ const readBytes = async function* (iterable, chunkSize) {
2807
+ for await (const chunk of readStream(iterable)) {
2808
+ yield* streamChunk(chunk, chunkSize);
2809
+ }
2810
+ };
2811
+
2812
+ const readStream = async function* (stream) {
2813
+ if (stream[Symbol.asyncIterator]) {
2814
+ yield* stream;
2815
+ return;
2816
+ }
2817
+
2818
+ const reader = stream.getReader();
2819
+ try {
2820
+ for (;;) {
2821
+ const {done, value} = await reader.read();
2822
+ if (done) {
2823
+ break;
2824
+ }
2825
+ yield value;
2826
+ }
2827
+ } finally {
2828
+ await reader.cancel();
2829
+ }
2830
+ };
2831
+
2832
+ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
2833
+ const iterator = readBytes(stream, chunkSize);
2834
+
2835
+ let bytes = 0;
2836
+ let done;
2837
+ let _onFinish = (e) => {
2838
+ if (!done) {
2839
+ done = true;
2840
+ onFinish && onFinish(e);
2841
+ }
2842
+ };
2843
+
2844
+ return new ReadableStream({
2845
+ async pull(controller) {
2846
+ try {
2847
+ const {done, value} = await iterator.next();
2848
+
2849
+ if (done) {
2850
+ _onFinish();
2851
+ controller.close();
2852
+ return;
2853
+ }
2854
+
2855
+ let len = value.byteLength;
2856
+ if (onProgress) {
2857
+ let loadedBytes = bytes += len;
2858
+ onProgress(loadedBytes);
2859
+ }
2860
+ controller.enqueue(new Uint8Array(value));
2861
+ } catch (err) {
2862
+ _onFinish(err);
2863
+ throw err;
2864
+ }
2865
+ },
2866
+ cancel(reason) {
2867
+ _onFinish(reason);
2868
+ return iterator.return();
2869
+ }
2870
+ }, {
2871
+ highWaterMark: 2
2872
+ })
2873
+ };
2874
+
2875
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
2876
+
2877
+ const {isFunction} = utils$1;
2878
+
2879
+ const globalFetchAPI = (({Request, Response}) => ({
2880
+ Request, Response
2881
+ }))(utils$1.global);
2882
+
2883
+ const {
2884
+ ReadableStream: ReadableStream$1, TextEncoder
2885
+ } = utils$1.global;
2886
+
2887
+
2888
+ const test = (fn, ...args) => {
2889
+ try {
2890
+ return !!fn(...args);
2891
+ } catch (e) {
2892
+ return false
2893
+ }
2894
+ };
2895
+
2896
+ const factory = (env) => {
2897
+ env = utils$1.merge.call({
2898
+ skipUndefined: true
2899
+ }, globalFetchAPI, env);
2900
+
2901
+ const {fetch: envFetch, Request, Response} = env;
2902
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
2903
+ const isRequestSupported = isFunction(Request);
2904
+ const isResponseSupported = isFunction(Response);
2905
+
2906
+ if (!isFetchSupported) {
2907
+ return false;
2908
+ }
2909
+
2910
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
2911
+
2912
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2913
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
2914
+ async (str) => new Uint8Array(await new Request(str).arrayBuffer())
2915
+ );
2916
+
2917
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2918
+ let duplexAccessed = false;
2919
+
2920
+ const hasContentType = new Request(platform.origin, {
2921
+ body: new ReadableStream$1(),
2922
+ method: 'POST',
2923
+ get duplex() {
2924
+ duplexAccessed = true;
2925
+ return 'half';
2926
+ },
2927
+ }).headers.has('Content-Type');
2928
+
2929
+ return duplexAccessed && !hasContentType;
2930
+ });
2931
+
2932
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
2933
+ test(() => utils$1.isReadableStream(new Response('').body));
2934
+
2935
+ const resolvers = {
2936
+ stream: supportsResponseStream && ((res) => res.body)
2937
+ };
2938
+
2939
+ isFetchSupported && ((() => {
2940
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2941
+ !resolvers[type] && (resolvers[type] = (res, config) => {
2942
+ let method = res && res[type];
2943
+
2944
+ if (method) {
2945
+ return method.call(res);
2946
+ }
2947
+
2948
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2949
+ });
2950
+ });
2951
+ })());
2952
+
2953
+ const getBodyLength = async (body) => {
2954
+ if (body == null) {
2955
+ return 0;
2956
+ }
2957
+
2958
+ if (utils$1.isBlob(body)) {
2959
+ return body.size;
2960
+ }
2961
+
2962
+ if (utils$1.isSpecCompliantForm(body)) {
2963
+ const _request = new Request(platform.origin, {
2964
+ method: 'POST',
2965
+ body,
2966
+ });
2967
+ return (await _request.arrayBuffer()).byteLength;
2968
+ }
2969
+
2970
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
2971
+ return body.byteLength;
2972
+ }
2973
+
2974
+ if (utils$1.isURLSearchParams(body)) {
2975
+ body = body + '';
2976
+ }
2977
+
2978
+ if (utils$1.isString(body)) {
2979
+ return (await encodeText(body)).byteLength;
2980
+ }
2981
+ };
2982
+
2983
+ const resolveBodyLength = async (headers, body) => {
2984
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
2985
+
2986
+ return length == null ? getBodyLength(body) : length;
2987
+ };
2988
+
2989
+ return async (config) => {
2990
+ let {
2991
+ url,
2992
+ method,
2993
+ data,
2994
+ signal,
2995
+ cancelToken,
2996
+ timeout,
2997
+ onDownloadProgress,
2998
+ onUploadProgress,
2999
+ responseType,
3000
+ headers,
3001
+ withCredentials = 'same-origin',
3002
+ fetchOptions
3003
+ } = resolveConfig(config);
3004
+
3005
+ let _fetch = envFetch || fetch;
3006
+
3007
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
3008
+
3009
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
3010
+
3011
+ let request = null;
3012
+
3013
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
3014
+ composedSignal.unsubscribe();
3015
+ });
3016
+
3017
+ let requestContentLength;
3018
+
3019
+ try {
3020
+ if (
3021
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
3022
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
3023
+ ) {
3024
+ let _request = new Request(url, {
3025
+ method: 'POST',
3026
+ body: data,
3027
+ duplex: "half"
3028
+ });
3029
+
3030
+ let contentTypeHeader;
3031
+
3032
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3033
+ headers.setContentType(contentTypeHeader);
3034
+ }
3035
+
3036
+ if (_request.body) {
3037
+ const [onProgress, flush] = progressEventDecorator(
3038
+ requestContentLength,
3039
+ progressEventReducer(asyncDecorator(onUploadProgress))
3040
+ );
3041
+
3042
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
3043
+ }
3044
+ }
3045
+
3046
+ if (!utils$1.isString(withCredentials)) {
3047
+ withCredentials = withCredentials ? 'include' : 'omit';
3048
+ }
3049
+
3050
+ // Cloudflare Workers throws when credentials are defined
3051
+ // see https://github.com/cloudflare/workerd/issues/902
3052
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3053
+
3054
+ const resolvedOptions = {
3055
+ ...fetchOptions,
3056
+ signal: composedSignal,
3057
+ method: method.toUpperCase(),
3058
+ headers: headers.normalize().toJSON(),
3059
+ body: data,
3060
+ duplex: "half",
3061
+ credentials: isCredentialsSupported ? withCredentials : undefined
3062
+ };
3063
+
3064
+ request = isRequestSupported && new Request(url, resolvedOptions);
3065
+
3066
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3067
+
3068
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3069
+
3070
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
3071
+ const options = {};
3072
+
3073
+ ['status', 'statusText', 'headers'].forEach(prop => {
3074
+ options[prop] = response[prop];
3075
+ });
3076
+
3077
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
3078
+
3079
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
3080
+ responseContentLength,
3081
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
3082
+ ) || [];
3083
+
3084
+ response = new Response(
3085
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
3086
+ flush && flush();
3087
+ unsubscribe && unsubscribe();
3088
+ }),
3089
+ options
3090
+ );
3091
+ }
3092
+
3093
+ responseType = responseType || 'text';
3094
+
3095
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
3096
+
3097
+ !isStreamResponse && unsubscribe && unsubscribe();
3098
+
3099
+ return await new Promise((resolve, reject) => {
3100
+ settle(resolve, reject, {
3101
+ data: responseData,
3102
+ headers: AxiosHeaders$1.from(response.headers),
3103
+ status: response.status,
3104
+ statusText: response.statusText,
3105
+ config,
3106
+ request
3107
+ });
3108
+ })
3109
+ } catch (err) {
3110
+ unsubscribe && unsubscribe();
3111
+
3112
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3113
+ throw Object.assign(
3114
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
3115
+ {
3116
+ cause: err.cause || err
3117
+ }
3118
+ )
3119
+ }
3120
+
3121
+ throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
3122
+ }
3123
+ }
3124
+ };
3125
+
3126
+ const seedCache = new Map();
3127
+
3128
+ const getFetch = (config) => {
3129
+ let env = (config && config.env) || {};
3130
+ const {fetch, Request, Response} = env;
3131
+ const seeds = [
3132
+ Request, Response, fetch
3133
+ ];
3134
+
3135
+ let len = seeds.length, i = len,
3136
+ seed, target, map = seedCache;
3137
+
3138
+ while (i--) {
3139
+ seed = seeds[i];
3140
+ target = map.get(seed);
3141
+
3142
+ target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
3143
+
3144
+ map = target;
3145
+ }
3146
+
3147
+ return target;
3148
+ };
3149
+
3150
+ getFetch();
3151
+
3152
+ /**
3153
+ * Known adapters mapping.
3154
+ * Provides environment-specific adapters for Axios:
3155
+ * - `http` for Node.js
3156
+ * - `xhr` for browsers
3157
+ * - `fetch` for fetch API-based requests
3158
+ *
3159
+ * @type {Object<string, Function|Object>}
3160
+ */
3161
+ const knownAdapters = {
3162
+ http: httpAdapter,
3163
+ xhr: xhrAdapter,
3164
+ fetch: {
3165
+ get: getFetch,
3166
+ }
3167
+ };
3168
+
3169
+ // Assign adapter names for easier debugging and identification
3170
+ utils$1.forEach(knownAdapters, (fn, value) => {
3171
+ if (fn) {
3172
+ try {
3173
+ Object.defineProperty(fn, 'name', { value });
3174
+ } catch (e) {
3175
+ // eslint-disable-next-line no-empty
3176
+ }
3177
+ Object.defineProperty(fn, 'adapterName', { value });
3178
+ }
3179
+ });
3180
+
3181
+ /**
3182
+ * Render a rejection reason string for unknown or unsupported adapters
3183
+ *
3184
+ * @param {string} reason
3185
+ * @returns {string}
3186
+ */
3187
+ const renderReason = (reason) => `- ${reason}`;
3188
+
3189
+ /**
3190
+ * Check if the adapter is resolved (function, null, or false)
3191
+ *
3192
+ * @param {Function|null|false} adapter
3193
+ * @returns {boolean}
3194
+ */
3195
+ const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
3196
+
3197
+ /**
3198
+ * Get the first suitable adapter from the provided list.
3199
+ * Tries each adapter in order until a supported one is found.
3200
+ * Throws an AxiosError if no adapter is suitable.
3201
+ *
3202
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
3203
+ * @param {Object} config - Axios request configuration
3204
+ * @throws {AxiosError} If no suitable adapter is available
3205
+ * @returns {Function} The resolved adapter function
3206
+ */
3207
+ function getAdapter(adapters, config) {
3208
+ adapters = utils$1.isArray(adapters) ? adapters : [adapters];
3209
+
3210
+ const { length } = adapters;
3211
+ let nameOrAdapter;
3212
+ let adapter;
3213
+
3214
+ const rejectedReasons = {};
3215
+
3216
+ for (let i = 0; i < length; i++) {
3217
+ nameOrAdapter = adapters[i];
3218
+ let id;
3219
+
3220
+ adapter = nameOrAdapter;
3221
+
3222
+ if (!isResolvedHandle(nameOrAdapter)) {
3223
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
3224
+
3225
+ if (adapter === undefined) {
3226
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
3227
+ }
3228
+ }
3229
+
3230
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
3231
+ break;
3232
+ }
3233
+
3234
+ rejectedReasons[id || '#' + i] = adapter;
3235
+ }
3236
+
3237
+ if (!adapter) {
3238
+ const reasons = Object.entries(rejectedReasons)
3239
+ .map(([id, state]) => `adapter ${id} ` +
3240
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
3241
+ );
3242
+
3243
+ let s = length ?
3244
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
3245
+ 'as no adapter specified';
3246
+
3247
+ throw new AxiosError$1(
3248
+ `There is no suitable adapter to dispatch the request ` + s,
3249
+ 'ERR_NOT_SUPPORT'
3250
+ );
3251
+ }
3252
+
3253
+ return adapter;
3254
+ }
3255
+
3256
+ /**
3257
+ * Exports Axios adapters and utility to resolve an adapter
3258
+ */
3259
+ var adapters = {
3260
+ /**
3261
+ * Resolve an adapter from a list of adapter names or functions.
3262
+ * @type {Function}
3263
+ */
3264
+ getAdapter,
3265
+
3266
+ /**
3267
+ * Exposes all known adapters
3268
+ * @type {Object<string, Function|Object>}
3269
+ */
3270
+ adapters: knownAdapters
3271
+ };
3272
+
3273
+ /**
3274
+ * Throws a `CanceledError` if cancellation has been requested.
3275
+ *
3276
+ * @param {Object} config The config that is to be used for the request
3277
+ *
3278
+ * @returns {void}
3279
+ */
3280
+ function throwIfCancellationRequested(config) {
3281
+ if (config.cancelToken) {
3282
+ config.cancelToken.throwIfRequested();
3283
+ }
3284
+
3285
+ if (config.signal && config.signal.aborted) {
3286
+ throw new CanceledError$1(null, config);
3287
+ }
3288
+ }
3289
+
3290
+ /**
3291
+ * Dispatch a request to the server using the configured adapter.
3292
+ *
3293
+ * @param {object} config The config that is to be used for the request
3294
+ *
3295
+ * @returns {Promise} The Promise to be fulfilled
3296
+ */
3297
+ function dispatchRequest(config) {
3298
+ throwIfCancellationRequested(config);
3299
+
3300
+ config.headers = AxiosHeaders$1.from(config.headers);
3301
+
3302
+ // Transform request data
3303
+ config.data = transformData.call(
3304
+ config,
3305
+ config.transformRequest
3306
+ );
3307
+
3308
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
3309
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
3310
+ }
3311
+
3312
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
3313
+
3314
+ return adapter(config).then(function onAdapterResolution(response) {
3315
+ throwIfCancellationRequested(config);
3316
+
3317
+ // Transform response data
3318
+ response.data = transformData.call(
3319
+ config,
3320
+ config.transformResponse,
3321
+ response
3322
+ );
3323
+
3324
+ response.headers = AxiosHeaders$1.from(response.headers);
3325
+
3326
+ return response;
3327
+ }, function onAdapterRejection(reason) {
3328
+ if (!isCancel(reason)) {
3329
+ throwIfCancellationRequested(config);
3330
+
3331
+ // Transform response data
3332
+ if (reason && reason.response) {
3333
+ reason.response.data = transformData.call(
3334
+ config,
3335
+ config.transformResponse,
3336
+ reason.response
3337
+ );
3338
+ reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
3339
+ }
3340
+ }
3341
+
3342
+ return Promise.reject(reason);
3343
+ });
3344
+ }
3345
+
3346
+ const VERSION = "1.13.5";
3347
+
3348
+ const validators$1 = {};
3349
+
3350
+ // eslint-disable-next-line func-names
3351
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
3352
+ validators$1[type] = function validator(thing) {
3353
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
3354
+ };
3355
+ });
3356
+
3357
+ const deprecatedWarnings = {};
3358
+
3359
+ /**
3360
+ * Transitional option validator
3361
+ *
3362
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
3363
+ * @param {string?} version - deprecated version / removed since version
3364
+ * @param {string?} message - some message with additional info
3365
+ *
3366
+ * @returns {function}
3367
+ */
3368
+ validators$1.transitional = function transitional(validator, version, message) {
3369
+ function formatMessage(opt, desc) {
3370
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3371
+ }
3372
+
3373
+ // eslint-disable-next-line func-names
3374
+ return (value, opt, opts) => {
3375
+ if (validator === false) {
3376
+ throw new AxiosError$1(
3377
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
3378
+ AxiosError$1.ERR_DEPRECATED
3379
+ );
3380
+ }
3381
+
3382
+ if (version && !deprecatedWarnings[opt]) {
3383
+ deprecatedWarnings[opt] = true;
3384
+ // eslint-disable-next-line no-console
3385
+ console.warn(
3386
+ formatMessage(
3387
+ opt,
3388
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
3389
+ )
3390
+ );
3391
+ }
3392
+
3393
+ return validator ? validator(value, opt, opts) : true;
3394
+ };
3395
+ };
3396
+
3397
+ validators$1.spelling = function spelling(correctSpelling) {
3398
+ return (value, opt) => {
3399
+ // eslint-disable-next-line no-console
3400
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
3401
+ return true;
3402
+ }
3403
+ };
3404
+
3405
+ /**
3406
+ * Assert object's properties type
3407
+ *
3408
+ * @param {object} options
3409
+ * @param {object} schema
3410
+ * @param {boolean?} allowUnknown
3411
+ *
3412
+ * @returns {object}
3413
+ */
3414
+
3415
+ function assertOptions(options, schema, allowUnknown) {
3416
+ if (typeof options !== 'object') {
3417
+ throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
3418
+ }
3419
+ const keys = Object.keys(options);
3420
+ let i = keys.length;
3421
+ while (i-- > 0) {
3422
+ const opt = keys[i];
3423
+ const validator = schema[opt];
3424
+ if (validator) {
3425
+ const value = options[opt];
3426
+ const result = value === undefined || validator(value, opt, options);
3427
+ if (result !== true) {
3428
+ throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
3429
+ }
3430
+ continue;
3431
+ }
3432
+ if (allowUnknown !== true) {
3433
+ throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
3434
+ }
3435
+ }
3436
+ }
3437
+
3438
+ var validator = {
3439
+ assertOptions,
3440
+ validators: validators$1
3441
+ };
3442
+
3443
+ const validators = validator.validators;
3444
+
3445
+ /**
3446
+ * Create a new instance of Axios
3447
+ *
3448
+ * @param {Object} instanceConfig The default config for the instance
3449
+ *
3450
+ * @return {Axios} A new instance of Axios
3451
+ */
3452
+ class Axios {
3453
+ constructor(instanceConfig) {
3454
+ this.defaults = instanceConfig || {};
3455
+ this.interceptors = {
3456
+ request: new InterceptorManager$1(),
3457
+ response: new InterceptorManager$1()
3458
+ };
3459
+ }
3460
+
3461
+ /**
3462
+ * Dispatch a request
3463
+ *
3464
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3465
+ * @param {?Object} config
3466
+ *
3467
+ * @returns {Promise} The Promise to be fulfilled
3468
+ */
3469
+ async request(configOrUrl, config) {
3470
+ try {
3471
+ return await this._request(configOrUrl, config);
3472
+ } catch (err) {
3473
+ if (err instanceof Error) {
3474
+ let dummy = {};
3475
+
3476
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
3477
+
3478
+ // slice off the Error: ... line
3479
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
3480
+ try {
3481
+ if (!err.stack) {
3482
+ err.stack = stack;
3483
+ // match without the 2 top stack lines
3484
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
3485
+ err.stack += '\n' + stack;
3486
+ }
3487
+ } catch (e) {
3488
+ // ignore the case where "stack" is an un-writable property
3489
+ }
3490
+ }
3491
+
3492
+ throw err;
3493
+ }
3494
+ }
3495
+
3496
+ _request(configOrUrl, config) {
3497
+ /*eslint no-param-reassign:0*/
3498
+ // Allow for axios('example/url'[, config]) a la fetch API
3499
+ if (typeof configOrUrl === 'string') {
3500
+ config = config || {};
3501
+ config.url = configOrUrl;
3502
+ } else {
3503
+ config = configOrUrl || {};
3504
+ }
3505
+
3506
+ config = mergeConfig(this.defaults, config);
3507
+
3508
+ const {transitional, paramsSerializer, headers} = config;
3509
+
3510
+ if (transitional !== undefined) {
3511
+ validator.assertOptions(transitional, {
3512
+ silentJSONParsing: validators.transitional(validators.boolean),
3513
+ forcedJSONParsing: validators.transitional(validators.boolean),
3514
+ clarifyTimeoutError: validators.transitional(validators.boolean),
3515
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
3516
+ }, false);
3517
+ }
3518
+
3519
+ if (paramsSerializer != null) {
3520
+ if (utils$1.isFunction(paramsSerializer)) {
3521
+ config.paramsSerializer = {
3522
+ serialize: paramsSerializer
3523
+ };
3524
+ } else {
3525
+ validator.assertOptions(paramsSerializer, {
3526
+ encode: validators.function,
3527
+ serialize: validators.function
3528
+ }, true);
3529
+ }
3530
+ }
3531
+
3532
+ // Set config.allowAbsoluteUrls
3533
+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
3534
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
3535
+ } else {
3536
+ config.allowAbsoluteUrls = true;
3537
+ }
3538
+
3539
+ validator.assertOptions(config, {
3540
+ baseUrl: validators.spelling('baseURL'),
3541
+ withXsrfToken: validators.spelling('withXSRFToken')
3542
+ }, true);
3543
+
3544
+ // Set config.method
3545
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3546
+
3547
+ // Flatten headers
3548
+ let contextHeaders = headers && utils$1.merge(
3549
+ headers.common,
3550
+ headers[config.method]
3551
+ );
3552
+
3553
+ headers && utils$1.forEach(
3554
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
3555
+ (method) => {
3556
+ delete headers[method];
3557
+ }
3558
+ );
3559
+
3560
+ config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
3561
+
3562
+ // filter out skipped interceptors
3563
+ const requestInterceptorChain = [];
3564
+ let synchronousRequestInterceptors = true;
3565
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
3566
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
3567
+ return;
3568
+ }
3569
+
3570
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
3571
+
3572
+ const transitional = config.transitional || transitionalDefaults;
3573
+ const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
3574
+
3575
+ if (legacyInterceptorReqResOrdering) {
3576
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3577
+ } else {
3578
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3579
+ }
3580
+ });
3581
+
3582
+ const responseInterceptorChain = [];
3583
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
3584
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3585
+ });
3586
+
3587
+ let promise;
3588
+ let i = 0;
3589
+ let len;
3590
+
3591
+ if (!synchronousRequestInterceptors) {
3592
+ const chain = [dispatchRequest.bind(this), undefined];
3593
+ chain.unshift(...requestInterceptorChain);
3594
+ chain.push(...responseInterceptorChain);
3595
+ len = chain.length;
3596
+
3597
+ promise = Promise.resolve(config);
3598
+
3599
+ while (i < len) {
3600
+ promise = promise.then(chain[i++], chain[i++]);
3601
+ }
3602
+
3603
+ return promise;
3604
+ }
3605
+
3606
+ len = requestInterceptorChain.length;
3607
+
3608
+ let newConfig = config;
3609
+
3610
+ while (i < len) {
3611
+ const onFulfilled = requestInterceptorChain[i++];
3612
+ const onRejected = requestInterceptorChain[i++];
3613
+ try {
3614
+ newConfig = onFulfilled(newConfig);
3615
+ } catch (error) {
3616
+ onRejected.call(this, error);
3617
+ break;
3618
+ }
3619
+ }
3620
+
3621
+ try {
3622
+ promise = dispatchRequest.call(this, newConfig);
3623
+ } catch (error) {
3624
+ return Promise.reject(error);
3625
+ }
3626
+
3627
+ i = 0;
3628
+ len = responseInterceptorChain.length;
3629
+
3630
+ while (i < len) {
3631
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
3632
+ }
3633
+
3634
+ return promise;
3635
+ }
3636
+
3637
+ getUri(config) {
3638
+ config = mergeConfig(this.defaults, config);
3639
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
3640
+ return buildURL(fullPath, config.params, config.paramsSerializer);
3641
+ }
3642
+ }
3643
+
3644
+ // Provide aliases for supported request methods
3645
+ utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3646
+ /*eslint func-names:0*/
3647
+ Axios.prototype[method] = function(url, config) {
3648
+ return this.request(mergeConfig(config || {}, {
3649
+ method,
3650
+ url,
3651
+ data: (config || {}).data
3652
+ }));
3653
+ };
3654
+ });
3655
+
3656
+ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3657
+ /*eslint func-names:0*/
3658
+
3659
+ function generateHTTPMethod(isForm) {
3660
+ return function httpMethod(url, data, config) {
3661
+ return this.request(mergeConfig(config || {}, {
3662
+ method,
3663
+ headers: isForm ? {
3664
+ 'Content-Type': 'multipart/form-data'
3665
+ } : {},
3666
+ url,
3667
+ data
3668
+ }));
3669
+ };
3670
+ }
3671
+
3672
+ Axios.prototype[method] = generateHTTPMethod();
3673
+
3674
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
3675
+ });
3676
+
3677
+ var Axios$1 = Axios;
3678
+
3679
+ /**
3680
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
3681
+ *
3682
+ * @param {Function} executor The executor function.
3683
+ *
3684
+ * @returns {CancelToken}
3685
+ */
3686
+ class CancelToken {
3687
+ constructor(executor) {
3688
+ if (typeof executor !== 'function') {
3689
+ throw new TypeError('executor must be a function.');
3690
+ }
3691
+
3692
+ let resolvePromise;
3693
+
3694
+ this.promise = new Promise(function promiseExecutor(resolve) {
3695
+ resolvePromise = resolve;
3696
+ });
3697
+
3698
+ const token = this;
3699
+
3700
+ // eslint-disable-next-line func-names
3701
+ this.promise.then(cancel => {
3702
+ if (!token._listeners) return;
3703
+
3704
+ let i = token._listeners.length;
3705
+
3706
+ while (i-- > 0) {
3707
+ token._listeners[i](cancel);
3708
+ }
3709
+ token._listeners = null;
3710
+ });
3711
+
3712
+ // eslint-disable-next-line func-names
3713
+ this.promise.then = onfulfilled => {
3714
+ let _resolve;
3715
+ // eslint-disable-next-line func-names
3716
+ const promise = new Promise(resolve => {
3717
+ token.subscribe(resolve);
3718
+ _resolve = resolve;
3719
+ }).then(onfulfilled);
3720
+
3721
+ promise.cancel = function reject() {
3722
+ token.unsubscribe(_resolve);
3723
+ };
3724
+
3725
+ return promise;
3726
+ };
3727
+
3728
+ executor(function cancel(message, config, request) {
3729
+ if (token.reason) {
3730
+ // Cancellation has already been requested
3731
+ return;
3732
+ }
3733
+
3734
+ token.reason = new CanceledError$1(message, config, request);
3735
+ resolvePromise(token.reason);
3736
+ });
3737
+ }
3738
+
3739
+ /**
3740
+ * Throws a `CanceledError` if cancellation has been requested.
3741
+ */
3742
+ throwIfRequested() {
3743
+ if (this.reason) {
3744
+ throw this.reason;
3745
+ }
3746
+ }
3747
+
3748
+ /**
3749
+ * Subscribe to the cancel signal
3750
+ */
3751
+
3752
+ subscribe(listener) {
3753
+ if (this.reason) {
3754
+ listener(this.reason);
3755
+ return;
3756
+ }
3757
+
3758
+ if (this._listeners) {
3759
+ this._listeners.push(listener);
3760
+ } else {
3761
+ this._listeners = [listener];
3762
+ }
3763
+ }
3764
+
3765
+ /**
3766
+ * Unsubscribe from the cancel signal
3767
+ */
3768
+
3769
+ unsubscribe(listener) {
3770
+ if (!this._listeners) {
3771
+ return;
3772
+ }
3773
+ const index = this._listeners.indexOf(listener);
3774
+ if (index !== -1) {
3775
+ this._listeners.splice(index, 1);
3776
+ }
3777
+ }
3778
+
3779
+ toAbortSignal() {
3780
+ const controller = new AbortController();
3781
+
3782
+ const abort = (err) => {
3783
+ controller.abort(err);
3784
+ };
3785
+
3786
+ this.subscribe(abort);
3787
+
3788
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
3789
+
3790
+ return controller.signal;
3791
+ }
3792
+
3793
+ /**
3794
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3795
+ * cancels the `CancelToken`.
3796
+ */
3797
+ static source() {
3798
+ let cancel;
3799
+ const token = new CancelToken(function executor(c) {
3800
+ cancel = c;
3801
+ });
3802
+ return {
3803
+ token,
3804
+ cancel
3805
+ };
3806
+ }
3807
+ }
3808
+
3809
+ var CancelToken$1 = CancelToken;
3810
+
3811
+ /**
3812
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
3813
+ *
3814
+ * Common use case would be to use `Function.prototype.apply`.
3815
+ *
3816
+ * ```js
3817
+ * function f(x, y, z) {}
3818
+ * const args = [1, 2, 3];
3819
+ * f.apply(null, args);
3820
+ * ```
3821
+ *
3822
+ * With `spread` this example can be re-written.
3823
+ *
3824
+ * ```js
3825
+ * spread(function(x, y, z) {})([1, 2, 3]);
3826
+ * ```
3827
+ *
3828
+ * @param {Function} callback
3829
+ *
3830
+ * @returns {Function}
3831
+ */
3832
+ function spread(callback) {
3833
+ return function wrap(arr) {
3834
+ return callback.apply(null, arr);
3835
+ };
3836
+ }
3837
+
3838
+ /**
3839
+ * Determines whether the payload is an error thrown by Axios
3840
+ *
3841
+ * @param {*} payload The value to test
3842
+ *
3843
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3844
+ */
3845
+ function isAxiosError(payload) {
3846
+ return utils$1.isObject(payload) && (payload.isAxiosError === true);
3847
+ }
3848
+
3849
+ const HttpStatusCode = {
3850
+ Continue: 100,
3851
+ SwitchingProtocols: 101,
3852
+ Processing: 102,
3853
+ EarlyHints: 103,
3854
+ Ok: 200,
3855
+ Created: 201,
3856
+ Accepted: 202,
3857
+ NonAuthoritativeInformation: 203,
3858
+ NoContent: 204,
3859
+ ResetContent: 205,
3860
+ PartialContent: 206,
3861
+ MultiStatus: 207,
3862
+ AlreadyReported: 208,
3863
+ ImUsed: 226,
3864
+ MultipleChoices: 300,
3865
+ MovedPermanently: 301,
3866
+ Found: 302,
3867
+ SeeOther: 303,
3868
+ NotModified: 304,
3869
+ UseProxy: 305,
3870
+ Unused: 306,
3871
+ TemporaryRedirect: 307,
3872
+ PermanentRedirect: 308,
3873
+ BadRequest: 400,
3874
+ Unauthorized: 401,
3875
+ PaymentRequired: 402,
3876
+ Forbidden: 403,
3877
+ NotFound: 404,
3878
+ MethodNotAllowed: 405,
3879
+ NotAcceptable: 406,
3880
+ ProxyAuthenticationRequired: 407,
3881
+ RequestTimeout: 408,
3882
+ Conflict: 409,
3883
+ Gone: 410,
3884
+ LengthRequired: 411,
3885
+ PreconditionFailed: 412,
3886
+ PayloadTooLarge: 413,
3887
+ UriTooLong: 414,
3888
+ UnsupportedMediaType: 415,
3889
+ RangeNotSatisfiable: 416,
3890
+ ExpectationFailed: 417,
3891
+ ImATeapot: 418,
3892
+ MisdirectedRequest: 421,
3893
+ UnprocessableEntity: 422,
3894
+ Locked: 423,
3895
+ FailedDependency: 424,
3896
+ TooEarly: 425,
3897
+ UpgradeRequired: 426,
3898
+ PreconditionRequired: 428,
3899
+ TooManyRequests: 429,
3900
+ RequestHeaderFieldsTooLarge: 431,
3901
+ UnavailableForLegalReasons: 451,
3902
+ InternalServerError: 500,
3903
+ NotImplemented: 501,
3904
+ BadGateway: 502,
3905
+ ServiceUnavailable: 503,
3906
+ GatewayTimeout: 504,
3907
+ HttpVersionNotSupported: 505,
3908
+ VariantAlsoNegotiates: 506,
3909
+ InsufficientStorage: 507,
3910
+ LoopDetected: 508,
3911
+ NotExtended: 510,
3912
+ NetworkAuthenticationRequired: 511,
3913
+ WebServerIsDown: 521,
3914
+ ConnectionTimedOut: 522,
3915
+ OriginIsUnreachable: 523,
3916
+ TimeoutOccurred: 524,
3917
+ SslHandshakeFailed: 525,
3918
+ InvalidSslCertificate: 526,
3919
+ };
3920
+
3921
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3922
+ HttpStatusCode[value] = key;
3923
+ });
3924
+
3925
+ var HttpStatusCode$1 = HttpStatusCode;
3926
+
3927
+ /**
3928
+ * Create an instance of Axios
3929
+ *
3930
+ * @param {Object} defaultConfig The default config for the instance
3931
+ *
3932
+ * @returns {Axios} A new instance of Axios
3933
+ */
3934
+ function createInstance(defaultConfig) {
3935
+ const context = new Axios$1(defaultConfig);
3936
+ const instance = bind(Axios$1.prototype.request, context);
3937
+
3938
+ // Copy axios.prototype to instance
3939
+ utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
3940
+
3941
+ // Copy context to instance
3942
+ utils$1.extend(instance, context, null, {allOwnKeys: true});
3943
+
3944
+ // Factory for creating new instances
3945
+ instance.create = function create(instanceConfig) {
3946
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3947
+ };
3948
+
3949
+ return instance;
3950
+ }
3951
+
3952
+ // Create the default instance to be exported
3953
+ const axios = createInstance(defaults$1);
3954
+
3955
+ // Expose Axios class to allow class inheritance
3956
+ axios.Axios = Axios$1;
3957
+
3958
+ // Expose Cancel & CancelToken
3959
+ axios.CanceledError = CanceledError$1;
3960
+ axios.CancelToken = CancelToken$1;
3961
+ axios.isCancel = isCancel;
3962
+ axios.VERSION = VERSION;
3963
+ axios.toFormData = toFormData;
3964
+
3965
+ // Expose AxiosError class
3966
+ axios.AxiosError = AxiosError$1;
3967
+
3968
+ // alias for CanceledError for backward compatibility
3969
+ axios.Cancel = axios.CanceledError;
3970
+
3971
+ // Expose all/spread
3972
+ axios.all = function all(promises) {
3973
+ return Promise.all(promises);
3974
+ };
3975
+
3976
+ axios.spread = spread;
3977
+
3978
+ // Expose isAxiosError
3979
+ axios.isAxiosError = isAxiosError;
3980
+
3981
+ // Expose mergeConfig
3982
+ axios.mergeConfig = mergeConfig;
3983
+
3984
+ axios.AxiosHeaders = AxiosHeaders$1;
3985
+
3986
+ axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
3987
+
3988
+ axios.getAdapter = adapters.getAdapter;
3989
+
3990
+ axios.HttpStatusCode = HttpStatusCode$1;
3991
+
3992
+ axios.default = axios;
3993
+
3994
+ axios_1 = axios;
3995
+
3996
+ return axios_1;
3997
+ }
3998
+
3999
+ var axiosExports = /*@__PURE__*/ requireAxios();
4000
+ var axios = /*@__PURE__*/getDefaultExportFromCjs(axiosExports);
4001
+
4002
+ // import axios from 'axios';
4003
+ // const API_BASE_URL = 'http://localhost:4000';
4004
+ // export interface FetchDesignSystemResponse {
4005
+ // variables: Record<string, any>;
4006
+ // components: Record<string, any>;
4007
+ // metadata?: {
4008
+ // name?: string;
4009
+ // version?: string;
4010
+ // lastUpdated?: string;
4011
+ // };
4012
+ // }
4013
+ // export class DesignSystemApiClient {
4014
+ // async fetchVariables(): Promise<Record<string, any>> {
4015
+ // try {
4016
+ // const response = await axios.get(`${API_BASE_URL}/variables`);
4017
+ // return response.data;
4018
+ // } catch (error) {
4019
+ // console.error('Error fetching variables:', error);
4020
+ // return {};
4021
+ // }
4022
+ // }
4023
+ // async fetchComponents(): Promise<Record<string, any>> {
4024
+ // try {
4025
+ // const response = await axios.get(`${API_BASE_URL}/components`);
4026
+ // return response.data;
4027
+ // } catch (error) {
4028
+ // console.error('Error fetching components:', error);
4029
+ // return {};
4030
+ // }
4031
+ // }
4032
+ // async fetchDesignSystem(): Promise<FetchDesignSystemResponse> {
4033
+ // const [variables, components] = await Promise.all([
4034
+ // this.fetchVariables(),
4035
+ // this.fetchComponents()
4036
+ // ]);
4037
+ // return {
4038
+ // variables,
4039
+ // components,
4040
+ // metadata: {
4041
+ // name: 'Charisol Design System',
4042
+ // lastUpdated: new Date().toISOString()
4043
+ // }
4044
+ // };
4045
+ // }
4046
+ // }
4047
+ //// new from dataaaaa
4048
+ const API_BASE_URL = 'http://localhost:4000';
4049
+ class DesignSystemApiClient {
4050
+ async fetchVariables() {
4051
+ try {
4052
+ const response = await axios.get(`${API_BASE_URL}/variables`);
4053
+ return response.data;
4054
+ }
4055
+ catch (error) {
4056
+ console.error('Error fetching variables:', error);
4057
+ return {};
4058
+ }
4059
+ }
4060
+ async fetchComponents() {
4061
+ try {
4062
+ const response = await axios.get(`${API_BASE_URL}/components`);
4063
+ return response.data;
4064
+ }
4065
+ catch (error) {
4066
+ console.error('Error fetching components:', error);
4067
+ return {};
4068
+ }
4069
+ }
4070
+ async fetchDesignSystem() {
4071
+ const [variables, components] = await Promise.all([
4072
+ this.fetchVariables(),
4073
+ this.fetchComponents()
4074
+ ]);
4075
+ return {
4076
+ variables,
4077
+ components,
4078
+ metadata: {
4079
+ name: 'Charisol Design System',
4080
+ lastUpdated: new Date().toISOString()
4081
+ }
4082
+ };
4083
+ }
4084
+ }
4085
+
4086
+ class ComponentGeneratorUtils {
4087
+ static toKebabCase(str) {
4088
+ return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
4089
+ }
4090
+ static isSVGContent(content) {
4091
+ if (!content)
4092
+ return false;
4093
+ return content.includes('<svg') && content.includes('</svg>');
4094
+ }
4095
+ static toCamelCase(str) {
4096
+ return str.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
4097
+ }
4098
+ static toPascalCase(str) {
4099
+ return str
4100
+ .replace(/(?:^\w|[A-Z]|\b\w)/g, (word) => word.toUpperCase())
4101
+ .replace(/[-_]/g, '');
4102
+ }
4103
+ static resolveTokenValue(value, variables) {
4104
+ if (!value)
4105
+ return '';
4106
+ if (value.startsWith('var(--')) {
4107
+ return value;
4108
+ }
4109
+ if (value.startsWith('--') && variables && variables[value]) {
4110
+ return `var(${value})`;
4111
+ }
4112
+ return value;
4113
+ }
4114
+ static extractPropsFromProperties(properties = {}) {
4115
+ return Object.keys(properties).map(key => this.toCamelCase(key));
4116
+ }
4117
+ }
4118
+
4119
+ class StencilComponentGenerator {
4120
+ apiClient;
4121
+ outputDir;
4122
+ stylesDir;
4123
+ componentPrefix = 'chardes';
4124
+ variables = {};
4125
+ // tagName -> className for the index
4126
+ generatedComponents = new Map();
4127
+ constructor() {
4128
+ this.apiClient = new DesignSystemApiClient();
4129
+ this.outputDir = path.join(process.cwd(), 'src', 'components', 'generated');
4130
+ this.stylesDir = path.join(process.cwd(), 'src', 'styles');
4131
+ }
4132
+ async generateAllComponents() {
4133
+ try {
4134
+ console.log('Fetching design system data...');
4135
+ const designSystem = await this.apiClient.fetchDesignSystem();
4136
+ this.variables = designSystem.variables;
4137
+ console.log('Generating design tokens CSS...');
4138
+ await this.generateDesignTokensCSS(designSystem.variables);
4139
+ console.log('Generating utility classes CSS...');
4140
+ await this.generateUtilityClassesCSS(designSystem.components, designSystem.variables);
4141
+ console.log('Generating Stencil components...');
4142
+ await this.generateComponents(designSystem.components, designSystem.variables);
4143
+ console.log('Updating component index...');
4144
+ await this.updateComponentIndex();
4145
+ console.log('All components generated successfully!');
4146
+ }
4147
+ catch (error) {
4148
+ console.error('Error generating components:', error);
4149
+ process.exit(1);
4150
+ }
4151
+ }
4152
+ // ─── Design Tokens CSS ──────────────────────────────────────────────────────
4153
+ async generateDesignTokensCSS(variables) {
4154
+ const cssLines = [':root {'];
4155
+ for (const [varName, token] of Object.entries(variables)) {
4156
+ const value = this.resolveTokenValue(token.value, variables);
4157
+ const comment = token.comment ? `\n /* ${token.comment} */` : '';
4158
+ cssLines.push(`${comment}\n ${varName}: ${value};`);
4159
+ }
4160
+ cssLines.push('}');
4161
+ if (!fs.existsSync(this.stylesDir)) {
4162
+ fs.mkdirSync(this.stylesDir, { recursive: true });
4163
+ }
4164
+ fs.writeFileSync(path.join(this.stylesDir, 'design-tokens.css'), cssLines.join('\n'));
4165
+ }
4166
+ resolveTokenValue(value, variables) {
4167
+ if (!value)
4168
+ return '';
4169
+ const varMatch = value.match(/var\(--([^)]+)\)/);
4170
+ if (varMatch) {
4171
+ const tokenName = `--${varMatch[1]}`;
4172
+ const token = variables[tokenName];
4173
+ if (token)
4174
+ return this.resolveTokenValue(token.value, variables);
4175
+ return value;
4176
+ }
4177
+ if (value.startsWith('--')) {
4178
+ const token = variables[value];
4179
+ if (token)
4180
+ return this.resolveTokenValue(token.value, variables);
4181
+ }
4182
+ const token = Object.values(variables).find(t => t.value === value);
4183
+ if (token?.unit && token.type === 'dimension' && !value.includes(token.unit)) {
4184
+ return `${value}${token.unit}`;
4185
+ }
4186
+ return value;
4187
+ }
4188
+ // ─── Utility Classes CSS ────────────────────────────────────────────────────
4189
+ async generateUtilityClassesCSS(components, variables) {
4190
+ const allUtilityClasses = this.extractAllUtilityClassesFromComponents(components);
4191
+ const cssLines = [
4192
+ '/* Auto-generated Utility Classes from Design System */',
4193
+ '/* DO NOT EDIT - Generated from your design system API */',
4194
+ '',
4195
+ ':host, :root {',
4196
+ ' display: block;',
4197
+ ' box-sizing: border-box;',
4198
+ '}',
4199
+ '',
4200
+ '*, *::before, *::after {',
4201
+ ' box-sizing: inherit;',
4202
+ '}',
4203
+ ''
4204
+ ];
4205
+ const escapeClassName = (className) => {
4206
+ if (!className)
4207
+ return className;
4208
+ let escaped = className.replace(/\//g, '\\/');
4209
+ escaped = escaped.replace(/[!#$%&()*+,.<=>?@[\]^`{|}~]/g, (match) => {
4210
+ if (match === '-' || match === '_')
4211
+ return match;
4212
+ return '\\' + match;
4213
+ });
4214
+ return escaped;
4215
+ };
4216
+ const getTokenValue = (tokenName, defaultValue) => {
4217
+ const token = variables[tokenName];
4218
+ if (!token)
4219
+ return defaultValue;
4220
+ let value = token.value;
4221
+ if (value.startsWith('--'))
4222
+ return `var(${value})`;
4223
+ if (token.unit && token.type === 'dimension' && !value.includes(token.unit))
4224
+ value = `${value}${token.unit}`;
4225
+ return `var(${tokenName}, ${value})`;
4226
+ };
4227
+ allUtilityClasses.forEach(className => {
4228
+ if (!className || className.includes(':'))
4229
+ return;
4230
+ const cssProperties = this.getUtilityClassProperties(className, variables, getTokenValue);
4231
+ if (cssProperties.length > 0) {
4232
+ const escapedClassName = escapeClassName(className);
4233
+ cssLines.push(`.${escapedClassName} {`);
4234
+ cssProperties.forEach(prop => cssLines.push(` ${prop};`));
4235
+ cssLines.push('}');
4236
+ cssLines.push('');
4237
+ }
4238
+ });
4239
+ const stateClasses = this.extractStateClassesFromComponents(components);
4240
+ stateClasses.forEach(stateClass => {
4241
+ const [state, baseClass] = stateClass.split(':');
4242
+ const cssProperties = this.getUtilityClassProperties(baseClass, variables, getTokenValue);
4243
+ if (cssProperties.length > 0) {
4244
+ const escapedBaseClass = escapeClassName(baseClass);
4245
+ cssLines.push(`.${escapedBaseClass}:${state} {`);
4246
+ cssProperties.forEach(prop => cssLines.push(` ${prop};`));
4247
+ cssLines.push('}');
4248
+ cssLines.push('');
4249
+ }
4250
+ });
4251
+ fs.writeFileSync(path.join(this.stylesDir, 'utilities.css'), cssLines.join('\n'));
4252
+ }
4253
+ extractAllUtilityClassesFromComponents(components) {
4254
+ const classes = new Set();
4255
+ const walk = (node) => {
4256
+ if (node.linkedElement?.attributes?.class) {
4257
+ this.resolveClassReferences(node.linkedElement.attributes.class)
4258
+ .split(' ')
4259
+ .forEach(cls => {
4260
+ if (cls && !cls.includes(':'))
4261
+ classes.add(cls);
4262
+ });
4263
+ }
4264
+ if (node.children)
4265
+ Object.values(node.children).forEach(child => walk(child));
4266
+ };
4267
+ Object.values(components).forEach(component => walk(component));
4268
+ return classes;
4269
+ }
4270
+ extractStateClassesFromComponents(components) {
4271
+ const stateClasses = new Set();
4272
+ const walk = (node) => {
4273
+ if (node.linkedElement?.attributes?.class) {
4274
+ this.resolveClassReferences(node.linkedElement.attributes.class)
4275
+ .split(' ')
4276
+ .forEach(cls => {
4277
+ if (cls.includes(':'))
4278
+ stateClasses.add(cls);
4279
+ });
4280
+ }
4281
+ if (node.children)
4282
+ Object.values(node.children).forEach(child => walk(child));
4283
+ };
4284
+ Object.values(components).forEach(component => walk(component));
4285
+ return stateClasses;
4286
+ }
4287
+ resolveClassReferences(classString) {
4288
+ if (!classString)
4289
+ return '';
4290
+ const parts = classString.split(' ').filter(p => p.trim());
4291
+ const resolvedParts = parts.map(part => {
4292
+ const varMatch = part.match(/var\(--([^)]+)\)/);
4293
+ if (varMatch) {
4294
+ const tokenName = `--${varMatch[1]}`;
4295
+ const token = this.variables[tokenName];
4296
+ if (token) {
4297
+ if (token.value.startsWith('var(--') || token.value.startsWith('--'))
4298
+ return this.resolveClassReferences(token.value);
4299
+ return token.value;
4300
+ }
4301
+ return varMatch[1].replace(/^--/, '');
4302
+ }
4303
+ if (part.startsWith('--')) {
4304
+ const token = this.variables[part];
4305
+ if (token) {
4306
+ if (token.value.startsWith('var(--') || token.value.startsWith('--'))
4307
+ return this.resolveClassReferences(token.value);
4308
+ return token.value;
4309
+ }
4310
+ return part.replace(/^--/, '');
4311
+ }
4312
+ return part;
4313
+ });
4314
+ return resolvedParts.filter(p => p && p.trim()).join(' ');
4315
+ }
4316
+ getUtilityClassProperties(className, variables, getTokenValue) {
4317
+ const utilityMap = {
4318
+ 'flex': () => ['display: flex'],
4319
+ 'flex-1': () => ['flex: 1 1 0%'],
4320
+ 'flex-shrink-0': () => ['flex-shrink: 0'],
4321
+ 'flex-col': () => ['flex-direction: column'],
4322
+ 'items-center': () => ['align-items: center'],
4323
+ 'items-start': () => ['align-items: flex-start'],
4324
+ 'justify-between': () => ['justify-content: space-between'],
4325
+ 'justify-center': () => ['justify-content: center'],
4326
+ 'w-full': () => [`width: ${getTokenValue('--width', '100%')}`],
4327
+ 'h-full': () => [`height: ${getTokenValue('--height', '100%')}`],
4328
+ 'max-w-md': () => [`max-width: ${getTokenValue('--max-width', '300rem')}`],
4329
+ 'mx-auto': () => ['margin-left: auto', 'margin-right: auto'],
4330
+ 'overflow-hidden': () => ['overflow: hidden'],
4331
+ 'object-cover': () => ['object-fit: cover'],
4332
+ 'relative': () => ['position: relative'],
4333
+ 'absolute': () => ['position: absolute'],
4334
+ 'fixed': () => ['position: fixed'],
4335
+ 'inset-0': () => ['top: 0', 'right: 0', 'bottom: 0', 'left: 0'],
4336
+ 'top-0': () => ['top: 0'],
4337
+ 'left-0': () => ['left: 0'],
4338
+ 'top-1/2': () => ['top: 50%'],
4339
+ 'left-1/2': () => ['left: 50%'],
4340
+ '-translate-x-1/2': () => ['transform: translateX(-50%)'],
4341
+ '-translate-y-1/2': () => ['transform: translateY(-50%)'],
4342
+ 'grid': () => ['display: grid'],
4343
+ 'grid-cols-2': () => ['grid-template-columns: repeat(2, minmax(0, 1fr))'],
4344
+ 'p-1': () => [`padding: ${getTokenValue('--spacing-1', '0.25rem')}`],
4345
+ 'p-2': () => [`padding: ${getTokenValue('--spacing-2', '0.5rem')}`],
4346
+ 'p-4': () => [`padding: ${getTokenValue('--spacing-4', '1rem')}`],
4347
+ 'p-6': () => [`padding: ${getTokenValue('--spacing-6', '2.5rem')}`],
4348
+ 'px-2': () => [`padding-left: ${getTokenValue('--spacing-2', '0.5rem')}`, `padding-right: ${getTokenValue('--spacing-2', '0.5rem')}`],
4349
+ 'px-3': () => [`padding-left: ${getTokenValue('--spacing-3', '0.75rem')}`, `padding-right: ${getTokenValue('--spacing-3', '0.75rem')}`],
4350
+ 'px-4': () => [`padding-left: ${getTokenValue('--spacing-4', '1rem')}`, `padding-right: ${getTokenValue('--spacing-4', '1rem')}`],
4351
+ 'px-6': () => [`padding-left: ${getTokenValue('--spacing-6', '2.5rem')}`, `padding-right: ${getTokenValue('--spacing-6', '2.5rem')}`],
4352
+ 'py-1': () => [`padding-top: ${getTokenValue('--spacing-1', '0.25rem')}`, `padding-bottom: ${getTokenValue('--spacing-1', '0.25rem')}`],
4353
+ 'py-2': () => [`padding-top: ${getTokenValue('--spacing-2', '0.5rem')}`, `padding-bottom: ${getTokenValue('--spacing-2', '0.5rem')}`],
4354
+ 'py-3': () => [`padding-top: ${getTokenValue('--spacing-3', '0.75rem')}`, `padding-bottom: ${getTokenValue('--spacing-3', '0.75rem')}`],
4355
+ 'py-4': () => [`padding-top: ${getTokenValue('--spacing-4', '1rem')}`, `padding-bottom: ${getTokenValue('--spacing-4', '1rem')}`],
4356
+ 'py-6': () => [`padding-top: ${getTokenValue('--spacing-6', '2.5rem')}`, `padding-bottom: ${getTokenValue('--spacing-6', '2.5rem')}`],
4357
+ 'pb-6': () => [`padding-bottom: ${getTokenValue('--spacing-6', '2.5rem')}`],
4358
+ 'mt-1': () => [`margin-top: ${getTokenValue('--spacing-1', '0.25rem')}`],
4359
+ 'mt-6': () => [`margin-top: ${getTokenValue('--spacing-6', '2.5rem')}`],
4360
+ 'mb-1': () => [`margin-bottom: ${getTokenValue('--spacing-1', '0.25rem')}`],
4361
+ 'mb-2': () => [`margin-bottom: ${getTokenValue('--spacing-2', '0.5rem')}`],
4362
+ 'mb-3': () => [`margin-bottom: ${getTokenValue('--spacing-3', '0.75rem')}`],
4363
+ 'ml-3': () => [`margin-left: ${getTokenValue('--spacing-3', '0.75rem')}`],
4364
+ 'pl-12': () => ['padding-left: 3rem'],
4365
+ 'space-x-2': () => [`> * + * { margin-left: ${getTokenValue('--spacing-2', '0.5rem')}; }`],
4366
+ 'space-x-3': () => [`> * + * { margin-left: ${getTokenValue('--spacing-3', '0.75rem')}; }`],
4367
+ 'space-x-4': () => [`> * + * { margin-left: ${getTokenValue('--spacing-4', '1rem')}; }`],
4368
+ 'space-y-2': () => [`> * + * { margin-top: ${getTokenValue('--spacing-2', '0.5rem')}; }`],
4369
+ 'space-y-4': () => [`> * + * { margin-top: ${getTokenValue('--spacing-4', '1rem')}; }`],
4370
+ 'space-y-6': () => [`> * + * { margin-top: ${getTokenValue('--spacing-6', '2.5rem')}; }`],
4371
+ 'w-3': () => ['width: 0.75rem'],
4372
+ 'h-3': () => ['height: 0.75rem'],
4373
+ 'w-4': () => ['width: 1rem'],
4374
+ 'h-4': () => ['height: 1rem'],
4375
+ 'w-5': () => ['width: 1.25rem'],
4376
+ 'h-5': () => ['height: 1.25rem'],
4377
+ 'w-6': () => ['width: 1.5rem'],
4378
+ 'h-6': () => ['height: 1.5rem'],
4379
+ 'w-8': () => [`width: ${getTokenValue('--spacing-8', '2rem')}`],
4380
+ 'h-8': () => [`height: ${getTokenValue('--spacing-8', '2rem')}`],
4381
+ 'w-12': () => [`width: ${getTokenValue('--spacing-12', '3rem')}`],
4382
+ 'h-12': () => [`height: ${getTokenValue('--spacing-12', '3rem')}`],
4383
+ 'w-14': () => [`width: ${getTokenValue('--spacing-14', '3.5rem')}`],
4384
+ 'h-14': () => [`height: ${getTokenValue('--spacing-14', '3.5rem')}`],
4385
+ 'bg-white': () => [`background-color: ${getTokenValue('--white', '#ffffff')}`],
4386
+ 'bg-black': () => [`background-color: ${getTokenValue('--black', '#000000')}`],
4387
+ 'bg-gray-50': () => [`background-color: ${getTokenValue('--gray-50', '#f9f9f9')}`],
4388
+ 'bg-gray-100': () => [`background-color: ${getTokenValue('--gray-100', '#f3f4f6')}`],
4389
+ 'bg-gray-300': () => [`background-color: ${getTokenValue('--gray-300', '#d5d8dc')}`],
4390
+ 'bg-gray-800': () => [`background-color: ${getTokenValue('--gray-800', '#122be2')}`],
4391
+ 'bg-gray-900': () => [`background-color: ${getTokenValue('--gray-900', '#f976f5')}`],
4392
+ 'bg-blue-50': () => [`background-color: ${getTokenValue('--blue-50', '#eff6ff')}`],
4393
+ 'bg-blue-600': () => [`background-color: ${getTokenValue('--blue-600', '#2563eb')}`],
4394
+ 'bg-blue-700': () => ['background-color: #1d4ed8'],
4395
+ 'bg-green-600': () => ['background-color: #16a34a'],
4396
+ 'bg-red-600': () => ['background-color: #dc2626'],
4397
+ 'bg-success-50': () => [`background-color: ${getTokenValue('--success-50', '#f0fdf4')}`],
4398
+ 'bg-warning-50': () => [`background-color: ${getTokenValue('--warning-50', '#fffbeb')}`],
4399
+ 'bg-error-50': () => [`background-color: ${getTokenValue('--error-50', '#fef2f2')}`],
4400
+ 'bg-info-50': () => [`background-color: ${getTokenValue('--info-50', '#eff6ff')}`],
4401
+ 'bg-transparent': () => ['background-color: transparent'],
4402
+ 'text-white': () => [`color: ${getTokenValue('--white', '#ffffff')}`],
4403
+ 'text-black': () => [`color: ${getTokenValue('--black', '#000000')}`],
4404
+ 'text-gray-300': () => [`color: ${getTokenValue('--gray-300', '#d5d8dc')}`],
4405
+ 'text-gray-500': () => [`color: ${getTokenValue('--gray-500', '#7af202')}`],
4406
+ 'text-gray-600': () => [`color: ${getTokenValue('--gray-600', '#4b5563')}`],
4407
+ 'text-gray-700': () => [`color: ${getTokenValue('--gray-700', '#374151')}`],
4408
+ 'text-gray-800': () => [`color: ${getTokenValue('--gray-800', '#122be2')}`],
4409
+ 'text-gray-900': () => [`color: ${getTokenValue('--gray-900', '#f976f5')}`],
4410
+ 'text-blue-600': () => [`color: ${getTokenValue('--blue-600', '#2563eb')}`],
4411
+ 'text-red-600': () => ['color: #dc2626'],
4412
+ 'text-green-600': () => ['color: #16a34a'],
4413
+ 'text-success-700': () => [`color: ${getTokenValue('--success-700', '#15803d')}`],
4414
+ 'text-warning-700': () => [`color: ${getTokenValue('--warning-700', '#b45309')}`],
4415
+ 'text-error-700': () => [`color: ${getTokenValue('--error-700', '#b91c1c')}`],
4416
+ 'text-info-700': () => [`color: ${getTokenValue('--info-700', '#1d4ed8')}`],
4417
+ 'rounded': () => [`border-radius: ${getTokenValue('--border-radius-md', '0.25rem')}`],
4418
+ 'rounded-md': () => [`border-radius: ${getTokenValue('--border-radius-md', '0.375rem')}`],
4419
+ 'rounded-lg': () => [`border-radius: ${getTokenValue('--border-radius-lg', '8px')}`],
4420
+ 'rounded-xl': () => [`border-radius: ${getTokenValue('--border-radius-xl', '2px')}`],
4421
+ 'rounded-2xl': () => [`border-radius: ${getTokenValue('--border-radius-2xl', '16px')}`],
4422
+ 'rounded-3xl': () => [`border-radius: ${getTokenValue('--border-radius-3xl', '20px')}`],
4423
+ 'rounded-full': () => [`border-radius: ${getTokenValue('--border-radius-full', '50%')}`],
4424
+ 'border': () => [`border-width: ${getTokenValue('--border-width-1', '1px')}`, `border-style: ${getTokenValue('--border-style-solid', 'solid')}`, `border-color: ${getTokenValue('--gray-200', '#e5e7eb')}`],
4425
+ 'border-2': () => ['border-width: 2px', 'border-style: solid', 'border-color: inherit'],
4426
+ 'border-b': () => [`border-bottom-width: ${getTokenValue('--border-width-1', '1px')}`, `border-bottom-style: ${getTokenValue('--border-style-solid', 'solid')}`, `border-bottom-color: ${getTokenValue('--gray-200', '#e5e7eb')}`],
4427
+ 'border-t': () => [`border-top-width: ${getTokenValue('--border-width-1', '1px')}`, `border-top-style: ${getTokenValue('--border-style-solid', 'solid')}`, `border-top-color: ${getTokenValue('--gray-200', '#e5e7eb')}`],
4428
+ 'border-solid': () => ['border-style: solid'],
4429
+ 'border-gray-200': () => [`border-color: ${getTokenValue('--gray-200', '#e5e7eb')}`],
4430
+ 'border-gray-300': () => [`border-color: ${getTokenValue('--gray-300', '#d1d5db')}`],
4431
+ 'border-gray-400': () => [`border-color: ${getTokenValue('--gray-400', '#9ca3af')}`],
4432
+ 'border-blue-600': () => [`border-color: ${getTokenValue('--blue-600', '#2563eb')}`],
4433
+ 'border-blue-700': () => ['border-color: #1d4ed8'],
4434
+ 'border-red-500': () => ['border-color: #ef4444'],
4435
+ 'border-green-600': () => ['border-color: #16a34a'],
4436
+ 'border-success-200': () => [`border-color: ${getTokenValue('--success-200', '#bbf7d0')}`],
4437
+ 'border-warning-200': () => [`border-color: ${getTokenValue('--warning-200', '#fed7aa')}`],
4438
+ 'border-error-200': () => [`border-color: ${getTokenValue('--error-200', '#fecaca')}`],
4439
+ 'border-info-200': () => [`border-color: ${getTokenValue('--info-200', '#bfdbfe')}`],
4440
+ 'font-sans': () => [`font-family: ${getTokenValue('--font-family-sans', 'Inter, system-ui, sans-serif')}`],
4441
+ 'font-mono': () => [`font-family: ${getTokenValue('--font-family-mono', 'ui-monospace, monospace')}`],
4442
+ 'font-medium': () => ['font-weight: 500'],
4443
+ 'font-semibold': () => [`font-weight: ${getTokenValue('--font-weight-semibold', '600')}`],
4444
+ 'font-bold': () => ['font-weight: 700'],
4445
+ 'text-xs': () => [`font-size: ${getTokenValue('--font-size-xs', '0.75rem')}`, 'line-height: 1rem'],
4446
+ 'text-sm': () => [`font-size: ${getTokenValue('--font-size-sm', '0.875rem')}`, 'line-height: 1.25rem'],
4447
+ 'text-base': () => [`font-size: ${getTokenValue('--font-size-base', '1rem')}`, 'line-height: 1.5rem'],
4448
+ 'text-lg': () => [`font-size: ${getTokenValue('--font-size-lg', '1.125rem')}`, 'line-height: 1.75rem'],
4449
+ 'text-xl': () => ['font-size: 1.25rem', 'line-height: 1.75rem'],
4450
+ 'leading-relaxed': () => ['line-height: 1.625'],
4451
+ 'shadow-lg': () => [`box-shadow: ${getTokenValue('--shadow-lg', '0 10px 15px -3px rgba(0,0,0,0.1)')}`],
4452
+ 'shadow-sm': () => [`box-shadow: ${getTokenValue('--shadow-sm', '0 1px 2px 0 rgba(0,0,0,0.05)')}`],
4453
+ 'shadow-soft': () => [`box-shadow: ${getTokenValue('--shadow-soft', '0 4px 20px rgba(0,0,0,0.08)')}`],
4454
+ 'shadow-subtle': () => [`box-shadow: ${getTokenValue('--shadow-subtle', '0 2px 10px rgba(0,0,0,0.04)')}`],
4455
+ 'transition-colors': () => [`transition-property: color, background-color, border-color, box-shadow`, `transition-duration: ${getTokenValue('--duration-200', '0.2s')}`, `transition-timing-function: ease-in-out`],
4456
+ 'transition-all': () => ['transition-property: all', `transition-duration: ${getTokenValue('--duration-200', '0.2s')}`, 'transition-timing-function: ease-in-out'],
4457
+ 'transition-opacity': () => ['transition-property: opacity', `transition-duration: ${getTokenValue('--duration-200', '0.2s')}`, 'transition-timing-function: ease-in-out'],
4458
+ 'duration-200': () => [`transition-duration: ${getTokenValue('--duration-200', '0.2s')}`],
4459
+ 'duration-300': () => ['transition-duration: 0.3s'],
4460
+ 'ease-out': () => ['transition-timing-function: cubic-bezier(0, 0, 0.2, 1)'],
4461
+ 'transform': () => ['transform: translateX(0) translateY(0) rotate(0) scale(1)'],
4462
+ 'cursor-pointer': () => ['cursor: pointer'],
4463
+ 'cursor-not-allowed': () => ['cursor: not-allowed'],
4464
+ 'pointer-events-none': () => ['pointer-events: none'],
4465
+ 'opacity-0': () => ['opacity: 0'],
4466
+ 'opacity-100': () => ['opacity: 1'],
4467
+ 'outline-none': () => ['outline: 2px solid transparent', 'outline-offset: 2px'],
4468
+ 'appearance-none': () => ['appearance: none'],
4469
+ 'select-none': () => ['user-select: none'],
4470
+ };
4471
+ const generator = utilityMap[className];
4472
+ return generator ? generator() : [];
4473
+ }
4474
+ // ─── Component Generation ───────────────────────────────────────────────────
4475
+ async generateComponents(components, variables) {
4476
+ if (!fs.existsSync(this.outputDir)) {
4477
+ fs.mkdirSync(this.outputDir, { recursive: true });
4478
+ }
4479
+ for (const [componentName, componentData] of Object.entries(components)) {
4480
+ await this.generateCompoundComponents(componentName, componentData, variables);
4481
+ }
4482
+ }
4483
+ async generateCompoundComponents(componentName, componentData, variables) {
4484
+ // Root: charisol-card, charisol-button, charisol-input …
4485
+ await this.generateSingleComponent(componentName, componentData, variables, true);
4486
+ // Children: tag is simply charisol-{childNodeKey}
4487
+ // e.g. child key "card-container" → charisol-card-container
4488
+ // child key "card-header" → charisol-card-header
4489
+ // No double-prefixing of the parent name.
4490
+ if (componentData.children) {
4491
+ for (const [childName, childNode] of Object.entries(componentData.children)) {
4492
+ await this.generateSubComponentsRecursive(childName, childNode, variables);
4493
+ }
4494
+ }
4495
+ }
4496
+ /**
4497
+ * Recursively generate one Stencil component per named node.
4498
+ *
4499
+ * TAG NAMING:
4500
+ * The child node key already carries its full descriptive name, e.g.
4501
+ * "card-container", "card-header", "card-header-title".
4502
+ * We just prepend the library prefix: charisol-{nodeName}.
4503
+ * This prevents the double-name bug (charisol-card-card-container).
4504
+ */
4505
+ async generateSubComponentsRecursive(nodeName, node, variables) {
4506
+ await this.generateSingleComponent(nodeName, node, variables, false);
4507
+ if (node.children) {
4508
+ for (const [childName, childNode] of Object.entries(node.children)) {
4509
+ await this.generateSubComponentsRecursive(childName, childNode, variables);
4510
+ }
4511
+ }
4512
+ }
4513
+ /**
4514
+ * Core component writer.
4515
+ *
4516
+ * PURE HTML — every component renders its subtree as real HTML elements.
4517
+ * No <charisol-*> tags anywhere in the output TSX.
4518
+ *
4519
+ * Props exposed on the root element only (text, svgIcon, src, alt, etc.)
4520
+ * so users can override defaults. Child nodes always use their design-system
4521
+ * defaults since they are rendered inline — users customise via props on the
4522
+ * parent or via customStyle/customClass on the parent.
4523
+ *
4524
+ * TEXT SAFETY — JSON.stringify handles apostrophes and quotes.
4525
+ */
4526
+ async generateSingleComponent(nodeName, node, variables, isRoot) {
4527
+ const kebabTag = `${this.componentPrefix}-${ComponentGeneratorUtils.toKebabCase(nodeName)}`;
4528
+ const pascalName = ComponentGeneratorUtils.toPascalCase(nodeName);
4529
+ const filePath = path.join(this.outputDir, `${kebabTag}.tsx`);
4530
+ const cssPath = path.join(this.outputDir, `${kebabTag}.css`);
4531
+ const tag = node.linkedElement?.htmlTag || 'div';
4532
+ const attrs = this.processAttributes(node.linkedElement?.attributes || {}, variables);
4533
+ const resolvedCls = attrs['class'] || '';
4534
+ const SELF_CLOSING = ['img', 'input', 'br', 'hr', 'meta', 'link'];
4535
+ const isSelfClosing = SELF_CLOSING.includes(tag);
4536
+ const hasChildren = !!(node.children && Object.keys(node.children).length > 0);
4537
+ const rawText = node.textContent || '';
4538
+ const hasSvg = rawText.includes('<svg');
4539
+ const hasText = !!rawText && !hasSvg;
4540
+ // Safe strings
4541
+ const safeDefaultText = hasText ? JSON.stringify(rawText) : '""';
4542
+ const safeSvgLiteral = hasSvg
4543
+ ? rawText.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$\{/g, '\\${')
4544
+ : '';
4545
+ // ── Props (on the root element of this component only) ───────────────────
4546
+ const propLines = [
4547
+ ` @Prop() customClass?: string;`,
4548
+ ` @Prop() customStyle?: string;`,
4549
+ ];
4550
+ if (hasText)
4551
+ propLines.push(` @Prop() text?: string;`);
4552
+ if (hasSvg)
4553
+ propLines.push(` @Prop() svgIcon?: string;`);
4554
+ if (tag === 'img') {
4555
+ propLines.push(` @Prop() src?: string;`);
4556
+ propLines.push(` @Prop() alt?: string;`);
4557
+ }
4558
+ if (tag === 'input') {
4559
+ propLines.push(` @Prop() type?: string;`);
4560
+ propLines.push(` @Prop() placeholder?: string;`);
4561
+ propLines.push(` @Prop() value?: string;`);
4562
+ propLines.push(` @Prop() inputId?: string;`);
4563
+ }
4564
+ if (tag === 'label')
4565
+ propLines.push(` @Prop() htmlFor?: string;`);
4566
+ if (tag === 'button') {
4567
+ propLines.push(` @Prop() btnType?: string;`);
4568
+ propLines.push(` @Prop() ariaLabel?: string;`);
4569
+ }
4570
+ // ── Children rendered as pure HTML ───────────────────────────────────────
4571
+ // Indented at level 4 (inside render → return → root element)
4572
+ const childrenHtml = hasChildren
4573
+ ? this.buildChildrenJsx(node.children, 4)
4574
+ : '';
4575
+ // ── Render body ──────────────────────────────────────────────────────────
4576
+ const classLine = ` const cls = [${JSON.stringify(resolvedCls)}, this.customClass].filter(Boolean).join(' ');`;
4577
+ const styleLine = ` const sty = this.customStyle as any || undefined;`;
4578
+ let renderReturn = '';
4579
+ if (isSelfClosing) {
4580
+ if (tag === 'img') {
4581
+ const defSrc = this.safeJsString(attrs['src'] || '');
4582
+ const defAlt = this.safeJsString(attrs['alt'] || '');
4583
+ renderReturn =
4584
+ ` <img
4585
+ class={cls}
4586
+ src={this.src || ${defSrc}}
4587
+ alt={this.alt || ${defAlt}}
4588
+ style={sty}
4589
+ />`;
4590
+ }
4591
+ else if (tag === 'input') {
4592
+ const defType = this.safeJsString(attrs['type'] || 'text');
4593
+ const defPh = this.safeJsString(attrs['placeholder'] || '');
4594
+ const defId = this.safeJsString(attrs['id'] || '');
4595
+ renderReturn =
4596
+ ` <input
4597
+ class={cls}
4598
+ type={this.type || ${defType}}
4599
+ id={this.inputId || ${defId}}
4600
+ placeholder={this.placeholder || ${defPh}}
4601
+ value={this.value}
4602
+ style={sty}
4603
+ />`;
4604
+ }
4605
+ else {
4606
+ renderReturn = ` <${tag} class={cls} style={sty} />`;
4607
+ }
4608
+ }
4609
+ else if (hasSvg) {
4610
+ // SVG holder — uses innerHTML; user overrides via svgIcon prop
4611
+ renderReturn =
4612
+ ` <${tag}
4613
+ class={cls}
4614
+ style={sty}
4615
+ innerHTML={this.svgIcon || \`${safeSvgLiteral}\`}
4616
+ />`;
4617
+ }
4618
+ else if (tag === 'label') {
4619
+ const defFor = this.safeJsString(attrs['htmlFor'] || attrs['for'] || '');
4620
+ const inner = hasText
4621
+ ? `{this.text || ${safeDefaultText}}`
4622
+ : childrenHtml;
4623
+ renderReturn =
4624
+ ` <label
4625
+ class={cls}
4626
+ htmlFor={this.htmlFor || ${defFor}}
4627
+ style={sty}
4628
+ >
4629
+ ${inner}
4630
+ </label>`;
4631
+ }
4632
+ else if (tag === 'button') {
4633
+ const defBtnType = this.safeJsString(attrs['type'] || 'button');
4634
+ const defAria = this.safeJsString(attrs['aria-label'] || '');
4635
+ const inner = hasText
4636
+ ? `{this.text || ${safeDefaultText}}`
4637
+ : childrenHtml;
4638
+ renderReturn =
4639
+ ` <button
4640
+ class={cls}
4641
+ type={this.btnType || ${defBtnType}}
4642
+ aria-label={this.ariaLabel || ${defAria}}
4643
+ style={sty}
4644
+ >
4645
+ ${inner}
4646
+ </button>`;
4647
+ }
4648
+ else {
4649
+ // div, h1, h2, h3, p, span, section, etc.
4650
+ const inner = hasText
4651
+ ? `{this.text || ${safeDefaultText}}`
4652
+ : childrenHtml;
4653
+ renderReturn =
4654
+ ` <${tag}
4655
+ class={cls}
4656
+ style={sty}
4657
+ >
4658
+ ${inner}
4659
+ </${tag}>`;
4660
+ }
4661
+ // ── Emit file ────────────────────────────────────────────────────────────
4662
+ const componentCode = `import { Component, Prop, h } from '@stencil/core';
4663
+
4664
+ /**
4665
+ * ${node.displayName || nodeName}
4666
+ * Auto-generated from Charisol Design System
4667
+ */
4668
+ @Component({
4669
+ tag: '${kebabTag}',
4670
+ styleUrl: '${kebabTag}.css',
4671
+ shadow: true,
4672
+ })
4673
+ export class ${pascalName} {
4674
+ ${propLines.join('\n')}
4675
+
4676
+ render() {
4677
+ ${classLine}
4678
+ ${styleLine}
4679
+ return (
4680
+ ${renderReturn}
4681
+ );
4682
+ }
4683
+ }
4684
+ `;
4685
+ fs.writeFileSync(cssPath, '/* Styles from global utilities.css */\n');
4686
+ fs.writeFileSync(filePath, componentCode);
4687
+ this.generatedComponents.set(kebabTag, pascalName);
4688
+ console.log(`✅ Generated: ${kebabTag}.tsx`);
4689
+ }
4690
+ /**
4691
+ * Recursively render a node tree as PURE HTML JSX.
4692
+ * No <charisol-*> tags — only real HTML elements: <div>, <span>, <button>, <img>, etc.
4693
+ *
4694
+ * Each node is rendered using its own htmlTag and resolved CSS classes.
4695
+ * SVG content is emitted via innerHTML. Text is emitted as a JSX expression.
4696
+ * Children are recursed inline.
4697
+ */
4698
+ renderNodeAsHtml(node, indentLevel) {
4699
+ const pad = ' '.repeat(indentLevel);
4700
+ const tag = node.linkedElement?.htmlTag || 'div';
4701
+ const attrs = this.processAttributes(node.linkedElement?.attributes || {}, this.variables);
4702
+ const cls = attrs['class'] || '';
4703
+ const SELF_CLOSING = ['img', 'input', 'br', 'hr', 'meta', 'link'];
4704
+ const isSC = SELF_CLOSING.includes(tag);
4705
+ const rawText = node.textContent || '';
4706
+ const hasSvg = rawText.includes('<svg');
4707
+ const hasText = !!rawText && !hasSvg;
4708
+ const hasChildren = !!(node.children && Object.keys(node.children).length > 0);
4709
+ // Build attribute string for this node's HTML tag
4710
+ const attrParts = [];
4711
+ if (cls)
4712
+ attrParts.push(`class="${cls}"`);
4713
+ if (tag === 'img') {
4714
+ if (attrs['src'])
4715
+ attrParts.push(`src="${this.escapeAttrVal(attrs['src'])}"`);
4716
+ if (attrs['alt'])
4717
+ attrParts.push(`alt="${this.escapeAttrVal(attrs['alt'])}"`);
4718
+ }
4719
+ if (tag === 'input') {
4720
+ if (attrs['type'])
4721
+ attrParts.push(`type="${this.escapeAttrVal(attrs['type'])}"`);
4722
+ if (attrs['placeholder'])
4723
+ attrParts.push(`placeholder="${this.escapeAttrVal(attrs['placeholder'])}"`);
4724
+ if (attrs['id'])
4725
+ attrParts.push(`id="${this.escapeAttrVal(attrs['id'])}"`);
4726
+ }
4727
+ if (tag === 'label') {
4728
+ const forVal = attrs['htmlFor'] || attrs['for'];
4729
+ if (forVal)
4730
+ attrParts.push(`htmlFor="${this.escapeAttrVal(forVal)}"`);
4731
+ }
4732
+ if (tag === 'button') {
4733
+ attrParts.push(`type="${this.escapeAttrVal(attrs['type'] || 'button')}"`);
4734
+ if (attrs['aria-label'])
4735
+ attrParts.push(`aria-label="${this.escapeAttrVal(attrs['aria-label'])}"`);
4736
+ }
4737
+ const attrStr = attrParts.length > 0 ? ' ' + attrParts.join(' ') : '';
4738
+ // ── Self-closing ──────────────────────────────────────────────────────────
4739
+ if (isSC) {
4740
+ return `${pad}<${tag}${attrStr} />`;
4741
+ }
4742
+ // ── SVG holder — use innerHTML ────────────────────────────────────────────
4743
+ if (hasSvg) {
4744
+ const safeSvg = rawText.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$\{/g, '\\${');
4745
+ return `${pad}<${tag}${attrStr} innerHTML={\`${safeSvg}\`} />`;
4746
+ }
4747
+ // ── Open tag ──────────────────────────────────────────────────────────────
4748
+ const lines = [];
4749
+ lines.push(`${pad}<${tag}${attrStr}>`);
4750
+ // ── Text content ──────────────────────────────────────────────────────────
4751
+ if (hasText) {
4752
+ lines.push(`${pad} {${JSON.stringify(rawText)}}`);
4753
+ }
4754
+ // ── Children ──────────────────────────────────────────────────────────────
4755
+ if (hasChildren) {
4756
+ for (const childNode of Object.values(node.children)) {
4757
+ lines.push(this.renderNodeAsHtml(childNode, indentLevel + 1));
4758
+ }
4759
+ }
4760
+ lines.push(`${pad}</${tag}>`);
4761
+ return lines.join('\n');
4762
+ }
4763
+ /**
4764
+ * Build children JSX by rendering each child node as pure HTML.
4765
+ * Called from generateSingleComponent for container nodes.
4766
+ */
4767
+ buildChildrenJsx(children, indentLevel) {
4768
+ return Object.values(children)
4769
+ .map(child => this.renderNodeAsHtml(child, indentLevel))
4770
+ .join('\n');
4771
+ }
4772
+ // ─── String helpers ──────────────────────────────────────────────────────────
4773
+ /**
4774
+ * Produce a safe JS string literal using JSON.stringify.
4775
+ * Used inside JSX expressions: src={this.src || "default"}
4776
+ */
4777
+ safeJsString(value) {
4778
+ return JSON.stringify(value);
4779
+ }
4780
+ /**
4781
+ * Escape a value for embedding inside a JSX attribute double-quoted string.
4782
+ * e.g. class="foo &amp; bar"
4783
+ */
4784
+ escapeAttrVal(value) {
4785
+ return (value || '')
4786
+ .replace(/&/g, '&amp;')
4787
+ .replace(/"/g, '&quot;');
4788
+ }
4789
+ processAttributes(attributes = {}, variables) {
4790
+ const processed = {};
4791
+ for (const [key, value] of Object.entries(attributes)) {
4792
+ if (key === 'class') {
4793
+ processed[key] = this.resolveClassReferences(value);
4794
+ }
4795
+ else if (key === 'style') {
4796
+ processed[key] = this.resolveStyleValue(value, variables);
4797
+ }
4798
+ else {
4799
+ processed[key] = this.resolveAttributeValue(value, variables);
4800
+ }
4801
+ }
4802
+ return processed;
4803
+ }
4804
+ resolveStyleValue(value, variables) {
4805
+ if (!value)
4806
+ return '';
4807
+ const varMatch = value.match(/var\(--([^)]+)\)/);
4808
+ if (varMatch) {
4809
+ const tokenName = `--${varMatch[1]}`;
4810
+ const token = variables[tokenName];
4811
+ if (token) {
4812
+ let v = token.value;
4813
+ if (token.unit && token.type === 'dimension' && !v.includes(token.unit))
4814
+ v = `${v}${token.unit}`;
4815
+ return v;
4816
+ }
4817
+ }
4818
+ return value;
4819
+ }
4820
+ resolveAttributeValue(value, variables) {
4821
+ if (!value)
4822
+ return '';
4823
+ const varMatch = value.match(/var\(--([^)]+)\)/);
4824
+ if (varMatch) {
4825
+ const tokenName = `--${varMatch[1]}`;
4826
+ const token = variables[tokenName];
4827
+ if (token)
4828
+ return token.value;
4829
+ }
4830
+ return value;
4831
+ }
4832
+ buildAttributeString(attributes) {
4833
+ return Object.entries(attributes)
4834
+ .filter(([, v]) => v && v.trim() !== '')
4835
+ .map(([k, v]) => ` ${k}="${v}"`)
4836
+ .join('');
4837
+ }
4838
+ // ─── Index ───────────────────────────────────────────────────────────────────
4839
+ async updateComponentIndex() {
4840
+ const exportLines = [];
4841
+ for (const [tagName, className] of this.generatedComponents.entries()) {
4842
+ exportLines.push(`export { ${className} } from './${tagName}';`);
4843
+ }
4844
+ const generatedIndexPath = path.join(this.outputDir, 'index.ts');
4845
+ fs.writeFileSync(generatedIndexPath, exportLines.join('\n') + '\n');
4846
+ const mainIndexPath = path.join(process.cwd(), 'src', 'components', 'index.ts');
4847
+ fs.mkdirSync(path.dirname(mainIndexPath), { recursive: true });
4848
+ fs.writeFileSync(mainIndexPath, `// Auto-generated component index\nexport * from './generated/index';\n`);
4849
+ }
4850
+ }
4851
+ if (require.main === module) {
4852
+ const generator = new StencilComponentGenerator();
4853
+ generator.generateAllComponents().catch(console.error);
4854
+ }
4855
+
4856
+ export { DesignSystemApiClient, StencilComponentGenerator };