claude-code-best 1.3.4 → 1.3.6

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 (395) hide show
  1. package/README.md +4 -2
  2. package/dist/{chunk-mbywyc8h.js → chunk-03881djp.js} +11 -11
  3. package/dist/{chunk-pn0k5wak.js → chunk-03qpgz7e.js} +749 -23
  4. package/dist/{chunk-eqds35a8.js → chunk-04hdmsbx.js} +1 -1
  5. package/dist/{chunk-5g4nktjm.js → chunk-06zzah5k.js} +19 -20
  6. package/dist/{chunk-2j1t3hcw.js → chunk-0fnpkgd6.js} +8 -8
  7. package/dist/{chunk-h85mjbxd.js → chunk-0jcebzyj.js} +45 -46
  8. package/dist/{chunk-waar1mpa.js → chunk-0mf8c3kx.js} +2 -3
  9. package/dist/{chunk-rmx7dd2z.js → chunk-0z70mbgk.js} +45 -46
  10. package/dist/{chunk-mpekeaqp.js → chunk-12e5a806.js} +17 -18
  11. package/dist/{chunk-zwj9gdqj.js → chunk-13pvvkd3.js} +45 -46
  12. package/dist/{chunk-wm0hb3vy.js → chunk-194wmkgc.js} +46 -47
  13. package/dist/{chunk-zq8mhgbb.js → chunk-196500e9.js} +5 -5
  14. package/dist/{chunk-cz1adfmq.js → chunk-1fn2d8e6.js} +48 -49
  15. package/dist/chunk-1gvjejsj.js +334 -0
  16. package/dist/{chunk-vx640z3e.js → chunk-1mygjwf9.js} +45 -46
  17. package/dist/{chunk-3w1s1amj.js → chunk-1scf0v8s.js} +9 -9
  18. package/dist/{chunk-v7drmj3a.js → chunk-1y0e25vy.js} +1 -1
  19. package/dist/{chunk-2493n0r6.js → chunk-1ynhxc03.js} +5 -5
  20. package/dist/{chunk-w061rb6v.js → chunk-21r0t9p5.js} +73 -74
  21. package/dist/{chunk-5jn7tb8w.js → chunk-26zepstf.js} +5 -5
  22. package/dist/{chunk-g56c6b6r.js → chunk-274pv89a.js} +45 -46
  23. package/dist/{chunk-hgjn6jcc.js → chunk-2dsqf7sp.js} +1 -1
  24. package/dist/{chunk-32dg30qk.js → chunk-2fn6s9rq.js} +45 -46
  25. package/dist/{chunk-r7f2tww6.js → chunk-2jzsktxp.js} +45 -46
  26. package/dist/{chunk-dr3e0epq.js → chunk-2k9fbk1p.js} +18 -19
  27. package/dist/{chunk-ytt2z3my.js → chunk-2krazyfm.js} +46 -47
  28. package/dist/{chunk-ntd3kv2x.js → chunk-2qhfqgbj.js} +18 -19
  29. package/dist/{chunk-7d3ba1n4.js → chunk-2t5ve6ev.js} +1 -1
  30. package/dist/{chunk-tf71jcn7.js → chunk-2wvxqpfc.js} +10 -11
  31. package/dist/{chunk-493bfayq.js → chunk-2zzh0pds.js} +48 -49
  32. package/dist/{chunk-8sg9th04.js → chunk-33fsprrx.js} +5 -5
  33. package/dist/{chunk-9zqwfqja.js → chunk-347zaz9e.js} +2 -2
  34. package/dist/{chunk-ybh7j61y.js → chunk-35g2t0y0.js} +1 -1
  35. package/dist/{chunk-x2ej4p06.js → chunk-38tedxdq.js} +49 -50
  36. package/dist/{chunk-vxk5xq7a.js → chunk-39zy97qa.js} +1 -1
  37. package/dist/{chunk-2ag2wj35.js → chunk-3b0p0vrc.js} +57 -58
  38. package/dist/{chunk-1gek5y1c.js → chunk-3b9ar57s.js} +4 -5
  39. package/dist/{chunk-1c4s80b2.js → chunk-3caf4y23.js} +18 -19
  40. package/dist/{chunk-trv1sz38.js → chunk-3cvw39wv.js} +6 -7
  41. package/dist/{chunk-z6e5jp2w.js → chunk-3ev51j3h.js} +2 -4
  42. package/dist/{chunk-np8325ac.js → chunk-3fp4s54c.js} +5 -7
  43. package/dist/{chunk-s4012mt2.js → chunk-3fqxcp51.js} +8 -12
  44. package/dist/{chunk-wjxhh6g3.js → chunk-3h4pyb94.js} +4 -4
  45. package/dist/{chunk-aw7qc07n.js → chunk-3me1hah2.js} +45 -46
  46. package/dist/{chunk-s64e1bsh.js → chunk-3synjm2x.js} +2 -2
  47. package/dist/{chunk-b24bz3cf.js → chunk-3tbrhape.js} +3 -3
  48. package/dist/{chunk-cfvt77b3.js → chunk-42f9j6bp.js} +47 -48
  49. package/dist/{chunk-3mjv3k3k.js → chunk-4451b82w.js} +56 -57
  50. package/dist/{chunk-sa9a3ny0.js → chunk-4mtfrpdt.js} +45 -46
  51. package/dist/{chunk-7sgatxct.js → chunk-4qqswajh.js} +5 -5
  52. package/dist/{chunk-dghedezr.js → chunk-4xbmk1fe.js} +45 -46
  53. package/dist/chunk-4zkbp6fk.js +175 -0
  54. package/dist/{chunk-nmkyaj27.js → chunk-57vnbap8.js} +5 -5
  55. package/dist/{chunk-0tvdp8ty.js → chunk-5rezdbjk.js} +45 -46
  56. package/dist/{chunk-4tre5ddg.js → chunk-5wb5ym2h.js} +2 -2
  57. package/dist/{chunk-586a3eqf.js → chunk-5zbm7te6.js} +1 -1
  58. package/dist/{chunk-8wrcjsw2.js → chunk-6174c2qe.js} +17 -18
  59. package/dist/{chunk-8t1z3nne.js → chunk-61j8wh0j.js} +45 -46
  60. package/dist/{chunk-jpyn4ry7.js → chunk-61q7vfrc.js} +1 -1
  61. package/dist/{chunk-g25v3e4b.js → chunk-648z0z9m.js} +2 -2
  62. package/dist/{chunk-ffch3v3a.js → chunk-66s54sg3.js} +48 -49
  63. package/dist/{chunk-zwk68z4e.js → chunk-683cf5j7.js} +45 -46
  64. package/dist/{chunk-hms1mvpy.js → chunk-6a316dkg.js} +17 -17
  65. package/dist/{chunk-8vawdfrp.js → chunk-6c5zyga7.js} +3 -5
  66. package/dist/{chunk-jcqa6n0k.js → chunk-6e1xak8j.js} +5 -6
  67. package/dist/{chunk-vbs93gm2.js → chunk-6p2kydfj.js} +45 -46
  68. package/dist/{chunk-8jpxzesa.js → chunk-6ye6d9gw.js} +1 -1
  69. package/dist/{chunk-hrva2hz9.js → chunk-714yn4hd.js} +18 -18
  70. package/dist/{chunk-q47gtsy5.js → chunk-763jzvy7.js} +46 -47
  71. package/dist/{chunk-09rqypeh.js → chunk-777vk9pb.js} +14 -18
  72. package/dist/{chunk-pn3j4jeq.js → chunk-79y6s5n4.js} +4 -4
  73. package/dist/{chunk-3n3wcj02.js → chunk-7jsk6wen.js} +46 -47
  74. package/dist/{chunk-rtn3y8f8.js → chunk-7k3mv7cr.js} +18 -19
  75. package/dist/{chunk-zwa133ny.js → chunk-7nebst32.js} +2 -2
  76. package/dist/{chunk-7xw57a3v.js → chunk-7p3kar3b.js} +51 -52
  77. package/dist/{chunk-gmfz1e6f.js → chunk-7pfwfh7h.js} +46 -47
  78. package/dist/{chunk-zpjf2dn4.js → chunk-7qf1wt5n.js} +2 -2
  79. package/dist/{chunk-37qwc47p.js → chunk-7r2k7qes.js} +1 -1
  80. package/dist/{chunk-tag6ecp6.js → chunk-7whq2gjt.js} +45 -46
  81. package/dist/{chunk-xyf4xt40.js → chunk-7xnaj5zg.js} +62 -63
  82. package/dist/{chunk-d6vexw90.js → chunk-7xxqf2r6.js} +1 -1
  83. package/dist/{chunk-dc83q1dm.js → chunk-81dq52pk.js} +2 -2
  84. package/dist/{chunk-71003wt4.js → chunk-8200svcn.js} +2 -2
  85. package/dist/{chunk-9n371h8z.js → chunk-84tfftm0.js} +3 -3
  86. package/dist/{chunk-shhpbfww.js → chunk-870vafdb.js} +17 -18
  87. package/dist/{chunk-zm08g2mt.js → chunk-89be833d.js} +47 -48
  88. package/dist/{chunk-mbv3f2vm.js → chunk-8q4yg5pk.js} +4 -4
  89. package/dist/{chunk-4n7wmw0x.js → chunk-8vkefxtt.js} +45 -46
  90. package/dist/{chunk-gpzp9z8k.js → chunk-8wzwqd1z.js} +46 -47
  91. package/dist/{chunk-m98kq60f.js → chunk-8xmqgp50.js} +1 -1
  92. package/dist/{chunk-6btk4gvz.js → chunk-9073kfry.js} +18 -19
  93. package/dist/{chunk-3zhesf91.js → chunk-90tb6xj7.js} +48 -49
  94. package/dist/{chunk-n27af6mx.js → chunk-92v75fwp.js} +7 -7
  95. package/dist/{chunk-cj2bae7p.js → chunk-95jqp7w7.js} +46 -47
  96. package/dist/{chunk-kttzv83p.js → chunk-963ysvck.js} +45 -46
  97. package/dist/{chunk-4h7mr0e2.js → chunk-979mvrgv.js} +17 -18
  98. package/dist/{chunk-ndewdd8x.js → chunk-995f4htk.js} +45 -46
  99. package/dist/{chunk-374td42e.js → chunk-9dgec475.js} +5 -5
  100. package/dist/{chunk-2mnmad00.js → chunk-9hcw3b4h.js} +2 -2
  101. package/dist/{chunk-13mhj6sg.js → chunk-9kgh44wk.js} +64 -65
  102. package/dist/{chunk-ng8q29em.js → chunk-9msn8xwq.js} +4 -5
  103. package/dist/{chunk-vjrke1x9.js → chunk-9nm5sbkf.js} +23 -23
  104. package/dist/{chunk-rf1twb22.js → chunk-9vshpe8q.js} +54 -55
  105. package/dist/{chunk-b4tpr60m.js → chunk-9wz3jvbh.js} +23 -24
  106. package/dist/{chunk-rf8yj47v.js → chunk-9zyfkrwt.js} +14 -14
  107. package/dist/{chunk-15t76at8.js → chunk-a0yw6a1m.js} +17 -18
  108. package/dist/{chunk-hc685hct.js → chunk-a1pm2zwv.js} +47 -48
  109. package/dist/{chunk-tqdxpcqt.js → chunk-a4c4m0nx.js} +1757 -42
  110. package/dist/{chunk-vrabm9yw.js → chunk-a6hvbf61.js} +17 -18
  111. package/dist/{chunk-4vyrbwdh.js → chunk-a6s9h1qh.js} +2 -2
  112. package/dist/{chunk-3j0q7w8y.js → chunk-a75g97ek.js} +18 -19
  113. package/dist/{chunk-2wvfy0hg.js → chunk-ag255pqj.js} +45 -46
  114. package/dist/{chunk-zvcv5g57.js → chunk-akc4jb4z.js} +1 -1
  115. package/dist/{chunk-pv6amr31.js → chunk-ardzdtan.js} +1 -1
  116. package/dist/{chunk-pymwmshc.js → chunk-asfhkynx.js} +4 -4
  117. package/dist/{chunk-0k1bnmxp.js → chunk-b4hkf17a.js} +1 -1
  118. package/dist/{chunk-fhs0b24h.js → chunk-b7e8n2r7.js} +1 -1
  119. package/dist/{chunk-zfj3frys.js → chunk-bem4prar.js} +48 -49
  120. package/dist/{chunk-fn510gqw.js → chunk-brnc96x6.js} +2 -3
  121. package/dist/{chunk-j04z48rw.js → chunk-bt64sq5y.js} +3 -3
  122. package/dist/{chunk-ptzrvjve.js → chunk-byrh00bq.js} +8 -8
  123. package/dist/{chunk-2xezy8pc.js → chunk-c209ascy.js} +9 -10
  124. package/dist/{chunk-gbd64n0k.js → chunk-c358prbg.js} +231 -4003
  125. package/dist/{chunk-tzpr2qnx.js → chunk-c3a6ss16.js} +4 -4
  126. package/dist/{chunk-edemd80h.js → chunk-c9js3490.js} +4 -4
  127. package/dist/{chunk-pjqnej9c.js → chunk-cd99ankh.js} +18 -19
  128. package/dist/{chunk-8y3eszv7.js → chunk-cj8m3h8r.js} +2 -2
  129. package/dist/chunk-cmdvq8tr.js +4265 -0
  130. package/dist/{chunk-a5v16z9p.js → chunk-ctbkh6m5.js} +46 -47
  131. package/dist/{chunk-ghbqgn5f.js → chunk-cy7hbg8h.js} +11 -12
  132. package/dist/{chunk-qyd2shwy.js → chunk-d01wa055.js} +3 -3
  133. package/dist/{chunk-znehavdm.js → chunk-d2vb6m9e.js} +2 -2
  134. package/dist/{chunk-vw8ptdz0.js → chunk-d5qv71vm.js} +8 -12
  135. package/dist/{chunk-1za5ej4d.js → chunk-d7mjq8wa.js} +101 -102
  136. package/dist/{chunk-x9a9as9h.js → chunk-d90bhmt1.js} +15 -18
  137. package/dist/{chunk-exht1k7p.js → chunk-dbv7vcrz.js} +45 -46
  138. package/dist/{chunk-61edjmf6.js → chunk-dchgtage.js} +2 -2
  139. package/dist/{chunk-66f0ej9k.js → chunk-de1831as.js} +5 -5
  140. package/dist/{chunk-j6pmdb8f.js → chunk-dh6khzjj.js} +2 -2
  141. package/dist/{chunk-0t913kzh.js → chunk-djydtvkr.js} +14 -20
  142. package/dist/{chunk-ntr86en5.js → chunk-dm2gyqck.js} +45 -46
  143. package/dist/{chunk-ygbnw2bs.js → chunk-dm2wnjrr.js} +18 -206
  144. package/dist/{chunk-n8wzs06g.js → chunk-dnqrmqfa.js} +45 -46
  145. package/dist/{chunk-gq2cn3gp.js → chunk-dqrmn537.js} +4 -4
  146. package/dist/{chunk-35ybeyqz.js → chunk-e0jj5paw.js} +45 -46
  147. package/dist/{chunk-f60fbsr6.js → chunk-e1hqpkj1.js} +48 -49
  148. package/dist/{chunk-vc2r07bf.js → chunk-e1hz6df1.js} +3 -3
  149. package/dist/{chunk-ncmygxyq.js → chunk-e3kwey2b.js} +48 -49
  150. package/dist/{chunk-rthe9zg7.js → chunk-e4518h45.js} +2 -2
  151. package/dist/{chunk-asf6q6d8.js → chunk-ed8b4mw3.js} +7 -7
  152. package/dist/{chunk-bkty19wy.js → chunk-eef1npre.js} +3 -4
  153. package/dist/{chunk-rhwz80w4.js → chunk-ej1wwrcw.js} +531 -311
  154. package/dist/{chunk-8124vgve.js → chunk-ejrvwn8n.js} +45 -46
  155. package/dist/{chunk-pb2nc7r0.js → chunk-ep17krqe.js} +31 -5
  156. package/dist/{chunk-z10b55s8.js → chunk-epkw6jp6.js} +7 -7
  157. package/dist/{chunk-cx57p98d.js → chunk-eqn3qmfz.js} +45 -46
  158. package/dist/{chunk-kbqfjsaf.js → chunk-eqvsjpvm.js} +46 -47
  159. package/dist/{chunk-a94tfcsn.js → chunk-etbqf6ty.js} +51 -52
  160. package/dist/{chunk-smp8rsah.js → chunk-etv5netv.js} +4 -4
  161. package/dist/{chunk-v31nvtrf.js → chunk-evbemh4j.js} +48 -49
  162. package/dist/{chunk-m7sgsdqk.js → chunk-ewcq3dcx.js} +7 -7
  163. package/dist/{chunk-4f6h68mp.js → chunk-ez3c99v0.js} +20 -21
  164. package/dist/{chunk-anz010ze.js → chunk-f39ftn0d.js} +52 -53
  165. package/dist/{chunk-y3rge05f.js → chunk-f9my4m74.js} +46 -47
  166. package/dist/{chunk-g0ezcck5.js → chunk-fcwx5cbb.js} +4 -4
  167. package/dist/{chunk-bhstw51r.js → chunk-fdc4mbdf.js} +1 -1
  168. package/dist/{chunk-58xj53w6.js → chunk-ff5z5bf0.js} +6 -6
  169. package/dist/{chunk-2fv8vjbj.js → chunk-fg46hc6d.js} +14 -20
  170. package/dist/{chunk-h5xhbctz.js → chunk-fj7x7q9f.js} +46 -47
  171. package/dist/{chunk-nn8nkawn.js → chunk-fjne3x6c.js} +9 -10
  172. package/dist/{chunk-5tx8e772.js → chunk-fqpabm91.js} +1 -1
  173. package/dist/{chunk-mdvqw8nh.js → chunk-fxqp3yt4.js} +6 -7
  174. package/dist/{chunk-tgj54psr.js → chunk-fy6tp8zj.js} +2 -2
  175. package/dist/{chunk-fw64v27c.js → chunk-fz0ch109.js} +3 -3
  176. package/dist/{chunk-7tehvqxv.js → chunk-g04kk7dj.js} +46 -47
  177. package/dist/{chunk-g9x047b0.js → chunk-g0ab48tb.js} +18 -19
  178. package/dist/{chunk-wp3sx71x.js → chunk-g4fc7hyp.js} +18 -19
  179. package/dist/{chunk-j2cbcyf7.js → chunk-g649rtg8.js} +4 -6
  180. package/dist/{chunk-zwz7168z.js → chunk-gcxez66d.js} +7 -7
  181. package/dist/{chunk-tpe95kmw.js → chunk-gd0gptts.js} +45 -46
  182. package/dist/{chunk-tsdqd747.js → chunk-gfex5hb6.js} +10 -4
  183. package/dist/{chunk-58ka2n0w.js → chunk-gnq6fd5g.js} +3 -3
  184. package/dist/{chunk-4p90jgvz.js → chunk-gv4dsg6q.js} +54 -55
  185. package/dist/{chunk-grw5wnd3.js → chunk-h48af73s.js} +46 -47
  186. package/dist/{chunk-6hn0d7dq.js → chunk-h6v79pb5.js} +60378 -61906
  187. package/dist/{chunk-597p7yt8.js → chunk-hd98he8z.js} +21 -22
  188. package/dist/{chunk-fbr868n1.js → chunk-hda58kjk.js} +4 -4
  189. package/dist/{chunk-3jtdg17c.js → chunk-hnx0eg6x.js} +3 -3
  190. package/dist/{chunk-nhjhmgtk.js → chunk-hs7qq18b.js} +52 -54
  191. package/dist/{chunk-bhbgz10h.js → chunk-hw1qqgzj.js} +50 -51
  192. package/dist/{chunk-rxx0k0mm.js → chunk-hw4w8f8x.js} +9 -9
  193. package/dist/{chunk-cekte71q.js → chunk-hwby3r4g.js} +3 -3
  194. package/dist/{chunk-z1hsgc00.js → chunk-j06y02aw.js} +3 -3
  195. package/dist/{chunk-g4fwe1v8.js → chunk-j16rp8y4.js} +1 -1
  196. package/dist/{chunk-9rxb4dzq.js → chunk-j1ftb6pr.js} +17 -18
  197. package/dist/{chunk-0fcq7r22.js → chunk-j1r1mywp.js} +60 -318
  198. package/dist/{chunk-1h66xwg2.js → chunk-j6493m6s.js} +4 -4
  199. package/dist/{chunk-ebx4j5r5.js → chunk-j6k3zjb5.js} +5 -7
  200. package/dist/{chunk-8kac9c2z.js → chunk-jbhhp82d.js} +46 -47
  201. package/dist/{chunk-1r7d9q56.js → chunk-jbts6gcv.js} +17 -18
  202. package/dist/{chunk-by6q9nyh.js → chunk-jfhmk1c6.js} +14 -20
  203. package/dist/{chunk-cs8kgd05.js → chunk-jg85npcz.js} +1 -1
  204. package/dist/{chunk-dep99fb9.js → chunk-jj2c3dtz.js} +4 -4
  205. package/dist/{chunk-2jw74dj2.js → chunk-jr10vd79.js} +45 -46
  206. package/dist/{chunk-zrpc9tma.js → chunk-k25d0zv6.js} +3 -3
  207. package/dist/{chunk-ytefg81v.js → chunk-k2m40brd.js} +46 -47
  208. package/dist/{chunk-vymakknp.js → chunk-k3yxwy95.js} +3 -3
  209. package/dist/{chunk-1tz5v73q.js → chunk-k73mekxt.js} +45 -46
  210. package/dist/chunk-k97ze3a8.js +524 -0
  211. package/dist/{chunk-748c2115.js → chunk-kbzh54rh.js} +1 -1
  212. package/dist/{chunk-mn5xdva3.js → chunk-kd2g8s3v.js} +45 -46
  213. package/dist/{chunk-aawxx2nq.js → chunk-kkq06r33.js} +47 -48
  214. package/dist/{chunk-5qxgyby3.js → chunk-kmgp6prw.js} +613 -3
  215. package/dist/{chunk-69prctm2.js → chunk-kmnz4ygv.js} +2 -2
  216. package/dist/{chunk-cmfz871h.js → chunk-knqbt146.js} +1 -1
  217. package/dist/{chunk-1h2gg57j.js → chunk-knqgpzjb.js} +1 -1
  218. package/dist/{chunk-10j8vfv6.js → chunk-kw6sq28k.js} +78 -80
  219. package/dist/{chunk-6trshzy4.js → chunk-m1xjfwvq.js} +45 -46
  220. package/dist/{chunk-7fkrv6nn.js → chunk-m6ee4m2f.js} +45 -46
  221. package/dist/{chunk-5ycqyqbj.js → chunk-m8v1x99r.js} +2 -2
  222. package/dist/{chunk-153vnegp.js → chunk-m9g44vvc.js} +7 -7
  223. package/dist/{chunk-1cg8ger2.js → chunk-mayfcyq2.js} +6 -6
  224. package/dist/{chunk-67kbf9d2.js → chunk-mbetxrea.js} +46 -47
  225. package/dist/{chunk-negd1pnp.js → chunk-mcmh43pn.js} +48 -49
  226. package/dist/{chunk-6j81ywrw.js → chunk-mh6e2xje.js} +24 -25
  227. package/dist/{chunk-73q37kvx.js → chunk-mmcr6z1m.js} +5 -5
  228. package/dist/{chunk-4mt318vn.js → chunk-mq37sf2q.js} +45 -46
  229. package/dist/{chunk-fmq83t7h.js → chunk-n1pa72ns.js} +2 -2
  230. package/dist/{chunk-555tp6de.js → chunk-n3grbsgp.js} +51 -52
  231. package/dist/{chunk-98725sax.js → chunk-n562n1g9.js} +4 -4
  232. package/dist/{chunk-8gwh0zz4.js → chunk-n8whv674.js} +7 -8
  233. package/dist/{chunk-1ha2zvka.js → chunk-namrjc11.js} +2 -2
  234. package/dist/{chunk-sjc4ghtm.js → chunk-nhpkz83c.js} +50 -51
  235. package/dist/{chunk-m6x55e6s.js → chunk-nkvkmxw4.js} +2 -2
  236. package/dist/{chunk-p3ypmg5h.js → chunk-nsh75cdk.js} +19 -20
  237. package/dist/{chunk-bagztcfd.js → chunk-p4ebkyd1.js} +15 -15
  238. package/dist/{chunk-vwdcbhtm.js → chunk-p80rbxhh.js} +4 -4
  239. package/dist/{chunk-1xnv5gfy.js → chunk-p8vf12kz.js} +45 -46
  240. package/dist/{chunk-qhw7kwem.js → chunk-pe3t1k22.js} +54 -55
  241. package/dist/{chunk-c729rmzs.js → chunk-pedmqmrf.js} +6 -6
  242. package/dist/{chunk-4sgspsr0.js → chunk-pj4p53ve.js} +45 -46
  243. package/dist/{chunk-122wp3n9.js → chunk-prgsmrmy.js} +1 -1
  244. package/dist/{chunk-940b2dnc.js → chunk-psz76514.js} +1 -1
  245. package/dist/{chunk-n39z33pk.js → chunk-pwxgff26.js} +5 -5
  246. package/dist/{chunk-xer6484t.js → chunk-q0exa8dt.js} +47 -48
  247. package/dist/{chunk-j95j6wz8.js → chunk-q27bsq0y.js} +1 -1
  248. package/dist/{chunk-vf02apc8.js → chunk-q2q31ng9.js} +18 -19
  249. package/dist/{chunk-5d0mvxp9.js → chunk-q5v3yazb.js} +3 -3
  250. package/dist/{chunk-9x73cy0q.js → chunk-q6nvm3r5.js} +46 -47
  251. package/dist/{chunk-akjm94cc.js → chunk-q76tj8p6.js} +1 -1
  252. package/dist/{chunk-9kqtdah4.js → chunk-qwj4n799.js} +1 -1
  253. package/dist/{chunk-mwqy26zz.js → chunk-qz32t082.js} +1 -1
  254. package/dist/{chunk-8m35cg3r.js → chunk-r1pxpxxk.js} +5 -5
  255. package/dist/{chunk-hb4rkc7j.js → chunk-r26enj81.js} +3 -3
  256. package/dist/{chunk-c732psra.js → chunk-r6pe7y6z.js} +6 -6
  257. package/dist/{chunk-zatd0y92.js → chunk-r8m19xnp.js} +4 -5
  258. package/dist/{chunk-1hxvcg26.js → chunk-r9cy8b69.js} +45 -46
  259. package/dist/{chunk-ts2p6bv1.js → chunk-r9e0q1sn.js} +1 -1
  260. package/dist/{chunk-56d0vx53.js → chunk-rb67t4fq.js} +28 -29
  261. package/dist/{chunk-bgtwdvvd.js → chunk-rb79txq9.js} +3 -3
  262. package/dist/{chunk-48be0jbb.js → chunk-rbkhemh9.js} +14 -20
  263. package/dist/{chunk-czay2zkv.js → chunk-rd3w1pnm.js} +18 -19
  264. package/dist/{chunk-n93jyav6.js → chunk-rjgn3yzv.js} +10 -11
  265. package/dist/{chunk-h7rzqh2d.js → chunk-rpm043xg.js} +7 -7
  266. package/dist/{chunk-2qest09s.js → chunk-rwyc5eh7.js} +46 -47
  267. package/dist/{chunk-0n3jpe9y.js → chunk-rzgj07hb.js} +46 -47
  268. package/dist/{chunk-rx9q2qs6.js → chunk-s26mv9yh.js} +9 -10
  269. package/dist/{chunk-xqgfgh2f.js → chunk-s337frnp.js} +21 -22
  270. package/dist/{chunk-mwgm971p.js → chunk-s3gzpm93.js} +1 -1
  271. package/dist/{chunk-9ene41cb.js → chunk-s5yykd80.js} +9 -9
  272. package/dist/{chunk-v3mhmw2r.js → chunk-s6xaezgh.js} +5 -5
  273. package/dist/{chunk-s38qgqfs.js → chunk-s9nr589x.js} +5 -5
  274. package/dist/{chunk-gsgz08fk.js → chunk-sbafpprr.js} +46 -47
  275. package/dist/{chunk-ra68k7gk.js → chunk-sj7m6hsp.js} +1 -1
  276. package/dist/{chunk-q0fw6gv4.js → chunk-sk1z4m1n.js} +3 -3
  277. package/dist/{chunk-gca8c5w2.js → chunk-snpjjn5q.js} +2 -2
  278. package/dist/{chunk-x9avq620.js → chunk-sqzmp660.js} +5 -5
  279. package/dist/{chunk-vnw84e7x.js → chunk-strvbymz.js} +14 -20
  280. package/dist/{chunk-4gttvqbf.js → chunk-svb53yk3.js} +46 -47
  281. package/dist/{chunk-x6faa621.js → chunk-sxceea76.js} +3 -3
  282. package/dist/{chunk-0kh2f6kh.js → chunk-t0b0bas5.js} +3 -3
  283. package/dist/{chunk-y8w54a83.js → chunk-t6q0r0gs.js} +5 -5
  284. package/dist/{chunk-b5q6tmh8.js → chunk-t7a8ch9m.js} +45 -46
  285. package/dist/{chunk-vhj00rp2.js → chunk-t7z61mwv.js} +46 -47
  286. package/dist/{chunk-3rn9pt15.js → chunk-tbm211vs.js} +9 -9
  287. package/dist/{chunk-2bkgkabk.js → chunk-tcgzwpm2.js} +46 -47
  288. package/dist/{chunk-wtwv047v.js → chunk-tj6kayqs.js} +45 -46
  289. package/dist/{chunk-7mpdfrdm.js → chunk-tjbjxrqz.js} +7 -8
  290. package/dist/{chunk-ej62hf21.js → chunk-tjwcr6x0.js} +45 -46
  291. package/dist/{chunk-mxpcw1zm.js → chunk-tnhf35ky.js} +46 -47
  292. package/dist/{chunk-dgy3znwx.js → chunk-tpgs71gk.js} +5 -5
  293. package/dist/{chunk-04jfckn0.js → chunk-ttqs2rma.js} +45 -46
  294. package/dist/{chunk-zs36erzy.js → chunk-ttswf1a8.js} +19 -20
  295. package/dist/{chunk-h33aaf50.js → chunk-txeekahj.js} +3 -3
  296. package/dist/{chunk-qn7589n3.js → chunk-ty49mrty.js} +135 -134
  297. package/dist/{chunk-9rtywfhp.js → chunk-v1chtgnf.js} +1 -1
  298. package/dist/{chunk-9gtd4322.js → chunk-v4bx30kd.js} +45 -46
  299. package/dist/{chunk-dd1h2gf8.js → chunk-v4nrk2f9.js} +9 -10
  300. package/dist/{chunk-m3f1ze45.js → chunk-v6maw2x3.js} +46 -47
  301. package/dist/{chunk-72cx9htw.js → chunk-veeeke8r.js} +19 -20
  302. package/dist/{chunk-518qxj3g.js → chunk-vhggszd9.js} +2 -2
  303. package/dist/{chunk-3nmhzccb.js → chunk-vpp13z80.js} +2 -2
  304. package/dist/{chunk-f3hrc1nw.js → chunk-vrbt94t8.js} +45 -46
  305. package/dist/{chunk-2pagrshx.js → chunk-vs95kmdc.js} +45 -46
  306. package/dist/{chunk-pwqtyfqs.js → chunk-vsfqfbsh.js} +1 -1
  307. package/dist/{chunk-7g15xzdv.js → chunk-vsrejr6p.js} +56 -57
  308. package/dist/{chunk-j0n3zdda.js → chunk-vyejsevp.js} +8 -8
  309. package/dist/{chunk-rbm8cpmb.js → chunk-vyty9qyf.js} +55 -56
  310. package/dist/{chunk-v6x8j5t4.js → chunk-w3sv9y41.js} +4 -4
  311. package/dist/{chunk-8gxctg7k.js → chunk-w43ks9ey.js} +53 -54
  312. package/dist/{chunk-2gcmzgtb.js → chunk-w94epkj0.js} +6 -6
  313. package/dist/{chunk-j64ga6ta.js → chunk-whssn5y4.js} +304 -272
  314. package/dist/{chunk-a9jhnc53.js → chunk-wjhhetv4.js} +15 -21
  315. package/dist/{chunk-h13g15kb.js → chunk-wmbpegg3.js} +1 -1
  316. package/dist/{chunk-cdz1nacq.js → chunk-wnff3sck.js} +45 -46
  317. package/dist/{chunk-f7hcqtdv.js → chunk-wp6axm3b.js} +45 -46
  318. package/dist/{chunk-4n2e1n3b.js → chunk-wqmza60n.js} +2 -2
  319. package/dist/{chunk-5m7rf118.js → chunk-wqx2ybqh.js} +14 -14
  320. package/dist/{chunk-3mvxzff9.js → chunk-wrxzr8y1.js} +59 -60
  321. package/dist/{chunk-xff6jfpd.js → chunk-x1afcacf.js} +3 -3
  322. package/dist/{chunk-04569a6a.js → chunk-x3nshkcr.js} +5 -5
  323. package/dist/{chunk-84rdx991.js → chunk-x4t0n8t3.js} +5 -6
  324. package/dist/{chunk-12519p65.js → chunk-xaw4scep.js} +2 -2
  325. package/dist/{chunk-3dd53fxb.js → chunk-xce2xjv1.js} +45 -46
  326. package/dist/{chunk-bjzhfktg.js → chunk-xfe2m04z.js} +1 -1
  327. package/dist/{chunk-hvav6tb9.js → chunk-xfe479s0.js} +46 -47
  328. package/dist/{chunk-87zb3jkk.js → chunk-xkfzn8zv.js} +19 -19
  329. package/dist/{chunk-w7tszf3q.js → chunk-xqch8m5f.js} +7 -7
  330. package/dist/{chunk-aq0q2wy0.js → chunk-xspp3626.js} +4 -4
  331. package/dist/{chunk-ktsgddtb.js → chunk-xzh7ae0a.js} +54 -55
  332. package/dist/{chunk-1sg2k4mx.js → chunk-y3jmpqat.js} +518 -518
  333. package/dist/{chunk-avtcf910.js → chunk-y5x8wqe5.js} +1 -1
  334. package/dist/{chunk-mnyamr5a.js → chunk-y7sdst27.js} +51 -52
  335. package/dist/{chunk-b0zhv56m.js → chunk-yb4zstfq.js} +45 -46
  336. package/dist/{chunk-2n45kpbz.js → chunk-yhg6hhw7.js} +5 -5
  337. package/dist/{chunk-2jsngfwf.js → chunk-yk15ya1h.js} +7 -7
  338. package/dist/{chunk-727svvjy.js → chunk-ys51gfy8.js} +18 -19
  339. package/dist/{chunk-vcsgx8z0.js → chunk-yy3dj90t.js} +1 -1
  340. package/dist/{chunk-7739pg2c.js → chunk-z0csm2zq.js} +11 -1
  341. package/dist/{chunk-d1ya0j1j.js → chunk-z3vynq90.js} +48 -49
  342. package/dist/{chunk-dxcr07z5.js → chunk-ze6zvkg6.js} +4 -4
  343. package/dist/{chunk-0s96vdas.js → chunk-zmdg1zhh.js} +18 -19
  344. package/dist/{chunk-acrrtgr0.js → chunk-znpx8t4w.js} +18 -19
  345. package/dist/{chunk-ac04h4a1.js → chunk-zsssgqjr.js} +46 -47
  346. package/dist/{chunk-f1r621w6.js → chunk-zx084xfr.js} +45 -46
  347. package/dist/cli-node.js +9 -1
  348. package/dist/cli.js +11 -11
  349. package/package.json +3 -3
  350. package/dist/chunk-0rtjmfky.js +0 -1095
  351. package/dist/chunk-1hjgrwd4.js +0 -910
  352. package/dist/chunk-27xc1csx.js +0 -104
  353. package/dist/chunk-30rst83v.js +0 -168
  354. package/dist/chunk-33t0pjb0.js +0 -864
  355. package/dist/chunk-3enkzjbw.js +0 -3966
  356. package/dist/chunk-3h8a89gy.js +0 -46
  357. package/dist/chunk-4ebqa6nk.js +0 -659
  358. package/dist/chunk-4g3v8y12.js +0 -23
  359. package/dist/chunk-8f6raa6q.js +0 -615
  360. package/dist/chunk-a03dt27n.js +0 -782
  361. package/dist/chunk-a9g4h96v.js +0 -16
  362. package/dist/chunk-a9vdeb6y.js +0 -258
  363. package/dist/chunk-b0bk6bxs.js +0 -742
  364. package/dist/chunk-b4wg70y1.js +0 -54
  365. package/dist/chunk-b5s5rqpw.js +0 -208
  366. package/dist/chunk-btnvjcc5.js +0 -15
  367. package/dist/chunk-cjy1qthp.js +0 -27
  368. package/dist/chunk-cs6c9gbk.js +0 -1172
  369. package/dist/chunk-enhtm7h3.js +0 -1731
  370. package/dist/chunk-g54dwtcr.js +0 -718
  371. package/dist/chunk-h0qngp9w.js +0 -157
  372. package/dist/chunk-hasadm64.js +0 -412
  373. package/dist/chunk-hk9xz7gk.js +0 -118
  374. package/dist/chunk-j2k4p94p.js +0 -55
  375. package/dist/chunk-j33nd5jb.js +0 -176
  376. package/dist/chunk-jzmz18nn.js +0 -65
  377. package/dist/chunk-k1ggxjtw.js +0 -5241
  378. package/dist/chunk-kxqjncxw.js +0 -35
  379. package/dist/chunk-n0qaeaa5.js +0 -256
  380. package/dist/chunk-n4ssv9yn.js +0 -40
  381. package/dist/chunk-nbxr4cfd.js +0 -880
  382. package/dist/chunk-pg8sjz45.js +0 -81
  383. package/dist/chunk-q25bjaev.js +0 -15
  384. package/dist/chunk-qpydzzk0.js +0 -182
  385. package/dist/chunk-r6h4zwjj.js +0 -36
  386. package/dist/chunk-rvh4gff0.js +0 -542
  387. package/dist/chunk-rxcf1qnf.js +0 -173
  388. package/dist/chunk-tb1es4q0.js +0 -220
  389. package/dist/chunk-th1cykx3.js +0 -494
  390. package/dist/chunk-tqzsn5bq.js +0 -24
  391. package/dist/chunk-ttk5dzz8.js +0 -25
  392. package/dist/chunk-wbwg8jz1.js +0 -607
  393. package/dist/chunk-xsq9ae7x.js +0 -90
  394. package/dist/chunk-yya2f05b.js +0 -17
  395. package/dist/chunk-ze6h1ch1.js +0 -21
@@ -1,33 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  require_dist_cjs as require_dist_cjs13,
4
- require_dist_cjs1 as require_dist_cjs15
5
- } from "./chunk-pb2nc7r0.js";
6
- import {
7
- require_dist_cjs1 as require_dist_cjs16,
8
- require_fxp,
9
- require_invoke_store
10
- } from "./chunk-enhtm7h3.js";
11
- import {
12
- require_dist_cjs as require_dist_cjs14
13
- } from "./chunk-kxqjncxw.js";
4
+ require_dist_cjs1 as require_dist_cjs14,
5
+ require_dist_cjs2 as require_dist_cjs15
6
+ } from "./chunk-ep17krqe.js";
14
7
  import {
15
8
  require_dist_cjs as require_dist_cjs11
16
- } from "./chunk-avtcf910.js";
9
+ } from "./chunk-y5x8wqe5.js";
17
10
  import {
18
11
  require_dist_cjs as require_dist_cjs12
19
- } from "./chunk-j95j6wz8.js";
12
+ } from "./chunk-q27bsq0y.js";
20
13
  import {
21
14
  require_dist_cjs as require_dist_cjs6,
15
+ require_dist_cjs1 as require_dist_cjs7,
16
+ require_dist_cjs2 as require_dist_cjs10,
22
17
  require_endpoints,
23
18
  require_protocols,
24
19
  require_schema,
25
20
  require_serde
26
- } from "./chunk-pn0k5wak.js";
27
- import {
28
- require_dist_cjs as require_dist_cjs7,
29
- require_dist_cjs1 as require_dist_cjs10
30
- } from "./chunk-b0bk6bxs.js";
21
+ } from "./chunk-03qpgz7e.js";
31
22
  import {
32
23
  require_client
33
24
  } from "./chunk-psmfpddh.js";
@@ -56,7 +47,7 @@ import {
56
47
  } from "./chunk-qp2qdcda.js";
57
48
 
58
49
  // node_modules/.bun/@aws-sdk+middleware-host-header@3.972.9/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
59
- var require_dist_cjs17 = __commonJS((exports) => {
50
+ var require_dist_cjs16 = __commonJS((exports) => {
60
51
  var protocolHttp = require_dist_cjs();
61
52
  function resolveHostHeaderConfig(input) {
62
53
  return input;
@@ -96,7 +87,7 @@ var require_dist_cjs17 = __commonJS((exports) => {
96
87
  });
97
88
 
98
89
  // node_modules/.bun/@aws-sdk+middleware-logger@3.972.9/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
99
- var require_dist_cjs18 = __commonJS((exports) => {
90
+ var require_dist_cjs17 = __commonJS((exports) => {
100
91
  var loggerMiddleware = () => (next, context) => async (args) => {
101
92
  try {
102
93
  const response = await next(args);
@@ -143,6 +134,123 @@ var require_dist_cjs18 = __commonJS((exports) => {
143
134
  exports.loggerMiddlewareOptions = loggerMiddlewareOptions;
144
135
  });
145
136
 
137
+ // node_modules/.bun/@aws+lambda-invoke-store@0.2.4/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js
138
+ var require_invoke_store = __commonJS((exports) => {
139
+ var PROTECTED_KEYS = {
140
+ REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
141
+ X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
142
+ TENANT_ID: Symbol.for("_AWS_LAMBDA_TENANT_ID")
143
+ };
144
+ var NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? "");
145
+ if (!NO_GLOBAL_AWS_LAMBDA) {
146
+ globalThis.awslambda = globalThis.awslambda || {};
147
+ }
148
+
149
+ class InvokeStoreBase {
150
+ static PROTECTED_KEYS = PROTECTED_KEYS;
151
+ isProtectedKey(key) {
152
+ return Object.values(PROTECTED_KEYS).includes(key);
153
+ }
154
+ getRequestId() {
155
+ return this.get(PROTECTED_KEYS.REQUEST_ID) ?? "-";
156
+ }
157
+ getXRayTraceId() {
158
+ return this.get(PROTECTED_KEYS.X_RAY_TRACE_ID);
159
+ }
160
+ getTenantId() {
161
+ return this.get(PROTECTED_KEYS.TENANT_ID);
162
+ }
163
+ }
164
+
165
+ class InvokeStoreSingle extends InvokeStoreBase {
166
+ currentContext;
167
+ getContext() {
168
+ return this.currentContext;
169
+ }
170
+ hasContext() {
171
+ return this.currentContext !== undefined;
172
+ }
173
+ get(key) {
174
+ return this.currentContext?.[key];
175
+ }
176
+ set(key, value) {
177
+ if (this.isProtectedKey(key)) {
178
+ throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
179
+ }
180
+ this.currentContext = this.currentContext || {};
181
+ this.currentContext[key] = value;
182
+ }
183
+ run(context, fn) {
184
+ this.currentContext = context;
185
+ return fn();
186
+ }
187
+ }
188
+
189
+ class InvokeStoreMulti extends InvokeStoreBase {
190
+ als;
191
+ static async create() {
192
+ const instance = new InvokeStoreMulti;
193
+ const asyncHooks = await import("async_hooks");
194
+ instance.als = new asyncHooks.AsyncLocalStorage;
195
+ return instance;
196
+ }
197
+ getContext() {
198
+ return this.als.getStore();
199
+ }
200
+ hasContext() {
201
+ return this.als.getStore() !== undefined;
202
+ }
203
+ get(key) {
204
+ return this.als.getStore()?.[key];
205
+ }
206
+ set(key, value) {
207
+ if (this.isProtectedKey(key)) {
208
+ throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
209
+ }
210
+ const store = this.als.getStore();
211
+ if (!store) {
212
+ throw new Error("No context available");
213
+ }
214
+ store[key] = value;
215
+ }
216
+ run(context, fn) {
217
+ return this.als.run(context, fn);
218
+ }
219
+ }
220
+ exports.InvokeStore = undefined;
221
+ (function(InvokeStore) {
222
+ let instance = null;
223
+ async function getInstanceAsync(forceInvokeStoreMulti) {
224
+ if (!instance) {
225
+ instance = (async () => {
226
+ const isMulti = forceInvokeStoreMulti === true || "AWS_LAMBDA_MAX_CONCURRENCY" in process.env;
227
+ const newInstance = isMulti ? await InvokeStoreMulti.create() : new InvokeStoreSingle;
228
+ if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda?.InvokeStore) {
229
+ return globalThis.awslambda.InvokeStore;
230
+ } else if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda) {
231
+ globalThis.awslambda.InvokeStore = newInstance;
232
+ return newInstance;
233
+ } else {
234
+ return newInstance;
235
+ }
236
+ })();
237
+ }
238
+ return instance;
239
+ }
240
+ InvokeStore.getInstanceAsync = getInstanceAsync;
241
+ InvokeStore._testing = process.env.AWS_LAMBDA_BENCHMARK_MODE === "1" ? {
242
+ reset: () => {
243
+ instance = null;
244
+ if (globalThis.awslambda?.InvokeStore) {
245
+ delete globalThis.awslambda.InvokeStore;
246
+ }
247
+ globalThis.awslambda = { InvokeStore: undefined };
248
+ }
249
+ } : undefined;
250
+ })(exports.InvokeStore || (exports.InvokeStore = {}));
251
+ exports.InvokeStoreBase = InvokeStoreBase;
252
+ });
253
+
146
254
  // node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.10/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js
147
255
  var require_recursionDetectionMiddleware = __commonJS((exports) => {
148
256
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -179,7 +287,7 @@ var require_recursionDetectionMiddleware = __commonJS((exports) => {
179
287
  });
180
288
 
181
289
  // node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.10/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
182
- var require_dist_cjs19 = __commonJS((exports) => {
290
+ var require_dist_cjs18 = __commonJS((exports) => {
183
291
  var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
184
292
  var recursionDetectionMiddlewareOptions = {
185
293
  step: "build",
@@ -205,7 +313,7 @@ var require_dist_cjs19 = __commonJS((exports) => {
205
313
  });
206
314
 
207
315
  // node_modules/.bun/@aws-sdk+util-endpoints@3.996.6/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
208
- var require_dist_cjs20 = __commonJS((exports) => {
316
+ var require_dist_cjs19 = __commonJS((exports) => {
209
317
  var utilEndpoints = require_dist_cjs13();
210
318
  var urlParser = require_dist_cjs5();
211
319
  var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
@@ -603,7 +711,7 @@ var require_dist_cjs20 = __commonJS((exports) => {
603
711
  });
604
712
 
605
713
  // node_modules/.bun/@smithy+service-error-classification@4.2.13/node_modules/@smithy/service-error-classification/dist-cjs/index.js
606
- var require_dist_cjs21 = __commonJS((exports) => {
714
+ var require_dist_cjs20 = __commonJS((exports) => {
607
715
  var CLOCK_SKEW_ERROR_CODES = [
608
716
  "AuthFailure",
609
717
  "InvalidSignatureException",
@@ -671,8 +779,8 @@ var require_dist_cjs21 = __commonJS((exports) => {
671
779
  });
672
780
 
673
781
  // node_modules/.bun/@smithy+util-retry@4.3.1/node_modules/@smithy/util-retry/dist-cjs/index.js
674
- var require_dist_cjs22 = __commonJS((exports) => {
675
- var serviceErrorClassification = require_dist_cjs21();
782
+ var require_dist_cjs21 = __commonJS((exports) => {
783
+ var serviceErrorClassification = require_dist_cjs20();
676
784
  exports.RETRY_MODES = undefined;
677
785
  (function(RETRY_MODES) {
678
786
  RETRY_MODES["STANDARD"] = "standard";
@@ -993,12 +1101,12 @@ var require_dist_cjs22 = __commonJS((exports) => {
993
1101
  });
994
1102
 
995
1103
  // node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.29/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
996
- var require_dist_cjs23 = __commonJS((exports) => {
1104
+ var require_dist_cjs22 = __commonJS((exports) => {
997
1105
  var core = require_dist_cjs12();
998
- var utilEndpoints = require_dist_cjs20();
1106
+ var utilEndpoints = require_dist_cjs19();
999
1107
  var protocolHttp = require_dist_cjs();
1000
1108
  var client = require_client();
1001
- var utilRetry = require_dist_cjs22();
1109
+ var utilRetry = require_dist_cjs21();
1002
1110
  var DEFAULT_UA_APP_ID = undefined;
1003
1111
  function isValidUserAgentAppId(appId) {
1004
1112
  if (appId === undefined) {
@@ -1171,7 +1279,7 @@ var require_dist_cjs23 = __commonJS((exports) => {
1171
1279
  });
1172
1280
 
1173
1281
  // node_modules/.bun/@smithy+middleware-content-length@4.2.13/node_modules/@smithy/middleware-content-length/dist-cjs/index.js
1174
- var require_dist_cjs24 = __commonJS((exports) => {
1282
+ var require_dist_cjs23 = __commonJS((exports) => {
1175
1283
  var protocolHttp = require_dist_cjs();
1176
1284
  var CONTENT_LENGTH_HEADER = "content-length";
1177
1285
  function contentLengthMiddleware(bodyLengthChecker) {
@@ -1260,7 +1368,7 @@ var require_getEndpointFromConfig = __commonJS((exports) => {
1260
1368
  });
1261
1369
 
1262
1370
  // node_modules/.bun/@smithy+middleware-serde@4.2.17/node_modules/@smithy/middleware-serde/dist-cjs/index.js
1263
- var require_dist_cjs25 = __commonJS((exports) => {
1371
+ var require_dist_cjs24 = __commonJS((exports) => {
1264
1372
  var protocolHttp = require_dist_cjs();
1265
1373
  var endpoints = require_endpoints();
1266
1374
  var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => {
@@ -1356,12 +1464,12 @@ var require_dist_cjs25 = __commonJS((exports) => {
1356
1464
  });
1357
1465
 
1358
1466
  // node_modules/.bun/@smithy+middleware-endpoint@4.4.29/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
1359
- var require_dist_cjs26 = __commonJS((exports) => {
1467
+ var require_dist_cjs25 = __commonJS((exports) => {
1360
1468
  var core = require_dist_cjs12();
1361
1469
  var utilMiddleware = require_dist_cjs6();
1362
1470
  var getEndpointFromConfig = require_getEndpointFromConfig();
1363
1471
  var urlParser = require_dist_cjs5();
1364
- var middlewareSerde = require_dist_cjs25();
1472
+ var middlewareSerde = require_dist_cjs24();
1365
1473
  var resolveParamsForS3 = async (endpointParams) => {
1366
1474
  const bucket = endpointParams?.Bucket || "";
1367
1475
  if (typeof endpointParams.Bucket === "string") {
@@ -1616,10 +1724,10 @@ var require_isStreamingPayload = __commonJS((exports) => {
1616
1724
  });
1617
1725
 
1618
1726
  // node_modules/.bun/@smithy+middleware-retry@4.5.1/node_modules/@smithy/middleware-retry/dist-cjs/index.js
1619
- var require_dist_cjs27 = __commonJS((exports) => {
1620
- var utilRetry = require_dist_cjs22();
1727
+ var require_dist_cjs26 = __commonJS((exports) => {
1728
+ var utilRetry = require_dist_cjs21();
1621
1729
  var protocolHttp = require_dist_cjs();
1622
- var serviceErrorClassification = require_dist_cjs21();
1730
+ var serviceErrorClassification = require_dist_cjs20();
1623
1731
  var uuid = require_dist_cjs7();
1624
1732
  var utilMiddleware = require_dist_cjs6();
1625
1733
  var smithyClient = require_dist_cjs11();
@@ -2012,7 +2120,7 @@ var require_stsRegionDefaultResolver = __commonJS((exports) => {
2012
2120
  });
2013
2121
 
2014
2122
  // node_modules/.bun/@aws-sdk+region-config-resolver@3.972.11/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
2015
- var require_dist_cjs28 = __commonJS((exports) => {
2123
+ var require_dist_cjs27 = __commonJS((exports) => {
2016
2124
  var stsRegionDefaultResolver = require_stsRegionDefaultResolver();
2017
2125
  var configResolver = require_dist_cjs15();
2018
2126
  var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
@@ -2048,14 +2156,14 @@ var require_dist_cjs28 = __commonJS((exports) => {
2048
2156
  });
2049
2157
 
2050
2158
  // node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.15/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
2051
- var require_dist_cjs29 = __commonJS((exports) => {
2159
+ var require_dist_cjs28 = __commonJS((exports) => {
2052
2160
  var __dirname = "/Users/konghayao/code/ai/claude-code/node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.15/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
2053
2161
  var node_os = __require("os");
2054
2162
  var node_process = __require("process");
2055
2163
  var utilConfigProvider = require_dist_cjs14();
2056
2164
  var promises = __require("fs/promises");
2057
2165
  var node_path = __require("path");
2058
- var middlewareUserAgent = require_dist_cjs23();
2166
+ var middlewareUserAgent = require_dist_cjs22();
2059
2167
  var getRuntimeUserAgentPair = () => {
2060
2168
  const runtimesToCheck = ["deno", "bun", "llrt"];
2061
2169
  for (const runtime of runtimesToCheck) {
@@ -2219,7 +2327,7 @@ var require_dist_cjs29 = __commonJS((exports) => {
2219
2327
  });
2220
2328
 
2221
2329
  // node_modules/.bun/@smithy+hash-node@4.2.13/node_modules/@smithy/hash-node/dist-cjs/index.js
2222
- var require_dist_cjs30 = __commonJS((exports) => {
2330
+ var require_dist_cjs29 = __commonJS((exports) => {
2223
2331
  var utilBufferFrom = require_dist_cjs8();
2224
2332
  var utilUtf8 = require_dist_cjs9();
2225
2333
  var buffer = __require("buffer");
@@ -2259,6 +2367,33 @@ var require_dist_cjs30 = __commonJS((exports) => {
2259
2367
  exports.Hash = Hash;
2260
2368
  });
2261
2369
 
2370
+ // node_modules/.bun/@smithy+util-body-length-node@4.2.3/node_modules/@smithy/util-body-length-node/dist-cjs/index.js
2371
+ var require_dist_cjs30 = __commonJS((exports) => {
2372
+ var node_fs = __require("fs");
2373
+ var calculateBodyLength = (body) => {
2374
+ if (!body) {
2375
+ return 0;
2376
+ }
2377
+ if (typeof body === "string") {
2378
+ return Buffer.byteLength(body);
2379
+ } else if (typeof body.byteLength === "number") {
2380
+ return body.byteLength;
2381
+ } else if (typeof body.size === "number") {
2382
+ return body.size;
2383
+ } else if (typeof body.start === "number" && typeof body.end === "number") {
2384
+ return body.end + 1 - body.start;
2385
+ } else if (body instanceof node_fs.ReadStream) {
2386
+ if (body.path != null) {
2387
+ return node_fs.lstatSync(body.path).size;
2388
+ } else if (typeof body.fd === "number") {
2389
+ return node_fs.fstatSync(body.fd).size;
2390
+ }
2391
+ }
2392
+ throw new Error(`Body Length computation failed for ${body}`);
2393
+ };
2394
+ exports.calculateBodyLength = calculateBodyLength;
2395
+ });
2396
+
2262
2397
  // node_modules/.bun/@smithy+util-defaults-mode-node@4.2.49/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
2263
2398
  var require_dist_cjs31 = __commonJS((exports) => {
2264
2399
  var configResolver = require_dist_cjs15();
@@ -2328,13 +2463,42 @@ var require_dist_cjs31 = __commonJS((exports) => {
2328
2463
  exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
2329
2464
  });
2330
2465
 
2466
+ // node_modules/.bun/@smithy+util-body-length-browser@4.2.2/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js
2467
+ var require_dist_cjs32 = __commonJS((exports) => {
2468
+ var TEXT_ENCODER = typeof TextEncoder == "function" ? new TextEncoder : null;
2469
+ var calculateBodyLength = (body) => {
2470
+ if (typeof body === "string") {
2471
+ if (TEXT_ENCODER) {
2472
+ return TEXT_ENCODER.encode(body).byteLength;
2473
+ }
2474
+ let len = body.length;
2475
+ for (let i = len - 1;i >= 0; i--) {
2476
+ const code = body.charCodeAt(i);
2477
+ if (code > 127 && code <= 2047)
2478
+ len++;
2479
+ else if (code > 2047 && code <= 65535)
2480
+ len += 2;
2481
+ if (code >= 56320 && code <= 57343)
2482
+ i--;
2483
+ }
2484
+ return len;
2485
+ } else if (typeof body.byteLength === "number") {
2486
+ return body.byteLength;
2487
+ } else if (typeof body.size === "number") {
2488
+ return body.size;
2489
+ }
2490
+ throw new Error(`Body Length computation failed for ${body}`);
2491
+ };
2492
+ exports.calculateBodyLength = calculateBodyLength;
2493
+ });
2494
+
2331
2495
  // node_modules/.bun/@smithy+core@3.23.14/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
2332
2496
  var require_cbor = __commonJS((exports) => {
2333
2497
  var serde = require_serde();
2334
2498
  var utilUtf8 = require_dist_cjs9();
2335
2499
  var protocols = require_protocols();
2336
2500
  var protocolHttp = require_dist_cjs();
2337
- var utilBodyLengthBrowser = require_dist_cjs16();
2501
+ var utilBodyLengthBrowser = require_dist_cjs32();
2338
2502
  var schema = require_schema();
2339
2503
  var utilMiddleware = require_dist_cjs6();
2340
2504
  var utilBase64 = require_dist_cjs10();
@@ -3353,6 +3517,1557 @@ var require_cbor = __commonJS((exports) => {
3353
3517
  exports.tagSymbol = tagSymbol;
3354
3518
  });
3355
3519
 
3520
+ // node_modules/.bun/fast-xml-parser@5.5.8/node_modules/fast-xml-parser/lib/fxp.cjs
3521
+ var require_fxp = __commonJS((exports, module) => {
3522
+ (() => {
3523
+ var t = { d: (e2, i2) => {
3524
+ for (var n2 in i2)
3525
+ t.o(i2, n2) && !t.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: i2[n2] });
3526
+ }, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
3527
+ typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
3528
+ } }, e = {};
3529
+ t.r(e), t.d(e, { XMLBuilder: () => $t, XMLParser: () => gt, XMLValidator: () => It });
3530
+ const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
3531
+ function s(t2, e2) {
3532
+ const i2 = [];
3533
+ let n2 = e2.exec(t2);
3534
+ for (;n2; ) {
3535
+ const s2 = [];
3536
+ s2.startIndex = e2.lastIndex - n2[0].length;
3537
+ const r2 = n2.length;
3538
+ for (let t3 = 0;t3 < r2; t3++)
3539
+ s2.push(n2[t3]);
3540
+ i2.push(s2), n2 = e2.exec(t2);
3541
+ }
3542
+ return i2;
3543
+ }
3544
+ const r = function(t2) {
3545
+ return !(n.exec(t2) == null);
3546
+ }, o = ["hasOwnProperty", "toString", "valueOf", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"], a = ["__proto__", "constructor", "prototype"], h = { allowBooleanAttributes: false, unpairedTags: [] };
3547
+ function l(t2, e2) {
3548
+ e2 = Object.assign({}, h, e2);
3549
+ const i2 = [];
3550
+ let n2 = false, s2 = false;
3551
+ t2[0] === "\uFEFF" && (t2 = t2.substr(1));
3552
+ for (let r2 = 0;r2 < t2.length; r2++)
3553
+ if (t2[r2] === "<" && t2[r2 + 1] === "?") {
3554
+ if (r2 += 2, r2 = u(t2, r2), r2.err)
3555
+ return r2;
3556
+ } else {
3557
+ if (t2[r2] !== "<") {
3558
+ if (p(t2[r2]))
3559
+ continue;
3560
+ return b("InvalidChar", "char '" + t2[r2] + "' is not expected.", w(t2, r2));
3561
+ }
3562
+ {
3563
+ let o2 = r2;
3564
+ if (r2++, t2[r2] === "!") {
3565
+ r2 = c(t2, r2);
3566
+ continue;
3567
+ }
3568
+ {
3569
+ let a2 = false;
3570
+ t2[r2] === "/" && (a2 = true, r2++);
3571
+ let h2 = "";
3572
+ for (;r2 < t2.length && t2[r2] !== ">" && t2[r2] !== " " && t2[r2] !== "\t" && t2[r2] !== `
3573
+ ` && t2[r2] !== "\r"; r2++)
3574
+ h2 += t2[r2];
3575
+ if (h2 = h2.trim(), h2[h2.length - 1] === "/" && (h2 = h2.substring(0, h2.length - 1), r2--), !y(h2)) {
3576
+ let e3;
3577
+ return e3 = h2.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + h2 + "' is an invalid name.", b("InvalidTag", e3, w(t2, r2));
3578
+ }
3579
+ const l2 = g(t2, r2);
3580
+ if (l2 === false)
3581
+ return b("InvalidAttr", "Attributes for '" + h2 + "' have open quote.", w(t2, r2));
3582
+ let d2 = l2.value;
3583
+ if (r2 = l2.index, d2[d2.length - 1] === "/") {
3584
+ const i3 = r2 - d2.length;
3585
+ d2 = d2.substring(0, d2.length - 1);
3586
+ const s3 = x(d2, e2);
3587
+ if (s3 !== true)
3588
+ return b(s3.err.code, s3.err.msg, w(t2, i3 + s3.err.line));
3589
+ n2 = true;
3590
+ } else if (a2) {
3591
+ if (!l2.tagClosed)
3592
+ return b("InvalidTag", "Closing tag '" + h2 + "' doesn't have proper closing.", w(t2, r2));
3593
+ if (d2.trim().length > 0)
3594
+ return b("InvalidTag", "Closing tag '" + h2 + "' can't have attributes or invalid starting.", w(t2, o2));
3595
+ if (i2.length === 0)
3596
+ return b("InvalidTag", "Closing tag '" + h2 + "' has not been opened.", w(t2, o2));
3597
+ {
3598
+ const e3 = i2.pop();
3599
+ if (h2 !== e3.tagName) {
3600
+ let i3 = w(t2, e3.tagStartPos);
3601
+ return b("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + i3.line + ", col " + i3.col + ") instead of closing tag '" + h2 + "'.", w(t2, o2));
3602
+ }
3603
+ i2.length == 0 && (s2 = true);
3604
+ }
3605
+ } else {
3606
+ const a3 = x(d2, e2);
3607
+ if (a3 !== true)
3608
+ return b(a3.err.code, a3.err.msg, w(t2, r2 - d2.length + a3.err.line));
3609
+ if (s2 === true)
3610
+ return b("InvalidXml", "Multiple possible root nodes found.", w(t2, r2));
3611
+ e2.unpairedTags.indexOf(h2) !== -1 || i2.push({ tagName: h2, tagStartPos: o2 }), n2 = true;
3612
+ }
3613
+ for (r2++;r2 < t2.length; r2++)
3614
+ if (t2[r2] === "<") {
3615
+ if (t2[r2 + 1] === "!") {
3616
+ r2++, r2 = c(t2, r2);
3617
+ continue;
3618
+ }
3619
+ if (t2[r2 + 1] !== "?")
3620
+ break;
3621
+ if (r2 = u(t2, ++r2), r2.err)
3622
+ return r2;
3623
+ } else if (t2[r2] === "&") {
3624
+ const e3 = N(t2, r2);
3625
+ if (e3 == -1)
3626
+ return b("InvalidChar", "char '&' is not expected.", w(t2, r2));
3627
+ r2 = e3;
3628
+ } else if (s2 === true && !p(t2[r2]))
3629
+ return b("InvalidXml", "Extra text at the end", w(t2, r2));
3630
+ t2[r2] === "<" && r2--;
3631
+ }
3632
+ }
3633
+ }
3634
+ return n2 ? i2.length == 1 ? b("InvalidTag", "Unclosed tag '" + i2[0].tagName + "'.", w(t2, i2[0].tagStartPos)) : !(i2.length > 0) || b("InvalidXml", "Invalid '" + JSON.stringify(i2.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : b("InvalidXml", "Start tag expected.", 1);
3635
+ }
3636
+ function p(t2) {
3637
+ return t2 === " " || t2 === "\t" || t2 === `
3638
+ ` || t2 === "\r";
3639
+ }
3640
+ function u(t2, e2) {
3641
+ const i2 = e2;
3642
+ for (;e2 < t2.length; e2++)
3643
+ if (t2[e2] == "?" || t2[e2] == " ") {
3644
+ const n2 = t2.substr(i2, e2 - i2);
3645
+ if (e2 > 5 && n2 === "xml")
3646
+ return b("InvalidXml", "XML declaration allowed only at the start of the document.", w(t2, e2));
3647
+ if (t2[e2] == "?" && t2[e2 + 1] == ">") {
3648
+ e2++;
3649
+ break;
3650
+ }
3651
+ continue;
3652
+ }
3653
+ return e2;
3654
+ }
3655
+ function c(t2, e2) {
3656
+ if (t2.length > e2 + 5 && t2[e2 + 1] === "-" && t2[e2 + 2] === "-") {
3657
+ for (e2 += 3;e2 < t2.length; e2++)
3658
+ if (t2[e2] === "-" && t2[e2 + 1] === "-" && t2[e2 + 2] === ">") {
3659
+ e2 += 2;
3660
+ break;
3661
+ }
3662
+ } else if (t2.length > e2 + 8 && t2[e2 + 1] === "D" && t2[e2 + 2] === "O" && t2[e2 + 3] === "C" && t2[e2 + 4] === "T" && t2[e2 + 5] === "Y" && t2[e2 + 6] === "P" && t2[e2 + 7] === "E") {
3663
+ let i2 = 1;
3664
+ for (e2 += 8;e2 < t2.length; e2++)
3665
+ if (t2[e2] === "<")
3666
+ i2++;
3667
+ else if (t2[e2] === ">" && (i2--, i2 === 0))
3668
+ break;
3669
+ } else if (t2.length > e2 + 9 && t2[e2 + 1] === "[" && t2[e2 + 2] === "C" && t2[e2 + 3] === "D" && t2[e2 + 4] === "A" && t2[e2 + 5] === "T" && t2[e2 + 6] === "A" && t2[e2 + 7] === "[") {
3670
+ for (e2 += 8;e2 < t2.length; e2++)
3671
+ if (t2[e2] === "]" && t2[e2 + 1] === "]" && t2[e2 + 2] === ">") {
3672
+ e2 += 2;
3673
+ break;
3674
+ }
3675
+ }
3676
+ return e2;
3677
+ }
3678
+ const d = '"', f = "'";
3679
+ function g(t2, e2) {
3680
+ let i2 = "", n2 = "", s2 = false;
3681
+ for (;e2 < t2.length; e2++) {
3682
+ if (t2[e2] === d || t2[e2] === f)
3683
+ n2 === "" ? n2 = t2[e2] : n2 !== t2[e2] || (n2 = "");
3684
+ else if (t2[e2] === ">" && n2 === "") {
3685
+ s2 = true;
3686
+ break;
3687
+ }
3688
+ i2 += t2[e2];
3689
+ }
3690
+ return n2 === "" && { value: i2, index: e2, tagClosed: s2 };
3691
+ }
3692
+ const m = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
3693
+ function x(t2, e2) {
3694
+ const i2 = s(t2, m), n2 = {};
3695
+ for (let t3 = 0;t3 < i2.length; t3++) {
3696
+ if (i2[t3][1].length === 0)
3697
+ return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' has no space in starting.", v(i2[t3]));
3698
+ if (i2[t3][3] !== undefined && i2[t3][4] === undefined)
3699
+ return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' is without value.", v(i2[t3]));
3700
+ if (i2[t3][3] === undefined && !e2.allowBooleanAttributes)
3701
+ return b("InvalidAttr", "boolean attribute '" + i2[t3][2] + "' is not allowed.", v(i2[t3]));
3702
+ const s2 = i2[t3][2];
3703
+ if (!E(s2))
3704
+ return b("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(i2[t3]));
3705
+ if (Object.prototype.hasOwnProperty.call(n2, s2))
3706
+ return b("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(i2[t3]));
3707
+ n2[s2] = 1;
3708
+ }
3709
+ return true;
3710
+ }
3711
+ function N(t2, e2) {
3712
+ if (t2[++e2] === ";")
3713
+ return -1;
3714
+ if (t2[e2] === "#")
3715
+ return function(t3, e3) {
3716
+ let i3 = /\d/;
3717
+ for (t3[e3] === "x" && (e3++, i3 = /[\da-fA-F]/);e3 < t3.length; e3++) {
3718
+ if (t3[e3] === ";")
3719
+ return e3;
3720
+ if (!t3[e3].match(i3))
3721
+ break;
3722
+ }
3723
+ return -1;
3724
+ }(t2, ++e2);
3725
+ let i2 = 0;
3726
+ for (;e2 < t2.length; e2++, i2++)
3727
+ if (!(t2[e2].match(/\w/) && i2 < 20)) {
3728
+ if (t2[e2] === ";")
3729
+ break;
3730
+ return -1;
3731
+ }
3732
+ return e2;
3733
+ }
3734
+ function b(t2, e2, i2) {
3735
+ return { err: { code: t2, msg: e2, line: i2.line || i2, col: i2.col } };
3736
+ }
3737
+ function E(t2) {
3738
+ return r(t2);
3739
+ }
3740
+ function y(t2) {
3741
+ return r(t2);
3742
+ }
3743
+ function w(t2, e2) {
3744
+ const i2 = t2.substring(0, e2).split(/\r?\n/);
3745
+ return { line: i2.length, col: i2[i2.length - 1].length + 1 };
3746
+ }
3747
+ function v(t2) {
3748
+ return t2.startIndex + t2[1].length;
3749
+ }
3750
+ const T = (t2) => o.includes(t2) ? "__" + t2 : t2, P = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t2, e2) {
3751
+ return e2;
3752
+ }, attributeValueProcessor: function(t2, e2) {
3753
+ return e2;
3754
+ }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e2, i2) {
3755
+ return t2;
3756
+ }, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true, jPath: true, onDangerousProperty: T };
3757
+ function S(t2, e2) {
3758
+ if (typeof t2 != "string")
3759
+ return;
3760
+ const i2 = t2.toLowerCase();
3761
+ if (o.some((t3) => i2 === t3.toLowerCase()))
3762
+ throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
3763
+ if (a.some((t3) => i2 === t3.toLowerCase()))
3764
+ throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
3765
+ }
3766
+ function A(t2) {
3767
+ return typeof t2 == "boolean" ? { enabled: t2, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1000, maxExpandedLength: 1e5, maxEntityCount: 100, allowedTags: null, tagFilter: null } : typeof t2 == "object" && t2 !== null ? { enabled: t2.enabled !== false, maxEntitySize: Math.max(1, t2.maxEntitySize ?? 1e4), maxExpansionDepth: Math.max(1, t2.maxExpansionDepth ?? 10), maxTotalExpansions: Math.max(1, t2.maxTotalExpansions ?? 1000), maxExpandedLength: Math.max(1, t2.maxExpandedLength ?? 1e5), maxEntityCount: Math.max(1, t2.maxEntityCount ?? 100), allowedTags: t2.allowedTags ?? null, tagFilter: t2.tagFilter ?? null } : A(true);
3768
+ }
3769
+ const O = function(t2) {
3770
+ const e2 = Object.assign({}, P, t2), i2 = [{ value: e2.attributeNamePrefix, name: "attributeNamePrefix" }, { value: e2.attributesGroupName, name: "attributesGroupName" }, { value: e2.textNodeName, name: "textNodeName" }, { value: e2.cdataPropName, name: "cdataPropName" }, { value: e2.commentPropName, name: "commentPropName" }];
3771
+ for (const { value: t3, name: e3 } of i2)
3772
+ t3 && S(t3, e3);
3773
+ return e2.onDangerousProperty === null && (e2.onDangerousProperty = T), e2.processEntities = A(e2.processEntities), e2.stopNodes && Array.isArray(e2.stopNodes) && (e2.stopNodes = e2.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), e2;
3774
+ };
3775
+ let C;
3776
+ C = typeof Symbol != "function" ? "@@xmlMetadata" : Symbol("XML Node Metadata");
3777
+
3778
+ class $ {
3779
+ constructor(t2) {
3780
+ this.tagname = t2, this.child = [], this[":@"] = Object.create(null);
3781
+ }
3782
+ add(t2, e2) {
3783
+ t2 === "__proto__" && (t2 = "#__proto__"), this.child.push({ [t2]: e2 });
3784
+ }
3785
+ addChild(t2, e2) {
3786
+ t2.tagname === "__proto__" && (t2.tagname = "#__proto__"), t2[":@"] && Object.keys(t2[":@"]).length > 0 ? this.child.push({ [t2.tagname]: t2.child, ":@": t2[":@"] }) : this.child.push({ [t2.tagname]: t2.child }), e2 !== undefined && (this.child[this.child.length - 1][C] = { startIndex: e2 });
3787
+ }
3788
+ static getMetaDataSymbol() {
3789
+ return C;
3790
+ }
3791
+ }
3792
+
3793
+ class I {
3794
+ constructor(t2) {
3795
+ this.suppressValidationErr = !t2, this.options = t2;
3796
+ }
3797
+ readDocType(t2, e2) {
3798
+ const i2 = Object.create(null);
3799
+ let n2 = 0;
3800
+ if (t2[e2 + 3] !== "O" || t2[e2 + 4] !== "C" || t2[e2 + 5] !== "T" || t2[e2 + 6] !== "Y" || t2[e2 + 7] !== "P" || t2[e2 + 8] !== "E")
3801
+ throw new Error("Invalid Tag instead of DOCTYPE");
3802
+ {
3803
+ e2 += 9;
3804
+ let s2 = 1, r2 = false, o2 = false, a2 = "";
3805
+ for (;e2 < t2.length; e2++)
3806
+ if (t2[e2] !== "<" || o2)
3807
+ if (t2[e2] === ">") {
3808
+ if (o2 ? t2[e2 - 1] === "-" && t2[e2 - 2] === "-" && (o2 = false, s2--) : s2--, s2 === 0)
3809
+ break;
3810
+ } else
3811
+ t2[e2] === "[" ? r2 = true : a2 += t2[e2];
3812
+ else {
3813
+ if (r2 && M(t2, "!ENTITY", e2)) {
3814
+ let s3, r3;
3815
+ if (e2 += 7, [s3, r3, e2] = this.readEntityExp(t2, e2 + 1, this.suppressValidationErr), r3.indexOf("&") === -1) {
3816
+ if (this.options.enabled !== false && this.options.maxEntityCount != null && n2 >= this.options.maxEntityCount)
3817
+ throw new Error(`Entity count (${n2 + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
3818
+ const t3 = s3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3819
+ i2[s3] = { regx: RegExp(`&${t3};`, "g"), val: r3 }, n2++;
3820
+ }
3821
+ } else if (r2 && M(t2, "!ELEMENT", e2)) {
3822
+ e2 += 8;
3823
+ const { index: i3 } = this.readElementExp(t2, e2 + 1);
3824
+ e2 = i3;
3825
+ } else if (r2 && M(t2, "!ATTLIST", e2))
3826
+ e2 += 8;
3827
+ else if (r2 && M(t2, "!NOTATION", e2)) {
3828
+ e2 += 9;
3829
+ const { index: i3 } = this.readNotationExp(t2, e2 + 1, this.suppressValidationErr);
3830
+ e2 = i3;
3831
+ } else {
3832
+ if (!M(t2, "!--", e2))
3833
+ throw new Error("Invalid DOCTYPE");
3834
+ o2 = true;
3835
+ }
3836
+ s2++, a2 = "";
3837
+ }
3838
+ if (s2 !== 0)
3839
+ throw new Error("Unclosed DOCTYPE");
3840
+ }
3841
+ return { entities: i2, i: e2 };
3842
+ }
3843
+ readEntityExp(t2, e2) {
3844
+ const i2 = e2 = j(t2, e2);
3845
+ for (;e2 < t2.length && !/\s/.test(t2[e2]) && t2[e2] !== '"' && t2[e2] !== "'"; )
3846
+ e2++;
3847
+ let n2 = t2.substring(i2, e2);
3848
+ if (_(n2), e2 = j(t2, e2), !this.suppressValidationErr) {
3849
+ if (t2.substring(e2, e2 + 6).toUpperCase() === "SYSTEM")
3850
+ throw new Error("External entities are not supported");
3851
+ if (t2[e2] === "%")
3852
+ throw new Error("Parameter entities are not supported");
3853
+ }
3854
+ let s2 = "";
3855
+ if ([e2, s2] = this.readIdentifierVal(t2, e2, "entity"), this.options.enabled !== false && this.options.maxEntitySize != null && s2.length > this.options.maxEntitySize)
3856
+ throw new Error(`Entity "${n2}" size (${s2.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
3857
+ return [n2, s2, --e2];
3858
+ }
3859
+ readNotationExp(t2, e2) {
3860
+ const i2 = e2 = j(t2, e2);
3861
+ for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3862
+ e2++;
3863
+ let n2 = t2.substring(i2, e2);
3864
+ !this.suppressValidationErr && _(n2), e2 = j(t2, e2);
3865
+ const s2 = t2.substring(e2, e2 + 6).toUpperCase();
3866
+ if (!this.suppressValidationErr && s2 !== "SYSTEM" && s2 !== "PUBLIC")
3867
+ throw new Error(`Expected SYSTEM or PUBLIC, found "${s2}"`);
3868
+ e2 += s2.length, e2 = j(t2, e2);
3869
+ let r2 = null, o2 = null;
3870
+ if (s2 === "PUBLIC")
3871
+ [e2, r2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), t2[e2 = j(t2, e2)] !== '"' && t2[e2] !== "'" || ([e2, o2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
3872
+ else if (s2 === "SYSTEM" && ([e2, o2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !o2))
3873
+ throw new Error("Missing mandatory system identifier for SYSTEM notation");
3874
+ return { notationName: n2, publicIdentifier: r2, systemIdentifier: o2, index: --e2 };
3875
+ }
3876
+ readIdentifierVal(t2, e2, i2) {
3877
+ let n2 = "";
3878
+ const s2 = t2[e2];
3879
+ if (s2 !== '"' && s2 !== "'")
3880
+ throw new Error(`Expected quoted string, found "${s2}"`);
3881
+ const r2 = ++e2;
3882
+ for (;e2 < t2.length && t2[e2] !== s2; )
3883
+ e2++;
3884
+ if (n2 = t2.substring(r2, e2), t2[e2] !== s2)
3885
+ throw new Error(`Unterminated ${i2} value`);
3886
+ return [++e2, n2];
3887
+ }
3888
+ readElementExp(t2, e2) {
3889
+ const i2 = e2 = j(t2, e2);
3890
+ for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3891
+ e2++;
3892
+ let n2 = t2.substring(i2, e2);
3893
+ if (!this.suppressValidationErr && !r(n2))
3894
+ throw new Error(`Invalid element name: "${n2}"`);
3895
+ let s2 = "";
3896
+ if (t2[e2 = j(t2, e2)] === "E" && M(t2, "MPTY", e2))
3897
+ e2 += 4;
3898
+ else if (t2[e2] === "A" && M(t2, "NY", e2))
3899
+ e2 += 2;
3900
+ else if (t2[e2] === "(") {
3901
+ const i3 = ++e2;
3902
+ for (;e2 < t2.length && t2[e2] !== ")"; )
3903
+ e2++;
3904
+ if (s2 = t2.substring(i3, e2), t2[e2] !== ")")
3905
+ throw new Error("Unterminated content model");
3906
+ } else if (!this.suppressValidationErr)
3907
+ throw new Error(`Invalid Element Expression, found "${t2[e2]}"`);
3908
+ return { elementName: n2, contentModel: s2.trim(), index: e2 };
3909
+ }
3910
+ readAttlistExp(t2, e2) {
3911
+ let i2 = e2 = j(t2, e2);
3912
+ for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3913
+ e2++;
3914
+ let n2 = t2.substring(i2, e2);
3915
+ for (_(n2), i2 = e2 = j(t2, e2);e2 < t2.length && !/\s/.test(t2[e2]); )
3916
+ e2++;
3917
+ let s2 = t2.substring(i2, e2);
3918
+ if (!_(s2))
3919
+ throw new Error(`Invalid attribute name: "${s2}"`);
3920
+ e2 = j(t2, e2);
3921
+ let r2 = "";
3922
+ if (t2.substring(e2, e2 + 8).toUpperCase() === "NOTATION") {
3923
+ if (r2 = "NOTATION", t2[e2 = j(t2, e2 += 8)] !== "(")
3924
+ throw new Error(`Expected '(', found "${t2[e2]}"`);
3925
+ e2++;
3926
+ let i3 = [];
3927
+ for (;e2 < t2.length && t2[e2] !== ")"; ) {
3928
+ const n3 = e2;
3929
+ for (;e2 < t2.length && t2[e2] !== "|" && t2[e2] !== ")"; )
3930
+ e2++;
3931
+ let s3 = t2.substring(n3, e2);
3932
+ if (s3 = s3.trim(), !_(s3))
3933
+ throw new Error(`Invalid notation name: "${s3}"`);
3934
+ i3.push(s3), t2[e2] === "|" && (e2++, e2 = j(t2, e2));
3935
+ }
3936
+ if (t2[e2] !== ")")
3937
+ throw new Error("Unterminated list of notations");
3938
+ e2++, r2 += " (" + i3.join("|") + ")";
3939
+ } else {
3940
+ const i3 = e2;
3941
+ for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3942
+ e2++;
3943
+ r2 += t2.substring(i3, e2);
3944
+ const n3 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
3945
+ if (!this.suppressValidationErr && !n3.includes(r2.toUpperCase()))
3946
+ throw new Error(`Invalid attribute type: "${r2}"`);
3947
+ }
3948
+ e2 = j(t2, e2);
3949
+ let o2 = "";
3950
+ return t2.substring(e2, e2 + 8).toUpperCase() === "#REQUIRED" ? (o2 = "#REQUIRED", e2 += 8) : t2.substring(e2, e2 + 7).toUpperCase() === "#IMPLIED" ? (o2 = "#IMPLIED", e2 += 7) : [e2, o2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName: n2, attributeName: s2, attributeType: r2, defaultValue: o2, index: e2 };
3951
+ }
3952
+ }
3953
+ const j = (t2, e2) => {
3954
+ for (;e2 < t2.length && /\s/.test(t2[e2]); )
3955
+ e2++;
3956
+ return e2;
3957
+ };
3958
+ function M(t2, e2, i2) {
3959
+ for (let n2 = 0;n2 < e2.length; n2++)
3960
+ if (e2[n2] !== t2[i2 + n2 + 1])
3961
+ return false;
3962
+ return true;
3963
+ }
3964
+ function _(t2) {
3965
+ if (r(t2))
3966
+ return t2;
3967
+ throw new Error(`Invalid entity name ${t2}`);
3968
+ }
3969
+ const D = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, k = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true, infinity: "original" };
3970
+ const F = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/, L = new Set(["push", "pop", "reset", "updateCurrent", "restore"]);
3971
+
3972
+ class G {
3973
+ constructor(t2 = {}) {
3974
+ this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [];
3975
+ }
3976
+ push(t2, e2 = null, i2 = null) {
3977
+ this.path.length > 0 && (this.path[this.path.length - 1].values = undefined);
3978
+ const n2 = this.path.length;
3979
+ this.siblingStacks[n2] || (this.siblingStacks[n2] = new Map);
3980
+ const s2 = this.siblingStacks[n2], r2 = i2 ? `${i2}:${t2}` : t2, o2 = s2.get(r2) || 0;
3981
+ let a2 = 0;
3982
+ for (const t3 of s2.values())
3983
+ a2 += t3;
3984
+ s2.set(r2, o2 + 1);
3985
+ const h2 = { tag: t2, position: a2, counter: o2 };
3986
+ i2 != null && (h2.namespace = i2), e2 != null && (h2.values = e2), this.path.push(h2);
3987
+ }
3988
+ pop() {
3989
+ if (this.path.length === 0)
3990
+ return;
3991
+ const t2 = this.path.pop();
3992
+ return this.siblingStacks.length > this.path.length + 1 && (this.siblingStacks.length = this.path.length + 1), t2;
3993
+ }
3994
+ updateCurrent(t2) {
3995
+ if (this.path.length > 0) {
3996
+ const e2 = this.path[this.path.length - 1];
3997
+ t2 != null && (e2.values = t2);
3998
+ }
3999
+ }
4000
+ getCurrentTag() {
4001
+ return this.path.length > 0 ? this.path[this.path.length - 1].tag : undefined;
4002
+ }
4003
+ getCurrentNamespace() {
4004
+ return this.path.length > 0 ? this.path[this.path.length - 1].namespace : undefined;
4005
+ }
4006
+ getAttrValue(t2) {
4007
+ if (this.path.length === 0)
4008
+ return;
4009
+ const e2 = this.path[this.path.length - 1];
4010
+ return e2.values?.[t2];
4011
+ }
4012
+ hasAttr(t2) {
4013
+ if (this.path.length === 0)
4014
+ return false;
4015
+ const e2 = this.path[this.path.length - 1];
4016
+ return e2.values !== undefined && t2 in e2.values;
4017
+ }
4018
+ getPosition() {
4019
+ return this.path.length === 0 ? -1 : this.path[this.path.length - 1].position ?? 0;
4020
+ }
4021
+ getCounter() {
4022
+ return this.path.length === 0 ? -1 : this.path[this.path.length - 1].counter ?? 0;
4023
+ }
4024
+ getIndex() {
4025
+ return this.getPosition();
4026
+ }
4027
+ getDepth() {
4028
+ return this.path.length;
4029
+ }
4030
+ toString(t2, e2 = true) {
4031
+ const i2 = t2 || this.separator;
4032
+ return this.path.map((t3) => e2 && t3.namespace ? `${t3.namespace}:${t3.tag}` : t3.tag).join(i2);
4033
+ }
4034
+ toArray() {
4035
+ return this.path.map((t2) => t2.tag);
4036
+ }
4037
+ reset() {
4038
+ this.path = [], this.siblingStacks = [];
4039
+ }
4040
+ matches(t2) {
4041
+ const e2 = t2.segments;
4042
+ return e2.length !== 0 && (t2.hasDeepWildcard() ? this._matchWithDeepWildcard(e2) : this._matchSimple(e2));
4043
+ }
4044
+ _matchSimple(t2) {
4045
+ if (this.path.length !== t2.length)
4046
+ return false;
4047
+ for (let e2 = 0;e2 < t2.length; e2++) {
4048
+ const i2 = t2[e2], n2 = this.path[e2], s2 = e2 === this.path.length - 1;
4049
+ if (!this._matchSegment(i2, n2, s2))
4050
+ return false;
4051
+ }
4052
+ return true;
4053
+ }
4054
+ _matchWithDeepWildcard(t2) {
4055
+ let e2 = this.path.length - 1, i2 = t2.length - 1;
4056
+ for (;i2 >= 0 && e2 >= 0; ) {
4057
+ const n2 = t2[i2];
4058
+ if (n2.type === "deep-wildcard") {
4059
+ if (i2--, i2 < 0)
4060
+ return true;
4061
+ const n3 = t2[i2];
4062
+ let s2 = false;
4063
+ for (let t3 = e2;t3 >= 0; t3--) {
4064
+ const r2 = t3 === this.path.length - 1;
4065
+ if (this._matchSegment(n3, this.path[t3], r2)) {
4066
+ e2 = t3 - 1, i2--, s2 = true;
4067
+ break;
4068
+ }
4069
+ }
4070
+ if (!s2)
4071
+ return false;
4072
+ } else {
4073
+ const t3 = e2 === this.path.length - 1;
4074
+ if (!this._matchSegment(n2, this.path[e2], t3))
4075
+ return false;
4076
+ e2--, i2--;
4077
+ }
4078
+ }
4079
+ return i2 < 0;
4080
+ }
4081
+ _matchSegment(t2, e2, i2) {
4082
+ if (t2.tag !== "*" && t2.tag !== e2.tag)
4083
+ return false;
4084
+ if (t2.namespace !== undefined && t2.namespace !== "*" && t2.namespace !== e2.namespace)
4085
+ return false;
4086
+ if (t2.attrName !== undefined) {
4087
+ if (!i2)
4088
+ return false;
4089
+ if (!e2.values || !(t2.attrName in e2.values))
4090
+ return false;
4091
+ if (t2.attrValue !== undefined) {
4092
+ const i3 = e2.values[t2.attrName];
4093
+ if (String(i3) !== String(t2.attrValue))
4094
+ return false;
4095
+ }
4096
+ }
4097
+ if (t2.position !== undefined) {
4098
+ if (!i2)
4099
+ return false;
4100
+ const n2 = e2.counter ?? 0;
4101
+ if (t2.position === "first" && n2 !== 0)
4102
+ return false;
4103
+ if (t2.position === "odd" && n2 % 2 != 1)
4104
+ return false;
4105
+ if (t2.position === "even" && n2 % 2 != 0)
4106
+ return false;
4107
+ if (t2.position === "nth" && n2 !== t2.positionValue)
4108
+ return false;
4109
+ }
4110
+ return true;
4111
+ }
4112
+ snapshot() {
4113
+ return { path: this.path.map((t2) => ({ ...t2 })), siblingStacks: this.siblingStacks.map((t2) => new Map(t2)) };
4114
+ }
4115
+ restore(t2) {
4116
+ this.path = t2.path.map((t3) => ({ ...t3 })), this.siblingStacks = t2.siblingStacks.map((t3) => new Map(t3));
4117
+ }
4118
+ readOnly() {
4119
+ return new Proxy(this, { get(t2, e2, i2) {
4120
+ if (L.has(e2))
4121
+ return () => {
4122
+ throw new TypeError(`Cannot call '${e2}' on a read-only Matcher. Obtain a writable instance to mutate state.`);
4123
+ };
4124
+ const n2 = Reflect.get(t2, e2, i2);
4125
+ return e2 === "path" || e2 === "siblingStacks" ? Object.freeze(Array.isArray(n2) ? n2.map((t3) => t3 instanceof Map ? Object.freeze(new Map(t3)) : Object.freeze({ ...t3 })) : n2) : typeof n2 == "function" ? n2.bind(t2) : n2;
4126
+ }, set(t2, e2) {
4127
+ throw new TypeError(`Cannot set property '${String(e2)}' on a read-only Matcher.`);
4128
+ }, deleteProperty(t2, e2) {
4129
+ throw new TypeError(`Cannot delete property '${String(e2)}' from a read-only Matcher.`);
4130
+ } });
4131
+ }
4132
+ }
4133
+
4134
+ class R {
4135
+ constructor(t2, e2 = {}) {
4136
+ this.pattern = t2, this.separator = e2.separator || ".", this.segments = this._parse(t2), this._hasDeepWildcard = this.segments.some((t3) => t3.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((t3) => t3.attrName !== undefined), this._hasPositionSelector = this.segments.some((t3) => t3.position !== undefined);
4137
+ }
4138
+ _parse(t2) {
4139
+ const e2 = [];
4140
+ let i2 = 0, n2 = "";
4141
+ for (;i2 < t2.length; )
4142
+ t2[i2] === this.separator ? i2 + 1 < t2.length && t2[i2 + 1] === this.separator ? (n2.trim() && (e2.push(this._parseSegment(n2.trim())), n2 = ""), e2.push({ type: "deep-wildcard" }), i2 += 2) : (n2.trim() && e2.push(this._parseSegment(n2.trim())), n2 = "", i2++) : (n2 += t2[i2], i2++);
4143
+ return n2.trim() && e2.push(this._parseSegment(n2.trim())), e2;
4144
+ }
4145
+ _parseSegment(t2) {
4146
+ const e2 = { type: "tag" };
4147
+ let i2 = null, n2 = t2;
4148
+ const s2 = t2.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
4149
+ if (s2 && (n2 = s2[1] + s2[3], s2[2])) {
4150
+ const t3 = s2[2].slice(1, -1);
4151
+ t3 && (i2 = t3);
4152
+ }
4153
+ let r2, o2, a2 = n2;
4154
+ if (n2.includes("::")) {
4155
+ const e3 = n2.indexOf("::");
4156
+ if (r2 = n2.substring(0, e3).trim(), a2 = n2.substring(e3 + 2).trim(), !r2)
4157
+ throw new Error(`Invalid namespace in pattern: ${t2}`);
4158
+ }
4159
+ let h2 = null;
4160
+ if (a2.includes(":")) {
4161
+ const t3 = a2.lastIndexOf(":"), e3 = a2.substring(0, t3).trim(), i3 = a2.substring(t3 + 1).trim();
4162
+ ["first", "last", "odd", "even"].includes(i3) || /^nth\(\d+\)$/.test(i3) ? (o2 = e3, h2 = i3) : o2 = a2;
4163
+ } else
4164
+ o2 = a2;
4165
+ if (!o2)
4166
+ throw new Error(`Invalid segment pattern: ${t2}`);
4167
+ if (e2.tag = o2, r2 && (e2.namespace = r2), i2)
4168
+ if (i2.includes("=")) {
4169
+ const t3 = i2.indexOf("=");
4170
+ e2.attrName = i2.substring(0, t3).trim(), e2.attrValue = i2.substring(t3 + 1).trim();
4171
+ } else
4172
+ e2.attrName = i2.trim();
4173
+ if (h2) {
4174
+ const t3 = h2.match(/^nth\((\d+)\)$/);
4175
+ t3 ? (e2.position = "nth", e2.positionValue = parseInt(t3[1], 10)) : e2.position = h2;
4176
+ }
4177
+ return e2;
4178
+ }
4179
+ get length() {
4180
+ return this.segments.length;
4181
+ }
4182
+ hasDeepWildcard() {
4183
+ return this._hasDeepWildcard;
4184
+ }
4185
+ hasAttributeCondition() {
4186
+ return this._hasAttributeCondition;
4187
+ }
4188
+ hasPositionSelector() {
4189
+ return this._hasPositionSelector;
4190
+ }
4191
+ toString() {
4192
+ return this.pattern;
4193
+ }
4194
+ }
4195
+ function U(t2, e2) {
4196
+ if (!t2)
4197
+ return {};
4198
+ const i2 = e2.attributesGroupName ? t2[e2.attributesGroupName] : t2;
4199
+ if (!i2)
4200
+ return {};
4201
+ const n2 = {};
4202
+ for (const t3 in i2)
4203
+ t3.startsWith(e2.attributeNamePrefix) ? n2[t3.substring(e2.attributeNamePrefix.length)] = i2[t3] : n2[t3] = i2[t3];
4204
+ return n2;
4205
+ }
4206
+ function B(t2) {
4207
+ if (!t2 || typeof t2 != "string")
4208
+ return;
4209
+ const e2 = t2.indexOf(":");
4210
+ if (e2 !== -1 && e2 > 0) {
4211
+ const i2 = t2.substring(0, e2);
4212
+ if (i2 !== "xmlns")
4213
+ return i2;
4214
+ }
4215
+ }
4216
+
4217
+ class W {
4218
+ constructor(t2) {
4219
+ var e2;
4220
+ if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e3) => rt(e3, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e3) => rt(e3, 16, "&#x") } }, this.addExternalEntities = Y, this.parseXml = J, this.parseTextData = z, this.resolveNameSpace = X, this.buildAttributesMap = Z, this.isItStopNode = tt, this.replaceEntitiesValue = Q, this.readStopNodeData = nt, this.saveTextToParentTag = H, this.addChild = K, this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
4221
+ for (const i2 of e2) {
4222
+ if (typeof i2 == "string" && t3 === i2)
4223
+ return true;
4224
+ if (i2 instanceof RegExp && i2.test(t3))
4225
+ return true;
4226
+ }
4227
+ } : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new G, this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = false, this.options.stopNodes && this.options.stopNodes.length > 0) {
4228
+ this.stopNodeExpressions = [];
4229
+ for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
4230
+ const e3 = this.options.stopNodes[t3];
4231
+ typeof e3 == "string" ? this.stopNodeExpressions.push(new R(e3)) : e3 instanceof R && this.stopNodeExpressions.push(e3);
4232
+ }
4233
+ }
4234
+ }
4235
+ }
4236
+ function Y(t2) {
4237
+ const e2 = Object.keys(t2);
4238
+ for (let i2 = 0;i2 < e2.length; i2++) {
4239
+ const n2 = e2[i2], s2 = n2.replace(/[.\-+*:]/g, "\\.");
4240
+ this.lastEntities[n2] = { regex: new RegExp("&" + s2 + ";", "g"), val: t2[n2] };
4241
+ }
4242
+ }
4243
+ function z(t2, e2, i2, n2, s2, r2, o2) {
4244
+ if (t2 !== undefined && (this.options.trimValues && !n2 && (t2 = t2.trim()), t2.length > 0)) {
4245
+ o2 || (t2 = this.replaceEntitiesValue(t2, e2, i2));
4246
+ const n3 = this.options.jPath ? i2.toString() : i2, a2 = this.options.tagValueProcessor(e2, t2, n3, s2, r2);
4247
+ return a2 == null ? t2 : typeof a2 != typeof t2 || a2 !== t2 ? a2 : this.options.trimValues || t2.trim() === t2 ? st(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
4248
+ }
4249
+ }
4250
+ function X(t2) {
4251
+ if (this.options.removeNSPrefix) {
4252
+ const e2 = t2.split(":"), i2 = t2.charAt(0) === "/" ? "/" : "";
4253
+ if (e2[0] === "xmlns")
4254
+ return "";
4255
+ e2.length === 2 && (t2 = i2 + e2[1]);
4256
+ }
4257
+ return t2;
4258
+ }
4259
+ const q = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
4260
+ function Z(t2, e2, i2) {
4261
+ if (this.options.ignoreAttributes !== true && typeof t2 == "string") {
4262
+ const n2 = s(t2, q), r2 = n2.length, o2 = {}, a2 = {};
4263
+ for (let t3 = 0;t3 < r2; t3++) {
4264
+ const e3 = this.resolveNameSpace(n2[t3][1]), s2 = n2[t3][4];
4265
+ if (e3.length && s2 !== undefined) {
4266
+ let t4 = s2;
4267
+ this.options.trimValues && (t4 = t4.trim()), t4 = this.replaceEntitiesValue(t4, i2, this.readonlyMatcher), a2[e3] = t4;
4268
+ }
4269
+ }
4270
+ Object.keys(a2).length > 0 && typeof e2 == "object" && e2.updateCurrent && e2.updateCurrent(a2);
4271
+ for (let t3 = 0;t3 < r2; t3++) {
4272
+ const s2 = this.resolveNameSpace(n2[t3][1]), r3 = this.options.jPath ? e2.toString() : this.readonlyMatcher;
4273
+ if (this.ignoreAttributesFn(s2, r3))
4274
+ continue;
4275
+ let a3 = n2[t3][4], h2 = this.options.attributeNamePrefix + s2;
4276
+ if (s2.length)
4277
+ if (this.options.transformAttributeName && (h2 = this.options.transformAttributeName(h2)), h2 = at(h2, this.options), a3 !== undefined) {
4278
+ this.options.trimValues && (a3 = a3.trim()), a3 = this.replaceEntitiesValue(a3, i2, this.readonlyMatcher);
4279
+ const t4 = this.options.jPath ? e2.toString() : this.readonlyMatcher, n3 = this.options.attributeValueProcessor(s2, a3, t4);
4280
+ o2[h2] = n3 == null ? a3 : typeof n3 != typeof a3 || n3 !== a3 ? n3 : st(a3, this.options.parseAttributeValue, this.options.numberParseOptions);
4281
+ } else
4282
+ this.options.allowBooleanAttributes && (o2[h2] = true);
4283
+ }
4284
+ if (!Object.keys(o2).length)
4285
+ return;
4286
+ if (this.options.attributesGroupName) {
4287
+ const t3 = {};
4288
+ return t3[this.options.attributesGroupName] = o2, t3;
4289
+ }
4290
+ return o2;
4291
+ }
4292
+ }
4293
+ const J = function(t2) {
4294
+ t2 = t2.replace(/\r\n?/g, `
4295
+ `);
4296
+ const e2 = new $("!xml");
4297
+ let i2 = e2, n2 = "";
4298
+ this.matcher.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
4299
+ const s2 = new I(this.options.processEntities);
4300
+ for (let r2 = 0;r2 < t2.length; r2++)
4301
+ if (t2[r2] === "<")
4302
+ if (t2[r2 + 1] === "/") {
4303
+ const e3 = et(t2, ">", r2, "Closing Tag is not closed.");
4304
+ let s3 = t2.substring(r2 + 2, e3).trim();
4305
+ if (this.options.removeNSPrefix) {
4306
+ const t3 = s3.indexOf(":");
4307
+ t3 !== -1 && (s3 = s3.substr(t3 + 1));
4308
+ }
4309
+ s3 = ot(this.options.transformTagName, s3, "", this.options).tagName, i2 && (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher));
4310
+ const o2 = this.matcher.getCurrentTag();
4311
+ if (s3 && this.options.unpairedTags.indexOf(s3) !== -1)
4312
+ throw new Error(`Unpaired tag can not be used as closing tag: </${s3}>`);
4313
+ o2 && this.options.unpairedTags.indexOf(o2) !== -1 && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = false, i2 = this.tagsNodeStack.pop(), n2 = "", r2 = e3;
4314
+ } else if (t2[r2 + 1] === "?") {
4315
+ let e3 = it(t2, r2, false, "?>");
4316
+ if (!e3)
4317
+ throw new Error("Pi Tag is not closed.");
4318
+ if (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher), this.options.ignoreDeclaration && e3.tagName === "?xml" || this.options.ignorePiTags)
4319
+ ;
4320
+ else {
4321
+ const t3 = new $(e3.tagName);
4322
+ t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, this.matcher, e3.tagName)), this.addChild(i2, t3, this.readonlyMatcher, r2);
4323
+ }
4324
+ r2 = e3.closeIndex + 1;
4325
+ } else if (t2.substr(r2 + 1, 3) === "!--") {
4326
+ const e3 = et(t2, "-->", r2 + 4, "Comment is not closed.");
4327
+ if (this.options.commentPropName) {
4328
+ const s3 = t2.substring(r2 + 4, e3 - 2);
4329
+ n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher), i2.add(this.options.commentPropName, [{ [this.options.textNodeName]: s3 }]);
4330
+ }
4331
+ r2 = e3;
4332
+ } else if (t2.substr(r2 + 1, 2) === "!D") {
4333
+ const e3 = s2.readDocType(t2, r2);
4334
+ this.docTypeEntities = e3.entities, r2 = e3.i;
4335
+ } else if (t2.substr(r2 + 1, 2) === "![") {
4336
+ const e3 = et(t2, "]]>", r2, "CDATA is not closed.") - 2, s3 = t2.substring(r2 + 9, e3);
4337
+ n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher);
4338
+ let o2 = this.parseTextData(s3, i2.tagname, this.readonlyMatcher, true, false, true, true);
4339
+ o2 == null && (o2 = ""), this.options.cdataPropName ? i2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: s3 }]) : i2.add(this.options.textNodeName, o2), r2 = e3 + 2;
4340
+ } else {
4341
+ let s3 = it(t2, r2, this.options.removeNSPrefix);
4342
+ if (!s3) {
4343
+ const e3 = t2.substring(Math.max(0, r2 - 50), Math.min(t2.length, r2 + 50));
4344
+ throw new Error(`readTagExp returned undefined at position ${r2}. Context: "${e3}"`);
4345
+ }
4346
+ let o2 = s3.tagName;
4347
+ const a2 = s3.rawTagName;
4348
+ let { tagExp: h2, attrExpPresent: l2, closeIndex: p2 } = s3;
4349
+ if ({ tagName: o2, tagExp: h2 } = ot(this.options.transformTagName, o2, h2, this.options), this.options.strictReservedNames && (o2 === this.options.commentPropName || o2 === this.options.cdataPropName || o2 === this.options.textNodeName || o2 === this.options.attributesGroupName))
4350
+ throw new Error(`Invalid tag name: ${o2}`);
4351
+ i2 && n2 && i2.tagname !== "!xml" && (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher, false));
4352
+ const u2 = i2;
4353
+ u2 && this.options.unpairedTags.indexOf(u2.tagname) !== -1 && (i2 = this.tagsNodeStack.pop(), this.matcher.pop());
4354
+ let c2 = false;
4355
+ h2.length > 0 && h2.lastIndexOf("/") === h2.length - 1 && (c2 = true, o2[o2.length - 1] === "/" ? (o2 = o2.substr(0, o2.length - 1), h2 = o2) : h2 = h2.substr(0, h2.length - 1), l2 = o2 !== h2);
4356
+ let d2, f2 = null, g2 = {};
4357
+ d2 = B(a2), o2 !== e2.tagname && this.matcher.push(o2, {}, d2), o2 !== h2 && l2 && (f2 = this.buildAttributesMap(h2, this.matcher, o2), f2 && (g2 = U(f2, this.options))), o2 !== e2.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
4358
+ const m2 = r2;
4359
+ if (this.isCurrentNodeStopNode) {
4360
+ let e3 = "";
4361
+ if (c2)
4362
+ r2 = s3.closeIndex;
4363
+ else if (this.options.unpairedTags.indexOf(o2) !== -1)
4364
+ r2 = s3.closeIndex;
4365
+ else {
4366
+ const i3 = this.readStopNodeData(t2, a2, p2 + 1);
4367
+ if (!i3)
4368
+ throw new Error(`Unexpected end of ${a2}`);
4369
+ r2 = i3.i, e3 = i3.tagContent;
4370
+ }
4371
+ const n3 = new $(o2);
4372
+ f2 && (n3[":@"] = f2), n3.add(this.options.textNodeName, e3), this.matcher.pop(), this.isCurrentNodeStopNode = false, this.addChild(i2, n3, this.readonlyMatcher, m2);
4373
+ } else {
4374
+ if (c2) {
4375
+ ({ tagName: o2, tagExp: h2 } = ot(this.options.transformTagName, o2, h2, this.options));
4376
+ const t3 = new $(o2);
4377
+ f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false;
4378
+ } else {
4379
+ if (this.options.unpairedTags.indexOf(o2) !== -1) {
4380
+ const t3 = new $(o2);
4381
+ f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false, r2 = s3.closeIndex;
4382
+ continue;
4383
+ }
4384
+ {
4385
+ const t3 = new $(o2);
4386
+ if (this.tagsNodeStack.length > this.options.maxNestedTags)
4387
+ throw new Error("Maximum nested tags exceeded");
4388
+ this.tagsNodeStack.push(i2), f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), i2 = t3;
4389
+ }
4390
+ }
4391
+ n2 = "", r2 = p2;
4392
+ }
4393
+ }
4394
+ else
4395
+ n2 += t2[r2];
4396
+ return e2.child;
4397
+ };
4398
+ function K(t2, e2, i2, n2) {
4399
+ this.options.captureMetaData || (n2 = undefined);
4400
+ const s2 = this.options.jPath ? i2.toString() : i2, r2 = this.options.updateTag(e2.tagname, s2, e2[":@"]);
4401
+ r2 === false || (typeof r2 == "string" ? (e2.tagname = r2, t2.addChild(e2, n2)) : t2.addChild(e2, n2));
4402
+ }
4403
+ function Q(t2, e2, i2) {
4404
+ const n2 = this.options.processEntities;
4405
+ if (!n2 || !n2.enabled)
4406
+ return t2;
4407
+ if (n2.allowedTags) {
4408
+ const s2 = this.options.jPath ? i2.toString() : i2;
4409
+ if (!(Array.isArray(n2.allowedTags) ? n2.allowedTags.includes(e2) : n2.allowedTags(e2, s2)))
4410
+ return t2;
4411
+ }
4412
+ if (n2.tagFilter) {
4413
+ const s2 = this.options.jPath ? i2.toString() : i2;
4414
+ if (!n2.tagFilter(e2, s2))
4415
+ return t2;
4416
+ }
4417
+ for (const e3 of Object.keys(this.docTypeEntities)) {
4418
+ const i3 = this.docTypeEntities[e3], s2 = t2.match(i3.regx);
4419
+ if (s2) {
4420
+ if (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions)
4421
+ throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
4422
+ const e4 = t2.length;
4423
+ if (t2 = t2.replace(i3.regx, i3.val), n2.maxExpandedLength && (this.currentExpandedLength += t2.length - e4, this.currentExpandedLength > n2.maxExpandedLength))
4424
+ throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n2.maxExpandedLength}`);
4425
+ }
4426
+ }
4427
+ for (const e3 of Object.keys(this.lastEntities)) {
4428
+ const i3 = this.lastEntities[e3], s2 = t2.match(i3.regex);
4429
+ if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
4430
+ throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
4431
+ t2 = t2.replace(i3.regex, i3.val);
4432
+ }
4433
+ if (t2.indexOf("&") === -1)
4434
+ return t2;
4435
+ if (this.options.htmlEntities)
4436
+ for (const e3 of Object.keys(this.htmlEntities)) {
4437
+ const i3 = this.htmlEntities[e3], s2 = t2.match(i3.regex);
4438
+ if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
4439
+ throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
4440
+ t2 = t2.replace(i3.regex, i3.val);
4441
+ }
4442
+ return t2.replace(this.ampEntity.regex, this.ampEntity.val);
4443
+ }
4444
+ function H(t2, e2, i2, n2) {
4445
+ return t2 && (n2 === undefined && (n2 = e2.child.length === 0), (t2 = this.parseTextData(t2, e2.tagname, i2, false, !!e2[":@"] && Object.keys(e2[":@"]).length !== 0, n2)) !== undefined && t2 !== "" && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
4446
+ }
4447
+ function tt(t2, e2) {
4448
+ if (!t2 || t2.length === 0)
4449
+ return false;
4450
+ for (let i2 = 0;i2 < t2.length; i2++)
4451
+ if (e2.matches(t2[i2]))
4452
+ return true;
4453
+ return false;
4454
+ }
4455
+ function et(t2, e2, i2, n2) {
4456
+ const s2 = t2.indexOf(e2, i2);
4457
+ if (s2 === -1)
4458
+ throw new Error(n2);
4459
+ return s2 + e2.length - 1;
4460
+ }
4461
+ function it(t2, e2, i2, n2 = ">") {
4462
+ const s2 = function(t3, e3, i3 = ">") {
4463
+ let n3, s3 = "";
4464
+ for (let r3 = e3;r3 < t3.length; r3++) {
4465
+ let e4 = t3[r3];
4466
+ if (n3)
4467
+ e4 === n3 && (n3 = "");
4468
+ else if (e4 === '"' || e4 === "'")
4469
+ n3 = e4;
4470
+ else if (e4 === i3[0]) {
4471
+ if (!i3[1])
4472
+ return { data: s3, index: r3 };
4473
+ if (t3[r3 + 1] === i3[1])
4474
+ return { data: s3, index: r3 };
4475
+ } else
4476
+ e4 === "\t" && (e4 = " ");
4477
+ s3 += e4;
4478
+ }
4479
+ }(t2, e2 + 1, n2);
4480
+ if (!s2)
4481
+ return;
4482
+ let r2 = s2.data;
4483
+ const o2 = s2.index, a2 = r2.search(/\s/);
4484
+ let h2 = r2, l2 = true;
4485
+ a2 !== -1 && (h2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
4486
+ const p2 = h2;
4487
+ if (i2) {
4488
+ const t3 = h2.indexOf(":");
4489
+ t3 !== -1 && (h2 = h2.substr(t3 + 1), l2 = h2 !== s2.data.substr(t3 + 1));
4490
+ }
4491
+ return { tagName: h2, tagExp: r2, closeIndex: o2, attrExpPresent: l2, rawTagName: p2 };
4492
+ }
4493
+ function nt(t2, e2, i2) {
4494
+ const n2 = i2;
4495
+ let s2 = 1;
4496
+ for (;i2 < t2.length; i2++)
4497
+ if (t2[i2] === "<")
4498
+ if (t2[i2 + 1] === "/") {
4499
+ const r2 = et(t2, ">", i2, `${e2} is not closed`);
4500
+ if (t2.substring(i2 + 2, r2).trim() === e2 && (s2--, s2 === 0))
4501
+ return { tagContent: t2.substring(n2, i2), i: r2 };
4502
+ i2 = r2;
4503
+ } else if (t2[i2 + 1] === "?")
4504
+ i2 = et(t2, "?>", i2 + 1, "StopNode is not closed.");
4505
+ else if (t2.substr(i2 + 1, 3) === "!--")
4506
+ i2 = et(t2, "-->", i2 + 3, "StopNode is not closed.");
4507
+ else if (t2.substr(i2 + 1, 2) === "![")
4508
+ i2 = et(t2, "]]>", i2, "StopNode is not closed.") - 2;
4509
+ else {
4510
+ const n3 = it(t2, i2, ">");
4511
+ n3 && ((n3 && n3.tagName) === e2 && n3.tagExp[n3.tagExp.length - 1] !== "/" && s2++, i2 = n3.closeIndex);
4512
+ }
4513
+ }
4514
+ function st(t2, e2, i2) {
4515
+ if (e2 && typeof t2 == "string") {
4516
+ const e3 = t2.trim();
4517
+ return e3 === "true" || e3 !== "false" && function(t3, e4 = {}) {
4518
+ if (e4 = Object.assign({}, k, e4), !t3 || typeof t3 != "string")
4519
+ return t3;
4520
+ let i3 = t3.trim();
4521
+ if (e4.skipLike !== undefined && e4.skipLike.test(i3))
4522
+ return t3;
4523
+ if (t3 === "0")
4524
+ return 0;
4525
+ if (e4.hex && D.test(i3))
4526
+ return function(t4) {
4527
+ if (parseInt)
4528
+ return parseInt(t4, 16);
4529
+ if (Number.parseInt)
4530
+ return Number.parseInt(t4, 16);
4531
+ if (window && window.parseInt)
4532
+ return window.parseInt(t4, 16);
4533
+ throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
4534
+ }(i3);
4535
+ if (isFinite(i3)) {
4536
+ if (i3.includes("e") || i3.includes("E"))
4537
+ return function(t4, e5, i4) {
4538
+ if (!i4.eNotation)
4539
+ return t4;
4540
+ const n3 = e5.match(F);
4541
+ if (n3) {
4542
+ let s2 = n3[1] || "";
4543
+ const r2 = n3[3].indexOf("e") === -1 ? "E" : "e", o2 = n3[2], a2 = s2 ? t4[o2.length + 1] === r2 : t4[o2.length] === r2;
4544
+ return o2.length > 1 && a2 ? t4 : (o2.length !== 1 || !n3[3].startsWith(`.${r2}`) && n3[3][0] !== r2) && o2.length > 0 ? i4.leadingZeros && !a2 ? (e5 = (n3[1] || "") + n3[3], Number(e5)) : t4 : Number(e5);
4545
+ }
4546
+ return t4;
4547
+ }(t3, i3, e4);
4548
+ {
4549
+ const s2 = V.exec(i3);
4550
+ if (s2) {
4551
+ const r2 = s2[1] || "", o2 = s2[2];
4552
+ let a2 = (n2 = s2[3]) && n2.indexOf(".") !== -1 ? ((n2 = n2.replace(/0+$/, "")) === "." ? n2 = "0" : n2[0] === "." ? n2 = "0" + n2 : n2[n2.length - 1] === "." && (n2 = n2.substring(0, n2.length - 1)), n2) : n2;
4553
+ const h2 = r2 ? t3[o2.length + 1] === "." : t3[o2.length] === ".";
4554
+ if (!e4.leadingZeros && (o2.length > 1 || o2.length === 1 && !h2))
4555
+ return t3;
4556
+ {
4557
+ const n3 = Number(i3), s3 = String(n3);
4558
+ if (n3 === 0)
4559
+ return n3;
4560
+ if (s3.search(/[eE]/) !== -1)
4561
+ return e4.eNotation ? n3 : t3;
4562
+ if (i3.indexOf(".") !== -1)
4563
+ return s3 === "0" || s3 === a2 || s3 === `${r2}${a2}` ? n3 : t3;
4564
+ let h3 = o2 ? a2 : i3;
4565
+ return o2 ? h3 === s3 || r2 + h3 === s3 ? n3 : t3 : h3 === s3 || h3 === r2 + s3 ? n3 : t3;
4566
+ }
4567
+ }
4568
+ return t3;
4569
+ }
4570
+ }
4571
+ var n2;
4572
+ return function(t4, e5, i4) {
4573
+ const n3 = e5 === 1 / 0;
4574
+ switch (i4.infinity.toLowerCase()) {
4575
+ case "null":
4576
+ return null;
4577
+ case "infinity":
4578
+ return e5;
4579
+ case "string":
4580
+ return n3 ? "Infinity" : "-Infinity";
4581
+ default:
4582
+ return t4;
4583
+ }
4584
+ }(t3, Number(i3), e4);
4585
+ }(t2, i2);
4586
+ }
4587
+ return t2 !== undefined ? t2 : "";
4588
+ }
4589
+ function rt(t2, e2, i2) {
4590
+ const n2 = Number.parseInt(t2, e2);
4591
+ return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
4592
+ }
4593
+ function ot(t2, e2, i2, n2) {
4594
+ if (t2) {
4595
+ const n3 = t2(e2);
4596
+ i2 === e2 && (i2 = n3), e2 = n3;
4597
+ }
4598
+ return { tagName: e2 = at(e2, n2), tagExp: i2 };
4599
+ }
4600
+ function at(t2, e2) {
4601
+ if (a.includes(t2))
4602
+ throw new Error(`[SECURITY] Invalid name: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
4603
+ return o.includes(t2) ? e2.onDangerousProperty(t2) : t2;
4604
+ }
4605
+ const ht = $.getMetaDataSymbol();
4606
+ function lt(t2, e2) {
4607
+ if (!t2 || typeof t2 != "object")
4608
+ return {};
4609
+ if (!e2)
4610
+ return t2;
4611
+ const i2 = {};
4612
+ for (const n2 in t2)
4613
+ n2.startsWith(e2) ? i2[n2.substring(e2.length)] = t2[n2] : i2[n2] = t2[n2];
4614
+ return i2;
4615
+ }
4616
+ function pt(t2, e2, i2, n2) {
4617
+ return ut(t2, e2, i2, n2);
4618
+ }
4619
+ function ut(t2, e2, i2, n2) {
4620
+ let s2;
4621
+ const r2 = {};
4622
+ for (let o2 = 0;o2 < t2.length; o2++) {
4623
+ const a2 = t2[o2], h2 = ct(a2);
4624
+ if (h2 !== undefined && h2 !== e2.textNodeName) {
4625
+ const t3 = lt(a2[":@"] || {}, e2.attributeNamePrefix);
4626
+ i2.push(h2, t3);
4627
+ }
4628
+ if (h2 === e2.textNodeName)
4629
+ s2 === undefined ? s2 = a2[h2] : s2 += "" + a2[h2];
4630
+ else {
4631
+ if (h2 === undefined)
4632
+ continue;
4633
+ if (a2[h2]) {
4634
+ let t3 = ut(a2[h2], e2, i2, n2);
4635
+ const s3 = ft(t3, e2);
4636
+ if (a2[":@"] ? dt(t3, a2[":@"], n2, e2) : Object.keys(t3).length !== 1 || t3[e2.textNodeName] === undefined || e2.alwaysCreateTextNode ? Object.keys(t3).length === 0 && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], a2[ht] !== undefined && typeof t3 == "object" && t3 !== null && (t3[ht] = a2[ht]), r2[h2] !== undefined && Object.prototype.hasOwnProperty.call(r2, h2))
4637
+ Array.isArray(r2[h2]) || (r2[h2] = [r2[h2]]), r2[h2].push(t3);
4638
+ else {
4639
+ const i3 = e2.jPath ? n2.toString() : n2;
4640
+ e2.isArray(h2, i3, s3) ? r2[h2] = [t3] : r2[h2] = t3;
4641
+ }
4642
+ h2 !== undefined && h2 !== e2.textNodeName && i2.pop();
4643
+ }
4644
+ }
4645
+ }
4646
+ return typeof s2 == "string" ? s2.length > 0 && (r2[e2.textNodeName] = s2) : s2 !== undefined && (r2[e2.textNodeName] = s2), r2;
4647
+ }
4648
+ function ct(t2) {
4649
+ const e2 = Object.keys(t2);
4650
+ for (let t3 = 0;t3 < e2.length; t3++) {
4651
+ const i2 = e2[t3];
4652
+ if (i2 !== ":@")
4653
+ return i2;
4654
+ }
4655
+ }
4656
+ function dt(t2, e2, i2, n2) {
4657
+ if (e2) {
4658
+ const s2 = Object.keys(e2), r2 = s2.length;
4659
+ for (let o2 = 0;o2 < r2; o2++) {
4660
+ const r3 = s2[o2], a2 = r3.startsWith(n2.attributeNamePrefix) ? r3.substring(n2.attributeNamePrefix.length) : r3, h2 = n2.jPath ? i2.toString() + "." + a2 : i2;
4661
+ n2.isArray(r3, h2, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
4662
+ }
4663
+ }
4664
+ }
4665
+ function ft(t2, e2) {
4666
+ const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
4667
+ return n2 === 0 || !(n2 !== 1 || !t2[i2] && typeof t2[i2] != "boolean" && t2[i2] !== 0);
4668
+ }
4669
+
4670
+ class gt {
4671
+ constructor(t2) {
4672
+ this.externalEntities = {}, this.options = O(t2);
4673
+ }
4674
+ parse(t2, e2) {
4675
+ if (typeof t2 != "string" && t2.toString)
4676
+ t2 = t2.toString();
4677
+ else if (typeof t2 != "string")
4678
+ throw new Error("XML data is accepted in String or Bytes[] form.");
4679
+ if (e2) {
4680
+ e2 === true && (e2 = {});
4681
+ const i3 = l(t2, e2);
4682
+ if (i3 !== true)
4683
+ throw Error(`${i3.err.msg}:${i3.err.line}:${i3.err.col}`);
4684
+ }
4685
+ const i2 = new W(this.options);
4686
+ i2.addExternalEntities(this.externalEntities);
4687
+ const n2 = i2.parseXml(t2);
4688
+ return this.options.preserveOrder || n2 === undefined ? n2 : pt(n2, this.options, i2.matcher, i2.readonlyMatcher);
4689
+ }
4690
+ addEntity(t2, e2) {
4691
+ if (e2.indexOf("&") !== -1)
4692
+ throw new Error("Entity value can't have '&'");
4693
+ if (t2.indexOf("&") !== -1 || t2.indexOf(";") !== -1)
4694
+ throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");
4695
+ if (e2 === "&")
4696
+ throw new Error("An entity with value '&' is not permitted");
4697
+ this.externalEntities[t2] = e2;
4698
+ }
4699
+ static getMetaDataSymbol() {
4700
+ return $.getMetaDataSymbol();
4701
+ }
4702
+ }
4703
+ function mt(t2, e2) {
4704
+ let i2 = "";
4705
+ e2.format && e2.indentBy.length > 0 && (i2 = `
4706
+ `);
4707
+ const n2 = [];
4708
+ if (e2.stopNodes && Array.isArray(e2.stopNodes))
4709
+ for (let t3 = 0;t3 < e2.stopNodes.length; t3++) {
4710
+ const i3 = e2.stopNodes[t3];
4711
+ typeof i3 == "string" ? n2.push(new R(i3)) : i3 instanceof R && n2.push(i3);
4712
+ }
4713
+ return xt(t2, e2, i2, new G, n2);
4714
+ }
4715
+ function xt(t2, e2, i2, n2, s2) {
4716
+ let r2 = "", o2 = false;
4717
+ if (e2.maxNestedTags && n2.getDepth() > e2.maxNestedTags)
4718
+ throw new Error("Maximum nested tags exceeded");
4719
+ if (!Array.isArray(t2)) {
4720
+ if (t2 != null) {
4721
+ let i3 = t2.toString();
4722
+ return i3 = Tt(i3, e2), i3;
4723
+ }
4724
+ return "";
4725
+ }
4726
+ for (let a2 = 0;a2 < t2.length; a2++) {
4727
+ const h2 = t2[a2], l2 = yt(h2);
4728
+ if (l2 === undefined)
4729
+ continue;
4730
+ const p2 = Nt(h2[":@"], e2);
4731
+ n2.push(l2, p2);
4732
+ const u2 = vt(n2, s2);
4733
+ if (l2 === e2.textNodeName) {
4734
+ let t3 = h2[l2];
4735
+ u2 || (t3 = e2.tagValueProcessor(l2, t3), t3 = Tt(t3, e2)), o2 && (r2 += i2), r2 += t3, o2 = false, n2.pop();
4736
+ continue;
4737
+ }
4738
+ if (l2 === e2.cdataPropName) {
4739
+ o2 && (r2 += i2), r2 += `<![CDATA[${h2[l2][0][e2.textNodeName]}]]>`, o2 = false, n2.pop();
4740
+ continue;
4741
+ }
4742
+ if (l2 === e2.commentPropName) {
4743
+ r2 += i2 + `<!--${h2[l2][0][e2.textNodeName]}-->`, o2 = true, n2.pop();
4744
+ continue;
4745
+ }
4746
+ if (l2[0] === "?") {
4747
+ const t3 = wt(h2[":@"], e2, u2), s3 = l2 === "?xml" ? "" : i2;
4748
+ let a3 = h2[l2][0][e2.textNodeName];
4749
+ a3 = a3.length !== 0 ? " " + a3 : "", r2 += s3 + `<${l2}${a3}${t3}?>`, o2 = true, n2.pop();
4750
+ continue;
4751
+ }
4752
+ let c2 = i2;
4753
+ c2 !== "" && (c2 += e2.indentBy);
4754
+ const d2 = i2 + `<${l2}${wt(h2[":@"], e2, u2)}`;
4755
+ let f2;
4756
+ f2 = u2 ? bt(h2[l2], e2) : xt(h2[l2], e2, c2, n2, s2), e2.unpairedTags.indexOf(l2) !== -1 ? e2.suppressUnpairedNode ? r2 += d2 + ">" : r2 += d2 + "/>" : f2 && f2.length !== 0 || !e2.suppressEmptyNode ? f2 && f2.endsWith(">") ? r2 += d2 + `>${f2}${i2}</${l2}>` : (r2 += d2 + ">", f2 && i2 !== "" && (f2.includes("/>") || f2.includes("</")) ? r2 += i2 + e2.indentBy + f2 + i2 : r2 += f2, r2 += `</${l2}>`) : r2 += d2 + "/>", o2 = true, n2.pop();
4757
+ }
4758
+ return r2;
4759
+ }
4760
+ function Nt(t2, e2) {
4761
+ if (!t2 || e2.ignoreAttributes)
4762
+ return null;
4763
+ const i2 = {};
4764
+ let n2 = false;
4765
+ for (let s2 in t2)
4766
+ Object.prototype.hasOwnProperty.call(t2, s2) && (i2[s2.startsWith(e2.attributeNamePrefix) ? s2.substr(e2.attributeNamePrefix.length) : s2] = t2[s2], n2 = true);
4767
+ return n2 ? i2 : null;
4768
+ }
4769
+ function bt(t2, e2) {
4770
+ if (!Array.isArray(t2))
4771
+ return t2 != null ? t2.toString() : "";
4772
+ let i2 = "";
4773
+ for (let n2 = 0;n2 < t2.length; n2++) {
4774
+ const s2 = t2[n2], r2 = yt(s2);
4775
+ if (r2 === e2.textNodeName)
4776
+ i2 += s2[r2];
4777
+ else if (r2 === e2.cdataPropName)
4778
+ i2 += s2[r2][0][e2.textNodeName];
4779
+ else if (r2 === e2.commentPropName)
4780
+ i2 += s2[r2][0][e2.textNodeName];
4781
+ else {
4782
+ if (r2 && r2[0] === "?")
4783
+ continue;
4784
+ if (r2) {
4785
+ const t3 = Et(s2[":@"], e2), n3 = bt(s2[r2], e2);
4786
+ n3 && n3.length !== 0 ? i2 += `<${r2}${t3}>${n3}</${r2}>` : i2 += `<${r2}${t3}/>`;
4787
+ }
4788
+ }
4789
+ }
4790
+ return i2;
4791
+ }
4792
+ function Et(t2, e2) {
4793
+ let i2 = "";
4794
+ if (t2 && !e2.ignoreAttributes)
4795
+ for (let n2 in t2) {
4796
+ if (!Object.prototype.hasOwnProperty.call(t2, n2))
4797
+ continue;
4798
+ let s2 = t2[n2];
4799
+ s2 === true && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
4800
+ }
4801
+ return i2;
4802
+ }
4803
+ function yt(t2) {
4804
+ const e2 = Object.keys(t2);
4805
+ for (let i2 = 0;i2 < e2.length; i2++) {
4806
+ const n2 = e2[i2];
4807
+ if (Object.prototype.hasOwnProperty.call(t2, n2) && n2 !== ":@")
4808
+ return n2;
4809
+ }
4810
+ }
4811
+ function wt(t2, e2, i2) {
4812
+ let n2 = "";
4813
+ if (t2 && !e2.ignoreAttributes)
4814
+ for (let s2 in t2) {
4815
+ if (!Object.prototype.hasOwnProperty.call(t2, s2))
4816
+ continue;
4817
+ let r2;
4818
+ i2 ? r2 = t2[s2] : (r2 = e2.attributeValueProcessor(s2, t2[s2]), r2 = Tt(r2, e2)), r2 === true && e2.suppressBooleanAttributes ? n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}="${r2}"`;
4819
+ }
4820
+ return n2;
4821
+ }
4822
+ function vt(t2, e2) {
4823
+ if (!e2 || e2.length === 0)
4824
+ return false;
4825
+ for (let i2 = 0;i2 < e2.length; i2++)
4826
+ if (t2.matches(e2[i2]))
4827
+ return true;
4828
+ return false;
4829
+ }
4830
+ function Tt(t2, e2) {
4831
+ if (t2 && t2.length > 0 && e2.processEntities)
4832
+ for (let i2 = 0;i2 < e2.entities.length; i2++) {
4833
+ const n2 = e2.entities[i2];
4834
+ t2 = t2.replace(n2.regex, n2.val);
4835
+ }
4836
+ return t2;
4837
+ }
4838
+ const Pt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
4839
+ return e2;
4840
+ }, attributeValueProcessor: function(t2, e2) {
4841
+ return e2;
4842
+ }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false, maxNestedTags: 100, jPath: true };
4843
+ function St(t2) {
4844
+ if (this.options = Object.assign({}, Pt, t2), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes))
4845
+ for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
4846
+ const e3 = this.options.stopNodes[t3];
4847
+ typeof e3 == "string" ? this.stopNodeExpressions.push(new R(e3)) : e3 instanceof R && this.stopNodeExpressions.push(e3);
4848
+ }
4849
+ var e2;
4850
+ this.options.ignoreAttributes === true || this.options.attributesGroupName ? this.isAttribute = function() {
4851
+ return false;
4852
+ } : (this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
4853
+ for (const i2 of e2) {
4854
+ if (typeof i2 == "string" && t3 === i2)
4855
+ return true;
4856
+ if (i2 instanceof RegExp && i2.test(t3))
4857
+ return true;
4858
+ }
4859
+ } : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Ct), this.processTextOrObjNode = At, this.options.format ? (this.indentate = Ot, this.tagEndChar = `>
4860
+ `, this.newLine = `
4861
+ `) : (this.indentate = function() {
4862
+ return "";
4863
+ }, this.tagEndChar = ">", this.newLine = "");
4864
+ }
4865
+ function At(t2, e2, i2, n2) {
4866
+ const s2 = this.extractAttributes(t2);
4867
+ if (n2.push(e2, s2), this.checkStopNode(n2)) {
4868
+ const s3 = this.buildRawContent(t2), r3 = this.buildAttributesForStopNode(t2);
4869
+ return n2.pop(), this.buildObjectNode(s3, e2, r3, i2);
4870
+ }
4871
+ const r2 = this.j2x(t2, i2 + 1, n2);
4872
+ return n2.pop(), t2[this.options.textNodeName] !== undefined && Object.keys(t2).length === 1 ? this.buildTextValNode(t2[this.options.textNodeName], e2, r2.attrStr, i2, n2) : this.buildObjectNode(r2.val, e2, r2.attrStr, i2);
4873
+ }
4874
+ function Ot(t2) {
4875
+ return this.options.indentBy.repeat(t2);
4876
+ }
4877
+ function Ct(t2) {
4878
+ return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
4879
+ }
4880
+ St.prototype.build = function(t2) {
4881
+ if (this.options.preserveOrder)
4882
+ return mt(t2, this.options);
4883
+ {
4884
+ Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 });
4885
+ const e2 = new G;
4886
+ return this.j2x(t2, 0, e2).val;
4887
+ }
4888
+ }, St.prototype.j2x = function(t2, e2, i2) {
4889
+ let n2 = "", s2 = "";
4890
+ if (this.options.maxNestedTags && i2.getDepth() >= this.options.maxNestedTags)
4891
+ throw new Error("Maximum nested tags exceeded");
4892
+ const r2 = this.options.jPath ? i2.toString() : i2, o2 = this.checkStopNode(i2);
4893
+ for (let a2 in t2)
4894
+ if (Object.prototype.hasOwnProperty.call(t2, a2))
4895
+ if (t2[a2] === undefined)
4896
+ this.isAttribute(a2) && (s2 += "");
4897
+ else if (t2[a2] === null)
4898
+ this.isAttribute(a2) || a2 === this.options.cdataPropName ? s2 += "" : a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
4899
+ else if (t2[a2] instanceof Date)
4900
+ s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
4901
+ else if (typeof t2[a2] != "object") {
4902
+ const h2 = this.isAttribute(a2);
4903
+ if (h2 && !this.ignoreAttributesFn(h2, r2))
4904
+ n2 += this.buildAttrPairStr(h2, "" + t2[a2], o2);
4905
+ else if (!h2)
4906
+ if (a2 === this.options.textNodeName) {
4907
+ let e3 = this.options.tagValueProcessor(a2, "" + t2[a2]);
4908
+ s2 += this.replaceEntitiesValue(e3);
4909
+ } else {
4910
+ i2.push(a2);
4911
+ const n3 = this.checkStopNode(i2);
4912
+ if (i2.pop(), n3) {
4913
+ const i3 = "" + t2[a2];
4914
+ s2 += i3 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + i3 + "</" + a2 + this.tagEndChar;
4915
+ } else
4916
+ s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
4917
+ }
4918
+ } else if (Array.isArray(t2[a2])) {
4919
+ const n3 = t2[a2].length;
4920
+ let r3 = "", o3 = "";
4921
+ for (let h2 = 0;h2 < n3; h2++) {
4922
+ const n4 = t2[a2][h2];
4923
+ if (n4 === undefined)
4924
+ ;
4925
+ else if (n4 === null)
4926
+ a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
4927
+ else if (typeof n4 == "object")
4928
+ if (this.options.oneListGroup) {
4929
+ i2.push(a2);
4930
+ const t3 = this.j2x(n4, e2 + 1, i2);
4931
+ i2.pop(), r3 += t3.val, this.options.attributesGroupName && n4.hasOwnProperty(this.options.attributesGroupName) && (o3 += t3.attrStr);
4932
+ } else
4933
+ r3 += this.processTextOrObjNode(n4, a2, e2, i2);
4934
+ else if (this.options.oneListGroup) {
4935
+ let t3 = this.options.tagValueProcessor(a2, n4);
4936
+ t3 = this.replaceEntitiesValue(t3), r3 += t3;
4937
+ } else {
4938
+ i2.push(a2);
4939
+ const t3 = this.checkStopNode(i2);
4940
+ if (i2.pop(), t3) {
4941
+ const t4 = "" + n4;
4942
+ r3 += t4 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + t4 + "</" + a2 + this.tagEndChar;
4943
+ } else
4944
+ r3 += this.buildTextValNode(n4, a2, "", e2, i2);
4945
+ }
4946
+ }
4947
+ this.options.oneListGroup && (r3 = this.buildObjectNode(r3, a2, o3, e2)), s2 += r3;
4948
+ } else if (this.options.attributesGroupName && a2 === this.options.attributesGroupName) {
4949
+ const e3 = Object.keys(t2[a2]), i3 = e3.length;
4950
+ for (let s3 = 0;s3 < i3; s3++)
4951
+ n2 += this.buildAttrPairStr(e3[s3], "" + t2[a2][e3[s3]], o2);
4952
+ } else
4953
+ s2 += this.processTextOrObjNode(t2[a2], a2, e2, i2);
4954
+ return { attrStr: n2, val: s2 };
4955
+ }, St.prototype.buildAttrPairStr = function(t2, e2, i2) {
4956
+ return i2 || (e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2)), this.options.suppressBooleanAttributes && e2 === "true" ? " " + t2 : " " + t2 + '="' + e2 + '"';
4957
+ }, St.prototype.extractAttributes = function(t2) {
4958
+ if (!t2 || typeof t2 != "object")
4959
+ return null;
4960
+ const e2 = {};
4961
+ let i2 = false;
4962
+ if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
4963
+ const n2 = t2[this.options.attributesGroupName];
4964
+ for (let t3 in n2)
4965
+ Object.prototype.hasOwnProperty.call(n2, t3) && (e2[t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3] = n2[t3], i2 = true);
4966
+ } else
4967
+ for (let n2 in t2) {
4968
+ if (!Object.prototype.hasOwnProperty.call(t2, n2))
4969
+ continue;
4970
+ const s2 = this.isAttribute(n2);
4971
+ s2 && (e2[s2] = t2[n2], i2 = true);
4972
+ }
4973
+ return i2 ? e2 : null;
4974
+ }, St.prototype.buildRawContent = function(t2) {
4975
+ if (typeof t2 == "string")
4976
+ return t2;
4977
+ if (typeof t2 != "object" || t2 === null)
4978
+ return String(t2);
4979
+ if (t2[this.options.textNodeName] !== undefined)
4980
+ return t2[this.options.textNodeName];
4981
+ let e2 = "";
4982
+ for (let i2 in t2) {
4983
+ if (!Object.prototype.hasOwnProperty.call(t2, i2))
4984
+ continue;
4985
+ if (this.isAttribute(i2))
4986
+ continue;
4987
+ if (this.options.attributesGroupName && i2 === this.options.attributesGroupName)
4988
+ continue;
4989
+ const n2 = t2[i2];
4990
+ if (i2 === this.options.textNodeName)
4991
+ e2 += n2;
4992
+ else if (Array.isArray(n2)) {
4993
+ for (let t3 of n2)
4994
+ if (typeof t3 == "string" || typeof t3 == "number")
4995
+ e2 += `<${i2}>${t3}</${i2}>`;
4996
+ else if (typeof t3 == "object" && t3 !== null) {
4997
+ const n3 = this.buildRawContent(t3), s2 = this.buildAttributesForStopNode(t3);
4998
+ e2 += n3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${n3}</${i2}>`;
4999
+ }
5000
+ } else if (typeof n2 == "object" && n2 !== null) {
5001
+ const t3 = this.buildRawContent(n2), s2 = this.buildAttributesForStopNode(n2);
5002
+ e2 += t3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${t3}</${i2}>`;
5003
+ } else
5004
+ e2 += `<${i2}>${n2}</${i2}>`;
5005
+ }
5006
+ return e2;
5007
+ }, St.prototype.buildAttributesForStopNode = function(t2) {
5008
+ if (!t2 || typeof t2 != "object")
5009
+ return "";
5010
+ let e2 = "";
5011
+ if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
5012
+ const i2 = t2[this.options.attributesGroupName];
5013
+ for (let t3 in i2) {
5014
+ if (!Object.prototype.hasOwnProperty.call(i2, t3))
5015
+ continue;
5016
+ const n2 = t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3, s2 = i2[t3];
5017
+ s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
5018
+ }
5019
+ } else
5020
+ for (let i2 in t2) {
5021
+ if (!Object.prototype.hasOwnProperty.call(t2, i2))
5022
+ continue;
5023
+ const n2 = this.isAttribute(i2);
5024
+ if (n2) {
5025
+ const s2 = t2[i2];
5026
+ s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
5027
+ }
5028
+ }
5029
+ return e2;
5030
+ }, St.prototype.buildObjectNode = function(t2, e2, i2, n2) {
5031
+ if (t2 === "")
5032
+ return e2[0] === "?" ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
5033
+ {
5034
+ let s2 = "</" + e2 + this.tagEndChar, r2 = "";
5035
+ return e2[0] === "?" && (r2 = "?", s2 = ""), !i2 && i2 !== "" || t2.indexOf("<") !== -1 ? this.options.commentPropName !== false && e2 === this.options.commentPropName && r2.length === 0 ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
5036
+ }
5037
+ }, St.prototype.closeTag = function(t2) {
5038
+ let e2 = "";
5039
+ return this.options.unpairedTags.indexOf(t2) !== -1 ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
5040
+ }, St.prototype.checkStopNode = function(t2) {
5041
+ if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0)
5042
+ return false;
5043
+ for (let e2 = 0;e2 < this.stopNodeExpressions.length; e2++)
5044
+ if (t2.matches(this.stopNodeExpressions[e2]))
5045
+ return true;
5046
+ return false;
5047
+ }, St.prototype.buildTextValNode = function(t2, e2, i2, n2, s2) {
5048
+ if (this.options.cdataPropName !== false && e2 === this.options.cdataPropName)
5049
+ return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
5050
+ if (this.options.commentPropName !== false && e2 === this.options.commentPropName)
5051
+ return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
5052
+ if (e2[0] === "?")
5053
+ return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
5054
+ {
5055
+ let s3 = this.options.tagValueProcessor(e2, t2);
5056
+ return s3 = this.replaceEntitiesValue(s3), s3 === "" ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s3 + "</" + e2 + this.tagEndChar;
5057
+ }
5058
+ }, St.prototype.replaceEntitiesValue = function(t2) {
5059
+ if (t2 && t2.length > 0 && this.options.processEntities)
5060
+ for (let e2 = 0;e2 < this.options.entities.length; e2++) {
5061
+ const i2 = this.options.entities[e2];
5062
+ t2 = t2.replace(i2.regex, i2.val);
5063
+ }
5064
+ return t2;
5065
+ };
5066
+ const $t = St, It = { validate: l };
5067
+ module.exports = e;
5068
+ })();
5069
+ });
5070
+
3356
5071
  // node_modules/.bun/@aws-sdk+xml-builder@3.972.17/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js
3357
5072
  var require_xml_parser = __commonJS((exports) => {
3358
5073
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3382,7 +5097,7 @@ var require_xml_parser = __commonJS((exports) => {
3382
5097
  });
3383
5098
 
3384
5099
  // node_modules/.bun/@aws-sdk+xml-builder@3.972.17/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
3385
- var require_dist_cjs32 = __commonJS((exports) => {
5100
+ var require_dist_cjs33 = __commonJS((exports) => {
3386
5101
  var xmlParser = require_xml_parser();
3387
5102
  var ATTR_ESCAPE_RE = /[&<>"]/g;
3388
5103
  var ATTR_ESCAPE_MAP = {
@@ -3520,7 +5235,7 @@ var require_protocols2 = __commonJS((exports) => {
3520
5235
  var serde = require_serde();
3521
5236
  var utilBase64 = require_dist_cjs10();
3522
5237
  var utilUtf8 = require_dist_cjs9();
3523
- var xmlBuilder = require_dist_cjs32();
5238
+ var xmlBuilder = require_dist_cjs33();
3524
5239
 
3525
5240
  class ProtocolLib {
3526
5241
  queryCompat;
@@ -5327,4 +7042,4 @@ var require_protocols2 = __commonJS((exports) => {
5327
7042
  exports.parseXmlErrorBody = parseXmlErrorBody;
5328
7043
  });
5329
7044
 
5330
- export { require_dist_cjs17 as require_dist_cjs, require_dist_cjs18 as require_dist_cjs1, require_dist_cjs19 as require_dist_cjs2, require_dist_cjs20 as require_dist_cjs3, require_dist_cjs22 as require_dist_cjs4, require_dist_cjs23 as require_dist_cjs5, require_dist_cjs24 as require_dist_cjs6, require_dist_cjs26 as require_dist_cjs7, require_dist_cjs27 as require_dist_cjs8, require_dist_cjs29 as require_dist_cjs9, require_dist_cjs30 as require_dist_cjs10, require_dist_cjs31 as require_dist_cjs11, require_protocols2 as require_protocols, require_dist_cjs28 as require_dist_cjs12 };
7045
+ export { require_dist_cjs16 as require_dist_cjs, require_dist_cjs17 as require_dist_cjs1, require_dist_cjs18 as require_dist_cjs2, require_dist_cjs19 as require_dist_cjs3, require_dist_cjs21 as require_dist_cjs4, require_dist_cjs22 as require_dist_cjs5, require_dist_cjs23 as require_dist_cjs6, require_dist_cjs25 as require_dist_cjs7, require_dist_cjs26 as require_dist_cjs8, require_dist_cjs28 as require_dist_cjs9, require_dist_cjs29 as require_dist_cjs10, require_dist_cjs30 as require_dist_cjs11, require_dist_cjs31 as require_dist_cjs12, require_protocols2 as require_protocols, require_dist_cjs27 as require_dist_cjs13 };