@beesolve/analytics-dashboard 0.4.0 → 0.5.0

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 (283) hide show
  1. package/dist/build/client/_app/immutable/assets/11.DD3-EQ86.css +1 -0
  2. package/dist/build/client/_app/immutable/assets/11.DD3-EQ86.css.br +0 -0
  3. package/dist/build/client/_app/immutable/assets/11.DD3-EQ86.css.gz +0 -0
  4. package/dist/build/client/_app/immutable/assets/5.BApvERkS.css +1 -0
  5. package/dist/build/client/_app/immutable/assets/5.BApvERkS.css.br +0 -0
  6. package/dist/build/client/_app/immutable/assets/5.BApvERkS.css.gz +0 -0
  7. package/dist/build/client/_app/immutable/chunks/{CSGsgODA.js → BVOgsk_0.js} +1 -1
  8. package/dist/build/client/_app/immutable/chunks/BVOgsk_0.js.br +0 -0
  9. package/dist/build/client/_app/immutable/chunks/BVOgsk_0.js.gz +0 -0
  10. package/dist/build/client/_app/immutable/chunks/{DRdoYxz9.js → Bh4Hq2nf.js} +1 -1
  11. package/dist/build/client/_app/immutable/chunks/Bh4Hq2nf.js.br +0 -0
  12. package/dist/build/client/_app/immutable/chunks/Bh4Hq2nf.js.gz +0 -0
  13. package/dist/build/client/_app/immutable/chunks/CTzogEfP.js +3 -0
  14. package/dist/build/client/_app/immutable/chunks/CTzogEfP.js.br +0 -0
  15. package/dist/build/client/_app/immutable/chunks/CTzogEfP.js.gz +0 -0
  16. package/dist/build/client/_app/immutable/chunks/{D78JuD5E.js → CfBqEf89.js} +1 -1
  17. package/dist/build/client/_app/immutable/chunks/CfBqEf89.js.br +0 -0
  18. package/dist/build/client/_app/immutable/chunks/{D78JuD5E.js.gz → CfBqEf89.js.gz} +0 -0
  19. package/dist/build/client/_app/immutable/chunks/{Chmvodxk.js → DZ-LRDzW.js} +1 -1
  20. package/dist/build/client/_app/immutable/chunks/DZ-LRDzW.js.br +0 -0
  21. package/dist/build/client/_app/immutable/chunks/DZ-LRDzW.js.gz +0 -0
  22. package/dist/build/client/_app/immutable/chunks/DiV4tLpJ.js +3 -0
  23. package/dist/build/client/_app/immutable/chunks/DiV4tLpJ.js.br +0 -0
  24. package/dist/build/client/_app/immutable/chunks/DiV4tLpJ.js.gz +0 -0
  25. package/dist/build/client/_app/immutable/chunks/{BglOMzbH.js → DkLCQeak.js} +1 -1
  26. package/dist/build/client/_app/immutable/chunks/DkLCQeak.js.br +0 -0
  27. package/dist/build/client/_app/immutable/chunks/DkLCQeak.js.gz +0 -0
  28. package/dist/build/client/_app/immutable/chunks/Ql914-tg.js +1 -0
  29. package/dist/build/client/_app/immutable/chunks/Ql914-tg.js.br +2 -0
  30. package/dist/build/client/_app/immutable/chunks/Ql914-tg.js.gz +0 -0
  31. package/dist/build/client/_app/immutable/chunks/ezgVK28A.js +1 -0
  32. package/dist/build/client/_app/immutable/chunks/ezgVK28A.js.br +1 -0
  33. package/dist/build/client/_app/immutable/chunks/ezgVK28A.js.gz +0 -0
  34. package/dist/build/client/_app/immutable/entry/app.D28EOmbX.js +2 -0
  35. package/dist/build/client/_app/immutable/entry/app.D28EOmbX.js.br +0 -0
  36. package/dist/build/client/_app/immutable/entry/app.D28EOmbX.js.gz +0 -0
  37. package/dist/build/client/_app/immutable/entry/{start.V_sfGyaE.js → start.B2UjHoR5.js} +2 -2
  38. package/dist/build/client/_app/immutable/entry/start.B2UjHoR5.js.br +0 -0
  39. package/dist/build/client/_app/immutable/entry/start.B2UjHoR5.js.gz +0 -0
  40. package/dist/build/client/_app/immutable/nodes/0.CoLrUie4.js +1 -0
  41. package/dist/build/client/_app/immutable/nodes/0.CoLrUie4.js.br +0 -0
  42. package/dist/build/client/_app/immutable/nodes/0.CoLrUie4.js.gz +0 -0
  43. package/dist/build/client/_app/immutable/nodes/1.9HQMtqWC.js +1 -0
  44. package/dist/build/client/_app/immutable/nodes/1.9HQMtqWC.js.br +0 -0
  45. package/dist/build/client/_app/immutable/nodes/1.9HQMtqWC.js.gz +0 -0
  46. package/dist/build/client/_app/immutable/nodes/10.5W1tZtT1.js +1 -0
  47. package/dist/build/client/_app/immutable/nodes/10.5W1tZtT1.js.br +0 -0
  48. package/dist/build/client/_app/immutable/nodes/10.5W1tZtT1.js.gz +0 -0
  49. package/dist/build/client/_app/immutable/nodes/11.C8Eso8Rg.js +1 -0
  50. package/dist/build/client/_app/immutable/nodes/11.C8Eso8Rg.js.br +0 -0
  51. package/dist/build/client/_app/immutable/nodes/11.C8Eso8Rg.js.gz +0 -0
  52. package/dist/build/client/_app/immutable/nodes/2.fLuR_Zx-.js +1 -0
  53. package/dist/build/client/_app/immutable/nodes/2.fLuR_Zx-.js.br +0 -0
  54. package/dist/build/client/_app/immutable/nodes/2.fLuR_Zx-.js.gz +0 -0
  55. package/dist/build/client/_app/immutable/nodes/3.W0y5wF8r.js +2 -0
  56. package/dist/build/client/_app/immutable/nodes/3.W0y5wF8r.js.br +0 -0
  57. package/dist/build/client/_app/immutable/nodes/3.W0y5wF8r.js.gz +0 -0
  58. package/dist/build/client/_app/immutable/nodes/4.63WhDK_b.js +1 -0
  59. package/dist/build/client/_app/immutable/nodes/4.63WhDK_b.js.br +0 -0
  60. package/dist/build/client/_app/immutable/nodes/4.63WhDK_b.js.gz +0 -0
  61. package/dist/build/client/_app/immutable/nodes/5.CQt-7vVW.js +1 -0
  62. package/dist/build/client/_app/immutable/nodes/5.CQt-7vVW.js.br +0 -0
  63. package/dist/build/client/_app/immutable/nodes/5.CQt-7vVW.js.gz +0 -0
  64. package/dist/build/client/_app/immutable/nodes/6.CxXn0Kqx.js +1 -0
  65. package/dist/build/client/_app/immutable/nodes/6.CxXn0Kqx.js.br +0 -0
  66. package/dist/build/client/_app/immutable/nodes/6.CxXn0Kqx.js.gz +0 -0
  67. package/dist/build/client/_app/immutable/nodes/7.CGjfXWdj.js +1 -0
  68. package/dist/build/client/_app/immutable/nodes/7.CGjfXWdj.js.br +3 -0
  69. package/dist/build/client/_app/immutable/nodes/7.CGjfXWdj.js.gz +0 -0
  70. package/dist/build/client/_app/immutable/nodes/8.B3Gd4jRK.js +1 -0
  71. package/dist/build/client/_app/immutable/nodes/8.B3Gd4jRK.js.br +0 -0
  72. package/dist/build/client/_app/immutable/nodes/8.B3Gd4jRK.js.gz +0 -0
  73. package/dist/build/client/_app/immutable/nodes/9.wFYin0mB.js +1 -0
  74. package/dist/build/client/_app/immutable/nodes/9.wFYin0mB.js.br +0 -0
  75. package/dist/build/client/_app/immutable/nodes/9.wFYin0mB.js.gz +0 -0
  76. package/dist/build/client/_app/version.json +1 -1
  77. package/dist/build/client/_app/version.json.br +0 -0
  78. package/dist/build/client/_app/version.json.gz +0 -0
  79. package/dist/build/server/{0-XGUHJA4P.js → 0-FMOA5I7O.js} +2 -2
  80. package/dist/build/server/{1-SRMMBTGA.js → 1-HRP4ECGA.js} +2 -2
  81. package/dist/build/server/10-WFZTJX3I.js +3 -0
  82. package/dist/build/server/{7-N4XOK4FU.js.map → 10-WFZTJX3I.js.map} +2 -2
  83. package/dist/build/server/11-IWVF3GUO.js +3 -0
  84. package/dist/build/server/{10-5JTZP322.js.map → 11-IWVF3GUO.js.map} +2 -2
  85. package/dist/build/server/{2-E7OIJDC2.js → 2-VU2LYUGL.js} +2 -2
  86. package/dist/build/server/3-XWBGH2MM.js +3 -0
  87. package/dist/build/server/4-PTN7C56J.js +3 -0
  88. package/dist/build/server/5-ZDDR3LLX.js +3 -0
  89. package/dist/build/server/5-ZDDR3LLX.js.map +6 -0
  90. package/dist/build/server/6-JJDN5APO.js +3 -0
  91. package/dist/build/server/{9-AXPM2XC2.js.map → 6-JJDN5APO.js.map} +2 -2
  92. package/dist/build/server/7-EMLLQ5LV.js +3 -0
  93. package/dist/build/server/{8-4QMUUNSQ.js.map → 7-EMLLQ5LV.js.map} +2 -2
  94. package/dist/build/server/8-K2MCTGE7.js +3 -0
  95. package/dist/build/server/{5-ROQRH7VU.js.map → 8-K2MCTGE7.js.map} +1 -1
  96. package/dist/build/server/{6-JGND33KR.js → 9-ORFCYE2E.js} +2 -2
  97. package/dist/build/server/{6-JGND33KR.js.map → 9-ORFCYE2E.js.map} +1 -1
  98. package/dist/build/server/{_layout.svelte-74KBVZ7D.js → _layout.svelte-26H3AYHX.js} +2 -2
  99. package/dist/build/server/{_layout.svelte-74KBVZ7D.js.map → _layout.svelte-26H3AYHX.js.map} +1 -1
  100. package/dist/build/server/{_page.svelte-F23I4Q3N.js → _page.svelte-6QOSNAPZ.js} +2 -2
  101. package/dist/build/server/_page.svelte-F7FYLZZQ.js +3 -0
  102. package/dist/build/server/{_page.svelte-RJXW4ENQ.js.map → _page.svelte-F7FYLZZQ.js.map} +1 -1
  103. package/dist/build/server/_page.svelte-HR4JAE4Y.js +3 -0
  104. package/dist/build/server/_page.svelte-HR4JAE4Y.js.map +6 -0
  105. package/dist/build/server/_page.svelte-MHWRA6Y2.js +3 -0
  106. package/dist/build/server/_page.svelte-MHWRA6Y2.js.map +6 -0
  107. package/dist/build/server/{_page.svelte-N72PJISX.js → _page.svelte-O6XITZ52.js} +2 -2
  108. package/dist/build/server/{_page.svelte-N72PJISX.js.map → _page.svelte-O6XITZ52.js.map} +2 -2
  109. package/dist/build/server/_page.svelte-OSVW7L4G.js +3 -0
  110. package/dist/build/server/_page.svelte-OSVW7L4G.js.map +6 -0
  111. package/dist/build/server/{_page.svelte-ABHCB3JO.js → _page.svelte-XFGQKSFQ.js} +2 -2
  112. package/dist/build/server/{chunk-SUG3COTW.js → chunk-6NKFNTT3.js} +2 -2
  113. package/dist/build/server/{chunk-QVI2JPUZ.js → chunk-7ORZDQKB.js} +2 -2
  114. package/dist/build/server/chunk-7TDI4YTA.js +3 -0
  115. package/dist/build/server/chunk-7TDI4YTA.js.map +6 -0
  116. package/dist/build/server/{chunk-EDVCNAY4.js → chunk-CAZXUYI4.js} +8 -8
  117. package/dist/build/server/{chunk-EDVCNAY4.js.map → chunk-CAZXUYI4.js.map} +2 -2
  118. package/dist/build/server/chunk-CE4O3S26.js +9 -0
  119. package/dist/build/server/{chunk-TFJKZQFL.js.map → chunk-CE4O3S26.js.map} +1 -1
  120. package/dist/build/server/chunk-CIVNMUP4.js +3 -0
  121. package/dist/build/server/chunk-CIVNMUP4.js.map +6 -0
  122. package/dist/build/server/{chunk-4B4T2UH4.js → chunk-COYUJLBR.js} +2 -2
  123. package/dist/build/server/chunk-FWQ74KMZ.js +3 -0
  124. package/dist/build/server/{chunk-SGVNW5YS.js.map → chunk-FWQ74KMZ.js.map} +1 -1
  125. package/dist/build/server/chunk-GMU24ZMO.js +3 -0
  126. package/dist/build/server/chunk-GMU24ZMO.js.map +6 -0
  127. package/dist/build/server/{chunk-MJOYXXCW.js → chunk-I4S422PQ.js} +2 -2
  128. package/dist/build/server/{chunk-W5YFYASF.js → chunk-KA3MJBXM.js} +2 -2
  129. package/dist/build/server/{chunk-UJJESI6B.js → chunk-KHGYICM3.js} +2 -2
  130. package/dist/build/server/chunk-KTGJB7M3.js +3 -0
  131. package/dist/build/server/{chunk-BWCPJTPJ.js.map → chunk-KTGJB7M3.js.map} +1 -1
  132. package/dist/build/server/chunk-R6JNHPUE.js +3 -0
  133. package/dist/build/server/{chunk-N5VHPYVR.js.map → chunk-R6JNHPUE.js.map} +1 -1
  134. package/dist/build/server/{chunk-YGLOO2DN.js → chunk-RJLO3ZOK.js} +2 -2
  135. package/dist/build/server/chunk-UWZTBH4Y.js +3 -0
  136. package/dist/build/server/{chunk-3J753MEA.js.map → chunk-UWZTBH4Y.js.map} +1 -1
  137. package/dist/build/server/{chunk-PXUKBFFD.js → chunk-Y7D223T7.js} +2 -2
  138. package/dist/build/server/chunk-YB2BRPFF.js +3 -0
  139. package/dist/build/server/chunk-YB2BRPFF.js.map +6 -0
  140. package/dist/build/server/{chunk-3AWMNMNO.js → chunk-YT7GXW3T.js} +2 -2
  141. package/dist/build/server/{chunk-TGC5GAFE.js → chunk-ZB4GC6MX.js} +2 -2
  142. package/dist/build/server/{dist-es-CXXNDADM.js → dist-es-UYSTLTTZ.js} +2 -2
  143. package/dist/build/server/{dist-es3-DHVCSDXO.js → dist-es3-77ZYOMBT.js} +2 -2
  144. package/dist/build/server/{dist-es4-WVQHEEGI.js → dist-es4-KDFV3JNC.js} +2 -2
  145. package/dist/build/server/{dist-es6-GJBWAT3F.js → dist-es6-3LIOBPYN.js} +2 -2
  146. package/dist/build/server/{dist-es7-V42RESE5.js → dist-es7-XTZQI2TF.js} +2 -2
  147. package/dist/build/server/{event-streams-JVKHUG3W.js → event-streams-ICBTGIY7.js} +2 -2
  148. package/dist/build/server/handler.js +1 -1
  149. package/dist/build/server/{hooks.server-UAWULKDF.js → hooks.server-LWQUJPMV.js} +2 -2
  150. package/dist/build/server/{instance-RUFH64NE.js → instance-HA73Z6NN.js} +4 -4
  151. package/dist/build/server/{instance-RUFH64NE.js.map → instance-HA73Z6NN.js.map} +1 -1
  152. package/dist/build/server/{loadSso-ZGYF2F3K.js → loadSso-E275HJXR.js} +2 -2
  153. package/dist/build/server/{remote-14csdey-33RQIQJZ.js → remote-14csdey-FOQJXJXA.js} +2 -2
  154. package/dist/build/server/{remote-1tatjnv-MDXYNSQP.js → remote-1tatjnv-RV2BQYRX.js} +2 -2
  155. package/dist/build/server/remote-1uc3g51-WO3FFMWQ.js +3 -0
  156. package/dist/build/server/remote-1uc3g51-WO3FFMWQ.js.map +6 -0
  157. package/dist/build/server/remote-aix5gf-OWE36SMJ.js +3 -0
  158. package/dist/build/server/remote-aix5gf-OWE36SMJ.js.map +6 -0
  159. package/dist/build/server/{remote-nc6tv3-QTYODRCA.js → remote-nc6tv3-LEI5HSU6.js} +2 -2
  160. package/dist/build/server/{remote-qvubti-KL657QDB.js → remote-qvubti-BD4OQ24Z.js} +2 -2
  161. package/dist/build/server/{signin-AB626ZML.js → signin-PTWHOMY5.js} +2 -2
  162. package/dist/build/server/{sso-oidc-MUW3SC56.js → sso-oidc-I3MEU76B.js} +2 -2
  163. package/dist/build/server/stream.js +1 -1
  164. package/dist/build/server/{sts-7UNDUHY2.js → sts-URI6AMGK.js} +2 -2
  165. package/package.json +2 -2
  166. package/dist/build/client/_app/immutable/assets/8.kPbJskIW.css +0 -1
  167. package/dist/build/client/_app/immutable/assets/8.kPbJskIW.css.br +0 -0
  168. package/dist/build/client/_app/immutable/assets/8.kPbJskIW.css.gz +0 -0
  169. package/dist/build/client/_app/immutable/chunks/2mFKupBv.js +0 -3
  170. package/dist/build/client/_app/immutable/chunks/2mFKupBv.js.br +0 -0
  171. package/dist/build/client/_app/immutable/chunks/2mFKupBv.js.gz +0 -0
  172. package/dist/build/client/_app/immutable/chunks/B9UgPzUB.js +0 -3
  173. package/dist/build/client/_app/immutable/chunks/B9UgPzUB.js.br +0 -0
  174. package/dist/build/client/_app/immutable/chunks/B9UgPzUB.js.gz +0 -0
  175. package/dist/build/client/_app/immutable/chunks/BglOMzbH.js.br +0 -0
  176. package/dist/build/client/_app/immutable/chunks/BglOMzbH.js.gz +0 -0
  177. package/dist/build/client/_app/immutable/chunks/CSGsgODA.js.br +0 -0
  178. package/dist/build/client/_app/immutable/chunks/CSGsgODA.js.gz +0 -0
  179. package/dist/build/client/_app/immutable/chunks/Chmvodxk.js.br +0 -0
  180. package/dist/build/client/_app/immutable/chunks/Chmvodxk.js.gz +0 -0
  181. package/dist/build/client/_app/immutable/chunks/D78JuD5E.js.br +0 -0
  182. package/dist/build/client/_app/immutable/chunks/DMHwPoiR.js +0 -1
  183. package/dist/build/client/_app/immutable/chunks/DMHwPoiR.js.br +0 -2
  184. package/dist/build/client/_app/immutable/chunks/DMHwPoiR.js.gz +0 -0
  185. package/dist/build/client/_app/immutable/chunks/DRdoYxz9.js.br +0 -0
  186. package/dist/build/client/_app/immutable/chunks/DRdoYxz9.js.gz +0 -0
  187. package/dist/build/client/_app/immutable/chunks/TCXC9jc6.js +0 -1
  188. package/dist/build/client/_app/immutable/chunks/TCXC9jc6.js.br +0 -1
  189. package/dist/build/client/_app/immutable/chunks/TCXC9jc6.js.gz +0 -0
  190. package/dist/build/client/_app/immutable/entry/app.CqVVbP_6.js +0 -2
  191. package/dist/build/client/_app/immutable/entry/app.CqVVbP_6.js.br +0 -0
  192. package/dist/build/client/_app/immutable/entry/app.CqVVbP_6.js.gz +0 -0
  193. package/dist/build/client/_app/immutable/entry/start.V_sfGyaE.js.br +0 -0
  194. package/dist/build/client/_app/immutable/entry/start.V_sfGyaE.js.gz +0 -0
  195. package/dist/build/client/_app/immutable/nodes/0.Dm7On3K1.js +0 -1
  196. package/dist/build/client/_app/immutable/nodes/0.Dm7On3K1.js.br +0 -0
  197. package/dist/build/client/_app/immutable/nodes/0.Dm7On3K1.js.gz +0 -0
  198. package/dist/build/client/_app/immutable/nodes/1.BzVsbcFJ.js +0 -1
  199. package/dist/build/client/_app/immutable/nodes/1.BzVsbcFJ.js.br +0 -1
  200. package/dist/build/client/_app/immutable/nodes/1.BzVsbcFJ.js.gz +0 -0
  201. package/dist/build/client/_app/immutable/nodes/10.CO9bVJE4.js +0 -1
  202. package/dist/build/client/_app/immutable/nodes/10.CO9bVJE4.js.br +0 -6
  203. package/dist/build/client/_app/immutable/nodes/10.CO9bVJE4.js.gz +0 -0
  204. package/dist/build/client/_app/immutable/nodes/2.CgvTW94C.js +0 -1
  205. package/dist/build/client/_app/immutable/nodes/2.CgvTW94C.js.br +0 -0
  206. package/dist/build/client/_app/immutable/nodes/2.CgvTW94C.js.gz +0 -0
  207. package/dist/build/client/_app/immutable/nodes/3.DtGxmbhU.js +0 -2
  208. package/dist/build/client/_app/immutable/nodes/3.DtGxmbhU.js.br +0 -0
  209. package/dist/build/client/_app/immutable/nodes/3.DtGxmbhU.js.gz +0 -0
  210. package/dist/build/client/_app/immutable/nodes/4.BeDdlgVY.js +0 -1
  211. package/dist/build/client/_app/immutable/nodes/4.BeDdlgVY.js.br +0 -0
  212. package/dist/build/client/_app/immutable/nodes/4.BeDdlgVY.js.gz +0 -0
  213. package/dist/build/client/_app/immutable/nodes/5.CMySKy0C.js +0 -1
  214. package/dist/build/client/_app/immutable/nodes/5.CMySKy0C.js.br +0 -0
  215. package/dist/build/client/_app/immutable/nodes/5.CMySKy0C.js.gz +0 -0
  216. package/dist/build/client/_app/immutable/nodes/6.BcbmMVFh.js +0 -1
  217. package/dist/build/client/_app/immutable/nodes/6.BcbmMVFh.js.br +0 -0
  218. package/dist/build/client/_app/immutable/nodes/6.BcbmMVFh.js.gz +0 -0
  219. package/dist/build/client/_app/immutable/nodes/7.BGHdFf_e.js +0 -1
  220. package/dist/build/client/_app/immutable/nodes/7.BGHdFf_e.js.br +0 -0
  221. package/dist/build/client/_app/immutable/nodes/7.BGHdFf_e.js.gz +0 -0
  222. package/dist/build/client/_app/immutable/nodes/8.o7otakmA.js +0 -1
  223. package/dist/build/client/_app/immutable/nodes/8.o7otakmA.js.br +0 -0
  224. package/dist/build/client/_app/immutable/nodes/8.o7otakmA.js.gz +0 -0
  225. package/dist/build/client/_app/immutable/nodes/9.D5vOFdKI.js +0 -1
  226. package/dist/build/client/_app/immutable/nodes/9.D5vOFdKI.js.br +0 -0
  227. package/dist/build/client/_app/immutable/nodes/9.D5vOFdKI.js.gz +0 -0
  228. package/dist/build/server/10-5JTZP322.js +0 -3
  229. package/dist/build/server/3-DIPWJHM6.js +0 -3
  230. package/dist/build/server/4-F76Y5N5S.js +0 -3
  231. package/dist/build/server/5-ROQRH7VU.js +0 -3
  232. package/dist/build/server/7-N4XOK4FU.js +0 -3
  233. package/dist/build/server/8-4QMUUNSQ.js +0 -3
  234. package/dist/build/server/9-AXPM2XC2.js +0 -3
  235. package/dist/build/server/_page.svelte-IGUB24UQ.js +0 -3
  236. package/dist/build/server/_page.svelte-IGUB24UQ.js.map +0 -6
  237. package/dist/build/server/_page.svelte-K2OMF23F.js +0 -3
  238. package/dist/build/server/_page.svelte-K2OMF23F.js.map +0 -6
  239. package/dist/build/server/_page.svelte-RJXW4ENQ.js +0 -3
  240. package/dist/build/server/chunk-3J753MEA.js +0 -3
  241. package/dist/build/server/chunk-BWCPJTPJ.js +0 -3
  242. package/dist/build/server/chunk-DPYCV7DC.js +0 -3
  243. package/dist/build/server/chunk-DPYCV7DC.js.map +0 -6
  244. package/dist/build/server/chunk-EPPCNHKZ.js +0 -3
  245. package/dist/build/server/chunk-EPPCNHKZ.js.map +0 -6
  246. package/dist/build/server/chunk-N5VHPYVR.js +0 -3
  247. package/dist/build/server/chunk-SGVNW5YS.js +0 -3
  248. package/dist/build/server/chunk-TFJKZQFL.js +0 -9
  249. /package/dist/build/client/_app/immutable/assets/{7.CLAH1zbo.css → 10.CLAH1zbo.css} +0 -0
  250. /package/dist/build/client/_app/immutable/assets/{7.CLAH1zbo.css.br → 10.CLAH1zbo.css.br} +0 -0
  251. /package/dist/build/client/_app/immutable/assets/{7.CLAH1zbo.css.gz → 10.CLAH1zbo.css.gz} +0 -0
  252. /package/dist/build/server/{0-XGUHJA4P.js.map → 0-FMOA5I7O.js.map} +0 -0
  253. /package/dist/build/server/{1-SRMMBTGA.js.map → 1-HRP4ECGA.js.map} +0 -0
  254. /package/dist/build/server/{2-E7OIJDC2.js.map → 2-VU2LYUGL.js.map} +0 -0
  255. /package/dist/build/server/{3-DIPWJHM6.js.map → 3-XWBGH2MM.js.map} +0 -0
  256. /package/dist/build/server/{4-F76Y5N5S.js.map → 4-PTN7C56J.js.map} +0 -0
  257. /package/dist/build/server/{_page.svelte-F23I4Q3N.js.map → _page.svelte-6QOSNAPZ.js.map} +0 -0
  258. /package/dist/build/server/{_page.svelte-ABHCB3JO.js.map → _page.svelte-XFGQKSFQ.js.map} +0 -0
  259. /package/dist/build/server/{chunk-SUG3COTW.js.map → chunk-6NKFNTT3.js.map} +0 -0
  260. /package/dist/build/server/{chunk-QVI2JPUZ.js.map → chunk-7ORZDQKB.js.map} +0 -0
  261. /package/dist/build/server/{chunk-4B4T2UH4.js.map → chunk-COYUJLBR.js.map} +0 -0
  262. /package/dist/build/server/{chunk-MJOYXXCW.js.map → chunk-I4S422PQ.js.map} +0 -0
  263. /package/dist/build/server/{chunk-W5YFYASF.js.map → chunk-KA3MJBXM.js.map} +0 -0
  264. /package/dist/build/server/{chunk-UJJESI6B.js.map → chunk-KHGYICM3.js.map} +0 -0
  265. /package/dist/build/server/{chunk-YGLOO2DN.js.map → chunk-RJLO3ZOK.js.map} +0 -0
  266. /package/dist/build/server/{chunk-PXUKBFFD.js.map → chunk-Y7D223T7.js.map} +0 -0
  267. /package/dist/build/server/{chunk-3AWMNMNO.js.map → chunk-YT7GXW3T.js.map} +0 -0
  268. /package/dist/build/server/{chunk-TGC5GAFE.js.map → chunk-ZB4GC6MX.js.map} +0 -0
  269. /package/dist/build/server/{dist-es-CXXNDADM.js.map → dist-es-UYSTLTTZ.js.map} +0 -0
  270. /package/dist/build/server/{dist-es3-DHVCSDXO.js.map → dist-es3-77ZYOMBT.js.map} +0 -0
  271. /package/dist/build/server/{dist-es4-WVQHEEGI.js.map → dist-es4-KDFV3JNC.js.map} +0 -0
  272. /package/dist/build/server/{dist-es6-GJBWAT3F.js.map → dist-es6-3LIOBPYN.js.map} +0 -0
  273. /package/dist/build/server/{dist-es7-V42RESE5.js.map → dist-es7-XTZQI2TF.js.map} +0 -0
  274. /package/dist/build/server/{event-streams-JVKHUG3W.js.map → event-streams-ICBTGIY7.js.map} +0 -0
  275. /package/dist/build/server/{hooks.server-UAWULKDF.js.map → hooks.server-LWQUJPMV.js.map} +0 -0
  276. /package/dist/build/server/{loadSso-ZGYF2F3K.js.map → loadSso-E275HJXR.js.map} +0 -0
  277. /package/dist/build/server/{remote-14csdey-33RQIQJZ.js.map → remote-14csdey-FOQJXJXA.js.map} +0 -0
  278. /package/dist/build/server/{remote-1tatjnv-MDXYNSQP.js.map → remote-1tatjnv-RV2BQYRX.js.map} +0 -0
  279. /package/dist/build/server/{remote-nc6tv3-QTYODRCA.js.map → remote-nc6tv3-LEI5HSU6.js.map} +0 -0
  280. /package/dist/build/server/{remote-qvubti-KL657QDB.js.map → remote-qvubti-BD4OQ24Z.js.map} +0 -0
  281. /package/dist/build/server/{signin-AB626ZML.js.map → signin-PTWHOMY5.js.map} +0 -0
  282. /package/dist/build/server/{sso-oidc-MUW3SC56.js.map → sso-oidc-I3MEU76B.js.map} +0 -0
  283. /package/dist/build/server/{sts-7UNDUHY2.js.map → sts-URI6AMGK.js.map} +0 -0
@@ -108,7 +108,7 @@ https://svelte.dev/e/kit/${e}`);throw r.name="SvelteKit error",Error.captureStac
108
108
  <div style="display: contents">`+t+`</div>
109
109
  </body>
110
110
  </html>
111
- `,"app"),error:Dt}};async function gn(){let e,t,n,r;return{handle:e,handleFetch:t,handleError:n,init:r}=await import("./hooks.server-UAWULKDF.js"),{handle:e,handleFetch:t,handleError:n,init:r,reroute:void 0,transport:void 0}}a(gn,"get_hooks");function zt(e){return new Uint8Array(e).toBase64()}a(zt,"encode_native");function Ct(e){return Uint8Array.fromBase64(e).buffer}a(Ct,"decode_native");function Ft(e){return Buffer.from(e).toString("base64")}a(Ft,"encode_buffer");function Wt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}a(Wt,"decode_buffer");function Ht(e){let t=new Uint8Array(e),n="",r=32768;for(let o=0;o<t.length;o+=r){let s=t.subarray(o,o+r);n+=String.fromCharCode.apply(null,s)}return btoa(n)}a(Ht,"encode_legacy");function Vt(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r.buffer}a(Vt,"decode_legacy");var ft=typeof Uint8Array.fromBase64=="function",lt=typeof process=="object"&&process.versions?.node!==void 0,Yt=ft?zt:lt?Ft:Ht,Jt=ft?Ct:lt?Wt:Vt;function ut(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}a(ut,"merge_operations");var Gt=Object.freeze({kind:"not-plain"}),Xt=Object.freeze({kind:"symbol-keys"}),Kt=Object.freeze({identify:a(e=>e,"identify"),typeOf:a(e=>e===null?"null":typeof e,"typeOf"),toPrimitive:a(e=>e,"toPrimitive"),tagOf:a(e=>$e(e),"tagOf"),isThenable:a(e=>typeof e.then=="function","isThenable"),toPromise:a(e=>Promise.resolve(e),"toPromise"),unbox:a(e=>e.valueOf(),"unbox"),toISOString:a(e=>isNaN(e.getDate())?"":e.toISOString(),"toISOString"),toStringValue:a(e=>e.toString(),"toStringValue"),regExpInfo:a(e=>({source:e.source,flags:e.flags}),"regExpInfo"),valuesOf:a(e=>e,"valuesOf"),entriesOf:a(e=>e,"entriesOf"),viewInfo:a(e=>(Pe(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),"viewInfo"),toArrayBuffer:a(e=>e,"toArrayBuffer"),lengthOf:a(e=>e.length,"lengthOf"),hasOwn:a((e,t)=>Object.hasOwn(e,t),"hasOwn"),indicesOf:a(e=>xe(e),"indicesOf"),shapeOf:a(e=>je(e)?Te(e).length>0?Xt:{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}:Gt,"shapeOf"),get:a((e,t)=>e[t],"get")}),Zt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,qe=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Qt=Object.freeze({fromPrimitive:a(e=>e,"fromPrimitive"),fromISOString:a(e=>new Date(e),"fromISOString"),fromStringValue:a((e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),"fromStringValue"),fromArrayBuffer:a(e=>e,"fromArrayBuffer"),fromRegExpInfo:a((e,t)=>new RegExp(e,t),"fromRegExpInfo"),fromViewInfo:a((e,t,n,r)=>{try{Zt.call(t)}catch(s){if(!qe)throw s;qe.call(t)}let o=globalThis[e];return n!==void 0?new o(t,n,r):new o(t)},"fromViewInfo"),box:a(e=>Object(e),"box"),createArray:a(e=>new Array(e),"createArray"),createSparseArray:a(e=>{let t=[];return t[ee]=void 0,delete t[ee],t.length=e,t},"createSparseArray"),createObject:a(()=>({}),"createObject"),createNullPrototypeObject:a(()=>Object.create(null),"createNullPrototypeObject"),createSet:a(()=>new Set,"createSet"),createMap:a(()=>new Map,"createMap"),set:a((e,t,n)=>{e[t]=n},"set"),addValue:a((e,t)=>{e.add(t)},"addValue"),addEntry:a((e,t,n)=>{e.set(t,n)},"addEntry")});function J(e,t,n){return er(JSON.parse(e),t,n)}a(J,"parse$1");function er(e,t,n){let r=ut(Qt,n?.operations);if(typeof e=="number")return f(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");let o=e,s=Array(o.length),i=null;function f(c,d=!1){if(c===-1)return r.fromPrimitive(void 0);if(c===-3)return r.fromPrimitive(NaN);if(c===-4)return r.fromPrimitive(1/0);if(c===-5)return r.fromPrimitive(-1/0);if(c===-6)return r.fromPrimitive(-0);if(d||typeof c!="number")throw new Error("Invalid input");if(c in s)return s[c];if(c>=o.length)throw new Error("Invalid input");let l=o[c];if(!l||typeof l!="object")s[c]=r.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){let h=l[0],u=t&&Object.hasOwn(t,h)?t[h]:void 0;if(u){let m=l[1];if(typeof m!="number"&&(m=o.push(l[1])-1),Object.hasOwn(s,m))return s[c]=u(s[m]);if(i??=new Set,i.has(m))throw new Error("Invalid circular reference");return i.add(m),s[c]=u(f(m)),i.delete(m),s[c]}switch(h){case"Date":s[c]=r.fromISOString(l[1]);break;case"Set":let m=r.createSet();s[c]=m;for(let _=1;_<l.length;_+=1)r.addValue(m,f(l[_]));break;case"Map":let g=r.createMap();s[c]=g;for(let _=1;_<l.length;_+=2)r.addEntry(g,f(l[_]),f(l[_+1]));break;case"RegExp":s[c]=r.fromRegExpInfo(l[1],l[2]);break;case"Object":{let _=l[1];if(typeof o[_]=="object"&&o[_][0]!=="BigInt")throw new Error("Invalid input");s[c]=r.box(f(_));break}case"BigInt":s[c]=r.fromPrimitive(BigInt(l[1]));break;case"null":let w=r.createNullPrototypeObject();s[c]=w;for(let _=1;_<l.length;_+=2){let p=l[_];if(typeof p!="string")throw new Error("Cannot parse an object with a non-string key");if(p==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(w,p,f(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(o[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");let _=f(l[1]);s[c]=r.fromViewInfo(h,_,l[2],l[3]);break}case"ArrayBuffer":{let _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");s[c]=r.fromArrayBuffer(Jt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":s[c]=r.fromStringValue(h,l[1]);break;default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===-7){let h=l[1];if(!Re(h))throw new Error("Invalid input");let u=r.createSparseArray(h);s[c]=u;for(let m=2;m<l.length;m+=2){let g=l[m];if(!Ie(g)||g>=h)throw new Error("Invalid input");r.set(u,g,f(l[m+1]))}}else{let h=r.createArray(l.length);s[c]=h;for(let u=0;u<l.length;u+=1){let m=l[u];m!==-2&&r.set(h,u,f(m))}}else{let h=r.createObject();s[c]=h;for(let u of Object.keys(l)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(h,u,f(l[u]))}}return s[c]}return a(f,"hydrate"),f(0)}a(er,"unflatten");function ue(e,t,n){let r=tr(!1,e,t,n);return typeof r=="string"?r:`[${r.join(",")}]`}a(ue,"stringify$1");function tr(e,t,n,r){let o=ut(Kt,r?.operations),s=[],i=new Map,f=[];if(n)for(let u of Object.getOwnPropertyNames(n))f.push({key:u,fn:n[u]});let c=[],d=0;function l(u,m){let g=o.typeOf(u);if(g==="undefined")return-1;let w;if(g==="number"){if(w=o.toPrimitive(u),Number.isNaN(w))return-3;if(w===1/0)return-4;if(w===-1/0)return-5;if(w===0&&1/w<0)return-6}let _=o.identify(u);if(i.has(_))return i.get(_);m??=d++,i.set(_,m);for(let{key:b,fn:k}of f){let A=k(u);if(A)return s[m]=`["${b}",${l(A)}]`,m}if(g==="function")throw new I("Cannot stringify a function",c,u,t);if(g==="symbol")throw new I("Cannot stringify a Symbol primitive",c,u,t);let p="";if(g!=="object")p=Be(g==="number"?w:o.toPrimitive(u));else if(o.isThenable(u)){if(!e)throw new I("Cannot stringify a Promise or thenable — use stringifyAsync instead",c,u,t);p=o.toPromise(u).then(b=>{let k=l(b,m);k<0&&(s[m]=k)}),p.catch(()=>{})}else{let b=o.tagOf(u);switch(b){case"Number":case"String":case"Boolean":case"BigInt":p=`["Object",${l(o.unbox(u))}]`;break;case"Date":p=`["Date","${o.toISOString(u)}"]`;break;case"URL":p=`["URL",${T(o.toStringValue(u))}]`;break;case"URLSearchParams":p=`["URLSearchParams",${T(o.toStringValue(u))}]`;break;case"RegExp":let{source:k,flags:A}=o.regExpInfo(u);p=A?`["RegExp",${T(k)},"${A}"]`:`["RegExp",${T(k)}]`;break;case"Array":{let y=!1,v=o.lengthOf(u);p="[";for(let O=0;O<v;O+=1)if(O>0&&(p+=","),o.hasOwn(u,O))c.push(`[${O}]`),p+=l(o.get(u,O)),c.pop();else if(y)p+=-2;else{let L=o.indicesOf(u),pe=L.length,he=String(v).length;if((v-pe)*3>4+he+pe*(he+1)){p="[-7,"+v;for(let X=0;X<L.length;X++){let K=L[X];c.push(`[${K}]`),p+=","+K+","+l(o.get(u,K)),c.pop()}break}else y=!0,p+=-2}p+="]";break}case"Set":p='["Set"';for(let y of o.valuesOf(u))p+=`,${l(y)}`;p+="]";break;case"Map":p='["Map"';for(let[y,v]of o.entriesOf(u)){let O=o.typeOf(y),L=O!=="object"&&O!=="function"&&O!=="symbol";c.push(`.get(${L?Be(o.toPrimitive(y)):"..."})`),p+=`,${l(y)},${l(v)}`,c.pop()}p+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{let y=o.viewInfo(u);p='["'+b+'",'+l(y.buffer),y.byteLength!==y.bufferByteLength&&(p+=`,${y.byteOffset},${y.length}`),p+="]";break}case"DataView":{let y=o.viewInfo(u);p='["'+b+'",'+l(y.buffer),y.byteLength!==y.bufferByteLength&&(p+=`,${y.byteOffset},${y.byteLength}`),p+="]";break}case"ArrayBuffer":p=`["ArrayBuffer","${Yt(o.toArrayBuffer(u))}"]`;break;case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":p=`["${b}",${T(o.toStringValue(u))}]`;break;default:{let y=o.shapeOf(u);if(y.kind==="not-plain")throw new I("Cannot stringify arbitrary non-POJOs",c,u,t);if(y.kind==="symbol-keys")throw new I("Cannot stringify POJOs with symbolic keys",c,u,t);if(y.kind==="null-proto"){p='["null"';for(let v of y.keys){if(v==="__proto__")throw new I("Cannot stringify objects with __proto__ keys",c,u,t);c.push(te(v)),p+=`,${T(v)},${l(o.get(u,v))}`,c.pop()}p+="]"}else{p="{";let v=!1;for(let O of y.keys){if(O==="__proto__")throw new I("Cannot stringify objects with __proto__ keys",c,u,t);v&&(p+=","),v=!0,c.push(te(O)),p+=`${T(O)}:${l(o.get(u,O))}`,c.pop()}p+="}"}}}}return s[m]=p,m}a(l,"flatten");let h=l(t);return h<0?`${h}`:s}a(tr,"run");function Be(e){let t=typeof e;return t==="string"?T(e):e===void 0?"-1":e===0&&1/e<0?"-6":t==="bigint"?`["BigInt","${e}"]`:String(e)}a(Be,"stringify_primitive");function rr(e,t,n){fr(e,cr(t.name),n)}a(rr,"set_nested_value");function nr(e,t){let n="/"+e,r=t,o="";r.startsWith("i:")&&(r.endsWith(n+".x")||r.endsWith(n+".y"))&&(o=r[r.length-1],r=r.slice(0,-2)),r.endsWith(n)||nt({name:r}),r=r.slice(0,-n.length);let s=null;r.startsWith("n:")?(r=r.slice(2),s="number"):r.startsWith("b:")?(r=r.slice(2),s="boolean"):r.startsWith("i:")&&(r=r.slice(2),s="number");let i=r.endsWith("[]");return i&&(r=r.slice(0,-2)),o&&(r+="."+o),{name:r,type:s,is_array:i}}a(nr,"parse_form_key");function dt(e,t){return Array.isArray(t)?t.map(n=>dt(e,n)):e==="number"?t===""?void 0:parseFloat(t):e==="boolean"?t==="on":t}a(dt,"coerce_form_value");var Ne={};function or(e,t){let n={};for(let r of t.keys()){let o=t.getAll(r),s=nr(e,r),i=o.filter(f=>typeof f=="string"||f.name!==""||f.size>0);i.length===0&&!s.is_array||(i.length>1&&!s.is_array&&et({name:s.name,count:String(i.length)}),rr(n,s,dt(s.type,s.is_array?i:i[0])))}return n}a(or,"convert_formdata");var ar="application/x-sveltekit-formdata",De=0,H=7;async function mt(e,t){if(e.headers.get("content-type")!=="application/x-sveltekit-formdata"){let _=await e.formData();return{data:or(t,_),meta:{},form_data:_}}if(!e.body)throw P("no body");let n=e.body.getReader(),r=[];function o(_){if(_ in r)return r[_];let p=r.length;for(;p<=_;){let b=r[p-1]??Promise.resolve(void 0);r[p]=b.then(()=>n.read()).then(k=>k.value),p++}return r[_]}a(o,"get_chunk");async function s(_,p){let b=[],k=0;for await(let v of pt(o,_,p))b.push(v),k+=v.byteLength;if(k<p||b.length===0)return null;if(b.length===1)return b[0];let A=new Uint8Array(p),y=0;for(let v of b)A.set(v,y),y+=v.byteLength;return A}a(s,"get_buffer");let i=await s(0,H);if(!i)throw P("too short");if(i[0]!==De)throw P(`got version ${i[0]}, expected version ${De}`);let f=new DataView(i.buffer,i.byteOffset,i.byteLength),c=f.getUint32(1,!0),d=f.getUint16(5,!0),l=await s(H,c);if(!l)throw P("data too short");let h,u;if(d>0){let _=await s(H+c,d);if(!_)throw P("file offset table too short");let p=JSON.parse(Y.decode(_));if(!Array.isArray(p)||p.some(b=>typeof b!="number"||!Number.isInteger(b)||b<0))throw P("invalid file offset table");h=p,u=H+c+d}let m=[],[g,w]=J(Y.decode(l),{File:a(([_,p,b,k,A])=>{if(typeof _!="string"||typeof p!="string"||!Number.isSafeInteger(b)||b<0||!Number.isSafeInteger(k)||!Number.isSafeInteger(A)||A<0)throw P("invalid file metadata");let y=h[A];if(y===void 0)throw P("duplicate file offset table index");return h[A]=void 0,y+=u,m.push({offset:y,size:b}),new Proxy(new sr(_,p,b,k,o,y),{getPrototypeOf(){return File.prototype}})},"File")});m.sort((_,p)=>_.offset-p.offset||_.size-p.size);for(let _=1;_<m.length;_++){let p=m[_-1],b=m[_],k=p.offset+p.size;if(k<b.offset)throw P("gaps in file data");if(k>b.offset)throw P("overlapping file data")}return(async()=>{let _=!0;for(;_;)_=!!await o(r.length)})().catch(Ue),{data:g,meta:w,form_data:null}}a(mt,"deserialize_binary_form");function P(e){return new E(400,"Bad Request",`Could not deserialize binary form: ${e}`)}a(P,"deserialize_error");async function*pt(e,t,n){let r=0;for(let o=0;;o++){let s=await e(o);if(!s)return;let i=r+s.byteLength;if(i>t&&(yield s.subarray(Math.max(0,t-r),Math.min(s.byteLength,t+n-r)),t+n<=i))return;r=i}}a(pt,"read_range");var sr=class ht{static{a(this,"LazyFile")}#e;#t;constructor(t,n,r,o,s,i){this.name=t,this.type=n,this.size=r,this.lastModified=o,this.webkitRelativePath="",this.#e=s,this.#t=i,this.arrayBuffer=this.arrayBuffer.bind(this),this.bytes=this.bytes.bind(this),this.slice=this.slice.bind(this),this.stream=this.stream.bind(this),this.text=this.text.bind(this)}#r;async arrayBuffer(){return this.#r??=await new Response(this.stream()).arrayBuffer(),this.#r}async bytes(){return new Uint8Array(await this.arrayBuffer())}slice(t=0,n=this.size,r=this.type){t<0?t=Math.max(this.size+t,0):t=Math.min(t,this.size),n<0?n=Math.max(this.size+n,0):n=Math.min(n,this.size);let o=Math.max(n-t,0);return new ht(this.name,r,o,this.lastModified,this.#e,this.#t+t)}stream(){let t=pt(this.#e,this.#t,this.size),n=this.size;return ce((async function*(){let r=0;for await(let o of t)r+=o.byteLength,yield o;if(r<n)throw new Error("incomplete file data")})())}async text(){return Y.decode(await this.arrayBuffer())}},ir=/^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;function cr(e){return ir.test(e)||rt({name:e}),e.split(/\.|\[|\]/).filter(Boolean)}a(cr,"split_path");function ze(e){(e==="__proto__"||e==="constructor"||e==="prototype")&&tt({key:e})}a(ze,"check_prototype_pollution");function fr(e,t,n){let r=e;for(let s=0;s<t.length-1;s+=1){let i=t[s];ze(i);let f=/^\d+$/.test(t[s+1]),c=Object.hasOwn(r,i)?r[i]:void 0,d=c!=null;if(d&&f!==Array.isArray(c)&&Qe({key:t[s+1]}),!d){if(n===Ne)return;r[i]=f?[]:{}}r=r[i]}let o=t[t.length-1];ze(o),n===Ne?delete r[o]:r[o]=n}a(fr,"deep_set");function bn(e,t=!1){let n={name:"",path:[],message:e.message,server:t};if(e.path!==void 0){let r="";for(let o of e.path){let s=typeof o=="object"?o.key:o;n.path.push(s),typeof s=="number"?r+=`[${s}]`:typeof s=="string"&&(r+=r===""?s:"."+s)}n.name=r}return n}a(bn,"normalize_issue");function wn(e){let t=Object.create(null);for(let n of e){(t.$??=[]).push(n);let r="";if(n.path!==void 0)for(let o of n.path)typeof o=="number"?r+=`[${o}]`:typeof o=="string"&&(r+=r===""?o:"."+o),(t[r]??=[]).push(n)}return t}a(wn,"flatten_issues");function Ce(e,t){let n=e;for(let r of t){if(n===null||typeof n!="object"||!Object.hasOwn(n,r))return;n=n[r]}return n}a(Ce,"deep_get");var lr={number:"n:",boolean:"b:"};function M(e,t){for(let n in t){let r=t[n];typeof r=="function"?Object.defineProperty(e,n,{enumerable:!0,get:r}):e[n]=r}return e}a(M,"add_props");function ur(e,t,n){return e==="number"||e==="range"?"n:":e==="image"?"i:":e==="checkbox"&&!t?"b:":e==="hidden"||e==="submit"?lr[typeof n]??"":""}a(ur,"get_type_prefix");function ae(e){if(e!==null&&typeof e=="object"){if(e instanceof Date)return new Date(e.getTime());if(e instanceof File)return e;if(Array.isArray(e))return e.map(ae);let t={};for(let n of Object.keys(e))t[n]=ae(e[n]);return t}return e}a(ae,"deep_clone");var dr=null,Fe=a(e=>({path:e.path,message:e.message}),"public_issue");function mr(e,t,n){switch(n){case"set":return r=>(e.set(t,r),r);case"value":return()=>ae(Ce(e.get(),t));case"issues":case"allIssues":{let r=oe(t),o=n==="allIssues";return()=>{let s=e.get_issues(t,o)[r===""?"$":r];if(o)return s?.map(Fe);let i=s?.filter(f=>f.name===r).map(Fe);return i?.length?i:void 0}}case"touched":case"dirty":{let r=oe(t);return()=>{let o=n==="dirty"?e.get_dirty():e.get_touched();if(Object.hasOwn(o,r))return!0;for(let s in o){if(!Object.hasOwn(o,s))continue;if(r==="")return!0;if(!s.startsWith(r))continue;let i=s[r.length];if(i==="."||i==="[")return!0}return!1}}case"as":{let r=oe(t),o=a(s=>Ce(e.get(),t)??(s!==void 0&&Object.hasOwn(e.get_dirty(),r)?void 0:s),"read");return(s,i,f)=>{let c=s==="file multiple"||s==="select multiple"||s==="checkbox"&&typeof i=="string",d={name:ur(s,c,i)+r+(c?"[]":"")+"/"+e.form_id,get"aria-invalid"(){let l=e.get_issues();return r in l?"true":void 0}};return s!=="text"&&s!=="select"&&s!=="select multiple"&&(d.type=s==="file multiple"?"file":s),s==="submit"||s==="hidden"?M(d,{value:typeof i=="boolean"?i?"on":"off":i}):s==="select"||s==="select multiple"?M(d,{multiple:c,value:a(()=>{let l=o(i);return Array.isArray(l)?[...l]:l},"value")}):s==="checkbox"||s==="radio"?(s==="radio"||c?d.value=i??"on":f=i,M(d,{defaultChecked:f,checked:a(()=>{let l=o();return l==null?o(f):s==="radio"?l===i:c?l.includes(i):l},"checked")})):s==="file"||s==="file multiple"?M(d,{multiple:c,files:a(()=>{let l=o(),h=l instanceof File?[l]:l;if(!Array.isArray(h)||!h.every(m=>m instanceof File))return null;if(typeof DataTransfer>"u")return Object.assign({length:h.length},h);let u=new DataTransfer;for(let m of h)u.items.add(m);return u.files},"files")}):s==="image"?d:M(d,{defaultValue:i,value:a(()=>String(o(i)??""),"value")})}}}}a(mr,"create_field_method");function pr(e,t={},n=[]){return new Proxy(t,{...dr,get(r,o){if(typeof o=="symbol")return r[o];let s=[...n,/^\d+$/.test(o)?parseInt(o,10):o];return pr(e,mr(e,n,o),s)}})}a(pr,"create_field_proxy");function oe(e){let t="";for(let n of e)typeof n=="number"?t+=`[${n}]`:t+=t===""?n:"."+n;return t}a(oe,"build_path_string");function hr(e,t){let n=[];e.split(",").forEach((s,i)=>{let f=/^[ \t]*([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(s);if(f){let[,c,d,l="1"]=f;n.push({type:c,subtype:d,q:+l,i})}}),n.sort((s,i)=>s.q!==i.q?i.q-s.q:s.subtype==="*"!=(i.subtype==="*")?s.subtype==="*"?1:-1:s.type==="*"!=(i.type==="*")?s.type==="*"?1:-1:s.i-i.i);let r,o=1/0;for(let s of t){let[i,f]=s.split("/"),c=n.findIndex(d=>(d.type===i||d.type==="*")&&(d.subtype===f||d.subtype==="*"));c!==-1&&c<o&&(r=s,o=c)}return r}a(hr,"negotiate");function _r(e,...t){let n=e?.split(";",1)[0].trim()??"";return t.includes(n.toLowerCase())}a(_r,"matches_content_type");function _t(e){return _r(e.headers.get("content-type"),"application/x-www-form-urlencoded","multipart/form-data","text/plain",ar)}a(_t,"is_form_content_type");var yt=a(()=>{throw new Error("")},"uneval"),U=a(()=>{throw new Error("")},"stringify"),yr=a(()=>{throw new Error("")},"parse"),se={},ie={},gr=!1;function vn(e){let t=Object.entries(e);gr=t.length>0;let n=a(r=>{for(let o of Object.keys(e)){let s=e[o].encode(r);if(s)return`app.decode('${o}', ${re(s,n)})`}},"replacer");se=Object.fromEntries(t.map(([r,o])=>[r,o.encode])),ie=Object.fromEntries(t.map(([r,o])=>[r,o.decode])),yt=a(r=>re(r,n),"uneval"),U=a(r=>ue(r,se),"stringify"),yr=a(r=>J(r,ie),"parse")}a(vn,"init_transport");function kn(e,t){return e.origin===t.origin?e.href.slice(t.origin.length):e.href}a(kn,"fetch_cache_url");var On="x-sveltekit-invalidated",An="x-sveltekit-trailing-slash";var br=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wr(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===br}a(wr,"is_plain_object");function vr(e,t){let n=Object.getPrototypeOf(e)===null?Object.create(null):{};t.set(e,n),Object.defineProperty(n,wt,{value:!0});for(let r of Object.keys(e).sort()){let o=e[r];Object.defineProperty(n,r,{value:t.get(o)??o,enumerable:!0,configurable:!0,writable:!0})}return n}a(vr,"to_sorted");var de="__skrao",gt="__skram",bt="__skras",kr="__skraf",Or="__skrag",wt=Symbol(de);function Ar(e){let t={[Or]:o=>{o instanceof RegExp&&st({type:"Regular expressions"})}};if(e){let o=new Map;t[gt]=s=>{if(!(s instanceof Map))return;let i=[];for(let[f,c]of s)i.push([r(f),r(c)]);return i.sort(([f,c],[d,l])=>f<d?-1:f>d?1:c<l?-1:c>l?1:0)},t[bt]=s=>{if(!(s instanceof Set))return;let i=[];for(let f of s)i.push(r(f));return i.sort(),i},t[de]=s=>{if(wr(s)&&!Object.hasOwn(s,wt))return o.has(s)?o.get(s):vr(s,o)}}let n={...se,...t},r=a(o=>ue(o,n),"stringify");return n}a(Ar,"create_remote_arg_reducers");function Er(){let e={[de]:r=>r,[gt]:r=>{if(!Array.isArray(r))throw new Error("Invalid data for Map reviver");let o=new Map;for(let s of r){if(!Array.isArray(s)||s.length!==2||typeof s[0]!="string"||typeof s[1]!="string")throw new Error("Invalid data for Map reviver");let[i,f]=s;o.set(n(i),n(f))}return o},[bt]:r=>{if(!Array.isArray(r))throw new Error("Invalid data for Set reviver");let o=new Set;for(let s of r){if(typeof s!="string")throw new Error("Invalid data for Set reviver");o.add(n(s))}return o},[kr]:r=>{if(!r||typeof r!="object"||typeof r.name!="string"||typeof r.type!="string"||typeof r.size!="number"||typeof r.lastModified!="number"||!(r.data instanceof ArrayBuffer))throw new Error("Invalid data for File reviver");let{data:o,name:s,...i}=r;return new File([o],s,i)}},t={...ie,...e},n=a(r=>J(r,t),"parse");return t}a(Er,"create_remote_arg_revivers");function En(e){return e===void 0?"":Sr(ue(e,Ar(!0)))}a(En,"stringify_remote_arg");function Sr(e){return Rt(D.encode(e)).replaceAll("=","").replaceAll("+","-").replaceAll("/","_")}a(Sr,"url_friendly_base64_encode");function q(e){if(e)return J(Y.decode(xt(e.replaceAll("-","+").replaceAll("_","/"))),Er())}a(q,"parse_remote_arg");function jr(e,t){return e+"/"+t}a(jr,"create_remote_key");function $r(e){let t=e.lastIndexOf("/");if(t===-1)throw new Error(`Invalid remote key: ${e}`);return{id:e.slice(0,t),payload:e.slice(t+1)}}a($r,"split_remote_key");function Pr(e,t){try{Reflect.set(e,"stack",t)}catch{}return e.stack}a(Pr,"set_error_stack");function Tr(e){return e instanceof Error||e&&e.name&&e.message?e:new Error(JSON.stringify(e))}a(Tr,"coalesce_to_error");function Sn(e){return e instanceof Z||e instanceof E?e.status:500}a(Sn,"get_status");function G(e,t,n){if(n instanceof _e)return n.body;let r;if(n instanceof Z)r={kind:"app",error:n.body};else if(n instanceof E)r={kind:"framework",error:{status:n.status,message:n.text}};else if(n instanceof ye)r={kind:"validation",error:{status:400,message:"Bad Request"},issues:n.issues};else{r={kind:"unknown",error:n};let f=n;for(;f instanceof Error;)jt(f),f=f.cause}let o=r.kind==="unknown"?{status:500,message:"Internal Error"}:r.error;function s(f){return{...o,...f}}a(s,"merge");let i;try{let f={...r,event:e};i=S({event:e,state:t},()=>Pt.handleError(f))}catch(f){return We(n,f),{status:o.status,message:"Internal Error"}}return i instanceof Promise?i.then(s,f=>(We(n,f),{status:o.status,message:"Internal Error"})):s(i)}a(G,"handle_error_and_jsonify");function We(e,t){let n=Q(()=>Oe(void 0,{cause:Tr(t)}));n.stack=`${n.name}: ${n.message}`,console.error(n),e instanceof E?console.error(`Original error: ${e.status} ${e.text}: ${e.message}`):console.error("Original error:",e)}a(We,"log_handle_error_hook_failure");var Ir=["GET","POST","PUT","PATCH","DELETE","OPTIONS","HEAD","QUERY"],Rr=["POST","PUT","PATCH","DELETE"],jn=[...Rr,"QUERY"],$n=["GET","POST","HEAD"];import.meta.dirname;var Pn=!!globalThis.process?.versions?.webcontainer,Tn="x-sveltekit-rerouted-url";function In(e,t){return Le(`${t} method not allowed`,{status:405,headers:{allow:xr(e).join(", ")}})}a(In,"method_not_allowed");function xr(e){let t=Ir.filter(n=>n in e);return"GET"in e&&!("HEAD"in e)&&t.push("HEAD"),t}a(xr,"allowed_methods");function Rn(e,t){return new Response(void 0,{status:e,headers:{location:t}})}a(Rn,"redirect_response");function vt(e){return e.headers.set("x-sveltekit-version","1791904232632"),e}a(vt,"with_version_header");function xn(e,t){let n=e.route.id;throw t.path&&Ee({id:n,message:t.message,path:t.path},{cause:t}),t.path===""&&Ae({id:n},{cause:t}),new Error(t.message,{cause:t})}a(xn,"throw_devalue_error");function Un(e){let t={};return e.uses&&e.uses.dependencies.size>0&&(t.dependencies=Array.from(e.uses.dependencies)),e.uses&&e.uses.search_params.size>0&&(t.search_params=Array.from(e.uses.search_params)),e.uses&&e.uses.params.size>0&&(t.params=Array.from(e.uses.params)),e.uses?.parent&&(t.parent=1),e.uses?.route&&(t.route=1),e.uses?.url&&(t.url=1),t}a(Un,"serialize_uses");function Ln(e){return z.prerendered_routes.has(e)||e.at(-1)==="/"&&z.prerendered_routes.has(e.slice(0,-1))}a(Ln,"has_prerendered_path");function Mn(e){let t=e?.split("/")?.at(-1);return t?t.split(".").slice(0,-1).join("."):"unknown"}a(Mn,"get_node_type");function qn(e){return hr(e.request.headers.get("accept")??"*/*",["application/json","text/html"])==="application/json"&&e.request.method==="POST"}a(qn,"is_action_json_request");async function Bn(e,t,n){return kt(e,t,await Ur(e,t,n))}a(Bn,"handle_action_json_request");async function kt(e,t,n){if(n.type==="redirect")return B(n);if(n.type==="error"){let r=await G(e,t,n.error);return B({...n,error:r},{status:r.status})}if(n.type==="success"&&!n.data)return B({...n,status:204,data:void 0});try{return B({...n,data:Et(n.data,U,e.route.id)},{status:n.status})}catch(r){return kt(e,t,me(r,n.location))}}a(kt,"action_result_json");function Ot(e){let t=new URL(e);for(let n of t.searchParams.keys())if(n.startsWith("/")){t.searchParams.delete(n);break}return(t.pathname.startsWith("//")?"/."+t.pathname:t.pathname)+t.search}a(Ot,"get_action_location");function At(e,t){return e.setHeaders({allow:"GET"}),{type:"error",location:t,error:new E(405,"Method Not Allowed","POST method not allowed. No form actions exist for this page")}}a(At,"method_not_allowed_result");function me(e,t){let n=e;return n instanceof R?{type:"redirect",status:n.status,location:n.location}:{type:"error",location:t,error:n}}a(me,"action_error_result");function Nn(e){return B({type:"redirect",status:e.status,location:e.location})}a(Nn,"action_json_redirect");function B(e,t){return vt(Response.json(e,t))}a(B,"action_json");function Dn(e){return e.request.method==="POST"}a(Dn,"is_action_request");async function Ur(e,t,n){let r=n?.actions,o=Ot(e.url);if(!r)return At(e,o);Lr(r);try{let s=await Mr(e,t,r);return s instanceof C?{type:"failure",status:s.status,location:o,data:s.data}:{type:"success",status:200,location:o,data:s}}catch(s){return me(s instanceof C?Q(()=>ke()):s,o)}}a(Ur,"handle_action_request");function Lr(e){e.default&&Object.keys(e).length>1&&be()}a(Lr,"check_named_default_separate");async function Mr(e,t,n){let r=new URL(e.request.url),o="default";for(let i of r.searchParams)if(i[0].startsWith("/")){o=i[0].slice(1),o==="default"&&we();break}if(!Object.hasOwn(n,o))throw new E(404,"Not Found",`No action with name '${o}' found`);let s=n[o];if(!_t(e.request))throw new E(415,"Unsupported Media Type",`Form actions expect form-encoded data — received ${e.request.headers.get("content-type")}`);return F({name:"sveltekit.form_action",attributes:{"sveltekit.form_action.name":o,"http.route":e.route.id||"unknown"},fn:a(async i=>{let f=W(e,i),c=await S({event:f,state:t},()=>s(f));return c instanceof C&&i.setAttributes({"sveltekit.form_action.result.type":"failure","sveltekit.form_action.result.status":c.status}),c},"fn")})}a(Mr,"call_action");function zn(e,t){return Et(e,yt,t)}a(zn,"uneval_action_response");function Et(e,t,n){try{return t(e)}catch(r){if(e instanceof Response&&ve({id:n},{cause:r}),"path"in r){let o={id:n,message:r.message};ge(r.path===""?o:{...o,path:`data${r.path}`},{cause:r})}throw r}}a(Et,"try_serialize");var qr=3e4;function Br(e,t,n,r){let o=new AbortController,s={...e,request:new Request(e.request,{signal:AbortSignal.any([e.request.signal,o.signal])})},i=n.run(s,t,r),f=!0,c=!1,d,l,h;function u(){clearTimeout(l),l=setTimeout(()=>{f&&((d.desiredSize??0)>0&&d.enqueue(D.encode(`: keep-alive
111
+ `,"app"),error:Dt}};async function gn(){let e,t,n,r;return{handle:e,handleFetch:t,handleError:n,init:r}=await import("./hooks.server-LWQUJPMV.js"),{handle:e,handleFetch:t,handleError:n,init:r,reroute:void 0,transport:void 0}}a(gn,"get_hooks");function zt(e){return new Uint8Array(e).toBase64()}a(zt,"encode_native");function Ct(e){return Uint8Array.fromBase64(e).buffer}a(Ct,"decode_native");function Ft(e){return Buffer.from(e).toString("base64")}a(Ft,"encode_buffer");function Wt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}a(Wt,"decode_buffer");function Ht(e){let t=new Uint8Array(e),n="",r=32768;for(let o=0;o<t.length;o+=r){let s=t.subarray(o,o+r);n+=String.fromCharCode.apply(null,s)}return btoa(n)}a(Ht,"encode_legacy");function Vt(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r.buffer}a(Vt,"decode_legacy");var ft=typeof Uint8Array.fromBase64=="function",lt=typeof process=="object"&&process.versions?.node!==void 0,Yt=ft?zt:lt?Ft:Ht,Jt=ft?Ct:lt?Wt:Vt;function ut(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}a(ut,"merge_operations");var Gt=Object.freeze({kind:"not-plain"}),Xt=Object.freeze({kind:"symbol-keys"}),Kt=Object.freeze({identify:a(e=>e,"identify"),typeOf:a(e=>e===null?"null":typeof e,"typeOf"),toPrimitive:a(e=>e,"toPrimitive"),tagOf:a(e=>$e(e),"tagOf"),isThenable:a(e=>typeof e.then=="function","isThenable"),toPromise:a(e=>Promise.resolve(e),"toPromise"),unbox:a(e=>e.valueOf(),"unbox"),toISOString:a(e=>isNaN(e.getDate())?"":e.toISOString(),"toISOString"),toStringValue:a(e=>e.toString(),"toStringValue"),regExpInfo:a(e=>({source:e.source,flags:e.flags}),"regExpInfo"),valuesOf:a(e=>e,"valuesOf"),entriesOf:a(e=>e,"entriesOf"),viewInfo:a(e=>(Pe(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),"viewInfo"),toArrayBuffer:a(e=>e,"toArrayBuffer"),lengthOf:a(e=>e.length,"lengthOf"),hasOwn:a((e,t)=>Object.hasOwn(e,t),"hasOwn"),indicesOf:a(e=>xe(e),"indicesOf"),shapeOf:a(e=>je(e)?Te(e).length>0?Xt:{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}:Gt,"shapeOf"),get:a((e,t)=>e[t],"get")}),Zt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,qe=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Qt=Object.freeze({fromPrimitive:a(e=>e,"fromPrimitive"),fromISOString:a(e=>new Date(e),"fromISOString"),fromStringValue:a((e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),"fromStringValue"),fromArrayBuffer:a(e=>e,"fromArrayBuffer"),fromRegExpInfo:a((e,t)=>new RegExp(e,t),"fromRegExpInfo"),fromViewInfo:a((e,t,n,r)=>{try{Zt.call(t)}catch(s){if(!qe)throw s;qe.call(t)}let o=globalThis[e];return n!==void 0?new o(t,n,r):new o(t)},"fromViewInfo"),box:a(e=>Object(e),"box"),createArray:a(e=>new Array(e),"createArray"),createSparseArray:a(e=>{let t=[];return t[ee]=void 0,delete t[ee],t.length=e,t},"createSparseArray"),createObject:a(()=>({}),"createObject"),createNullPrototypeObject:a(()=>Object.create(null),"createNullPrototypeObject"),createSet:a(()=>new Set,"createSet"),createMap:a(()=>new Map,"createMap"),set:a((e,t,n)=>{e[t]=n},"set"),addValue:a((e,t)=>{e.add(t)},"addValue"),addEntry:a((e,t,n)=>{e.set(t,n)},"addEntry")});function J(e,t,n){return er(JSON.parse(e),t,n)}a(J,"parse$1");function er(e,t,n){let r=ut(Qt,n?.operations);if(typeof e=="number")return f(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");let o=e,s=Array(o.length),i=null;function f(c,d=!1){if(c===-1)return r.fromPrimitive(void 0);if(c===-3)return r.fromPrimitive(NaN);if(c===-4)return r.fromPrimitive(1/0);if(c===-5)return r.fromPrimitive(-1/0);if(c===-6)return r.fromPrimitive(-0);if(d||typeof c!="number")throw new Error("Invalid input");if(c in s)return s[c];if(c>=o.length)throw new Error("Invalid input");let l=o[c];if(!l||typeof l!="object")s[c]=r.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){let h=l[0],u=t&&Object.hasOwn(t,h)?t[h]:void 0;if(u){let m=l[1];if(typeof m!="number"&&(m=o.push(l[1])-1),Object.hasOwn(s,m))return s[c]=u(s[m]);if(i??=new Set,i.has(m))throw new Error("Invalid circular reference");return i.add(m),s[c]=u(f(m)),i.delete(m),s[c]}switch(h){case"Date":s[c]=r.fromISOString(l[1]);break;case"Set":let m=r.createSet();s[c]=m;for(let _=1;_<l.length;_+=1)r.addValue(m,f(l[_]));break;case"Map":let g=r.createMap();s[c]=g;for(let _=1;_<l.length;_+=2)r.addEntry(g,f(l[_]),f(l[_+1]));break;case"RegExp":s[c]=r.fromRegExpInfo(l[1],l[2]);break;case"Object":{let _=l[1];if(typeof o[_]=="object"&&o[_][0]!=="BigInt")throw new Error("Invalid input");s[c]=r.box(f(_));break}case"BigInt":s[c]=r.fromPrimitive(BigInt(l[1]));break;case"null":let w=r.createNullPrototypeObject();s[c]=w;for(let _=1;_<l.length;_+=2){let p=l[_];if(typeof p!="string")throw new Error("Cannot parse an object with a non-string key");if(p==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(w,p,f(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(o[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");let _=f(l[1]);s[c]=r.fromViewInfo(h,_,l[2],l[3]);break}case"ArrayBuffer":{let _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");s[c]=r.fromArrayBuffer(Jt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":s[c]=r.fromStringValue(h,l[1]);break;default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===-7){let h=l[1];if(!Re(h))throw new Error("Invalid input");let u=r.createSparseArray(h);s[c]=u;for(let m=2;m<l.length;m+=2){let g=l[m];if(!Ie(g)||g>=h)throw new Error("Invalid input");r.set(u,g,f(l[m+1]))}}else{let h=r.createArray(l.length);s[c]=h;for(let u=0;u<l.length;u+=1){let m=l[u];m!==-2&&r.set(h,u,f(m))}}else{let h=r.createObject();s[c]=h;for(let u of Object.keys(l)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(h,u,f(l[u]))}}return s[c]}return a(f,"hydrate"),f(0)}a(er,"unflatten");function ue(e,t,n){let r=tr(!1,e,t,n);return typeof r=="string"?r:`[${r.join(",")}]`}a(ue,"stringify$1");function tr(e,t,n,r){let o=ut(Kt,r?.operations),s=[],i=new Map,f=[];if(n)for(let u of Object.getOwnPropertyNames(n))f.push({key:u,fn:n[u]});let c=[],d=0;function l(u,m){let g=o.typeOf(u);if(g==="undefined")return-1;let w;if(g==="number"){if(w=o.toPrimitive(u),Number.isNaN(w))return-3;if(w===1/0)return-4;if(w===-1/0)return-5;if(w===0&&1/w<0)return-6}let _=o.identify(u);if(i.has(_))return i.get(_);m??=d++,i.set(_,m);for(let{key:b,fn:k}of f){let A=k(u);if(A)return s[m]=`["${b}",${l(A)}]`,m}if(g==="function")throw new I("Cannot stringify a function",c,u,t);if(g==="symbol")throw new I("Cannot stringify a Symbol primitive",c,u,t);let p="";if(g!=="object")p=Be(g==="number"?w:o.toPrimitive(u));else if(o.isThenable(u)){if(!e)throw new I("Cannot stringify a Promise or thenable — use stringifyAsync instead",c,u,t);p=o.toPromise(u).then(b=>{let k=l(b,m);k<0&&(s[m]=k)}),p.catch(()=>{})}else{let b=o.tagOf(u);switch(b){case"Number":case"String":case"Boolean":case"BigInt":p=`["Object",${l(o.unbox(u))}]`;break;case"Date":p=`["Date","${o.toISOString(u)}"]`;break;case"URL":p=`["URL",${T(o.toStringValue(u))}]`;break;case"URLSearchParams":p=`["URLSearchParams",${T(o.toStringValue(u))}]`;break;case"RegExp":let{source:k,flags:A}=o.regExpInfo(u);p=A?`["RegExp",${T(k)},"${A}"]`:`["RegExp",${T(k)}]`;break;case"Array":{let y=!1,v=o.lengthOf(u);p="[";for(let O=0;O<v;O+=1)if(O>0&&(p+=","),o.hasOwn(u,O))c.push(`[${O}]`),p+=l(o.get(u,O)),c.pop();else if(y)p+=-2;else{let L=o.indicesOf(u),pe=L.length,he=String(v).length;if((v-pe)*3>4+he+pe*(he+1)){p="[-7,"+v;for(let X=0;X<L.length;X++){let K=L[X];c.push(`[${K}]`),p+=","+K+","+l(o.get(u,K)),c.pop()}break}else y=!0,p+=-2}p+="]";break}case"Set":p='["Set"';for(let y of o.valuesOf(u))p+=`,${l(y)}`;p+="]";break;case"Map":p='["Map"';for(let[y,v]of o.entriesOf(u)){let O=o.typeOf(y),L=O!=="object"&&O!=="function"&&O!=="symbol";c.push(`.get(${L?Be(o.toPrimitive(y)):"..."})`),p+=`,${l(y)},${l(v)}`,c.pop()}p+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{let y=o.viewInfo(u);p='["'+b+'",'+l(y.buffer),y.byteLength!==y.bufferByteLength&&(p+=`,${y.byteOffset},${y.length}`),p+="]";break}case"DataView":{let y=o.viewInfo(u);p='["'+b+'",'+l(y.buffer),y.byteLength!==y.bufferByteLength&&(p+=`,${y.byteOffset},${y.byteLength}`),p+="]";break}case"ArrayBuffer":p=`["ArrayBuffer","${Yt(o.toArrayBuffer(u))}"]`;break;case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":p=`["${b}",${T(o.toStringValue(u))}]`;break;default:{let y=o.shapeOf(u);if(y.kind==="not-plain")throw new I("Cannot stringify arbitrary non-POJOs",c,u,t);if(y.kind==="symbol-keys")throw new I("Cannot stringify POJOs with symbolic keys",c,u,t);if(y.kind==="null-proto"){p='["null"';for(let v of y.keys){if(v==="__proto__")throw new I("Cannot stringify objects with __proto__ keys",c,u,t);c.push(te(v)),p+=`,${T(v)},${l(o.get(u,v))}`,c.pop()}p+="]"}else{p="{";let v=!1;for(let O of y.keys){if(O==="__proto__")throw new I("Cannot stringify objects with __proto__ keys",c,u,t);v&&(p+=","),v=!0,c.push(te(O)),p+=`${T(O)}:${l(o.get(u,O))}`,c.pop()}p+="}"}}}}return s[m]=p,m}a(l,"flatten");let h=l(t);return h<0?`${h}`:s}a(tr,"run");function Be(e){let t=typeof e;return t==="string"?T(e):e===void 0?"-1":e===0&&1/e<0?"-6":t==="bigint"?`["BigInt","${e}"]`:String(e)}a(Be,"stringify_primitive");function rr(e,t,n){fr(e,cr(t.name),n)}a(rr,"set_nested_value");function nr(e,t){let n="/"+e,r=t,o="";r.startsWith("i:")&&(r.endsWith(n+".x")||r.endsWith(n+".y"))&&(o=r[r.length-1],r=r.slice(0,-2)),r.endsWith(n)||nt({name:r}),r=r.slice(0,-n.length);let s=null;r.startsWith("n:")?(r=r.slice(2),s="number"):r.startsWith("b:")?(r=r.slice(2),s="boolean"):r.startsWith("i:")&&(r=r.slice(2),s="number");let i=r.endsWith("[]");return i&&(r=r.slice(0,-2)),o&&(r+="."+o),{name:r,type:s,is_array:i}}a(nr,"parse_form_key");function dt(e,t){return Array.isArray(t)?t.map(n=>dt(e,n)):e==="number"?t===""?void 0:parseFloat(t):e==="boolean"?t==="on":t}a(dt,"coerce_form_value");var Ne={};function or(e,t){let n={};for(let r of t.keys()){let o=t.getAll(r),s=nr(e,r),i=o.filter(f=>typeof f=="string"||f.name!==""||f.size>0);i.length===0&&!s.is_array||(i.length>1&&!s.is_array&&et({name:s.name,count:String(i.length)}),rr(n,s,dt(s.type,s.is_array?i:i[0])))}return n}a(or,"convert_formdata");var ar="application/x-sveltekit-formdata",De=0,H=7;async function mt(e,t){if(e.headers.get("content-type")!=="application/x-sveltekit-formdata"){let _=await e.formData();return{data:or(t,_),meta:{},form_data:_}}if(!e.body)throw P("no body");let n=e.body.getReader(),r=[];function o(_){if(_ in r)return r[_];let p=r.length;for(;p<=_;){let b=r[p-1]??Promise.resolve(void 0);r[p]=b.then(()=>n.read()).then(k=>k.value),p++}return r[_]}a(o,"get_chunk");async function s(_,p){let b=[],k=0;for await(let v of pt(o,_,p))b.push(v),k+=v.byteLength;if(k<p||b.length===0)return null;if(b.length===1)return b[0];let A=new Uint8Array(p),y=0;for(let v of b)A.set(v,y),y+=v.byteLength;return A}a(s,"get_buffer");let i=await s(0,H);if(!i)throw P("too short");if(i[0]!==De)throw P(`got version ${i[0]}, expected version ${De}`);let f=new DataView(i.buffer,i.byteOffset,i.byteLength),c=f.getUint32(1,!0),d=f.getUint16(5,!0),l=await s(H,c);if(!l)throw P("data too short");let h,u;if(d>0){let _=await s(H+c,d);if(!_)throw P("file offset table too short");let p=JSON.parse(Y.decode(_));if(!Array.isArray(p)||p.some(b=>typeof b!="number"||!Number.isInteger(b)||b<0))throw P("invalid file offset table");h=p,u=H+c+d}let m=[],[g,w]=J(Y.decode(l),{File:a(([_,p,b,k,A])=>{if(typeof _!="string"||typeof p!="string"||!Number.isSafeInteger(b)||b<0||!Number.isSafeInteger(k)||!Number.isSafeInteger(A)||A<0)throw P("invalid file metadata");let y=h[A];if(y===void 0)throw P("duplicate file offset table index");return h[A]=void 0,y+=u,m.push({offset:y,size:b}),new Proxy(new sr(_,p,b,k,o,y),{getPrototypeOf(){return File.prototype}})},"File")});m.sort((_,p)=>_.offset-p.offset||_.size-p.size);for(let _=1;_<m.length;_++){let p=m[_-1],b=m[_],k=p.offset+p.size;if(k<b.offset)throw P("gaps in file data");if(k>b.offset)throw P("overlapping file data")}return(async()=>{let _=!0;for(;_;)_=!!await o(r.length)})().catch(Ue),{data:g,meta:w,form_data:null}}a(mt,"deserialize_binary_form");function P(e){return new E(400,"Bad Request",`Could not deserialize binary form: ${e}`)}a(P,"deserialize_error");async function*pt(e,t,n){let r=0;for(let o=0;;o++){let s=await e(o);if(!s)return;let i=r+s.byteLength;if(i>t&&(yield s.subarray(Math.max(0,t-r),Math.min(s.byteLength,t+n-r)),t+n<=i))return;r=i}}a(pt,"read_range");var sr=class ht{static{a(this,"LazyFile")}#e;#t;constructor(t,n,r,o,s,i){this.name=t,this.type=n,this.size=r,this.lastModified=o,this.webkitRelativePath="",this.#e=s,this.#t=i,this.arrayBuffer=this.arrayBuffer.bind(this),this.bytes=this.bytes.bind(this),this.slice=this.slice.bind(this),this.stream=this.stream.bind(this),this.text=this.text.bind(this)}#r;async arrayBuffer(){return this.#r??=await new Response(this.stream()).arrayBuffer(),this.#r}async bytes(){return new Uint8Array(await this.arrayBuffer())}slice(t=0,n=this.size,r=this.type){t<0?t=Math.max(this.size+t,0):t=Math.min(t,this.size),n<0?n=Math.max(this.size+n,0):n=Math.min(n,this.size);let o=Math.max(n-t,0);return new ht(this.name,r,o,this.lastModified,this.#e,this.#t+t)}stream(){let t=pt(this.#e,this.#t,this.size),n=this.size;return ce((async function*(){let r=0;for await(let o of t)r+=o.byteLength,yield o;if(r<n)throw new Error("incomplete file data")})())}async text(){return Y.decode(await this.arrayBuffer())}},ir=/^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;function cr(e){return ir.test(e)||rt({name:e}),e.split(/\.|\[|\]/).filter(Boolean)}a(cr,"split_path");function ze(e){(e==="__proto__"||e==="constructor"||e==="prototype")&&tt({key:e})}a(ze,"check_prototype_pollution");function fr(e,t,n){let r=e;for(let s=0;s<t.length-1;s+=1){let i=t[s];ze(i);let f=/^\d+$/.test(t[s+1]),c=Object.hasOwn(r,i)?r[i]:void 0,d=c!=null;if(d&&f!==Array.isArray(c)&&Qe({key:t[s+1]}),!d){if(n===Ne)return;r[i]=f?[]:{}}r=r[i]}let o=t[t.length-1];ze(o),n===Ne?delete r[o]:r[o]=n}a(fr,"deep_set");function bn(e,t=!1){let n={name:"",path:[],message:e.message,server:t};if(e.path!==void 0){let r="";for(let o of e.path){let s=typeof o=="object"?o.key:o;n.path.push(s),typeof s=="number"?r+=`[${s}]`:typeof s=="string"&&(r+=r===""?s:"."+s)}n.name=r}return n}a(bn,"normalize_issue");function wn(e){let t=Object.create(null);for(let n of e){(t.$??=[]).push(n);let r="";if(n.path!==void 0)for(let o of n.path)typeof o=="number"?r+=`[${o}]`:typeof o=="string"&&(r+=r===""?o:"."+o),(t[r]??=[]).push(n)}return t}a(wn,"flatten_issues");function Ce(e,t){let n=e;for(let r of t){if(n===null||typeof n!="object"||!Object.hasOwn(n,r))return;n=n[r]}return n}a(Ce,"deep_get");var lr={number:"n:",boolean:"b:"};function M(e,t){for(let n in t){let r=t[n];typeof r=="function"?Object.defineProperty(e,n,{enumerable:!0,get:r}):e[n]=r}return e}a(M,"add_props");function ur(e,t,n){return e==="number"||e==="range"?"n:":e==="image"?"i:":e==="checkbox"&&!t?"b:":e==="hidden"||e==="submit"?lr[typeof n]??"":""}a(ur,"get_type_prefix");function ae(e){if(e!==null&&typeof e=="object"){if(e instanceof Date)return new Date(e.getTime());if(e instanceof File)return e;if(Array.isArray(e))return e.map(ae);let t={};for(let n of Object.keys(e))t[n]=ae(e[n]);return t}return e}a(ae,"deep_clone");var dr=null,Fe=a(e=>({path:e.path,message:e.message}),"public_issue");function mr(e,t,n){switch(n){case"set":return r=>(e.set(t,r),r);case"value":return()=>ae(Ce(e.get(),t));case"issues":case"allIssues":{let r=oe(t),o=n==="allIssues";return()=>{let s=e.get_issues(t,o)[r===""?"$":r];if(o)return s?.map(Fe);let i=s?.filter(f=>f.name===r).map(Fe);return i?.length?i:void 0}}case"touched":case"dirty":{let r=oe(t);return()=>{let o=n==="dirty"?e.get_dirty():e.get_touched();if(Object.hasOwn(o,r))return!0;for(let s in o){if(!Object.hasOwn(o,s))continue;if(r==="")return!0;if(!s.startsWith(r))continue;let i=s[r.length];if(i==="."||i==="[")return!0}return!1}}case"as":{let r=oe(t),o=a(s=>Ce(e.get(),t)??(s!==void 0&&Object.hasOwn(e.get_dirty(),r)?void 0:s),"read");return(s,i,f)=>{let c=s==="file multiple"||s==="select multiple"||s==="checkbox"&&typeof i=="string",d={name:ur(s,c,i)+r+(c?"[]":"")+"/"+e.form_id,get"aria-invalid"(){let l=e.get_issues();return r in l?"true":void 0}};return s!=="text"&&s!=="select"&&s!=="select multiple"&&(d.type=s==="file multiple"?"file":s),s==="submit"||s==="hidden"?M(d,{value:typeof i=="boolean"?i?"on":"off":i}):s==="select"||s==="select multiple"?M(d,{multiple:c,value:a(()=>{let l=o(i);return Array.isArray(l)?[...l]:l},"value")}):s==="checkbox"||s==="radio"?(s==="radio"||c?d.value=i??"on":f=i,M(d,{defaultChecked:f,checked:a(()=>{let l=o();return l==null?o(f):s==="radio"?l===i:c?l.includes(i):l},"checked")})):s==="file"||s==="file multiple"?M(d,{multiple:c,files:a(()=>{let l=o(),h=l instanceof File?[l]:l;if(!Array.isArray(h)||!h.every(m=>m instanceof File))return null;if(typeof DataTransfer>"u")return Object.assign({length:h.length},h);let u=new DataTransfer;for(let m of h)u.items.add(m);return u.files},"files")}):s==="image"?d:M(d,{defaultValue:i,value:a(()=>String(o(i)??""),"value")})}}}}a(mr,"create_field_method");function pr(e,t={},n=[]){return new Proxy(t,{...dr,get(r,o){if(typeof o=="symbol")return r[o];let s=[...n,/^\d+$/.test(o)?parseInt(o,10):o];return pr(e,mr(e,n,o),s)}})}a(pr,"create_field_proxy");function oe(e){let t="";for(let n of e)typeof n=="number"?t+=`[${n}]`:t+=t===""?n:"."+n;return t}a(oe,"build_path_string");function hr(e,t){let n=[];e.split(",").forEach((s,i)=>{let f=/^[ \t]*([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(s);if(f){let[,c,d,l="1"]=f;n.push({type:c,subtype:d,q:+l,i})}}),n.sort((s,i)=>s.q!==i.q?i.q-s.q:s.subtype==="*"!=(i.subtype==="*")?s.subtype==="*"?1:-1:s.type==="*"!=(i.type==="*")?s.type==="*"?1:-1:s.i-i.i);let r,o=1/0;for(let s of t){let[i,f]=s.split("/"),c=n.findIndex(d=>(d.type===i||d.type==="*")&&(d.subtype===f||d.subtype==="*"));c!==-1&&c<o&&(r=s,o=c)}return r}a(hr,"negotiate");function _r(e,...t){let n=e?.split(";",1)[0].trim()??"";return t.includes(n.toLowerCase())}a(_r,"matches_content_type");function _t(e){return _r(e.headers.get("content-type"),"application/x-www-form-urlencoded","multipart/form-data","text/plain",ar)}a(_t,"is_form_content_type");var yt=a(()=>{throw new Error("")},"uneval"),U=a(()=>{throw new Error("")},"stringify"),yr=a(()=>{throw new Error("")},"parse"),se={},ie={},gr=!1;function vn(e){let t=Object.entries(e);gr=t.length>0;let n=a(r=>{for(let o of Object.keys(e)){let s=e[o].encode(r);if(s)return`app.decode('${o}', ${re(s,n)})`}},"replacer");se=Object.fromEntries(t.map(([r,o])=>[r,o.encode])),ie=Object.fromEntries(t.map(([r,o])=>[r,o.decode])),yt=a(r=>re(r,n),"uneval"),U=a(r=>ue(r,se),"stringify"),yr=a(r=>J(r,ie),"parse")}a(vn,"init_transport");function kn(e,t){return e.origin===t.origin?e.href.slice(t.origin.length):e.href}a(kn,"fetch_cache_url");var On="x-sveltekit-invalidated",An="x-sveltekit-trailing-slash";var br=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wr(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===br}a(wr,"is_plain_object");function vr(e,t){let n=Object.getPrototypeOf(e)===null?Object.create(null):{};t.set(e,n),Object.defineProperty(n,wt,{value:!0});for(let r of Object.keys(e).sort()){let o=e[r];Object.defineProperty(n,r,{value:t.get(o)??o,enumerable:!0,configurable:!0,writable:!0})}return n}a(vr,"to_sorted");var de="__skrao",gt="__skram",bt="__skras",kr="__skraf",Or="__skrag",wt=Symbol(de);function Ar(e){let t={[Or]:o=>{o instanceof RegExp&&st({type:"Regular expressions"})}};if(e){let o=new Map;t[gt]=s=>{if(!(s instanceof Map))return;let i=[];for(let[f,c]of s)i.push([r(f),r(c)]);return i.sort(([f,c],[d,l])=>f<d?-1:f>d?1:c<l?-1:c>l?1:0)},t[bt]=s=>{if(!(s instanceof Set))return;let i=[];for(let f of s)i.push(r(f));return i.sort(),i},t[de]=s=>{if(wr(s)&&!Object.hasOwn(s,wt))return o.has(s)?o.get(s):vr(s,o)}}let n={...se,...t},r=a(o=>ue(o,n),"stringify");return n}a(Ar,"create_remote_arg_reducers");function Er(){let e={[de]:r=>r,[gt]:r=>{if(!Array.isArray(r))throw new Error("Invalid data for Map reviver");let o=new Map;for(let s of r){if(!Array.isArray(s)||s.length!==2||typeof s[0]!="string"||typeof s[1]!="string")throw new Error("Invalid data for Map reviver");let[i,f]=s;o.set(n(i),n(f))}return o},[bt]:r=>{if(!Array.isArray(r))throw new Error("Invalid data for Set reviver");let o=new Set;for(let s of r){if(typeof s!="string")throw new Error("Invalid data for Set reviver");o.add(n(s))}return o},[kr]:r=>{if(!r||typeof r!="object"||typeof r.name!="string"||typeof r.type!="string"||typeof r.size!="number"||typeof r.lastModified!="number"||!(r.data instanceof ArrayBuffer))throw new Error("Invalid data for File reviver");let{data:o,name:s,...i}=r;return new File([o],s,i)}},t={...ie,...e},n=a(r=>J(r,t),"parse");return t}a(Er,"create_remote_arg_revivers");function En(e){return e===void 0?"":Sr(ue(e,Ar(!0)))}a(En,"stringify_remote_arg");function Sr(e){return Rt(D.encode(e)).replaceAll("=","").replaceAll("+","-").replaceAll("/","_")}a(Sr,"url_friendly_base64_encode");function q(e){if(e)return J(Y.decode(xt(e.replaceAll("-","+").replaceAll("_","/"))),Er())}a(q,"parse_remote_arg");function jr(e,t){return e+"/"+t}a(jr,"create_remote_key");function $r(e){let t=e.lastIndexOf("/");if(t===-1)throw new Error(`Invalid remote key: ${e}`);return{id:e.slice(0,t),payload:e.slice(t+1)}}a($r,"split_remote_key");function Pr(e,t){try{Reflect.set(e,"stack",t)}catch{}return e.stack}a(Pr,"set_error_stack");function Tr(e){return e instanceof Error||e&&e.name&&e.message?e:new Error(JSON.stringify(e))}a(Tr,"coalesce_to_error");function Sn(e){return e instanceof Z||e instanceof E?e.status:500}a(Sn,"get_status");function G(e,t,n){if(n instanceof _e)return n.body;let r;if(n instanceof Z)r={kind:"app",error:n.body};else if(n instanceof E)r={kind:"framework",error:{status:n.status,message:n.text}};else if(n instanceof ye)r={kind:"validation",error:{status:400,message:"Bad Request"},issues:n.issues};else{r={kind:"unknown",error:n};let f=n;for(;f instanceof Error;)jt(f),f=f.cause}let o=r.kind==="unknown"?{status:500,message:"Internal Error"}:r.error;function s(f){return{...o,...f}}a(s,"merge");let i;try{let f={...r,event:e};i=S({event:e,state:t},()=>Pt.handleError(f))}catch(f){return We(n,f),{status:o.status,message:"Internal Error"}}return i instanceof Promise?i.then(s,f=>(We(n,f),{status:o.status,message:"Internal Error"})):s(i)}a(G,"handle_error_and_jsonify");function We(e,t){let n=Q(()=>Oe(void 0,{cause:Tr(t)}));n.stack=`${n.name}: ${n.message}`,console.error(n),e instanceof E?console.error(`Original error: ${e.status} ${e.text}: ${e.message}`):console.error("Original error:",e)}a(We,"log_handle_error_hook_failure");var Ir=["GET","POST","PUT","PATCH","DELETE","OPTIONS","HEAD","QUERY"],Rr=["POST","PUT","PATCH","DELETE"],jn=[...Rr,"QUERY"],$n=["GET","POST","HEAD"];import.meta.dirname;var Pn=!!globalThis.process?.versions?.webcontainer,Tn="x-sveltekit-rerouted-url";function In(e,t){return Le(`${t} method not allowed`,{status:405,headers:{allow:xr(e).join(", ")}})}a(In,"method_not_allowed");function xr(e){let t=Ir.filter(n=>n in e);return"GET"in e&&!("HEAD"in e)&&t.push("HEAD"),t}a(xr,"allowed_methods");function Rn(e,t){return new Response(void 0,{status:e,headers:{location:t}})}a(Rn,"redirect_response");function vt(e){return e.headers.set("x-sveltekit-version","1791976730026"),e}a(vt,"with_version_header");function xn(e,t){let n=e.route.id;throw t.path&&Ee({id:n,message:t.message,path:t.path},{cause:t}),t.path===""&&Ae({id:n},{cause:t}),new Error(t.message,{cause:t})}a(xn,"throw_devalue_error");function Un(e){let t={};return e.uses&&e.uses.dependencies.size>0&&(t.dependencies=Array.from(e.uses.dependencies)),e.uses&&e.uses.search_params.size>0&&(t.search_params=Array.from(e.uses.search_params)),e.uses&&e.uses.params.size>0&&(t.params=Array.from(e.uses.params)),e.uses?.parent&&(t.parent=1),e.uses?.route&&(t.route=1),e.uses?.url&&(t.url=1),t}a(Un,"serialize_uses");function Ln(e){return z.prerendered_routes.has(e)||e.at(-1)==="/"&&z.prerendered_routes.has(e.slice(0,-1))}a(Ln,"has_prerendered_path");function Mn(e){let t=e?.split("/")?.at(-1);return t?t.split(".").slice(0,-1).join("."):"unknown"}a(Mn,"get_node_type");function qn(e){return hr(e.request.headers.get("accept")??"*/*",["application/json","text/html"])==="application/json"&&e.request.method==="POST"}a(qn,"is_action_json_request");async function Bn(e,t,n){return kt(e,t,await Ur(e,t,n))}a(Bn,"handle_action_json_request");async function kt(e,t,n){if(n.type==="redirect")return B(n);if(n.type==="error"){let r=await G(e,t,n.error);return B({...n,error:r},{status:r.status})}if(n.type==="success"&&!n.data)return B({...n,status:204,data:void 0});try{return B({...n,data:Et(n.data,U,e.route.id)},{status:n.status})}catch(r){return kt(e,t,me(r,n.location))}}a(kt,"action_result_json");function Ot(e){let t=new URL(e);for(let n of t.searchParams.keys())if(n.startsWith("/")){t.searchParams.delete(n);break}return(t.pathname.startsWith("//")?"/."+t.pathname:t.pathname)+t.search}a(Ot,"get_action_location");function At(e,t){return e.setHeaders({allow:"GET"}),{type:"error",location:t,error:new E(405,"Method Not Allowed","POST method not allowed. No form actions exist for this page")}}a(At,"method_not_allowed_result");function me(e,t){let n=e;return n instanceof R?{type:"redirect",status:n.status,location:n.location}:{type:"error",location:t,error:n}}a(me,"action_error_result");function Nn(e){return B({type:"redirect",status:e.status,location:e.location})}a(Nn,"action_json_redirect");function B(e,t){return vt(Response.json(e,t))}a(B,"action_json");function Dn(e){return e.request.method==="POST"}a(Dn,"is_action_request");async function Ur(e,t,n){let r=n?.actions,o=Ot(e.url);if(!r)return At(e,o);Lr(r);try{let s=await Mr(e,t,r);return s instanceof C?{type:"failure",status:s.status,location:o,data:s.data}:{type:"success",status:200,location:o,data:s}}catch(s){return me(s instanceof C?Q(()=>ke()):s,o)}}a(Ur,"handle_action_request");function Lr(e){e.default&&Object.keys(e).length>1&&be()}a(Lr,"check_named_default_separate");async function Mr(e,t,n){let r=new URL(e.request.url),o="default";for(let i of r.searchParams)if(i[0].startsWith("/")){o=i[0].slice(1),o==="default"&&we();break}if(!Object.hasOwn(n,o))throw new E(404,"Not Found",`No action with name '${o}' found`);let s=n[o];if(!_t(e.request))throw new E(415,"Unsupported Media Type",`Form actions expect form-encoded data — received ${e.request.headers.get("content-type")}`);return F({name:"sveltekit.form_action",attributes:{"sveltekit.form_action.name":o,"http.route":e.route.id||"unknown"},fn:a(async i=>{let f=W(e,i),c=await S({event:f,state:t},()=>s(f));return c instanceof C&&i.setAttributes({"sveltekit.form_action.result.type":"failure","sveltekit.form_action.result.status":c.status}),c},"fn")})}a(Mr,"call_action");function zn(e,t){return Et(e,yt,t)}a(zn,"uneval_action_response");function Et(e,t,n){try{return t(e)}catch(r){if(e instanceof Response&&ve({id:n},{cause:r}),"path"in r){let o={id:n,message:r.message};ge(r.path===""?o:{...o,path:`data${r.path}`},{cause:r})}throw r}}a(Et,"try_serialize");var qr=3e4;function Br(e,t,n,r){let o=new AbortController,s={...e,request:new Request(e.request,{signal:AbortSignal.any([e.request.signal,o.signal])})},i=n.run(s,t,r),f=!0,c=!1,d,l,h;function u(){clearTimeout(l),l=setTimeout(()=>{f&&((d.desiredSize??0)>0&&d.enqueue(D.encode(`: keep-alive
112
112
 
113
113
  `)),u())},qr)}a(u,"schedule_keep_alive");function m(w){f&&(d.enqueue(D.encode("data: "+JSON.stringify(w)+`
114
114
 
@@ -116,4 +116,4 @@ https://svelte.dev/e/kit/${e}`);throw r.name="SvelteKit error",Error.captureStac
116
116
  `).map((n,r)=>{let o=n.match(/^ {4}at.+(file:\/\/\/.*):(\d+):(\d+)(\)?)$/);if(!o)return n.includes("node:internal/")||(t=r+1),n;let s=St.fileURLToPath(o[1]),i=$t(s,Number(o[2])-1,Number(o[3])-1);if(/[\\/]node_modules[\\/]/.test(i?.file??s)||(t=r+1),i?.line){let f=`${o[1]}:${o[2]}:${o[3]}`,c=`${Je(i.file)}:${i.line}:${i.column}`;return n.replace(f,c)}return i?`${n.replace(o[1],Je(s))} [${i.file}]`:n}).slice(0,t).join(`
117
117
  `))},"fix_stack_trace");function Vn(e){jt=e}a(Vn,"set_fix_stack_trace");var V=new Map,Ge=new Map;function Wr(e){if(V.has(e))return V.get(e);try{let t,n=x.dirname(e),r=N.readFileSync(e,"utf8"),o=Array.from(r.matchAll(/\/\/[#@]\s*sourceMappingURL=(\S+)/g)).at(-1)?.[1];if(o?.startsWith("data:")){let s=o.indexOf(","),i=o.slice(5,s),f=o.slice(s+1);t=i.endsWith(";base64")?Buffer.from(f,"base64").toString():decodeURIComponent(f)}else{let s=o?x.resolve(x.dirname(e),decodeURIComponent(o)):`${e}.map`;N.existsSync(s)&&(n=x.dirname(s),t=N.readFileSync(s,"utf8"))}if(t){let s={map:new Fr.SourceMap(JSON.parse(t)),directory:n};return V.set(e,s),s}}catch{}return V.set(e,null),null}a(Wr,"get_source_map");function $t(e,t,n){let r=Wr(e);if(!r)return null;let o=r.map.findEntry(t,n);if(o&&"originalSource"in o&&o.originalSource&&typeof o.originalLine=="number"&&typeof o.originalColumn=="number"){let f={file:o.originalSource.startsWith("file:")?St.fileURLToPath(o.originalSource):x.resolve(r.directory,o.originalSource),line:o.originalLine+1,column:o.originalColumn+1};return $t(f.file,f.line-1,f.column-1)??f}let s=Ge.get(e);if(!s){let f;s=N.readFileSync(e,"utf8").split(`
118
118
  `).map(c=>{let d=c.match(/^\/\/#region (.+)$/);return d&&(f=d[1]),c==="//#endregion"&&(f=void 0),f}),Ge.set(e,s)}let i=s[t];return i?{file:i}:null}a($t,"trace");var Yn=globalThis.process?.getBuiltinModule?.("node:util")?.styleText??((e,t)=>t),Hr=!1,z=!1,Pt=!1;function Jn(e){Hr=a(t=>{let n=e(t);return n instanceof ReadableStream?n:ce((async function*(){let r=await n;r&&(yield*r)})())},"read_implementation")}a(Jn,"set_read_implementation");function Gn(e){z=e}a(Gn,"set_manifest");function Xn(e){Pt=e}a(Xn,"set_hooks");export{en as a,Tt as b,Xe as c,tn as d,D as e,rn as f,Rt as g,nn as h,on as i,an as j,sn as k,cn as l,fn as m,Ut as n,Lt as o,ln as p,un as q,dn as r,mn as s,pn as t,hn as u,_n as v,yn as w,gn as x,ue as y,nr as z,cr as A,fr as B,bn as C,wn as D,pr as E,hr as F,_t as G,yt as H,se as I,gr as J,vn as K,kn as L,On as M,An as N,En as O,jr as P,Sn as Q,G as R,Ir as S,jn as T,$n as U,Pn as V,Tn as W,In as X,Rn as Y,vt as Z,xn as _,Un as $,Ln as aa,Mn as ba,qn as ca,Bn as da,Nn as ea,Dn as fa,Ur as ga,zn as ha,Cn as ia,He as ja,Fn as ka,Wn as la,Hn as ma,Vn as na,Hr as oa,z as pa,Pt as qa,Jn as ra,Gn as sa,Xn as ta};
119
- //# sourceMappingURL=chunk-YGLOO2DN.js.map
119
+ //# sourceMappingURL=chunk-RJLO3ZOK.js.map
@@ -0,0 +1,3 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{a as w,b}from"./chunk-ZB4GC6MX.js";import{a as l,b as d,g as k}from"./chunk-7TDI4YTA.js";import{m as c,o,p as v}from"./chunk-CIVNMUP4.js";import{b as p,c as u}from"./chunk-KHGYICM3.js";import{h as n,k as m}from"./chunk-NFXTMZA7.js";import{a as i}from"./chunk-WFJCOJII.js";var f=u({getBreakdown:i(()=>g,"getBreakdown")}),h=c({dimension:o(d),grain:o(l),periodKey:v()}),g=p(h,async({dimension:r,grain:t,periodKey:a})=>{let{locals:s}=n();try{return b(s.user),{dimension:r,grain:t,periodKey:a,items:(await k({models:{totals:s.services.totals,breakdowns:s.services.breakdowns,markers:s.services.markers},dimension:r,grain:t,periodKey:a,now:new Date})).map(e=>({value:e.value,hits:e.hits,bytes:e.bytes})).sort((e,_)=>_.hits-e.hits)}}catch(e){w(e,{redirectOnUnauthorized:!0})}});m(f,"src/lib/remote/breakdowns.remote.ts","qvubti");for(let[r,t]of Object.entries(f))t.__.id="qvubti/"+r,t.__.name=r;export{f as a};
3
+ //# sourceMappingURL=chunk-UWZTBH4Y.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/lib/remote/breakdowns.remote.ts"],
4
- "mappings": ";4UAMMA,EAAuBC,EAAO,CAClC,UAAaC,EAASC,CAAU,EAChC,MAASD,EAASE,CAAM,EACxB,UAAaC,EAAO,CACtB,CAAC,EAEYC,EAAeC,EAAMP,EAAoB,MAAO,CAAE,UAAAQ,EAAW,MAAAC,EAAO,UAAAC,CAAA,IAAgB,CAC/F,GAAM,CAAE,OAAAC,CAAA,EAAWC,EAAgB,EACnC,GAAI,CACF,OAAAC,EAAYF,EAAO,IAAI,EAchB,CACL,UAAAH,EACA,MAAAC,EACA,UAAAC,EACA,OAAO,MAhBWI,EAAqB,CACvC,OAAQ,CACN,OAAQH,EAAO,SAAS,OACxB,WAAYA,EAAO,SAAS,WAC5B,QAASA,EAAO,SAAS,OAC3B,EACA,UAAAH,EACA,MAAAC,EACA,UAAAC,EACA,IAAK,IAAI,IACX,CAAC,GAOI,IAAKK,IAAU,CAAE,MAAOA,EAAK,MAAO,KAAMA,EAAK,KAAM,MAAOA,EAAK,KAAM,EAAE,EACzE,KAAA,CAAMC,EAAMC,IAAUA,EAAM,KAAOD,EAAK,IAAI,CACjD,CACF,OAASE,EAAQ,CACfC,EAAcD,EAAQ,CAAE,uBAAwB,EAAK,CAAC,CACxD,CACF,CAAC",
4
+ "mappings": ";uUAMMA,EAAuBC,EAAO,CAClC,UAAaC,EAASC,CAAU,EAChC,MAASD,EAASE,CAAM,EACxB,UAAaC,EAAO,CACtB,CAAC,EAEYC,EAAeC,EAAMP,EAAoB,MAAO,CAAE,UAAAQ,EAAW,MAAAC,EAAO,UAAAC,CAAA,IAAgB,CAC/F,GAAM,CAAE,OAAAC,CAAA,EAAWC,EAAgB,EACnC,GAAI,CACF,OAAAC,EAAYF,EAAO,IAAI,EAchB,CACL,UAAAH,EACA,MAAAC,EACA,UAAAC,EACA,OAAO,MAhBWI,EAAqB,CACvC,OAAQ,CACN,OAAQH,EAAO,SAAS,OACxB,WAAYA,EAAO,SAAS,WAC5B,QAASA,EAAO,SAAS,OAC3B,EACA,UAAAH,EACA,MAAAC,EACA,UAAAC,EACA,IAAK,IAAI,IACX,CAAC,GAOI,IAAKK,IAAU,CAAE,MAAOA,EAAK,MAAO,KAAMA,EAAK,KAAM,MAAOA,EAAK,KAAM,EAAE,EACzE,KAAA,CAAMC,EAAMC,IAAUA,EAAM,KAAOD,EAAK,IAAI,CACjD,CACF,OAASE,EAAQ,CACfC,EAAcD,EAAQ,CAAE,uBAAwB,EAAK,CAAC,CACxD,CACF,CAAC",
5
5
  "names": ["getBreakdownSchema", "object", "picklist", "dimensions", "grains", "string", "getBreakdown", "query", "dimension", "grain", "periodKey", "locals", "getRequestEvent", "requireUser", "resolveBreakdownLive", "item", "left", "right", "thrown", "toRemoteError"]
6
6
  }
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{a as T,b as y,f as S,h as v,i as g}from"./chunk-YHXLVT6T.js";import{l as w}from"./chunk-DPYCV7DC.js";import{a as o}from"./chunk-WFJCOJII.js";function z(c,C){c.component(a=>{let{view:r,value:H,startKey:Y,onchange:k}=C,m=new Date,f=g(()=>w(Y)),i=g(()=>w(H)),I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function b(t){return t.toString().padStart(2,"0")}o(b,"pad2");function N(t){return t.toString().padStart(4,"0")}o(N,"pad4");function l(t){let e=N(t.getUTCFullYear()),n=b(t.getUTCMonth()+1),u=b(t.getUTCDate()),s=b(t.getUTCHours());return r==="year"?e:r==="month"?`${e}-${n}`:r==="day"?`${e}-${n}-${u}`:`${e}-${n}-${u}-${s}`}o(l,"keyFor");function p(t){return t.getTime()<f().getTime()?new Date(f().getTime()):t.getTime()>m.getTime()?new Date(m.getTime()):t}o(p,"clamp");let P=g(()=>l(i())<=l(p(f()))),A=g(()=>l(i())>=l(p(m)));function d(t){k(l(p(t)))}o(d,"emit");let E=g(()=>{let t=f().getUTCFullYear(),e=m.getUTCFullYear();return Array.from({length:e-t+1},(n,u)=>t+u)});function U(t){let e=new Date(i().getTime());return e.setUTCFullYear(t),e}o(U,"withYear");function x(t){let e=new Date(i().getTime());return e.setUTCMonth(t),e}o(x,"withMonth");function _(t){let e=new Date(i().getTime());return e.setUTCDate(t),e}o(_,"withDay");function M(t){let e=new Date(i().getTime());return e.setUTCHours(t),e}o(M,"withHour");let L=g(()=>new Date(Date.UTC(i().getUTCFullYear(),i().getUTCMonth()+1,0)).getUTCDate());function D(t){let e=l(t);return e<l(p(f()))||e>l(p(m))}o(D,"outOfRange");function O(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(U(Number(e.value)))}o(O,"onYear");function J(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(x(Number(e.value)))}o(J,"onMonth");function K(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(_(Number(e.value)))}o(K,"onDay");function R(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(M(Number(e.value)))}o(R,"onHour"),a.push(`<div class="cluster period-picker svelte-x67t59" role="group" aria-label="Period"><button type="button" class="button mini ghost svelte-x67t59"${y("disabled",P(),!0)}${y("aria-label",`Previous ${S(r)}`)}>‹</button> `),a.select({value:String(i().getUTCFullYear()),onchange:O,"aria-label":"Year",class:""},t=>{t.push("<!--[-->");let e=v(E());for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(s),disabled:D(U(s))},h=>{h.push(`${T(s)}`)})}t.push("<!--]-->")},"svelte-x67t59"),a.push(" "),r!=="year"?(a.push("<!--[0-->"),a.select({value:String(i().getUTCMonth()),onchange:J,"aria-label":"Month",class:""},t=>{t.push("<!--[-->");let e=v(I);for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(n),disabled:D(x(n))},h=>{h.push(`${T(s)}`)})}t.push("<!--]-->")},"svelte-x67t59")):a.push("<!--[-1-->"),a.push("<!--]--> "),r==="day"||r==="hour"?(a.push("<!--[0-->"),a.select({value:String(i().getUTCDate()),onchange:K,"aria-label":"Day",class:""},t=>{t.push("<!--[-->");let e=v(Array.from({length:L()},(n,u)=>u+1));for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(s),disabled:D(_(s))},h=>{h.push(`${T(s)}`)})}t.push("<!--]-->")},"svelte-x67t59")):a.push("<!--[-1-->"),a.push("<!--]--> "),r==="hour"?(a.push("<!--[0-->"),a.select({value:String(i().getUTCHours()),onchange:R,"aria-label":"Hour",class:""},t=>{t.push("<!--[-->");let e=v(Array.from({length:24},(n,u)=>u));for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(s),disabled:D(M(s))},h=>{h.push(`${T(b(s))}:00`)})}t.push("<!--]-->")},"svelte-x67t59")):a.push("<!--[-1-->"),a.push(`<!--]--> <button type="button" class="button mini ghost svelte-x67t59"${y("disabled",A(),!0)}${y("aria-label",`Next ${S(r)}`)}>›</button></div>`)})}o(z,"PeriodPicker");function B({view:c,periodKey:C}){let a=w(C);if(c==="hour"){let r=new Date(a.getTime()+36e5);return`${new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}).format(a)}, ${F(a)} – ${F(r)}`}return c==="day"?new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric"}).format(a):c==="month"?new Intl.DateTimeFormat(void 0,{month:"long",year:"numeric"}).format(a):new Intl.DateTimeFormat(void 0,{year:"numeric"}).format(a)}o(B,"formatPeriodLabel");function F(c){return new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit"}).format(c)}o(F,"formatClock");export{z as a,B as b};
3
- //# sourceMappingURL=chunk-PXUKBFFD.js.map
2
+ import{a as T,b as y,f as S,h as v,i as g}from"./chunk-YHXLVT6T.js";import{m as w}from"./chunk-7TDI4YTA.js";import{a as o}from"./chunk-WFJCOJII.js";function z(c,C){c.component(a=>{let{view:r,value:H,startKey:Y,onchange:k}=C,m=new Date,f=g(()=>w(Y)),i=g(()=>w(H)),I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function b(t){return t.toString().padStart(2,"0")}o(b,"pad2");function N(t){return t.toString().padStart(4,"0")}o(N,"pad4");function l(t){let e=N(t.getUTCFullYear()),n=b(t.getUTCMonth()+1),u=b(t.getUTCDate()),s=b(t.getUTCHours());return r==="year"?e:r==="month"?`${e}-${n}`:r==="day"?`${e}-${n}-${u}`:`${e}-${n}-${u}-${s}`}o(l,"keyFor");function p(t){return t.getTime()<f().getTime()?new Date(f().getTime()):t.getTime()>m.getTime()?new Date(m.getTime()):t}o(p,"clamp");let P=g(()=>l(i())<=l(p(f()))),A=g(()=>l(i())>=l(p(m)));function d(t){k(l(p(t)))}o(d,"emit");let E=g(()=>{let t=f().getUTCFullYear(),e=m.getUTCFullYear();return Array.from({length:e-t+1},(n,u)=>t+u)});function U(t){let e=new Date(i().getTime());return e.setUTCFullYear(t),e}o(U,"withYear");function x(t){let e=new Date(i().getTime());return e.setUTCMonth(t),e}o(x,"withMonth");function _(t){let e=new Date(i().getTime());return e.setUTCDate(t),e}o(_,"withDay");function M(t){let e=new Date(i().getTime());return e.setUTCHours(t),e}o(M,"withHour");let L=g(()=>new Date(Date.UTC(i().getUTCFullYear(),i().getUTCMonth()+1,0)).getUTCDate());function D(t){let e=l(t);return e<l(p(f()))||e>l(p(m))}o(D,"outOfRange");function O(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(U(Number(e.value)))}o(O,"onYear");function J(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(x(Number(e.value)))}o(J,"onMonth");function K(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(_(Number(e.value)))}o(K,"onDay");function R(t){let e=t.currentTarget;e instanceof HTMLSelectElement&&d(M(Number(e.value)))}o(R,"onHour"),a.push(`<div class="cluster period-picker svelte-x67t59" role="group" aria-label="Period"><button type="button" class="button mini ghost svelte-x67t59"${y("disabled",P(),!0)}${y("aria-label",`Previous ${S(r)}`)}>‹</button> `),a.select({value:String(i().getUTCFullYear()),onchange:O,"aria-label":"Year",class:""},t=>{t.push("<!--[-->");let e=v(E());for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(s),disabled:D(U(s))},h=>{h.push(`${T(s)}`)})}t.push("<!--]-->")},"svelte-x67t59"),a.push(" "),r!=="year"?(a.push("<!--[0-->"),a.select({value:String(i().getUTCMonth()),onchange:J,"aria-label":"Month",class:""},t=>{t.push("<!--[-->");let e=v(I);for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(n),disabled:D(x(n))},h=>{h.push(`${T(s)}`)})}t.push("<!--]-->")},"svelte-x67t59")):a.push("<!--[-1-->"),a.push("<!--]--> "),r==="day"||r==="hour"?(a.push("<!--[0-->"),a.select({value:String(i().getUTCDate()),onchange:K,"aria-label":"Day",class:""},t=>{t.push("<!--[-->");let e=v(Array.from({length:L()},(n,u)=>u+1));for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(s),disabled:D(_(s))},h=>{h.push(`${T(s)}`)})}t.push("<!--]-->")},"svelte-x67t59")):a.push("<!--[-1-->"),a.push("<!--]--> "),r==="hour"?(a.push("<!--[0-->"),a.select({value:String(i().getUTCHours()),onchange:R,"aria-label":"Hour",class:""},t=>{t.push("<!--[-->");let e=v(Array.from({length:24},(n,u)=>u));for(let n=0,u=e.length;n<u;n++){let s=e[n];t.option({value:String(s),disabled:D(M(s))},h=>{h.push(`${T(b(s))}:00`)})}t.push("<!--]-->")},"svelte-x67t59")):a.push("<!--[-1-->"),a.push(`<!--]--> <button type="button" class="button mini ghost svelte-x67t59"${y("disabled",A(),!0)}${y("aria-label",`Next ${S(r)}`)}>›</button></div>`)})}o(z,"PeriodPicker");function B({view:c,periodKey:C}){let a=w(C);if(c==="hour"){let r=new Date(a.getTime()+36e5);return`${new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}).format(a)}, ${F(a)} – ${F(r)}`}return c==="day"?new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric"}).format(a):c==="month"?new Intl.DateTimeFormat(void 0,{month:"long",year:"numeric"}).format(a):new Intl.DateTimeFormat(void 0,{year:"numeric"}).format(a)}o(B,"formatPeriodLabel");function F(c){return new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit"}).format(c)}o(F,"formatClock");export{z as a,B as b};
3
+ //# sourceMappingURL=chunk-Y7D223T7.js.map
@@ -0,0 +1,3 @@
1
+ /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
+ import{a as s,b as v}from"./chunk-ZB4GC6MX.js";import{e as m,m as c,p,s as f}from"./chunk-CIVNMUP4.js";import{a as l,b as g,c as u}from"./chunk-KHGYICM3.js";import{h as i,k as o,o as a,q as n}from"./chunk-NFXTMZA7.js";import{a as r}from"./chunk-WFJCOJII.js";var U=u({getSitemapConfig:r(()=>d,"getSitemapConfig"),setSitemapUrl:r(()=>y,"setSitemapUrl")});function _(){let{locals:t}=i(),e=v(t.user);return e.type!=="admin"&&a(403,"Access denied"),e}r(_,"requireAdmin");var d=g(async()=>{let{locals:t}=i();try{return _(),{sitemapUrl:(await t.services.config.getSitemapConfig()).sitemapUrl}}catch(e){s(e,{redirectOnUnauthorized:!0})}}),h=c({sitemapUrl:f(p(),m("Please enter a valid sitemap URL."))}),y=l(h,async({sitemapUrl:t})=>{let{locals:e}=i();_();try{await e.services.config.setSitemapUrl({sitemapUrl:t})}catch(S){s(S)}await d().refresh(),n(303,"/settings")});o(U,"src/lib/remote/sitemapConfig.remote.ts","1uc3g51");for(let[t,e]of Object.entries(U))e.__.id="1uc3g51/"+t,e.__.name=t;export{U as a};
3
+ //# sourceMappingURL=chunk-YB2BRPFF.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/remote/sitemapConfig.remote.ts"],
4
+ "mappings": ";iWAMA,SAASA,GAAgD,CACvD,GAAM,CAAE,OAAAC,CAAA,EAAWC,EAAgB,EAC7BC,EAAcC,EAAYH,EAAO,IAAI,EAC3C,OAAIE,EAAY,OAAS,SACvBE,EAAM,IAAK,eAAe,EAErBF,CACT,CAPSG,EAAAN,EAAA,gBAST,IAAaO,EAAmBC,EAAM,SAAY,CAChD,GAAM,CAAE,OAAAP,CAAA,EAAWC,EAAgB,EACnC,GAAI,CACF,OAAAF,EAAa,EAEN,CACL,YAAY,MAFcC,EAAO,SAAS,OAAO,iBAAiB,GAExC,UAC5B,CACF,OAASQ,EAAQ,CACfC,EAAcD,EAAQ,CAAE,uBAAwB,EAAK,CAAC,CACxD,CACF,CAAC,EAEKE,EAAwBC,EAAO,CACnC,WAAcC,EAAOC,EAAO,EAAKC,EAAI,mCAAmC,CAAC,CAC3E,CAAC,EAEYC,EAAgBC,EAAKN,EAAqB,MAAO,CAAE,WAAAO,CAAA,IAAiB,CAC/E,GAAM,CAAE,OAAAjB,CAAA,EAAWC,EAAgB,EAEnCF,EAAa,EAEb,GAAI,CACF,MAAMC,EAAO,SAAS,OAAO,cAAc,CAAE,WAAAiB,CAAW,CAAC,CAC3D,OAAST,EAAQ,CACfC,EAAcD,CAAM,CACtB,CAEA,MAAMF,EAAiB,EAAE,QAAQ,EAEjCY,EAAS,IAAK,WAAW,CAC3B,CAAC",
5
+ "names": ["requireAdmin", "locals", "getRequestEvent", "currentUser", "requireUser", "error", "__name", "getSitemapConfig", "query", "thrown", "toRemoteError", "setSitemapUrlSchema", "object", "pipe", "string", "url", "setSitemapUrl", "form", "sitemapUrl", "redirect"]
6
+ }
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{b as oe}from"./chunk-5CIVNFOJ.js";import{Aa as P,O as _,P as j,Q as H,R as V,S as ie,T as N,U as se,b as Y,c as I,j as v,k as w,s as ee,t as x,u as C,v as te,w as B,xa as re,ya as M,za as ne}from"./chunk-MJOYXXCW.js";import{a as A,h as U,j as Z,k as G,l as X}from"./chunk-OS5FKECH.js";import{a as q}from"./chunk-QDCEVKAE.js";import{a as l}from"./chunk-WFJCOJII.js";function ye(r){return(r.includes(",")||r.includes('"'))&&(r=`"${r.replace(/"/g,'\\"')}"`),r}l(ye,"quoteHeader");function we(r,e,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let i=r.split(e);if(t===1)return i;let n=[],s="";for(let o=0;o<i.length;o++)s===""?s=i[o]:s+=e+i[o],(o+1)%t===0&&(n.push(s),s="");return s!==""&&n.push(s),n}l(we,"splitEvery");var be=class extends ie{static{l(this,"HttpBindingProtocol")}async serializeRequest(r,e,t){let i=e&&typeof e=="object"?e:{},n=this.serializer,s={},o={},a=await t.endpoint(),c=w.of(r?.input),f=[],h=[],p=!1,g,u=new q({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:s,headers:o,body:void 0});if(a){this.updateServiceEndpoint(u,a),this.setHostPrefix(u,r,i);let d=v(r.traits);if(d.http){u.method=d.http[0];let[m,S]=d.http[1].split("?");u.path=="/"?u.path=m:u.path+=m;let y=new URLSearchParams(S??"");for(let[b,R]of y)s[b]=R}}for(let[d,m]of c.structIterator()){let S=m.getMergedTraits()??{},y=i[d];if(y==null&&!m.isIdempotencyToken()){if(S.httpLabel&&(u.path.includes(`{${d}+}`)||u.path.includes(`{${d}}`)))throw new Error(`No value provided for input HTTP label: ${d}.`);continue}if(S.httpPayload)m.isStreaming()?m.isStructSchema()?i[d]&&(g=await this.serializeEventStream({eventStream:i[d],requestSchema:c})):g=y:(n.write(m,y),g=n.flush());else if(S.httpLabel){n.write(m,y);let b=n.flush();u.path.includes(`{${d}+}`)?u.path=u.path.replace(`{${d}+}`,b.split("/").map(H).join("/")):u.path.includes(`{${d}}`)&&(u.path=u.path.replace(`{${d}}`,H(b)))}else if(S.httpHeader)n.write(m,y),o[S.httpHeader.toLowerCase()]=String(n.flush());else if(typeof S.httpPrefixHeaders=="string")for(let b in y){if(!A(y,b))continue;let R=y[b],K=S.httpPrefixHeaders+b;n.write([m.getValueSchema(),{httpHeader:K}],R),o[K.toLowerCase()]=n.flush()}else S.httpQuery||S.httpQueryParams?this.serializeQuery(m,y,s):(p=!0,f.push(d),h.push(m))}if(p&&i){let[d,m]=(c.getName(!0)??"#Unknown").split("#"),S=c.getSchema()[6],y=[3,d,m,c.getMergedTraits(),f,h,void 0];S?y[6]=S:y.pop(),n.write(y,i),g=n.flush()}return u.headers=o,u.query=s,u.body=g,u}serializeQuery(r,e,t){let i=this.serializer,n=r.getMergedTraits();if(n.httpQueryParams){for(let s in e)if(A(e,s)&&!(s in t)){let o=e[s],a=r.getValueSchema();Object.assign(a.getMergedTraits(),{...n,httpQuery:s,httpQueryParams:void 0}),this.serializeQuery(a,o,t)}return}if(r.isListSchema()){let s=!!r.getMergedTraits().sparse,o=[];for(let a of e){i.write([r.getValueSchema(),n],a);let c=i.flush();(s||c!==void 0)&&o.push(c)}t[n.httpQuery]=o}else i.write([r,n],e),t[n.httpQuery]=i.flush()}async deserializeResponse(r,e,t){let i=this.deserializer,n=w.of(r.output),s={};if(t.statusCode>=300){let a=await j(t.body,e);throw a.byteLength>0&&Object.assign(s,await i.read(15,a)),await this.handleError(r,e,t,s,this.deserializeMetadata(t)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let a in t.headers){if(!A(t.headers,a))continue;let c=t.headers[a];delete t.headers[a],t.headers[a.toLowerCase()]=c}let o=await this.deserializeHttpMessage(n,e,t,s);if(o.length){let a=await j(t.body,e);if(a.byteLength>0){let c=await i.read(n,a);for(let f of o)c[f]!=null&&(s[f]=c[f])}}else o.discardResponseBody&&await j(t.body,e);return s.$metadata=this.deserializeMetadata(t),s}async deserializeHttpMessage(r,e,t,i,n){let s;i instanceof Set?s=n:s=i;let o=!0,a=this.deserializer,c=w.of(r),f=[];for(let[h,p]of c.structIterator()){let g=p.getMemberTraits();if(g.httpPayload){if(o=!1,p.isStreaming())p.isStructSchema()?s[h]=await this.deserializeEventStream({response:t,responseSchema:c}):s[h]=oe(t.body);else if(t.body){let u=await j(t.body,e);u.byteLength>0&&(s[h]=await a.read(p,u))}}else if(g.httpHeader){let u=String(g.httpHeader).toLowerCase(),d=t.headers[u];if(d!=null)if(p.isListSchema()){let m=p.getValueSchema();m.getMergedTraits().httpHeader=u;let S;m.isTimestampSchema()&&m.getSchema()===4?S=we(d,",",2):S=te(d);let y=[];for(let b of S)y.push(await a.read(m,b.trim()));s[h]=y}else s[h]=await a.read(p,d)}else if(g.httpPrefixHeaders!==void 0){s[h]={};for(let u in t.headers)if(A(t.headers,u)&&u.startsWith(g.httpPrefixHeaders)){let d=t.headers[u],m=p.getValueSchema();m.getMergedTraits().httpHeader=u,s[h][u.slice(g.httpPrefixHeaders.length)]=await a.read(m,d)}}else g.httpResponseCode?s[h]=t.statusCode:f.push(h)}return f.discardResponseBody=o,f}},Te=class extends V{static{l(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(r,e){super(),this.codecDeserializer=r,this.stringDeserializer=new se(e)}setSerdeContext(r){this.stringDeserializer.setSerdeContext(r),this.codecDeserializer.setSerdeContext(r),this.serdeContext=r}read(r,e){let t=w.of(r),i=t.getMergedTraits(),n=this.serdeContext?.utf8Encoder??I;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(t,n(e));if(i.httpPayload){if(t.isBlobSchema()){let s=this.serdeContext?.utf8Decoder??Y;return typeof e=="string"?s(e):e}else if(t.isStringSchema())return"byteLength"in e?n(e):e}return this.codecDeserializer.read(t,e)}},Be=class extends V{static{l(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(r){super(),this.settings=r}write(r,e){let t=w.of(r);switch(typeof e){case"object":if(e===null){this.stringBuffer="null";return}if(t.isTimestampSchema()){if(!(e instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${e} when schema expected Date in ${t.getName(!0)}`);switch(N(t,this.settings)){case 5:this.stringBuffer=e.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=U(e);break;case 7:this.stringBuffer=String(e.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",e),this.stringBuffer=String(e.getTime()/1e3)}return}if(t.isBlobSchema()&&"byteLength"in e){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(e);return}if(t.isListSchema()&&Array.isArray(e)){let s="";for(let o of e){this.write([t.getValueSchema(),t.getMergedTraits()],o);let a=this.flush(),c=t.getValueSchema().isTimestampSchema()?a:ye(a);s!==""&&(s+=", "),s+=c}this.stringBuffer=s;return}this.stringBuffer=JSON.stringify(e,null,2);break;case"string":let i=t.getMergedTraits().mediaType,n=e;if(i&&((i==="application/json"||i.endsWith("+json"))&&(n=C.from(n)),t.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(n.toString());return}this.stringBuffer=e;break;default:t.isIdempotencyToken()?this.stringBuffer=_():this.stringBuffer=String(e)}}flush(){let r=this.stringBuffer;return this.stringBuffer="",r}},je=class{static{l(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(r,e,t=new Be(e)){this.codecSerializer=r,this.stringSerializer=t}setSerdeContext(r){this.codecSerializer.setSerdeContext(r),this.stringSerializer.setSerdeContext(r)}write(r,e){let t=w.of(r),i=t.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(t,e),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(t,e)}flush(){if(this.buffer!==void 0){let r=this.buffer;return this.buffer=void 0,r}return this.codecSerializer.flush()}},E;function de(){if(E===void 0)try{if(typeof Buffer!="function")E=!1;else{let r=JSON.parse(Buffer.from([123,125]));E=r!==null&&typeof r=="object"}}catch{E=!1}return E}l(de,"detectBufferParsing");function me(r,e,t){if(t?.source){let i=t.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?Ae(i,e)?e:new B(i,"bigDecimal"):ze(i)?new B(i,"bigDecimal"):/[eE]/.test(i)?Ee(i):BigInt(i)}return e}l(me,"jsonReviver");function ze(r){let e=r.indexOf(".");if(e===-1)return!1;let t=r.search(/[eE]/);if(t===-1)return!0;let i=t-e-1;return parseInt(r.slice(t+1),10)<i}l(ze,"isFractionalBigNumeric");function Ae(r,e){if(r===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(r))return J(r)===J(String(e));let t=r.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),i=String(e);return t===i?!0:/[eE]/.test(i)?t===J(i):!1}l(Ae,"isRepresentable");function J(r){let e=r.startsWith("-"),t=e?r.slice(1):r,i=t.search(/[eE]/),n;if(i===-1)n=t;else{let s=parseInt(t.slice(i+1),10),o=t.slice(0,i),a=o.indexOf("."),c,f;a===-1?(c=o,f=o.length):(c=o.slice(0,a)+o.slice(a+1),f=a),c=c.replace(/0+$/,"")||"0";let h=f+s;c==="0"?n="0":h<=0?n="0."+"0".repeat(-h)+c:h>=c.length?n=c+"0".repeat(h-c.length):n=c.slice(0,h)+"."+c.slice(h)}return n.includes(".")&&(n=n.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+n}l(J,"expandToDecimal");function Ee(r){let e=r.search(/[eE]/),t=parseInt(r.slice(e+1),10),i=r.startsWith("-"),n=r.slice(i?1:0,e),s=n.indexOf("."),o,a;s===-1?(o=n,a=t):(o=n.slice(0,s)+n.slice(s+1),a=t-(n.length-s-1)),o=o.replace(/0+$/,"")||"0";let c=BigInt(o)*10n**BigInt(a+(n.replace(".","").length-o.length));return i?-c:c}l(Ee,"expandExponentToBigInt");var $=Symbol.for("@aws-sdk/reviver");function pe(r){let e=w.of(r),t=e.getSchema();if(Array.isArray(t)&&e.isStructSchema()){if($ in t)return t[$];let i=k(e,new Set);return t[$]=i,i}return k(e,new Set)}l(pe,"needsReviver");function k(r,e){let t=r.getSchema();if(e.has(t))return!1;if(e.add(t),r.isBigIntegerSchema()||r.isBigDecimalSchema())return!0;if(r.isStructSchema()){for(let[,i]of r.structIterator())if(k(i,e))return!0}else if(r.isListSchema()||r.isMapSchema()){if(k(r.getValueSchema(),e))return!0}else if(r.isDocumentSchema())return!0;return!1}l(k,"_check");var Ie=l((r,e)=>j(r,e).then(t=>(e?.utf8Encoder??I)(t)),"collectBodyString");async function xe(r,e,t){let i;if(de()&&typeof r?.[Symbol.asyncIterator]=="function"){let s=await j(r,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?i=s:i=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(i||(i=await Ie(r,e)),i.length===0)return{};let n=t&&pe(t)?me:void 0;try{return JSON.parse(i,n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof i=="string"?i:i.toString("utf8")}),s}}l(xe,"parseJsonBody");var ae=l((r,e)=>Object.keys(r).find(t=>t.toLowerCase()===e.toLowerCase()),"findKey"),Q=l(r=>{let e=r;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),Ce=l((r,e)=>ge(r,e,["header","code","type"]),"loadRestJsonErrorCode"),We=l((r,e,t=!1)=>ge(r,e,t?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),ge=l(({headers:r},e,t)=>{for(;t.length>0;)switch(t.shift()){case"header":let i=ae(r??{},"x-amzn-errortype");if(i!==void 0)return Q(r[i]);break;case"code":let n=ae(e??{},"code");if(n&&e[n]!==void 0)return Q(e[n]);break;case"type":if(e?.__type!==void 0)return Q(e.__type)}},"loadErrorCode"),Ne=class extends M{static{l(this,"JsonShapeDeserializer2")}settings;constructor(r){super(),this.settings=r}async read(r,e){let t=pe(r)?me:void 0,i;if(typeof e=="string"){if(e.length===0)return{};i=JSON.parse(e,t)}else if(e instanceof Uint8Array&&de()){if(e.byteLength===0)return{};let n=Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength);i=JSON.parse(n,t)}else i=await xe(e,this.serdeContext,r);return this._read(r,i)}readObject(r,e){return this._read(r,e)}_read(r,e){let t=e!==null&&typeof e=="object",i=w.of(r);if(t){if(i.isStructSchema())return this._readStruct(i,e);if(Array.isArray(e)&&i.isListSchema()){let s=i.getValueSchema();if(this.needsTransform(s))for(let o=0;o<e.length;++o)e[o]=this._read(s,e[o]);return e}if(i.isMapSchema()){let s=i.getValueSchema(),o=e;if(this.needsTransform(s))for(let a in o)a==="__proto__"&&P(o),o[a]=this._read(s,o[a]);return o}}if(i.isBlobSchema()&&typeof e=="string")return ee(e);let n=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof e=="string"&&n)return n==="application/json"||n.endsWith("+json")?C.from(e):e;if(i.isTimestampSchema()&&e!=null)switch(N(i,this.settings)){case 5:return Z(e);case 6:return G(e);case 7:return X(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(i.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(i.isBigDecimalSchema()&&e!=null){if(e instanceof B)return e;let s=e;return s.type==="bigDecimal"&&"string"in s?new B(s.string,s.type):new B(String(e),"bigDecimal")}if(i.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(i.isDocumentSchema()&&t)if(Array.isArray(e))for(let s=0;s<e.length;++s){let o=e[s];o instanceof B||(e[s]=this._read(i,o))}else{let s=e;for(let o in s){o==="__proto__"&&P(s);let a=s[o];a instanceof B||(s[o]=this._read(i,a))}}return e}_readStruct(r,e){let t=r.isUnionSchema(),i={},n,s=typeof e.__type=="string",{jsonName:o}=this.settings;o&&s&&(n={});let a;t&&(a=new ne(e,i));for(let[c,f]of r.structIterator()){let h=c;o&&(h=f.getMergedTraits().jsonName??h,s&&(n[h]=c)),t&&a.mark(h),e[h]!=null&&(i[c]=this._read(f,e[h]))}if(t)a.writeUnknown();else if(s)for(let c in e){let f=e[c],h=o?n[c]??c:c;h in i||(i[h]=f)}return i}needsTransform(r){return!!(r.isBlobSchema()||r.isTimestampSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema()||r.isDocumentSchema()||r.isStructSchema()||r.isListSchema()||r.isMapSchema()||r.isStringSchema()&&r.getMergedTraits().mediaType)}},Me=class F extends Uint8Array{static{l(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let t=Buffer.allocUnsafe(e);return new F(t.buffer,t.byteOffset,t.byteLength)}return new F(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,t){return typeof e=="string"?this.s().includes(e,t):Uint8Array.prototype.includes.call(this,e,t)}indexOf(e,t){return typeof e=="string"?this.s().indexOf(e,t):Uint8Array.prototype.indexOf.call(this,e,t)}lastIndexOf(e,t){if(typeof e=="string")return this.s().lastIndexOf(e,t);let i=Uint8Array.prototype.lastIndexOf;return t!==void 0?i.call(this,e,t):i.call(this,e)}startsWith(e,t){return this.s().startsWith(e,t)}endsWith(e,t){return this.s().endsWith(e,t)}match(e){return this.s().match(e)}replace(e,t){return this.s().replace(e,t)}search(e){return this.s().search(e)}split(e,t){return this.s().split(e,t)}substring(e,t){return this.s().substring(e,t)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,t){return this.s().padStart(e,t)}padEnd(e,t){return this.s().padEnd(e,t)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>ce+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),ce=e),this.string=I(this)}return this.string}},ce=0,L=new TextEncoder,he=123,fe=125,Le=91,Oe=93,z=34,O=58,D=44,ue=92,De=new Uint8Array([116,114,117,101]),ke=new Uint8Array([102,97,108,115,101]),Re=new Uint8Array([110,117,108,108]),T=new Array(128).fill(null);T[8]="b";T[9]="t";T[10]="n";T[12]="f";T[13]="r";T[34]='"';T[92]="\\";for(let r=0;r<32;r++)T[r]===null&&(T[r]="u00"+r.toString(16).padStart(2,"0"));var le=2048;function W(r){return Me.allocUnsafe(r)}l(W,"alloc");var Ue=class Se extends M{static{l(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=W(le)}write(e,t){this.i=0,this.rawValue=t,this.rootSchema=w.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,t,void 0)}writeDiscriminatedDocument(e,t){this.i=0,this.rootSchema=w.of(e);let i=this.rootSchema;if(i.isStructSchema()&&t!=null&&typeof t=="object"){this.writeValue(i,t,void 0);let n=`"__type":"${i.getName(!0)??"Unknown"}",`,s=n.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),L.encodeInto(n,this.json.subarray(1)),this.i+=s}else this.writeValue(i,t,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let t=this.rawValue;if(this.rawValue=void 0,e===0)return t;let i=this.json.subarray(0,e);return this.json=W(le),i}ensure(e){let{i:t,json:i}=this;if(t+e>i.length){let n=i.length*2;for(;n<t+e;)n*=2;let s=W(n);s.set(this.json),this.json=s}}writeAscii(e){let t=e.length;this.ensure(t);let{i,json:n}=this;for(let s=0;s<t;++s)n[i]=e.charCodeAt(s),i+=1;this.i=i}writeAsciiQuoted(e){let t=e.length;this.ensure(t+4);let{json:i,i:n}=this;i[n++]=z;for(let s=0;s<t;++s)i[n++]=e.charCodeAt(s);i[n++]=z,this.i=n}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=z;let t=e.length;for(let i=0;i<t;++i){let n=e.charCodeAt(i);if(n>34&&n<92)this.json[this.i++]=n;else if(n<128){let s=T[n];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=ue;for(let o=0;o<s.length;o++)this.json[this.i++]=s.charCodeAt(o)}else this.json[this.i++]=n}else if(n>=55296&&n<=56319){let s=i+1<t?e.charCodeAt(i+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:o}=L.encodeInto(e.substring(i,i+2),this.json.subarray(this.i));this.i+=o,++i}else this.ensure(6),this.writeUnicodeEscape(n)}else if(n>=56320&&n<=57343)this.ensure(6),this.writeUnicodeEscape(n);else{let{i:s,json:o}=this;n<2048?(o[s++]=192|n>>6,o[s++]=128|n&63):(o[s++]=224|n>>12,o[s++]=128|n>>6&63,o[s++]=128|n&63),this.i=s}}this.json[this.i++]=z}writeUnicodeEscape(e){let{json:t,i}=this;t[i++]=ue,t[i++]=117;let n=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)t[i++]=n.charCodeAt(s);this.i=i}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(64);for(let i=0;i<64;++i)t[i]=e.charCodeAt(i);return t})();writeBase64(e){let t=Math.ceil(e.length/3)*4;this.ensure(t+2);let i=this.json,n=Se.B64,s=this.i;i[s++]=z;let o=e.length,a=o%3,c=o-a;for(let f=0;f<c;f+=3){let h=e[f],p=e[f+1],g=e[f+2];i[s++]=n[h>>2],i[s++]=n[(h&3)<<4|p>>4],i[s++]=n[(p&15)<<2|g>>6],i[s++]=n[g&63]}if(a===2){let f=e[c],h=e[c+1];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4|h>>4],i[s++]=n[(h&15)<<2],i[s++]=61}else if(a===1){let f=e[c];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4],i[s++]=61,i[s++]=61}i[s++]=z,this.i=s}writeValue(e,t,i){if(t==null){if(i?.isStructSchema()){if(t===void 0&&w.of(e).isIdempotencyToken()){this.writeAsciiQuoted(_());return}return}this.ensure(4),this.json.set(Re,this.i),this.i+=4;return}let n=w.of(e),s=typeof t=="object";if(n.isStringSchema()){let o=n.getMergedTraits().mediaType;if(o&&(o==="application/json"||o.endsWith("+json"))){this.writeJsonString(C.from(t).toString());return}}if(s){if(n.isStructSchema()){this.writeStruct(n,t);return}if(Array.isArray(t)&&(n.isListSchema()||n.isDocumentSchema())){this.writeList(n,t,n.isDocumentSchema());return}if(n.isMapSchema()){this.writeMap(n,t,!1);return}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema())){this.writeBase64(t);return}if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema())){this.writeTimestamp(n,t);return}if(t instanceof B){this.writeAscii(t.string);return}if(n.isDocumentSchema()){Array.isArray(t)?this.writeList(n,t,!0):this.writeMap(n,t,!0);return}let o=JSON.stringify(t);this.writeAscii(o);return}if(typeof t=="string"){if(n.isBlobSchema()){let o=(this.serdeContext?.base64Encoder??x)(t);this.writeAsciiQuoted(o);return}this.writeJsonString(t);return}if(typeof t=="number"){if(Math.abs(t)===1/0||Number.isNaN(t)){this.writeAsciiQuoted(String(t));return}let o=String(t);this.writeAscii(o);return}if(typeof t=="boolean"){this.ensure(5);let{i:o,json:a}=this;t?(a.set(De,o),o+=4):(a.set(ke,o),o+=5),this.i=o;return}if(typeof t=="bigint"){this.writeAscii(t.toString());return}this.writeAscii(String(t))}writeStruct(e,t){this.ensure(2),this.json[this.i++]=he;let i=!1,n=typeof t.__type=="string",s;n&&(s=new Set);for(let[o,a]of e.structIterator()){let c=t[o];if(c==null&&!a.isIdempotencyToken())continue;i&&(this.ensure(1),this.json[this.i++]=D),i=!0;let f=this.settings.jsonName?a.getMergedTraits().jsonName??o:o;s&&(s.add(o),s.add(f)),this.writeAsciiQuoted(f),this.json[this.i++]=O,this.writeValue(a,c,e)}if(!i&&e.isUnionSchema()){let{$unknown:o}=t;if(Array.isArray(o)){let[a,c]=o;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,c,e)}}else if(n)for(let o in t){if(s.has(o))continue;s.add(o);let a=t[o];i&&(this.ensure(1),this.json[this.i++]=D),i=!0,this.writeAsciiQuoted(o),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=fe}writeList(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let f=0;f<t.length;++f){let h=t[f];if(Number.isNaN(h)||h===1/0||h===-1/0||h==null&&!n){a=!0;break}}let c;if(!a)c=JSON.stringify(t);else{let f=[];for(let h=0;h<t.length;++h){let p=t[h];p==null&&!n||(Number.isNaN(p)||p===1/0||p===-1/0?f.push(String(p)):f.push(p))}c=JSON.stringify(f)}this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Le;let o=!1;for(let a=0;a<t.length;++a){let c=t[a];(i?c===void 0:c==null&&!n)||(o&&(this.ensure(1),this.json[this.i++]=D),this.writeValue(s,c,void 0),o=!0)}this.ensure(1),this.json[this.i++]=Oe}writeMap(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let f in t){let h=t[f];Number.isNaN(h)||h===1/0||h===-1/0?((a??={})[f]=h,t[f]=String(h)):h===null&&!n&&((a??={})[f]=null,t[f]=void 0)}let c=JSON.stringify(t);a&&Object.assign(t,a),this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=he;let o=!0;for(let a in t){let c=t[a];(i?c===void 0:c==null&&!n)||(o||(this.ensure(1),this.json[this.i++]=D),o=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=fe}writeTimestamp(e,t){switch(N(e,this.settings)){case 5:{let i=t.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(i);return}case 6:this.writeAsciiQuoted(U(t));return;case 7:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}default:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}}}},_e=class extends M{static{l(this,"JsonCodec2")}settings;constructor(r){super(),this.settings=r}createSerializer(){let r=new Ue(this.settings);return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new Ne(this.settings);return r.setSerdeContext(this.serdeContext),r}},Fe=class extends be{static{l(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new re;constructor({defaultNamespace:r,errorTypeRegistries:e,jsonCodec:t}){super({defaultNamespace:r,errorTypeRegistries:e});let i={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=t??new _e(i),this.serializer=new je(this.codec.createSerializer(),i),this.deserializer=new Te(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(r){this.codec.setSerdeContext(r),super.setSerdeContext(r)}async serializeRequest(r,e,t){let i=await super.serializeRequest(r,e,t),n=w.of(r.input);if(!i.headers["content-type"]){let s=this.mixin.resolveRestContentType(this.getDefaultContentType(),n);s&&(i.headers["content-type"]=s)}return i.body==null&&i.headers["content-type"]===this.getDefaultContentType()&&(i.body="{}"),i}async deserializeResponse(r,e,t){let i=await super.deserializeResponse(r,e,t),n=w.of(r.output);for(let[s,o]of n.structIterator())o.getMemberTraits().httpPayload&&!(s in i)&&(i[s]=null);return i}async handleError(r,e,t,i,n){let s=Ce(t,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,t,i,n),c=w.of(o),f=i.message??i.Message??"UnknownError",h=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({});await this.deserializeHttpMessage(o,e,t,i);let p={},g=this.codec.createDeserializer();for(let[u,d]of c.structIterator()){let m=d.getMergedTraits().jsonName??u;p[u]=g.readObject(d,i[m])}throw this.mixin.decorateServiceException(Object.assign(h,a,{$fault:c.getMergedTraits().error,message:f},p),i)}getDefaultContentType(){return"application/json"}};export{be as a,Te as b,je as c,We as d,_e as e,Fe as f};
3
- //# sourceMappingURL=chunk-3AWMNMNO.js.map
2
+ import{b as oe}from"./chunk-5CIVNFOJ.js";import{Aa as P,O as _,P as j,Q as H,R as V,S as ie,T as N,U as se,b as Y,c as I,j as v,k as w,s as ee,t as x,u as C,v as te,w as B,xa as re,ya as M,za as ne}from"./chunk-I4S422PQ.js";import{a as A,h as U,j as Z,k as G,l as X}from"./chunk-OS5FKECH.js";import{a as q}from"./chunk-QDCEVKAE.js";import{a as l}from"./chunk-WFJCOJII.js";function ye(r){return(r.includes(",")||r.includes('"'))&&(r=`"${r.replace(/"/g,'\\"')}"`),r}l(ye,"quoteHeader");function we(r,e,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let i=r.split(e);if(t===1)return i;let n=[],s="";for(let o=0;o<i.length;o++)s===""?s=i[o]:s+=e+i[o],(o+1)%t===0&&(n.push(s),s="");return s!==""&&n.push(s),n}l(we,"splitEvery");var be=class extends ie{static{l(this,"HttpBindingProtocol")}async serializeRequest(r,e,t){let i=e&&typeof e=="object"?e:{},n=this.serializer,s={},o={},a=await t.endpoint(),c=w.of(r?.input),f=[],h=[],p=!1,g,u=new q({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:s,headers:o,body:void 0});if(a){this.updateServiceEndpoint(u,a),this.setHostPrefix(u,r,i);let d=v(r.traits);if(d.http){u.method=d.http[0];let[m,S]=d.http[1].split("?");u.path=="/"?u.path=m:u.path+=m;let y=new URLSearchParams(S??"");for(let[b,R]of y)s[b]=R}}for(let[d,m]of c.structIterator()){let S=m.getMergedTraits()??{},y=i[d];if(y==null&&!m.isIdempotencyToken()){if(S.httpLabel&&(u.path.includes(`{${d}+}`)||u.path.includes(`{${d}}`)))throw new Error(`No value provided for input HTTP label: ${d}.`);continue}if(S.httpPayload)m.isStreaming()?m.isStructSchema()?i[d]&&(g=await this.serializeEventStream({eventStream:i[d],requestSchema:c})):g=y:(n.write(m,y),g=n.flush());else if(S.httpLabel){n.write(m,y);let b=n.flush();u.path.includes(`{${d}+}`)?u.path=u.path.replace(`{${d}+}`,b.split("/").map(H).join("/")):u.path.includes(`{${d}}`)&&(u.path=u.path.replace(`{${d}}`,H(b)))}else if(S.httpHeader)n.write(m,y),o[S.httpHeader.toLowerCase()]=String(n.flush());else if(typeof S.httpPrefixHeaders=="string")for(let b in y){if(!A(y,b))continue;let R=y[b],K=S.httpPrefixHeaders+b;n.write([m.getValueSchema(),{httpHeader:K}],R),o[K.toLowerCase()]=n.flush()}else S.httpQuery||S.httpQueryParams?this.serializeQuery(m,y,s):(p=!0,f.push(d),h.push(m))}if(p&&i){let[d,m]=(c.getName(!0)??"#Unknown").split("#"),S=c.getSchema()[6],y=[3,d,m,c.getMergedTraits(),f,h,void 0];S?y[6]=S:y.pop(),n.write(y,i),g=n.flush()}return u.headers=o,u.query=s,u.body=g,u}serializeQuery(r,e,t){let i=this.serializer,n=r.getMergedTraits();if(n.httpQueryParams){for(let s in e)if(A(e,s)&&!(s in t)){let o=e[s],a=r.getValueSchema();Object.assign(a.getMergedTraits(),{...n,httpQuery:s,httpQueryParams:void 0}),this.serializeQuery(a,o,t)}return}if(r.isListSchema()){let s=!!r.getMergedTraits().sparse,o=[];for(let a of e){i.write([r.getValueSchema(),n],a);let c=i.flush();(s||c!==void 0)&&o.push(c)}t[n.httpQuery]=o}else i.write([r,n],e),t[n.httpQuery]=i.flush()}async deserializeResponse(r,e,t){let i=this.deserializer,n=w.of(r.output),s={};if(t.statusCode>=300){let a=await j(t.body,e);throw a.byteLength>0&&Object.assign(s,await i.read(15,a)),await this.handleError(r,e,t,s,this.deserializeMetadata(t)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let a in t.headers){if(!A(t.headers,a))continue;let c=t.headers[a];delete t.headers[a],t.headers[a.toLowerCase()]=c}let o=await this.deserializeHttpMessage(n,e,t,s);if(o.length){let a=await j(t.body,e);if(a.byteLength>0){let c=await i.read(n,a);for(let f of o)c[f]!=null&&(s[f]=c[f])}}else o.discardResponseBody&&await j(t.body,e);return s.$metadata=this.deserializeMetadata(t),s}async deserializeHttpMessage(r,e,t,i,n){let s;i instanceof Set?s=n:s=i;let o=!0,a=this.deserializer,c=w.of(r),f=[];for(let[h,p]of c.structIterator()){let g=p.getMemberTraits();if(g.httpPayload){if(o=!1,p.isStreaming())p.isStructSchema()?s[h]=await this.deserializeEventStream({response:t,responseSchema:c}):s[h]=oe(t.body);else if(t.body){let u=await j(t.body,e);u.byteLength>0&&(s[h]=await a.read(p,u))}}else if(g.httpHeader){let u=String(g.httpHeader).toLowerCase(),d=t.headers[u];if(d!=null)if(p.isListSchema()){let m=p.getValueSchema();m.getMergedTraits().httpHeader=u;let S;m.isTimestampSchema()&&m.getSchema()===4?S=we(d,",",2):S=te(d);let y=[];for(let b of S)y.push(await a.read(m,b.trim()));s[h]=y}else s[h]=await a.read(p,d)}else if(g.httpPrefixHeaders!==void 0){s[h]={};for(let u in t.headers)if(A(t.headers,u)&&u.startsWith(g.httpPrefixHeaders)){let d=t.headers[u],m=p.getValueSchema();m.getMergedTraits().httpHeader=u,s[h][u.slice(g.httpPrefixHeaders.length)]=await a.read(m,d)}}else g.httpResponseCode?s[h]=t.statusCode:f.push(h)}return f.discardResponseBody=o,f}},Te=class extends V{static{l(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(r,e){super(),this.codecDeserializer=r,this.stringDeserializer=new se(e)}setSerdeContext(r){this.stringDeserializer.setSerdeContext(r),this.codecDeserializer.setSerdeContext(r),this.serdeContext=r}read(r,e){let t=w.of(r),i=t.getMergedTraits(),n=this.serdeContext?.utf8Encoder??I;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(t,n(e));if(i.httpPayload){if(t.isBlobSchema()){let s=this.serdeContext?.utf8Decoder??Y;return typeof e=="string"?s(e):e}else if(t.isStringSchema())return"byteLength"in e?n(e):e}return this.codecDeserializer.read(t,e)}},Be=class extends V{static{l(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(r){super(),this.settings=r}write(r,e){let t=w.of(r);switch(typeof e){case"object":if(e===null){this.stringBuffer="null";return}if(t.isTimestampSchema()){if(!(e instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${e} when schema expected Date in ${t.getName(!0)}`);switch(N(t,this.settings)){case 5:this.stringBuffer=e.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=U(e);break;case 7:this.stringBuffer=String(e.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",e),this.stringBuffer=String(e.getTime()/1e3)}return}if(t.isBlobSchema()&&"byteLength"in e){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(e);return}if(t.isListSchema()&&Array.isArray(e)){let s="";for(let o of e){this.write([t.getValueSchema(),t.getMergedTraits()],o);let a=this.flush(),c=t.getValueSchema().isTimestampSchema()?a:ye(a);s!==""&&(s+=", "),s+=c}this.stringBuffer=s;return}this.stringBuffer=JSON.stringify(e,null,2);break;case"string":let i=t.getMergedTraits().mediaType,n=e;if(i&&((i==="application/json"||i.endsWith("+json"))&&(n=C.from(n)),t.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(n.toString());return}this.stringBuffer=e;break;default:t.isIdempotencyToken()?this.stringBuffer=_():this.stringBuffer=String(e)}}flush(){let r=this.stringBuffer;return this.stringBuffer="",r}},je=class{static{l(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(r,e,t=new Be(e)){this.codecSerializer=r,this.stringSerializer=t}setSerdeContext(r){this.codecSerializer.setSerdeContext(r),this.stringSerializer.setSerdeContext(r)}write(r,e){let t=w.of(r),i=t.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(t,e),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(t,e)}flush(){if(this.buffer!==void 0){let r=this.buffer;return this.buffer=void 0,r}return this.codecSerializer.flush()}},E;function de(){if(E===void 0)try{if(typeof Buffer!="function")E=!1;else{let r=JSON.parse(Buffer.from([123,125]));E=r!==null&&typeof r=="object"}}catch{E=!1}return E}l(de,"detectBufferParsing");function me(r,e,t){if(t?.source){let i=t.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?Ae(i,e)?e:new B(i,"bigDecimal"):ze(i)?new B(i,"bigDecimal"):/[eE]/.test(i)?Ee(i):BigInt(i)}return e}l(me,"jsonReviver");function ze(r){let e=r.indexOf(".");if(e===-1)return!1;let t=r.search(/[eE]/);if(t===-1)return!0;let i=t-e-1;return parseInt(r.slice(t+1),10)<i}l(ze,"isFractionalBigNumeric");function Ae(r,e){if(r===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(r))return J(r)===J(String(e));let t=r.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),i=String(e);return t===i?!0:/[eE]/.test(i)?t===J(i):!1}l(Ae,"isRepresentable");function J(r){let e=r.startsWith("-"),t=e?r.slice(1):r,i=t.search(/[eE]/),n;if(i===-1)n=t;else{let s=parseInt(t.slice(i+1),10),o=t.slice(0,i),a=o.indexOf("."),c,f;a===-1?(c=o,f=o.length):(c=o.slice(0,a)+o.slice(a+1),f=a),c=c.replace(/0+$/,"")||"0";let h=f+s;c==="0"?n="0":h<=0?n="0."+"0".repeat(-h)+c:h>=c.length?n=c+"0".repeat(h-c.length):n=c.slice(0,h)+"."+c.slice(h)}return n.includes(".")&&(n=n.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+n}l(J,"expandToDecimal");function Ee(r){let e=r.search(/[eE]/),t=parseInt(r.slice(e+1),10),i=r.startsWith("-"),n=r.slice(i?1:0,e),s=n.indexOf("."),o,a;s===-1?(o=n,a=t):(o=n.slice(0,s)+n.slice(s+1),a=t-(n.length-s-1)),o=o.replace(/0+$/,"")||"0";let c=BigInt(o)*10n**BigInt(a+(n.replace(".","").length-o.length));return i?-c:c}l(Ee,"expandExponentToBigInt");var $=Symbol.for("@aws-sdk/reviver");function pe(r){let e=w.of(r),t=e.getSchema();if(Array.isArray(t)&&e.isStructSchema()){if($ in t)return t[$];let i=k(e,new Set);return t[$]=i,i}return k(e,new Set)}l(pe,"needsReviver");function k(r,e){let t=r.getSchema();if(e.has(t))return!1;if(e.add(t),r.isBigIntegerSchema()||r.isBigDecimalSchema())return!0;if(r.isStructSchema()){for(let[,i]of r.structIterator())if(k(i,e))return!0}else if(r.isListSchema()||r.isMapSchema()){if(k(r.getValueSchema(),e))return!0}else if(r.isDocumentSchema())return!0;return!1}l(k,"_check");var Ie=l((r,e)=>j(r,e).then(t=>(e?.utf8Encoder??I)(t)),"collectBodyString");async function xe(r,e,t){let i;if(de()&&typeof r?.[Symbol.asyncIterator]=="function"){let s=await j(r,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?i=s:i=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(i||(i=await Ie(r,e)),i.length===0)return{};let n=t&&pe(t)?me:void 0;try{return JSON.parse(i,n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof i=="string"?i:i.toString("utf8")}),s}}l(xe,"parseJsonBody");var ae=l((r,e)=>Object.keys(r).find(t=>t.toLowerCase()===e.toLowerCase()),"findKey"),Q=l(r=>{let e=r;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),Ce=l((r,e)=>ge(r,e,["header","code","type"]),"loadRestJsonErrorCode"),We=l((r,e,t=!1)=>ge(r,e,t?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),ge=l(({headers:r},e,t)=>{for(;t.length>0;)switch(t.shift()){case"header":let i=ae(r??{},"x-amzn-errortype");if(i!==void 0)return Q(r[i]);break;case"code":let n=ae(e??{},"code");if(n&&e[n]!==void 0)return Q(e[n]);break;case"type":if(e?.__type!==void 0)return Q(e.__type)}},"loadErrorCode"),Ne=class extends M{static{l(this,"JsonShapeDeserializer2")}settings;constructor(r){super(),this.settings=r}async read(r,e){let t=pe(r)?me:void 0,i;if(typeof e=="string"){if(e.length===0)return{};i=JSON.parse(e,t)}else if(e instanceof Uint8Array&&de()){if(e.byteLength===0)return{};let n=Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength);i=JSON.parse(n,t)}else i=await xe(e,this.serdeContext,r);return this._read(r,i)}readObject(r,e){return this._read(r,e)}_read(r,e){let t=e!==null&&typeof e=="object",i=w.of(r);if(t){if(i.isStructSchema())return this._readStruct(i,e);if(Array.isArray(e)&&i.isListSchema()){let s=i.getValueSchema();if(this.needsTransform(s))for(let o=0;o<e.length;++o)e[o]=this._read(s,e[o]);return e}if(i.isMapSchema()){let s=i.getValueSchema(),o=e;if(this.needsTransform(s))for(let a in o)a==="__proto__"&&P(o),o[a]=this._read(s,o[a]);return o}}if(i.isBlobSchema()&&typeof e=="string")return ee(e);let n=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof e=="string"&&n)return n==="application/json"||n.endsWith("+json")?C.from(e):e;if(i.isTimestampSchema()&&e!=null)switch(N(i,this.settings)){case 5:return Z(e);case 6:return G(e);case 7:return X(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(i.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(i.isBigDecimalSchema()&&e!=null){if(e instanceof B)return e;let s=e;return s.type==="bigDecimal"&&"string"in s?new B(s.string,s.type):new B(String(e),"bigDecimal")}if(i.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(i.isDocumentSchema()&&t)if(Array.isArray(e))for(let s=0;s<e.length;++s){let o=e[s];o instanceof B||(e[s]=this._read(i,o))}else{let s=e;for(let o in s){o==="__proto__"&&P(s);let a=s[o];a instanceof B||(s[o]=this._read(i,a))}}return e}_readStruct(r,e){let t=r.isUnionSchema(),i={},n,s=typeof e.__type=="string",{jsonName:o}=this.settings;o&&s&&(n={});let a;t&&(a=new ne(e,i));for(let[c,f]of r.structIterator()){let h=c;o&&(h=f.getMergedTraits().jsonName??h,s&&(n[h]=c)),t&&a.mark(h),e[h]!=null&&(i[c]=this._read(f,e[h]))}if(t)a.writeUnknown();else if(s)for(let c in e){let f=e[c],h=o?n[c]??c:c;h in i||(i[h]=f)}return i}needsTransform(r){return!!(r.isBlobSchema()||r.isTimestampSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema()||r.isDocumentSchema()||r.isStructSchema()||r.isListSchema()||r.isMapSchema()||r.isStringSchema()&&r.getMergedTraits().mediaType)}},Me=class F extends Uint8Array{static{l(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let t=Buffer.allocUnsafe(e);return new F(t.buffer,t.byteOffset,t.byteLength)}return new F(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,t){return typeof e=="string"?this.s().includes(e,t):Uint8Array.prototype.includes.call(this,e,t)}indexOf(e,t){return typeof e=="string"?this.s().indexOf(e,t):Uint8Array.prototype.indexOf.call(this,e,t)}lastIndexOf(e,t){if(typeof e=="string")return this.s().lastIndexOf(e,t);let i=Uint8Array.prototype.lastIndexOf;return t!==void 0?i.call(this,e,t):i.call(this,e)}startsWith(e,t){return this.s().startsWith(e,t)}endsWith(e,t){return this.s().endsWith(e,t)}match(e){return this.s().match(e)}replace(e,t){return this.s().replace(e,t)}search(e){return this.s().search(e)}split(e,t){return this.s().split(e,t)}substring(e,t){return this.s().substring(e,t)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,t){return this.s().padStart(e,t)}padEnd(e,t){return this.s().padEnd(e,t)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>ce+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),ce=e),this.string=I(this)}return this.string}},ce=0,L=new TextEncoder,he=123,fe=125,Le=91,Oe=93,z=34,O=58,D=44,ue=92,De=new Uint8Array([116,114,117,101]),ke=new Uint8Array([102,97,108,115,101]),Re=new Uint8Array([110,117,108,108]),T=new Array(128).fill(null);T[8]="b";T[9]="t";T[10]="n";T[12]="f";T[13]="r";T[34]='"';T[92]="\\";for(let r=0;r<32;r++)T[r]===null&&(T[r]="u00"+r.toString(16).padStart(2,"0"));var le=2048;function W(r){return Me.allocUnsafe(r)}l(W,"alloc");var Ue=class Se extends M{static{l(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=W(le)}write(e,t){this.i=0,this.rawValue=t,this.rootSchema=w.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,t,void 0)}writeDiscriminatedDocument(e,t){this.i=0,this.rootSchema=w.of(e);let i=this.rootSchema;if(i.isStructSchema()&&t!=null&&typeof t=="object"){this.writeValue(i,t,void 0);let n=`"__type":"${i.getName(!0)??"Unknown"}",`,s=n.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),L.encodeInto(n,this.json.subarray(1)),this.i+=s}else this.writeValue(i,t,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let t=this.rawValue;if(this.rawValue=void 0,e===0)return t;let i=this.json.subarray(0,e);return this.json=W(le),i}ensure(e){let{i:t,json:i}=this;if(t+e>i.length){let n=i.length*2;for(;n<t+e;)n*=2;let s=W(n);s.set(this.json),this.json=s}}writeAscii(e){let t=e.length;this.ensure(t);let{i,json:n}=this;for(let s=0;s<t;++s)n[i]=e.charCodeAt(s),i+=1;this.i=i}writeAsciiQuoted(e){let t=e.length;this.ensure(t+4);let{json:i,i:n}=this;i[n++]=z;for(let s=0;s<t;++s)i[n++]=e.charCodeAt(s);i[n++]=z,this.i=n}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=z;let t=e.length;for(let i=0;i<t;++i){let n=e.charCodeAt(i);if(n>34&&n<92)this.json[this.i++]=n;else if(n<128){let s=T[n];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=ue;for(let o=0;o<s.length;o++)this.json[this.i++]=s.charCodeAt(o)}else this.json[this.i++]=n}else if(n>=55296&&n<=56319){let s=i+1<t?e.charCodeAt(i+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:o}=L.encodeInto(e.substring(i,i+2),this.json.subarray(this.i));this.i+=o,++i}else this.ensure(6),this.writeUnicodeEscape(n)}else if(n>=56320&&n<=57343)this.ensure(6),this.writeUnicodeEscape(n);else{let{i:s,json:o}=this;n<2048?(o[s++]=192|n>>6,o[s++]=128|n&63):(o[s++]=224|n>>12,o[s++]=128|n>>6&63,o[s++]=128|n&63),this.i=s}}this.json[this.i++]=z}writeUnicodeEscape(e){let{json:t,i}=this;t[i++]=ue,t[i++]=117;let n=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)t[i++]=n.charCodeAt(s);this.i=i}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(64);for(let i=0;i<64;++i)t[i]=e.charCodeAt(i);return t})();writeBase64(e){let t=Math.ceil(e.length/3)*4;this.ensure(t+2);let i=this.json,n=Se.B64,s=this.i;i[s++]=z;let o=e.length,a=o%3,c=o-a;for(let f=0;f<c;f+=3){let h=e[f],p=e[f+1],g=e[f+2];i[s++]=n[h>>2],i[s++]=n[(h&3)<<4|p>>4],i[s++]=n[(p&15)<<2|g>>6],i[s++]=n[g&63]}if(a===2){let f=e[c],h=e[c+1];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4|h>>4],i[s++]=n[(h&15)<<2],i[s++]=61}else if(a===1){let f=e[c];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4],i[s++]=61,i[s++]=61}i[s++]=z,this.i=s}writeValue(e,t,i){if(t==null){if(i?.isStructSchema()){if(t===void 0&&w.of(e).isIdempotencyToken()){this.writeAsciiQuoted(_());return}return}this.ensure(4),this.json.set(Re,this.i),this.i+=4;return}let n=w.of(e),s=typeof t=="object";if(n.isStringSchema()){let o=n.getMergedTraits().mediaType;if(o&&(o==="application/json"||o.endsWith("+json"))){this.writeJsonString(C.from(t).toString());return}}if(s){if(n.isStructSchema()){this.writeStruct(n,t);return}if(Array.isArray(t)&&(n.isListSchema()||n.isDocumentSchema())){this.writeList(n,t,n.isDocumentSchema());return}if(n.isMapSchema()){this.writeMap(n,t,!1);return}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema())){this.writeBase64(t);return}if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema())){this.writeTimestamp(n,t);return}if(t instanceof B){this.writeAscii(t.string);return}if(n.isDocumentSchema()){Array.isArray(t)?this.writeList(n,t,!0):this.writeMap(n,t,!0);return}let o=JSON.stringify(t);this.writeAscii(o);return}if(typeof t=="string"){if(n.isBlobSchema()){let o=(this.serdeContext?.base64Encoder??x)(t);this.writeAsciiQuoted(o);return}this.writeJsonString(t);return}if(typeof t=="number"){if(Math.abs(t)===1/0||Number.isNaN(t)){this.writeAsciiQuoted(String(t));return}let o=String(t);this.writeAscii(o);return}if(typeof t=="boolean"){this.ensure(5);let{i:o,json:a}=this;t?(a.set(De,o),o+=4):(a.set(ke,o),o+=5),this.i=o;return}if(typeof t=="bigint"){this.writeAscii(t.toString());return}this.writeAscii(String(t))}writeStruct(e,t){this.ensure(2),this.json[this.i++]=he;let i=!1,n=typeof t.__type=="string",s;n&&(s=new Set);for(let[o,a]of e.structIterator()){let c=t[o];if(c==null&&!a.isIdempotencyToken())continue;i&&(this.ensure(1),this.json[this.i++]=D),i=!0;let f=this.settings.jsonName?a.getMergedTraits().jsonName??o:o;s&&(s.add(o),s.add(f)),this.writeAsciiQuoted(f),this.json[this.i++]=O,this.writeValue(a,c,e)}if(!i&&e.isUnionSchema()){let{$unknown:o}=t;if(Array.isArray(o)){let[a,c]=o;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,c,e)}}else if(n)for(let o in t){if(s.has(o))continue;s.add(o);let a=t[o];i&&(this.ensure(1),this.json[this.i++]=D),i=!0,this.writeAsciiQuoted(o),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=fe}writeList(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let f=0;f<t.length;++f){let h=t[f];if(Number.isNaN(h)||h===1/0||h===-1/0||h==null&&!n){a=!0;break}}let c;if(!a)c=JSON.stringify(t);else{let f=[];for(let h=0;h<t.length;++h){let p=t[h];p==null&&!n||(Number.isNaN(p)||p===1/0||p===-1/0?f.push(String(p)):f.push(p))}c=JSON.stringify(f)}this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Le;let o=!1;for(let a=0;a<t.length;++a){let c=t[a];(i?c===void 0:c==null&&!n)||(o&&(this.ensure(1),this.json[this.i++]=D),this.writeValue(s,c,void 0),o=!0)}this.ensure(1),this.json[this.i++]=Oe}writeMap(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let f in t){let h=t[f];Number.isNaN(h)||h===1/0||h===-1/0?((a??={})[f]=h,t[f]=String(h)):h===null&&!n&&((a??={})[f]=null,t[f]=void 0)}let c=JSON.stringify(t);a&&Object.assign(t,a),this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=he;let o=!0;for(let a in t){let c=t[a];(i?c===void 0:c==null&&!n)||(o||(this.ensure(1),this.json[this.i++]=D),o=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=fe}writeTimestamp(e,t){switch(N(e,this.settings)){case 5:{let i=t.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(i);return}case 6:this.writeAsciiQuoted(U(t));return;case 7:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}default:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}}}},_e=class extends M{static{l(this,"JsonCodec2")}settings;constructor(r){super(),this.settings=r}createSerializer(){let r=new Ue(this.settings);return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new Ne(this.settings);return r.setSerdeContext(this.serdeContext),r}},Fe=class extends be{static{l(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new re;constructor({defaultNamespace:r,errorTypeRegistries:e,jsonCodec:t}){super({defaultNamespace:r,errorTypeRegistries:e});let i={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=t??new _e(i),this.serializer=new je(this.codec.createSerializer(),i),this.deserializer=new Te(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(r){this.codec.setSerdeContext(r),super.setSerdeContext(r)}async serializeRequest(r,e,t){let i=await super.serializeRequest(r,e,t),n=w.of(r.input);if(!i.headers["content-type"]){let s=this.mixin.resolveRestContentType(this.getDefaultContentType(),n);s&&(i.headers["content-type"]=s)}return i.body==null&&i.headers["content-type"]===this.getDefaultContentType()&&(i.body="{}"),i}async deserializeResponse(r,e,t){let i=await super.deserializeResponse(r,e,t),n=w.of(r.output);for(let[s,o]of n.structIterator())o.getMemberTraits().httpPayload&&!(s in i)&&(i[s]=null);return i}async handleError(r,e,t,i,n){let s=Ce(t,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,t,i,n),c=w.of(o),f=i.message??i.Message??"UnknownError",h=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({});await this.deserializeHttpMessage(o,e,t,i);let p={},g=this.codec.createDeserializer();for(let[u,d]of c.structIterator()){let m=d.getMergedTraits().jsonName??u;p[u]=g.readObject(d,i[m])}throw this.mixin.decorateServiceException(Object.assign(h,a,{$fault:c.getMergedTraits().error,message:f},p),i)}getDefaultContentType(){return"application/json"}};export{be as a,Te as b,je as c,We as d,_e as e,Fe as f};
3
+ //# sourceMappingURL=chunk-YT7GXW3T.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{c as o,d as f}from"./chunk-SGVNW5YS.js";import{o as t,p as e,q as n,r as a}from"./chunk-NFXTMZA7.js";import{a as i}from"./chunk-WFJCOJII.js";function l(s,{redirectOnUnauthorized:c=!1}={}){a(s)&&n(s.status,s.location),e(s)&&t(s.status,s.body.message),s instanceof f&&t(400,s.message),s instanceof o&&(c&&n(303,"/sign-in"),t(404,s.message)),console.error(s),t(500)}i(l,"toRemoteError");function d(s){return s==null&&t(401),s}i(d,"requireUser");export{l as a,d as b};
3
- //# sourceMappingURL=chunk-TGC5GAFE.js.map
2
+ import{c as o,d as f}from"./chunk-FWQ74KMZ.js";import{o as t,p as e,q as n,r as a}from"./chunk-NFXTMZA7.js";import{a as i}from"./chunk-WFJCOJII.js";function l(s,{redirectOnUnauthorized:c=!1}={}){a(s)&&n(s.status,s.location),e(s)&&t(s.status,s.body.message),s instanceof f&&t(400,s.message),s instanceof o&&(c&&n(303,"/sign-in"),t(404,s.message)),console.error(s),t(500)}i(l,"toRemoteError");function d(s){return s==null&&t(401),s}i(d,"requireUser");export{l as a,d as b};
3
+ //# sourceMappingURL=chunk-ZB4GC6MX.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{a,b,c,d}from"./chunk-W5YFYASF.js";import"./chunk-UJJESI6B.js";import"./chunk-NJKO6IPW.js";import"./chunk-AHIUOSMB.js";import"./chunk-SQWNF2DJ.js";import"./chunk-YGLOO2DN.js";import"./chunk-EOQRMBYM.js";import"./chunk-XKIT3LV2.js";import"./chunk-NFXTMZA7.js";import"./chunk-DYKW3K3W.js";import"./chunk-WFJCOJII.js";export{c as i,a as n,b as r,d as t};
3
- //# sourceMappingURL=dist-es-CXXNDADM.js.map
2
+ import{a,b,c,d}from"./chunk-KA3MJBXM.js";import"./chunk-KHGYICM3.js";import"./chunk-NJKO6IPW.js";import"./chunk-AHIUOSMB.js";import"./chunk-SQWNF2DJ.js";import"./chunk-RJLO3ZOK.js";import"./chunk-EOQRMBYM.js";import"./chunk-XKIT3LV2.js";import"./chunk-NFXTMZA7.js";import"./chunk-DYKW3K3W.js";import"./chunk-WFJCOJII.js";export{c as i,a as n,b as r,d as t};
3
+ //# sourceMappingURL=dist-es-UYSTLTTZ.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{a as m}from"./chunk-HDDB3KK4.js";import{a as w}from"./chunk-53BPHZUZ.js";import{b as f}from"./chunk-3BGHO5XO.js";import"./chunk-OBZVF2XZ.js";import{a as c}from"./chunk-NJKO6IPW.js";import{b as u}from"./chunk-AHIUOSMB.js";import{a as i}from"./chunk-WFJCOJII.js";var R=i((e,t,r)=>{let n={EcsContainer:i(async o=>{let{fromHttp:a}=await import("./dist-es2-22Z5CJRZ.js"),{fromContainerMetadata:s}=await import("./dist-es8-RD2V4NV2.js");return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>w(a(o??{}),s(o))().then(y)},"EcsContainer"),Ec2InstanceMetadata:i(async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:a}=await import("./dist-es8-RD2V4NV2.js");return async()=>a(o)().then(y)},"Ec2InstanceMetadata"),Environment:i(async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:a}=await import("./dist-es-CXXNDADM.js").then(s=>s.t);return async()=>a(o)().then(y)},"Environment")};if(e in n)return n[e];throw new u(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),y=i(e=>c(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),A=i((e,{profile:t="default",logger:r}={})=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(O(e,{profile:t,logger:r})||L(e,{profile:t,logger:r})),"isAssumeRoleProfile"),O=i((e,{profile:t,logger:r})=>{let n=typeof e.source_profile=="string"&&typeof e.credential_source>"u";return n&&r?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),n},"isAssumeRoleWithSourceProfile"),L=i((e,{profile:t,logger:r})=>{let n=typeof e.credential_source=="string"&&typeof e.source_profile>"u";return n&&r?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`),n},"isCredentialSourceProfile"),b=i(async(e,t,r,n,o={},a)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let s=t[e],{source_profile:d,region:P}=s;if(!r.roleAssumer){let{getDefaultRoleAssumer:l}=await import("./sts-7UNDUHY2.js");r.roleAssumer=l({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:P??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(d&&d in o)throw new u(`Detected a cycle attempting to resolve credentials for profile ${f(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${d?`source_profile=[${d}]`:`profile=[${e}]`}`);let g=d?a(d,t,r,n,{...o,[d]:!0},v(t[d]??{})):(await R(s.credential_source,e,r.logger)(r))();if(v(s))return g.then(l=>c(l,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let l={RoleArn:s.role_arn,RoleSessionName:s.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:s.external_id,DurationSeconds:parseInt(s.duration_seconds||"3600",10)},{mfa_serial:_}=s;if(_){if(!r.mfaCodeProvider)throw new u(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});l.SerialNumber=_,l.TokenCode=await r.mfaCodeProvider(_)}let S=await g;return r.roleAssumer(S,l).then(p=>c(p,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),v=i(e=>!e.role_arn&&!!e.credential_source,"isCredentialSourceWithoutRoleArn"),k=i(e=>!!(e&&e.login_session),"isLoginProfile"),h=i(async(e,t,r)=>{let{fromLoginCredentials:n}=await import("./dist-es4-WVQHEEGI.js"),o=await n({...t,profile:e})({callerClientConfig:r});return c(o,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),D=i(e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string","isProcessProfile"),F=i(async(e,t)=>{let{fromProcess:r}=await import("./dist-es5-KVZQJJU3.js"),n=await r({...e,profile:t})();return c(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),T=i(async(e,t,r={},n)=>{let{fromSSO:o}=await import("./dist-es6-GJBWAT3F.js");return o({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(a=>t.sso_session?c(a,"CREDENTIALS_PROFILE_SSO","r"):c(a,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),$=i(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile"),E=i(e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,"isStaticCredsProfile"),C=i(async(e,t)=>{t?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return c(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),x=i(e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile"),W=i(async(e,t,r)=>{let{fromTokenFile:n}=await import("./dist-es7-V42RESE5.js"),o=await n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r});return c(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),I=i(async(e,t,r,n,o={},a=!1)=>{let s=t[e];if(Object.keys(o).length>0&&E(s))return C(s,r);if(a||A(s,{profile:e,logger:r.logger}))return b(e,t,r,n,o,I);if(E(s))return C(s,r);if(x(s))return W(s,r,n);if(D(s))return F(r,e);if($(s))return await T(e,s,r,n);if(k(s))return h(e,r,n);throw new u(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),G=i((e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await m(e);return I(f({profile:e.profile??t?.profile}),r,e,t)},"fromIni");export{G as fromIni};
3
- //# sourceMappingURL=dist-es3-DHVCSDXO.js.map
2
+ import{a as m}from"./chunk-HDDB3KK4.js";import{a as w}from"./chunk-53BPHZUZ.js";import{b as f}from"./chunk-3BGHO5XO.js";import"./chunk-OBZVF2XZ.js";import{a as c}from"./chunk-NJKO6IPW.js";import{b as u}from"./chunk-AHIUOSMB.js";import{a as i}from"./chunk-WFJCOJII.js";var R=i((e,t,r)=>{let n={EcsContainer:i(async o=>{let{fromHttp:a}=await import("./dist-es2-22Z5CJRZ.js"),{fromContainerMetadata:s}=await import("./dist-es8-RD2V4NV2.js");return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>w(a(o??{}),s(o))().then(y)},"EcsContainer"),Ec2InstanceMetadata:i(async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:a}=await import("./dist-es8-RD2V4NV2.js");return async()=>a(o)().then(y)},"Ec2InstanceMetadata"),Environment:i(async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:a}=await import("./dist-es-UYSTLTTZ.js").then(s=>s.t);return async()=>a(o)().then(y)},"Environment")};if(e in n)return n[e];throw new u(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),y=i(e=>c(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),A=i((e,{profile:t="default",logger:r}={})=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(O(e,{profile:t,logger:r})||L(e,{profile:t,logger:r})),"isAssumeRoleProfile"),O=i((e,{profile:t,logger:r})=>{let n=typeof e.source_profile=="string"&&typeof e.credential_source>"u";return n&&r?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),n},"isAssumeRoleWithSourceProfile"),L=i((e,{profile:t,logger:r})=>{let n=typeof e.credential_source=="string"&&typeof e.source_profile>"u";return n&&r?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`),n},"isCredentialSourceProfile"),b=i(async(e,t,r,n,o={},a)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let s=t[e],{source_profile:d,region:P}=s;if(!r.roleAssumer){let{getDefaultRoleAssumer:l}=await import("./sts-URI6AMGK.js");r.roleAssumer=l({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:P??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(d&&d in o)throw new u(`Detected a cycle attempting to resolve credentials for profile ${f(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${d?`source_profile=[${d}]`:`profile=[${e}]`}`);let g=d?a(d,t,r,n,{...o,[d]:!0},v(t[d]??{})):(await R(s.credential_source,e,r.logger)(r))();if(v(s))return g.then(l=>c(l,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let l={RoleArn:s.role_arn,RoleSessionName:s.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:s.external_id,DurationSeconds:parseInt(s.duration_seconds||"3600",10)},{mfa_serial:_}=s;if(_){if(!r.mfaCodeProvider)throw new u(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});l.SerialNumber=_,l.TokenCode=await r.mfaCodeProvider(_)}let S=await g;return r.roleAssumer(S,l).then(p=>c(p,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),v=i(e=>!e.role_arn&&!!e.credential_source,"isCredentialSourceWithoutRoleArn"),k=i(e=>!!(e&&e.login_session),"isLoginProfile"),h=i(async(e,t,r)=>{let{fromLoginCredentials:n}=await import("./dist-es4-KDFV3JNC.js"),o=await n({...t,profile:e})({callerClientConfig:r});return c(o,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),D=i(e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string","isProcessProfile"),F=i(async(e,t)=>{let{fromProcess:r}=await import("./dist-es5-KVZQJJU3.js"),n=await r({...e,profile:t})();return c(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),T=i(async(e,t,r={},n)=>{let{fromSSO:o}=await import("./dist-es6-3LIOBPYN.js");return o({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(a=>t.sso_session?c(a,"CREDENTIALS_PROFILE_SSO","r"):c(a,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),$=i(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile"),E=i(e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,"isStaticCredsProfile"),C=i(async(e,t)=>{t?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return c(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),x=i(e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile"),W=i(async(e,t,r)=>{let{fromTokenFile:n}=await import("./dist-es7-XTZQI2TF.js"),o=await n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r});return c(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),I=i(async(e,t,r,n,o={},a=!1)=>{let s=t[e];if(Object.keys(o).length>0&&E(s))return C(s,r);if(a||A(s,{profile:e,logger:r.logger}))return b(e,t,r,n,o,I);if(E(s))return C(s,r);if(x(s))return W(s,r,n);if(D(s))return F(r,e);if($(s))return await T(e,s,r,n);if(k(s))return h(e,r,n);throw new u(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),G=i((e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await m(e);return I(f({profile:e.profile??t?.profile}),r,e,t)},"fromIni");export{G as fromIni};
3
+ //# sourceMappingURL=dist-es3-77ZYOMBT.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{a as P}from"./chunk-HDDB3KK4.js";import{a as E}from"./chunk-QDCEVKAE.js";import{b as x}from"./chunk-3BGHO5XO.js";import"./chunk-OBZVF2XZ.js";import{a as I}from"./chunk-NJKO6IPW.js";import{b as a}from"./chunk-AHIUOSMB.js";import{a as p}from"./chunk-WFJCOJII.js";import{createHash as L,createPrivateKey as O,createPublicKey as $,sign as H}from"node:crypto";import{promises as y}from"node:fs";import{homedir as v}from"node:os";import{dirname as K,join as A}from"node:path";var _=class T{static{p(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=3e5;constructor(e,t,s){this.profileData=e,this.init=t,this.callerClientConfig=s}async loadCredentials(){let e=await this.loadToken();if(!e)throw new a(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let t=e.accessToken,s=Date.now();return new Date(t.expiresAt).getTime()-s<=T.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let t=await this.loadToken().catch(()=>e),s=Date.now(),r=new Date(t.accessToken.expiresAt).getTime(),n=new Date(e.accessToken.expiresAt).getTime(),o=r<=s&&n>s?e:t;if(new Date(o.accessToken.expiresAt).getTime()-Date.now()>T.REFRESH_THRESHOLD)return this.toCredentials(o.accessToken);let{SigninClient:f,CreateOAuth2TokenCommand:h}=await import("./signin-AB626ZML.js"),{logger:u,userAgentAppId:k}=this.callerClientConfig??{},m=p(i=>i?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,l=new f({credentials:{accessKeyId:"",secretAccessKey:""},region:this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,requestHandler:m,logger:u,userAgentAppId:k,...this.init?.clientConfig});this.createDPoPInterceptor(l.middlewareStack);let F={tokenInput:{clientId:o.clientId,refreshToken:o.refreshToken,grantType:"refresh_token"}};try{let i=await l.send(new h(F)),{accessKeyId:d,secretAccessKey:c,sessionToken:S}=i.tokenOutput?.accessToken??{},{refreshToken:D,expiresIn:N}=i.tokenOutput??{};if(!d||!c||!S||!D)throw new a("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(N??900)*1e3,b=new Date(Date.now()+R),C={...o,accessToken:{...o.accessToken,accessKeyId:d,secretAccessKey:c,sessionToken:S,expiresAt:b.toISOString()},refreshToken:D};return await this.saveToken(C),this.toCredentials(C.accessToken)}catch(i){if(i.name==="AccessDeniedException"){let d=i.error,c;switch(d){case"TOKEN_EXPIRED":c="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":c="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":c="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:c=`Failed to refresh token: ${String(i)}. Please re-authenticate using \`aws login\``}throw new a(c,{logger:this.logger,tryNextLink:!1})}if(new Date(o.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(i)}. Using existing token until expiry.`),this.toCredentials(o.accessToken);throw new a(`Failed to refresh token: ${String(i)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t=await y.readFile(e,"utf8"),s=JSON.parse(t),r=["accessToken","clientId","refreshToken","dpopKey"].filter(n=>!s[n]);if(s.accessToken?.accountId||r.push("accountId"),r.length>0)throw new a(`Token validation failed, missing fields: ${r.join(", ")}`,{logger:this.logger,tryNextLink:!1});return s}catch(t){throw new a(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),s=K(t);try{await y.mkdir(s,{recursive:!0})}catch{}await y.writeFile(t,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A(v(),".aws","login","cache"),t=Buffer.from(this.loginSession,"utf8"),s=L("sha256").update(t).digest("hex");return A(e,`${s}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw new Error("Invalid DER signature");t++;let s=e[t++],r=e.subarray(t,t+s);if(t+=s,e[t]!==2)throw new Error("Invalid DER signature");t++;let n=e[t++],o=e.subarray(t,t+n);r=r[0]===0?r.subarray(1):r,o=o[0]===0?o.subarray(1):o;let f=Buffer.concat([Buffer.alloc(32-r.length),r]),h=Buffer.concat([Buffer.alloc(32-o.length),o]);return Buffer.concat([f,h])}createDPoPInterceptor(e){e.add(t=>async s=>{if(E.isInstance(s.request)){let r=s.request,n=`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}${r.path}`,o=await this.generateDpop(r.method,n);r.headers={...r.headers,DPoP:o}}return t(s)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",t){let s=await this.loadToken();try{let r=O({key:s.dpopKey,format:"pem",type:"sec1"}),n=$(r).export({format:"der",type:"spki"}),o=-1;for(let l=0;l<n.length;l++)if(n[l]===4){o=l;break}let f=n.slice(o+1,o+33),h=n.slice(o+33,o+65),u={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:f.toString("base64url"),y:h.toString("base64url")}},k={jti:crypto.randomUUID(),htm:e,htu:t,iat:Math.floor(Date.now()/1e3)},w=`${Buffer.from(JSON.stringify(u)).toString("base64url")}.${Buffer.from(JSON.stringify(k)).toString("base64url")}`,m=H("sha256",Buffer.from(w),r);return`${w}.${this.derToRawSignature(m).toString("base64url")}`}catch(r){throw new a(`Failed to generate Dpop proof: ${r instanceof Error?r.message:String(r)}`,{logger:this.logger,tryNextLink:!1})}}},z=p(g=>async({callerClientConfig:e}={})=>{g?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P(g||{}),s=x({profile:g?.profile??e?.profile}),r=t[s];if(!r?.login_session)throw new a(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:g?.logger});let n=await new _(r,g,e).loadCredentials();return I(n,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");export{z as fromLoginCredentials};
3
- //# sourceMappingURL=dist-es4-WVQHEEGI.js.map
2
+ import{a as P}from"./chunk-HDDB3KK4.js";import{a as E}from"./chunk-QDCEVKAE.js";import{b as x}from"./chunk-3BGHO5XO.js";import"./chunk-OBZVF2XZ.js";import{a as I}from"./chunk-NJKO6IPW.js";import{b as a}from"./chunk-AHIUOSMB.js";import{a as p}from"./chunk-WFJCOJII.js";import{createHash as L,createPrivateKey as O,createPublicKey as $,sign as H}from"node:crypto";import{promises as y}from"node:fs";import{homedir as v}from"node:os";import{dirname as K,join as A}from"node:path";var _=class T{static{p(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=3e5;constructor(e,t,s){this.profileData=e,this.init=t,this.callerClientConfig=s}async loadCredentials(){let e=await this.loadToken();if(!e)throw new a(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let t=e.accessToken,s=Date.now();return new Date(t.expiresAt).getTime()-s<=T.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let t=await this.loadToken().catch(()=>e),s=Date.now(),r=new Date(t.accessToken.expiresAt).getTime(),n=new Date(e.accessToken.expiresAt).getTime(),o=r<=s&&n>s?e:t;if(new Date(o.accessToken.expiresAt).getTime()-Date.now()>T.REFRESH_THRESHOLD)return this.toCredentials(o.accessToken);let{SigninClient:f,CreateOAuth2TokenCommand:h}=await import("./signin-PTWHOMY5.js"),{logger:u,userAgentAppId:k}=this.callerClientConfig??{},m=p(i=>i?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,l=new f({credentials:{accessKeyId:"",secretAccessKey:""},region:this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,requestHandler:m,logger:u,userAgentAppId:k,...this.init?.clientConfig});this.createDPoPInterceptor(l.middlewareStack);let F={tokenInput:{clientId:o.clientId,refreshToken:o.refreshToken,grantType:"refresh_token"}};try{let i=await l.send(new h(F)),{accessKeyId:d,secretAccessKey:c,sessionToken:S}=i.tokenOutput?.accessToken??{},{refreshToken:D,expiresIn:N}=i.tokenOutput??{};if(!d||!c||!S||!D)throw new a("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(N??900)*1e3,b=new Date(Date.now()+R),C={...o,accessToken:{...o.accessToken,accessKeyId:d,secretAccessKey:c,sessionToken:S,expiresAt:b.toISOString()},refreshToken:D};return await this.saveToken(C),this.toCredentials(C.accessToken)}catch(i){if(i.name==="AccessDeniedException"){let d=i.error,c;switch(d){case"TOKEN_EXPIRED":c="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":c="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":c="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:c=`Failed to refresh token: ${String(i)}. Please re-authenticate using \`aws login\``}throw new a(c,{logger:this.logger,tryNextLink:!1})}if(new Date(o.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(i)}. Using existing token until expiry.`),this.toCredentials(o.accessToken);throw new a(`Failed to refresh token: ${String(i)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t=await y.readFile(e,"utf8"),s=JSON.parse(t),r=["accessToken","clientId","refreshToken","dpopKey"].filter(n=>!s[n]);if(s.accessToken?.accountId||r.push("accountId"),r.length>0)throw new a(`Token validation failed, missing fields: ${r.join(", ")}`,{logger:this.logger,tryNextLink:!1});return s}catch(t){throw new a(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),s=K(t);try{await y.mkdir(s,{recursive:!0})}catch{}await y.writeFile(t,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A(v(),".aws","login","cache"),t=Buffer.from(this.loginSession,"utf8"),s=L("sha256").update(t).digest("hex");return A(e,`${s}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw new Error("Invalid DER signature");t++;let s=e[t++],r=e.subarray(t,t+s);if(t+=s,e[t]!==2)throw new Error("Invalid DER signature");t++;let n=e[t++],o=e.subarray(t,t+n);r=r[0]===0?r.subarray(1):r,o=o[0]===0?o.subarray(1):o;let f=Buffer.concat([Buffer.alloc(32-r.length),r]),h=Buffer.concat([Buffer.alloc(32-o.length),o]);return Buffer.concat([f,h])}createDPoPInterceptor(e){e.add(t=>async s=>{if(E.isInstance(s.request)){let r=s.request,n=`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}${r.path}`,o=await this.generateDpop(r.method,n);r.headers={...r.headers,DPoP:o}}return t(s)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",t){let s=await this.loadToken();try{let r=O({key:s.dpopKey,format:"pem",type:"sec1"}),n=$(r).export({format:"der",type:"spki"}),o=-1;for(let l=0;l<n.length;l++)if(n[l]===4){o=l;break}let f=n.slice(o+1,o+33),h=n.slice(o+33,o+65),u={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:f.toString("base64url"),y:h.toString("base64url")}},k={jti:crypto.randomUUID(),htm:e,htu:t,iat:Math.floor(Date.now()/1e3)},w=`${Buffer.from(JSON.stringify(u)).toString("base64url")}.${Buffer.from(JSON.stringify(k)).toString("base64url")}`,m=H("sha256",Buffer.from(w),r);return`${w}.${this.derToRawSignature(m).toString("base64url")}`}catch(r){throw new a(`Failed to generate Dpop proof: ${r instanceof Error?r.message:String(r)}`,{logger:this.logger,tryNextLink:!1})}}},z=p(g=>async({callerClientConfig:e}={})=>{g?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P(g||{}),s=x({profile:g?.profile??e?.profile}),r=t[s];if(!r?.login_session)throw new a(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:g?.logger});let n=await new _(r,g,e).loadCredentials();return I(n,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");export{z as fromLoginCredentials};
3
+ //# sourceMappingURL=dist-es4-KDFV3JNC.js.map
@@ -1,4 +1,4 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{a as G,c as v}from"./chunk-KFH7SXQF.js";import{a as A}from"./chunk-HDDB3KK4.js";import{a as b,b as x,c as j,d as K}from"./chunk-3BGHO5XO.js";import{c as P}from"./chunk-OBZVF2XZ.js";import{a as C}from"./chunk-NJKO6IPW.js";import{a as q,b as g}from"./chunk-AHIUOSMB.js";import{a as l}from"./chunk-WFJCOJII.js";import{promises as B}from"node:fs";var _=class z extends q{static{l(this,"TokenProviderError")}name="TokenProviderError";constructor(s,o=!0){super(s,o),Object.setPrototypeOf(this,z.prototype)}},Q=l(e=>Object.entries(e).filter(([s])=>s.startsWith(b.SSO_SESSION+".")).reduce((s,[o,i])=>({...s,[o.substring(o.indexOf(".")+1)]:i}),{}),"getSsoSessionData"),X=l(()=>({}),"swallowError"),J=l(async(e={})=>P(e.configFilepath??j()).then(K).then(Q).catch(X),"loadSsoSessionData"),Z=l(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile"),I="To refresh this SSO session run 'aws sso login' with the corresponding profile.",ee=l(async(e,s={},o)=>{let{SSOOIDCClient:i}=await import("./sso-oidc-MUW3SC56.js"),a=l(n=>s.clientConfig?.[n]??s.parentClientConfig?.[n]??o?.[n],"coalesce");return new i(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:a("logger"),userAgentAppId:a("userAgentAppId")}))},"getSsoOidcClient"),se=l(async(e,s,o={},i)=>{let{CreateTokenCommand:a}=await import("./sso-oidc-MUW3SC56.js");return(await ee(s,o,i)).send(new a({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),M=l(e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new _(`Token is expired. ${I}`,!1)},"validateTokenExpiry"),u=l((e,s,o=!1)=>{if(typeof s>"u")throw new _(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${I}`,!1)},"validateTokenKey"),{writeFile:oe}=B,re=l((e,s)=>oe(G(e),JSON.stringify(s,null,2)),"writeSSOTokenToFile"),U=new Map,te=l((e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let o=await A(e),i=x({profile:e.profile??s?.profile}),a=o[i];if(a){if(!a.sso_session)throw new _(`Profile '${i}' is missing required property 'sso_session'.`)}else throw new _(`Profile '${i}' could not be found in shared credentials file.`,!1);let n=a.sso_session,c=(await J(e))[n];if(!c)throw new _(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let t of["sso_start_url","sso_region"])if(!c[t])throw new _(`Sso session '${n}' is missing required property '${t}'.`,!1);c.sso_start_url;let w=c.sso_region,r;try{r=await v(n)}catch{throw new _(`The SSO session token associated with profile=${i} was not found or is invalid. ${I}`,!1)}u("accessToken",r.accessToken),u("expiresAt",r.expiresAt);let{accessToken:f,expiresAt:m}=r,p={token:f,expiration:new Date(m)};if(p.expiration.getTime()-Date.now()>3e5)return p;let k=U.get(n)??0;if(Date.now()-k<3e4)return M(p),p;u("clientId",r.clientId,!0),u("clientSecret",r.clientSecret,!0),u("refreshToken",r.refreshToken,!0);try{U.set(n,Date.now());let t=await se(r,w,e,s);u("accessToken",t.accessToken),u("expiresIn",t.expiresIn);let d=new Date(Date.now()+t.expiresIn*1e3);try{await re(n,{...r,accessToken:t.accessToken,expiresAt:d.toISOString(),refreshToken:t.refreshToken})}catch{}return{token:t.accessToken,expiration:d}}catch{return M(p),p}},"fromSso"),T=!1,H=l(async({ssoStartUrl:e,ssoSession:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:a,ssoClient:n,clientConfig:c,parentClientConfig:w,callerClientConfig:r,profile:f,filepath:m,configFilepath:p,ignoreCache:k,logger:t})=>{let d,S="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let h=await te({profile:f,filepath:m,configFilepath:p,ignoreCache:k,clientConfig:c,parentClientConfig:w,logger:t})({callerClientConfig:r});d={accessToken:h.token,expiresAt:new Date(h.expiration).toISOString()}}catch(h){throw new g(h.message,{tryNextLink:T,logger:t})}else try{d=await v(e)}catch{throw new g(`The SSO session associated with this profile is invalid. ${S}`,{tryNextLink:T,logger:t})}if(new Date(d.expiresAt).getTime()-Date.now()<=0)throw new g(`The SSO session associated with this profile has expired. ${S}`,{tryNextLink:T,logger:t});let{accessToken:y}=d,{SSOClient:V,GetRoleCredentialsCommand:W}=await import("./loadSso-ZGYF2F3K.js"),Y=n||new V(Object.assign({},c??{},{logger:c?.logger??r?.logger??w?.logger,region:c?.region??i,userAgentAppId:c?.userAgentAppId??r?.userAgentAppId??w?.userAgentAppId})),N;try{N=await Y.send(new W({accountId:o,roleName:a,accessToken:y}))}catch(h){throw new g(h,{tryNextLink:T,logger:t})}let{roleCredentials:{accessKeyId:E,secretAccessKey:R,sessionToken:D,expiration:$,credentialScope:F,accountId:L}={}}=N;if(!E||!R||!D||!$)throw new g("SSO returns an invalid temporary credential.",{tryNextLink:T,logger:t});let O={accessKeyId:E,secretAccessKey:R,sessionToken:D,expiration:new Date($),...F&&{credentialScope:F},...L&&{accountId:L}};return s?C(O,"CREDENTIALS_SSO","s"):C(O,"CREDENTIALS_SSO_LEGACY","u"),O},"resolveSSOCredentials"),ne=l((e,s)=>{let{sso_start_url:o,sso_account_id:i,sso_region:a,sso_role_name:n}=e;if(!o||!i||!a||!n)throw new g(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
+ import{a as G,c as v}from"./chunk-KFH7SXQF.js";import{a as A}from"./chunk-HDDB3KK4.js";import{a as b,b as x,c as j,d as K}from"./chunk-3BGHO5XO.js";import{c as P}from"./chunk-OBZVF2XZ.js";import{a as C}from"./chunk-NJKO6IPW.js";import{a as q,b as g}from"./chunk-AHIUOSMB.js";import{a as l}from"./chunk-WFJCOJII.js";import{promises as B}from"node:fs";var _=class z extends q{static{l(this,"TokenProviderError")}name="TokenProviderError";constructor(s,o=!0){super(s,o),Object.setPrototypeOf(this,z.prototype)}},Q=l(e=>Object.entries(e).filter(([s])=>s.startsWith(b.SSO_SESSION+".")).reduce((s,[o,i])=>({...s,[o.substring(o.indexOf(".")+1)]:i}),{}),"getSsoSessionData"),X=l(()=>({}),"swallowError"),J=l(async(e={})=>P(e.configFilepath??j()).then(K).then(Q).catch(X),"loadSsoSessionData"),Z=l(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile"),I="To refresh this SSO session run 'aws sso login' with the corresponding profile.",ee=l(async(e,s={},o)=>{let{SSOOIDCClient:i}=await import("./sso-oidc-I3MEU76B.js"),a=l(n=>s.clientConfig?.[n]??s.parentClientConfig?.[n]??o?.[n],"coalesce");return new i(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:a("logger"),userAgentAppId:a("userAgentAppId")}))},"getSsoOidcClient"),se=l(async(e,s,o={},i)=>{let{CreateTokenCommand:a}=await import("./sso-oidc-I3MEU76B.js");return(await ee(s,o,i)).send(new a({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),M=l(e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new _(`Token is expired. ${I}`,!1)},"validateTokenExpiry"),u=l((e,s,o=!1)=>{if(typeof s>"u")throw new _(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${I}`,!1)},"validateTokenKey"),{writeFile:oe}=B,re=l((e,s)=>oe(G(e),JSON.stringify(s,null,2)),"writeSSOTokenToFile"),U=new Map,te=l((e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let o=await A(e),i=x({profile:e.profile??s?.profile}),a=o[i];if(a){if(!a.sso_session)throw new _(`Profile '${i}' is missing required property 'sso_session'.`)}else throw new _(`Profile '${i}' could not be found in shared credentials file.`,!1);let n=a.sso_session,c=(await J(e))[n];if(!c)throw new _(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let t of["sso_start_url","sso_region"])if(!c[t])throw new _(`Sso session '${n}' is missing required property '${t}'.`,!1);c.sso_start_url;let w=c.sso_region,r;try{r=await v(n)}catch{throw new _(`The SSO session token associated with profile=${i} was not found or is invalid. ${I}`,!1)}u("accessToken",r.accessToken),u("expiresAt",r.expiresAt);let{accessToken:f,expiresAt:m}=r,p={token:f,expiration:new Date(m)};if(p.expiration.getTime()-Date.now()>3e5)return p;let k=U.get(n)??0;if(Date.now()-k<3e4)return M(p),p;u("clientId",r.clientId,!0),u("clientSecret",r.clientSecret,!0),u("refreshToken",r.refreshToken,!0);try{U.set(n,Date.now());let t=await se(r,w,e,s);u("accessToken",t.accessToken),u("expiresIn",t.expiresIn);let d=new Date(Date.now()+t.expiresIn*1e3);try{await re(n,{...r,accessToken:t.accessToken,expiresAt:d.toISOString(),refreshToken:t.refreshToken})}catch{}return{token:t.accessToken,expiration:d}}catch{return M(p),p}},"fromSso"),T=!1,H=l(async({ssoStartUrl:e,ssoSession:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:a,ssoClient:n,clientConfig:c,parentClientConfig:w,callerClientConfig:r,profile:f,filepath:m,configFilepath:p,ignoreCache:k,logger:t})=>{let d,S="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let h=await te({profile:f,filepath:m,configFilepath:p,ignoreCache:k,clientConfig:c,parentClientConfig:w,logger:t})({callerClientConfig:r});d={accessToken:h.token,expiresAt:new Date(h.expiration).toISOString()}}catch(h){throw new g(h.message,{tryNextLink:T,logger:t})}else try{d=await v(e)}catch{throw new g(`The SSO session associated with this profile is invalid. ${S}`,{tryNextLink:T,logger:t})}if(new Date(d.expiresAt).getTime()-Date.now()<=0)throw new g(`The SSO session associated with this profile has expired. ${S}`,{tryNextLink:T,logger:t});let{accessToken:y}=d,{SSOClient:V,GetRoleCredentialsCommand:W}=await import("./loadSso-E275HJXR.js"),Y=n||new V(Object.assign({},c??{},{logger:c?.logger??r?.logger??w?.logger,region:c?.region??i,userAgentAppId:c?.userAgentAppId??r?.userAgentAppId??w?.userAgentAppId})),N;try{N=await Y.send(new W({accountId:o,roleName:a,accessToken:y}))}catch(h){throw new g(h,{tryNextLink:T,logger:t})}let{roleCredentials:{accessKeyId:E,secretAccessKey:R,sessionToken:D,expiration:$,credentialScope:F,accountId:L}={}}=N;if(!E||!R||!D||!$)throw new g("SSO returns an invalid temporary credential.",{tryNextLink:T,logger:t});let O={accessKeyId:E,secretAccessKey:R,sessionToken:D,expiration:new Date($),...F&&{credentialScope:F},...L&&{accountId:L}};return s?C(O,"CREDENTIALS_SSO","s"):C(O,"CREDENTIALS_SSO_LEGACY","u"),O},"resolveSSOCredentials"),ne=l((e,s)=>{let{sso_start_url:o,sso_account_id:i,sso_region:a,sso_role_name:n}=e;if(!o||!i||!a||!n)throw new g(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
3
3
  Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e},"validateSsoProfile"),de=l((e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:o,ssoAccountId:i,ssoRegion:a,ssoRoleName:n,ssoSession:c}=e,{ssoClient:w}=e,r=x({profile:e.profile??s?.profile});if(!o&&!i&&!a&&!n&&!c){let f=(await A(e))[r];if(!f)throw new g(`Profile ${r} was not found.`,{logger:e.logger});if(!Z(f))throw new g(`Profile ${r} is not configured with SSO credentials.`,{logger:e.logger});if(f?.sso_session){let S=(await J(e))[f.sso_session],y=` configurations in profile ${r} and sso-session ${f.sso_session}`;if(a&&a!==S.sso_region)throw new g("Conflicting SSO region"+y,{tryNextLink:!1,logger:e.logger});if(o&&o!==S.sso_start_url)throw new g("Conflicting SSO start_url"+y,{tryNextLink:!1,logger:e.logger});f.sso_region=S.sso_region,f.sso_start_url=S.sso_start_url}let{sso_start_url:m,sso_account_id:p,sso_region:k,sso_role_name:t,sso_session:d}=ne(f,e.logger);return H({ssoStartUrl:m,ssoSession:d,ssoAccountId:p,ssoRegion:k,ssoRoleName:t,ssoClient:w,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:r,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else{if(!o||!i||!a||!n)throw new g('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});return H({ssoStartUrl:o,ssoSession:c,ssoAccountId:i,ssoRegion:a,ssoRoleName:n,ssoClient:w,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:r,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}},"fromSSO");export{de as fromSSO};
4
- //# sourceMappingURL=dist-es6-GJBWAT3F.js.map
4
+ //# sourceMappingURL=dist-es6-3LIOBPYN.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{a as c}from"./chunk-UC3X4RFE.js";import"./chunk-KFH7SXQF.js";import"./chunk-OBZVF2XZ.js";import{a as l}from"./chunk-NJKO6IPW.js";import{b as d}from"./chunk-AHIUOSMB.js";import{a}from"./chunk-WFJCOJII.js";import{readFileSync as p}from"node:fs";var N=a(e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:s,providerId:n,policyArns:E,policy:_,durationSeconds:S}=e,{roleAssumerWithWebIdentity:i}=e;if(!i){let{getDefaultRoleAssumerWithWebIdentity:m}=await import("./sts-7UNDUHY2.js");i=m({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return i({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:n,PolicyArns:E,Policy:_,DurationSeconds:S})},"fromWebToken"),g="AWS_WEB_IDENTITY_TOKEN_FILE",f="AWS_ROLE_ARN",I="AWS_ROLE_SESSION_NAME",b=a((e={})=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[g],r=e?.roleArn??process.env[f],s=e?.roleSessionName??process.env[I];if(!o||!r)throw new d("Web identity configuration not specified",{logger:e.logger});let n=await N({...e,webIdentityToken:c?.getTokenRecord?.()[o]??p(o,{encoding:"ascii"}),roleArn:r,roleSessionName:s})(t);return o===process.env[g]&&l(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),n},"fromTokenFile");export{b as fromTokenFile,N as fromWebToken};
3
- //# sourceMappingURL=dist-es7-V42RESE5.js.map
2
+ import{a as c}from"./chunk-UC3X4RFE.js";import"./chunk-KFH7SXQF.js";import"./chunk-OBZVF2XZ.js";import{a as l}from"./chunk-NJKO6IPW.js";import{b as d}from"./chunk-AHIUOSMB.js";import{a}from"./chunk-WFJCOJII.js";import{readFileSync as p}from"node:fs";var N=a(e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:s,providerId:n,policyArns:E,policy:_,durationSeconds:S}=e,{roleAssumerWithWebIdentity:i}=e;if(!i){let{getDefaultRoleAssumerWithWebIdentity:m}=await import("./sts-URI6AMGK.js");i=m({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return i({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:n,PolicyArns:E,Policy:_,DurationSeconds:S})},"fromWebToken"),g="AWS_WEB_IDENTITY_TOKEN_FILE",f="AWS_ROLE_ARN",I="AWS_ROLE_SESSION_NAME",b=a((e={})=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[g],r=e?.roleArn??process.env[f],s=e?.roleSessionName??process.env[I];if(!o||!r)throw new d("Web identity configuration not specified",{logger:e.logger});let n=await N({...e,webIdentityToken:c?.getTokenRecord?.()[o]??p(o,{encoding:"ascii"}),roleArn:r,roleSessionName:s})(t);return o===process.env[g]&&l(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),n},"fromTokenFile");export{b as fromTokenFile,N as fromWebToken};
3
+ //# sourceMappingURL=dist-es7-XTZQI2TF.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{l as e,n as r}from"./chunk-EDVCNAY4.js";import"./chunk-SGVNW5YS.js";import"./chunk-DPYCV7DC.js";import"./chunk-5LMY6JUI.js";import"./chunk-4B4T2UH4.js";import"./chunk-EPPCNHKZ.js";import"./chunk-W5YFYASF.js";import"./chunk-UJJESI6B.js";import"./chunk-3AWMNMNO.js";import"./chunk-5CIVNFOJ.js";import"./chunk-QVI2JPUZ.js";import"./chunk-MJOYXXCW.js";import"./chunk-BG6ZI4RE.js";import"./chunk-53BPHZUZ.js";import"./chunk-OS5FKECH.js";import"./chunk-QDCEVKAE.js";import"./chunk-3BGHO5XO.js";import"./chunk-OBZVF2XZ.js";import"./chunk-NJKO6IPW.js";import"./chunk-AHIUOSMB.js";import"./chunk-Q2IEUOHW.js";import"./chunk-SQWNF2DJ.js";import"./chunk-YGLOO2DN.js";import"./chunk-EOQRMBYM.js";import"./chunk-XKIT3LV2.js";import"./chunk-NFXTMZA7.js";import"./chunk-DYKW3K3W.js";import"./chunk-OOIAME7K.js";import"./chunk-QGEWUMO5.js";import"./chunk-MD2LEBUO.js";import"./chunk-6TVTN2TB.js";import"./chunk-DTOBRG36.js";import"./chunk-C6TRVSKL.js";import"./chunk-XFQVNJEJ.js";import"./chunk-WFJCOJII.js";export{r as EventStreamSerde,e as eventStreamSerdeProvider};
3
- //# sourceMappingURL=event-streams-JVKHUG3W.js.map
2
+ import{l as e,n as r}from"./chunk-CAZXUYI4.js";import"./chunk-FWQ74KMZ.js";import"./chunk-7TDI4YTA.js";import"./chunk-5LMY6JUI.js";import"./chunk-COYUJLBR.js";import"./chunk-CIVNMUP4.js";import"./chunk-KA3MJBXM.js";import"./chunk-KHGYICM3.js";import"./chunk-YT7GXW3T.js";import"./chunk-5CIVNFOJ.js";import"./chunk-7ORZDQKB.js";import"./chunk-I4S422PQ.js";import"./chunk-BG6ZI4RE.js";import"./chunk-53BPHZUZ.js";import"./chunk-OS5FKECH.js";import"./chunk-QDCEVKAE.js";import"./chunk-3BGHO5XO.js";import"./chunk-OBZVF2XZ.js";import"./chunk-NJKO6IPW.js";import"./chunk-AHIUOSMB.js";import"./chunk-Q2IEUOHW.js";import"./chunk-SQWNF2DJ.js";import"./chunk-RJLO3ZOK.js";import"./chunk-EOQRMBYM.js";import"./chunk-XKIT3LV2.js";import"./chunk-NFXTMZA7.js";import"./chunk-DYKW3K3W.js";import"./chunk-OOIAME7K.js";import"./chunk-QGEWUMO5.js";import"./chunk-MD2LEBUO.js";import"./chunk-6TVTN2TB.js";import"./chunk-DTOBRG36.js";import"./chunk-C6TRVSKL.js";import"./chunk-XFQVNJEJ.js";import"./chunk-WFJCOJII.js";export{r as EventStreamSerde,e as eventStreamSerdeProvider};
3
+ //# sourceMappingURL=event-streams-ICBTGIY7.js.map
@@ -1,3 +1,3 @@
1
1
  /* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
2
- import{b as u,c as d,d as s}from"./chunk-BWCPJTPJ.js";import{a as i,c,e as p,f as y,g as f}from"./chunk-Q2IEUOHW.js";import"./chunk-SQWNF2DJ.js";import"./chunk-YGLOO2DN.js";import"./chunk-EOQRMBYM.js";import"./chunk-XKIT3LV2.js";import"./chunk-NFXTMZA7.js";import"./chunk-DYKW3K3W.js";import{a as n}from"./chunk-WFJCOJII.js";import P from"node:process";var l="$$keepActivePing$$";function m(o,t){return(e,r)=>{if(e!=null&&typeof e=="object"&&l in e&&e[l]===!0){t?.enableLogs&&console.info(`Keep active ping: ${JSON.stringify(e)}`);return}return o(e,r)}}n(m,"keptActive");await s.init({env:w(P.env),read:d});function w(o){let t=[];for(let[e,r]of Object.entries(o))r!=null&&t.push([e,r]);return Object.fromEntries(t)}n(w,"definedEnv");var I=m(u(n(async function(t,e){let r=p(t);return c(t,e,async()=>{let a=await s.respond(r,{getClientAddress(){return r.headers.get("x-forwarded-for")??""}});return{statusCode:a.status,...y(a,i(t)?"v1":"v2"),...await f(a)}})},"respond")));export{I as handler};
2
+ import{b as u,c as d,d as s}from"./chunk-KTGJB7M3.js";import{a as i,c,e as p,f as y,g as f}from"./chunk-Q2IEUOHW.js";import"./chunk-SQWNF2DJ.js";import"./chunk-RJLO3ZOK.js";import"./chunk-EOQRMBYM.js";import"./chunk-XKIT3LV2.js";import"./chunk-NFXTMZA7.js";import"./chunk-DYKW3K3W.js";import{a as n}from"./chunk-WFJCOJII.js";import P from"node:process";var l="$$keepActivePing$$";function m(o,t){return(e,r)=>{if(e!=null&&typeof e=="object"&&l in e&&e[l]===!0){t?.enableLogs&&console.info(`Keep active ping: ${JSON.stringify(e)}`);return}return o(e,r)}}n(m,"keptActive");await s.init({env:w(P.env),read:d});function w(o){let t=[];for(let[e,r]of Object.entries(o))r!=null&&t.push([e,r]);return Object.fromEntries(t)}n(w,"definedEnv");var I=m(u(n(async function(t,e){let r=p(t);return c(t,e,async()=>{let a=await s.respond(r,{getClientAddress(){return r.headers.get("x-forwarded-for")??""}});return{statusCode:a.status,...y(a,i(t)?"v1":"v2"),...await f(a)}})},"respond")));export{I as handler};
3
3
  //# sourceMappingURL=handler.js.map