genesys-cloud-client-auth 0.0.2-build.37 → 1.0.0-develop.3

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 (359) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +2 -2
  3. package/README.md +4 -2
  4. package/dist/asset-manifest.json +192 -163
  5. package/dist/deploy-info.json +22 -0
  6. package/dist/genesys-cloud-client-auth.browser.min.js +1 -1
  7. package/dist/index.html +1 -1
  8. package/dist/lib/cjs/version.js +1 -1
  9. package/dist/lib/es/version.js +1 -1
  10. package/dist/manifest.json +20 -0
  11. package/dist/static/css/main.045d96b0.css +2 -0
  12. package/dist/static/css/main.045d96b0.css.map +1 -0
  13. package/dist/static/js/1089.fb722233.chunk.js +2 -0
  14. package/dist/static/js/1089.fb722233.chunk.js.map +1 -0
  15. package/dist/static/js/1158.76a41325.chunk.js +2 -0
  16. package/dist/static/js/1158.76a41325.chunk.js.map +1 -0
  17. package/dist/static/js/1166.1486fbcd.chunk.js +2 -0
  18. package/dist/static/js/1166.1486fbcd.chunk.js.map +1 -0
  19. package/dist/static/js/131.3f61f67c.chunk.js +2 -0
  20. package/dist/static/js/131.3f61f67c.chunk.js.map +1 -0
  21. package/dist/static/js/1344.19a70535.chunk.js +2 -0
  22. package/dist/static/js/1344.19a70535.chunk.js.map +1 -0
  23. package/dist/static/js/1433.d57f6003.chunk.js +2 -0
  24. package/dist/static/js/1433.d57f6003.chunk.js.map +1 -0
  25. package/dist/static/js/1498.98292821.chunk.js +2 -0
  26. package/dist/static/js/1498.98292821.chunk.js.map +1 -0
  27. package/dist/static/js/1507.84125ab7.chunk.js +2 -0
  28. package/dist/static/js/1507.84125ab7.chunk.js.map +1 -0
  29. package/dist/static/js/1544.fcbc0609.chunk.js +2 -0
  30. package/dist/static/js/1544.fcbc0609.chunk.js.map +1 -0
  31. package/dist/static/js/1642.13e001a0.chunk.js +2 -0
  32. package/dist/static/js/1642.13e001a0.chunk.js.map +1 -0
  33. package/dist/static/js/1697.c1eba654.chunk.js +2 -0
  34. package/dist/static/js/1697.c1eba654.chunk.js.map +1 -0
  35. package/dist/static/js/1718.d222d0d2.chunk.js +2 -0
  36. package/dist/static/js/1718.d222d0d2.chunk.js.map +1 -0
  37. package/dist/static/js/1978.b9b0b630.chunk.js +2 -0
  38. package/dist/static/js/1978.b9b0b630.chunk.js.map +1 -0
  39. package/dist/static/js/2131.e90e6224.chunk.js +2 -0
  40. package/dist/static/js/2131.e90e6224.chunk.js.map +1 -0
  41. package/dist/static/js/2291.98b84fa5.chunk.js +2 -0
  42. package/dist/static/js/2291.98b84fa5.chunk.js.map +1 -0
  43. package/dist/static/js/2361.28c72454.chunk.js +2 -0
  44. package/dist/static/js/2361.28c72454.chunk.js.map +1 -0
  45. package/dist/static/js/2609.69b7ee3f.chunk.js +2 -0
  46. package/dist/static/js/2609.69b7ee3f.chunk.js.map +1 -0
  47. package/dist/static/js/2618.08776cf8.chunk.js +2 -0
  48. package/dist/static/js/2618.08776cf8.chunk.js.map +1 -0
  49. package/dist/static/js/2657.08f5fe94.chunk.js +2 -0
  50. package/dist/static/js/2657.08f5fe94.chunk.js.map +1 -0
  51. package/dist/static/js/2939.a53af515.chunk.js +2 -0
  52. package/dist/static/js/2939.a53af515.chunk.js.map +1 -0
  53. package/dist/static/js/2959.b68475ee.chunk.js +2 -0
  54. package/dist/static/js/2959.b68475ee.chunk.js.map +1 -0
  55. package/dist/static/js/3183.0483907e.chunk.js +2 -0
  56. package/dist/static/js/3183.0483907e.chunk.js.map +1 -0
  57. package/dist/static/js/3184.b5c03e4a.chunk.js +2 -0
  58. package/dist/static/js/3184.b5c03e4a.chunk.js.map +1 -0
  59. package/dist/static/js/3326.58fe8ed8.chunk.js +2 -0
  60. package/dist/static/js/3326.58fe8ed8.chunk.js.map +1 -0
  61. package/dist/static/js/3431.330e6907.chunk.js +2 -0
  62. package/dist/static/js/3431.330e6907.chunk.js.map +1 -0
  63. package/dist/static/js/3466.d53f9938.chunk.js +2 -0
  64. package/dist/static/js/3466.d53f9938.chunk.js.map +1 -0
  65. package/dist/static/js/3534.ee2022f0.chunk.js +2 -0
  66. package/dist/static/js/3534.ee2022f0.chunk.js.map +1 -0
  67. package/dist/static/js/3649.47036a0d.chunk.js +2 -0
  68. package/dist/static/js/3649.47036a0d.chunk.js.map +1 -0
  69. package/dist/static/js/3821.dbe9ef88.chunk.js +2 -0
  70. package/dist/static/js/3821.dbe9ef88.chunk.js.map +1 -0
  71. package/dist/static/js/3982.1668cd90.chunk.js +2 -0
  72. package/dist/static/js/3982.1668cd90.chunk.js.map +1 -0
  73. package/dist/static/js/4173.64f75901.chunk.js +2 -0
  74. package/dist/static/js/4173.64f75901.chunk.js.map +1 -0
  75. package/dist/static/js/4192.35098ff0.chunk.js +2 -0
  76. package/dist/static/js/4192.35098ff0.chunk.js.map +1 -0
  77. package/dist/static/js/4202.6a101f57.chunk.js +2 -0
  78. package/dist/static/js/4202.6a101f57.chunk.js.map +1 -0
  79. package/dist/static/js/4242.625e5aa9.chunk.js +2 -0
  80. package/dist/static/js/4242.625e5aa9.chunk.js.map +1 -0
  81. package/dist/static/js/4248.d69f59fd.chunk.js +2 -0
  82. package/dist/static/js/4248.d69f59fd.chunk.js.map +1 -0
  83. package/dist/static/js/4618.2b652181.chunk.js +2 -0
  84. package/dist/static/js/4618.2b652181.chunk.js.map +1 -0
  85. package/dist/static/js/4774.03877b96.chunk.js +2 -0
  86. package/dist/static/js/4774.03877b96.chunk.js.map +1 -0
  87. package/dist/static/js/4777.07210d5d.chunk.js +2 -0
  88. package/dist/static/js/4777.07210d5d.chunk.js.map +1 -0
  89. package/dist/static/js/4826.f3719274.chunk.js +2 -0
  90. package/dist/static/js/4826.f3719274.chunk.js.map +1 -0
  91. package/dist/static/js/501.3f46836b.chunk.js +2 -0
  92. package/dist/static/js/501.3f46836b.chunk.js.map +1 -0
  93. package/dist/static/js/5122.046ab4b7.chunk.js +2 -0
  94. package/dist/static/js/5122.046ab4b7.chunk.js.map +1 -0
  95. package/dist/static/js/5160.465b3a5d.chunk.js +2 -0
  96. package/dist/static/js/5160.465b3a5d.chunk.js.map +1 -0
  97. package/dist/static/js/546.40835589.chunk.js +2 -0
  98. package/dist/static/js/546.40835589.chunk.js.map +1 -0
  99. package/dist/static/js/5503.cc3b1fda.chunk.js +2 -0
  100. package/dist/static/js/5503.cc3b1fda.chunk.js.map +1 -0
  101. package/dist/static/js/5572.565c5d80.chunk.js +2 -0
  102. package/dist/static/js/5572.565c5d80.chunk.js.map +1 -0
  103. package/dist/static/js/599.a5cb72b5.chunk.js +2 -0
  104. package/dist/static/js/599.a5cb72b5.chunk.js.map +1 -0
  105. package/dist/static/js/6033.174d7635.chunk.js +2 -0
  106. package/dist/static/js/6033.174d7635.chunk.js.map +1 -0
  107. package/dist/static/js/6069.5c81dae7.chunk.js +2 -0
  108. package/dist/static/js/6069.5c81dae7.chunk.js.map +1 -0
  109. package/dist/static/js/6151.c5cf5a85.chunk.js +2 -0
  110. package/dist/static/js/6151.c5cf5a85.chunk.js.map +1 -0
  111. package/dist/static/js/6237.a9b576a4.chunk.js +2 -0
  112. package/dist/static/js/6237.a9b576a4.chunk.js.map +1 -0
  113. package/dist/static/js/6326.156b4248.chunk.js +2 -0
  114. package/dist/static/js/6326.156b4248.chunk.js.map +1 -0
  115. package/dist/static/js/6474.03947fd7.chunk.js +2 -0
  116. package/dist/static/js/6474.03947fd7.chunk.js.map +1 -0
  117. package/dist/static/js/6571.301eecac.chunk.js +2 -0
  118. package/dist/static/js/6571.301eecac.chunk.js.map +1 -0
  119. package/dist/static/js/6632.0676b230.chunk.js +2 -0
  120. package/dist/static/js/6632.0676b230.chunk.js.map +1 -0
  121. package/dist/static/js/6769.fcdb896c.chunk.js +2 -0
  122. package/dist/static/js/6769.fcdb896c.chunk.js.map +1 -0
  123. package/dist/static/js/6982.60585ab3.chunk.js +2 -0
  124. package/dist/static/js/6982.60585ab3.chunk.js.map +1 -0
  125. package/dist/static/js/7076.37939eb2.chunk.js +2 -0
  126. package/dist/static/js/7076.37939eb2.chunk.js.map +1 -0
  127. package/dist/static/js/7120.0b0ef311.chunk.js +3 -0
  128. package/dist/static/js/{20.2be3997f.chunk.js.LICENSE.txt → 7120.0b0ef311.chunk.js.LICENSE.txt} +1 -1
  129. package/dist/static/js/7120.0b0ef311.chunk.js.map +1 -0
  130. package/dist/static/js/7150.840301cb.chunk.js +2 -0
  131. package/dist/static/js/7150.840301cb.chunk.js.map +1 -0
  132. package/dist/static/js/7153.250bf93b.chunk.js +2 -0
  133. package/dist/static/js/7153.250bf93b.chunk.js.map +1 -0
  134. package/dist/static/js/7307.8656856b.chunk.js +2 -0
  135. package/dist/static/js/7307.8656856b.chunk.js.map +1 -0
  136. package/dist/static/js/742.64af67d8.chunk.js +2 -0
  137. package/dist/static/js/742.64af67d8.chunk.js.map +1 -0
  138. package/dist/static/js/754.b1c84197.chunk.js +2 -0
  139. package/dist/static/js/754.b1c84197.chunk.js.map +1 -0
  140. package/dist/static/js/7610.97a0a5b5.chunk.js +2 -0
  141. package/dist/static/js/7610.97a0a5b5.chunk.js.map +1 -0
  142. package/dist/static/js/765.2a78cffe.chunk.js +2 -0
  143. package/dist/static/js/765.2a78cffe.chunk.js.map +1 -0
  144. package/dist/static/js/7803.bfe8c40f.chunk.js +2 -0
  145. package/dist/static/js/7803.bfe8c40f.chunk.js.map +1 -0
  146. package/dist/static/js/7895.629e8650.chunk.js +2 -0
  147. package/dist/static/js/7895.629e8650.chunk.js.map +1 -0
  148. package/dist/static/js/8025.ecb1d6bc.chunk.js +2 -0
  149. package/dist/static/js/8025.ecb1d6bc.chunk.js.map +1 -0
  150. package/dist/static/js/8086.ef9f2d3b.chunk.js +2 -0
  151. package/dist/static/js/8086.ef9f2d3b.chunk.js.map +1 -0
  152. package/dist/static/js/8105.46b996bf.chunk.js +2 -0
  153. package/dist/static/js/8105.46b996bf.chunk.js.map +1 -0
  154. package/dist/static/js/819.a55f578b.chunk.js +2 -0
  155. package/dist/static/js/819.a55f578b.chunk.js.map +1 -0
  156. package/dist/static/js/8300.e15dbcd8.chunk.js +2 -0
  157. package/dist/static/js/8300.e15dbcd8.chunk.js.map +1 -0
  158. package/dist/static/js/8324.b769efff.chunk.js +2 -0
  159. package/dist/static/js/8324.b769efff.chunk.js.map +1 -0
  160. package/dist/static/js/8366.b2c2daee.chunk.js +2 -0
  161. package/dist/static/js/8366.b2c2daee.chunk.js.map +1 -0
  162. package/dist/static/js/8524.95396ee8.chunk.js +2 -0
  163. package/dist/static/js/8524.95396ee8.chunk.js.map +1 -0
  164. package/dist/static/js/8644.c87452a5.chunk.js +2 -0
  165. package/dist/static/js/8644.c87452a5.chunk.js.map +1 -0
  166. package/dist/static/js/8674.d4aa33fd.chunk.js +2 -0
  167. package/dist/static/js/8674.d4aa33fd.chunk.js.map +1 -0
  168. package/dist/static/js/8717.76b643a4.chunk.js +2 -0
  169. package/dist/static/js/8717.76b643a4.chunk.js.map +1 -0
  170. package/dist/static/js/872.5c96c93a.chunk.js +2 -0
  171. package/dist/static/js/872.5c96c93a.chunk.js.map +1 -0
  172. package/dist/static/js/8762.d3fad692.chunk.js +2 -0
  173. package/dist/static/js/8762.d3fad692.chunk.js.map +1 -0
  174. package/dist/static/js/8782.af6b6665.chunk.js +3 -0
  175. package/dist/static/js/{0.71c0b4a8.chunk.js.LICENSE.txt → 8782.af6b6665.chunk.js.LICENSE.txt} +0 -0
  176. package/dist/static/js/8782.af6b6665.chunk.js.map +1 -0
  177. package/dist/static/js/894.a8fe019e.chunk.js +2 -0
  178. package/dist/static/js/894.a8fe019e.chunk.js.map +1 -0
  179. package/dist/static/js/9057.702da8f9.chunk.js +2 -0
  180. package/dist/static/js/9057.702da8f9.chunk.js.map +1 -0
  181. package/dist/static/js/9090.60a5cb5b.chunk.js +2 -0
  182. package/dist/static/js/9090.60a5cb5b.chunk.js.map +1 -0
  183. package/dist/static/js/9117.200d2100.chunk.js +2 -0
  184. package/dist/static/js/9117.200d2100.chunk.js.map +1 -0
  185. package/dist/static/js/9131.d5d0ab82.chunk.js +2 -0
  186. package/dist/static/js/9131.d5d0ab82.chunk.js.map +1 -0
  187. package/dist/static/js/9296.e374c7dc.chunk.js +2 -0
  188. package/dist/static/js/9296.e374c7dc.chunk.js.map +1 -0
  189. package/dist/static/js/932.4f62c387.chunk.js +2 -0
  190. package/dist/static/js/932.4f62c387.chunk.js.map +1 -0
  191. package/dist/static/js/9584.967e5482.chunk.js +2 -0
  192. package/dist/static/js/9584.967e5482.chunk.js.map +1 -0
  193. package/dist/static/js/9679.87a204b1.chunk.js +2 -0
  194. package/dist/static/js/9679.87a204b1.chunk.js.map +1 -0
  195. package/dist/static/js/9745.63a6678a.chunk.js +2 -0
  196. package/dist/static/js/9745.63a6678a.chunk.js.map +1 -0
  197. package/dist/static/js/9750.1310ef55.chunk.js +2 -0
  198. package/dist/static/js/9750.1310ef55.chunk.js.map +1 -0
  199. package/dist/static/js/main.fd57b2ac.js +3 -0
  200. package/dist/static/js/{5.8b318946.chunk.js.LICENSE.txt → main.fd57b2ac.js.LICENSE.txt} +2 -0
  201. package/dist/static/js/main.fd57b2ac.js.map +1 -0
  202. package/dist/static/media/{getFetch.582d29c4.cjs → getFetch.c780682470504fffbd04.cjs} +0 -0
  203. package/dist/v1/genesys-cloud-client-auth.browser.min.js +2 -0
  204. package/dist/v1.0.0/genesys-cloud-client-auth.browser.min.js +2 -0
  205. package/package.json +73 -71
  206. package/dist/static/css/main.3508dc5f.chunk.css +0 -2
  207. package/dist/static/css/main.3508dc5f.chunk.css.map +0 -1
  208. package/dist/static/js/0.71c0b4a8.chunk.js +0 -3
  209. package/dist/static/js/0.71c0b4a8.chunk.js.map +0 -1
  210. package/dist/static/js/1.8399f811.chunk.js +0 -2
  211. package/dist/static/js/1.8399f811.chunk.js.map +0 -1
  212. package/dist/static/js/10.8fb6019a.chunk.js +0 -2
  213. package/dist/static/js/10.8fb6019a.chunk.js.map +0 -1
  214. package/dist/static/js/11.aa22b687.chunk.js +0 -2
  215. package/dist/static/js/11.aa22b687.chunk.js.map +0 -1
  216. package/dist/static/js/12.586642ff.chunk.js +0 -2
  217. package/dist/static/js/12.586642ff.chunk.js.map +0 -1
  218. package/dist/static/js/13.c0c5fd67.chunk.js +0 -2
  219. package/dist/static/js/13.c0c5fd67.chunk.js.map +0 -1
  220. package/dist/static/js/14.c3e0d008.chunk.js +0 -2
  221. package/dist/static/js/14.c3e0d008.chunk.js.map +0 -1
  222. package/dist/static/js/15.20587752.chunk.js +0 -2
  223. package/dist/static/js/15.20587752.chunk.js.map +0 -1
  224. package/dist/static/js/16.c19b0b1c.chunk.js +0 -2
  225. package/dist/static/js/16.c19b0b1c.chunk.js.map +0 -1
  226. package/dist/static/js/17.06cd7ac8.chunk.js +0 -2
  227. package/dist/static/js/17.06cd7ac8.chunk.js.map +0 -1
  228. package/dist/static/js/18.e02b6cd8.chunk.js +0 -2
  229. package/dist/static/js/18.e02b6cd8.chunk.js.map +0 -1
  230. package/dist/static/js/19.2d45340c.chunk.js +0 -2
  231. package/dist/static/js/19.2d45340c.chunk.js.map +0 -1
  232. package/dist/static/js/20.2be3997f.chunk.js +0 -3
  233. package/dist/static/js/20.2be3997f.chunk.js.map +0 -1
  234. package/dist/static/js/21.90337a55.chunk.js +0 -2
  235. package/dist/static/js/21.90337a55.chunk.js.map +0 -1
  236. package/dist/static/js/22.0c42f6ee.chunk.js +0 -2
  237. package/dist/static/js/22.0c42f6ee.chunk.js.map +0 -1
  238. package/dist/static/js/23.96d71d61.chunk.js +0 -3
  239. package/dist/static/js/23.96d71d61.chunk.js.LICENSE.txt +0 -17
  240. package/dist/static/js/23.96d71d61.chunk.js.map +0 -1
  241. package/dist/static/js/24.c8a6aef1.chunk.js +0 -2
  242. package/dist/static/js/24.c8a6aef1.chunk.js.map +0 -1
  243. package/dist/static/js/25.1549af44.chunk.js +0 -2
  244. package/dist/static/js/25.1549af44.chunk.js.map +0 -1
  245. package/dist/static/js/26.f5920959.chunk.js +0 -2
  246. package/dist/static/js/26.f5920959.chunk.js.map +0 -1
  247. package/dist/static/js/27.4c4b5337.chunk.js +0 -2
  248. package/dist/static/js/27.4c4b5337.chunk.js.map +0 -1
  249. package/dist/static/js/28.e4ae1c5b.chunk.js +0 -2
  250. package/dist/static/js/28.e4ae1c5b.chunk.js.map +0 -1
  251. package/dist/static/js/29.c8bcd088.chunk.js +0 -2
  252. package/dist/static/js/29.c8bcd088.chunk.js.map +0 -1
  253. package/dist/static/js/30.3f776fe2.chunk.js +0 -2
  254. package/dist/static/js/30.3f776fe2.chunk.js.map +0 -1
  255. package/dist/static/js/31.295a0045.chunk.js +0 -2
  256. package/dist/static/js/31.295a0045.chunk.js.map +0 -1
  257. package/dist/static/js/32.c6495395.chunk.js +0 -2
  258. package/dist/static/js/32.c6495395.chunk.js.map +0 -1
  259. package/dist/static/js/33.bc3f2778.chunk.js +0 -2
  260. package/dist/static/js/33.bc3f2778.chunk.js.map +0 -1
  261. package/dist/static/js/34.9c6f42a2.chunk.js +0 -2
  262. package/dist/static/js/34.9c6f42a2.chunk.js.map +0 -1
  263. package/dist/static/js/35.080ac296.chunk.js +0 -2
  264. package/dist/static/js/35.080ac296.chunk.js.map +0 -1
  265. package/dist/static/js/36.30926ca6.chunk.js +0 -2
  266. package/dist/static/js/36.30926ca6.chunk.js.map +0 -1
  267. package/dist/static/js/37.535e0baf.chunk.js +0 -2
  268. package/dist/static/js/37.535e0baf.chunk.js.map +0 -1
  269. package/dist/static/js/38.c6142d9d.chunk.js +0 -2
  270. package/dist/static/js/38.c6142d9d.chunk.js.map +0 -1
  271. package/dist/static/js/39.4e5e9e70.chunk.js +0 -2
  272. package/dist/static/js/39.4e5e9e70.chunk.js.map +0 -1
  273. package/dist/static/js/40.67f8a4cc.chunk.js +0 -2
  274. package/dist/static/js/40.67f8a4cc.chunk.js.map +0 -1
  275. package/dist/static/js/41.8dc69989.chunk.js +0 -2
  276. package/dist/static/js/41.8dc69989.chunk.js.map +0 -1
  277. package/dist/static/js/42.a8312848.chunk.js +0 -2
  278. package/dist/static/js/42.a8312848.chunk.js.map +0 -1
  279. package/dist/static/js/43.ce512d00.chunk.js +0 -2
  280. package/dist/static/js/43.ce512d00.chunk.js.map +0 -1
  281. package/dist/static/js/44.197bff30.chunk.js +0 -2
  282. package/dist/static/js/44.197bff30.chunk.js.map +0 -1
  283. package/dist/static/js/45.9c281539.chunk.js +0 -2
  284. package/dist/static/js/45.9c281539.chunk.js.map +0 -1
  285. package/dist/static/js/46.8625525a.chunk.js +0 -2
  286. package/dist/static/js/46.8625525a.chunk.js.map +0 -1
  287. package/dist/static/js/47.89e00f8b.chunk.js +0 -2
  288. package/dist/static/js/47.89e00f8b.chunk.js.map +0 -1
  289. package/dist/static/js/48.1150630c.chunk.js +0 -2
  290. package/dist/static/js/48.1150630c.chunk.js.map +0 -1
  291. package/dist/static/js/49.d628f230.chunk.js +0 -2
  292. package/dist/static/js/49.d628f230.chunk.js.map +0 -1
  293. package/dist/static/js/5.8b318946.chunk.js +0 -3
  294. package/dist/static/js/5.8b318946.chunk.js.map +0 -1
  295. package/dist/static/js/50.f54ba3ed.chunk.js +0 -2
  296. package/dist/static/js/50.f54ba3ed.chunk.js.map +0 -1
  297. package/dist/static/js/51.b1d2a0f9.chunk.js +0 -2
  298. package/dist/static/js/51.b1d2a0f9.chunk.js.map +0 -1
  299. package/dist/static/js/52.d9cdf428.chunk.js +0 -2
  300. package/dist/static/js/52.d9cdf428.chunk.js.map +0 -1
  301. package/dist/static/js/53.eb9374c8.chunk.js +0 -2
  302. package/dist/static/js/53.eb9374c8.chunk.js.map +0 -1
  303. package/dist/static/js/54.0246cd90.chunk.js +0 -2
  304. package/dist/static/js/54.0246cd90.chunk.js.map +0 -1
  305. package/dist/static/js/55.f6407d07.chunk.js +0 -2
  306. package/dist/static/js/55.f6407d07.chunk.js.map +0 -1
  307. package/dist/static/js/56.030f4c2c.chunk.js +0 -2
  308. package/dist/static/js/56.030f4c2c.chunk.js.map +0 -1
  309. package/dist/static/js/57.106fdb37.chunk.js +0 -2
  310. package/dist/static/js/57.106fdb37.chunk.js.map +0 -1
  311. package/dist/static/js/58.9efa9671.chunk.js +0 -2
  312. package/dist/static/js/58.9efa9671.chunk.js.map +0 -1
  313. package/dist/static/js/59.3b47d57a.chunk.js +0 -2
  314. package/dist/static/js/59.3b47d57a.chunk.js.map +0 -1
  315. package/dist/static/js/6.8ac679aa.chunk.js +0 -2
  316. package/dist/static/js/6.8ac679aa.chunk.js.map +0 -1
  317. package/dist/static/js/60.0335fabd.chunk.js +0 -2
  318. package/dist/static/js/60.0335fabd.chunk.js.map +0 -1
  319. package/dist/static/js/61.cf7f57fc.chunk.js +0 -2
  320. package/dist/static/js/61.cf7f57fc.chunk.js.map +0 -1
  321. package/dist/static/js/62.bb858ee5.chunk.js +0 -2
  322. package/dist/static/js/62.bb858ee5.chunk.js.map +0 -1
  323. package/dist/static/js/63.107ffad7.chunk.js +0 -2
  324. package/dist/static/js/63.107ffad7.chunk.js.map +0 -1
  325. package/dist/static/js/64.a485a8c8.chunk.js +0 -2
  326. package/dist/static/js/64.a485a8c8.chunk.js.map +0 -1
  327. package/dist/static/js/65.3593d4bb.chunk.js +0 -2
  328. package/dist/static/js/65.3593d4bb.chunk.js.map +0 -1
  329. package/dist/static/js/66.9202016a.chunk.js +0 -2
  330. package/dist/static/js/66.9202016a.chunk.js.map +0 -1
  331. package/dist/static/js/67.45ef3717.chunk.js +0 -2
  332. package/dist/static/js/67.45ef3717.chunk.js.map +0 -1
  333. package/dist/static/js/68.e638cd4b.chunk.js +0 -2
  334. package/dist/static/js/68.e638cd4b.chunk.js.map +0 -1
  335. package/dist/static/js/69.b404f87e.chunk.js +0 -2
  336. package/dist/static/js/69.b404f87e.chunk.js.map +0 -1
  337. package/dist/static/js/7.a488d90e.chunk.js +0 -2
  338. package/dist/static/js/7.a488d90e.chunk.js.map +0 -1
  339. package/dist/static/js/70.32ae1b4a.chunk.js +0 -2
  340. package/dist/static/js/70.32ae1b4a.chunk.js.map +0 -1
  341. package/dist/static/js/71.14e7b1f4.chunk.js +0 -2
  342. package/dist/static/js/71.14e7b1f4.chunk.js.map +0 -1
  343. package/dist/static/js/72.6f860cde.chunk.js +0 -2
  344. package/dist/static/js/72.6f860cde.chunk.js.map +0 -1
  345. package/dist/static/js/73.8839e5fd.chunk.js +0 -3
  346. package/dist/static/js/73.8839e5fd.chunk.js.LICENSE.txt +0 -11
  347. package/dist/static/js/73.8839e5fd.chunk.js.map +0 -1
  348. package/dist/static/js/74.da2b0a38.chunk.js +0 -2
  349. package/dist/static/js/74.da2b0a38.chunk.js.map +0 -1
  350. package/dist/static/js/8.ab0b80c1.chunk.js +0 -2
  351. package/dist/static/js/8.ab0b80c1.chunk.js.map +0 -1
  352. package/dist/static/js/9.12e26806.chunk.js +0 -2
  353. package/dist/static/js/9.12e26806.chunk.js.map +0 -1
  354. package/dist/static/js/main.4aab9f6d.chunk.js +0 -2
  355. package/dist/static/js/main.4aab9f6d.chunk.js.map +0 -1
  356. package/dist/static/js/polyfills-css-shim.4a931322.chunk.js +0 -2
  357. package/dist/static/js/polyfills-css-shim.4a931322.chunk.js.map +0 -1
  358. package/dist/static/js/runtime-main.847af914.js +0 -2
  359. package/dist/static/js/runtime-main.847af914.js.map +0 -1
@@ -1,2 +1,2 @@
1
- window.GenesysCloudClientAuth=function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=24)}([function(t,e,r){"use strict";var o=SyntaxError,n=Function,i=TypeError,a=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,p=r(11)(),l=Object.getPrototypeOf||function(t){return t.__proto__},f={},y="undefined"==typeof Uint8Array?void 0:l(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":p?l([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?l((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?l((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?l(""[Symbol.iterator]()):void 0,"%Symbol%":p?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},d={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(1),g=r(14),b=m.call(Function.call,Array.prototype.concat),v=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),S=m.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,j=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return w(t,_,(function(t,e,r,o){n[n.length]=r?w(o,O,"$1"):e||t})),n},A=function(t,e){var r,n=t;if(g(d,n)&&(n="%"+(r=d[n])[0]+"%"),g(h,n)){var s=h[n];if(s===f&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=l(n.prototype))}return h[e]=r,r}(n)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=j(t),n=r.length>0?r[0]:"",a=A("%"+n+"%",e),u=a.name,c=a.value,p=!1,l=a.alias;l&&(n=l[0],v(r,b([0,1],l)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],m=S(d,0,1),w=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===w||"'"===w||"`"===w)&&m!==w)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(p=!0),g(h,u="%"+(n+="."+d)+"%"))c=h[u];else if(null!=c){if(!(d in c)){if(!e)throw new i("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=r.length){var _=s(c,d);c=(y=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[d]}else y=g(c,d),c=c[d];y&&!p&&(h[u]=c)}}return c}},function(t,e,r){"use strict";var o=r(13);t.exports=Function.prototype.bind||o},function(t,e,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return o.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){"use strict";var o=r(2),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:c}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var p=s.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)?u+=s.charAt(c):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&s.charCodeAt(c)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===o(t)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var i=r(6),a=r(7),s=r(8),u=r(20),c=r(4),p=r(21),l=r(23);function f(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var y=e=t.exports;e.Request=w,y.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function d(t){if(!c(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&m(e,r,t[r]);return e.join("&")}function m(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach((function(r){m(t,e,r)}));else if(c(r))for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&m(t,"".concat(e,"[").concat(o,"]"),r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function g(t){for(var e,r,o={},n=t.split("&"),i=0,a=n.length;i<a;++i)-1===(r=(e=n[i]).indexOf("="))?o[decodeURIComponent(e)]="":o[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return o}function b(t){return/[/+]json($|[^-\w])/i.test(t)}function v(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,o,n,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(e=(r=i[s]).indexOf(":"))&&(o=r.slice(0,e).toLowerCase(),n=h(r.slice(e+1)),a[o]=n);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,o=null;try{o=new v(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=o,t.status=o.status,r.callback(t,o)):r.callback(null,o)}))}function S(t,e,r){var o=y("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}y.serializeObject=d,y.parseString=g,y.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},y.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":a},y.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},p(v.prototype),v.prototype._parseBody=function(t){var e=y.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&b(this.type)&&(e=y.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},v.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},y.Response=v,i(w.prototype),u(w.prototype),w.prototype.type=function(t){return this.set("Content-Type",y.types[t]||t),this},w.prototype.accept=function(t){return this.set("Accept",y.types[t]||t),this},w.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===o(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var n=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,n)},w.prototype.query=function(t){return"string"!=typeof t&&(t=d(t)),t&&this._query.push(t),this},w.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},w.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},w.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},w.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||f,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=y.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var o;try{o=e.status}catch(t){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||y.serialize[n?n.split(";")[0]:""];!i&&b(n)&&(i=y.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},y.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){l.prototype[t.toLowerCase()]=function(e,r){var o=new y.Request(t,e);return this._setDefaults(o),r&&o.end(r),o}})),l.prototype.del=l.prototype.delete,y.get=function(t,e,r){var o=y("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.head=function(t,e,r){var o=y("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.options=function(t,e,r){var o=y("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.del=S,y.delete=S,y.patch=function(t,e,r){var o=y("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.post=function(t,e,r){var o=y("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.put=function(t,e,r){var o=y("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}},function(t,e,r){function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){t.exports=n,n.default=n,n.stable=a,n.stableStringify=a;var r=[],o=[];function n(t,e,n){var i;for(!function t(e,n,i,a){var s;if("object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e){var u=Object.getOwnPropertyDescriptor(a,n);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,n,{value:"[Circular]"}),r.push([a,n,e,u])):o.push([e,n]):(a[n]="[Circular]",r.push([a,n,e])))}if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)t(e[s],s,i,e);else{var c=Object.keys(e);for(s=0;s<c.length;s++){var p=c[s];t(e[p],p,i,e)}}i.pop()}}(t,"",[],void 0),i=0===o.length?JSON.stringify(t,e,n):JSON.stringify(t,s(e),n);0!==r.length;){var a=r.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(t,e){return t<e?-1:t>e?1:0}function a(t,e,n){var a,u=function t(e,n,a,s){var u;if("object"==typeof e&&null!==e){for(u=0;u<a.length;u++)if(a[u]===e){var c=Object.getOwnPropertyDescriptor(s,n);return void(void 0!==c.get?c.configurable?(Object.defineProperty(s,n,{value:"[Circular]"}),r.push([s,n,e,c])):o.push([e,n]):(s[n]="[Circular]",r.push([s,n,e])))}if("function"==typeof e.toJSON)return;if(a.push(e),Array.isArray(e))for(u=0;u<e.length;u++)t(e[u],u,a,e);else{var p={},l=Object.keys(e).sort(i);for(u=0;u<l.length;u++){var f=l[u];t(e[f],f,a,e),p[f]=e[f]}if(void 0===s)return p;r.push([s,n,e]),s[n]=p}a.pop()}}(t,"",[],void 0)||t;for(a=0===o.length?JSON.stringify(u,e,n):JSON.stringify(u,s(e),n);0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return a}function s(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r="[Circular]",o.splice(n,1);break}}return t.call(this,e,r)}}},function(t,e,r){"use strict";var o=r(9),n=r(19),i=r(2);t.exports={formats:i,parse:n,stringify:o}},function(t,e,r){"use strict";var o=r(10),n=r(3),i=r(2),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,p=function(t,e){c.apply(t,u(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,r,i,a,s,c,l,f,h,d,m,g,b,v,w){var S,_=e;if(w.has(e))throw new RangeError("Cyclic object value");if("function"==typeof l?_=l(r,_):_ instanceof Date?_=d(_):"comma"===i&&u(_)&&(_=n.maybeMap(_,(function(t){return t instanceof Date?d(t):t}))),null===_){if(a)return c&&!b?c(r,y.encoder,v,"key",m):r;_=""}if("string"==typeof(S=_)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(_))return c?[g(b?r:c(r,y.encoder,v,"key",m))+"="+g(c(_,y.encoder,v,"value",m))]:[g(r)+"="+g(String(_))];var O,j=[];if(void 0===_)return j;if("comma"===i&&u(_))O=[{value:_.length>0?_.join(",")||null:void 0}];else if(u(l))O=l;else{var A=Object.keys(_);O=f?A.sort(f):A}for(var E=0;E<O.length;++E){var T=O[E],x="object"==typeof T&&void 0!==T.value?T.value:_[T];if(!s||null!==x){var P=u(_)?"function"==typeof i?i(r,T):r:r+(h?"."+T:"["+T+"]");w.set(e,!0);var k=o();p(j,t(x,P,i,a,s,c,l,f,h,d,m,g,b,v,k))}}return j};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=i.formatters[r],n=y.filter;return("function"==typeof t.filter||u(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===n[b]||p(f,h(n[b],b,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var v=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},function(t,e,r){"use strict";var o=r(0),n=r(15),i=r(17),a=o("%TypeError%"),s=o("%WeakMap%",!0),u=o("%Map%",!0),c=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),d=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return c(t,o)}else if(u){if(e)return f(e,o)}else if(r)return function(t,e){var r=d(t,e);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return l(t,o)}else if(u){if(e)return h(e,o)}else if(r)return function(t,e){return!!d(t,e)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new s),p(t,o,n)):u?(e||(e=new u),y(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=d(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(12);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError(o+e);for(var r,a=n.call(arguments,1),s=function(){if(this instanceof r){var o=e.apply(this,a.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,a.concat(n.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],p=0;p<u;p++)c.push("$"+p);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var l=function(){};l.prototype=e.prototype,r.prototype=new l,l.prototype=null}return r}},function(t,e,r){"use strict";var o=r(1);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var o=r(0),n=r(16),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n(r):r}},function(t,e,r){"use strict";var o=r(1),n=r(0),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||o.call(a,i),u=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(o,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return s(o,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,p=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),j=r(18).custom,A=j&&k(j)?j:null,E="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function x(t){return String(t).replace(/"/g,"&quot;")}function P(t){return!("[object Array]"!==C(t)||E&&"object"==typeof t&&E in t)}function k(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,o,n){var s=r||{};if(I(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!I(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(I(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+n}return T(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",r)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var d=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=d&&d>0&&"object"==typeof e)return P(e)?"[Array]":"[Object]";var v=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,o);if(void 0===n)n=[];else if(D(n,e)>=0)return"[Circular]";function _(e,r,i){if(r&&(n=n.slice()).push(r),i){var a={depth:s.depth};return I(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,o+1,n)}return t(e,s,o+1,n)}if("function"==typeof e){var j=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),R=q(e,_);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(R.length>0?" { "+R.join(", ")+" }":"")}if(k(e)){var H=S?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(e);return"object"!=typeof e||S?H:U(H)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var W="<"+String(e.nodeName).toLowerCase(),$=e.attributes||[],B=0;B<$.length;B++)W+=" "+$[B].name+"="+T(x($[B].value),"double",s);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="</"+String(e.nodeName).toLowerCase()+">"}if(P(e)){if(0===e.length)return"[]";var z=q(e,_);return v&&!function(t){for(var e=0;e<t.length;e++)if(D(t[e],"\n")>=0)return!1;return!0}(z)?"["+L(z,v)+"]":"[ "+z.join(", ")+" ]"}if(function(t){return!("[object Error]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var G=q(e,_);return 0===G.length?"["+String(e)+"]":"{ ["+String(e)+"] "+G.join(", ")+" }"}if("object"==typeof e&&u){if(A&&"function"==typeof e[A])return e[A]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var V=[];return a.call(e,(function(t,r){V.push(_(r,e,!0)+" => "+_(t,e))})),M("Map",i.call(e),V,v)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var J=[];return p.call(e,(function(t){J.push(_(t,e))})),M("Set",c.call(e),J,v)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return F("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return F("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return F("WeakRef");if(function(t){return!("[object Number]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(Number(e)));if(function(t){if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(t){}return!1}(e))return U(_(b.call(e)));if(function(t){return!("[object Boolean]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(h.call(e));if(function(t){return!("[object String]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(String(e)));if(!function(t){return!("[object Date]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)&&!function(t){return!("[object RegExp]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var Q=q(e,_),X=O?O(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Y=!X&&E&&Object(e)===e&&E in e?C(e).slice(8,-1):K?"Object":"",Z=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Y||K?"["+[].concat(Y||[],K||[]).join(": ")+"] ":"");return 0===Q.length?Z+"{}":v?Z+"{"+L(Q,v)+"}":Z+"{ "+Q.join(", ")+" }"}return String(e)};var R=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return R.call(t,e)}function C(t){return d.call(t)}function D(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function N(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function U(t){return"Object("+t+")"}function F(t){return t+" { ? }"}function M(t,e,r,o){return t+" ("+e+") {"+(o?L(r,o):r.join(", "))+"}"}function L(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function q(t,e){var r=P(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=I(t,n)?e(t[n],t):""}var i,a="function"==typeof v?v(t):[];if(S){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)I(t,u)&&(r&&String(Number(u))===u&&u<t.length||S&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof v)for(var c=0;c<a.length;c++)_.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}},function(t,e){},function(t,e,r){"use strict";var o=r(3),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var l=0;r.depth>0&&null!==(s=a.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),function(t,e,r,o){for(var n=o?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=n:a[c]=n:a={0:n}}n=a}return n}(p,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,c={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),y=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var d,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(d=e.decoder(g,a.decoder,h,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(g.slice(0,v),a.decoder,h,"key"),m=o.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(c,d)?c[d]=o.combine(c[d],m):c[d]=m}return c}(t,r):t,l=r.plainObjects?Object.create(null):{},f=Object.keys(p),y=0;y<f.length;++y){var h=f[y],d=c(h,p[h],r,"string"==typeof t);l=o.merge(l,d,r)}return!0===r.allowSparse?l:o.compact(l)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(4);function i(t){if(t)return function(t){for(var e in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,e)&&(t[e]=i.prototype[e]);return t}(t)}t.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(t){return this._parser=t,this},i.prototype.responseType=function(t){return this._responseType=t,this},i.prototype.serialize=function(t){return this._serializer=t,this},i.prototype.timeout=function(t){if(!t||"object"!==o(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},i.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&s.has(e.status))return!0;if(t){if(t.code&&a.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){o.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),o.end((function(r,o){r?e(r):t(o)}))}))}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},i.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&n(this._data))for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._data[o]=t[o]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(!this._aborted){var o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,r){"use strict";var o=r(22);function n(t){if(t)return function(t){for(var e in n.prototype)Object.prototype.hasOwnProperty.call(n.prototype,e)&&(t[e]=n.prototype[e]);return t}(t)}t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var r=o.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,e,r){"use strict";function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,r={},n=o(t.split(/ *; */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *= */),a=i.shift(),s=i.shift();a&&s&&(r[a]=s)}}catch(t){n.e(t)}finally{n.f()}return r},e.parseLinks=function(t){var e,r={},n=o(t.split(/ *, */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *; */),a=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(t){n.e(t)}finally{n.f()}return r},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e,r){"use strict";function o(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){i.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this}})),i.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,o(e.args))}))},t.exports=i},function(t,e,r){"use strict";r.r(e),r.d(e,"GenesysCloudClientAuthenticator",(function(){return O})),r.d(e,"authenticatorFactory",(function(){return E})),r.d(e,"handleRedirectFromLogin",(function(){return j})),r.d(e,"isIssuedTimeWithinTimeframe",(function(){return w})),r.d(e,"isIssuedTimeWithinWindow",(function(){return S})),r.d(e,"tokenWasIssuedAt",(function(){return _})),r.d(e,"parseOauthParams",(function(){return b})),r.d(e,"TimeoutError",(function(){return m})),r.d(e,"VERSION",(function(){return d}));function o(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((o=o.apply(t,e||[])).next())}))}Object.create;Object.create;var n,i=r(5),a=r.n(i),s=new Uint8Array(16);function u(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(s)}var c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=function(t){return"string"==typeof t&&c.test(t)},l=[],f=0;f<256;++f)l.push((f+256).toString(16).substr(1));var y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!p(r))throw TypeError("Stringified UUID is invalid");return r};var h=function(t,e,r){var o=(t=t||{}).random||(t.rng||u)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=o[n];return e}return y(o)};var d="0.0.2";class m extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class g extends Error{constructor(t,e){const r=e&&e instanceof Error;super(r?e.message:e),r&&(this.name=e.name),this.translationKey=t}}const b=(t=window.location.hash)=>{const e={},r={},o=new RegExp("^#*(.+?)=(.+?)$","i");if(t.split("&").forEach(t=>{const r=o.exec(t);r&&(e[r[1]]=decodeURIComponent(decodeURIComponent(r[2].replace(/\+/g,"%20"))))}),e.error)return e;if(e.access_token){if(e.state&&(r.state=e.state),e.expires_in){const t=1e3*parseInt(e.expires_in.replace(/\+/g,"%20"));r.tokenExpiryTime=Date.now()+t,r.tokenExpiryTimeString=new Date(r.tokenExpiryTime).toISOString()}r.accessToken=e.access_token.replace(/\+/g,"%20")}return r},v=(t,e)=>{e?(console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c",e),"object"==typeof e&&console.log(`%c [DEBUG:gc-client-auth:${d}] ^ stringified: ${JSON.stringify(e)}`,"color: #f29f2c")):console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c")},w=(t,e=691199e3,r=168e4,o=Date.now())=>o-_(t,e)<r,S=(t,e,r)=>w(t,e,r),_=(t,e)=>t-e;class O{constructor(t,e={}){this.VERSION=d,this.clientId=t,e.storageKey||(e.storageKey="gc_client_auth_data"),"boolean"!=typeof e.persist&&(e.persist=!1),this.config=Object.assign({},e),this.setEnvironment(e.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(t){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(t={},e){const r=e||b();return new Promise((e,o)=>{t.org&&!t.provider?o(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org?o(new Error("opts.org must be set if opts.provider is set")):t.redirectUri||t.usePopupAuth||o(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),r&&r.error&&(r.accessToken=void 0,this._saveSettings(r),o(new Error(`[${r.error}] ${r.error_description}`))),r.accessToken&&this._saveSettings(r),this._testTokenAccess().then(()=>(!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData))).catch(r=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",r);const n={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(t.redirectUri&&(n.redirect_uri=encodeURIComponent(t.redirectUri)),t.state&&(n.state=encodeURIComponent(t.state)),t.org&&(n.org=encodeURIComponent(t.org)),t.provider&&(n.provider=encodeURIComponent(t.provider)),t.usePopupAuth){if(!this.hasLocalStorage)return o(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(n,t.popupTimeout||15e3).then(t=>{this._saveSettings(t),e(t)}).catch(o)}else{const t=this._buildAuthUrl("oauth/authorize",n);this._debug("Implicit grant: redirecting to: "+t),window.location.replace(t),o(new Error(`Routing to login: "${t}"`))}})})}setEnvironment(t){t||(t="mypurecloud.com"),(t=t.replace(/\/+$/,"")).startsWith("https://")&&(t=t.substring(8)),t.startsWith("http://")&&(t=t.substring(7)),t.startsWith("api.")&&(t=t.substring(4)),this.environment=t,this.basePath="https://api."+t,this.authUrl="https://login."+t}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(t){this.clearAuthData();const e={client_id:encodeURIComponent(this.clientId)};t&&(e.redirect_uri=encodeURIComponent(t));const r=this._buildAuthUrl("logout",e);window.location.replace(r)}setAccessToken(t){this._saveSettings({accessToken:t})}testAccessToken(t){return this.callApi("/api/v2/tokens/me","get",t)}parseDate(t){return new Date(t.replace(/T/i," "))}paramToString(t){return t?t instanceof Date?t.toJSON():t.toString():""}buildUrl(t,e={}){t.match(/^\//)||(t="/"+t);return(this.basePath+t).replace(/\{([\w-]+)\}/g,(t,r)=>{let o;return o=Object.getOwnPropertyDescriptor(e,r)?this.paramToString(e[r]):t,encodeURIComponent(o)})}callApi(t,e,r){var o;const n=this.buildUrl(t);return a.a[e](n).type("application/json").timeout(this.timeout).set("Authorization","Bearer "+(r||(null===(o=this.authData)||void 0===o?void 0:o.accessToken))).send()}_debug(t,e){this.config.debugMode&&v(t,e)}_saveSettings(t){try{if(this.authData.accessToken=t.accessToken,this.authentications["PureCloud OAuth"].accessToken=t.accessToken,t.state&&(this.authData.state=t.state),this.authData.error=t.error,this.authData.error_description=t.error_description,t.tokenExpiryTime&&(this.authData.tokenExpiryTime=t.tokenExpiryTime,this.authData.tokenExpiryTimeString=t.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(this.config.storageKey,JSON.stringify(e)),this._debug("Auth data saved to local storage",e)}catch(t){console.error(t)}}_getId(t){return"gc-ca_"+(t=t||h())}_authenticateViaPopup(t,e){const r=this._getId(),o=Object.assign(Object.assign({},t),{storageKey:this.config.storageKey});this.config.debugMode&&(o.debug=!0),localStorage.setItem(r,JSON.stringify(o)),t.state=r,t.redirect_uri||(t.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const n=this._buildAuthUrl("oauth/authorize",t);return new Promise((o,i)=>{this._debug("Implicit grant: opening new window: "+n),window.open(n,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const a=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",t);const e=new m("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");i(e)},e),s=t=>{if(this._debug("value was just written to storage by another app",{key:t.key,newValue:t.newValue,oldValue:t.oldValue}),t.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:t.key,value:t.newValue}),window.removeEventListener("storage",s),clearTimeout(a);const e=JSON.parse(t.newValue);localStorage.removeItem(r),o(e)}};window.addEventListener("storage",s)})}_testTokenAccess(){return o(this,void 0,void 0,(function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new g("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(t){throw this._saveSettings({accessToken:void 0}),t}}))}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const t=this.authData.state,e=localStorage.getItem(this.config.storageKey);this.authData=e?JSON.parse(e):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=t}_buildAuthUrl(t,e={}){return Object.keys(e).reduce((t,r)=>e[r]?`${t}&${r}=${e[r]}`:t,`${this.authUrl}/${t}?`)}}const j=()=>{const t=b();if(t.error)throw new Error(`[${t.error}]: ${t.error_description}`);if(!t.accessToken)throw new g("errorToken","No access token provided.");const e=t.state;if(!e)throw new g("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const r=JSON.parse(localStorage.getItem(e)||"false");if(!r||!r.storageKey)throw new g("errorParse","Unable to parse information from localStorage.");r.state?t.state=r.state:delete t.state,v("setting auth data to key: "+r.storageKey,t),localStorage.setItem(r.storageKey,JSON.stringify(t)),r.debug?v("In debug mode. Not closing window or removing storageId",{storageId:e,authData:t,href:window.location.href}):(v("removing temp storage key: "+e),localStorage.removeItem(e),v("closing window"),window.close())},A=new Map,E=(t,e)=>{let r=A.get(t);return r||(r=new O(t,e),A.set(t,r)),r};e.default=E}]);
1
+ window.GenesysCloudClientAuth=function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=24)}([function(t,e,r){"use strict";var o=SyntaxError,n=Function,i=TypeError,a=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,p=r(11)(),l=Object.getPrototypeOf||function(t){return t.__proto__},f={},y="undefined"==typeof Uint8Array?void 0:l(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":p?l([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?l((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?l((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?l(""[Symbol.iterator]()):void 0,"%Symbol%":p?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},d={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(1),g=r(14),b=m.call(Function.call,Array.prototype.concat),v=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),S=m.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,j=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return w(t,_,(function(t,e,r,o){n[n.length]=r?w(o,O,"$1"):e||t})),n},A=function(t,e){var r,n=t;if(g(d,n)&&(n="%"+(r=d[n])[0]+"%"),g(h,n)){var s=h[n];if(s===f&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=l(n.prototype))}return h[e]=r,r}(n)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=j(t),n=r.length>0?r[0]:"",a=A("%"+n+"%",e),u=a.name,c=a.value,p=!1,l=a.alias;l&&(n=l[0],v(r,b([0,1],l)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],m=S(d,0,1),w=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===w||"'"===w||"`"===w)&&m!==w)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(p=!0),g(h,u="%"+(n+="."+d)+"%"))c=h[u];else if(null!=c){if(!(d in c)){if(!e)throw new i("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=r.length){var _=s(c,d);c=(y=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[d]}else y=g(c,d),c=c[d];y&&!p&&(h[u]=c)}}return c}},function(t,e,r){"use strict";var o=r(13);t.exports=Function.prototype.bind||o},function(t,e,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return o.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){"use strict";var o=r(2),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:c}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var p=s.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)?u+=s.charAt(c):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&s.charCodeAt(c)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===o(t)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var i=r(6),a=r(7),s=r(8),u=r(20),c=r(4),p=r(21),l=r(23);function f(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var y=e=t.exports;e.Request=w,y.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function d(t){if(!c(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&m(e,r,t[r]);return e.join("&")}function m(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach((function(r){m(t,e,r)}));else if(c(r))for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&m(t,"".concat(e,"[").concat(o,"]"),r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function g(t){for(var e,r,o={},n=t.split("&"),i=0,a=n.length;i<a;++i)-1===(r=(e=n[i]).indexOf("="))?o[decodeURIComponent(e)]="":o[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return o}function b(t){return/[/+]json($|[^-\w])/i.test(t)}function v(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,o,n,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(e=(r=i[s]).indexOf(":"))&&(o=r.slice(0,e).toLowerCase(),n=h(r.slice(e+1)),a[o]=n);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,o=null;try{o=new v(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=o,t.status=o.status,r.callback(t,o)):r.callback(null,o)}))}function S(t,e,r){var o=y("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}y.serializeObject=d,y.parseString=g,y.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},y.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":a},y.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},p(v.prototype),v.prototype._parseBody=function(t){var e=y.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&b(this.type)&&(e=y.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},v.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},y.Response=v,i(w.prototype),u(w.prototype),w.prototype.type=function(t){return this.set("Content-Type",y.types[t]||t),this},w.prototype.accept=function(t){return this.set("Accept",y.types[t]||t),this},w.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===o(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var n=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,n)},w.prototype.query=function(t){return"string"!=typeof t&&(t=d(t)),t&&this._query.push(t),this},w.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},w.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},w.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},w.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||f,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=y.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var o;try{o=e.status}catch(t){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||y.serialize[n?n.split(";")[0]:""];!i&&b(n)&&(i=y.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},y.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){l.prototype[t.toLowerCase()]=function(e,r){var o=new y.Request(t,e);return this._setDefaults(o),r&&o.end(r),o}})),l.prototype.del=l.prototype.delete,y.get=function(t,e,r){var o=y("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.head=function(t,e,r){var o=y("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.options=function(t,e,r){var o=y("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.del=S,y.delete=S,y.patch=function(t,e,r){var o=y("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.post=function(t,e,r){var o=y("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.put=function(t,e,r){var o=y("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}},function(t,e,r){function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){t.exports=n,n.default=n,n.stable=a,n.stableStringify=a;var r=[],o=[];function n(t,e,n){var i;for(!function t(e,n,i,a){var s;if("object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e){var u=Object.getOwnPropertyDescriptor(a,n);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,n,{value:"[Circular]"}),r.push([a,n,e,u])):o.push([e,n]):(a[n]="[Circular]",r.push([a,n,e])))}if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)t(e[s],s,i,e);else{var c=Object.keys(e);for(s=0;s<c.length;s++){var p=c[s];t(e[p],p,i,e)}}i.pop()}}(t,"",[],void 0),i=0===o.length?JSON.stringify(t,e,n):JSON.stringify(t,s(e),n);0!==r.length;){var a=r.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(t,e){return t<e?-1:t>e?1:0}function a(t,e,n){var a,u=function t(e,n,a,s){var u;if("object"==typeof e&&null!==e){for(u=0;u<a.length;u++)if(a[u]===e){var c=Object.getOwnPropertyDescriptor(s,n);return void(void 0!==c.get?c.configurable?(Object.defineProperty(s,n,{value:"[Circular]"}),r.push([s,n,e,c])):o.push([e,n]):(s[n]="[Circular]",r.push([s,n,e])))}if("function"==typeof e.toJSON)return;if(a.push(e),Array.isArray(e))for(u=0;u<e.length;u++)t(e[u],u,a,e);else{var p={},l=Object.keys(e).sort(i);for(u=0;u<l.length;u++){var f=l[u];t(e[f],f,a,e),p[f]=e[f]}if(void 0===s)return p;r.push([s,n,e]),s[n]=p}a.pop()}}(t,"",[],void 0)||t;for(a=0===o.length?JSON.stringify(u,e,n):JSON.stringify(u,s(e),n);0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return a}function s(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r="[Circular]",o.splice(n,1);break}}return t.call(this,e,r)}}},function(t,e,r){"use strict";var o=r(9),n=r(19),i=r(2);t.exports={formats:i,parse:n,stringify:o}},function(t,e,r){"use strict";var o=r(10),n=r(3),i=r(2),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,p=function(t,e){c.apply(t,u(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,r,i,a,s,c,l,f,h,d,m,g,b,v,w){var S,_=e;if(w.has(e))throw new RangeError("Cyclic object value");if("function"==typeof l?_=l(r,_):_ instanceof Date?_=d(_):"comma"===i&&u(_)&&(_=n.maybeMap(_,(function(t){return t instanceof Date?d(t):t}))),null===_){if(a)return c&&!b?c(r,y.encoder,v,"key",m):r;_=""}if("string"==typeof(S=_)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(_))return c?[g(b?r:c(r,y.encoder,v,"key",m))+"="+g(c(_,y.encoder,v,"value",m))]:[g(r)+"="+g(String(_))];var O,j=[];if(void 0===_)return j;if("comma"===i&&u(_))O=[{value:_.length>0?_.join(",")||null:void 0}];else if(u(l))O=l;else{var A=Object.keys(_);O=f?A.sort(f):A}for(var E=0;E<O.length;++E){var T=O[E],x="object"==typeof T&&void 0!==T.value?T.value:_[T];if(!s||null!==x){var P=u(_)?"function"==typeof i?i(r,T):r:r+(h?"."+T:"["+T+"]");w.set(e,!0);var k=o();p(j,t(x,P,i,a,s,c,l,f,h,d,m,g,b,v,k))}}return j};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=i.formatters[r],n=y.filter;return("function"==typeof t.filter||u(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===n[b]||p(f,h(n[b],b,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var v=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},function(t,e,r){"use strict";var o=r(0),n=r(15),i=r(17),a=o("%TypeError%"),s=o("%WeakMap%",!0),u=o("%Map%",!0),c=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),d=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return c(t,o)}else if(u){if(e)return f(e,o)}else if(r)return function(t,e){var r=d(t,e);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return l(t,o)}else if(u){if(e)return h(e,o)}else if(r)return function(t,e){return!!d(t,e)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new s),p(t,o,n)):u?(e||(e=new u),y(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=d(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(12);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError(o+e);for(var r,a=n.call(arguments,1),s=function(){if(this instanceof r){var o=e.apply(this,a.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,a.concat(n.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],p=0;p<u;p++)c.push("$"+p);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var l=function(){};l.prototype=e.prototype,r.prototype=new l,l.prototype=null}return r}},function(t,e,r){"use strict";var o=r(1);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var o=r(0),n=r(16),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n(r):r}},function(t,e,r){"use strict";var o=r(1),n=r(0),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||o.call(a,i),u=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(o,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return s(o,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,p=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),j=r(18).custom,A=j&&k(j)?j:null,E="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function x(t){return String(t).replace(/"/g,"&quot;")}function P(t){return!("[object Array]"!==C(t)||E&&"object"==typeof t&&E in t)}function k(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,o,n){var s=r||{};if(I(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!I(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(I(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+n}return T(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",r)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var d=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=d&&d>0&&"object"==typeof e)return P(e)?"[Array]":"[Object]";var v=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,o);if(void 0===n)n=[];else if(D(n,e)>=0)return"[Circular]";function _(e,r,i){if(r&&(n=n.slice()).push(r),i){var a={depth:s.depth};return I(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,o+1,n)}return t(e,s,o+1,n)}if("function"==typeof e){var j=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),R=q(e,_);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(R.length>0?" { "+R.join(", ")+" }":"")}if(k(e)){var H=S?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(e);return"object"!=typeof e||S?H:U(H)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var W="<"+String(e.nodeName).toLowerCase(),$=e.attributes||[],B=0;B<$.length;B++)W+=" "+$[B].name+"="+T(x($[B].value),"double",s);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="</"+String(e.nodeName).toLowerCase()+">"}if(P(e)){if(0===e.length)return"[]";var z=q(e,_);return v&&!function(t){for(var e=0;e<t.length;e++)if(D(t[e],"\n")>=0)return!1;return!0}(z)?"["+L(z,v)+"]":"[ "+z.join(", ")+" ]"}if(function(t){return!("[object Error]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var G=q(e,_);return 0===G.length?"["+String(e)+"]":"{ ["+String(e)+"] "+G.join(", ")+" }"}if("object"==typeof e&&u){if(A&&"function"==typeof e[A])return e[A]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var V=[];return a.call(e,(function(t,r){V.push(_(r,e,!0)+" => "+_(t,e))})),M("Map",i.call(e),V,v)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var J=[];return p.call(e,(function(t){J.push(_(t,e))})),M("Set",c.call(e),J,v)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return F("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return F("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return F("WeakRef");if(function(t){return!("[object Number]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(Number(e)));if(function(t){if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(t){}return!1}(e))return U(_(b.call(e)));if(function(t){return!("[object Boolean]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(h.call(e));if(function(t){return!("[object String]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(String(e)));if(!function(t){return!("[object Date]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)&&!function(t){return!("[object RegExp]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var Q=q(e,_),X=O?O(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Y=!X&&E&&Object(e)===e&&E in e?C(e).slice(8,-1):K?"Object":"",Z=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Y||K?"["+[].concat(Y||[],K||[]).join(": ")+"] ":"");return 0===Q.length?Z+"{}":v?Z+"{"+L(Q,v)+"}":Z+"{ "+Q.join(", ")+" }"}return String(e)};var R=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return R.call(t,e)}function C(t){return d.call(t)}function D(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function N(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function U(t){return"Object("+t+")"}function F(t){return t+" { ? }"}function M(t,e,r,o){return t+" ("+e+") {"+(o?L(r,o):r.join(", "))+"}"}function L(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function q(t,e){var r=P(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=I(t,n)?e(t[n],t):""}var i,a="function"==typeof v?v(t):[];if(S){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)I(t,u)&&(r&&String(Number(u))===u&&u<t.length||S&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof v)for(var c=0;c<a.length;c++)_.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}},function(t,e){},function(t,e,r){"use strict";var o=r(3),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var l=0;r.depth>0&&null!==(s=a.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),function(t,e,r,o){for(var n=o?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=n:a[c]=n:a={0:n}}n=a}return n}(p,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,c={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),y=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var d,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(d=e.decoder(g,a.decoder,h,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(g.slice(0,v),a.decoder,h,"key"),m=o.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(c,d)?c[d]=o.combine(c[d],m):c[d]=m}return c}(t,r):t,l=r.plainObjects?Object.create(null):{},f=Object.keys(p),y=0;y<f.length;++y){var h=f[y],d=c(h,p[h],r,"string"==typeof t);l=o.merge(l,d,r)}return!0===r.allowSparse?l:o.compact(l)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(4);function i(t){if(t)return function(t){for(var e in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,e)&&(t[e]=i.prototype[e]);return t}(t)}t.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(t){return this._parser=t,this},i.prototype.responseType=function(t){return this._responseType=t,this},i.prototype.serialize=function(t){return this._serializer=t,this},i.prototype.timeout=function(t){if(!t||"object"!==o(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},i.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&s.has(e.status))return!0;if(t){if(t.code&&a.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){o.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),o.end((function(r,o){r?e(r):t(o)}))}))}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},i.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&n(this._data))for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._data[o]=t[o]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(!this._aborted){var o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,r){"use strict";var o=r(22);function n(t){if(t)return function(t){for(var e in n.prototype)Object.prototype.hasOwnProperty.call(n.prototype,e)&&(t[e]=n.prototype[e]);return t}(t)}t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var r=o.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,e,r){"use strict";function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,r={},n=o(t.split(/ *; */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *= */),a=i.shift(),s=i.shift();a&&s&&(r[a]=s)}}catch(t){n.e(t)}finally{n.f()}return r},e.parseLinks=function(t){var e,r={},n=o(t.split(/ *, */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *; */),a=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(t){n.e(t)}finally{n.f()}return r},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e,r){"use strict";function o(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){i.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this}})),i.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,o(e.args))}))},t.exports=i},function(t,e,r){"use strict";r.r(e),r.d(e,"GenesysCloudClientAuthenticator",(function(){return O})),r.d(e,"authenticatorFactory",(function(){return E})),r.d(e,"handleRedirectFromLogin",(function(){return j})),r.d(e,"isIssuedTimeWithinTimeframe",(function(){return w})),r.d(e,"isIssuedTimeWithinWindow",(function(){return S})),r.d(e,"tokenWasIssuedAt",(function(){return _})),r.d(e,"parseOauthParams",(function(){return b})),r.d(e,"TimeoutError",(function(){return m})),r.d(e,"VERSION",(function(){return d}));function o(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((o=o.apply(t,e||[])).next())}))}Object.create;Object.create;var n,i=r(5),a=r.n(i),s=new Uint8Array(16);function u(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(s)}var c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=function(t){return"string"==typeof t&&c.test(t)},l=[],f=0;f<256;++f)l.push((f+256).toString(16).substr(1));var y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!p(r))throw TypeError("Stringified UUID is invalid");return r};var h=function(t,e,r){var o=(t=t||{}).random||(t.rng||u)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=o[n];return e}return y(o)};var d="1.0.0";class m extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class g extends Error{constructor(t,e){const r=e&&e instanceof Error;super(r?e.message:e),r&&(this.name=e.name),this.translationKey=t}}const b=(t=window.location.hash)=>{const e={},r={},o=new RegExp("^#*(.+?)=(.+?)$","i");if(t.split("&").forEach(t=>{const r=o.exec(t);r&&(e[r[1]]=decodeURIComponent(decodeURIComponent(r[2].replace(/\+/g,"%20"))))}),e.error)return e;if(e.access_token){if(e.state&&(r.state=e.state),e.expires_in){const t=1e3*parseInt(e.expires_in.replace(/\+/g,"%20"));r.tokenExpiryTime=Date.now()+t,r.tokenExpiryTimeString=new Date(r.tokenExpiryTime).toISOString()}r.accessToken=e.access_token.replace(/\+/g,"%20")}return r},v=(t,e)=>{e?(console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c",e),"object"==typeof e&&console.log(`%c [DEBUG:gc-client-auth:${d}] ^ stringified: ${JSON.stringify(e)}`,"color: #f29f2c")):console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c")},w=(t,e=691199e3,r=168e4,o=Date.now())=>o-_(t,e)<r,S=(t,e,r)=>w(t,e,r),_=(t,e)=>t-e;class O{constructor(t,e={}){this.VERSION=d,this.clientId=t,e.storageKey||(e.storageKey="gc_client_auth_data"),"boolean"!=typeof e.persist&&(e.persist=!1),this.config=Object.assign({},e),this.setEnvironment(e.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(t){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(t={},e){const r=e||b();return new Promise((e,o)=>{t.org&&!t.provider?o(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org?o(new Error("opts.org must be set if opts.provider is set")):t.redirectUri||t.usePopupAuth||o(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),r&&r.error&&(r.accessToken=void 0,this._saveSettings(r),o(new Error(`[${r.error}] ${r.error_description}`))),r.accessToken&&this._saveSettings(r),this._testTokenAccess().then(()=>(!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData))).catch(r=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",r);const n={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(t.redirectUri&&(n.redirect_uri=encodeURIComponent(t.redirectUri)),t.state&&(n.state=encodeURIComponent(t.state)),t.org&&(n.org=encodeURIComponent(t.org)),t.provider&&(n.provider=encodeURIComponent(t.provider)),t.usePopupAuth){if(!this.hasLocalStorage)return o(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(n,t.popupTimeout||15e3).then(t=>{this._saveSettings(t),e(t)}).catch(o)}else{const t=this._buildAuthUrl("oauth/authorize",n);this._debug("Implicit grant: redirecting to: "+t),window.location.replace(t),o(new Error(`Routing to login: "${t}"`))}})})}setEnvironment(t){t||(t="mypurecloud.com"),(t=t.replace(/\/+$/,"")).startsWith("https://")&&(t=t.substring(8)),t.startsWith("http://")&&(t=t.substring(7)),t.startsWith("api.")&&(t=t.substring(4)),this.environment=t,this.basePath="https://api."+t,this.authUrl="https://login."+t}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(t){this.clearAuthData();const e={client_id:encodeURIComponent(this.clientId)};t&&(e.redirect_uri=encodeURIComponent(t));const r=this._buildAuthUrl("logout",e);window.location.replace(r)}setAccessToken(t){this._saveSettings({accessToken:t})}testAccessToken(t){return this.callApi("/api/v2/tokens/me","get",t)}parseDate(t){return new Date(t.replace(/T/i," "))}paramToString(t){return t?t instanceof Date?t.toJSON():t.toString():""}buildUrl(t,e={}){t.match(/^\//)||(t="/"+t);return(this.basePath+t).replace(/\{([\w-]+)\}/g,(t,r)=>{let o;return o=Object.getOwnPropertyDescriptor(e,r)?this.paramToString(e[r]):t,encodeURIComponent(o)})}callApi(t,e,r){var o;const n=this.buildUrl(t);return a.a[e](n).type("application/json").timeout(this.timeout).set("Authorization","Bearer "+(r||(null===(o=this.authData)||void 0===o?void 0:o.accessToken))).send()}_debug(t,e){this.config.debugMode&&v(t,e)}_saveSettings(t){try{if(this.authData.accessToken=t.accessToken,this.authentications["PureCloud OAuth"].accessToken=t.accessToken,t.state&&(this.authData.state=t.state),this.authData.error=t.error,this.authData.error_description=t.error_description,t.tokenExpiryTime&&(this.authData.tokenExpiryTime=t.tokenExpiryTime,this.authData.tokenExpiryTimeString=t.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(this.config.storageKey,JSON.stringify(e)),this._debug("Auth data saved to local storage",e)}catch(t){console.error(t)}}_getId(t){return"gc-ca_"+(t=t||h())}_authenticateViaPopup(t,e){const r=this._getId(),o=Object.assign(Object.assign({},t),{storageKey:this.config.storageKey});this.config.debugMode&&(o.debug=!0),localStorage.setItem(r,JSON.stringify(o)),t.state=r,t.redirect_uri||(t.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const n=this._buildAuthUrl("oauth/authorize",t);return new Promise((o,i)=>{this._debug("Implicit grant: opening new window: "+n),window.open(n,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const a=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",t);const e=new m("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");i(e)},e),s=t=>{if(this._debug("value was just written to storage by another app",{key:t.key,newValue:t.newValue,oldValue:t.oldValue}),t.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:t.key,value:t.newValue}),window.removeEventListener("storage",s),clearTimeout(a);const e=JSON.parse(t.newValue);localStorage.removeItem(r),o(e)}};window.addEventListener("storage",s)})}_testTokenAccess(){return o(this,void 0,void 0,(function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new g("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(t){throw this._saveSettings({accessToken:void 0}),t}}))}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const t=this.authData.state,e=localStorage.getItem(this.config.storageKey);this.authData=e?JSON.parse(e):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=t}_buildAuthUrl(t,e={}){return Object.keys(e).reduce((t,r)=>e[r]?`${t}&${r}=${e[r]}`:t,`${this.authUrl}/${t}?`)}}const j=()=>{const t=b();if(t.error)throw new Error(`[${t.error}]: ${t.error_description}`);if(!t.accessToken)throw new g("errorToken","No access token provided.");const e=t.state;if(!e)throw new g("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const r=JSON.parse(localStorage.getItem(e)||"false");if(!r||!r.storageKey)throw new g("errorParse","Unable to parse information from localStorage.");r.state?t.state=r.state:delete t.state,v("setting auth data to key: "+r.storageKey,t),localStorage.setItem(r.storageKey,JSON.stringify(t)),r.debug?v("In debug mode. Not closing window or removing storageId",{storageId:e,authData:t,href:window.location.href}):(v("removing temp storage key: "+e),localStorage.removeItem(e),v("closing window"),window.close())},A=new Map,E=(t,e)=>{let r=A.get(t);return r||(r=new O(t,e),A.set(t,r)),r};e.default=E}]);
2
2
  //# sourceMappingURL=genesys-cloud-client-auth.browser.min.js.map
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="https://dhqbrvplips7x.cloudfront.net/client-auth/0.0.2-37/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Genesys Cloud Client Authenticator</title><link href="https://dhqbrvplips7x.cloudfront.net/client-auth/0.0.2-37/static/css/main.3508dc5f.chunk.css" rel="stylesheet"></head><body><script src="https://dhqbrvplips7x.cloudfront.net/client-auth/0.0.2-37/genesys-cloud-client-auth.browser.min.js"></script><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,f=t[0],u=t[1],i=t[2],l=0,b=[];l<f.length;l++)o=f[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&b.push(a[o][0]),a[o]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(d&&d(t);b.length;)b.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,f=1;f<r.length;f++){var u=r[f];0!==a[u]&&(n=!1)}n&&(c.splice(t--,1),e=o(o.s=r[0]))}return e}var n={},a={4:0},c=[];function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,o.nc&&f.setAttribute("nonce",o.nc),f.src=function(e){return o.p+"static/js/"+({3:"polyfills-css-shim"}[e]||e)+"."+{0:"71c0b4a8",1:"8399f811",3:"4a931322",6:"8ac679aa",7:"a488d90e",8:"ab0b80c1",9:"12e26806",10:"8fb6019a",11:"aa22b687",12:"586642ff",13:"c0c5fd67",14:"c3e0d008",15:"20587752",16:"c19b0b1c",17:"06cd7ac8",18:"e02b6cd8",19:"2d45340c",20:"2be3997f",21:"90337a55",22:"0c42f6ee",23:"96d71d61",24:"c8a6aef1",25:"1549af44",26:"f5920959",27:"4c4b5337",28:"e4ae1c5b",29:"c8bcd088",30:"3f776fe2",31:"295a0045",32:"c6495395",33:"bc3f2778",34:"9c6f42a2",35:"080ac296",36:"30926ca6",37:"535e0baf",38:"c6142d9d",39:"4e5e9e70",40:"67f8a4cc",41:"8dc69989",42:"a8312848",43:"ce512d00",44:"197bff30",45:"9c281539",46:"8625525a",47:"89e00f8b",48:"1150630c",49:"d628f230",50:"f54ba3ed",51:"b1d2a0f9",52:"d9cdf428",53:"eb9374c8",54:"0246cd90",55:"f6407d07",56:"030f4c2c",57:"106fdb37",58:"9efa9671",59:"3b47d57a",60:"0335fabd",61:"cf7f57fc",62:"bb858ee5",63:"107ffad7",64:"a485a8c8",65:"3593d4bb",66:"9202016a",67:"45ef3717",68:"e638cd4b",69:"b404f87e",70:"32ae1b4a",71:"14e7b1f4",72:"6f860cde",73:"8839e5fd",74:"da2b0a38"}[e]+".chunk.js"}(e);var u=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(i);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+c+")",u.name="ChunkLoadError",u.type=n,u.request=c,r[1](u)}a[e]=void 0}};var i=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="https://dhqbrvplips7x.cloudfront.net/client-auth/0.0.2-37/",o.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpreact-app"]=this["webpackJsonpreact-app"]||[],u=f.push.bind(f);f.push=t,f=f.slice();for(var i=0;i<f.length;i++)t(f[i]);var d=u;r()}([])</script><script src="https://dhqbrvplips7x.cloudfront.net/client-auth/0.0.2-37/static/js/5.8b318946.chunk.js"></script><script src="https://dhqbrvplips7x.cloudfront.net/client-auth/0.0.2-37/static/js/main.4aab9f6d.chunk.js"></script></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/client-auth/build-assets/1.0.0-3/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Genesys Cloud Client Authenticator</title><script defer="defer" src="/client-auth/build-assets/1.0.0-3/static/js/main.fd57b2ac.js"></script><link href="/client-auth/build-assets/1.0.0-3/static/css/main.045d96b0.css" rel="stylesheet"></head><body><script src="/client-auth/build-assets/1.0.0-3/v1/genesys-cloud-client-auth.browser.min.js"></script><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  /* eslint-disable-next-line @typescript-eslint/no-inferrable-types */
5
- exports.VERSION = '0.0.2';
5
+ exports.VERSION = '1.0.0';
6
6
  exports.default = exports.VERSION;
7
7
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
1
  /* eslint-disable-next-line @typescript-eslint/no-inferrable-types */
2
- export const VERSION = '0.0.2';
2
+ export const VERSION = '1.0.0';
3
3
  export default VERSION;
4
4
  //# sourceMappingURL=version.js.map
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "client-auth",
3
+ "version": "1.0.0",
4
+ "build": "3",
5
+ "buildDate": "2022-06-17T19:13:54.633Z",
6
+ "indexFiles": [
7
+ {
8
+ "file": "index.html"
9
+ },
10
+ {
11
+ "file": "robots.txt"
12
+ },
13
+ {
14
+ "file": "/v1/genesys-cloud-client-auth.browser.min.js"
15
+ },
16
+ {
17
+ "file": "/v1.0.0/genesys-cloud-client-auth.browser.min.js"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,2 @@
1
+ body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.App{text-align:center}.content{align-items:center;background-color:#222529;color:#fff;display:flex;flex-direction:column;font-size:20px;justify-content:flex-start;min-height:100vh}gux-icon{font-size:5em;margin:50px 0;width:100%}
2
+ /*# sourceMappingURL=main.045d96b0.css.map*/
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/css/main.045d96b0.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCZA,KACE,iBAEF,CAEA,SAKE,kBAAmB,CAJnB,wBAAyB,CAOzB,UAAY,CALZ,YAAa,CACb,qBAAsB,CAGtB,cAAe,CADf,0BAA2B,CAJ3B,gBAOF,CAGA,SAEE,aAAc,CACd,aAAqB,CAFrB,UAGF","sources":["index.css","App.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n",".App {\n text-align: center;\n\n}\n\n.content {\n background-color: #222529;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n font-size: 20px;\n color: white;\n}\n\n\ngux-icon {\n width: 100%;\n font-size: 5em;\n margin: 50px 0 50px 0;\n}\n"],"names":[],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunkreact_app=self.webpackChunkreact_app||[]).push([[1089],{1089:function(t,e,o){o.r(e),o.d(e,{gux_button_slot_beta:function(){return a}});var n=o(5671),u=o(3144),b=o(4723),a=function(){function t(e){(0,n.Z)(this,t),(0,b.r)(this,e),this.accent="secondary"}return(0,u.Z)(t,[{key:"componentWillLoad",value:function(){var t=this.root.children[0].tagName;if("BUTTON"!==t){if("INPUT"===t){var e=this.root.children[0].getAttribute("type");if("button"===e||"submit"===e)return}console.error('gux-button-slot: You must slot a button, input[type="button"] or input[type="submit"] tag.')}}},{key:"render",value:function(){return(0,b.h)(b.H,{accent:this.accent},(0,b.h)("slot",null))}},{key:"root",get:function(){return(0,b.g)(this)}}]),t}();a.style="gux-button-slot-beta{display:inline-block;min-width:32px;pointer-events:none}gux-button-slot-beta input[type='button'],gux-button-slot-beta input[type='submit'],gux-button-slot-beta button{width:100%;height:32px;padding:0 16px;overflow:hidden;color:#33383d;text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:#e4e9f0;border:none;border-radius:4px;font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700}gux-button-slot-beta input[type='button'][disabled],gux-button-slot-beta input[type='submit'][disabled],gux-button-slot-beta button[disabled]{color:rgba(51, 56, 61, 0.5);cursor:default;background-color:rgba(228, 233, 240, 0.5)}gux-button-slot-beta input[type='button']:focus,gux-button-slot-beta input[type='submit']:focus,gux-button-slot-beta button:focus{outline:none}gux-button-slot-beta input[type='button']:focus:enabled,gux-button-slot-beta input[type='submit']:focus:enabled,gux-button-slot-beta button:focus:enabled{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}gux-button-slot-beta input[type='button']:hover:enabled,gux-button-slot-beta input[type='submit']:hover:enabled,gux-button-slot-beta button:hover:enabled{background-color:#d3dae2}gux-button-slot-beta input[type='button']:active:enabled,gux-button-slot-beta input[type='submit']:active:enabled,gux-button-slot-beta button:active:enabled{background-color:#c3cad4}gux-button-slot-beta[accent='primary'] input[type='button'],gux-button-slot-beta[accent='primary'] input[type='submit'],gux-button-slot-beta[accent='primary'] button{color:#fdfdfd;background-color:#2a60c8}gux-button-slot-beta[accent='primary'] input[type='button'][disabled],gux-button-slot-beta[accent='primary'] input[type='submit'][disabled],gux-button-slot-beta[accent='primary'] button[disabled]{color:rgba(253, 253, 253, 0.5);background-color:rgba(42, 96, 200, 0.5)}gux-button-slot-beta[accent='primary'] input[type='button']:hover:enabled,gux-button-slot-beta[accent='primary'] input[type='submit']:hover:enabled,gux-button-slot-beta[accent='primary'] button:hover:enabled{background-color:#2754ac}gux-button-slot-beta[accent='primary'] input[type='button']:active:enabled,gux-button-slot-beta[accent='primary'] input[type='submit']:active:enabled,gux-button-slot-beta[accent='primary'] button:active:enabled{background-color:#23478f}gux-button-slot-beta[accent='tertiary'] input[type='button'],gux-button-slot-beta[accent='tertiary'] input[type='submit'],gux-button-slot-beta[accent='tertiary'] button{color:#2a60c8;background-color:#fdfdfd;border:1px solid #2a60c8}gux-button-slot-beta[accent='tertiary'] input[type='button'][disabled],gux-button-slot-beta[accent='tertiary'] input[type='submit'][disabled],gux-button-slot-beta[accent='tertiary'] button[disabled]{color:rgba(42, 96, 200, 0.5);background-color:rgba(253, 253, 253, 0.5);border-color:rgba(42, 96, 200, 0.5)}gux-button-slot-beta[accent='tertiary'] input[type='button']:hover:enabled,gux-button-slot-beta[accent='tertiary'] input[type='submit']:hover:enabled,gux-button-slot-beta[accent='tertiary'] button:hover:enabled{color:#fdfdfd;background-color:#2754ac}gux-button-slot-beta[accent='tertiary'] input[type='button']:active:enabled,gux-button-slot-beta[accent='tertiary'] input[type='submit']:active:enabled,gux-button-slot-beta[accent='tertiary'] button:active:enabled{color:#fdfdfd;background-color:#23478f}"}}]);
2
+ //# sourceMappingURL=1089.fb722233.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/1089.fb722233.chunk.js","mappings":"wMAIIA,EAAa,WACf,WAAYC,IAAS,gBACnBC,EAAAA,EAAAA,GAAiBC,KAAMF,GAIvBE,KAAKC,OAAS,YAND,gDAQf,WACE,IAAMC,EAAiBF,KAAKG,KAAKC,SAAS,GAAGC,QAC7C,GAAuB,WAAnBH,EAAJ,CAGK,GAAuB,UAAnBA,EAA4B,CACnC,IAAMI,EAAmBN,KAAKG,KAAKC,SAAS,GAAGG,aAAa,QAC5D,GAAyB,WAArBD,GAAsD,WAArBA,EACnC,OAGJE,QAAQC,MAAM,iGAnBD,oBAqBf,WACE,OAAQC,EAAAA,EAAAA,GAAEC,EAAAA,EAAM,CAAEV,OAAQD,KAAKC,SAAUS,EAAAA,EAAAA,GAAE,OAAQ,SAtBtC,gBAwBf,WAAa,OAAOE,EAAAA,EAAAA,GAAWZ,UAxBhB,KA0BjBH,EAAcgB,MA5BW","sources":["../node_modules/@genesys/common-webcomponents/dist/esm/gux-button-slot-beta.entry.js"],"sourcesContent":["import { r as registerInstance, h, H as Host, g as getElement } from './index-5f3763b4.js';\n\nconst guxButtonSlotCss = \"gux-button-slot-beta{display:inline-block;min-width:32px;pointer-events:none}gux-button-slot-beta input[type='button'],gux-button-slot-beta input[type='submit'],gux-button-slot-beta button{width:100%;height:32px;padding:0 16px;overflow:hidden;color:#33383d;text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:#e4e9f0;border:none;border-radius:4px;font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700}gux-button-slot-beta input[type='button'][disabled],gux-button-slot-beta input[type='submit'][disabled],gux-button-slot-beta button[disabled]{color:rgba(51, 56, 61, 0.5);cursor:default;background-color:rgba(228, 233, 240, 0.5)}gux-button-slot-beta input[type='button']:focus,gux-button-slot-beta input[type='submit']:focus,gux-button-slot-beta button:focus{outline:none}gux-button-slot-beta input[type='button']:focus:enabled,gux-button-slot-beta input[type='submit']:focus:enabled,gux-button-slot-beta button:focus:enabled{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}gux-button-slot-beta input[type='button']:hover:enabled,gux-button-slot-beta input[type='submit']:hover:enabled,gux-button-slot-beta button:hover:enabled{background-color:#d3dae2}gux-button-slot-beta input[type='button']:active:enabled,gux-button-slot-beta input[type='submit']:active:enabled,gux-button-slot-beta button:active:enabled{background-color:#c3cad4}gux-button-slot-beta[accent='primary'] input[type='button'],gux-button-slot-beta[accent='primary'] input[type='submit'],gux-button-slot-beta[accent='primary'] button{color:#fdfdfd;background-color:#2a60c8}gux-button-slot-beta[accent='primary'] input[type='button'][disabled],gux-button-slot-beta[accent='primary'] input[type='submit'][disabled],gux-button-slot-beta[accent='primary'] button[disabled]{color:rgba(253, 253, 253, 0.5);background-color:rgba(42, 96, 200, 0.5)}gux-button-slot-beta[accent='primary'] input[type='button']:hover:enabled,gux-button-slot-beta[accent='primary'] input[type='submit']:hover:enabled,gux-button-slot-beta[accent='primary'] button:hover:enabled{background-color:#2754ac}gux-button-slot-beta[accent='primary'] input[type='button']:active:enabled,gux-button-slot-beta[accent='primary'] input[type='submit']:active:enabled,gux-button-slot-beta[accent='primary'] button:active:enabled{background-color:#23478f}gux-button-slot-beta[accent='tertiary'] input[type='button'],gux-button-slot-beta[accent='tertiary'] input[type='submit'],gux-button-slot-beta[accent='tertiary'] button{color:#2a60c8;background-color:#fdfdfd;border:1px solid #2a60c8}gux-button-slot-beta[accent='tertiary'] input[type='button'][disabled],gux-button-slot-beta[accent='tertiary'] input[type='submit'][disabled],gux-button-slot-beta[accent='tertiary'] button[disabled]{color:rgba(42, 96, 200, 0.5);background-color:rgba(253, 253, 253, 0.5);border-color:rgba(42, 96, 200, 0.5)}gux-button-slot-beta[accent='tertiary'] input[type='button']:hover:enabled,gux-button-slot-beta[accent='tertiary'] input[type='submit']:hover:enabled,gux-button-slot-beta[accent='tertiary'] button:hover:enabled{color:#fdfdfd;background-color:#2754ac}gux-button-slot-beta[accent='tertiary'] input[type='button']:active:enabled,gux-button-slot-beta[accent='tertiary'] input[type='submit']:active:enabled,gux-button-slot-beta[accent='tertiary'] button:active:enabled{color:#fdfdfd;background-color:#23478f}\";\n\nlet GuxButtonSlot = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * The component accent.\n */\n this.accent = 'secondary';\n }\n componentWillLoad() {\n const slottedTagName = this.root.children[0].tagName;\n if (slottedTagName === 'BUTTON') {\n return;\n }\n else if (slottedTagName === 'INPUT') {\n const slottedInputType = this.root.children[0].getAttribute('type');\n if (slottedInputType === 'button' || slottedInputType === 'submit') {\n return;\n }\n }\n console.error('gux-button-slot: You must slot a button, input[type=\"button\"] or input[type=\"submit\"] tag.');\n }\n render() {\n return (h(Host, { accent: this.accent }, h(\"slot\", null)));\n }\n get root() { return getElement(this); }\n};\nGuxButtonSlot.style = guxButtonSlotCss;\n\nexport { GuxButtonSlot as gux_button_slot_beta };\n"],"names":["GuxButtonSlot","hostRef","registerInstance","this","accent","slottedTagName","root","children","tagName","slottedInputType","getAttribute","console","error","h","Host","getElement","style"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunkreact_app=self.webpackChunkreact_app||[]).push([[1158],{1158:function(e,t,i){i.r(t),i.d(t,{gux_datepicker:function(){return w}});var n=i(4165),a=i(5861),r=i(885),s=i(5671),c=i(3144),l=i(4723),u=i(8125),o=i(1782),d=i(8782),p=i(7245),g=i(8068),h={start:"Start",end:"End",date:"Date",toggleCalendar:"Toggle calendar view"};function f(e,t){var i=new Date(t.getTime());return i.setDate(i.getDate()+e),e<0?i.getDate()>t.getDate()&&(i=new Date(t.getFullYear(),t.getMonth()+1,0,0,0,0)):i.getDate()<t.getDate()&&i.setMonth(i.getMonth()-1),i}function v(e,t){var i=new Date(t.valueOf()),n=function(e){for(var t=e;t<0;)t+=12;return t%12}(i.getMonth()+e);return i.setMonth(n),i.setFullYear(t.getFullYear()),i.getMonth()!==n?v(e,f(-1,t)):i}function m(e,t){var i=e[t];return i&&"/"!==i?i:e[t-1]}function x(e){return e.match(/\W/)[0]}function k(e){var t=x(e);return e.split(t).reduce((function(e,t){return e.concat(t[0])}),[])}function y(e,t){return{selectionStart:e.indexOf(t),selectionEnd:e.lastIndexOf(t)+1}}var b=function(e,t,i,n){var a,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},w=function(){function e(t){(0,s.Z)(this,e),(0,l.r)(this,t),this.input=(0,l.c)(this,"input",7),this.yearFormat="yyyy",this.focusingRange=!1,this.isSelectingRange=!1,this.lastYear=(new Date).getFullYear(),this.startInputId=(0,o.r)("gux-datepicker"),this.endInputId=(0,o.r)("gux-datepicker"),this.label="",this.numberOfMonths=1,this.minDate="",this.maxDate="",this.mode="single",this.format="mm/dd/yyyy",this.disabled=!1,this.firstDayOfWeek=0,this.formatedValue="",this.toFormatedValue="",this.active=!1}return(0,c.Z)(e,[{key:"watchValue",value:function(){this.updateDate()}},{key:"watchMinDate",value:function(e){this.minDateDate=e?(0,p.f)(e):null}},{key:"watchMaxDate",value:function(e){this.maxDateDate=e?(0,p.f)(e):null}},{key:"watchFormat",value:function(e){e.includes("yyyy")||(this.yearFormat="yy"),this.intervalOrder=k(e),this.lastIntervalRange=y(this.format,m(this.format,0))}},{key:"watchActiveCalendar",value:function(e){if(!0===e){var t=(0,p.f)(this.value.split("/")[0]);this.calendarElement.resetCalendarView(t)}}},{key:"onKeyDown",value:function(e){if(this.isFocusedFieldEvent(e))switch(this.focusedField=this.getInputFieldFromEvent(e),e.key){case"Enter":case"Escape":this.focusedField.blur(),this.active=!1;break;case"Tab":this.isSelectingRange=!0,this.setRange();break;case"ArrowDown":e.preventDefault(),this.increment(-1),this.setCursorRange();break;case"ArrowUp":e.preventDefault(),this.increment(1),this.setCursorRange();break;case"ArrowLeft":e.preventDefault();var t=function(e,t){var i=k(e),n=m(e,t.selectionStart),a=i.indexOf(n);return y(e,i[(a+i.length-1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(t),this.setCursorRange();break;case"ArrowRight":e.preventDefault();var i=function(e,t){var i=k(e),n=m(e,t.selectionStart),a=i.indexOf(n);return y(e,i[(a+1)%i.length])}(this.format,this.intervalRange);this.setIntervalRange(i),this.setCursorRange();break;default:e.preventDefault(),this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.updateIntervalValue(e),this.setCursorRange()}else switch(e.key){case"Enter":case"Escape":case" ":this.active=!1;var n=this.root.querySelector(".gux-calendar-toggle-button");setTimeout((function(){n.focus()}));break;case"Tab":this.active&&(this.active=!1)}}},{key:"onFocusIn",value:function(e){this.isFocusedFieldEvent(e)&&(this.isSelectingRange||(this.focusedField=this.getInputFieldFromEvent(e),this.setRange()))}},{key:"onFocusOut",value:function(e){this.root.contains(e.relatedTarget)||(this.lastIntervalRange=y(this.format,m(this.format,0)))}},{key:"onMouseDown",value:function(e){this.isFocusedFieldEvent(e)&&(this.isSelectingRange=!0);var t=e.target,i=this.datepickerElement.contains(t);Array.from(this.root.querySelectorAll(".gux-calendar-toggle-button")).every((function(e){return!e.contains(t)}))&&(this.active=i)}},{key:"onMouseUp",value:function(e){e.preventDefault(),this.isSelectingRange&&this.isFocusedFieldEvent(e)&&(this.focusedField=this.getInputFieldFromEvent(e),this.lastIntervalRange=y(this.format,m(this.format,this.focusedField.selectionStart)),this.setRange())}},{key:"onClickOutside",value:function(){this.active=!1}},{key:"isFocusedFieldEvent",value:function(e){return e.target===this.inputElement||e.target===this.toInputElement}},{key:"getInputFieldFromEvent",value:function(e){return e.target}},{key:"updateIntervalValue",value:function(e){var t=parseInt(e.key,10);if(!isNaN(t)){var i=this.focusedField.value.slice(this.focusedField.selectionStart,this.focusedField.selectionEnd);"y"===m(this.format,this.focusedField.selectionStart)&&"yyyy"===this.yearFormat?this.typeYearValue(i,e.key):this.canSetDate(t)?(this.updateSelection(this.focusedField,"".concat(i[1]).concat(e.key)),this.setValue()):(this.updateSelection(this.focusedField,"0".concat(e.key).replace("00","01")),this.setValue())}}},{key:"updateSelection",value:function(e,t){e.value=e.value.substr(0,this.intervalRange.selectionStart)+t+e.value.substr(this.intervalRange.selectionEnd)}},{key:"getCalendarLabels",value:function(){return e=[].concat(this.label||[]),t=this.mode,i=[this.i18n("start"),this.i18n("end"),this.i18n("date")],"range"===t?[e[0]||i[0],e[1]||i[1]]:"range"===t||e[0]?[e[0]]:[i[2]];var e,t,i}},{key:"stringToDate",value:function(e){var t=x(this.format),i=this.format.toLowerCase().split(t),n=e.split(t),a=parseInt(n[i.indexOf(this.yearFormat)],10),r=parseInt(n[i.indexOf("mm")],10)-1,s=parseInt(n[i.indexOf("dd")],10),c=new Date(a,r,s);return"yy"===this.yearFormat&&c.getFullYear()<1970&&this.lastYear>1970&&c.setFullYear(c.getFullYear()+100),c}},{key:"onCalendarSelect",value:function(e){var t=e.target;this.value=t.value,e.stopPropagation(),this.input.emit(this.value),this.updateDate(),this.inputElement.value=this.formatedValue,"range"===this.mode&&(this.toInputElement.value=this.toFormatedValue),document.activeElement===this.inputElement&&document.activeElement===this.toInputElement||(this.active=!1)}},{key:"setValue",value:function(){if("range"===this.mode){var e=this.stringToDate(this.inputElement.value),t=this.stringToDate(this.toInputElement.value);this.value=(0,p.a)(e,t),this.updateDate(),this.calendarElement.setValue([e,t])}else{var i=this.stringToDate(this.inputElement.value);this.value=(0,p.b)(i),this.updateDate(),this.calendarElement.setValue(i)}this.input.emit(this.value)}},{key:"setRange",value:function(){this.isSelectingRange=!1,this.setIntervalRange(this.lastIntervalRange),this.setCursorRange()}},{key:"typeYearValue",value:function(e,t){" "!==e[0]?this.updateSelection(this.focusedField," ".concat(t)):(this.updateSelection(this.focusedField,"".concat(e.substr(1)).concat(t)),(e.substr(1)+t).includes(" ")||this.setValue())}},{key:"canSetDate",value:function(e){var t=parseInt([this.focusedField.value[this.intervalRange.selectionEnd-1].toString(),e].join(""),10);if(t)switch(m(this.format,this.focusedField.selectionStart)){case"d":var i=(0,p.f)(this.value);if(t<=new Date(i.getFullYear(),i.getMonth()+1,0).getDate())return!0;break;case"m":if(t<=12)return!0;break;case"y":return!0}return!1}},{key:"getMapAndRegexFromField",value:function(e){var t={dd:"0".concat(e.getDate()).slice(-2),mm:"0".concat(e.getMonth()+1).slice(-2)};return"yyyy"===this.yearFormat?t.yyyy=e.getFullYear().toString():t.yy=e.getFullYear().toString().slice(-2),{map:t,regexp:new RegExp(Object.keys(t).join("|"),"gi")}}},{key:"updateDate",value:function(){if("range"===this.mode){var e=(0,p.c)(this.value),t=(0,r.Z)(e,2),i=t[0],n=t[1],a=this.getMapAndRegexFromField(i),s=a.map,c=a.regexp;this.formatedValue=this.format.replace(c,(function(e){return s[e]}));var l=this.getMapAndRegexFromField(n),u=l.map,o=l.regexp;this.toFormatedValue=this.format.replace(o,(function(e){return u[e]}))}else{var d=(0,p.f)(this.value),g=this.getMapAndRegexFromField(d),h=g.map,f=g.regexp;this.formatedValue=this.format.replace(f,(function(e){return h[e]}))}}},{key:"setCursorRange",value:function(){this.intervalRange&&this.focusedField.setSelectionRange(this.intervalRange.selectionStart,this.intervalRange.selectionEnd)}},{key:"toggleCalendar",value:function(){var e=this;this.active=!this.active,this.active&&setTimeout((function(){e.calendarElement.focusPreviewDate()}))}},{key:"setIntervalRange",value:function(e){this.intervalRange=e}},{key:"getCombinedFocusedDateValue",value:function(){return"range"===this.mode?this.getRangeFocusedDateValue():this.getFocusedDateValue()}},{key:"getFocusedDateValue",value:function(){return(0,p.f)(this.value)}},{key:"getRangeFocusedDateValue",value:function(){var e=(0,p.c)(this.value),t=(0,r.Z)(e,2),i=t[0],n=t[1];return this.focusedField===this.inputElement?i:n}},{key:"increment",value:function(e){var t,i,n,a,r=m(this.format,this.focusedField.selectionStart),s=this.getCombinedFocusedDateValue();switch(r){case"d":t=f(e,s);break;case"m":t=v(e,s);break;case"y":t=function(e,t){var i=new Date(t.valueOf());return i.setFullYear(t.getFullYear()+e),i}(e,s)}i=t,n=this.minDateDate,((a=this.maxDateDate)&&a<i||n&&n>i)&&(t=s),this.lastYear=t.getFullYear(),this.setIntervalRange({selectionStart:this.focusedField.selectionStart,selectionEnd:this.focusedField.selectionEnd}),this.focusedField.value=function(e,t){var i=x(t),n=t.split(i).map((function(t){switch(t[0]){case"d":return function(e){return"0".concat(e.getDate().toString()).slice(-2)}(e);case"m":return function(e){return"0".concat((e.getMonth()+1).toString()).slice(-2)}(e);case"y":return function(e,t){return"yyyy"===t?e.getFullYear().toString():e.getFullYear().toString().slice(-2)}(e,t)}})).join(i);return n}(t,this.format),this.setValue()}},{key:"componentWillLoad",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(){var t;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,u.t)(this.root,{variant:this.mode}),e.next=3,(0,d.b)(this.root,h);case 3:this.i18n=e.sent,this.watchMinDate(this.minDate),this.watchMaxDate(this.maxDate),this.watchFormat(this.format),this.value||((t=new Date).setHours(0,0,0,0),"range"===this.mode?this.value=(0,p.a)(t,t):this.value=(0,p.b)(t),"range"===this.mode&&this.numberOfMonths<2&&(this.numberOfMonths=2));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentDidLoad",value:function(){this.updateDate()}},{key:"renderCalendarToggleButton",value:function(){var e=this;return(0,l.h)("button",{class:"gux-calendar-toggle-button",type:"button",onClick:function(){return e.toggleCalendar()},"aria-expanded":this.active.toString(),"aria-label":this.i18n("toggleCalendar"),disabled:this.disabled},(0,l.h)("gux-icon",{decorative:!0,"icon-name":"calendar"}))}},{key:"renderCalendar",value:function(){var e=this;return(0,l.h)("gux-calendar",{ref:function(t){return e.calendarElement=t},value:this.value,mode:this.mode,onInput:function(t){return e.onCalendarSelect(t)},minDate:this.minDate,maxDate:this.maxDate,firstDayOfWeek:this.firstDayOfWeek,numberOfMonths:this.numberOfMonths})}},{key:"renderStartDateField",value:function(){var e=this;return(0,l.h)("div",{class:"gux-datepicker-field"},(0,l.h)("label",{htmlFor:this.startInputId,class:{"gux-datepicker-field-label":!0,"gux-sr-only":"single"===this.mode&&!this.label}},this.getCalendarLabels()[0]),(0,l.h)("div",{class:"gux-datepicker-field-input"},(0,l.h)("div",{class:"gux-datepicker-field-text-input"},(0,l.h)("input",{id:this.startInputId,type:"text",ref:function(t){return e.inputElement=t},value:this.formatedValue,disabled:this.disabled}),this.renderCalendarToggleButton()),this.renderCalendar()))}},{key:"renderEndDateField",value:function(){var e=this;return"single"===this.mode?null:(0,l.h)("div",{class:"gux-datepicker-field"},(0,l.h)("label",{htmlFor:this.endInputId,class:"gux-datepicker-field-label"},this.getCalendarLabels()[1]),(0,l.h)("div",{class:"gux-datepicker-field-input"},(0,l.h)("div",{class:"gux-datepicker-field-text-input"},(0,l.h)("input",{id:this.endInputId,type:"text",ref:function(t){return e.toInputElement=t},value:this.toFormatedValue,disabled:this.disabled}),this.renderCalendarToggleButton())))}},{key:"render",value:function(){var e=this;return(0,l.h)("div",{class:{"gux-datepicker":!0,"gux-active":this.active,"gux-disabled":this.disabled},ref:function(t){return e.datepickerElement=t}},this.renderStartDateField(),this.renderEndDateField())}},{key:"root",get:function(){return(0,l.g)(this)}}],[{key:"watchers",get:function(){return{value:["watchValue"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],format:["watchFormat"],active:["watchActiveCalendar"]}}}]),e}();b([(0,g.O)({triggerEvents:"mousedown"})],w.prototype,"onClickOutside",null),w.style="gux-datepicker{display:block}gux-datepicker .gux-datepicker{display:inline-block}gux-datepicker .gux-datepicker.gux-disabled{pointer-events:none;cursor:default}gux-datepicker .gux-datepicker.gux-disabled .gux-datepicker-field .gux-datepicker-field-input{opacity:0.5}gux-datepicker .gux-datepicker .gux-datepicker-field{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start}gux-datepicker .gux-datepicker .gux-datepicker-field~.gux-datepicker-field{margin-left:20px}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-label{flex:0 1 auto;align-self:auto;order:0;margin-right:8px;font-size:12px;font-weight:bold;line-height:20px}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input{position:relative;flex:0 1 auto;align-self:auto;order:0;margin:4px 0}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 8px;font-family:inherit;font-size:12px;line-height:1.66666667;color:#33383d;background-color:#f8f8f8;background-image:none;border:1px solid #77828f;border-radius:4px;box-shadow:inset 0 0 4px rgba(34, 37, 41, 0.16)}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input{flex:1 1 auto;align-self:auto;order:0;width:100px;overflow:hidden;color:#33383d;background-color:#f8f8f8;border:none;outline:none}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::placeholder{color:#666f7b;opacity:1}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-cancel-button,gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-search-results-button,gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#666f7b;background:transparent;border:none}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus,gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#33383d;cursor:pointer}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button gux-icon{width:16px;height:16px}gux-datepicker .gux-datepicker .gux-datepicker-field .gux-datepicker-field-input gux-calendar{position:absolute;top:30px;z-index:1;display:none}gux-datepicker .gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button{color:#2a60c8}gux-datepicker .gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):focus,gux-datepicker .gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input .gux-datepicker-field-text-input button:not(:disabled):hover{color:#2a60c8}gux-datepicker .gux-datepicker.gux-active .gux-datepicker-field .gux-datepicker-field-input gux-calendar{display:block}gux-datepicker .gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}"},7245:function(e,t,i){i.d(t,{a:function(){return r},b:function(){return a},c:function(){return c},f:function(){return s}});var n=i(885);function a(e){var t=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t,"-").concat(i)}function r(e,t){var i=[e,t].sort((function(e,t){return e<t?-1:1})),r=(0,n.Z)(i,2),s=r[0],c=r[1];return"".concat(a(s),"/").concat(a(c))}function s(e){var t=e.split("-"),i=(0,n.Z)(t,3),a=i[0],r=i[1],s=i[2],c=parseInt(a,10),l=parseInt(r,10)-1,u=parseInt(s,10);return new Date(c,l,u)}function c(e){var t=e.split("/"),i=(0,n.Z)(t,2),a=i[0],r=i[1];return[s(a),s(r)]}},8068:function(e,t,i){i.d(t,{O:function(){return r}});var n=i(4723),a={triggerEvents:"click",exclude:""};function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return function(t,i){var a=t.connectedCallback,r=t.disconnectedCallback;t.connectedCallback=function(){return s(this,(0,n.g)(this),this[i],e),a&&a.call(this)},t.disconnectedCallback=function(){return c(this,(0,n.g)(this),this[i],e),r&&r.call(this)}}}function s(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a,r=o(n);u(n).forEach((function(n){window.addEventListener(n,(function(n){l(n,e,t,i,r)}),!1)}))}function c(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;u(n).forEach((function(n){window.removeEventListener(n,(function(n){l(n,e,t,i)}),!1)}))}function l(e,t,i,n,a){var r=e.composedPath();r.includes(i)||function(e,t){if(e&&t)return t.some((function(t){return e.includes(t)}));return!1}(r,a)||n.call(t,e)}function u(e){return e.triggerEvents?e.triggerEvents.split(",").map((function(e){return e.trim()})):["click"]}function o(e){if(e.exclude)try{return Array.from(document.querySelectorAll(e.exclude))}catch(t){console.warn("@OnClickOutside: Exclude: '".concat(e.exclude,"' will not be evaluated. Check your exclude selector syntax."),t)}}},1782:function(e,t,i){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gux";return"".concat(e,"-").concat(Math.random().toString(36).substr(2,10))}i.d(t,{r:function(){return n}})},8125:function(e,t,i){i.d(t,{t:function(){return c}});var n=i(885),a={name:"@genesys/common-webcomponents",version:"2.55.3",description:"Common webcomponents",license:"MIT",main:"dist/stencil-wrapper.js",types:"dist/types/index.d.ts",collection:"dist/collection/collection-manifest.json",files:["dist/"],scripts:{build:"npm run clean && npm run i18n && npm run stencil && npm run docs && npm run build-wrapper","build-wrapper":"./scripts/wrap-stencil.js","check-readmes":"./scripts/check-readmes.sh",clean:"rm -r ./dist || true",commit:"git-cz","create-component":"node scripts/create-component.js",dev:'npx concurrently "npm run stencil.dev" "npm run docs.dev"',"dev.public":'npx concurrently "npm run stencil.dev" "npm run docs.dev.public"',docs:"cd ./docs && npm run build","docs.dev":"cd ./docs && npm run start","docs.dev.public":"cd ./docs && npm run start -- --host 0.0.0.0",format:'prettier "./**/*.{ts,tsx,js,jsx,json,css,html,less}"',"format.check":"npm run format -- --check","format.fix":"npm run format -- --write","generate-start-of-week-file":"./scripts/generate-start-of-week-file.js","generate-versions-file":"./scripts/generate-versions-file.mjs",i18n:"npm run generate-start-of-week-file && ./scripts/build-i18n.js",lint:"npm run lint.commit && npm run lint.ts && npm run lint.css && npm run lint.svg","lint.commit":"commitlint -f 811627c6ed30490b975acc4cbc2c2f4bac32e8ae","lint.css":"npx stylelint '**/*.{css,html,less}' --fix","lint.fix":"npm run lint.commit && npm run lint.ts -- --fix && npm run lint.css -- --fix","lint.svg":"svgo -f ./src/components/stable/gux-icon/icons","lint.ts":"tslint --project .","list-component-tracking":"./scripts/list-component-tracking.js","list-shadow-explicitly-set":"./scripts/list-shadow-explicitly-set.js","list-i18n-files":"./scripts/list-i18n-files.js",predev:"npm run i18n","predev.public":"npm run predev",prepare:"./scripts/prepare-docs.sh && npm run i18n && husky install",release:"standard-version",stencil:"stencil build --prod","stencil.dev":"stencil build --dev --watch --docs",test:"stencil test --spec --e2e","test.ci":"npm run test.ci.spec && npm run test.ci.e2e","test.ci.spec":"stencil test --spec","test.ci.e2e":"stencil test --e2e --max-workers=1","test.e2e":"stencil test --e2e","test.e2e.update-snapshot":"stencil test --e2e --updateSnapshot","test.screenshot":"stencil test --e2e --screenshot","test.unit":"stencil build dev && stencil test --spec","test.unit.update-snapshot":"stencil test --spec --updateSnapshot","test.update-snapshot":"stencil test --spec --e2e --updateSnapshot","test.watch":"stencil test --spec --e2e --watchAll"},dependencies:{"@popperjs/core":"^2.10.2","intl-messageformat":"~9.4.9","requestanimationframe-timer":"^3.0.3",sortablejs:"^1.14.0","stencil-click-outside":"^1.7.1"},devDependencies:{"@babel/core":"^7.15.8","@babel/preset-env":"^7.15.8","@commitlint/cli":"^13.2.1","@commitlint/config-conventional":"^13.2.0","@rollup/plugin-replace":"^3.0.0","@stencil/core":"^2.9.0","@stencil/less":"^1.0.0","@stencil/utils":"0.0.5","@types/jest":"^26.0.24","@types/jsdom":"^16.2.13","@types/new-relic-browser":"^0.1118.2","@types/puppeteer":"^5.4.4","@types/resize-observer-browser":"^0.1.6","@types/sortablejs":"^1.10.7","axe-live":"^0.1.0","babel-loader":"^8.2.3",commitizen:"^4.2.4",concurrently:"^6.3.0","cz-conventional-changelog":"^3.3.0","file-loader":"^6.2.0",glob:"^7.2.0",handlebars:"^4.7.7",husky:"^7.0.4",inquirer:"^8.2.0",jest:"^26.6.3","jest-cli":"^26.6.3","jest-config":"^26.6.3","jest-environment-node":"^26.6.2","jest-junit":"^13.0.0",jsdom:"^18.0.0","lint-staged":"^11.2.3",marked:"^3.0.7","mutation-observer":"^1.0.3","node-fetch":"^3.2.1",prettier:"^2.4.1",puppeteer:"^10.4.0",rollup:"^2.58.0","rollup-plugin-copy":"^3.4.0","rollup-plugin-less":"^1.1.3","semver-sort":"^1.0.0","standard-version":"^9.3.2",stylelint:"^13.13.1","stylelint-config-prettier":"^9.0.3","stylelint-config-recess-order":"^2.5.0","stylelint-config-standard":"^22.0.0",svgo:"^2.7.0","ts-loader":"^9.2.6",tslint:"^6.1.3","tslint-config-prettier":"^1.18.0",typescript:"^3.9.10",weekstart:"^1.1.0",xmldom:"^0.6.0"},repository:{type:"git",url:"git+bitbucket.org:inindca/genesys-webcomponents.git"},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}},commitlint:{extends:["@commitlint/config-conventional"],rules:{"subject-case":[2,"never",["pascal-case","upper-case"]]}},stylelint:{extends:["stylelint-config-standard","stylelint-config-recess-order","stylelint-config-prettier"],rules:{"no-descending-specificity":null,"no-duplicate-selectors":null,"selector-type-no-unknown":[!0,{ignoreTypes:["/^gux-/","lineargradient"]}]}},"lint-staged":{"*.{css,html,less}":["stylelint --fix","prettier --write"],"*.{ts,tsx}":["tslint --fix","prettier --write"],"*.{js,jsx,json}":"prettier --write","*.svg":"svgo -i"}},r="spark-library",s=!1;function c(e,t){var i=window.newrelic;i&&(s||(!function(){var e=window.newrelic;if(!e)return;var t=a.version.split("."),i=(0,n.Z)(t,3),s=i[0],c=i[1],l=i[2];e.addPageAction(r,{fullVersion:"".concat(s,".").concat(c,".").concat(l),majorVersion:s,minorVersion:"".concat(s,".").concat(c)})}(),s=!0),i.addPageAction("spark-component",Object.assign(Object.assign({},t),{component:e.tagName.toLowerCase(),version:a.version})))}}}]);
2
+ //# sourceMappingURL=1158.76a41325.chunk.js.map